fluxy-bot 0.6.2 → 0.7.0

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.
@@ -0,0 +1,18 @@
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"]'))u(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"&&u(h)}).observe(document,{childList:!0,subtree:!0});function o(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 u(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();function s0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ac={exports:{}},fs={};var Np;function P1(){if(Np)return fs;Np=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(u,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:u,key:h,ref:c!==void 0?c:null,props:d}}return fs.Fragment=l,fs.jsx=o,fs.jsxs=o,fs}var Op;function W1(){return Op||(Op=1,Ac.exports=P1()),Ac.exports}var v=W1(),Ec={exports:{}},rt={};var zp;function $1(){if(zp)return rt;zp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=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"),x=Symbol.for("react.lazy"),b=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 V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,X={};function q(E,U,Q){this.props=E,this.context=U,this.refs=X,this.updater=Q||V}q.prototype.isReactComponent={},q.prototype.setState=function(E,U){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,U,"setState")},q.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function K(){}K.prototype=q.prototype;function G(E,U,Q){this.props=E,this.context=U,this.refs=X,this.updater=Q||V}var J=G.prototype=new K;J.constructor=G,Y(J,q.prototype),J.isPureReactComponent=!0;var Z=Array.isArray;function lt(){}var k={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function st(E,U,Q){var P=Q.ref;return{$$typeof:i,type:E,key:U,ref:P!==void 0?P:null,props:Q}}function bt(E,U){return st(E.type,U,E.props)}function wt(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function Lt(E){var U={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return U[Q]})}var ae=/\/+/g;function vt(E,U){return typeof E=="object"&&E!==null&&E.key!=null?Lt(""+E.key):U.toString(36)}function $t(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(lt,lt):(E.status="pending",E.then(function(U){E.status==="pending"&&(E.status="fulfilled",E.value=U)},function(U){E.status==="pending"&&(E.status="rejected",E.reason=U)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function R(E,U,Q,P,ot){var at=typeof E;(at==="undefined"||at==="boolean")&&(E=null);var dt=!1;if(E===null)dt=!0;else switch(at){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(E.$$typeof){case i:case l:dt=!0;break;case x:return dt=E._init,R(dt(E._payload),U,Q,P,ot)}}if(dt)return ot=ot(E),dt=P===""?"."+vt(E,0):P,Z(ot)?(Q="",dt!=null&&(Q=dt.replace(ae,"$&/")+"/"),R(ot,U,Q,"",function(nn){return nn})):ot!=null&&(wt(ot)&&(ot=bt(ot,Q+(ot.key==null||E&&E.key===ot.key?"":(""+ot.key).replace(ae,"$&/")+"/")+dt)),U.push(ot)),1;dt=0;var Kt=P===""?".":P+":";if(Z(E))for(var Ot=0;Ot<E.length;Ot++)P=E[Ot],at=Kt+vt(P,Ot),dt+=R(P,U,Q,at,ot);else if(Ot=N(E),typeof Ot=="function")for(E=Ot.call(E),Ot=0;!(P=E.next()).done;)P=P.value,at=Kt+vt(P,Ot++),dt+=R(P,U,Q,at,ot);else if(at==="object"){if(typeof E.then=="function")return R($t(E),U,Q,P,ot);throw U=String(E),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return dt}function H(E,U,Q){if(E==null)return E;var P=[],ot=0;return R(E,P,"","",function(at){return U.call(Q,at,ot++)}),P}function $(E){if(E._status===-1){var U=E._result;U=U(),U.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=U)}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 U=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(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ht={map:H,forEach:function(E,U,Q){H(E,function(){U.apply(this,arguments)},Q)},count:function(E){var U=0;return H(E,function(){U++}),U},toArray:function(E){return H(E,function(U){return U})||[]},only:function(E){if(!wt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return rt.Activity=b,rt.Children=ht,rt.Component=q,rt.Fragment=o,rt.Profiler=c,rt.PureComponent=G,rt.StrictMode=u,rt.Suspense=g,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,rt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return k.H.useMemoCache(E)}},rt.cache=function(E){return function(){return E.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(E,U,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=Y({},E.props),ot=E.key;if(U!=null)for(at in U.key!==void 0&&(ot=""+U.key),U)!F.call(U,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&U.ref===void 0||(P[at]=U[at]);var at=arguments.length-2;if(at===1)P.children=Q;else if(1<at){for(var dt=Array(at),Kt=0;Kt<at;Kt++)dt[Kt]=arguments[Kt+2];P.children=dt}return st(E.type,ot,P)},rt.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},rt.createElement=function(E,U,Q){var P,ot={},at=null;if(U!=null)for(P in U.key!==void 0&&(at=""+U.key),U)F.call(U,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ot[P]=U[P]);var dt=arguments.length-2;if(dt===1)ot.children=Q;else if(1<dt){for(var Kt=Array(dt),Ot=0;Ot<dt;Ot++)Kt[Ot]=arguments[Ot+2];ot.children=Kt}if(E&&E.defaultProps)for(P in dt=E.defaultProps,dt)ot[P]===void 0&&(ot[P]=dt[P]);return st(E,at,ot)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(E){return{$$typeof:p,render:E}},rt.isValidElement=wt,rt.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:$}},rt.memo=function(E,U){return{$$typeof:m,type:E,compare:U===void 0?null:U}},rt.startTransition=function(E){var U=k.T,Q={};k.T=Q;try{var P=E(),ot=k.S;ot!==null&&ot(Q,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(lt,ut)}catch(at){ut(at)}finally{U!==null&&Q.types!==null&&(U.types=Q.types),k.T=U}},rt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},rt.use=function(E){return k.H.use(E)},rt.useActionState=function(E,U,Q){return k.H.useActionState(E,U,Q)},rt.useCallback=function(E,U){return k.H.useCallback(E,U)},rt.useContext=function(E){return k.H.useContext(E)},rt.useDebugValue=function(){},rt.useDeferredValue=function(E,U){return k.H.useDeferredValue(E,U)},rt.useEffect=function(E,U){return k.H.useEffect(E,U)},rt.useEffectEvent=function(E){return k.H.useEffectEvent(E)},rt.useId=function(){return k.H.useId()},rt.useImperativeHandle=function(E,U,Q){return k.H.useImperativeHandle(E,U,Q)},rt.useInsertionEffect=function(E,U){return k.H.useInsertionEffect(E,U)},rt.useLayoutEffect=function(E,U){return k.H.useLayoutEffect(E,U)},rt.useMemo=function(E,U){return k.H.useMemo(E,U)},rt.useOptimistic=function(E,U){return k.H.useOptimistic(E,U)},rt.useReducer=function(E,U,Q){return k.H.useReducer(E,U,Q)},rt.useRef=function(E){return k.H.useRef(E)},rt.useState=function(E){return k.H.useState(E)},rt.useSyncExternalStore=function(E,U,Q){return k.H.useSyncExternalStore(E,U,Q)},rt.useTransition=function(){return k.H.useTransition()},rt.version="19.2.4",rt}var Rp;function bf(){return Rp||(Rp=1,Ec.exports=$1()),Ec.exports}var z=bf();const jA=s0(z);var wc={exports:{}},hs={},Cc={exports:{}},Mc={};var Vp;function I1(){return Vp||(Vp=1,(function(i){function l(R,H){var $=R.length;R.push(H);t:for(;0<$;){var ut=$-1>>>1,ht=R[ut];if(0<c(ht,H))R[ut]=H,R[$]=ht,$=ut;else break t}}function o(R){return R.length===0?null:R[0]}function u(R){if(R.length===0)return null;var H=R[0],$=R.pop();if($!==H){R[0]=$;t:for(var ut=0,ht=R.length,E=ht>>>1;ut<E;){var U=2*(ut+1)-1,Q=R[U],P=U+1,ot=R[P];if(0>c(Q,$))P<ht&&0>c(ot,Q)?(R[ut]=ot,R[P]=$,ut=P):(R[ut]=Q,R[U]=$,ut=U);else if(P<ht&&0>c(ot,$))R[ut]=ot,R[P]=$,ut=P;else break t}}return H}function c(R,H){var $=R.sortIndex-H.sortIndex;return $!==0?$:R.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=[],x=1,b=null,T=3,N=!1,V=!1,Y=!1,X=!1,q=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function J(R){for(var H=o(m);H!==null;){if(H.callback===null)u(m);else if(H.startTime<=R)u(m),H.sortIndex=H.expirationTime,l(g,H);else break;H=o(m)}}function Z(R){if(Y=!1,J(R),!V)if(o(g)!==null)V=!0,lt||(lt=!0,Lt());else{var H=o(m);H!==null&&$t(Z,H.startTime-R)}}var lt=!1,k=-1,F=5,st=-1;function bt(){return X?!0:!(i.unstable_now()-st<F)}function wt(){if(X=!1,lt){var R=i.unstable_now();st=R;var H=!0;try{t:{V=!1,Y&&(Y=!1,K(k),k=-1),N=!0;var $=T;try{e:{for(J(R),b=o(g);b!==null&&!(b.expirationTime>R&&bt());){var ut=b.callback;if(typeof ut=="function"){b.callback=null,T=b.priorityLevel;var ht=ut(b.expirationTime<=R);if(R=i.unstable_now(),typeof ht=="function"){b.callback=ht,J(R),H=!0;break e}b===o(g)&&u(g),J(R)}else u(g);b=o(g)}if(b!==null)H=!0;else{var E=o(m);E!==null&&$t(Z,E.startTime-R),H=!1}}break t}finally{b=null,T=$,N=!1}H=void 0}}finally{H?Lt():lt=!1}}}var Lt;if(typeof G=="function")Lt=function(){G(wt)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,vt=ae.port2;ae.port1.onmessage=wt,Lt=function(){vt.postMessage(null)}}else Lt=function(){q(wt,0)};function $t(R,H){k=q(function(){R(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(R){R.callback=null},i.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<R?Math.floor(1e3/R):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(R){switch(T){case 1:case 2:case 3:var H=3;break;default:H=T}var $=T;T=H;try{return R()}finally{T=$}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(R,H){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var $=T;T=R;try{return H()}finally{T=$}},i.unstable_scheduleCallback=function(R,H,$){var ut=i.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ut+$:ut):$=ut,R){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=$+ht,R={id:x++,callback:H,priorityLevel:R,startTime:$,expirationTime:ht,sortIndex:-1},$>ut?(R.sortIndex=$,l(m,R),o(g)===null&&R===o(m)&&(Y?(K(k),k=-1):Y=!0,$t(Z,$-ut))):(R.sortIndex=ht,l(g,R),V||N||(V=!0,lt||(lt=!0,Lt()))),R},i.unstable_shouldYield=bt,i.unstable_wrapCallback=function(R){var H=T;return function(){var $=T;T=H;try{return R.apply(this,arguments)}finally{T=$}}}})(Mc)),Mc}var _p;function tx(){return _p||(_p=1,Cc.exports=I1()),Cc.exports}var Dc={exports:{}},de={};var Up;function ex(){if(Up)return de;Up=1;var i=bf();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}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 o(){}var u={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,m,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:g,containerInfo:m,implementation:x}}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 de.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,de.createPortal=function(g,m){var x=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,x)},de.flushSync=function(g){var m=h.T,x=u.p;try{if(h.T=null,u.p=2,g)return g()}finally{h.T=m,u.p=x,u.d.f()}},de.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(g,m))},de.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},de.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:N}):x==="script"&&u.d.X(g,{crossOrigin:b,integrity:T,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},de.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=p(m.as,m.crossOrigin);u.d.M(g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(g)},de.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin);u.d.L(g,x,{crossOrigin:b,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})}},de.preloadModule=function(g,m){if(typeof g=="string")if(m){var x=p(m.as,m.crossOrigin);u.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(g)},de.requestFormReset=function(g){u.d.r(g)},de.unstable_batchedUpdates=function(g,m){return g(m)},de.useFormState=function(g,m,x){return h.H.useFormState(g,m,x)},de.useFormStatus=function(){return h.H.useHostTransitionStatus()},de.version="19.2.4",de}var Bp;function nx(){if(Bp)return Dc.exports;Bp=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(),Dc.exports=ex(),Dc.exports}var Lp;function ax(){if(Lp)return hs;Lp=1;var i=tx(),l=bf(),o=nx();function u(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(u(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(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(u(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(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?t:e}function x(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=x(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,T=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),G=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),st=Symbol.for("react.activity"),bt=Symbol.for("react.memo_cache_sentinel"),wt=Symbol.iterator;function Lt(t){return t===null||typeof t!="object"?null:(t=wt&&t[wt]||t["@@iterator"],typeof t=="function"?t:null)}var ae=Symbol.for("react.client.reference");function vt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ae?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case q:return"Profiler";case X:return"StrictMode";case Z:return"Suspense";case lt:return"SuspenseList";case st:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case G:return t.displayName||"Context";case K:return(t._context.displayName||"Context")+".Consumer";case J:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:vt(t.type)||"Memo";case F:e=t._payload,t=t._init;try{return vt(t(e))}catch{}}return null}var $t=Array.isArray,R=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ut=[],ht=-1;function E(t){return{current:t}}function U(t){0>ht||(t.current=ut[ht],ut[ht]=null,ht--)}function Q(t,e){ht++,ut[ht]=t.current,t.current=e}var P=E(null),ot=E(null),at=E(null),dt=E(null);function Kt(t,e){switch(Q(at,e),Q(ot,t),Q(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Im(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Im(e),t=tp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(P),Q(P,t)}function Ot(){U(P),U(ot),U(at)}function nn(t){t.memoizedState!==null&&Q(dt,t);var e=P.current,n=tp(e,t.type);e!==n&&(Q(ot,t),Q(P,n))}function ie(t){ot.current===t&&(U(P),U(ot)),dt.current===t&&(U(dt),os._currentValue=$)}var cl,oi;function wn(t){if(cl===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);cl=e&&e[1]||"",oi=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+cl+t+oi}var fl=!1;function hl(t,e){if(!t||fl)return"";fl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(O){var j=O}Reflect.construct(t,[],L)}else{try{L.call()}catch(O){j=O}t.call(L.prototype)}}else{try{throw Error()}catch(O){j=O}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(O){if(O&&j&&typeof O.stack=="string")return[O.stack,j.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 S=f.split(`
4
+ `),M=y.split(`
5
+ `);for(s=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(a===S.length||s===M.length)for(a=S.length-1,s=M.length-1;1<=a&&0<=s&&S[a]!==M[s];)s--;for(;1<=a&&0<=s;a--,s--)if(S[a]!==M[s]){if(a!==1||s!==1)do if(a--,s--,0>s||S[a]!==M[s]){var _=`
6
+ `+S[a].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=a&&0<=s);break}}}finally{fl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?wn(n):""}function qe(t,e){switch(t.tag){case 26:case 27:case 5:return wn(t.type);case 16:return wn("Lazy");case 13:return t.child!==e&&e!==null?wn("Suspense Fallback"):wn("Suspense");case 19:return wn("SuspenseList");case 0:case 15:return hl(t.type,!1);case 11:return hl(t.type.render,!1);case 1:return hl(t.type,!0);case 31:return wn("Activity");default:return""}}function ta(t){try{var e="",n=null;do e+=qe(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
+ Error generating stack: `+a.message+`
8
+ `+a.stack}}var ze=Object.prototype.hasOwnProperty,ui=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,dl=i.unstable_shouldYield,Ds=i.unstable_requestPaint,he=i.unstable_now,yu=i.unstable_getCurrentPriorityLevel,js=i.unstable_ImmediatePriority,pe=i.unstable_UserBlockingPriority,ri=i.unstable_NormalPriority,ml=i.unstable_LowPriority,Ns=i.unstable_IdlePriority,Os=i.log,ci=i.unstable_setDisableYieldValue,le=null,ye=null;function an(t){if(typeof Os=="function"&&ci(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(le,t)}catch{}}var ge=Math.clz32?Math.clz32:zs,ea=Math.log,gu=Math.LN2;function zs(t){return t>>>=0,t===0?32:31-(ea(t)/gu|0)|0}var Cn=256,Mn=262144,za=4194304;function mn(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 Ra(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=mn(a):(f&=y,f!==0?s=mn(f):n||(n=y&~t,n!==0&&(s=mn(n))))):(y=a&~r,y!==0?s=mn(y):f!==0?s=mn(f):n||(n=a&~t,n!==0&&(s=mn(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 Ae(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Rs(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 Xe(){var t=za;return za<<=1,(za&62914560)===0&&(za=4194304),t}function fi(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function se(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Va(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,S=t.expirationTimes,M=t.hiddenUpdates;for(n=f&~n;0<n;){var _=31-ge(n),L=1<<_;y[_]=0,S[_]=-1;var j=M[_];if(j!==null)for(M[_]=null,_=0;_<j.length;_++){var O=j[_];O!==null&&(O.lane&=-536870913)}n&=~L}a!==0&&hi(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function hi(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ge(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function pl(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ge(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function di(t,e){var n=e&-e;return n=(n&42)!==0?1:mi(n),(n&(t.suspendedLanes|e))!==0?0:n}function mi(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 yl(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function gl(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Ap(t.type))}function _a(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var ln=Math.random().toString(36).slice(2),Vt="__reactFiber$"+ln,ee="__reactProps$"+ln,Dn="__reactContainer$"+ln,pi="__reactEvents$"+ln,Vs="__reactListeners$"+ln,jn="__reactHandles$"+ln,Ua="__reactResources$"+ln,Nn="__reactMarker$"+ln;function Ba(t){delete t[Vt],delete t[ee],delete t[pi],delete t[Vs],delete t[jn]}function pn(t){var e=t[Vt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Dn]||n[Vt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=op(t);t!==null;){if(n=t[Vt])return n;t=op(t)}return e}t=n,n=t.parentNode}return null}function On(t){if(t=t[Vt]||t[Dn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function zn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function sn(t){var e=t[Ua];return e||(e=t[Ua]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Yt(t){t[Nn]=!0}var vl=new Set,La={};function Rn(t,e){na(t,e),na(t+"Capture",e)}function na(t,e){for(La[t]=e,t=0;t<e.length;t++)vl.add(e[t])}var xl=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]*$"),yn={},yi={};function vu(t){return ze.call(yi,t)?!0:ze.call(yn,t)?!1:xl.test(t)?yi[t]=!0:(yn[t]=!0,!1)}function gi(t,e,n){if(vu(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 vi(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 Ke(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 Ee(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function bl(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function xu(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 Sl(t){if(!t._valueTracker){var e=bl(t)?"checked":"value";t._valueTracker=xu(t,e,""+t[e])}}function _s(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=bl(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function xi(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 Us=/[\n"\\]/g;function ve(t){return t.replace(Us,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Tl(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=""+Ee(e)):t.value!==""+Ee(e)&&(t.value=""+Ee(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Re(t,f,Ee(e)):n!=null?Re(t,f,Ee(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=""+Ee(y):t.removeAttribute("name")}function Vn(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)){Sl(t);return}n=n!=null?""+Ee(n):"",e=e!=null?""+Ee(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),Sl(t)}function Re(t,e,n){e==="number"&&xi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function aa(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=""+Ee(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 bi(t,e,n){if(e!=null&&(e=""+Ee(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ee(n):""}function Bs(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(u(92));if($t(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Ee(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Sl(t)}function xe(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Al=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 D(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||Al.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function tt(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(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&&D(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&D(t,r,e[r])}function St(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 gn=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"]]),Si=/^[\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 _n(t){return Si.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Un(){}var bu=null;function Su(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ti=null,Ai=null;function $f(t){var e=On(t);if(e&&(t=e.stateNode)){var n=t[ee]||null;t:switch(t=e.stateNode,e.type){case"input":if(Tl(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="'+ve(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[ee]||null;if(!s)throw Error(u(90));Tl(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&&_s(a)}break t;case"textarea":bi(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&aa(t,!!n.multiple,e,!1)}}}var Tu=!1;function If(t,e,n){if(Tu)return t(e,n);Tu=!0;try{var a=t(e);return a}finally{if(Tu=!1,(Ti!==null||Ai!==null)&&(wo(),Ti&&(e=Ti,t=Ai,Ai=Ti=null,$f(e),t)))for(e=0;e<t.length;e++)$f(t[e])}}function El(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ee]||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(u(231,e,typeof n));return n}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Au=!1;if(Bn)try{var wl={};Object.defineProperty(wl,"passive",{get:function(){Au=!0}}),window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch{Au=!1}var ia=null,Eu=null,Ls=null;function th(){if(Ls)return Ls;var t,e=Eu,n=e.length,a,s="value"in ia?ia.value:ia.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 Ls=s.slice(t,1<a?1-a:void 0)}function Hs(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 Ys(){return!0}function eh(){return!1}function we(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)?Ys:eh,this.isPropagationStopped=eh,this}return b(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=Ys)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ys)},persist:function(){},isPersistent:Ys}),e}var Ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qs=we(Ha),Cl=b({},Ha,{view:0,detail:0}),Jg=we(Cl),wu,Cu,Ml,Gs=b({},Cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,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!==Ml&&(Ml&&t.type==="mousemove"?(wu=t.screenX-Ml.screenX,Cu=t.screenY-Ml.screenY):Cu=wu=0,Ml=t),wu)},movementY:function(t){return"movementY"in t?t.movementY:Cu}}),nh=we(Gs),Fg=b({},Gs,{dataTransfer:0}),Pg=we(Fg),Wg=b({},Cl,{relatedTarget:0}),Mu=we(Wg),$g=b({},Ha,{animationName:0,elapsedTime:0,pseudoElement:0}),Ig=we($g),tv=b({},Ha,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ev=we(tv),nv=b({},Ha,{data:0}),ah=we(nv),av={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iv={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"},lv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=lv[t])?!!e[t]:!1}function Du(){return sv}var ov=b({},Cl,{key:function(t){if(t.key){var e=av[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Hs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?iv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,charCode:function(t){return t.type==="keypress"?Hs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Hs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),uv=we(ov),rv=b({},Gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ih=we(rv),cv=b({},Cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),fv=we(cv),hv=b({},Ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),dv=we(hv),mv=b({},Gs,{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}),pv=we(mv),yv=b({},Ha,{newState:0,oldState:0}),gv=we(yv),vv=[9,13,27,32],ju=Bn&&"CompositionEvent"in window,Dl=null;Bn&&"documentMode"in document&&(Dl=document.documentMode);var xv=Bn&&"TextEvent"in window&&!Dl,lh=Bn&&(!ju||Dl&&8<Dl&&11>=Dl),sh=" ",oh=!1;function uh(t,e){switch(t){case"keyup":return vv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ei=!1;function bv(t,e){switch(t){case"compositionend":return rh(e);case"keypress":return e.which!==32?null:(oh=!0,sh);case"textInput":return t=e.data,t===sh&&oh?null:t;default:return null}}function Sv(t,e){if(Ei)return t==="compositionend"||!ju&&uh(t,e)?(t=th(),Ls=Eu=ia=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 lh&&e.locale!=="ko"?null:e.data;default:return null}}var Tv={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 ch(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Tv[t.type]:e==="textarea"}function fh(t,e,n,a){Ti?Ai?Ai.push(a):Ai=[a]:Ti=a,e=zo(e,"onChange"),0<e.length&&(n=new qs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var jl=null,Nl=null;function Av(t){km(t,0)}function Xs(t){var e=zn(t);if(_s(e))return t}function hh(t,e){if(t==="change")return e}var dh=!1;if(Bn){var Nu;if(Bn){var Ou="oninput"in document;if(!Ou){var mh=document.createElement("div");mh.setAttribute("oninput","return;"),Ou=typeof mh.oninput=="function"}Nu=Ou}else Nu=!1;dh=Nu&&(!document.documentMode||9<document.documentMode)}function ph(){jl&&(jl.detachEvent("onpropertychange",yh),Nl=jl=null)}function yh(t){if(t.propertyName==="value"&&Xs(Nl)){var e=[];fh(e,Nl,t,Su(t)),If(Av,e)}}function Ev(t,e,n){t==="focusin"?(ph(),jl=e,Nl=n,jl.attachEvent("onpropertychange",yh)):t==="focusout"&&ph()}function wv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xs(Nl)}function Cv(t,e){if(t==="click")return Xs(e)}function Mv(t,e){if(t==="input"||t==="change")return Xs(e)}function Dv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ve=typeof Object.is=="function"?Object.is:Dv;function Ol(t,e){if(Ve(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(!ze.call(e,s)||!Ve(t[s],e[s]))return!1}return!0}function gh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function vh(t,e){var n=gh(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=gh(n)}}function xh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?xh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function bh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=xi(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=xi(t.document)}return e}function zu(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 jv=Bn&&"documentMode"in document&&11>=document.documentMode,wi=null,Ru=null,zl=null,Vu=!1;function Sh(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vu||wi==null||wi!==xi(a)||(a=wi,"selectionStart"in a&&zu(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}),zl&&Ol(zl,a)||(zl=a,a=zo(Ru,"onSelect"),0<a.length&&(e=new qs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=wi)))}function Ya(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ci={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")},_u={},Th={};Bn&&(Th=document.createElement("div").style,"AnimationEvent"in window||(delete Ci.animationend.animation,delete Ci.animationiteration.animation,delete Ci.animationstart.animation),"TransitionEvent"in window||delete Ci.transitionend.transition);function qa(t){if(_u[t])return _u[t];if(!Ci[t])return t;var e=Ci[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Th)return _u[t]=e[n];return t}var Ah=qa("animationend"),Eh=qa("animationiteration"),wh=qa("animationstart"),Nv=qa("transitionrun"),Ov=qa("transitionstart"),zv=qa("transitioncancel"),Ch=qa("transitionend"),Mh=new Map,Uu="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(" ");Uu.push("scrollEnd");function on(t,e){Mh.set(t,e),Rn(e,[t])}var Ks=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)},Qe=[],Mi=0,Bu=0;function Qs(){for(var t=Mi,e=Bu=Mi=0;e<t;){var n=Qe[e];Qe[e++]=null;var a=Qe[e];Qe[e++]=null;var s=Qe[e];Qe[e++]=null;var r=Qe[e];if(Qe[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&&Dh(n,s,r)}}function Zs(t,e,n,a){Qe[Mi++]=t,Qe[Mi++]=e,Qe[Mi++]=n,Qe[Mi++]=a,Bu|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Lu(t,e,n,a){return Zs(t,e,n,a),ks(t)}function Ga(t,e){return Zs(t,null,null,e),ks(t)}function Dh(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-ge(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function ks(t){if(50<ts)throw ts=0,kr=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Di={};function Rv(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 _e(t,e,n,a){return new Rv(t,e,n,a)}function Hu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ln(t,e){var n=t.alternate;return n===null?(n=_e(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 jh(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 Js(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")Hu(t)&&(f=1);else if(typeof t=="string")f=L1(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case st:return t=_e(31,n,e,s),t.elementType=st,t.lanes=r,t;case Y:return Xa(n.children,s,r,e);case X:f=8,s|=24;break;case q:return t=_e(12,n,e,s|2),t.elementType=q,t.lanes=r,t;case Z:return t=_e(13,n,e,s),t.elementType=Z,t.lanes=r,t;case lt:return t=_e(19,n,e,s),t.elementType=lt,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:f=10;break t;case K:f=9;break t;case J:f=11;break t;case k:f=14;break t;case F:f=16,a=null;break t}f=29,n=Error(u(130,t===null?"null":typeof t,"")),a=null}return e=_e(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function Xa(t,e,n,a){return t=_e(7,t,a,e),t.lanes=n,t}function Yu(t,e,n){return t=_e(6,t,null,e),t.lanes=n,t}function Nh(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function qu(t,e,n){return e=_e(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Oh=new WeakMap;function Ze(t,e){if(typeof t=="object"&&t!==null){var n=Oh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ta(e)},Oh.set(t,e),e)}return{value:t,source:e,stack:ta(e)}}var ji=[],Ni=0,Fs=null,Rl=0,ke=[],Je=0,la=null,vn=1,xn="";function Hn(t,e){ji[Ni++]=Rl,ji[Ni++]=Fs,Fs=t,Rl=e}function zh(t,e,n){ke[Je++]=vn,ke[Je++]=xn,ke[Je++]=la,la=t;var a=vn;t=xn;var s=32-ge(a)-1;a&=~(1<<s),n+=1;var r=32-ge(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,vn=1<<32-ge(e)+s|n<<s|a,xn=r+t}else vn=1<<r|n<<s|a,xn=t}function Gu(t){t.return!==null&&(Hn(t,1),zh(t,1,0))}function Xu(t){for(;t===Fs;)Fs=ji[--Ni],ji[Ni]=null,Rl=ji[--Ni],ji[Ni]=null;for(;t===la;)la=ke[--Je],ke[Je]=null,xn=ke[--Je],ke[Je]=null,vn=ke[--Je],ke[Je]=null}function Rh(t,e){ke[Je++]=vn,ke[Je++]=xn,ke[Je++]=la,vn=e.id,xn=e.overflow,la=t}var oe=null,_t=null,xt=!1,sa=null,Fe=!1,Ku=Error(u(519));function oa(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vl(Ze(e,t)),Ku}function Vh(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Vt]=t,e[ee]=a,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<ns.length;n++)pt(ns[n],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),Vn(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),Bs(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||Wm(e.textContent,n)?(a.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),a.onScroll!=null&&pt("scroll",e),a.onScrollEnd!=null&&pt("scrollend",e),a.onClick!=null&&(e.onclick=Un),e=!0):e=!1,e||oa(t,!0)}function _h(t){for(oe=t.return;oe;)switch(oe.tag){case 5:case 31:case 13:Fe=!1;return;case 27:case 3:Fe=!0;return;default:oe=oe.return}}function Oi(t){if(t!==oe)return!1;if(!xt)return _h(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")||uc(t.type,t.memoizedProps)),n=!n),n&&_t&&oa(t),_h(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=sp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));_t=sp(t)}else e===27?(e=_t,Sa(t.type)?(t=dc,dc=null,_t=t):_t=e):_t=oe?We(t.stateNode.nextSibling):null;return!0}function Ka(){_t=oe=null,xt=!1}function Qu(){var t=sa;return t!==null&&(je===null?je=t:je.push.apply(je,t),sa=null),t}function Vl(t){sa===null?sa=[t]:sa.push(t)}var Zu=E(null),Qa=null,Yn=null;function ua(t,e,n){Q(Zu,e._currentValue),e._currentValue=n}function qn(t){t._currentValue=Zu.current,U(Zu)}function ku(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 Ju(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 S=0;S<e.length;S++)if(y.context===e[S]){r.lanes|=n,y=r.alternate,y!==null&&(y.lanes|=n),ku(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(u(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),ku(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 zi(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(u(387));if(f=f.memoizedProps,f!==null){var y=s.type;Ve(s.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(s===dt.current){if(f=s.alternate,f===null)throw Error(u(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(os):t=[os])}s=s.return}t!==null&&Ju(e,t,n,a),e.flags|=262144}function Ps(t){for(t=t.firstContext;t!==null;){if(!Ve(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Za(t){Qa=t,Yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return Uh(Qa,t)}function Ws(t,e){return Qa===null&&Za(t),Uh(t,e)}function Uh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Yn===null){if(t===null)throw Error(u(308));Yn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Yn=Yn.next=e;return n}var Vv=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()})}},_v=i.unstable_scheduleCallback,Uv=i.unstable_NormalPriority,kt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fu(){return{controller:new Vv,data:new Map,refCount:0}}function _l(t){t.refCount--,t.refCount===0&&_v(Uv,function(){t.controller.abort()})}var Ul=null,Pu=0,Ri=0,Vi=null;function Bv(t,e){if(Ul===null){var n=Ul=[];Pu=0,Ri=Ir(),Vi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Pu++,e.then(Bh,Bh),e}function Bh(){if(--Pu===0&&Ul!==null){Vi!==null&&(Vi.status="fulfilled");var t=Ul;Ul=null,Ri=0,Vi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Lv(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 Lh=R.S;R.S=function(t,e){Sm=he(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Bv(t,e),Lh!==null&&Lh(t,e)};var ka=E(null);function Wu(){var t=ka.current;return t!==null?t:zt.pooledCache}function $s(t,e){e===null?Q(ka,ka.current):Q(ka,e.pool)}function Hh(){var t=Wu();return t===null?null:{parent:kt._currentValue,pool:t}}var _i=Error(u(460)),$u=Error(u(474)),Is=Error(u(542)),to={then:function(){}};function Yh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function qh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Un,Un),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Xh(t),t;default:if(typeof e.status=="string")e.then(Un,Un);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(u(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,Xh(t),t}throw Fa=e,_i}}function Ja(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Fa=n,_i):n}}var Fa=null;function Gh(){if(Fa===null)throw Error(u(459));var t=Fa;return Fa=null,t}function Xh(t){if(t===_i||t===Is)throw Error(u(483))}var Ui=null,Bl=0;function eo(t){var e=Bl;return Bl+=1,Ui===null&&(Ui=[]),qh(Ui,t,e)}function Ll(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function no(t,e){throw e.$$typeof===T?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Kh(t){function e(w,A){if(t){var C=w.deletions;C===null?(w.deletions=[A],w.flags|=16):C.push(A)}}function n(w,A){if(!t)return null;for(;A!==null;)e(w,A),A=A.sibling;return null}function a(w){for(var A=new Map;w!==null;)w.key!==null?A.set(w.key,w):A.set(w.index,w),w=w.sibling;return A}function s(w,A){return w=Ln(w,A),w.index=0,w.sibling=null,w}function r(w,A,C){return w.index=C,t?(C=w.alternate,C!==null?(C=C.index,C<A?(w.flags|=67108866,A):C):(w.flags|=67108866,A)):(w.flags|=1048576,A)}function f(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function y(w,A,C,B){return A===null||A.tag!==6?(A=Yu(C,w.mode,B),A.return=w,A):(A=s(A,C),A.return=w,A)}function S(w,A,C,B){var nt=C.type;return nt===Y?_(w,A,C.props.children,B,C.key):A!==null&&(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===F&&Ja(nt)===A.type)?(A=s(A,C.props),Ll(A,C),A.return=w,A):(A=Js(C.type,C.key,C.props,null,w.mode,B),Ll(A,C),A.return=w,A)}function M(w,A,C,B){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=qu(C,w.mode,B),A.return=w,A):(A=s(A,C.children||[]),A.return=w,A)}function _(w,A,C,B,nt){return A===null||A.tag!==7?(A=Xa(C,w.mode,B,nt),A.return=w,A):(A=s(A,C),A.return=w,A)}function L(w,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Yu(""+A,w.mode,C),A.return=w,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return C=Js(A.type,A.key,A.props,null,w.mode,C),Ll(C,A),C.return=w,C;case V:return A=qu(A,w.mode,C),A.return=w,A;case F:return A=Ja(A),L(w,A,C)}if($t(A)||Lt(A))return A=Xa(A,w.mode,C,null),A.return=w,A;if(typeof A.then=="function")return L(w,eo(A),C);if(A.$$typeof===G)return L(w,Ws(w,A),C);no(w,A)}return null}function j(w,A,C,B){var nt=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return nt!==null?null:y(w,A,""+C,B);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case N:return C.key===nt?S(w,A,C,B):null;case V:return C.key===nt?M(w,A,C,B):null;case F:return C=Ja(C),j(w,A,C,B)}if($t(C)||Lt(C))return nt!==null?null:_(w,A,C,B,null);if(typeof C.then=="function")return j(w,A,eo(C),B);if(C.$$typeof===G)return j(w,A,Ws(w,C),B);no(w,C)}return null}function O(w,A,C,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return w=w.get(C)||null,y(A,w,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case N:return w=w.get(B.key===null?C:B.key)||null,S(A,w,B,nt);case V:return w=w.get(B.key===null?C:B.key)||null,M(A,w,B,nt);case F:return B=Ja(B),O(w,A,C,B,nt)}if($t(B)||Lt(B))return w=w.get(C)||null,_(A,w,B,nt,null);if(typeof B.then=="function")return O(w,A,C,eo(B),nt);if(B.$$typeof===G)return O(w,A,C,Ws(A,B),nt);no(A,B)}return null}function W(w,A,C,B){for(var nt=null,Tt=null,et=A,ft=A=0,gt=null;et!==null&&ft<C.length;ft++){et.index>ft?(gt=et,et=null):gt=et.sibling;var At=j(w,et,C[ft],B);if(At===null){et===null&&(et=gt);break}t&&et&&At.alternate===null&&e(w,et),A=r(At,A,ft),Tt===null?nt=At:Tt.sibling=At,Tt=At,et=gt}if(ft===C.length)return n(w,et),xt&&Hn(w,ft),nt;if(et===null){for(;ft<C.length;ft++)et=L(w,C[ft],B),et!==null&&(A=r(et,A,ft),Tt===null?nt=et:Tt.sibling=et,Tt=et);return xt&&Hn(w,ft),nt}for(et=a(et);ft<C.length;ft++)gt=O(et,w,ft,C[ft],B),gt!==null&&(t&&gt.alternate!==null&&et.delete(gt.key===null?ft:gt.key),A=r(gt,A,ft),Tt===null?nt=gt:Tt.sibling=gt,Tt=gt);return t&&et.forEach(function(Ca){return e(w,Ca)}),xt&&Hn(w,ft),nt}function it(w,A,C,B){if(C==null)throw Error(u(151));for(var nt=null,Tt=null,et=A,ft=A=0,gt=null,At=C.next();et!==null&&!At.done;ft++,At=C.next()){et.index>ft?(gt=et,et=null):gt=et.sibling;var Ca=j(w,et,At.value,B);if(Ca===null){et===null&&(et=gt);break}t&&et&&Ca.alternate===null&&e(w,et),A=r(Ca,A,ft),Tt===null?nt=Ca:Tt.sibling=Ca,Tt=Ca,et=gt}if(At.done)return n(w,et),xt&&Hn(w,ft),nt;if(et===null){for(;!At.done;ft++,At=C.next())At=L(w,At.value,B),At!==null&&(A=r(At,A,ft),Tt===null?nt=At:Tt.sibling=At,Tt=At);return xt&&Hn(w,ft),nt}for(et=a(et);!At.done;ft++,At=C.next())At=O(et,w,ft,At.value,B),At!==null&&(t&&At.alternate!==null&&et.delete(At.key===null?ft:At.key),A=r(At,A,ft),Tt===null?nt=At:Tt.sibling=At,Tt=At);return t&&et.forEach(function(F1){return e(w,F1)}),xt&&Hn(w,ft),nt}function Nt(w,A,C,B){if(typeof C=="object"&&C!==null&&C.type===Y&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case N:t:{for(var nt=C.key;A!==null;){if(A.key===nt){if(nt=C.type,nt===Y){if(A.tag===7){n(w,A.sibling),B=s(A,C.props.children),B.return=w,w=B;break t}}else if(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===F&&Ja(nt)===A.type){n(w,A.sibling),B=s(A,C.props),Ll(B,C),B.return=w,w=B;break t}n(w,A);break}else e(w,A);A=A.sibling}C.type===Y?(B=Xa(C.props.children,w.mode,B,C.key),B.return=w,w=B):(B=Js(C.type,C.key,C.props,null,w.mode,B),Ll(B,C),B.return=w,w=B)}return f(w);case V:t:{for(nt=C.key;A!==null;){if(A.key===nt)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(w,A.sibling),B=s(A,C.children||[]),B.return=w,w=B;break t}else{n(w,A);break}else e(w,A);A=A.sibling}B=qu(C,w.mode,B),B.return=w,w=B}return f(w);case F:return C=Ja(C),Nt(w,A,C,B)}if($t(C))return W(w,A,C,B);if(Lt(C)){if(nt=Lt(C),typeof nt!="function")throw Error(u(150));return C=nt.call(C),it(w,A,C,B)}if(typeof C.then=="function")return Nt(w,A,eo(C),B);if(C.$$typeof===G)return Nt(w,A,Ws(w,C),B);no(w,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(w,A.sibling),B=s(A,C),B.return=w,w=B):(n(w,A),B=Yu(C,w.mode,B),B.return=w,w=B),f(w)):n(w,A)}return function(w,A,C,B){try{Bl=0;var nt=Nt(w,A,C,B);return Ui=null,nt}catch(et){if(et===_i||et===Is)throw et;var Tt=_e(29,et,null,w.mode);return Tt.lanes=B,Tt.return=w,Tt}}}var Pa=Kh(!0),Qh=Kh(!1),ra=!1;function Iu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tr(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 ca(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function fa(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Et&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=ks(t),Dh(t,null,n),e}return Zs(t,a,e,n),ks(t)}function Hl(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,pl(t,n)}}function er(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 nr=!1;function Yl(){if(nr){var t=Vi;if(t!==null)throw t}}function ql(t,e,n,a){nr=!1;var s=t.updateQueue;ra=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var S=y,M=S.next;S.next=null,f===null?r=M:f.next=M,f=S;var _=t.alternate;_!==null&&(_=_.updateQueue,y=_.lastBaseUpdate,y!==f&&(y===null?_.firstBaseUpdate=M:y.next=M,_.lastBaseUpdate=S))}if(r!==null){var L=s.baseState;f=0,_=M=S=null,y=r;do{var j=y.lane&-536870913,O=j!==y.lane;if(O?(yt&j)===j:(a&j)===j){j!==0&&j===Ri&&(nr=!0),_!==null&&(_=_.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var W=t,it=y;j=e;var Nt=n;switch(it.tag){case 1:if(W=it.payload,typeof W=="function"){L=W.call(Nt,L,j);break t}L=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=it.payload,j=typeof W=="function"?W.call(Nt,L,j):W,j==null)break t;L=b({},L,j);break t;case 2:ra=!0}}j=y.callback,j!==null&&(t.flags|=64,O&&(t.flags|=8192),O=s.callbacks,O===null?s.callbacks=[j]:O.push(j))}else O={lane:j,tag:y.tag,payload:y.payload,callback:y.callback,next:null},_===null?(M=_=O,S=L):_=_.next=O,f|=j;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);_===null&&(S=L),s.baseState=S,s.firstBaseUpdate=M,s.lastBaseUpdate=_,r===null&&(s.shared.lanes=0),ya|=f,t.lanes=f,t.memoizedState=L}}function Zh(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function kh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Zh(n[t],e)}var Bi=E(null),ao=E(0);function Jh(t,e){t=Pn,Q(ao,t),Q(Bi,e),Pn=t|e.baseLanes}function ar(){Q(ao,Pn),Q(Bi,Bi.current)}function ir(){Pn=ao.current,U(Bi),U(ao)}var Ue=E(null),Pe=null;function ha(t){var e=t.alternate;Q(Qt,Qt.current&1),Q(Ue,t),Pe===null&&(e===null||Bi.current!==null||e.memoizedState!==null)&&(Pe=t)}function lr(t){Q(Qt,Qt.current),Q(Ue,t),Pe===null&&(Pe=t)}function Fh(t){t.tag===22?(Q(Qt,Qt.current),Q(Ue,t),Pe===null&&(Pe=t)):da()}function da(){Q(Qt,Qt.current),Q(Ue,Ue.current)}function Be(t){U(Ue),Pe===t&&(Pe=null),U(Qt)}var Qt=E(0);function io(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fc(n)||hc(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 Gn=0,ct=null,Dt=null,Jt=null,lo=!1,Li=!1,Wa=!1,so=0,Gl=0,Hi=null,Hv=0;function qt(){throw Error(u(321))}function sr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ve(t[n],e[n]))return!1;return!0}function or(t,e,n,a,s,r){return Gn=r,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?zd:Tr,Wa=!1,r=n(a,s),Wa=!1,Li&&(r=Wh(e,n,a,s)),Ph(t),r}function Ph(t){R.H=Ql;var e=Dt!==null&&Dt.next!==null;if(Gn=0,Jt=Dt=ct=null,lo=!1,Gl=0,Hi=null,e)throw Error(u(300));t===null||Ft||(t=t.dependencies,t!==null&&Ps(t)&&(Ft=!0))}function Wh(t,e,n,a){ct=t;var s=0;do{if(Li&&(Hi=null),Gl=0,Li=!1,25<=s)throw Error(u(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)}R.H=Rd,r=e(n,a)}while(Li);return r}function Yv(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?Xl(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ct.flags|=1024),e}function ur(){var t=so!==0;return so=0,t}function rr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function cr(t){if(lo){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}lo=!1}Gn=0,Jt=Dt=ct=null,Li=!1,Gl=so=0,Hi=null}function be(){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 Zt(){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(u(467)):Error(u(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 oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xl(t){var e=Gl;return Gl+=1,Hi===null&&(Hi=[]),t=qh(Hi,t,e),e=ct,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?zd:Tr),t}function uo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Xl(t);if(t.$$typeof===G)return ue(t)}throw Error(u(438,String(t)))}function fr(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=oo(),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]=bt;return e.index++,n}function Xn(t,e){return typeof e=="function"?e(t):e}function ro(t){var e=Zt();return hr(e,Dt,t)}function hr(t,e,n){var a=t.queue;if(a===null)throw Error(u(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,S=null,M=e,_=!1;do{var L=M.lane&-536870913;if(L!==M.lane?(yt&L)===L:(Gn&L)===L){var j=M.revertLane;if(j===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),L===Ri&&(_=!0);else if((Gn&j)===j){M=M.next,j===Ri&&(_=!0);continue}else L={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(y=S=L,f=r):S=S.next=L,ct.lanes|=j,ya|=j;L=M.action,Wa&&n(r,L),r=M.hasEagerState?M.eagerState:n(r,L)}else j={lane:L,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(y=S=j,f=r):S=S.next=j,ct.lanes|=L,ya|=L;M=M.next}while(M!==null&&M!==e);if(S===null?f=r:S.next=y,!Ve(r,t.memoizedState)&&(Ft=!0,_&&(n=Vi,n!==null)))throw n;t.memoizedState=r,t.baseState=f,t.baseQueue=S,a.lastRenderedState=r}return s===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function dr(t){var e=Zt(),n=e.queue;if(n===null)throw Error(u(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);Ve(r,e.memoizedState)||(Ft=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function $h(t,e,n){var a=ct,s=Zt(),r=xt;if(r){if(n===void 0)throw Error(u(407));n=n()}else n=e();var f=!Ve((Dt||s).memoizedState,n);if(f&&(s.memoizedState=n,Ft=!0),s=s.queue,yr(ed.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Jt!==null&&Jt.memoizedState.tag&1){if(a.flags|=2048,Yi(9,{destroy:void 0},td.bind(null,a,s,n,e),null),zt===null)throw Error(u(349));r||(Gn&127)!==0||Ih(a,e,n)}return n}function Ih(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=oo(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function td(t,e,n,a){e.value=n,e.getSnapshot=a,nd(e)&&ad(t)}function ed(t,e,n){return n(function(){nd(e)&&ad(t)})}function nd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ve(t,n)}catch{return!0}}function ad(t){var e=Ga(t,2);e!==null&&Ne(e,t,2)}function mr(t){var e=be();if(typeof t=="function"){var n=t;if(t=n(),Wa){an(!0);try{n()}finally{an(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:t},e}function id(t,e,n,a){return t.baseState=n,hr(t,Dt,typeof a=="function"?a:Xn)}function qv(t,e,n,a,s){if(ho(t))throw Error(u(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)}};R.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,ld(e,r)):(r.next=n.next,e.pending=n.next=r)}}function ld(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=R.T,f={};R.T=f;try{var y=n(s,a),S=R.S;S!==null&&S(f,y),sd(t,e,y)}catch(M){pr(t,e,M)}finally{r!==null&&f.types!==null&&(r.types=f.types),R.T=r}}else try{r=n(s,a),sd(t,e,r)}catch(M){pr(t,e,M)}}function sd(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){od(t,e,a)},function(a){return pr(t,e,a)}):od(t,e,n)}function od(t,e,n){e.status="fulfilled",e.value=n,ud(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,ld(t,n)))}function pr(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,ud(e),e=e.next;while(e!==a)}t.action=null}function ud(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function rd(t,e){return e}function cd(t,e){if(xt){var n=zt.formState;if(n!==null){t:{var a=ct;if(xt){if(_t){e:{for(var s=_t,r=Fe;s.nodeType!==8;){if(!r){s=null;break e}if(s=We(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){_t=We(s.nextSibling),a=s.data==="F!";break t}}oa(a)}a=!1}a&&(e=n[0])}}return n=be(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rd,lastRenderedState:e},n.queue=a,n=jd.bind(null,ct,a),a.dispatch=n,a=mr(!1),r=Sr.bind(null,ct,!1,a.queue),a=be(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=qv.bind(null,ct,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function fd(t){var e=Zt();return hd(e,Dt,t)}function hd(t,e,n){if(e=hr(t,e,rd)[0],t=ro(Xn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Xl(e)}catch(f){throw f===_i?Is:f}else a=e;e=Zt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Yi(9,{destroy:void 0},Gv.bind(null,s,n),null)),[a,r,t]}function Gv(t,e){t.action=e}function dd(t){var e=Zt(),n=Dt;if(n!==null)return hd(e,n,t);Zt(),e=e.memoizedState,n=Zt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Yi(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=oo(),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 md(){return Zt().memoizedState}function co(t,e,n,a){var s=be();ct.flags|=t,s.memoizedState=Yi(1|e,{destroy:void 0},n,a===void 0?null:a)}function fo(t,e,n,a){var s=Zt();a=a===void 0?null:a;var r=s.memoizedState.inst;Dt!==null&&a!==null&&sr(a,Dt.memoizedState.deps)?s.memoizedState=Yi(e,r,n,a):(ct.flags|=t,s.memoizedState=Yi(1|e,r,n,a))}function pd(t,e){co(8390656,8,t,e)}function yr(t,e){fo(2048,8,t,e)}function Xv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=oo(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function yd(t){var e=Zt().memoizedState;return Xv({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function gd(t,e){return fo(4,2,t,e)}function vd(t,e){return fo(4,4,t,e)}function xd(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 bd(t,e,n){n=n!=null?n.concat([t]):null,fo(4,4,xd.bind(null,e,t),n)}function gr(){}function Sd(t,e){var n=Zt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&sr(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Td(t,e){var n=Zt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&sr(e,a[1]))return a[0];if(a=t(),Wa){an(!0);try{t()}finally{an(!1)}}return n.memoizedState=[a,e],a}function vr(t,e,n){return n===void 0||(Gn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Am(),ct.lanes|=t,ya|=t,n)}function Ad(t,e,n,a){return Ve(n,e)?n:Bi.current!==null?(t=vr(t,n,a),Ve(t,e)||(Ft=!0),t):(Gn&42)===0||(Gn&1073741824)!==0&&(yt&261930)===0?(Ft=!0,t.memoizedState=n):(t=Am(),ct.lanes|=t,ya|=t,e)}function Ed(t,e,n,a,s){var r=H.p;H.p=r!==0&&8>r?r:8;var f=R.T,y={};R.T=y,Sr(t,!1,e,n);try{var S=s(),M=R.S;if(M!==null&&M(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var _=Lv(S,a);Kl(t,e,_,Ye(t))}else Kl(t,e,a,Ye(t))}catch(L){Kl(t,e,{then:function(){},status:"rejected",reason:L},Ye())}finally{H.p=r,f!==null&&y.types!==null&&(f.types=y.types),R.T=f}}function Kv(){}function xr(t,e,n,a){if(t.tag!==5)throw Error(u(476));var s=wd(t).queue;Ed(t,s,e,$,n===null?Kv:function(){return Cd(t),n(a)})}function wd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:$},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Cd(t){var e=wd(t);e.next===null&&(e=t.alternate.memoizedState),Kl(t,e.next.queue,{},Ye())}function br(){return ue(os)}function Md(){return Zt().memoizedState}function Dd(){return Zt().memoizedState}function Qv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ye();t=ca(n);var a=fa(e,t,n);a!==null&&(Ne(a,e,n),Hl(a,e,n)),e={cache:Fu()},t.payload=e;return}e=e.return}}function Zv(t,e,n){var a=Ye();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ho(t)?Nd(e,n):(n=Lu(t,e,n,a),n!==null&&(Ne(n,t,a),Od(n,e,a)))}function jd(t,e,n){var a=Ye();Kl(t,e,n,a)}function Kl(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ho(t))Nd(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,Ve(y,f))return Zs(t,e,s,0),zt===null&&Qs(),!1}catch{}if(n=Lu(t,e,s,a),n!==null)return Ne(n,t,a),Od(n,e,a),!0}return!1}function Sr(t,e,n,a){if(a={lane:2,revertLane:Ir(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ho(t)){if(e)throw Error(u(479))}else e=Lu(t,n,a,2),e!==null&&Ne(e,t,2)}function ho(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Nd(t,e){Li=lo=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Od(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,pl(t,n)}}var Ql={readContext:ue,use:uo,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};Ql.useEffectEvent=qt;var zd={readContext:ue,use:uo,useCallback:function(t,e){return be().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:pd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,co(4194308,4,xd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return co(4194308,4,t,e)},useInsertionEffect:function(t,e){co(4,2,t,e)},useMemo:function(t,e){var n=be();e=e===void 0?null:e;var a=t();if(Wa){an(!0);try{t()}finally{an(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=be();if(n!==void 0){var s=n(e);if(Wa){an(!0);try{n(e)}finally{an(!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=Zv.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=be();return t={current:t},e.memoizedState=t},useState:function(t){t=mr(t);var e=t.queue,n=jd.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:gr,useDeferredValue:function(t,e){var n=be();return vr(n,t,e)},useTransition:function(){var t=mr(!1);return t=Ed.bind(null,ct,t.queue,!0,!1),be().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,s=be();if(xt){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),zt===null)throw Error(u(349));(yt&127)!==0||Ih(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,pd(ed.bind(null,a,r,t),[t]),a.flags|=2048,Yi(9,{destroy:void 0},td.bind(null,a,r,n,e),null),n},useId:function(){var t=be(),e=zt.identifierPrefix;if(xt){var n=xn,a=vn;n=(a&~(1<<32-ge(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=so++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Hv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:br,useFormState:cd,useActionState:cd,useOptimistic:function(t){var e=be();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Sr.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:fr,useCacheRefresh:function(){return be().memoizedState=Qv.bind(null,ct)},useEffectEvent:function(t){var e=be(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Tr={readContext:ue,use:uo,useCallback:Sd,useContext:ue,useEffect:yr,useImperativeHandle:bd,useInsertionEffect:gd,useLayoutEffect:vd,useMemo:Td,useReducer:ro,useRef:md,useState:function(){return ro(Xn)},useDebugValue:gr,useDeferredValue:function(t,e){var n=Zt();return Ad(n,Dt.memoizedState,t,e)},useTransition:function(){var t=ro(Xn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:$h,useId:Md,useHostTransitionStatus:br,useFormState:fd,useActionState:fd,useOptimistic:function(t,e){var n=Zt();return id(n,Dt,t,e)},useMemoCache:fr,useCacheRefresh:Dd};Tr.useEffectEvent=yd;var Rd={readContext:ue,use:uo,useCallback:Sd,useContext:ue,useEffect:yr,useImperativeHandle:bd,useInsertionEffect:gd,useLayoutEffect:vd,useMemo:Td,useReducer:dr,useRef:md,useState:function(){return dr(Xn)},useDebugValue:gr,useDeferredValue:function(t,e){var n=Zt();return Dt===null?vr(n,t,e):Ad(n,Dt.memoizedState,t,e)},useTransition:function(){var t=dr(Xn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:$h,useId:Md,useHostTransitionStatus:br,useFormState:dd,useActionState:dd,useOptimistic:function(t,e){var n=Zt();return Dt!==null?id(n,Dt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:fr,useCacheRefresh:Dd};Rd.useEffectEvent=yd;function Ar(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Er={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ye(),s=ca(a);s.payload=e,n!=null&&(s.callback=n),e=fa(t,s,a),e!==null&&(Ne(e,t,a),Hl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ye(),s=ca(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=fa(t,s,a),e!==null&&(Ne(e,t,a),Hl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ye(),a=ca(n);a.tag=2,e!=null&&(a.callback=e),e=fa(t,a,n),e!==null&&(Ne(e,t,n),Hl(e,t,n))}};function Vd(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?!Ol(n,a)||!Ol(s,r):!0}function _d(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&&Er.enqueueReplaceState(e,e.state,null)}function $a(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=b({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Ud(t){Ks(t)}function Bd(t){console.error(t)}function Ld(t){Ks(t)}function mo(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Hd(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 wr(t,e,n){return n=ca(n),n.tag=3,n.payload={element:null},n.callback=function(){mo(t,e)},n}function Yd(t){return t=ca(t),t.tag=3,t}function qd(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(){Hd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Hd(e,n,a),typeof s!="function"&&(ga===null?ga=new Set([this]):ga.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&&zi(e,n,s,!0),n=Ue.current,n!==null){switch(n.tag){case 31:case 13:return Pe===null?Co():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===to?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Pr(t,a,s)),!1;case 22:return n.flags|=65536,a===to?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)),Pr(t,a,s)),!1}throw Error(u(435,n.tag))}return Pr(t,a,s),Co(),!1}if(xt)return e=Ue.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==Ku&&(t=Error(u(422),{cause:a}),Vl(Ze(t,n)))):(a!==Ku&&(e=Error(u(423),{cause:a}),Vl(Ze(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Ze(a,n),s=wr(t.stateNode,a,s),er(t,s),Gt!==4&&(Gt=2)),!1;var r=Error(u(520),{cause:a});if(r=Ze(r,n),Il===null?Il=[r]:Il.push(r),Gt!==4&&(Gt=2),e===null)return!0;a=Ze(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=wr(n.stateNode,a,t),er(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"&&(ga===null||!ga.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Yd(s),qd(s,t,n,a),er(n,s),!1}n=n.return}while(n!==null);return!1}var Cr=Error(u(461)),Ft=!1;function re(t,e,n,a){e.child=t===null?Qh(e,null,n,a):Pa(e,t.child,n,a)}function Gd(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 Za(e),a=or(t,e,n,f,r,s),y=ur(),t!==null&&!Ft?(rr(t,e,s),Kn(t,e,s)):(xt&&y&&Gu(e),e.flags|=1,re(t,e,a,s),e.child)}function Xd(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!Hu(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Kd(t,e,r,a,s)):(t=Js(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Vr(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:Ol,n(f,a)&&t.ref===e.ref)return Kn(t,e,s)}return e.flags|=1,t=Ln(r,a),t.ref=e.ref,t.return=e,e.child=t}function Kd(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(Ol(r,a)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=a=r,Vr(t,s))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,Kn(t,e,s)}return Mr(t,e,n,a,s)}function Qd(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 Zd(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&$s(e,r!==null?r.cachePool:null),r!==null?Jh(e,r):ar(),Fh(e);else return a=e.lanes=536870912,Zd(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?($s(e,r.cachePool),Jh(e,r),da(),e.memoizedState=null):(t!==null&&$s(e,null),ar(),da());return re(t,e,s,n),e.child}function Zl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Zd(t,e,n,a,s){var r=Wu();return r=r===null?null:{parent:kt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&$s(e,null),ar(),Fh(e),t!==null&&zi(t,e,a,!0),e.childLanes=s,null}function po(t,e){return e=go({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function kd(t,e,n){return Pa(e,t.child,null,n),t=po(e,e.pendingProps),t.flags|=2,Be(e),e.memoizedState=null,t}function Jv(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=po(e,a),e.lanes=536870912,Zl(null,t);if(lr(e),(t=_t)?(t=lp(t,Fe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:la!==null?{id:vn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=Nh(t),n.return=e,e.child=n,oe=e,_t=null)):t=null,t===null)throw oa(e);return e.lanes=536870912,null}return po(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(lr(e),s)if(e.flags&256)e.flags&=-257,e=kd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Ft||zi(t,e,n,!1),s=(n&t.childLanes)!==0,Ft||s){if(a=zt,a!==null&&(f=di(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,Ga(t,f),Ne(a,t,f),Cr;Co(),e=kd(t,e,n)}else t=r.treeContext,_t=We(f.nextSibling),oe=e,xt=!0,sa=null,Fe=!1,t!==null&&Rh(e,t),e=po(e,a),e.flags|=4096;return e}return t=Ln(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function yo(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(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Mr(t,e,n,a,s){return Za(e),n=or(t,e,n,a,void 0,s),a=ur(),t!==null&&!Ft?(rr(t,e,s),Kn(t,e,s)):(xt&&a&&Gu(e),e.flags|=1,re(t,e,n,s),e.child)}function Jd(t,e,n,a,s,r){return Za(e),e.updateQueue=null,n=Wh(e,a,n,s),Ph(t),a=ur(),t!==null&&!Ft?(rr(t,e,r),Kn(t,e,r)):(xt&&a&&Gu(e),e.flags|=1,re(t,e,n,r),e.child)}function Fd(t,e,n,a,s){if(Za(e),e.stateNode===null){var r=Di,f=n.contextType;typeof f=="object"&&f!==null&&(r=ue(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Er,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},Iu(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?ue(f):Di,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&&Er.enqueueReplaceState(r,r.state,null),ql(e,a,r,s),Yl(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,S=$a(n,y);r.props=S;var M=r.context,_=n.contextType;f=Di,typeof _=="object"&&_!==null&&(f=ue(_));var L=n.getDerivedStateFromProps;_=typeof L=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,_||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||M!==f)&&_d(e,r,a,f),ra=!1;var j=e.memoizedState;r.state=j,ql(e,a,r,s),Yl(),M=e.memoizedState,y||j!==M||ra?(typeof L=="function"&&(Ar(e,n,L,a),M=e.memoizedState),(S=ra||Vd(e,n,S,a,j,M,f))?(_||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=M),r.props=a,r.state=M,r.context=f,a=S):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,tr(t,e),f=e.memoizedProps,_=$a(n,f),r.props=_,L=e.pendingProps,j=r.context,M=n.contextType,S=Di,typeof M=="object"&&M!==null&&(S=ue(M)),y=n.getDerivedStateFromProps,(M=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==L||j!==S)&&_d(e,r,a,S),ra=!1,j=e.memoizedState,r.state=j,ql(e,a,r,s),Yl();var O=e.memoizedState;f!==L||j!==O||ra||t!==null&&t.dependencies!==null&&Ps(t.dependencies)?(typeof y=="function"&&(Ar(e,n,y,a),O=e.memoizedState),(_=ra||Vd(e,n,_,a,j,O,S)||t!==null&&t.dependencies!==null&&Ps(t.dependencies))?(M||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,O,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,O,S)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=O),r.props=a,r.state=O,r.context=S,a=_):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,yo(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=Pa(e,t.child,null,s),e.child=Pa(e,null,n,s)):re(t,e,n,s),e.memoizedState=r.state,t=e.child):t=Kn(t,e,s),t}function Pd(t,e,n,a){return Ka(),e.flags|=256,re(t,e,n,a),e.child}var Dr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jr(t){return{baseLanes:t,cachePool:Hh()}}function Nr(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=He),t}function Wd(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:(Qt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(s?ha(e):da(),(t=_t)?(t=lp(t,Fe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:la!==null?{id:vn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=Nh(t),n.return=e,e.child=n,oe=e,_t=null)):t=null,t===null)throw oa(e);return hc(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(da(),s=e.mode,y=go({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=jr(n),a.childLanes=Nr(t,f,n),e.memoizedState=Dr,Zl(null,a)):(ha(e),Or(e,y))}var S=t.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(r)e.flags&256?(ha(e),e.flags&=-257,e=zr(t,e,n)):e.memoizedState!==null?(da(),e.child=t.child,e.flags|=128,e=null):(da(),y=a.fallback,s=e.mode,a=go({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,Pa(e,t.child,null,n),a=e.child,a.memoizedState=jr(n),a.childLanes=Nr(t,f,n),e.memoizedState=Dr,e=Zl(null,a));else if(ha(e),hc(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var M=f.dgst;f=M,a=Error(u(419)),a.stack="",a.digest=f,Vl({value:a,source:null,stack:null}),e=zr(t,e,n)}else if(Ft||zi(t,e,n,!1),f=(n&t.childLanes)!==0,Ft||f){if(f=zt,f!==null&&(a=di(f,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,Ga(t,a),Ne(f,t,a),Cr;fc(y)||Co(),e=zr(t,e,n)}else fc(y)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,_t=We(y.nextSibling),oe=e,xt=!0,sa=null,Fe=!1,t!==null&&Rh(e,t),e=Or(e,a.children),e.flags|=4096);return e}return s?(da(),y=a.fallback,s=e.mode,S=t.child,M=S.sibling,a=Ln(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,M!==null?y=Ln(M,y):(y=Xa(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,Zl(null,a),a=e.child,y=t.child.memoizedState,y===null?y=jr(n):(s=y.cachePool,s!==null?(S=kt._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Hh(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=Nr(t,f,n),e.memoizedState=Dr,Zl(t.child,a)):(ha(e),n=t.child,t=n.sibling,n=Ln(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 Or(t,e){return e=go({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function go(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function zr(t,e,n){return Pa(e,t.child,null,n),t=Or(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function $d(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),ku(t.return,e,n)}function Rr(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 Id(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=Qt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,Q(Qt,f),re(t,e,a,n),a=xt?Rl:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&$d(t,n,e);else if(t.tag===19)$d(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&&io(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Rr(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&&io(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Rr(e,!0,n,null,r,a);break;case"together":Rr(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Kn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ya|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(zi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=Ln(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Ln(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Vr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ps(t)))}function Fv(t,e,n){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),ua(e,kt,t.memoizedState.cache),Ka();break;case 27:case 5:nn(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:ua(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,lr(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ha(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Wd(t,e,n):(ha(e),t=Kn(t,e,n),t!==null?t.sibling:null);ha(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(zi(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return Id(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,Qd(t,e,n,e.pendingProps);case 24:ua(e,kt,t.memoizedState.cache)}return Kn(t,e,n)}function tm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!Vr(t,n)&&(e.flags&128)===0)return Ft=!1,Fv(t,e,n);Ft=(t.flags&131072)!==0}else Ft=!1,xt&&(e.flags&1048576)!==0&&zh(e,Rl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Ja(e.elementType),e.type=t,typeof t=="function")Hu(t)?(a=$a(t,a),e.tag=1,e=Fd(null,e,t,a,n)):(e.tag=0,e=Mr(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===J){e.tag=11,e=Gd(null,e,t,a,n);break t}else if(s===k){e.tag=14,e=Xd(null,e,t,a,n);break t}}throw e=vt(t)||t,Error(u(306,e,""))}}return e;case 0:return Mr(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=$a(a,e.pendingProps),Fd(t,e,a,s,n);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,tr(t,e),ql(e,a,null,n);var f=e.memoizedState;if(a=f.cache,ua(e,kt,a),a!==r.cache&&Ju(e,[kt],n,!0),Yl(),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=Pd(t,e,a,n);break t}else if(a!==s){s=Ze(Error(u(424)),e),Vl(s),e=Pd(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=We(t.firstChild),oe=e,xt=!0,sa=null,Fe=!0,n=Qh(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ka(),a===s){e=Kn(t,e,n);break t}re(t,e,a,n)}e=e.child}return e;case 26:return yo(t,e),t===null?(n=fp(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,a=Ro(at.current).createElement(n),a[Vt]=e,a[ee]=t,ce(a,n,t),Yt(a),e.stateNode=a):e.memoizedState=fp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return nn(e),t===null&&xt&&(a=e.stateNode=up(e.type,e.pendingProps,at.current),oe=e,Fe=!0,s=_t,Sa(e.type)?(dc=s,_t=We(a.firstChild)):_t=s),re(t,e,e.pendingProps.children,n),yo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((s=a=_t)&&(a=w1(a,e.type,e.pendingProps,Fe),a!==null?(e.stateNode=a,oe=e,_t=We(a.firstChild),Fe=!1,s=!0):s=!1),s||oa(e)),nn(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,uc(s,r)?a=null:f!==null&&uc(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=or(t,e,Yv,null,null,n),os._currentValue=s),yo(t,e),re(t,e,a,n),e.child;case 6:return t===null&&xt&&((t=n=_t)&&(n=C1(n,e.pendingProps,Fe),n!==null?(e.stateNode=n,oe=e,_t=null,t=!0):t=!1),t||oa(e)),null;case 13:return Wd(t,e,n);case 4:return Kt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Pa(e,null,a,n):re(t,e,a,n),e.child;case 11:return Gd(t,e,e.type,e.pendingProps,n);case 7:return re(t,e,e.pendingProps,n),e.child;case 8:return re(t,e,e.pendingProps.children,n),e.child;case 12:return re(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,ua(e,e.type,a.value),re(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,Za(e),s=ue(s),a=a(s),e.flags|=1,re(t,e,a,n),e.child;case 14:return Xd(t,e,e.type,e.pendingProps,n);case 15:return Kd(t,e,e.type,e.pendingProps,n);case 19:return Id(t,e,n);case 31:return Jv(t,e,n);case 22:return Qd(t,e,n,e.pendingProps);case 24:return Za(e),a=ue(kt),t===null?(s=Wu(),s===null&&(s=zt,r=Fu(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},Iu(e),ua(e,kt,s)):((t.lanes&n)!==0&&(tr(t,e),ql(e,null,null,n),Yl()),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),ua(e,kt,a)):(a=r.cache,ua(e,kt,a),a!==s.cache&&Ju(e,[kt],n,!0))),re(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Qn(t){t.flags|=4}function _r(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(Mm())t.flags|=8192;else throw Fa=to,$u}else t.flags&=-16777217}function em(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!yp(e))if(Mm())t.flags|=8192;else throw Fa=to,$u}function vo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Xe():536870912,t.lanes|=e,Ki|=e)}function kl(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 Pv(t,e,n){var a=e.pendingProps;switch(Xu(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),qn(kt),Ot(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Oi(e)?Qn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Qu())),Ut(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(Qn(e),r!==null?(Ut(e),em(e,r)):(Ut(e),_r(e,s,null,a,n))):r?r!==t.memoizedState?(Qn(e),Ut(e),em(e,r)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Qn(e),Ut(e),_r(e,s,t,a,n)),null;case 27:if(ie(e),n=at.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Qn(e);else{if(!a){if(e.stateNode===null)throw Error(u(166));return Ut(e),null}t=P.current,Oi(e)?Vh(e):(t=up(s,a,n),e.stateNode=t,Qn(e))}return Ut(e),null;case 5:if(ie(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Qn(e);else{if(!a){if(e.stateNode===null)throw Error(u(166));return Ut(e),null}if(r=P.current,Oi(e))Vh(e);else{var f=Ro(at.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[Vt]=e,r[ee]=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(ce(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&&Qn(e)}}return Ut(e),_r(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Qn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(u(166));if(t=at.current,Oi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=oe,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[Vt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Wm(t.nodeValue,n)),t||oa(e,!0)}else t=Ro(t).createTextNode(a),t[Vt]=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(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[Vt]=e}else Ka(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else n=Qu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Be(e),e):(Be(e),null);if((e.flags&128)!==0)throw Error(u(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(u(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[Vt]=e}else Ka(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),s=!1}else s=Qu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Be(e),e):(Be(e),null)}return Be(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),vo(e,e.updateQueue),Ut(e),null);case 4:return Ot(),t===null&&ac(e.stateNode.containerInfo),Ut(e),null;case 10:return qn(e.type),Ut(e),null;case 19:if(U(Qt),a=e.memoizedState,a===null)return Ut(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)kl(a,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=io(t),r!==null){for(e.flags|=128,kl(a,!1),t=r.updateQueue,e.updateQueue=t,vo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)jh(n,t),n=n.sibling;return Q(Qt,Qt.current&1|2),xt&&Hn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&he()>Ao&&(e.flags|=128,s=!0,kl(a,!1),e.lanes=4194304)}else{if(!s)if(t=io(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,vo(e,t),kl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!xt)return Ut(e),null}else 2*he()-a.renderingStartTime>Ao&&n!==536870912&&(e.flags|=128,s=!0,kl(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=he(),t.sibling=null,n=Qt.current,Q(Qt,s?n&1|2:n&1),xt&&Hn(e,a.treeForkCount),t):(Ut(e),null);case 22:case 23:return Be(e),ir(),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&&vo(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&&U(ka),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),qn(kt),Ut(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function Wv(t,e){switch(Xu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return qn(kt),Ot(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ie(e),null;case 31:if(e.memoizedState!==null){if(Be(e),e.alternate===null)throw Error(u(340));Ka()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Ka()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Qt),null;case 4:return Ot(),null;case 10:return qn(e.type),null;case 22:case 23:return Be(e),ir(),t!==null&&U(ka),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return qn(kt),null;case 25:return null;default:return null}}function nm(t,e){switch(Xu(e),e.tag){case 3:qn(kt),Ot();break;case 26:case 27:case 5:ie(e);break;case 4:Ot();break;case 31:e.memoizedState!==null&&Be(e);break;case 13:Be(e);break;case 19:U(Qt);break;case 10:qn(e.type);break;case 22:case 23:Be(e),ir(),t!==null&&U(ka);break;case 24:qn(kt)}}function Jl(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){Mt(e,e.return,y)}}function ma(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 S=n,M=y;try{M()}catch(_){Mt(s,S,_)}}}a=a.next}while(a!==r)}}catch(_){Mt(e,e.return,_)}}function am(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{kh(e,n)}catch(a){Mt(t,t.return,a)}}}function im(t,e,n){n.props=$a(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Mt(t,e,a)}}function Fl(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){Mt(t,e,s)}}function bn(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Mt(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){Mt(t,e,s)}else n.current=null}function lm(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){Mt(t,t.return,s)}}function Ur(t,e,n){try{var a=t.stateNode;x1(a,t.type,n,e),a[ee]=e}catch(s){Mt(t,t.return,s)}}function sm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Sa(t.type)||t.tag===4}function Br(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||sm(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&&Sa(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 Lr(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=Un));else if(a!==4&&(a===27&&Sa(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Lr(t,e,n),t=t.sibling;t!==null;)Lr(t,e,n),t=t.sibling}function xo(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&&Sa(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(xo(t,e,n),t=t.sibling;t!==null;)xo(t,e,n),t=t.sibling}function om(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);ce(e,a,n),e[Vt]=t,e[ee]=n}catch(r){Mt(t,t.return,r)}}var Zn=!1,Pt=!1,Hr=!1,um=typeof WeakSet=="function"?WeakSet:Set,ne=null;function $v(t,e){if(t=t.containerInfo,sc=Yo,t=bh(t),zu(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,S=-1,M=0,_=0,L=t,j=null;e:for(;;){for(var O;L!==n||s!==0&&L.nodeType!==3||(y=f+s),L!==r||a!==0&&L.nodeType!==3||(S=f+a),L.nodeType===3&&(f+=L.nodeValue.length),(O=L.firstChild)!==null;)j=L,L=O;for(;;){if(L===t)break e;if(j===n&&++M===s&&(y=f),j===r&&++_===a&&(S=f),(O=L.nextSibling)!==null)break;L=j,j=L.parentNode}L=O}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(oc={focusedElem:t,selectionRange:n},Yo=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){switch(e=ne,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=$a(n.type,s);t=a.getSnapshotBeforeUpdate(W,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(it){Mt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)cc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":cc(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(u(163))}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}}function rm(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Jn(t,n),a&4&&Jl(5,n);break;case 1:if(Jn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Mt(n,n.return,f)}else{var s=$a(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Mt(n,n.return,f)}}a&64&&am(n),a&512&&Fl(n,n.return);break;case 3:if(Jn(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{kh(t,e)}catch(f){Mt(n,n.return,f)}}break;case 27:e===null&&a&4&&om(n);case 26:case 5:Jn(t,n),e===null&&a&4&&lm(n),a&512&&Fl(n,n.return);break;case 12:Jn(t,n);break;case 31:Jn(t,n),a&4&&hm(t,n);break;case 13:Jn(t,n),a&4&&dm(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=o1.bind(null,n),M1(t,n))));break;case 22:if(a=n.memoizedState!==null||Zn,!a){e=e!==null&&e.memoizedState!==null||Pt,s=Zn;var r=Pt;Zn=a,(Pt=e)&&!r?Fn(t,n,(n.subtreeFlags&8772)!==0):Jn(t,n),Zn=s,Pt=r}break;case 30:break;default:Jn(t,n)}}function cm(t){var e=t.alternate;e!==null&&(t.alternate=null,cm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ba(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 Bt=null,Ce=!1;function kn(t,e,n){for(n=n.child;n!==null;)fm(t,e,n),n=n.sibling}function fm(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(le,n)}catch{}switch(n.tag){case 26:Pt||bn(n,e),kn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pt||bn(n,e);var a=Bt,s=Ce;Sa(n.type)&&(Bt=n.stateNode,Ce=!1),kn(t,e,n),is(n.stateNode),Bt=a,Ce=s;break;case 5:Pt||bn(n,e);case 6:if(a=Bt,s=Ce,Bt=null,kn(t,e,n),Bt=a,Ce=s,Bt!==null)if(Ce)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(r){Mt(n,e,r)}else try{Bt.removeChild(n.stateNode)}catch(r){Mt(n,e,r)}break;case 18:Bt!==null&&(Ce?(t=Bt,ap(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),$i(t)):ap(Bt,n.stateNode));break;case 4:a=Bt,s=Ce,Bt=n.stateNode.containerInfo,Ce=!0,kn(t,e,n),Bt=a,Ce=s;break;case 0:case 11:case 14:case 15:ma(2,n,e),Pt||ma(4,n,e),kn(t,e,n);break;case 1:Pt||(bn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&im(n,e,a)),kn(t,e,n);break;case 21:kn(t,e,n);break;case 22:Pt=(a=Pt)||n.memoizedState!==null,kn(t,e,n),Pt=a;break;default:kn(t,e,n)}}function hm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{$i(t)}catch(n){Mt(e,e.return,n)}}}function dm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{$i(t)}catch(n){Mt(e,e.return,n)}}function Iv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new um),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new um),e;default:throw Error(u(435,t.tag))}}function bo(t,e){var n=Iv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=u1.bind(null,t,a);a.then(s,s)}})}function Me(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(Sa(y.type)){Bt=y.stateNode,Ce=!1;break t}break;case 5:Bt=y.stateNode,Ce=!1;break t;case 3:case 4:Bt=y.stateNode.containerInfo,Ce=!0;break t}y=y.return}if(Bt===null)throw Error(u(160));fm(r,f,s),Bt=null,Ce=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)mm(e,t),e=e.sibling}var un=null;function mm(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Me(e,t),De(t),a&4&&(ma(3,t,t.return),Jl(3,t),ma(5,t,t.return));break;case 1:Me(e,t),De(t),a&512&&(Pt||n===null||bn(n,n.return)),a&64&&Zn&&(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=un;if(Me(e,t),De(t),a&512&&(Pt||n===null||bn(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[Nn]||r[Vt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),ce(r,a,n),r[Vt]=t,Yt(r),a=r;break t;case"link":var f=mp("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),ce(r,a,n),s.head.appendChild(r);break;case"meta":if(f=mp("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),ce(r,a,n),s.head.appendChild(r);break;default:throw Error(u(468,a))}r[Vt]=t,Yt(r),a=r}t.stateNode=a}else pp(s,t.type,t.stateNode);else t.stateNode=dp(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?pp(s,t.type,t.stateNode):dp(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Ur(t,t.memoizedProps,n.memoizedProps)}break;case 27:Me(e,t),De(t),a&512&&(Pt||n===null||bn(n,n.return)),n!==null&&a&4&&Ur(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Me(e,t),De(t),a&512&&(Pt||n===null||bn(n,n.return)),t.flags&32){s=t.stateNode;try{xe(s,"")}catch(W){Mt(t,t.return,W)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,Ur(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Hr=!0);break;case 6:if(Me(e,t),De(t),a&4){if(t.stateNode===null)throw Error(u(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(W){Mt(t,t.return,W)}}break;case 3:if(Uo=null,s=un,un=Vo(e.containerInfo),Me(e,t),un=s,De(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{$i(e.containerInfo)}catch(W){Mt(t,t.return,W)}Hr&&(Hr=!1,pm(t));break;case 4:a=un,un=Vo(t.stateNode.containerInfo),Me(e,t),De(t),un=a;break;case 12:Me(e,t),De(t);break;case 31:Me(e,t),De(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,bo(t,a)));break;case 13:Me(e,t),De(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(To=he()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,bo(t,a)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,M=Zn,_=Pt;if(Zn=M||s,Pt=_||S,Me(e,t),Pt=_,Zn=M,De(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||Zn||Pt||Ia(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){S=n=e;try{if(r=S.stateNode,s)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=S.stateNode;var L=S.memoizedProps.style,j=L!=null&&L.hasOwnProperty("display")?L.display:null;y.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(W){Mt(S,S.return,W)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(W){Mt(S,S.return,W)}}}else if(e.tag===18){if(n===null){S=e;try{var O=S.stateNode;s?ip(O,!0):ip(S.stateNode,!1)}catch(W){Mt(S,S.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,bo(t,n))));break;case 19:Me(e,t),De(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,bo(t,a)));break;case 30:break;case 21:break;default:Me(e,t),De(t)}}function De(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(sm(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,r=Br(t);xo(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(xe(f,""),n.flags&=-33);var y=Br(t);xo(t,y,f);break;case 3:case 4:var S=n.stateNode.containerInfo,M=Br(t);Lr(t,M,S);break;default:throw Error(u(161))}}catch(_){Mt(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function pm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;pm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Jn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)rm(t,e.alternate,e),e=e.sibling}function Ia(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ma(4,e,e.return),Ia(e);break;case 1:bn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&im(e,e.return,n),Ia(e);break;case 27:is(e.stateNode);case 26:case 5:bn(e,e.return),Ia(e);break;case 22:e.memoizedState===null&&Ia(e);break;case 30:Ia(e);break;default:Ia(e)}t=t.sibling}}function Fn(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:Fn(s,r,n),Jl(4,r);break;case 1:if(Fn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){Mt(a,a.return,M)}if(a=r,s=a.updateQueue,s!==null){var y=a.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)Zh(S[s],y)}catch(M){Mt(a,a.return,M)}}n&&f&64&&am(r),Fl(r,r.return);break;case 27:om(r);case 26:case 5:Fn(s,r,n),n&&a===null&&f&4&&lm(r),Fl(r,r.return);break;case 12:Fn(s,r,n);break;case 31:Fn(s,r,n),n&&f&4&&hm(s,r);break;case 13:Fn(s,r,n),n&&f&4&&dm(s,r);break;case 22:r.memoizedState===null&&Fn(s,r,n),Fl(r,r.return);break;case 30:break;default:Fn(s,r,n)}e=e.sibling}}function Yr(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&&_l(n))}function qr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&_l(t))}function rn(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ym(t,e,n,a),e=e.sibling}function ym(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:rn(t,e,n,a),s&2048&&Jl(9,e);break;case 1:rn(t,e,n,a);break;case 3:rn(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&&_l(t)));break;case 12:if(s&2048){rn(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(S){Mt(e,e.return,S)}}else rn(t,e,n,a);break;case 31:rn(t,e,n,a);break;case 13:rn(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?rn(t,e,n,a):Pl(t,e):r._visibility&2?rn(t,e,n,a):(r._visibility|=2,qi(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Yr(f,e);break;case 24:rn(t,e,n,a),s&2048&&qr(e.alternate,e);break;default:rn(t,e,n,a)}}function qi(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,S=a,M=f.flags;switch(f.tag){case 0:case 11:case 15:qi(r,f,y,S,s),Jl(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?qi(r,f,y,S,s):Pl(r,f):(_._visibility|=2,qi(r,f,y,S,s)),s&&M&2048&&Yr(f.alternate,f);break;case 24:qi(r,f,y,S,s),s&&M&2048&&qr(f.alternate,f);break;default:qi(r,f,y,S,s)}e=e.sibling}}function Pl(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:Pl(n,a),s&2048&&Yr(a.alternate,a);break;case 24:Pl(n,a),s&2048&&qr(a.alternate,a);break;default:Pl(n,a)}e=e.sibling}}var Wl=8192;function Gi(t,e,n){if(t.subtreeFlags&Wl)for(t=t.child;t!==null;)gm(t,e,n),t=t.sibling}function gm(t,e,n){switch(t.tag){case 26:Gi(t,e,n),t.flags&Wl&&t.memoizedState!==null&&H1(n,un,t.memoizedState,t.memoizedProps);break;case 5:Gi(t,e,n);break;case 3:case 4:var a=un;un=Vo(t.stateNode.containerInfo),Gi(t,e,n),un=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Wl,Wl=16777216,Gi(t,e,n),Wl=a):Gi(t,e,n));break;default:Gi(t,e,n)}}function vm(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 $l(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];ne=a,bm(a,t)}vm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xm(t),t=t.sibling}function xm(t){switch(t.tag){case 0:case 11:case 15:$l(t),t.flags&2048&&ma(9,t,t.return);break;case 3:$l(t);break;case 12:$l(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,So(t)):$l(t);break;default:$l(t)}}function So(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];ne=a,bm(a,t)}vm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ma(8,e,e.return),So(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,So(e));break;default:So(e)}t=t.sibling}}function bm(t,e){for(;ne!==null;){var n=ne;switch(n.tag){case 0:case 11:case 15:ma(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:_l(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ne=a;else t:for(n=t;ne!==null;){a=ne;var s=a.sibling,r=a.return;if(cm(a),a===n){ne=null;break t}if(s!==null){s.return=r,ne=s;break t}ne=r}}}var t1={getCacheForType:function(t){var e=ue(kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ue(kt).controller.signal}},e1=typeof WeakMap=="function"?WeakMap:Map,Et=0,zt=null,mt=null,yt=0,Ct=0,Le=null,pa=!1,Xi=!1,Gr=!1,Pn=0,Gt=0,ya=0,ti=0,Xr=0,He=0,Ki=0,Il=null,je=null,Kr=!1,To=0,Sm=0,Ao=1/0,Eo=null,ga=null,It=0,va=null,Qi=null,Wn=0,Qr=0,Zr=null,Tm=null,ts=0,kr=null;function Ye(){return(Et&2)!==0&&yt!==0?yt&-yt:R.T!==null?Ir():gl()}function Am(){if(He===0)if((yt&536870912)===0||xt){var t=Mn;Mn<<=1,(Mn&3932160)===0&&(Mn=262144),He=t}else He=536870912;return t=Ue.current,t!==null&&(t.flags|=32),He}function Ne(t,e,n){(t===zt&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(Zi(t,0),xa(t,yt,He,!1)),se(t,n),((Et&2)===0||t!==zt)&&(t===zt&&((Et&2)===0&&(ti|=n),Gt===4&&xa(t,yt,He,!1)),Sn(t))}function Em(t,e,n){if((Et&6)!==0)throw Error(u(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Ae(t,e),s=a?i1(t,e):Fr(t,e,!0),r=a;do{if(s===0){Xi&&!a&&xa(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!n1(n)){s=Fr(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=Il;var S=y.current.memoizedState.isDehydrated;if(S&&(Zi(y,f).flags|=256),f=Fr(y,f,!1),f!==2){if(Gr&&!S){y.errorRecoveryDisabledLanes|=r,ti|=r,s=4;break t}r=je,je=s,r!==null&&(je===null?je=r:je.push.apply(je,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Zi(t,0),xa(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:xa(a,e,He,!pa);break t;case 2:je=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(s=To+300-he(),10<s)){if(xa(a,e,He,!pa),Ra(a,0,!0)!==0)break t;Wn=e,a.timeoutHandle=ep(wm.bind(null,a,n,je,Eo,Kr,e,He,ti,Ki,pa,r,"Throttled",-0,0),s);break t}wm(a,n,je,Eo,Kr,e,He,ti,Ki,pa,r,null,-0,0)}}break}while(!0);Sn(t)}function wm(t,e,n,a,s,r,f,y,S,M,_,L,j,O){if(t.timeoutHandle=-1,L=e.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Un},gm(e,r,L);var W=(r&62914560)===r?To-he():(r&4194048)===r?Sm-he():0;if(W=Y1(L,W),W!==null){Wn=r,t.cancelPendingCommit=W(Rm.bind(null,t,e,r,n,a,s,f,y,S,_,L,null,j,O)),xa(t,r,f,!M);return}}Rm(t,e,r,n,a,s,f,y,S)}function n1(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(!Ve(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 xa(t,e,n,a){e&=~Xr,e&=~ti,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-ge(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&hi(t,n,e)}function wo(){return(Et&6)===0?(es(0),!1):!0}function Jr(){if(mt!==null){if(Ct===0)var t=mt.return;else t=mt,Yn=Qa=null,cr(t),Ui=null,Bl=0,t=mt;for(;t!==null;)nm(t.alternate,t),t=t.return;mt=null}}function Zi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,T1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Wn=0,Jr(),zt=t,mt=n=Ln(t.current,null),yt=e,Ct=0,Le=null,pa=!1,Xi=Ae(t,e),Gr=!1,Ki=He=Xr=ti=ya=Gt=0,je=Il=null,Kr=!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-ge(a),r=1<<s;e|=t[s],a&=~r}return Pn=e,Qs(),n}function Cm(t,e){ct=null,R.H=Ql,e===_i||e===Is?(e=Gh(),Ct=3):e===$u?(e=Gh(),Ct=4):Ct=e===Cr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Le=e,mt===null&&(Gt=1,mo(t,Ze(e,t.current)))}function Mm(){var t=Ue.current;return t===null?!0:(yt&4194048)===yt?Pe===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Pe:!1}function Dm(){var t=R.H;return R.H=Ql,t===null?Ql:t}function jm(){var t=R.A;return R.A=t1,t}function Co(){Gt=4,pa||(yt&4194048)!==yt&&Ue.current!==null||(Xi=!0),(ya&134217727)===0&&(ti&134217727)===0||zt===null||xa(zt,yt,He,!1)}function Fr(t,e,n){var a=Et;Et|=2;var s=Dm(),r=jm();(zt!==t||yt!==e)&&(Eo=null,Zi(t,e)),e=!1;var f=Gt;t:do try{if(Ct!==0&&mt!==null){var y=mt,S=Le;switch(Ct){case 8:Jr(),f=6;break t;case 3:case 2:case 9:case 6:Ue.current===null&&(e=!0);var M=Ct;if(Ct=0,Le=null,ki(t,y,S,M),n&&Xi){f=0;break t}break;default:M=Ct,Ct=0,Le=null,ki(t,y,S,M)}}a1(),f=Gt;break}catch(_){Cm(t,_)}while(!0);return e&&t.shellSuspendCounter++,Yn=Qa=null,Et=a,R.H=s,R.A=r,mt===null&&(zt=null,yt=0,Qs()),f}function a1(){for(;mt!==null;)Nm(mt)}function i1(t,e){var n=Et;Et|=2;var a=Dm(),s=jm();zt!==t||yt!==e?(Eo=null,Ao=he()+500,Zi(t,e)):Xi=Ae(t,e);t:do try{if(Ct!==0&&mt!==null){e=mt;var r=Le;e:switch(Ct){case 1:Ct=0,Le=null,ki(t,e,r,1);break;case 2:case 9:if(Yh(r)){Ct=0,Le=null,Om(e);break}e=function(){Ct!==2&&Ct!==9||zt!==t||(Ct=7),Sn(t)},r.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:Yh(r)?(Ct=0,Le=null,Om(e)):(Ct=0,Le=null,ki(t,e,r,7));break;case 5:var f=null;switch(mt.tag){case 26:f=mt.memoizedState;case 5:case 27:var y=mt;if(f?yp(f):y.stateNode.complete){Ct=0,Le=null;var S=y.sibling;if(S!==null)mt=S;else{var M=y.return;M!==null?(mt=M,Mo(M)):mt=null}break e}}Ct=0,Le=null,ki(t,e,r,5);break;case 6:Ct=0,Le=null,ki(t,e,r,6);break;case 8:Jr(),Gt=6;break t;default:throw Error(u(462))}}l1();break}catch(_){Cm(t,_)}while(!0);return Yn=Qa=null,R.H=a,R.A=s,Et=n,mt!==null?0:(zt=null,yt=0,Qs(),Gt)}function l1(){for(;mt!==null&&!dl();)Nm(mt)}function Nm(t){var e=tm(t.alternate,t,Pn);t.memoizedProps=t.pendingProps,e===null?Mo(t):mt=e}function Om(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Jd(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Jd(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:cr(e);default:nm(n,e),e=mt=jh(e,Pn),e=tm(n,e,Pn)}t.memoizedProps=t.pendingProps,e===null?Mo(t):mt=e}function ki(t,e,n,a){Yn=Qa=null,cr(e),Ui=null,Bl=0;var s=e.return;try{if(kv(t,s,e,n,yt)){Gt=1,mo(t,Ze(n,t.current)),mt=null;return}}catch(r){if(s!==null)throw mt=s,r;Gt=1,mo(t,Ze(n,t.current)),mt=null;return}e.flags&32768?(xt||a===1?t=!0:Xi||(yt&536870912)!==0?t=!1:(pa=t=!0,(a===2||a===9||a===3||a===6)&&(a=Ue.current,a!==null&&a.tag===13&&(a.flags|=16384))),zm(e,t)):Mo(e)}function Mo(t){var e=t;do{if((e.flags&32768)!==0){zm(e,pa);return}t=e.return;var n=Pv(e.alternate,e,Pn);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Gt===0&&(Gt=5)}function zm(t,e){do{var n=Wv(t.alternate,t);if(n!==null){n.flags&=32767,mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=n}while(t!==null);Gt=6,mt=null}function Rm(t,e,n,a,s,r,f,y,S){t.cancelPendingCommit=null;do Do();while(It!==0);if((Et&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(r=e.lanes|e.childLanes,r|=Bu,Va(t,n,r,f,y,S),t===zt&&(mt=zt=null,yt=0),Qi=e,va=t,Wn=n,Qr=r,Zr=s,Tm=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,r1(ri,function(){return Lm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=R.T,R.T=null,s=H.p,H.p=2,f=Et,Et|=4;try{$v(t,e,n)}finally{Et=f,H.p=s,R.T=a}}It=1,Vm(),_m(),Um()}}function Vm(){if(It===1){It=0;var t=va,e=Qi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var a=H.p;H.p=2;var s=Et;Et|=4;try{mm(e,t);var r=oc,f=bh(t.containerInfo),y=r.focusedElem,S=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&xh(y.ownerDocument.documentElement,y)){if(S!==null&&zu(y)){var M=S.start,_=S.end;if(_===void 0&&(_=M),"selectionStart"in y)y.selectionStart=M,y.selectionEnd=Math.min(_,y.value.length);else{var L=y.ownerDocument||document,j=L&&L.defaultView||window;if(j.getSelection){var O=j.getSelection(),W=y.textContent.length,it=Math.min(S.start,W),Nt=S.end===void 0?it:Math.min(S.end,W);!O.extend&&it>Nt&&(f=Nt,Nt=it,it=f);var w=vh(y,it),A=vh(y,Nt);if(w&&A&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==A.node||O.focusOffset!==A.offset)){var C=L.createRange();C.setStart(w.node,w.offset),O.removeAllRanges(),it>Nt?(O.addRange(C),O.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),O.addRange(C))}}}}for(L=[],O=y;O=O.parentNode;)O.nodeType===1&&L.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<L.length;y++){var B=L[y];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Yo=!!sc,oc=sc=null}finally{Et=s,H.p=a,R.T=n}}t.current=e,It=2}}function _m(){if(It===2){It=0;var t=va,e=Qi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var a=H.p;H.p=2;var s=Et;Et|=4;try{rm(t,e.alternate,e)}finally{Et=s,H.p=a,R.T=n}}It=3}}function Um(){if(It===4||It===3){It=0,Ds();var t=va,e=Qi,n=Wn,a=Tm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,Qi=va=null,Bm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(ga=null),yl(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(le,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=R.T,s=H.p,H.p=2,R.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{R.T=e,H.p=s}}(Wn&3)!==0&&Do(),Sn(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===kr?ts++:(ts=0,kr=t):ts=0,es(0)}}function Bm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,_l(e)))}function Do(){return Vm(),_m(),Um(),Lm()}function Lm(){if(It!==5)return!1;var t=va,e=Qr;Qr=0;var n=yl(Wn),a=R.T,s=H.p;try{H.p=32>n?32:n,R.T=null,n=Zr,Zr=null;var r=va,f=Wn;if(It=0,Qi=va=null,Wn=0,(Et&6)!==0)throw Error(u(331));var y=Et;if(Et|=4,xm(r.current),ym(r,r.current,f,n),Et=y,es(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(le,r)}catch{}return!0}finally{H.p=s,R.T=a,Bm(t,e)}}function Hm(t,e,n){e=Ze(n,e),e=wr(t.stateNode,e,2),t=fa(t,e,2),t!==null&&(se(t,2),Sn(t))}function Mt(t,e,n){if(t.tag===3)Hm(t,t,n);else for(;e!==null;){if(e.tag===3){Hm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ga===null||!ga.has(a))){t=Ze(n,t),n=Yd(2),a=fa(e,n,2),a!==null&&(qd(n,a,e,t),se(a,2),Sn(a));break}}e=e.return}}function Pr(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new e1;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)||(Gr=!0,s.add(n),t=s1.bind(null,t,e,n),e.then(t,t))}function s1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(yt&n)===n&&(Gt===4||Gt===3&&(yt&62914560)===yt&&300>he()-To?(Et&2)===0&&Zi(t,0):Xr|=n,Ki===yt&&(Ki=0)),Sn(t)}function Ym(t,e){e===0&&(e=Xe()),t=Ga(t,e),t!==null&&(se(t,e),Sn(t))}function o1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Ym(t,n)}function u1(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(u(314))}a!==null&&a.delete(e),Ym(t,n)}function r1(t,e){return ui(t,e)}var jo=null,Ji=null,Wr=!1,No=!1,$r=!1,ba=0;function Sn(t){t!==Ji&&t.next===null&&(Ji===null?jo=Ji=t:Ji=Ji.next=t),No=!0,Wr||(Wr=!0,f1())}function es(t,e){if(!$r&&No){$r=!0;do for(var n=!1,a=jo;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-ge(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Km(a,r))}else r=yt,r=Ra(a,a===zt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||Ae(a,r)||(n=!0,Km(a,r));a=a.next}while(n);$r=!1}}function c1(){qm()}function qm(){No=Wr=!1;var t=0;ba!==0&&S1()&&(t=ba);for(var e=he(),n=null,a=jo;a!==null;){var s=a.next,r=Gm(a,e);r===0?(a.next=null,n===null?jo=s:n.next=s,s===null&&(Ji=n)):(n=a,(t!==0||(r&3)!==0)&&(No=!0)),a=s}It!==0&&It!==5||es(t),ba!==0&&(ba=0)}function Gm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-ge(r),y=1<<f,S=s[f];S===-1?((y&n)===0||(y&a)!==0)&&(s[f]=Rs(y,e)):S<=e&&(t.expiredLanes|=y),r&=~y}if(e=zt,n=yt,n=Ra(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ge(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ae(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Ge(a),yl(n)){case 2:case 8:n=pe;break;case 32:n=ri;break;case 268435456:n=Ns;break;default:n=ri}return a=Xm.bind(null,t),n=ui(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Ge(a),t.callbackPriority=2,t.callbackNode=null,2}function Xm(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Do()&&t.callbackNode!==n)return null;var a=yt;return a=Ra(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Em(t,a,e),Gm(t,he()),t.callbackNode!=null&&t.callbackNode===n?Xm.bind(null,t):null)}function Km(t,e){if(Do())return null;Em(t,e,!0)}function f1(){A1(function(){(Et&6)!==0?ui(js,c1):qm()})}function Ir(){if(ba===0){var t=Ri;t===0&&(t=Cn,Cn<<=1,(Cn&261888)===0&&(Cn=256)),ba=t}return ba}function Qm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:_n(""+t)}function Zm(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 h1(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=Qm((s[ee]||null).action),f=a.submitter;f&&(e=(e=f[ee]||null)?Qm(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new qs("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ba!==0){var S=f?Zm(s,f):new FormData(s);xr(n,{pending:!0,data:S,method:s.method,action:r},null,S)}}else typeof r=="function"&&(y.preventDefault(),S=f?Zm(s,f):new FormData(s),xr(n,{pending:!0,data:S,method:s.method,action:r},r,S))},currentTarget:s}]})}}for(var tc=0;tc<Uu.length;tc++){var ec=Uu[tc],d1=ec.toLowerCase(),m1=ec[0].toUpperCase()+ec.slice(1);on(d1,"on"+m1)}on(Ah,"onAnimationEnd"),on(Eh,"onAnimationIteration"),on(wh,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(Nv,"onTransitionRun"),on(Ov,"onTransitionStart"),on(zv,"onTransitionCancel"),on(Ch,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),Rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Rn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ns="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(" "),p1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ns));function km(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],S=y.instance,M=y.currentTarget;if(y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=M;try{r(s)}catch(_){Ks(_)}s.currentTarget=null,r=S}else for(f=0;f<a.length;f++){if(y=a[f],S=y.instance,M=y.currentTarget,y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=M;try{r(s)}catch(_){Ks(_)}s.currentTarget=null,r=S}}}}function pt(t,e){var n=e[pi];n===void 0&&(n=e[pi]=new Set);var a=t+"__bubble";n.has(a)||(Jm(e,t,2,!1),n.add(a))}function nc(t,e,n){var a=0;e&&(a|=4),Jm(n,t,a,e)}var Oo="_reactListening"+Math.random().toString(36).slice(2);function ac(t){if(!t[Oo]){t[Oo]=!0,vl.forEach(function(n){n!=="selectionchange"&&(p1.has(n)||nc(n,!1,t),nc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Oo]||(e[Oo]=!0,nc("selectionchange",!1,e))}}function Jm(t,e,n,a){switch(Ap(e)){case 2:var s=X1;break;case 8:s=K1;break;default:s=vc}n=s.bind(null,e,n,t),s=void 0,!Au||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 ic(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 S=f.tag;if((S===3||S===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;y!==null;){if(f=pn(y),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){a=r=f;continue t}y=y.parentNode}}a=a.return}If(function(){var M=r,_=Su(n),L=[];t:{var j=Mh.get(t);if(j!==void 0){var O=qs,W=t;switch(t){case"keypress":if(Hs(n)===0)break t;case"keydown":case"keyup":O=uv;break;case"focusin":W="focus",O=Mu;break;case"focusout":W="blur",O=Mu;break;case"beforeblur":case"afterblur":O=Mu;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=nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Pg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=fv;break;case Ah:case Eh:case wh:O=Ig;break;case Ch:O=dv;break;case"scroll":case"scrollend":O=Jg;break;case"wheel":O=pv;break;case"copy":case"cut":case"paste":O=ev;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=ih;break;case"toggle":case"beforetoggle":O=gv}var it=(e&4)!==0,Nt=!it&&(t==="scroll"||t==="scrollend"),w=it?j!==null?j+"Capture":null:j;it=[];for(var A=M,C;A!==null;){var B=A;if(C=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||C===null||w===null||(B=El(A,w),B!=null&&it.push(as(A,B,C))),Nt)break;A=A.return}0<it.length&&(j=new O(j,W,null,n,_),L.push({event:j,listeners:it}))}}if((e&7)===0){t:{if(j=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",j&&n!==bu&&(W=n.relatedTarget||n.fromElement)&&(pn(W)||W[Dn]))break t;if((O||j)&&(j=_.window===_?_:(j=_.ownerDocument)?j.defaultView||j.parentWindow:window,O?(W=n.relatedTarget||n.toElement,O=M,W=W?pn(W):null,W!==null&&(Nt=d(W),it=W.tag,W!==Nt||it!==5&&it!==27&&it!==6)&&(W=null)):(O=null,W=M),O!==W)){if(it=nh,B="onMouseLeave",w="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(it=ih,B="onPointerLeave",w="onPointerEnter",A="pointer"),Nt=O==null?j:zn(O),C=W==null?j:zn(W),j=new it(B,A+"leave",O,n,_),j.target=Nt,j.relatedTarget=C,B=null,pn(_)===M&&(it=new it(w,A+"enter",W,n,_),it.target=C,it.relatedTarget=Nt,B=it),Nt=B,O&&W)e:{for(it=y1,w=O,A=W,C=0,B=w;B;B=it(B))C++;B=0;for(var nt=A;nt;nt=it(nt))B++;for(;0<C-B;)w=it(w),C--;for(;0<B-C;)A=it(A),B--;for(;C--;){if(w===A||A!==null&&w===A.alternate){it=w;break e}w=it(w),A=it(A)}it=null}else it=null;O!==null&&Fm(L,j,O,it,!1),W!==null&&Nt!==null&&Fm(L,Nt,W,it,!0)}}t:{if(j=M?zn(M):window,O=j.nodeName&&j.nodeName.toLowerCase(),O==="select"||O==="input"&&j.type==="file")var Tt=hh;else if(ch(j))if(dh)Tt=Mv;else{Tt=wv;var et=Ev}else O=j.nodeName,!O||O.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?M&&St(M.elementType)&&(Tt=hh):Tt=Cv;if(Tt&&(Tt=Tt(t,M))){fh(L,Tt,n,_);break t}et&&et(t,j,M),t==="focusout"&&M&&j.type==="number"&&M.memoizedProps.value!=null&&Re(j,"number",j.value)}switch(et=M?zn(M):window,t){case"focusin":(ch(et)||et.contentEditable==="true")&&(wi=et,Ru=M,zl=null);break;case"focusout":zl=Ru=wi=null;break;case"mousedown":Vu=!0;break;case"contextmenu":case"mouseup":case"dragend":Vu=!1,Sh(L,n,_);break;case"selectionchange":if(jv)break;case"keydown":case"keyup":Sh(L,n,_)}var ft;if(ju)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else Ei?uh(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(lh&&n.locale!=="ko"&&(Ei||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Ei&&(ft=th()):(ia=_,Eu="value"in ia?ia.value:ia.textContent,Ei=!0)),et=zo(M,gt),0<et.length&&(gt=new ah(gt,t,null,n,_),L.push({event:gt,listeners:et}),ft?gt.data=ft:(ft=rh(n),ft!==null&&(gt.data=ft)))),(ft=xv?bv(t,n):Sv(t,n))&&(gt=zo(M,"onBeforeInput"),0<gt.length&&(et=new ah("onBeforeInput","beforeinput",null,n,_),L.push({event:et,listeners:gt}),et.data=ft)),h1(L,t,M,n,_)}km(L,e)})}function as(t,e,n){return{instance:t,listener:e,currentTarget:n}}function zo(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=El(t,n),s!=null&&a.unshift(as(t,s,r)),s=El(t,e),s!=null&&a.push(as(t,s,r))),t.tag===3)return a;t=t.return}return[]}function y1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Fm(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,S=y.alternate,M=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||M===null||(S=M,s?(M=El(n,r),M!=null&&f.unshift(as(n,M,S))):s||(M=El(n,r),M!=null&&f.push(as(n,M,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var g1=/\r\n?/g,v1=/\u0000|\uFFFD/g;function Pm(t){return(typeof t=="string"?t:""+t).replace(g1,`
9
+ `).replace(v1,"")}function Wm(t,e){return e=Pm(e),Pm(t)===e}function jt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||xe(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&xe(t,""+a);break;case"className":vi(t,"class",a);break;case"tabIndex":vi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(t,n,a);break;case"style":tt(t,a,r);break;case"data":if(e!=="object"){vi(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=_n(""+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"&&jt(t,e,"name",s.name,s,null),jt(t,e,"formEncType",s.formEncType,s,null),jt(t,e,"formMethod",s.formMethod,s,null),jt(t,e,"formTarget",s.formTarget,s,null)):(jt(t,e,"encType",s.encType,s,null),jt(t,e,"method",s.method,s,null),jt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=_n(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Un);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(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=_n(""+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":pt("beforetoggle",t),pt("toggle",t),gi(t,"popover",a);break;case"xlinkActuate":Ke(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ke(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ke(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ke(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ke(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ke(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ke(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ke(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ke(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":gi(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=gn.get(n)||n,gi(t,n,a))}}function lc(t,e,n,a,s,r){switch(n){case"style":tt(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof a=="string"?xe(t,a):(typeof a=="number"||typeof a=="bigint")&&xe(t,""+a);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!La.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[ee]||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,""):gi(t,n,a)}}}function ce(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("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(u(137,e));default:jt(t,e,r,f,n,null)}}s&&jt(t,e,"srcSet",n.srcSet,n,null),a&&jt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var y=r=f=s=null,S=null,M=null;for(a in n)if(n.hasOwnProperty(a)){var _=n[a];if(_!=null)switch(a){case"name":s=_;break;case"type":f=_;break;case"checked":S=_;break;case"defaultChecked":M=_;break;case"value":r=_;break;case"defaultValue":y=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:jt(t,e,a,_,n,null)}}Vn(t,r,y,S,M,f,s,!1);return;case"select":pt("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:jt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?aa(t,!!a,e,!1):n!=null&&aa(t,!!a,n,!0);return;case"textarea":pt("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(u(91));break;default:jt(t,e,f,y,n,null)}Bs(t,a,s,r);return;case"option":for(S in n)n.hasOwnProperty(S)&&(a=n[S],a!=null)&&(S==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":jt(t,e,S,a,n,null));return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(a=0;a<ns.length;a++)pt(ns[a],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("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(M in n)if(n.hasOwnProperty(M)&&(a=n[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:jt(t,e,M,a,n,null)}return;default:if(St(e)){for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!==void 0&&lc(t,e,_,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&jt(t,e,y,a,n,null))}function x1(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,S=null,M=null,_=null;for(O in n){var L=n[O];if(n.hasOwnProperty(O)&&L!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":S=L;default:a.hasOwnProperty(O)||jt(t,e,O,null,a,L)}}for(var j in a){var O=a[j];if(L=n[j],a.hasOwnProperty(j)&&(O!=null||L!=null))switch(j){case"type":r=O;break;case"name":s=O;break;case"checked":M=O;break;case"defaultChecked":_=O;break;case"value":f=O;break;case"defaultValue":y=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,e));break;default:O!==L&&jt(t,e,j,O,a,L)}}Tl(t,f,y,S,M,_,r,s);return;case"select":O=f=y=j=null;for(r in n)if(S=n[r],n.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":O=S;default:a.hasOwnProperty(r)||jt(t,e,r,null,a,S)}for(s in a)if(r=a[s],S=n[s],a.hasOwnProperty(s)&&(r!=null||S!=null))switch(s){case"value":j=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==S&&jt(t,e,s,r,a,S)}e=y,n=f,a=O,j!=null?aa(t,!!n,j,!1):!!a!=!!n&&(e!=null?aa(t,!!n,e,!0):aa(t,!!n,n?[]:"",!1));return;case"textarea":O=j=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:jt(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":j=s;break;case"defaultValue":O=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==r&&jt(t,e,f,s,a,r)}bi(t,j,O);return;case"option":for(var W in n)j=n[W],n.hasOwnProperty(W)&&j!=null&&!a.hasOwnProperty(W)&&(W==="selected"?t.selected=!1:jt(t,e,W,null,a,j));for(S in a)j=a[S],O=n[S],a.hasOwnProperty(S)&&j!==O&&(j!=null||O!=null)&&(S==="selected"?t.selected=j&&typeof j!="function"&&typeof j!="symbol":jt(t,e,S,j,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 it in n)j=n[it],n.hasOwnProperty(it)&&j!=null&&!a.hasOwnProperty(it)&&jt(t,e,it,null,a,j);for(M in a)if(j=a[M],O=n[M],a.hasOwnProperty(M)&&j!==O&&(j!=null||O!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,e));break;default:jt(t,e,M,j,a,O)}return;default:if(St(e)){for(var Nt in n)j=n[Nt],n.hasOwnProperty(Nt)&&j!==void 0&&!a.hasOwnProperty(Nt)&&lc(t,e,Nt,void 0,a,j);for(_ in a)j=a[_],O=n[_],!a.hasOwnProperty(_)||j===O||j===void 0&&O===void 0||lc(t,e,_,j,a,O);return}}for(var w in n)j=n[w],n.hasOwnProperty(w)&&j!=null&&!a.hasOwnProperty(w)&&jt(t,e,w,null,a,j);for(L in a)j=a[L],O=n[L],!a.hasOwnProperty(L)||j===O||j==null&&O==null||jt(t,e,L,j,a,O)}function $m(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b1(){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&&$m(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var S=n[a],M=S.startTime;if(M>y)break;var _=S.transferSize,L=S.initiatorType;_&&$m(L)&&(S=S.responseEnd,f+=_*(S<y?1:(y-M)/(S-M)))}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 sc=null,oc=null;function Ro(t){return t.nodeType===9?t:t.ownerDocument}function Im(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 tp(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 uc(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 rc=null;function S1(){var t=window.event;return t&&t.type==="popstate"?t===rc?!1:(rc=t,!0):(rc=null,!1)}var ep=typeof setTimeout=="function"?setTimeout:void 0,T1=typeof clearTimeout=="function"?clearTimeout:void 0,np=typeof Promise=="function"?Promise:void 0,A1=typeof queueMicrotask=="function"?queueMicrotask:typeof np<"u"?function(t){return np.resolve(null).then(t).catch(E1)}:ep;function E1(t){setTimeout(function(){throw t})}function Sa(t){return t==="head"}function ap(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),$i(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")is(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,is(n);for(var r=n.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[Nn]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&is(t.ownerDocument.body);n=s}while(n);$i(e)}function ip(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 cc(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":cc(n),Ba(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function w1(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[Nn])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=We(t.nextSibling),t===null)break}return null}function C1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=We(t.nextSibling),t===null))return null;return t}function lp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=We(t.nextSibling),t===null))return null;return t}function fc(t){return t.data==="$?"||t.data==="$~"}function hc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function M1(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 We(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 dc=null;function sp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return We(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function op(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 up(t,e,n){switch(e=Ro(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function is(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ba(t)}var $e=new Map,rp=new Set;function Vo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var $n=H.d;H.d={f:D1,r:j1,D:N1,C:O1,L:z1,m:R1,X:_1,S:V1,M:U1};function D1(){var t=$n.f(),e=wo();return t||e}function j1(t){var e=On(t);e!==null&&e.tag===5&&e.type==="form"?Cd(e):$n.r(t)}var Fi=typeof document>"u"?null:document;function cp(t,e,n){var a=Fi;if(a&&typeof e=="string"&&e){var s=ve(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),rp.has(s)||(rp.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),ce(e,"link",t),Yt(e),a.head.appendChild(e)))}}function N1(t){$n.D(t),cp("dns-prefetch",t,null)}function O1(t,e){$n.C(t,e),cp("preconnect",t,e)}function z1(t,e,n){$n.L(t,e,n);var a=Fi;if(a&&t&&e){var s='link[rel="preload"][as="'+ve(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+ve(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+ve(n.imageSizes)+'"]')):s+='[href="'+ve(t)+'"]';var r=s;switch(e){case"style":r=Pi(t);break;case"script":r=Wi(t)}$e.has(r)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),$e.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(ls(r))||e==="script"&&a.querySelector(ss(r))||(e=a.createElement("link"),ce(e,"link",t),Yt(e),a.head.appendChild(e)))}}function R1(t,e){$n.m(t,e);var n=Fi;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+ve(a)+'"][href="'+ve(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Wi(t)}if(!$e.has(r)&&(t=b({rel:"modulepreload",href:t},e),$e.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ss(r)))return}a=n.createElement("link"),ce(a,"link",t),Yt(a),n.head.appendChild(a)}}}function V1(t,e,n){$n.S(t,e,n);var a=Fi;if(a&&t){var s=sn(a).hoistableStyles,r=Pi(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(ls(r)))y.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=$e.get(r))&&mc(t,n);var S=f=a.createElement("link");Yt(S),ce(S,"link",t),S._p=new Promise(function(M,_){S.onload=M,S.onerror=_}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,_o(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function _1(t,e){$n.X(t,e);var n=Fi;if(n&&t){var a=sn(n).hoistableScripts,s=Wi(t),r=a.get(s);r||(r=n.querySelector(ss(s)),r||(t=b({src:t,async:!0},e),(e=$e.get(s))&&pc(t,e),r=n.createElement("script"),Yt(r),ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function U1(t,e){$n.M(t,e);var n=Fi;if(n&&t){var a=sn(n).hoistableScripts,s=Wi(t),r=a.get(s);r||(r=n.querySelector(ss(s)),r||(t=b({src:t,async:!0,type:"module"},e),(e=$e.get(s))&&pc(t,e),r=n.createElement("script"),Yt(r),ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function fp(t,e,n,a){var s=(s=at.current)?Vo(s):null;if(!s)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Pi(n.href),n=sn(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=Pi(n.href);var r=sn(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(ls(t)))&&!r._p&&(f.instance=r,f.state.loading=5),$e.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},$e.set(t,n),r||B1(s,t,n,f.state))),e&&a===null)throw Error(u(528,""));return f}if(e&&a!==null)throw Error(u(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=sn(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(u(444,t))}}function Pi(t){return'href="'+ve(t)+'"'}function ls(t){return'link[rel="stylesheet"]['+t+"]"}function hp(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function B1(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}),ce(e,"link",n),Yt(e),t.head.appendChild(e))}function Wi(t){return'[src="'+ve(t)+'"]'}function ss(t){return"script[async]"+t}function dp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+ve(n.href)+'"]');if(a)return e.instance=a,Yt(a),a;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Yt(a),ce(a,"style",s),_o(a,n.precedence,t),e.instance=a;case"stylesheet":s=Pi(n.href);var r=t.querySelector(ls(s));if(r)return e.state.loading|=4,e.instance=r,Yt(r),r;a=hp(n),(s=$e.get(s))&&mc(a,s),r=(t.ownerDocument||t).createElement("link"),Yt(r);var f=r;return f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),ce(r,"link",a),e.state.loading|=4,_o(r,n.precedence,t),e.instance=r;case"script":return r=Wi(n.src),(s=t.querySelector(ss(r)))?(e.instance=s,Yt(s),s):(a=n,(s=$e.get(r))&&(a=b({},n),pc(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),Yt(s),ce(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,_o(a,n.precedence,t));return e.instance}function _o(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 mc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function pc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Uo=null;function mp(t,e,n){if(Uo===null){var a=new Map,s=Uo=new Map;s.set(n,a)}else s=Uo,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[Nn]||r[Vt]||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 pp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function L1(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 yp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function H1(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=Pi(a.href),r=e.querySelector(ls(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Bo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Yt(r);return}r=e.ownerDocument||e,a=hp(a),(s=$e.get(s))&&mc(a,s),r=r.createElement("link"),Yt(r);var f=r;f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),ce(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=Bo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var yc=0;function Y1(t,e){return t.stylesheets&&t.count===0&&Ho(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Ho(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&yc===0&&(yc=62500*b1());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ho(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>yc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Bo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ho(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Lo=null;function Ho(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Lo=new Map,e.forEach(q1,t),Lo=null,Bo.call(t))}function q1(t,e){if(!(e.state.loading&4)){var n=Lo.get(t);if(n)var a=n.get(null);else{n=new Map,Lo.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=Bo.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 os={$$typeof:G,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function G1(t,e,n,a,s,r,f,y,S){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=fi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fi(0),this.hiddenUpdates=fi(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function gp(t,e,n,a,s,r,f,y,S,M,_,L){return t=new G1(t,e,n,f,S,M,_,L,y),e=1,r===!0&&(e|=24),r=_e(3,null,null,e),t.current=r,r.stateNode=t,e=Fu(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},Iu(r),t}function vp(t){return t?(t=Di,t):Di}function xp(t,e,n,a,s,r){s=vp(s),a.context===null?a.context=s:a.pendingContext=s,a=ca(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=fa(t,a,e),n!==null&&(Ne(n,t,e),Hl(n,t,e))}function bp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function gc(t,e){bp(t,e),(t=t.alternate)&&bp(t,e)}function Sp(t){if(t.tag===13||t.tag===31){var e=Ga(t,67108864);e!==null&&Ne(e,t,67108864),gc(t,67108864)}}function Tp(t){if(t.tag===13||t.tag===31){var e=Ye();e=mi(e);var n=Ga(t,e);n!==null&&Ne(n,t,e),gc(t,e)}}var Yo=!0;function X1(t,e,n,a){var s=R.T;R.T=null;var r=H.p;try{H.p=2,vc(t,e,n,a)}finally{H.p=r,R.T=s}}function K1(t,e,n,a){var s=R.T;R.T=null;var r=H.p;try{H.p=8,vc(t,e,n,a)}finally{H.p=r,R.T=s}}function vc(t,e,n,a){if(Yo){var s=xc(a);if(s===null)ic(t,e,a,qo,n),Ep(t,a);else if(Z1(s,t,e,n,a))a.stopPropagation();else if(Ep(t,a),e&4&&-1<Q1.indexOf(t)){for(;s!==null;){var r=On(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=mn(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var S=1<<31-ge(f);y.entanglements[1]|=S,f&=~S}Sn(r),(Et&6)===0&&(Ao=he()+500,es(0))}}break;case 31:case 13:y=Ga(r,2),y!==null&&Ne(y,r,2),wo(),gc(r,2)}if(r=xc(a),r===null&&ic(t,e,a,qo,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else ic(t,e,a,null,n)}}function xc(t){return t=Su(t),bc(t)}var qo=null;function bc(t){if(qo=null,t=pn(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 qo=t,null}function Ap(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(yu()){case js:return 2;case pe:return 8;case ri:case ml:return 32;case Ns:return 268435456;default:return 32}default:return 32}}var Sc=!1,Ta=null,Aa=null,Ea=null,us=new Map,rs=new Map,wa=[],Q1="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 Ep(t,e){switch(t){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":Ea=null;break;case"pointerover":case"pointerout":us.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(e.pointerId)}}function cs(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=On(e),e!==null&&Sp(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Z1(t,e,n,a,s){switch(e){case"focusin":return Ta=cs(Ta,t,e,n,a,s),!0;case"dragenter":return Aa=cs(Aa,t,e,n,a,s),!0;case"mouseover":return Ea=cs(Ea,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return us.set(r,cs(us.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,rs.set(r,cs(rs.get(r)||null,t,e,n,a,s)),!0}return!1}function wp(t){var e=pn(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,_a(t.priority,function(){Tp(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,_a(t.priority,function(){Tp(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 Go(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=xc(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);bu=a,n.target.dispatchEvent(a),bu=null}else return e=On(n),e!==null&&Sp(e),t.blockedOn=n,!1;e.shift()}return!0}function Cp(t,e,n){Go(t)&&n.delete(e)}function k1(){Sc=!1,Ta!==null&&Go(Ta)&&(Ta=null),Aa!==null&&Go(Aa)&&(Aa=null),Ea!==null&&Go(Ea)&&(Ea=null),us.forEach(Cp),rs.forEach(Cp)}function Xo(t,e){t.blockedOn===e&&(t.blockedOn=null,Sc||(Sc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,k1)))}var Ko=null;function Mp(t){Ko!==t&&(Ko=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ko===t&&(Ko=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(bc(a||n)===null)continue;break}var r=On(n);r!==null&&(t.splice(e,3),e-=3,xr(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function $i(t){function e(S){return Xo(S,t)}Ta!==null&&Xo(Ta,t),Aa!==null&&Xo(Aa,t),Ea!==null&&Xo(Ea,t),us.forEach(e),rs.forEach(e);for(var n=0;n<wa.length;n++){var a=wa[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<wa.length&&(n=wa[0],n.blockedOn===null);)wp(n),n.blockedOn===null&&wa.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[ee]||null;if(typeof r=="function")f||Mp(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[ee]||null)y=f.formAction;else if(bc(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),Mp(n)}}}function Dp(){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 Tc(t){this._internalRoot=t}Qo.prototype.render=Tc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,a=Ye();xp(n,a,t,e,null,null)},Qo.prototype.unmount=Tc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;xp(t.current,2,null,t,null,null),wo(),e[Dn]=null}};function Qo(t){this._internalRoot=t}Qo.prototype.unstable_scheduleHydration=function(t){if(t){var e=gl();t={blockedOn:null,target:t,priority:e};for(var n=0;n<wa.length&&e!==0&&e<wa[n].priority;n++);wa.splice(n,0,t),n===0&&wp(t)}};var jp=l.version;if(jp!=="19.2.4")throw Error(u(527,jp,"19.2.4"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=m(e),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var J1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zo.isDisabled&&Zo.supportsFiber)try{le=Zo.inject(J1),ye=Zo}catch{}}return hs.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,a="",s=Ud,r=Bd,f=Ld;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=gp(t,1,!1,null,null,n,a,null,s,r,f,Dp),t[Dn]=e.current,ac(t),new Tc(e)},hs.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var a=!1,s="",r=Ud,f=Bd,y=Ld,S=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&&(S=n.formState)),e=gp(t,1,!0,e,n??null,a,s,S,r,f,y,Dp),e.context=vp(null),n=e.current,a=Ye(),a=mi(a),s=ca(a),s.callback=null,fa(n,s,a),n=a,e.current.lanes=n,se(e,n),Sn(e),t[Dn]=e.current,ac(t),new Qo(e)},hs.version="19.2.4",hs}var Hp;function ix(){if(Hp)return wc.exports;Hp=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(),wc.exports=ax(),wc.exports}var lx=ix();const NA=s0(lx);const o0=(...i)=>i.filter((l,o,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===o).join(" ").trim();const sx=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const ox=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,u)=>u?u.toUpperCase():o.toLowerCase());const Yp=i=>{const l=ox(i);return l.charAt(0).toUpperCase()+l.slice(1)};var ux={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 rx=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const cx=z.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:c="",children:d,iconNode:h,...p},g)=>z.createElement("svg",{ref:g,...ux,width:l,height:l,stroke:i,strokeWidth:u?Number(o)*24/Number(l):o,className:o0("lucide",c),...!d&&!rx(p)&&{"aria-hidden":"true"},...p},[...h.map(([m,x])=>z.createElement(m,x)),...Array.isArray(d)?d:[d]]));const Oe=(i,l)=>{const o=z.forwardRef(({className:u,...c},d)=>z.createElement(cx,{ref:d,iconNode:l,className:o0(`lucide-${sx(Yp(i))}`,`lucide-${i}`,u),...c}));return o.displayName=Yp(i),o};const fx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ie=Oe("arrow-right",fx);const hx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ma=Oe("check",hx);const dx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mx=Oe("chevron-down",dx);const px=[["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"}]],qp=Oe("clipboard-paste",px);const yx=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],jc=Oe("copy",yx);const gx=[["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"}]],Gp=Oe("external-link",gx);const vx=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],xx=Oe("eye-off",vx);const bx=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Sx=Oe("eye",bx);const Tx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ei=Oe("loader-circle",Tx);const Ax=[["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"}]],Ex=Oe("mic",Ax);const wx=[["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"}]],Nc=Oe("refresh-cw",wx);const Cx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Mx=Oe("shield-check",Cx);const Dx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],jx=Oe("shield",Dx);const Nx=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Ox=Oe("smartphone",Nx),Sf=z.createContext({});function Tf(i){const l=z.useRef(null);return l.current===null&&(l.current=i()),l.current}const u0=typeof window<"u",r0=u0?z.useLayoutEffect:z.useEffect,hu=z.createContext(null);function Af(i,l){i.indexOf(l)===-1&&i.push(l)}function iu(i,l){const o=i.indexOf(l);o>-1&&i.splice(o,1)}const En=(i,l,o)=>o>l?l:o<i?i:o;let Ef=()=>{};const In={},c0=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function f0(i){return typeof i=="object"&&i!==null}const h0=i=>/^0[^.\s]+$/u.test(i);function d0(i){let l;return()=>(l===void 0&&(l=i()),l)}const en=i=>i,zx=(i,l)=>o=>l(i(o)),Es=(...i)=>i.reduce(zx),xs=(i,l,o)=>{const u=l-i;return u===0?1:(o-i)/u};class wf{constructor(){this.subscriptions=[]}add(l){return Af(this.subscriptions,l),()=>iu(this.subscriptions,l)}notify(l,o,u){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,o,u);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,o,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hn=i=>i*1e3,tn=i=>i/1e3;function m0(i,l){return l?i*(1e3/l):0}const p0=(i,l,o)=>(((1-3*o+3*l)*i+(3*o-6*l))*i+3*l)*i,Rx=1e-7,Vx=12;function _x(i,l,o,u,c){let d,h,p=0;do h=l+(o-l)/2,d=p0(h,u,c)-i,d>0?o=h:l=h;while(Math.abs(d)>Rx&&++p<Vx);return h}function ws(i,l,o,u){if(i===l&&o===u)return en;const c=d=>_x(d,0,1,i,o);return d=>d===0||d===1?d:p0(c(d),l,u)}const y0=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,g0=i=>l=>1-i(1-l),v0=ws(.33,1.53,.69,.99),Cf=g0(v0),x0=y0(Cf),b0=i=>(i*=2)<1?.5*Cf(i):.5*(2-Math.pow(2,-10*(i-1))),Mf=i=>1-Math.sin(Math.acos(i)),S0=g0(Mf),T0=y0(Mf),Ux=ws(.42,0,1,1),Bx=ws(0,0,.58,1),A0=ws(.42,0,.58,1),Lx=i=>Array.isArray(i)&&typeof i[0]!="number",E0=i=>Array.isArray(i)&&typeof i[0]=="number",Hx={linear:en,easeIn:Ux,easeInOut:A0,easeOut:Bx,circIn:Mf,circInOut:T0,circOut:S0,backIn:Cf,backInOut:x0,backOut:v0,anticipate:b0},Yx=i=>typeof i=="string",Xp=i=>{if(E0(i)){Ef(i.length===4);const[l,o,u,c]=i;return ws(l,o,u,c)}else if(Yx(i))return Hx[i];return i},ko=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function qx(i,l){let o=new Set,u=new Set,c=!1,d=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(x){h.has(x)&&(m.schedule(x),i()),x(p)}const m={schedule:(x,b=!1,T=!1)=>{const V=T&&c?o:u;return b&&h.add(x),V.has(x)||V.add(x),x},cancel:x=>{u.delete(x),h.delete(x)},process:x=>{if(p=x,c){d=!0;return}c=!0,[o,u]=[u,o],o.forEach(g),o.clear(),c=!1,d&&(d=!1,m.process(x))}};return m}const Gx=40;function w0(i,l){let o=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>o=!0,h=ko.reduce((G,J)=>(G[J]=qx(d),G),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:x,update:b,preRender:T,render:N,postRender:V}=h,Y=()=>{const G=In.useManualTiming?c.timestamp:performance.now();o=!1,In.useManualTiming||(c.delta=u?1e3/60:Math.max(Math.min(G-c.timestamp,Gx),1)),c.timestamp=G,c.isProcessing=!0,p.process(c),g.process(c),m.process(c),x.process(c),b.process(c),T.process(c),N.process(c),V.process(c),c.isProcessing=!1,o&&l&&(u=!1,i(Y))},X=()=>{o=!0,u=!0,c.isProcessing||i(Y)};return{schedule:ko.reduce((G,J)=>{const Z=h[J];return G[J]=(lt,k=!1,F=!1)=>(o||X(),Z.schedule(lt,k,F)),G},{}),cancel:G=>{for(let J=0;J<ko.length;J++)h[ko[J]].cancel(G)},state:c,steps:h}}const{schedule:Rt,cancel:Na,state:fe,steps:Oc}=w0(typeof requestAnimationFrame<"u"?requestAnimationFrame:en,!0);let Wo;function Xx(){Wo=void 0}const Se={now:()=>(Wo===void 0&&Se.set(fe.isProcessing||In.useManualTiming?fe.timestamp:performance.now()),Wo),set:i=>{Wo=i,queueMicrotask(Xx)}},C0=i=>l=>typeof l=="string"&&l.startsWith(i),M0=C0("--"),Kx=C0("var(--"),Df=i=>Kx(i)?Qx.test(i.split("/*")[0].trim()):!1,Qx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Kp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const ol={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},bs={...ol,transform:i=>En(0,1,i)},Jo={...ol,default:1},ps=i=>Math.round(i*1e5)/1e5,jf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Zx(i){return i==null}const kx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nf=(i,l)=>o=>!!(typeof o=="string"&&kx.test(o)&&o.startsWith(i)||l&&!Zx(o)&&Object.prototype.hasOwnProperty.call(o,l)),D0=(i,l,o)=>u=>{if(typeof u!="string")return u;const[c,d,h,p]=u.match(jf);return{[i]:parseFloat(c),[l]:parseFloat(d),[o]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},Jx=i=>En(0,255,i),zc={...ol,transform:i=>Math.round(Jx(i))},ii={test:Nf("rgb","red"),parse:D0("red","green","blue"),transform:({red:i,green:l,blue:o,alpha:u=1})=>"rgba("+zc.transform(i)+", "+zc.transform(l)+", "+zc.transform(o)+", "+ps(bs.transform(u))+")"};function Fx(i){let l="",o="",u="",c="";return i.length>5?(l=i.substring(1,3),o=i.substring(3,5),u=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),o=i.substring(2,3),u=i.substring(3,4),c=i.substring(4,5),l+=l,o+=o,u+=u,c+=c),{red:parseInt(l,16),green:parseInt(o,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const Fc={test:Nf("#"),parse:Fx,transform:ii.transform},Cs=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),Da=Cs("deg"),An=Cs("%"),I=Cs("px"),Px=Cs("vh"),Wx=Cs("vw"),Qp={...An,parse:i=>An.parse(i)/100,transform:i=>An.transform(i*100)},tl={test:Nf("hsl","hue"),parse:D0("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:o,alpha:u=1})=>"hsla("+Math.round(i)+", "+An.transform(ps(l))+", "+An.transform(ps(o))+", "+ps(bs.transform(u))+")"},Wt={test:i=>ii.test(i)||Fc.test(i)||tl.test(i),parse:i=>ii.test(i)?ii.parse(i):tl.test(i)?tl.parse(i):Fc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?ii.transform(i):tl.transform(i),getAnimatableNone:i=>{const l=Wt.parse(i);return l.alpha=0,Wt.transform(l)}},$x=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ix(i){return isNaN(i)&&typeof i=="string"&&(i.match(jf)?.length||0)+(i.match($x)?.length||0)>0}const j0="number",N0="color",tb="var",eb="var(",Zp="${}",nb=/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 Ss(i){const l=i.toString(),o=[],u={color:[],number:[],var:[]},c=[];let d=0;const p=l.replace(nb,g=>(Wt.test(g)?(u.color.push(d),c.push(N0),o.push(Wt.parse(g))):g.startsWith(eb)?(u.var.push(d),c.push(tb),o.push(g)):(u.number.push(d),c.push(j0),o.push(parseFloat(g))),++d,Zp)).split(Zp);return{values:o,split:p,indexes:u,types:c}}function O0(i){return Ss(i).values}function z0(i){const{split:l,types:o}=Ss(i),u=l.length;return c=>{let d="";for(let h=0;h<u;h++)if(d+=l[h],c[h]!==void 0){const p=o[h];p===j0?d+=ps(c[h]):p===N0?d+=Wt.transform(c[h]):d+=c[h]}return d}}const ab=i=>typeof i=="number"?0:Wt.test(i)?Wt.getAnimatableNone(i):i;function ib(i){const l=O0(i);return z0(i)(l.map(ab))}const dn={test:Ix,parse:O0,createTransformer:z0,getAnimatableNone:ib};function Rc(i,l,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?i+(l-i)*6*o:o<1/2?l:o<2/3?i+(l-i)*(2/3-o)*6:i}function lb({hue:i,saturation:l,lightness:o,alpha:u}){i/=360,l/=100,o/=100;let c=0,d=0,h=0;if(!l)c=d=h=o;else{const p=o<.5?o*(1+l):o+l-o*l,g=2*o-p;c=Rc(g,p,i+1/3),d=Rc(g,p,i),h=Rc(g,p,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:u}}function lu(i,l){return o=>o>0?l:i}const Ht=(i,l,o)=>i+(l-i)*o,Vc=(i,l,o)=>{const u=i*i,c=o*(l*l-u)+u;return c<0?0:Math.sqrt(c)},sb=[Fc,ii,tl],ob=i=>sb.find(l=>l.test(i));function kp(i){const l=ob(i);if(!l)return!1;let o=l.parse(i);return l===tl&&(o=lb(o)),o}const Jp=(i,l)=>{const o=kp(i),u=kp(l);if(!o||!u)return lu(i,l);const c={...o};return d=>(c.red=Vc(o.red,u.red,d),c.green=Vc(o.green,u.green,d),c.blue=Vc(o.blue,u.blue,d),c.alpha=Ht(o.alpha,u.alpha,d),ii.transform(c))},Pc=new Set(["none","hidden"]);function ub(i,l){return Pc.has(i)?o=>o<=0?i:l:o=>o>=1?l:i}function rb(i,l){return o=>Ht(i,l,o)}function Of(i){return typeof i=="number"?rb:typeof i=="string"?Df(i)?lu:Wt.test(i)?Jp:hb:Array.isArray(i)?R0:typeof i=="object"?Wt.test(i)?Jp:cb:lu}function R0(i,l){const o=[...i],u=o.length,c=i.map((d,h)=>Of(d)(d,l[h]));return d=>{for(let h=0;h<u;h++)o[h]=c[h](d);return o}}function cb(i,l){const o={...i,...l},u={};for(const c in o)i[c]!==void 0&&l[c]!==void 0&&(u[c]=Of(i[c])(i[c],l[c]));return c=>{for(const d in u)o[d]=u[d](c);return o}}function fb(i,l){const o=[],u={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][u[d]],p=i.values[h]??0;o[c]=p,u[d]++}return o}const hb=(i,l)=>{const o=dn.createTransformer(l),u=Ss(i),c=Ss(l);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Pc.has(i)&&!c.values.length||Pc.has(l)&&!u.values.length?ub(i,l):Es(R0(fb(u,c),c.values),o):lu(i,l)};function V0(i,l,o){return typeof i=="number"&&typeof l=="number"&&typeof o=="number"?Ht(i,l,o):Of(i)(i,l)}const db=i=>{const l=({timestamp:o})=>i(o);return{start:(o=!0)=>Rt.update(l,o),stop:()=>Na(l),now:()=>fe.isProcessing?fe.timestamp:Se.now()}},_0=(i,l,o=10)=>{let u="";const c=Math.max(Math.round(l/o),2);for(let d=0;d<c;d++)u+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},su=2e4;function zf(i){let l=0;const o=50;let u=i.next(l);for(;!u.done&&l<su;)l+=o,u=i.next(l);return l>=su?1/0:l}function mb(i,l=100,o){const u=o({...i,keyframes:[0,l]}),c=Math.min(zf(u),su);return{type:"keyframes",ease:d=>u.next(c*d).value/l,duration:tn(c)}}const pb=5;function U0(i,l,o){const u=Math.max(l-pb,0);return m0(o-i(u),l-u)}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},_c=.001;function yb({duration:i=Xt.duration,bounce:l=Xt.bounce,velocity:o=Xt.velocity,mass:u=Xt.mass}){let c,d,h=1-l;h=En(Xt.minDamping,Xt.maxDamping,h),i=En(Xt.minDuration,Xt.maxDuration,tn(i)),h<1?(c=m=>{const x=m*h,b=x*i,T=x-o,N=Wc(m,h),V=Math.exp(-b);return _c-T/N*V},d=m=>{const b=m*h*i,T=b*o+o,N=Math.pow(h,2)*Math.pow(m,2)*i,V=Math.exp(-b),Y=Wc(Math.pow(m,2),h);return(-c(m)+_c>0?-1:1)*((T-N)*V)/Y}):(c=m=>{const x=Math.exp(-m*i),b=(m-o)*i+1;return-_c+x*b},d=m=>{const x=Math.exp(-m*i),b=(o-m)*(i*i);return x*b});const p=5/i,g=vb(c,d,p);if(i=hn(i),isNaN(g))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:i};{const m=Math.pow(g,2)*u;return{stiffness:m,damping:h*2*Math.sqrt(u*m),duration:i}}}const gb=12;function vb(i,l,o){let u=o;for(let c=1;c<gb;c++)u=u-i(u)/l(u);return u}function Wc(i,l){return i*Math.sqrt(1-l*l)}const xb=["duration","bounce"],bb=["stiffness","damping","mass"];function Fp(i,l){return l.some(o=>i[o]!==void 0)}function Sb(i){let l={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...i};if(!Fp(i,bb)&&Fp(i,xb))if(l.velocity=0,i.visualDuration){const o=i.visualDuration,u=2*Math.PI/(o*1.2),c=u*u,d=2*En(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:Xt.mass,stiffness:c,damping:d}}else{const o=yb({...i,velocity:0});l={...l,...o,mass:Xt.mass},l.isResolvedFromDuration=!0}return l}function ou(i=Xt.visualDuration,l=Xt.bounce){const o=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:u,restDelta:c}=o;const d=o.keyframes[0],h=o.keyframes[o.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:x,duration:b,velocity:T,isResolvedFromDuration:N}=Sb({...o,velocity:-tn(o.velocity||0)}),V=T||0,Y=m/(2*Math.sqrt(g*x)),X=h-d,q=tn(Math.sqrt(g/x)),K=Math.abs(X)<5;u||(u=K?Xt.restSpeed.granular:Xt.restSpeed.default),c||(c=K?Xt.restDelta.granular:Xt.restDelta.default);let G;if(Y<1){const Z=Wc(q,Y);G=lt=>{const k=Math.exp(-Y*q*lt);return h-k*((V+Y*q*X)/Z*Math.sin(Z*lt)+X*Math.cos(Z*lt))}}else if(Y===1)G=Z=>h-Math.exp(-q*Z)*(X+(V+q*X)*Z);else{const Z=q*Math.sqrt(Y*Y-1);G=lt=>{const k=Math.exp(-Y*q*lt),F=Math.min(Z*lt,300);return h-k*((V+Y*q*X)*Math.sinh(F)+Z*X*Math.cosh(F))/Z}}const J={calculatedDuration:N&&b||null,next:Z=>{const lt=G(Z);if(N)p.done=Z>=b;else{let k=Z===0?V:0;Y<1&&(k=Z===0?hn(V):U0(G,Z,lt));const F=Math.abs(k)<=u,st=Math.abs(h-lt)<=c;p.done=F&&st}return p.value=p.done?h:lt,p},toString:()=>{const Z=Math.min(zf(J),su),lt=_0(k=>J.next(Z*k).value,Z,30);return Z+"ms "+lt},toTransition:()=>{}};return J}ou.applyToOptions=i=>{const l=mb(i,100,ou);return i.ease=l.ease,i.duration=hn(l.duration),i.type="keyframes",i};function $c({keyframes:i,velocity:l=0,power:o=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:p,max:g,restDelta:m=.5,restSpeed:x}){const b=i[0],T={done:!1,value:b},N=F=>p!==void 0&&F<p||g!==void 0&&F>g,V=F=>p===void 0?g:g===void 0||Math.abs(p-F)<Math.abs(g-F)?p:g;let Y=o*l;const X=b+Y,q=h===void 0?X:h(X);q!==X&&(Y=q-b);const K=F=>-Y*Math.exp(-F/u),G=F=>q+K(F),J=F=>{const st=K(F),bt=G(F);T.done=Math.abs(st)<=m,T.value=T.done?q:bt};let Z,lt;const k=F=>{N(T.value)&&(Z=F,lt=ou({keyframes:[T.value,V(T.value)],velocity:U0(G,F,T.value),damping:c,stiffness:d,restDelta:m,restSpeed:x}))};return k(0),{calculatedDuration:null,next:F=>{let st=!1;return!lt&&Z===void 0&&(st=!0,J(F),k(F)),Z!==void 0&&F>=Z?lt.next(F-Z):(!st&&J(F),T)}}}function Tb(i,l,o){const u=[],c=o||In.mix||V0,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]||en:l;p=Es(g,p)}u.push(p)}return u}function Ab(i,l,{clamp:o=!0,ease:u,mixer:c}={}){const d=i.length;if(Ef(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=Tb(l,u,c),g=p.length,m=x=>{if(h&&x<i[0])return l[0];let b=0;if(g>1)for(;b<i.length-2&&!(x<i[b+1]);b++);const T=xs(i[b],i[b+1],x);return p[b](T)};return o?x=>m(En(i[0],i[d-1],x)):m}function Eb(i,l){const o=i[i.length-1];for(let u=1;u<=l;u++){const c=xs(0,l,u);i.push(Ht(o,1,c))}}function wb(i){const l=[0];return Eb(l,i.length-1),l}function Cb(i,l){return i.map(o=>o*l)}function Mb(i,l){return i.map(()=>l||A0).splice(0,i.length-1)}function ys({duration:i=300,keyframes:l,times:o,ease:u="easeInOut"}){const c=Lx(u)?u.map(Xp):Xp(u),d={done:!1,value:l[0]},h=Cb(o&&o.length===l.length?o:wb(l),i),p=Ab(h,l,{ease:Array.isArray(c)?c:Mb(l,c)});return{calculatedDuration:i,next:g=>(d.value=p(g),d.done=g>=i,d)}}const Db=i=>i!==null;function Rf(i,{repeat:l,repeatType:o="loop"},u,c=1){const d=i.filter(Db),p=c<0||l&&o!=="loop"&&l%2===1?0:d.length-1;return!p||u===void 0?d[p]:u}const jb={decay:$c,inertia:$c,tween:ys,keyframes:ys,spring:ou};function B0(i){typeof i.type=="string"&&(i.type=jb[i.type])}class Vf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,o){return this.finished.then(l,o)}}const Nb=i=>i/100;class _f extends Vf{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:o}=this.options;o&&o.updatedAt!==Se.now()&&this.tick(Se.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;B0(l);const{type:o=ys,repeat:u=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:p}=l;const g=o||ys;g!==ys&&typeof p[0]!="number"&&(this.mixKeyframes=Es(Nb,V0(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=zf(m));const{calculatedDuration:x}=m;this.calculatedDuration=x,this.resolvedDuration=x+c,this.totalDuration=this.resolvedDuration*(u+1)-c,this.generator=m}updateTime(l){const o=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(l,o=!1){const{generator:u,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return u.next(0);const{delay:m=0,keyframes:x,repeat:b,repeatType:T,repeatDelay:N,type:V,onUpdate:Y,finalKeyframe:X}=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)),o?this.currentTime=l:this.updateTime(l);const q=this.currentTime-m*(this.playbackSpeed>=0?1:-1),K=this.playbackSpeed>=0?q<0:q>c;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let G=this.currentTime,J=u;if(b){const F=Math.min(this.currentTime,c)/p;let st=Math.floor(F),bt=F%1;!bt&&F>=1&&(bt=1),bt===1&&st--,st=Math.min(st,b+1),st%2&&(T==="reverse"?(bt=1-bt,N&&(bt-=N/p)):T==="mirror"&&(J=h)),G=En(0,1,bt)*p}const Z=K?{done:!1,value:x[0]}:J.next(G);d&&(Z.value=d(Z.value));let{done:lt}=Z;!K&&g!==null&&(lt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&lt);return k&&V!==$c&&(Z.value=Rf(x,this.options,X,this.speed)),Y&&Y(Z.value),k&&this.finish(),Z}then(l,o){return this.finished.then(l,o)}get duration(){return tn(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+tn(l)}get time(){return tn(this.currentTime)}set time(l){l=hn(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(Se.now());const o=this.playbackSpeed!==l;this.playbackSpeed=l,o&&(this.time=tn(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=db,startTime:o}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=o??u),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(Se.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 Ob(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const li=i=>i*180/Math.PI,Ic=i=>{const l=li(Math.atan2(i[1],i[0]));return tf(l)},zb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:Ic,rotateZ:Ic,skewX:i=>li(Math.atan(i[1])),skewY:i=>li(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},tf=i=>(i=i%360,i<0&&(i+=360),i),Pp=Ic,Wp=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),$p=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Rb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wp,scaleY:$p,scale:i=>(Wp(i)+$p(i))/2,rotateX:i=>tf(li(Math.atan2(i[6],i[5]))),rotateY:i=>tf(li(Math.atan2(-i[2],i[0]))),rotateZ:Pp,rotate:Pp,skewX:i=>li(Math.atan(i[4])),skewY:i=>li(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function ef(i){return i.includes("scale")?1:0}function nf(i,l){if(!i||i==="none")return ef(l);const o=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(o)u=Rb,c=o;else{const p=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=zb,c=p}if(!c)return ef(l);const d=u[l],h=c[1].split(",").map(_b);return typeof d=="function"?d(h):h[d]}const Vb=(i,l)=>{const{transform:o="none"}=getComputedStyle(i);return nf(o,l)};function _b(i){return parseFloat(i.trim())}const ul=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rl=new Set(ul),Ip=i=>i===ol||i===I,Ub=new Set(["x","y","z"]),Bb=ul.filter(i=>!Ub.has(i));function Lb(i){const l=[];return Bb.forEach(o=>{const u=i.getValue(o);u!==void 0&&(l.push([o,u.get()]),u.set(o.startsWith("scale")?1:0))}),l}const ja={width:({x:i},{paddingLeft:l="0",paddingRight:o="0"})=>i.max-i.min-parseFloat(l)-parseFloat(o),height:({y:i},{paddingTop:l="0",paddingBottom:o="0"})=>i.max-i.min-parseFloat(l)-parseFloat(o),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})=>nf(l,"x"),y:(i,{transform:l})=>nf(l,"y")};ja.translateX=ja.x;ja.translateY=ja.y;const si=new Set;let af=!1,lf=!1,sf=!1;function L0(){if(lf){const i=Array.from(si).filter(u=>u.needsMeasurement),l=new Set(i.map(u=>u.element)),o=new Map;l.forEach(u=>{const c=Lb(u);c.length&&(o.set(u,c),u.render())}),i.forEach(u=>u.measureInitialState()),l.forEach(u=>{u.render();const c=o.get(u);c&&c.forEach(([d,h])=>{u.getValue(d)?.set(h)})}),i.forEach(u=>u.measureEndState()),i.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}lf=!1,af=!1,si.forEach(i=>i.complete(sf)),si.clear()}function H0(){si.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(lf=!0)})}function Hb(){sf=!0,H0(),L0(),sf=!1}class Uf{constructor(l,o,u,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=o,this.name=u,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(si.add(this),af||(af=!0,Rt.read(H0),Rt.resolveKeyframes(L0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:o,element:u,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(u&&o){const p=u.readValue(o,h);p!=null&&(l[0]=p)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}Ob(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),si.delete(this)}cancel(){this.state==="scheduled"&&(si.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Yb=i=>i.startsWith("--");function qb(i,l,o){Yb(l)?i.style.setProperty(l,o):i.style[l]=o}const Gb={};function Y0(i,l){const o=d0(i);return()=>Gb[l]??o()}const Xb=Y0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),q0=Y0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ms=([i,l,o,u])=>`cubic-bezier(${i}, ${l}, ${o}, ${u})`,ty={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ms([0,.65,.55,1]),circOut:ms([.55,0,1,.45]),backIn:ms([.31,.01,.66,-.59]),backOut:ms([.33,1.53,.69,.99])};function G0(i,l){if(i)return typeof i=="function"?q0()?_0(i,l):"ease-out":E0(i)?ms(i):Array.isArray(i)?i.map(o=>G0(o,l)||ty.easeOut):ty[i]}function Kb(i,l,o,{delay:u=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:p="easeOut",times:g}={},m=void 0){const x={[l]:o};g&&(x.offset=g);const b=G0(p,c);Array.isArray(b)&&(x.easing=b);const T={delay:u,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return m&&(T.pseudoElement=m),i.animate(x,T)}function X0(i){return typeof i=="function"&&"applyToOptions"in i}function Qb({type:i,...l}){return X0(i)&&q0()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class K0 extends Vf{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:o,name:u,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:p,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,Ef(typeof l.type!="string");const m=Qb(l);this.animation=Kb(o,u,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const x=Rf(c,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(x):qb(o,u,x),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 tn(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+tn(l)}get time(){return tn(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=hn(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:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&Xb()?(this.animation.timeline=l,en):o(this)}}const Q0={anticipate:b0,backInOut:x0,circInOut:T0};function Zb(i){return i in Q0}function kb(i){typeof i.ease=="string"&&Zb(i.ease)&&(i.ease=Q0[i.ease])}const Uc=10;class Jb extends K0{constructor(l){kb(l),B0(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:o,onUpdate:u,onComplete:c,element:d,...h}=this.options;if(!o)return;if(l!==void 0){o.set(l);return}const p=new _f({...h,autoplay:!1}),g=Math.max(Uc,Se.now()-this.startTime),m=En(0,Uc,g-Uc);o.setWithVelocity(p.sample(Math.max(0,g-m)).value,p.sample(g).value,m),p.stop()}}const ey=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(dn.test(i)||i==="0")&&!i.startsWith("url("));function Fb(i){const l=i[0];if(i.length===1)return!0;for(let o=0;o<i.length;o++)if(i[o]!==l)return!0}function Pb(i,l,o,u){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=ey(c,l),p=ey(d,l);return!h||!p?!1:Fb(i)||(o==="spring"||X0(o))&&u}function of(i){i.duration=0,i.type="keyframes"}const Wb=new Set(["opacity","clipPath","filter","transform"]),$b=d0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ib(i){const{motionValue:l,name:o,repeatDelay:u,repeatType:c,damping:d,type:h}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=l.owner.getProps();return $b()&&o&&Wb.has(o)&&(o!=="transform"||!m)&&!g&&!u&&c!=="mirror"&&d!==0&&h!=="inertia"}const tS=40;class eS extends Vf{constructor({autoplay:l=!0,delay:o=0,type:u="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:p,name:g,motionValue:m,element:x,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Se.now();const T={autoplay:l,delay:o,type:u,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:m,element:x,...b},N=x?.KeyframeResolver||Uf;this.keyframeResolver=new N(p,(V,Y,X)=>this.onKeyframesResolved(V,Y,T,!X),g,m,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,o,u,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:p,delay:g,isHandoff:m,onUpdate:x}=u;this.resolvedAt=Se.now(),Pb(l,d,h,p)||((In.instantAnimations||!g)&&x?.(Rf(l,u,o)),l[0]=l[l.length-1],of(u),u.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>tS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...u,keyframes:l},N=!m&&Ib(T),V=T.motionValue?.owner?.current,Y=N?new Jb({...T,element:V}):new _f(T);Y.finished.then(()=>{this.notifyFinished()}).catch(en),this.pendingTimeline&&(this.stopTimeline=Y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=Y}get finished(){return this._animation?this.animation.finished:this._finished}then(l,o){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hb()),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 Z0(i,l,o,u=0,c=1){const d=Array.from(i).sort((m,x)=>m.sortNodePosition(x)).indexOf(l),h=i.size,p=(h-1)*u;return typeof o=="function"?o(d,h):c===1?d*u:p-d*u}const nS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aS(i){const l=nS.exec(i);if(!l)return[,];const[,o,u,c]=l;return[`--${o??u}`,c]}function k0(i,l,o=1){const[u,c]=aS(i);if(!u)return;const d=window.getComputedStyle(l).getPropertyValue(u);if(d){const h=d.trim();return c0(h)?parseFloat(h):h}return Df(c)?k0(c,l,o+1):c}const iS={type:"spring",stiffness:500,damping:25,restSpeed:10},lS=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),sS={type:"keyframes",duration:.8},oS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uS=(i,{keyframes:l})=>l.length>2?sS:rl.has(i)?i.startsWith("scale")?lS(l[1]):iS:oS,rS=i=>i!==null;function cS(i,{repeat:l,repeatType:o="loop"},u){const c=i.filter(rS),d=l&&o!=="loop"&&l%2===1?0:c.length-1;return c[d]}function J0(i,l){if(i?.inherit&&l){const{inherit:o,...u}=i;return{...l,...u}}return i}function Bf(i,l){const o=i?.[l]??i?.default??i;return o!==i?J0(o,i):o}function fS({when:i,delay:l,delayChildren:o,staggerChildren:u,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:p,from:g,elapsed:m,...x}){return!!Object.keys(x).length}const Lf=(i,l,o,u={},c,d)=>h=>{const p=Bf(u,i)||{},g=p.delay||u.delay||0;let{elapsed:m=0}=u;m=m-hn(g);const x={keyframes:Array.isArray(o)?o:[null,o],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};fS(p)||Object.assign(x,uS(i,x)),x.duration&&(x.duration=hn(x.duration)),x.repeatDelay&&(x.repeatDelay=hn(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(of(x),x.delay===0&&(b=!0)),(In.instantAnimations||In.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,of(x),x.delay=0),x.allowFlatten=!p.type&&!p.ease,b&&!d&&l.get()!==void 0){const T=cS(x.keyframes,p);if(T!==void 0){Rt.update(()=>{x.onUpdate(T),x.onComplete()});return}}return p.isSync?new _f(x):new eS(x)};function ny(i){const l=[{},{}];return i?.values.forEach((o,u)=>{l[0][u]=o.get(),l[1][u]=o.getVelocity()}),l}function Hf(i,l,o,u){if(typeof l=="function"){const[c,d]=ny(u);l=l(o!==void 0?o:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=ny(u);l=l(o!==void 0?o:i.custom,c,d)}return l}function ll(i,l,o){const u=i.getProps();return Hf(u,l,o!==void 0?o:u.custom,i)}const F0=new Set(["width","height","top","left","right","bottom",...ul]),ay=30,hS=i=>!isNaN(parseFloat(i));class dS{constructor(l,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{const c=Se.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),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=o.owner}setCurrent(l){this.current=l,this.updatedAt=Se.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=hS(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,o){this.events[l]||(this.events[l]=new wf);const u=this.events[l].add(o);return l==="change"?()=>{u(),Rt.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,o){this.passiveEffect=l,this.stopPassiveEffect=o}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,o,u){this.set(o),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-u}jump(l,o=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&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=Se.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>ay)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,ay);return m0(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(l){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=l(o),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 sl(i,l){return new dS(i,l)}const uf=i=>Array.isArray(i);function mS(i,l,o){i.hasValue(l)?i.getValue(l).set(o):i.addValue(l,sl(o))}function pS(i){return uf(i)?i[i.length-1]||0:i}function yS(i,l){const o=ll(i,l);let{transitionEnd:u={},transition:c={},...d}=o||{};d={...d,...u};for(const h in d){const p=pS(d[h]);mS(i,h,p)}}const me=i=>!!(i&&i.getVelocity);function gS(i){return!!(me(i)&&i.add)}function rf(i,l){const o=i.getValue("willChange");if(gS(o))return o.add(l);if(!o&&In.WillChange){const u=new In.WillChange("auto");i.addValue("willChange",u),u.add(l)}}function Yf(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const vS="framerAppearId",P0="data-"+Yf(vS);function W0(i){return i.props[P0]}function xS({protectedKeys:i,needsAnimating:l},o){const u=i.hasOwnProperty(o)&&l[o]!==!0;return l[o]=!1,u}function $0(i,l,{delay:o=0,transitionOverride:u,type:c}={}){let{transition:d,transitionEnd:h,...p}=l;const g=i.getDefaultTransition();d=d?J0(d,g):g;const m=d?.reduceMotion;u&&(d=u);const x=[],b=c&&i.animationState&&i.animationState.getState()[c];for(const T in p){const N=i.getValue(T,i.latestValues[T]??null),V=p[T];if(V===void 0||b&&xS(b,T))continue;const Y={delay:o,...Bf(d||{},T)},X=N.get();if(X!==void 0&&!N.isAnimating&&!Array.isArray(V)&&V===X&&!Y.velocity)continue;let q=!1;if(window.MotionHandoffAnimation){const J=W0(i);if(J){const Z=window.MotionHandoffAnimation(J,T,Rt);Z!==null&&(Y.startTime=Z,q=!0)}}rf(i,T);const K=m??i.shouldReduceMotion;N.start(Lf(T,N,V,K&&F0.has(T)?{type:!1}:Y,i,q));const G=N.animation;G&&x.push(G)}if(h){const T=()=>Rt.update(()=>{h&&yS(i,h)});x.length?Promise.all(x).then(T):T()}return x}function cf(i,l,o={}){const u=ll(i,l,o.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=u||{};o.transitionOverride&&(c=o.transitionOverride);const d=u?()=>Promise.all($0(i,u,o)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:x,staggerDirection:b}=c;return bS(i,l,g,m,x,b,o)}:()=>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(o.delay)])}function bS(i,l,o=0,u=0,c=0,d=1,h){const p=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),p.push(cf(g,l,{...h,delay:o+(typeof u=="function"?0:u)+Z0(i.variantChildren,g,u,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(p)}function SS(i,l,o={}){i.notify("AnimationStart",l);let u;if(Array.isArray(l)){const c=l.map(d=>cf(i,d,o));u=Promise.all(c)}else if(typeof l=="string")u=cf(i,l,o);else{const c=typeof l=="function"?ll(i,l,o.custom):l;u=Promise.all($0(i,c,o))}return u.then(()=>{i.notify("AnimationComplete",l)})}const TS={test:i=>i==="auto",parse:i=>i},I0=i=>l=>l.test(i),tg=[ol,I,An,Da,Wx,Px,TS],iy=i=>tg.find(I0(i));function AS(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||h0(i):!0}const ES=new Set(["brightness","contrast","saturate","opacity"]);function wS(i){const[l,o]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[u]=o.match(jf)||[];if(!u)return i;const c=o.replace(u,"");let d=ES.has(l)?1:0;return u!==o&&(d*=100),l+"("+d+c+")"}const CS=/\b([a-z-]*)\(.*?\)/gu,ff={...dn,getAnimatableNone:i=>{const l=i.match(CS);return l?l.map(wS).join(" "):i}},hf={...dn,getAnimatableNone:i=>{const l=dn.parse(i);return dn.createTransformer(i)(l.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},ly={...ol,transform:Math.round},MS={rotate:Da,rotateX:Da,rotateY:Da,rotateZ:Da,scale:Jo,scaleX:Jo,scaleY:Jo,scaleZ:Jo,skew:Da,skewX:Da,skewY:Da,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:bs,originX:Qp,originY:Qp,originZ:I},qf={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,...MS,zIndex:ly,fillOpacity:bs,strokeOpacity:bs,numOctaves:ly},DS={...qf,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:ff,WebkitFilter:ff,mask:hf,WebkitMask:hf},eg=i=>DS[i],jS=new Set([ff,hf]);function ng(i,l){let o=eg(i);return jS.has(o)||(o=dn),o.getAnimatableNone?o.getAnimatableNone(l):void 0}const NS=new Set(["auto","none","0"]);function OS(i,l,o){let u=0,c;for(;u<i.length&&!c;){const d=i[u];typeof d=="string"&&!NS.has(d)&&Ss(d).values.length&&(c=i[u]),u++}if(c&&o)for(const d of l)i[d]=ng(o,c)}class zS extends Uf{constructor(l,o,u,c,d){super(l,o,u,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:o,name:u}=this;if(!o||!o.current)return;super.readKeyframes();for(let x=0;x<l.length;x++){let b=l[x];if(typeof b=="string"&&(b=b.trim(),Df(b))){const T=k0(b,o.current);T!==void 0&&(l[x]=T),x===l.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!F0.has(u)||l.length!==2)return;const[c,d]=l,h=iy(c),p=iy(d),g=Kp(c),m=Kp(d);if(g!==m&&ja[u]){this.needsMeasurement=!0;return}if(h!==p)if(Ip(h)&&Ip(p))for(let x=0;x<l.length;x++){const b=l[x];typeof b=="string"&&(l[x]=parseFloat(b))}else ja[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:o}=this,u=[];for(let c=0;c<l.length;c++)(l[c]===null||AS(l[c]))&&u.push(c);u.length&&OS(l,u,o)}measureInitialState(){const{element:l,unresolvedKeyframes:o,name:u}=this;if(!l||!l.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ja[u](l.measureViewportBox(),window.getComputedStyle(l.current)),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&l.getValue(u,c).jump(c,!1)}measureEndState(){const{element:l,name:o,unresolvedKeyframes:u}=this;if(!l||!l.current)return;const c=l.getValue(o);c&&c.jump(this.measuredOrigin,!1);const d=u.length-1,h=u[d];u[d]=ja[o](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 RS=new Set(["opacity","clipPath","filter","transform"]);function ag(i,l,o){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let u=document;const c=o?.[i]??u.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(u=>u!=null)}const ig=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function df(i){return f0(i)&&"offsetHeight"in i}const{schedule:Gf}=w0(queueMicrotask,!1),fn={x:!1,y:!1};function lg(){return fn.x||fn.y}function VS(i){return i==="x"||i==="y"?fn[i]?null:(fn[i]=!0,()=>{fn[i]=!1}):fn.x||fn.y?null:(fn.x=fn.y=!0,()=>{fn.x=fn.y=!1})}function sg(i,l){const o=ag(i),u=new AbortController,c={passive:!0,...l,signal:u.signal};return[o,c,()=>u.abort()]}function _S(i){return!(i.pointerType==="touch"||lg())}function US(i,l,o={}){const[u,c,d]=sg(i,o);return u.forEach(h=>{let p=!1,g=!1,m;const x=()=>{h.removeEventListener("pointerleave",V)},b=X=>{m&&(m(X),m=void 0),x()},T=X=>{p=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,b(X))},N=()=>{p=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},V=X=>{if(X.pointerType!=="touch"){if(p){g=!0;return}b(X)}},Y=X=>{if(!_S(X))return;g=!1;const q=l(h,X);typeof q=="function"&&(m=q,h.addEventListener("pointerleave",V,c))};h.addEventListener("pointerenter",Y,c),h.addEventListener("pointerdown",N,c)}),d}const og=(i,l)=>l?i===l?!0:og(i,l.parentElement):!1,Xf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,BS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function LS(i){return BS.has(i.tagName)||i.isContentEditable===!0}const HS=new Set(["INPUT","SELECT","TEXTAREA"]);function YS(i){return HS.has(i.tagName)||i.isContentEditable===!0}const $o=new WeakSet;function sy(i){return l=>{l.key==="Enter"&&i(l)}}function Bc(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const qS=(i,l)=>{const o=i.currentTarget;if(!o)return;const u=sy(()=>{if($o.has(o))return;Bc(o,"down");const c=sy(()=>{Bc(o,"up")}),d=()=>Bc(o,"cancel");o.addEventListener("keyup",c,l),o.addEventListener("blur",d,l)});o.addEventListener("keydown",u,l),o.addEventListener("blur",()=>o.removeEventListener("keydown",u),l)};function oy(i){return Xf(i)&&!lg()}const uy=new WeakSet;function GS(i,l,o={}){const[u,c,d]=sg(i,o),h=p=>{const g=p.currentTarget;if(!oy(p)||uy.has(p))return;$o.add(g),o.stopPropagation&&uy.add(p);const m=l(g,p),x=(N,V)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",T),$o.has(g)&&$o.delete(g),oy(N)&&typeof m=="function"&&m(N,{success:V})},b=N=>{x(N,g===window||g===document||o.useGlobalTarget||og(g,N.target))},T=N=>{x(N,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",T,c)};return u.forEach(p=>{(o.useGlobalTarget?window:p).addEventListener("pointerdown",h,c),df(p)&&(p.addEventListener("focus",m=>qS(m,c)),!LS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function Kf(i){return f0(i)&&"ownerSVGElement"in i}const Io=new WeakMap;let tu;const ug=(i,l,o)=>(u,c)=>c&&c[0]?c[0][i+"Size"]:Kf(u)&&"getBBox"in u?u.getBBox()[l]:u[o],XS=ug("inline","width","offsetWidth"),KS=ug("block","height","offsetHeight");function QS({target:i,borderBoxSize:l}){Io.get(i)?.forEach(o=>{o(i,{get width(){return XS(i,l)},get height(){return KS(i,l)}})})}function ZS(i){i.forEach(QS)}function kS(){typeof ResizeObserver>"u"||(tu=new ResizeObserver(ZS))}function JS(i,l){tu||kS();const o=ag(i);return o.forEach(u=>{let c=Io.get(u);c||(c=new Set,Io.set(u,c)),c.add(l),tu?.observe(u)}),()=>{o.forEach(u=>{const c=Io.get(u);c?.delete(l),c?.size||tu?.unobserve(u)})}}const eu=new Set;let el;function FS(){el=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};eu.forEach(l=>l(i))},window.addEventListener("resize",el)}function PS(i){return eu.add(i),el||FS(),()=>{eu.delete(i),!eu.size&&typeof el=="function"&&(window.removeEventListener("resize",el),el=void 0)}}function ry(i,l){return typeof i=="function"?PS(i):JS(i,l)}function WS(i){return Kf(i)&&i.tagName==="svg"}const $S=[...tg,Wt,dn],IS=i=>$S.find(I0(i)),cy=()=>({translate:0,scale:1,origin:0,originPoint:0}),nl=()=>({x:cy(),y:cy()}),fy=()=>({min:0,max:0}),te=()=>({x:fy(),y:fy()}),t2=new WeakMap;function du(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Ts(i){return typeof i=="string"||Array.isArray(i)}const Qf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zf=["initial",...Qf];function mu(i){return du(i.animate)||Zf.some(l=>Ts(i[l]))}function rg(i){return!!(mu(i)||i.variants)}function e2(i,l,o){for(const u in l){const c=l[u],d=o[u];if(me(c))i.addValue(u,c);else if(me(d))i.addValue(u,sl(c,{owner:i}));else if(d!==c)if(i.hasValue(u)){const h=i.getValue(u);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(u);i.addValue(u,sl(h!==void 0?h:c,{owner:i}))}}for(const u in o)l[u]===void 0&&i.removeValue(u);return l}const mf={current:null},cg={current:!1},n2=typeof window<"u";function a2(){if(cg.current=!0,!!n2)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>mf.current=i.matches;i.addEventListener("change",l),l()}else mf.current=!1}const hy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let uu={};function fg(i){uu=i}function i2(){return uu}class l2{scrapeMotionValuesFromProps(l,o,u){return{}}constructor({parent:l,props:o,presenceContext:u,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=Uf,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=Se.now();this.renderScheduledAt<N&&(this.renderScheduledAt=N,Rt.render(this.render,!1,!0))};const{latestValues:m,renderState:x}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=o.initial?{...m}:{},this.renderState=x,this.parent=l,this.props=o,this.presenceContext=u,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=mu(o),this.isVariantNode=rg(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:b,...T}=this.scrapeMotionValuesFromProps(o,{},this);for(const N in T){const V=T[N];m[N]!==void 0&&me(V)&&V.set(m[N])}}mount(l){if(this.hasBeenMounted)for(const o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=l,t2.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((o,u)=>this.bindToMotionValue(u,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(cg.current||a2(),this.shouldReduceMotion=mf.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(),Na(this.notifyUpdate),Na(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 o=this.features[l];o&&(o.unmount(),o.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,o){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),o.accelerate&&RS.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:g,ease:m,duration:x}=o.accelerate,b=new K0({element:this.current,name:l,keyframes:p,times:g,ease:m,duration:hn(x)}),T=h(b);this.valueSubscriptions.set(l,()=>{T(),b.cancel()});return}const u=rl.has(l);u&&this.onBindTransform&&this.onBindTransform();const c=o.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&Rt.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,o)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),o.owner&&o.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 uu){const o=uu[l];if(!o)continue;const{isEnabled:u,Feature:c}=o;if(!this.features[l]&&c&&u(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):te()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,o){this.latestValues[l]=o}update(l,o){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let u=0;u<hy.length;u++){const c=hy[u];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=e2(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 o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(l),()=>o.variantChildren.delete(l)}addValue(l,o){const u=this.values.get(l);o!==u&&(u&&this.removeValue(l),this.bindToMotionValue(l,o),this.values.set(l,o),this.latestValues[l]=o.get())}removeValue(l){this.values.delete(l);const o=this.valueSubscriptions.get(l);o&&(o(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,o){if(this.props.values&&this.props.values[l])return this.props.values[l];let u=this.values.get(l);return u===void 0&&o!==void 0&&(u=sl(o===null?void 0:o,{owner:this}),this.addValue(l,u)),u}readValue(l,o){let u=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return u!=null&&(typeof u=="string"&&(c0(u)||h0(u))?u=parseFloat(u):!IS(u)&&dn.test(o)&&(u=ng(l,o)),this.setBaseTarget(l,me(u)?u.get():u)),me(u)?u.get():u}setBaseTarget(l,o){this.baseTarget[l]=o}getBaseTarget(l){const{initial:o}=this.props;let u;if(typeof o=="string"||typeof o=="object"){const d=Hf(this.props,o,this.presenceContext?.custom);d&&(u=d[l])}if(o&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!me(c)?c:this.initialValues[l]!==void 0&&u===void 0?void 0:this.baseTarget[l]}on(l,o){return this.events[l]||(this.events[l]=new wf),this.events[l].add(o)}notify(l,...o){this.events[l]&&this.events[l].notify(...o)}scheduleRenderMicrotask(){Gf.render(this.render)}}class hg extends l2{constructor(){super(...arguments),this.KeyframeResolver=zS}sortInstanceNodePosition(l,o){return l.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(l,o){const u=l.style;return u?u[o]:void 0}removeValueFromRenderState(l,{vars:o,style:u}){delete o[l],delete u[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;me(l)&&(this.childSubscription=l.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class Oa{constructor(l){this.isMounted=!1,this.node=l}update(){}}function dg({top:i,left:l,right:o,bottom:u}){return{x:{min:l,max:o},y:{min:i,max:u}}}function s2({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function o2(i,l){if(!l)return i;const o=l({x:i.left,y:i.top}),u=l({x:i.right,y:i.bottom});return{top:o.y,left:o.x,bottom:u.y,right:u.x}}function Lc(i){return i===void 0||i===1}function pf({scale:i,scaleX:l,scaleY:o}){return!Lc(i)||!Lc(l)||!Lc(o)}function ai(i){return pf(i)||mg(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function mg(i){return dy(i.x)||dy(i.y)}function dy(i){return i&&i!=="0%"}function ru(i,l,o){const u=i-o,c=l*u;return o+c}function my(i,l,o,u,c){return c!==void 0&&(i=ru(i,c,u)),ru(i,o,u)+l}function yf(i,l=0,o=1,u,c){i.min=my(i.min,l,o,u,c),i.max=my(i.max,l,o,u,c)}function pg(i,{x:l,y:o}){yf(i.x,l.translate,l.scale,l.originPoint),yf(i.y,o.translate,o.scale,o.originPoint)}const py=.999999999999,yy=1.0000000000001;function u2(i,l,o,u=!1){const c=o.length;if(!c)return;l.x=l.y=1;let d,h;for(let p=0;p<c;p++){d=o[p],h=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&il(i,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(l.x*=h.x.scale,l.y*=h.y.scale,pg(i,h)),u&&ai(d.latestValues)&&il(i,d.latestValues))}l.x<yy&&l.x>py&&(l.x=1),l.y<yy&&l.y>py&&(l.y=1)}function al(i,l){i.min=i.min+l,i.max=i.max+l}function gy(i,l,o,u,c=.5){const d=Ht(i.min,i.max,c);yf(i,l,o,d,u)}function il(i,l){gy(i.x,l.x,l.scaleX,l.scale,l.originX),gy(i.y,l.y,l.scaleY,l.scale,l.originY)}function yg(i,l){return dg(o2(i.getBoundingClientRect(),l))}function r2(i,l,o){const u=yg(i,o),{scroll:c}=l;return c&&(al(u.x,c.offset.x),al(u.y,c.offset.y)),u}const c2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},f2=ul.length;function h2(i,l,o){let u="",c=!0;for(let d=0;d<f2;d++){const h=ul[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||o){const m=ig(p,qf[h]);if(!g){c=!1;const x=c2[h]||h;u+=`${x}(${m}) `}o&&(l[h]=m)}}return u=u.trim(),o?u=o(l,c?"":u):c&&(u="none"),u}function kf(i,l,o){const{style:u,vars:c,transformOrigin:d}=i;let h=!1,p=!1;for(const g in l){const m=l[g];if(rl.has(g)){h=!0;continue}else if(M0(g)){c[g]=m;continue}else{const x=ig(m,qf[g]);g.startsWith("origin")?(p=!0,d[g]=x):u[g]=x}}if(l.transform||(h||o?u.transform=h2(l,i.transform,o):u.transform&&(u.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:x=0}=d;u.transformOrigin=`${g} ${m} ${x}`}}function gg(i,{style:l,vars:o},u,c){const d=i.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,u);for(h in o)d.setProperty(h,o[h])}function vy(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const ds={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(I.test(i))i=parseFloat(i);else return i;const o=vy(i,l.target.x),u=vy(i,l.target.y);return`${o}% ${u}%`}},d2={correct:(i,{treeScale:l,projectionDelta:o})=>{const u=i,c=dn.parse(i);if(c.length>5)return u;const d=dn.createTransformer(i),h=typeof c[0]!="number"?1:0,p=o.x.scale*l.x,g=o.y.scale*l.y;c[0+h]/=p,c[1+h]/=g;const m=Ht(p,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},gf={borderRadius:{...ds,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ds,borderTopRightRadius:ds,borderBottomLeftRadius:ds,borderBottomRightRadius:ds,boxShadow:d2};function vg(i,{layout:l,layoutId:o}){return rl.has(i)||i.startsWith("origin")||(l||o!==void 0)&&(!!gf[i]||i==="opacity")}function Jf(i,l,o){const u=i.style,c=l?.style,d={};if(!u)return d;for(const h in u)(me(u[h])||c&&me(c[h])||vg(h,i)||o?.getValue(h)?.liveStyle!==void 0)&&(d[h]=u[h]);return d}function m2(i){return window.getComputedStyle(i)}class p2 extends hg{constructor(){super(...arguments),this.type="html",this.renderInstance=gg}readValueFromInstance(l,o){if(rl.has(o))return this.projection?.isProjecting?ef(o):Vb(l,o);{const u=m2(l),c=(M0(o)?u.getPropertyValue(o):u[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:o}){return yg(l,o)}build(l,o,u){kf(l,o,u.transformTemplate)}scrapeMotionValuesFromProps(l,o,u){return Jf(l,o,u)}}const y2={offset:"stroke-dashoffset",array:"stroke-dasharray"},g2={offset:"strokeDashoffset",array:"strokeDasharray"};function v2(i,l,o=1,u=0,c=!0){i.pathLength=1;const d=c?y2:g2;i[d.offset]=`${-u}`,i[d.array]=`${l} ${o}`}const x2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function xg(i,{attrX:l,attrY:o,attrScale:u,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...p},g,m,x){if(kf(i,p,m),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:b,style:T}=i;b.transform&&(T.transform=b.transform,delete b.transform),(T.transform||b.transformOrigin)&&(T.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),T.transform&&(T.transformBox=x?.transformBox??"fill-box",delete b.transformBox);for(const N of x2)b[N]!==void 0&&(T[N]=b[N],delete b[N]);l!==void 0&&(b.x=l),o!==void 0&&(b.y=o),u!==void 0&&(b.scale=u),c!==void 0&&v2(b,c,d,h,!1)}const bg=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"]),Sg=i=>typeof i=="string"&&i.toLowerCase()==="svg";function b2(i,l,o,u){gg(i,l,void 0,u);for(const c in l.attrs)i.setAttribute(bg.has(c)?c:Yf(c),l.attrs[c])}function Tg(i,l,o){const u=Jf(i,l,o);for(const c in i)if(me(i[c])||me(l[c])){const d=ul.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[d]=i[c]}return u}class S2 extends hg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(l,o){return l[o]}readValueFromInstance(l,o){if(rl.has(o)){const u=eg(o);return u&&u.default||0}return o=bg.has(o)?o:Yf(o),l.getAttribute(o)}scrapeMotionValuesFromProps(l,o,u){return Tg(l,o,u)}build(l,o,u){xg(l,o,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(l,o,u,c){b2(l,o,u,c)}mount(l){this.isSVGTag=Sg(l.tagName),super.mount(l)}}const T2=Zf.length;function Ag(i){if(!i)return;if(!i.isControllingVariants){const o=i.parent?Ag(i.parent)||{}:{};return i.props.initial!==void 0&&(o.initial=i.props.initial),o}const l={};for(let o=0;o<T2;o++){const u=Zf[o],c=i.props[u];(Ts(c)||c===!1)&&(l[u]=c)}return l}function Eg(i,l){if(!Array.isArray(l))return!1;const o=l.length;if(o!==i.length)return!1;for(let u=0;u<o;u++)if(l[u]!==i[u])return!1;return!0}const A2=[...Qf].reverse(),E2=Qf.length;function w2(i){return l=>Promise.all(l.map(({animation:o,options:u})=>SS(i,o,u)))}function C2(i){let l=w2(i),o=xy(),u=!0;const c=g=>(m,x)=>{const b=ll(i,x,g==="exit"?i.presenceContext?.custom:void 0);if(b){const{transition:T,transitionEnd:N,...V}=b;m={...m,...V,...N}}return m};function d(g){l=g(i)}function h(g){const{props:m}=i,x=Ag(i.parent)||{},b=[],T=new Set;let N={},V=1/0;for(let X=0;X<E2;X++){const q=A2[X],K=o[q],G=m[q]!==void 0?m[q]:x[q],J=Ts(G),Z=q===g?K.isActive:null;Z===!1&&(V=X);let lt=G===x[q]&&G!==m[q]&&J;if(lt&&u&&i.manuallyAnimateOnMount&&(lt=!1),K.protectedKeys={...N},!K.isActive&&Z===null||!G&&!K.prevProp||du(G)||typeof G=="boolean")continue;if(q==="exit"&&K.isActive&&Z!==!0){K.prevResolvedValues&&(N={...N,...K.prevResolvedValues});continue}const k=M2(K.prevProp,G);let F=k||q===g&&K.isActive&&!lt&&J||X>V&&J,st=!1;const bt=Array.isArray(G)?G:[G];let wt=bt.reduce(c(q),{});Z===!1&&(wt={});const{prevResolvedValues:Lt={}}=K,ae={...Lt,...wt},vt=H=>{F=!0,T.has(H)&&(st=!0,T.delete(H)),K.needsAnimating[H]=!0;const $=i.getValue(H);$&&($.liveStyle=!1)};for(const H in ae){const $=wt[H],ut=Lt[H];if(N.hasOwnProperty(H))continue;let ht=!1;uf($)&&uf(ut)?ht=!Eg($,ut):ht=$!==ut,ht?$!=null?vt(H):T.add(H):$!==void 0&&T.has(H)?vt(H):K.protectedKeys[H]=!0}K.prevProp=G,K.prevResolvedValues=wt,K.isActive&&(N={...N,...wt}),u&&i.blockInitialAnimation&&(F=!1);const $t=lt&&k;F&&(!$t||st)&&b.push(...bt.map(H=>{const $={type:q};if(typeof H=="string"&&u&&!$t&&i.manuallyAnimateOnMount&&i.parent){const{parent:ut}=i,ht=ll(ut,H);if(ut.enteringChildren&&ht){const{delayChildren:E}=ht.transition||{};$.delay=Z0(ut.enteringChildren,i,E)}}return{animation:H,options:$}}))}if(T.size){const X={};if(typeof m.initial!="boolean"){const q=ll(i,Array.isArray(m.initial)?m.initial[0]:m.initial);q&&q.transition&&(X.transition=q.transition)}T.forEach(q=>{const K=i.getBaseTarget(q),G=i.getValue(q);G&&(G.liveStyle=!0),X[q]=K??null}),b.push({animation:X})}let Y=!!b.length;return u&&(m.initial===!1||m.initial===m.animate)&&!i.manuallyAnimateOnMount&&(Y=!1),u=!1,Y?l(b):Promise.resolve()}function p(g,m){if(o[g].isActive===m)return Promise.resolve();i.variantChildren?.forEach(b=>b.animationState?.setActive(g,m)),o[g].isActive=m;const x=h(g);for(const b in o)o[b].protectedKeys={};return x}return{animateChanges:h,setActive:p,setAnimateFunction:d,getState:()=>o,reset:()=>{o=xy()}}}function M2(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!Eg(l,i):!1}function ni(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xy(){return{animate:ni(!0),whileInView:ni(),whileHover:ni(),whileTap:ni(),whileDrag:ni(),whileFocus:ni(),exit:ni()}}function by(i,l){i.min=l.min,i.max=l.max}function cn(i,l){by(i.x,l.x),by(i.y,l.y)}function Sy(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const wg=1e-4,D2=1-wg,j2=1+wg,Cg=.01,N2=0-Cg,O2=0+Cg;function Te(i){return i.max-i.min}function z2(i,l,o){return Math.abs(i-l)<=o}function Ty(i,l,o,u=.5){i.origin=u,i.originPoint=Ht(l.min,l.max,i.origin),i.scale=Te(o)/Te(l),i.translate=Ht(o.min,o.max,i.origin)-i.originPoint,(i.scale>=D2&&i.scale<=j2||isNaN(i.scale))&&(i.scale=1),(i.translate>=N2&&i.translate<=O2||isNaN(i.translate))&&(i.translate=0)}function gs(i,l,o,u){Ty(i.x,l.x,o.x,u?u.originX:void 0),Ty(i.y,l.y,o.y,u?u.originY:void 0)}function Ay(i,l,o){i.min=o.min+l.min,i.max=i.min+Te(l)}function R2(i,l,o){Ay(i.x,l.x,o.x),Ay(i.y,l.y,o.y)}function Ey(i,l,o){i.min=l.min-o.min,i.max=i.min+Te(l)}function cu(i,l,o){Ey(i.x,l.x,o.x),Ey(i.y,l.y,o.y)}function wy(i,l,o,u,c){return i-=l,i=ru(i,1/o,u),c!==void 0&&(i=ru(i,1/c,u)),i}function V2(i,l=0,o=1,u=.5,c,d=i,h=i){if(An.test(l)&&(l=parseFloat(l),l=Ht(h.min,h.max,l/100)-h.min),typeof l!="number")return;let p=Ht(d.min,d.max,u);i===d&&(p-=l),i.min=wy(i.min,l,o,p,c),i.max=wy(i.max,l,o,p,c)}function Cy(i,l,[o,u,c],d,h){V2(i,l[o],l[u],l[c],l.scale,d,h)}const _2=["x","scaleX","originX"],U2=["y","scaleY","originY"];function My(i,l,o,u){Cy(i.x,l,_2,o?o.x:void 0,u?u.x:void 0),Cy(i.y,l,U2,o?o.y:void 0,u?u.y:void 0)}function Dy(i){return i.translate===0&&i.scale===1}function Mg(i){return Dy(i.x)&&Dy(i.y)}function jy(i,l){return i.min===l.min&&i.max===l.max}function B2(i,l){return jy(i.x,l.x)&&jy(i.y,l.y)}function Ny(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function Dg(i,l){return Ny(i.x,l.x)&&Ny(i.y,l.y)}function Oy(i){return Te(i.x)/Te(i.y)}function zy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function Tn(i){return[i("x"),i("y")]}function L2(i,l,o){let u="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=o?.z||0;if((c||d||h)&&(u=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(u+=`scale(${1/l.x}, ${1/l.y}) `),o){const{transformPerspective:m,rotate:x,rotateX:b,rotateY:T,skewX:N,skewY:V}=o;m&&(u=`perspective(${m}px) ${u}`),x&&(u+=`rotate(${x}deg) `),b&&(u+=`rotateX(${b}deg) `),T&&(u+=`rotateY(${T}deg) `),N&&(u+=`skewX(${N}deg) `),V&&(u+=`skewY(${V}deg) `)}const p=i.x.scale*l.x,g=i.y.scale*l.y;return(p!==1||g!==1)&&(u+=`scale(${p}, ${g})`),u||"none"}const jg=["TopLeft","TopRight","BottomLeft","BottomRight"],H2=jg.length,Ry=i=>typeof i=="string"?parseFloat(i):i,Vy=i=>typeof i=="number"||I.test(i);function Y2(i,l,o,u,c,d){c?(i.opacity=Ht(0,o.opacity??1,q2(u)),i.opacityExit=Ht(l.opacity??1,0,G2(u))):d&&(i.opacity=Ht(l.opacity??1,o.opacity??1,u));for(let h=0;h<H2;h++){const p=`border${jg[h]}Radius`;let g=_y(l,p),m=_y(o,p);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||Vy(g)===Vy(m)?(i[p]=Math.max(Ht(Ry(g),Ry(m),u),0),(An.test(m)||An.test(g))&&(i[p]+="%")):i[p]=m}(l.rotate||o.rotate)&&(i.rotate=Ht(l.rotate||0,o.rotate||0,u))}function _y(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const q2=Ng(0,.5,S0),G2=Ng(.5,.95,en);function Ng(i,l,o){return u=>u<i?0:u>l?1:o(xs(i,l,u))}function X2(i,l,o){const u=me(i)?i:sl(i);return u.start(Lf("",u,l,o)),u.animation}function As(i,l,o,u={passive:!0}){return i.addEventListener(l,o,u),()=>i.removeEventListener(l,o)}const K2=(i,l)=>i.depth-l.depth;class Q2{constructor(){this.children=[],this.isDirty=!1}add(l){Af(this.children,l),this.isDirty=!0}remove(l){iu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(K2),this.isDirty=!1,this.children.forEach(l)}}function Z2(i,l){const o=Se.now(),u=({timestamp:c})=>{const d=c-o;d>=l&&(Na(u),i(d-l))};return Rt.setup(u,!0),()=>Na(u)}function nu(i){return me(i)?i.get():i}class k2{constructor(){this.members=[]}add(l){Af(this.members,l);for(let o=this.members.length-1;o>=0;o--){const u=this.members[o];if(u===l||u===this.lead||u===this.prevLead)continue;const c=u.instance;c&&c.isConnected===!1&&u.isPresent!==!1&&!u.snapshot&&iu(this.members,u)}l.scheduleRender()}remove(l){if(iu(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(l){const o=this.members.findIndex(c=>l===c);if(o===0)return!1;let u;for(let c=o;c>=0;c--){const d=this.members[c],h=d.instance;if(d.isPresent!==!1&&(!h||h.isConnected!==!1)){u=d;break}}return u?(this.promote(u),!0):!1}promote(l,o){const u=this.lead;if(l!==u&&(this.prevLead=u,this.lead=l,l.show(),u)){u.instance&&u.scheduleRender(),l.scheduleRender();const c=u.options.layoutDependency,d=l.options.layoutDependency;if(!(c!==void 0&&d!==void 0&&c===d)){const g=u.instance;g&&g.isConnected===!1&&!u.snapshot||(l.resumeFrom=u,o&&(l.resumeFrom.preserveOpacity=!0),u.snapshot&&(l.snapshot=u.snapshot,l.snapshot.latestValues=u.animationValues||u.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:p}=l.options;p===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:o,resumingFrom:u}=l;o.onExitComplete&&o.onExitComplete(),u&&u.options.onExitComplete&&u.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const au={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Hc=["","X","Y","Z"],J2=1e3;let F2=0;function Yc(i,l,o,u){const{latestValues:c}=l;c[i]&&(o[i]=c[i],l.setStaticValue(i,0),u&&(u[i]=0))}function Og(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const o=W0(l);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(o,"transform",Rt,!(c||d))}const{parent:u}=i;u&&!u.hasCheckedOptimisedAppear&&Og(u)}function zg({attachResizeListener:i,defaultParent:l,measureScroll:o,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(h={},p=l?.()){this.id=F2++,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($2),this.nodes.forEach(nT),this.nodes.forEach(aT),this.nodes.forEach(I2)},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 Q2)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new wf),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=Kf(h)&&!WS(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 x,b=0;const T=()=>this.root.updateBlockedByResize=!1;Rt.read(()=>{b=window.innerWidth}),i(h,()=>{const N=window.innerWidth;N!==b&&(b=N,this.root.updateBlockedByResize=!0,x&&x(),x=Z2(T,250),au.hasAnimatedSinceResize&&(au.hasAnimatedSinceResize=!1,this.nodes.forEach(Ly)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:T,layout:N})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||m.getDefaultTransition()||uT,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:X}=m.getProps(),q=!this.targetLayout||!Dg(this.targetLayout,N),K=!b&&T;if(this.options.layoutRoot||this.resumeFrom||K||b&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...Bf(V,"layout"),onPlay:Y,onComplete:X};(m.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(x,K)}else b||Ly(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(),Na(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(iT),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&&Og(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const b=this.path[x];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.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(Uy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(By);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(eT),this.nodes.forEach(P2),this.nodes.forEach(W2)):this.nodes.forEach(By),this.clearAllSnapshots();const p=Se.now();fe.delta=En(0,1e3/60,p-fe.timestamp),fe.timestamp=p,fe.isProcessing=!0,Oc.update.process(fe),Oc.preRender.process(fe),Oc.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tT),this.sharedNodes.forEach(lT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Te(this.snapshot.measuredBox.x)&&!Te(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=te(),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=u(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:o(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&&!Mg(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,x=m!==this.prevTransformTemplateValue;h&&this.instance&&(p||ai(this.latestValues)||x)&&(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)),rT(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return te();const p=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(cT))){const{scroll:m}=this.root;m&&(al(p.x,m.offset.x),al(p.y,m.offset.y))}return p}removeElementScroll(h){const p=te();if(cn(p,h),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:x,options:b}=m;m!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&cn(p,h),al(p.x,x.offset.x),al(p.y,x.offset.y))}return p}applyTransform(h,p=!1){const g=te();cn(g,h);for(let m=0;m<this.path.length;m++){const x=this.path[m];!p&&x.options.layoutScroll&&x.scroll&&x!==x.root&&il(g,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),ai(x.latestValues)&&il(g,x.latestValues)}return ai(this.latestValues)&&il(g,this.latestValues),g}removeTransform(h){const p=te();cn(p,h);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!ai(m.latestValues))continue;pf(m.latestValues)&&m.updateSnapshot();const x=te(),b=m.measurePageBox();cn(x,b),My(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,x)}return ai(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!==fe.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:x,layoutId:b}=this.options;if(!this.layout||!(x||b))return;this.resolvedRelativeTargetAt=fe.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=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),R2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):cn(this.target,this.layout.layoutBox),pg(this.target,this.targetDelta)):cn(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||pf(this.parent.latestValues)||mg(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=te(),this.relativeTargetOrigin=te(),cu(this.relativeTargetOrigin,p,g),cn(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===fe.timestamp&&(g=!1),g)return;const{layout:m,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||x))return;cn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,T=this.treeScale.y;u2(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=te());const{target:N}=h;if(!N){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sy(this.prevProjectionDelta.x,this.projectionDelta.x),Sy(this.prevProjectionDelta.y,this.projectionDelta.y)),gs(this.projectionDelta,this.layoutCorrected,N,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==T||!zy(this.projectionDelta.x,this.prevProjectionDelta.x)||!zy(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=nl(),this.projectionDelta=nl(),this.projectionDeltaWithTransform=nl()}setAnimationOrigin(h,p=!1){const g=this.snapshot,m=g?g.latestValues:{},x={...this.latestValues},b=nl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const T=te(),N=g?g.source:void 0,V=this.layout?this.layout.source:void 0,Y=N!==V,X=this.getStack(),q=!X||X.members.length<=1,K=!!(Y&&!q&&this.options.crossfade===!0&&!this.path.some(oT));this.animationProgress=0;let G;this.mixTargetDelta=J=>{const Z=J/1e3;Hy(b.x,h.x,Z),Hy(b.y,h.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cu(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sT(this.relativeTarget,this.relativeTargetOrigin,T,Z),G&&B2(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=te()),cn(G,this.relativeTarget)),Y&&(this.animationValues=x,Y2(x,m,this.latestValues,Z,K,q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Na(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Rt.update(()=>{au.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=sl(0)),this.motionValue.jump(0,!1),this.currentAnimation=X2(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(J2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:x}=h;if(!(!p||!g||!m)){if(this!==h&&this.layout&&m&&Rg(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||te();const b=Te(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+b;const T=Te(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+T}cn(p,g),il(p,x),gs(this.projectionDeltaWithTransform,this.layoutCorrected,p,x)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new k2),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&&Yc("z",h,m,this.animationValues);for(let x=0;x<Hc.length;x++)Yc(`rotate${Hc[x]}`,h,m,this.animationValues),Yc(`skew${Hc[x]}`,h,m,this.animationValues);h.render();for(const x in m)h.setStaticValue(x,m[x]),this.animationValues&&(this.animationValues[x]=m[x]);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=nu(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=nu(p?.pointerEvents)||""),this.hasProjected&&!ai(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const x=m.animationValues||m.latestValues;this.applyTransformsToTarget();let b=L2(this.projectionDeltaWithTransform,this.treeScale,x);g&&(b=g(x,b)),h.transform=b;const{x:T,y:N}=this.projectionDelta;h.transformOrigin=`${T.origin*100}% ${N.origin*100}% 0`,m.animationValues?h.opacity=m===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:h.opacity=m===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const V in gf){if(x[V]===void 0)continue;const{correct:Y,applyTo:X,isCSSVariable:q}=gf[V],K=b==="none"?x[V]:Y(x[V],m);if(X){const G=X.length;for(let J=0;J<G;J++)h[X[J]]=K}else q?this.options.visualElement.renderState.vars[V]=K:h[V]=K}this.options.layoutId&&(h.pointerEvents=m===this?nu(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Uy),this.root.sharedNodes.clear()}}}function P2(i){i.updateLayout()}function W2(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=i.layout,{animationType:c}=i.options,d=l.source!==i.layout.source;c==="size"?Tn(x=>{const b=d?l.measuredBox[x]:l.layoutBox[x],T=Te(b);b.min=o[x].min,b.max=b.min+T}):Rg(c,l.layoutBox,o)&&Tn(x=>{const b=d?l.measuredBox[x]:l.layoutBox[x],T=Te(o[x]);b.max=b.min+T,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[x].max=i.relativeTarget[x].min+T)});const h=nl();gs(h,o,l.layoutBox);const p=nl();d?gs(p,i.applyTransform(u,!0),l.measuredBox):gs(p,o,l.layoutBox);const g=!Mg(h);let m=!1;if(!i.resumeFrom){const x=i.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:T}=x;if(b&&T){const N=te();cu(N,l.layoutBox,b.layoutBox);const V=te();cu(V,o,T.layoutBox),Dg(N,V)||(m=!0),x.options.layoutRoot&&(i.relativeTarget=V,i.relativeTargetOrigin=N,i.relativeParent=x)}}}i.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:p,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(i.isLead()){const{onExitComplete:o}=i.options;o&&o()}i.options.transition=void 0}function $2(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 I2(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function tT(i){i.clearSnapshot()}function Uy(i){i.clearMeasurements()}function By(i){i.isLayoutDirty=!1}function eT(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Ly(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function nT(i){i.resolveTargetDelta()}function aT(i){i.calcProjection()}function iT(i){i.resetSkewAndRotation()}function lT(i){i.removeLeadSnapshot()}function Hy(i,l,o){i.translate=Ht(l.translate,0,o),i.scale=Ht(l.scale,1,o),i.origin=l.origin,i.originPoint=l.originPoint}function Yy(i,l,o,u){i.min=Ht(l.min,o.min,u),i.max=Ht(l.max,o.max,u)}function sT(i,l,o,u){Yy(i.x,l.x,o.x,u),Yy(i.y,l.y,o.y,u)}function oT(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const uT={duration:.45,ease:[.4,0,.1,1]},qy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Gy=qy("applewebkit/")&&!qy("chrome/")?Math.round:en;function Xy(i){i.min=Gy(i.min),i.max=Gy(i.max)}function rT(i){Xy(i.x),Xy(i.y)}function Rg(i,l,o){return i==="position"||i==="preserve-aspect"&&!z2(Oy(l),Oy(o),.2)}function cT(i){return i!==i.root&&i.scroll?.wasRoot}const fT=zg({attachResizeListener:(i,l)=>As(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),qc={current:void 0},Vg=zg({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!qc.current){const i=new fT({});i.mount(window),i.setOptions({layoutScroll:!0}),qc.current=i}return qc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Ff=z.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Ky(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function hT(...i){return l=>{let o=!1;const u=i.map(c=>{const d=Ky(c,l);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let c=0;c<u.length;c++){const d=u[c];typeof d=="function"?d():Ky(i[c],null)}}}}function dT(...i){return z.useCallback(hT(...i),i)}class mT extends z.Component{getSnapshotBeforeUpdate(l){const o=this.props.childRef.current;if(o&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=o.offsetParent,c=df(u)&&u.offsetWidth||0,d=df(u)&&u.offsetHeight||0,h=this.props.sizeRef.current;h.height=o.offsetHeight||0,h.width=o.offsetWidth||0,h.top=o.offsetTop,h.left=o.offsetLeft,h.right=c-h.width-h.left,h.bottom=d-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function pT({children:i,isPresent:l,anchorX:o,anchorY:u,root:c,pop:d}){const h=z.useId(),p=z.useRef(null),g=z.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=z.useContext(Ff),x=i.props?.ref??i?.ref,b=dT(p,x);return z.useInsertionEffect(()=>{const{width:T,height:N,top:V,left:Y,right:X,bottom:q}=g.current;if(l||d===!1||!p.current||!T||!N)return;const K=o==="left"?`left: ${Y}`:`right: ${X}`,G=u==="bottom"?`bottom: ${q}`:`top: ${V}`;p.current.dataset.motionPopId=h;const J=document.createElement("style");m&&(J.nonce=m);const Z=c??document.head;return Z.appendChild(J),J.sheet&&J.sheet.insertRule(`
10
+ [data-motion-pop-id="${h}"] {
11
+ position: absolute !important;
12
+ width: ${T}px !important;
13
+ height: ${N}px !important;
14
+ ${K}px !important;
15
+ ${G}px !important;
16
+ }
17
+ `),()=>{Z.contains(J)&&Z.removeChild(J)}},[l]),v.jsx(mT,{isPresent:l,childRef:p,sizeRef:g,pop:d,children:d===!1?i:z.cloneElement(i,{ref:b})})}const yT=({children:i,initial:l,isPresent:o,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:h,anchorX:p,anchorY:g,root:m})=>{const x=Tf(gT),b=z.useId();let T=!0,N=z.useMemo(()=>(T=!1,{id:b,initial:l,isPresent:o,custom:c,onExitComplete:V=>{x.set(V,!0);for(const Y of x.values())if(!Y)return;u&&u()},register:V=>(x.set(V,!1),()=>x.delete(V))}),[o,x,u]);return d&&T&&(N={...N}),z.useMemo(()=>{x.forEach((V,Y)=>x.set(Y,!1))},[o]),z.useEffect(()=>{!o&&!x.size&&u&&u()},[o]),i=v.jsx(pT,{pop:h==="popLayout",isPresent:o,anchorX:p,anchorY:g,root:m,children:i}),v.jsx(hu.Provider,{value:N,children:i})};function gT(){return new Map}function _g(i=!0){const l=z.useContext(hu);if(l===null)return[!0,null];const{isPresent:o,onExitComplete:u,register:c}=l,d=z.useId();z.useEffect(()=>{if(i)return c(d)},[i]);const h=z.useCallback(()=>i&&u&&u(d),[d,u,i]);return!o&&u?[!1,h]:[!0]}const Fo=i=>i.key||"";function Qy(i){const l=[];return z.Children.forEach(i,o=>{z.isValidElement(o)&&l.push(o)}),l}const vT=({children:i,custom:l,initial:o=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left",anchorY:g="top",root:m})=>{const[x,b]=_g(h),T=z.useMemo(()=>Qy(i),[i]),N=h&&!x?[]:T.map(Fo),V=z.useRef(!0),Y=z.useRef(T),X=Tf(()=>new Map),q=z.useRef(new Set),[K,G]=z.useState(T),[J,Z]=z.useState(T);r0(()=>{V.current=!1,Y.current=T;for(let F=0;F<J.length;F++){const st=Fo(J[F]);N.includes(st)?(X.delete(st),q.current.delete(st)):X.get(st)!==!0&&X.set(st,!1)}},[J,N.length,N.join("-")]);const lt=[];if(T!==K){let F=[...T];for(let st=0;st<J.length;st++){const bt=J[st],wt=Fo(bt);N.includes(wt)||(F.splice(st,0,bt),lt.push(bt))}return d==="wait"&&lt.length&&(F=lt),Z(Qy(F)),G(T),null}const{forceRender:k}=z.useContext(Sf);return v.jsx(v.Fragment,{children:J.map(F=>{const st=Fo(F),bt=h&&!x?!1:T===J||N.includes(st),wt=()=>{if(q.current.has(st))return;if(q.current.add(st),X.has(st))X.set(st,!0);else return;let Lt=!0;X.forEach(ae=>{ae||(Lt=!1)}),Lt&&(k?.(),Z(Y.current),h&&b?.(),u&&u())};return v.jsx(yT,{isPresent:bt,initial:!V.current||o?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:bt?void 0:wt,anchorX:p,anchorY:g,children:F},st)})})},Ug=z.createContext({strict:!1}),Zy={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 ky=!1;function xT(){if(ky)return;const i={};for(const l in Zy)i[l]={isEnabled:o=>Zy[l].some(u=>!!o[u])};fg(i),ky=!0}function Bg(){return xT(),i2()}function bT(i){const l=Bg();for(const o in i)l[o]={...l[o],...i[o]};fg(l)}const ST=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 fu(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||ST.has(i)}let Lg=i=>!fu(i);function TT(i){typeof i=="function"&&(Lg=l=>l.startsWith("on")?!fu(l):i(l))}try{TT(require("@emotion/is-prop-valid").default)}catch{}function AT(i,l,o){const u={};for(const c in i)c==="values"&&typeof i.values=="object"||(Lg(c)||o===!0&&fu(c)||!l&&!fu(c)||i.draggable&&c.startsWith("onDrag"))&&(u[c]=i[c]);return u}const pu=z.createContext({});function ET(i,l){if(mu(i)){const{initial:o,animate:u}=i;return{initial:o===!1||Ts(o)?o:void 0,animate:Ts(u)?u:void 0}}return i.inherit!==!1?l:{}}function wT(i){const{initial:l,animate:o}=ET(i,z.useContext(pu));return z.useMemo(()=>({initial:l,animate:o}),[Jy(l),Jy(o)])}function Jy(i){return Array.isArray(i)?i.join(" "):i}const Pf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hg(i,l,o){for(const u in l)!me(l[u])&&!vg(u,o)&&(i[u]=l[u])}function CT({transformTemplate:i},l){return z.useMemo(()=>{const o=Pf();return kf(o,l,i),Object.assign({},o.vars,o.style)},[l])}function MT(i,l){const o=i.style||{},u={};return Hg(u,o,i),Object.assign(u,CT(i,l)),u}function DT(i,l){const o={},u=MT(i,l);return i.drag&&i.dragListener!==!1&&(o.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(o.tabIndex=0),o.style=u,o}const Yg=()=>({...Pf(),attrs:{}});function jT(i,l,o,u){const c=z.useMemo(()=>{const d=Yg();return xg(d,l,Sg(u),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};Hg(d,i.style,i),c.style={...d,...c.style}}return c}const NT=["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:!!(NT.indexOf(i)>-1||/[A-Z]/u.test(i))}function OT(i,l,o,{latestValues:u},c,d=!1,h){const g=(h??Wf(i)?jT:DT)(l,u,c,i),m=AT(l,typeof i=="string",d),x=i!==z.Fragment?{...m,...g,ref:o}:{},{children:b}=l,T=z.useMemo(()=>me(b)?b.get():b,[b]);return z.createElement(i,{...x,children:T})}function zT({scrapeMotionValuesFromProps:i,createRenderState:l},o,u,c){return{latestValues:RT(o,u,c,i),renderState:l()}}function RT(i,l,o,u){const c={},d=u(i,{});for(const T in d)c[T]=nu(d[T]);let{initial:h,animate:p}=i;const g=mu(i),m=rg(i);l&&m&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),p===void 0&&(p=l.animate));let x=o?o.initial===!1:!1;x=x||h===!1;const b=x?p:h;if(b&&typeof b!="boolean"&&!du(b)){const T=Array.isArray(b)?b:[b];for(let N=0;N<T.length;N++){const V=Hf(i,T[N]);if(V){const{transitionEnd:Y,transition:X,...q}=V;for(const K in q){let G=q[K];if(Array.isArray(G)){const J=x?G.length-1:0;G=G[J]}G!==null&&(c[K]=G)}for(const K in Y)c[K]=Y[K]}}}return c}const qg=i=>(l,o)=>{const u=z.useContext(pu),c=z.useContext(hu),d=()=>zT(i,l,u,c);return o?d():Tf(d)},VT=qg({scrapeMotionValuesFromProps:Jf,createRenderState:Pf}),_T=qg({scrapeMotionValuesFromProps:Tg,createRenderState:Yg}),UT=Symbol.for("motionComponentSymbol");function BT(i,l,o){const u=z.useRef(o);z.useInsertionEffect(()=>{u.current=o});const c=z.useRef(null);return z.useCallback(d=>{d&&i.onMount?.(d),l&&(d?l.mount(d):l.unmount());const h=u.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 Gg=z.createContext({});function Ii(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function LT(i,l,o,u,c,d){const{visualElement:h}=z.useContext(pu),p=z.useContext(Ug),g=z.useContext(hu),m=z.useContext(Ff),x=m.reducedMotion,b=m.skipAnimations,T=z.useRef(null),N=z.useRef(!1);u=u||p.renderer,!T.current&&u&&(T.current=u(i,{visualState:l,parent:h,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:x,skipAnimations:b,isSVG:d}),N.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const V=T.current,Y=z.useContext(Gg);V&&!V.projection&&c&&(V.type==="html"||V.type==="svg")&&HT(T.current,o,c,Y);const X=z.useRef(!1);z.useInsertionEffect(()=>{V&&X.current&&V.update(o,g)});const q=o[P0],K=z.useRef(!!q&&!window.MotionHandoffIsComplete?.(q)&&window.MotionHasOptimisedAnimation?.(q));return r0(()=>{N.current=!0,V&&(X.current=!0,window.MotionIsMounted=!0,V.updateFeatures(),V.scheduleRenderMicrotask(),K.current&&V.animationState&&V.animationState.animateChanges())}),z.useEffect(()=>{V&&(!K.current&&V.animationState&&V.animationState.animateChanges(),K.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(q)}),K.current=!1),V.enteringChildren=void 0)}),V}function HT(i,l,o,u){const{layoutId:c,layout:d,drag:h,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:x}=l;i.projection=new o(i.latestValues,l["data-framer-portal-id"]?void 0:Xg(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||p&&Ii(p),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:u,crossfade:x,layoutScroll:g,layoutRoot:m})}function Xg(i){if(i)return i.options.allowProjection!==!1?i.projection:Xg(i.parent)}function Gc(i,{forwardMotionProps:l=!1,type:o}={},u,c){u&&bT(u);const d=o?o==="svg":Wf(i),h=d?_T:VT;function p(m,x){let b;const T={...z.useContext(Ff),...m,layoutId:YT(m)},{isStatic:N}=T,V=wT(m),Y=h(m,N);if(!N&&u0){qT();const X=GT(T);b=X.MeasureLayout,V.visualElement=LT(i,Y,T,c,X.ProjectionNode,d)}return v.jsxs(pu.Provider,{value:V,children:[b&&V.visualElement?v.jsx(b,{visualElement:V.visualElement,...T}):null,OT(i,m,BT(Y,V.visualElement,x),Y,N,l,d)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=z.forwardRef(p);return g[UT]=i,g}function YT({layoutId:i}){const l=z.useContext(Sf).id;return l&&i!==void 0?l+"-"+i:i}function qT(i,l){z.useContext(Ug).strict}function GT(i){const l=Bg(),{drag:o,layout:u}=l;if(!o&&!u)return{};const c={...o,...u};return{MeasureLayout:o?.isEnabled(i)||u?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function XT(i,l){if(typeof Proxy>"u")return Gc;const o=new Map,u=(d,h)=>Gc(d,h,i,l),c=(d,h)=>u(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?u:(o.has(h)||o.set(h,Gc(h,void 0,i,l)),o.get(h))})}const KT=(i,l)=>l.isSVG??Wf(i)?new S2(l):new p2(l,{allowProjection:i!==z.Fragment});class QT extends Oa{constructor(l){super(l),l.animationState||(l.animationState=C2(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();du(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:o}=this.node.prevProps||{};l!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ZT=0;class kT extends Oa{constructor(){super(...arguments),this.id=ZT++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:o}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===u)return;const c=this.node.animationState.setActive("exit",!l);o&&!l&&c.then(()=>{o(this.id)})}mount(){const{register:l,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const JT={animation:{Feature:QT},exit:{Feature:kT}};function Ms(i){return{point:{x:i.pageX,y:i.pageY}}}const FT=i=>l=>Xf(l)&&i(l,Ms(l));function vs(i,l,o,u){return As(i,l,FT(o),u)}const Kg=({current:i})=>i?i.ownerDocument.defaultView:null,Fy=(i,l)=>Math.abs(i-l);function PT(i,l){const o=Fy(i.x,l.x),u=Fy(i.y,l.y);return Math.sqrt(o**2+u**2)}const Py=new Set(["auto","scroll"]);class Qg{constructor(l,o,{transformPagePoint:u,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=Kc(this.lastMoveEventInfo,this.history),V=this.startEvent!==null,Y=PT(N.offset,{x:0,y:0})>=this.distanceThreshold;if(!V&&!Y)return;const{point:X}=N,{timestamp:q}=fe;this.history.push({...X,timestamp:q});const{onStart:K,onMove:G}=this.handlers;V||(K&&K(this.lastMoveEvent,N),this.startEvent=this.lastMoveEvent),G&&G(this.lastMoveEvent,N)},this.handlePointerMove=(N,V)=>{this.lastMoveEvent=N,this.lastMoveEventInfo=Xc(V,this.transformPagePoint),Rt.update(this.updatePoint,!0)},this.handlePointerUp=(N,V)=>{this.end();const{onEnd:Y,onSessionEnd:X,resumeAnimation:q}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&q&&q(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const K=Kc(N.type==="pointercancel"?this.lastMoveEventInfo:Xc(V,this.transformPagePoint),this.history);this.startEvent&&Y&&Y(N,K),X&&X(N,K)},!Xf(l))return;this.dragSnapToOrigin=d,this.handlers=o,this.transformPagePoint=u,this.distanceThreshold=h,this.contextWindow=c||window;const g=Ms(l),m=Xc(g,this.transformPagePoint),{point:x}=m,{timestamp:b}=fe;this.history=[{...x,timestamp:b}];const{onSessionStart:T}=o;T&&T(l,Kc(m,this.history)),this.removeListeners=Es(vs(this.contextWindow,"pointermove",this.handlePointerMove),vs(this.contextWindow,"pointerup",this.handlePointerUp),vs(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(l){let o=l.parentElement;for(;o;){const u=getComputedStyle(o);(Py.has(u.overflowX)||Py.has(u.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.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 o=this.scrollPositions.get(l);if(!o)return;const u=l===window,c=u?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-o.x,y:c.y-o.y};d.x===0&&d.y===0||(u?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),Rt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Na(this.updatePoint)}}function Xc(i,l){return l?{point:l(i.point)}:i}function Wy(i,l){return{x:i.x-l.x,y:i.y-l.y}}function Kc({point:i},l){return{point:i,delta:Wy(i,Zg(l)),offset:Wy(i,WT(l)),velocity:$T(l,.1)}}function WT(i){return i[0]}function Zg(i){return i[i.length-1]}function $T(i,l){if(i.length<2)return{x:0,y:0};let o=i.length-1,u=null;const c=Zg(i);for(;o>=0&&(u=i[o],!(c.timestamp-u.timestamp>hn(l)));)o--;if(!u)return{x:0,y:0};u===i[0]&&i.length>2&&c.timestamp-u.timestamp>hn(l)*2&&(u=i[1]);const d=tn(c.timestamp-u.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-u.x)/d,y:(c.y-u.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function IT(i,{min:l,max:o},u){return l!==void 0&&i<l?i=u?Ht(l,i,u.min):Math.max(i,l):o!==void 0&&i>o&&(i=u?Ht(o,i,u.max):Math.min(i,o)),i}function $y(i,l,o){return{min:l!==void 0?i.min+l:void 0,max:o!==void 0?i.max+o-(i.max-i.min):void 0}}function tA(i,{top:l,left:o,bottom:u,right:c}){return{x:$y(i.x,o,c),y:$y(i.y,l,u)}}function Iy(i,l){let o=l.min-i.min,u=l.max-i.max;return l.max-l.min<i.max-i.min&&([o,u]=[u,o]),{min:o,max:u}}function eA(i,l){return{x:Iy(i.x,l.x),y:Iy(i.y,l.y)}}function nA(i,l){let o=.5;const u=Te(i),c=Te(l);return c>u?o=xs(l.min,l.max-u,i.min):u>c&&(o=xs(i.min,i.max-c,l.min)),En(0,1,o)}function aA(i,l){const o={};return l.min!==void 0&&(o.min=l.min-i.min),l.max!==void 0&&(o.max=l.max-i.min),o}const vf=.35;function iA(i=vf){return i===!1?i=0:i===!0&&(i=vf),{x:t0(i,"left","right"),y:t0(i,"top","bottom")}}function t0(i,l,o){return{min:e0(i,l),max:e0(i,o)}}function e0(i,l){return typeof i=="number"?i:i[l]||0}const lA=new WeakMap;class sA{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=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:o=!1,distanceThreshold:u}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=b=>{o&&this.snapToCursor(Ms(b).point),this.stopAnimation()},h=(b,T)=>{const{drag:N,dragPropagation:V,onDragStart:Y}=this.getProps();if(N&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=VS(N),!this.openDragLock))return;this.latestPointerEvent=b,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),Tn(q=>{let K=this.getAxisMotionValue(q).get()||0;if(An.test(K)){const{projection:G}=this.visualElement;if(G&&G.layout){const J=G.layout.layoutBox[q];J&&(K=Te(J)*(parseFloat(K)/100))}}this.originPoint[q]=K}),Y&&Rt.update(()=>Y(b,T),!1,!0),rf(this.visualElement,"transform");const{animationState:X}=this.visualElement;X&&X.setActive("whileDrag",!0)},p=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T;const{dragPropagation:N,dragDirectionLock:V,onDirectionLock:Y,onDrag:X}=this.getProps();if(!N&&!this.openDragLock)return;const{offset:q}=T;if(V&&this.currentDirection===null){this.currentDirection=uA(q),this.currentDirection!==null&&Y&&Y(this.currentDirection);return}this.updateAxis("x",T.point,q),this.updateAxis("y",T.point,q),this.visualElement.render(),X&&Rt.update(()=>X(b,T),!1,!0)},g=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T,this.stop(b,T),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new Qg(l,{onSessionStart:d,onStart:h,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:u,contextWindow:Kg(this.visualElement),element:this.visualElement.current})}stop(l,o){const u=l||this.latestPointerEvent,c=o||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!u)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&Rt.postRender(()=>p(u,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:o}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:u}=this.getProps();!u&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,o,u){const{drag:c}=this.getProps();if(!u||!Po(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+u[l];this.constraints&&this.constraints[l]&&(h=IT(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:o}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&Ii(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&u?this.constraints=tA(u.layoutBox,l):this.constraints=!1,this.elastic=iA(o),c!==this.constraints&&!Ii(l)&&u&&this.constraints&&!this.hasMutatedConstraints&&Tn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=aA(u.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:o}=this.getProps();if(!l||!Ii(l))return!1;const u=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=r2(u,c.root,this.visualElement.getTransformPagePoint());let h=eA(c.layout.layoutBox,d);if(o){const p=o(s2(h));this.hasMutatedConstraints=!!p,p&&(h=dg(p))}return h}startAnimation(l){const{drag:o,dragMomentum:u,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=Tn(x=>{if(!Po(x,o,this.currentDirection))return;let b=g&&g[x]||{};h&&(b={min:0,max:0});const T=c?200:1e6,N=c?40:1e7,V={type:"inertia",velocity:u?l[x]:0,bounceStiffness:T,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(x,V)});return Promise.all(m).then(p)}startAxisValueAnimation(l,o){const u=this.getAxisMotionValue(l);return rf(this.visualElement,l),u.start(Lf(l,u,0,o,this.visualElement,!1))}stopAnimation(){Tn(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const o=`_drag${l.toUpperCase()}`,u=this.visualElement.getProps(),c=u[o];return c||this.visualElement.getValue(l,(u.initial?u.initial[l]:void 0)||0)}snapToCursor(l){Tn(o=>{const{drag:u}=this.getProps();if(!Po(o,u,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(o);if(c&&c.layout){const{min:h,max:p}=c.layout.layoutBox[o],g=d.get()||0;d.set(l[o]-Ht(h,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:o}=this.getProps(),{projection:u}=this.visualElement;if(!Ii(o)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Tn(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const g=p.get();c[h]=nA({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.constraints=!1,this.resolveConstraints(),Tn(h=>{if(!Po(h,l,null))return;const p=this.getAxisMotionValue(h),{min:g,max:m}=this.constraints[h];p.set(Ht(g,m,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;lA.set(this.visualElement,this);const l=this.visualElement.current,o=vs(l,"pointerdown",m=>{const{drag:x,dragListener:b=!0}=this.getProps(),T=m.target,N=T!==l&&YS(T);x&&b&&!N&&this.start(m)});let u;const c=()=>{const{dragConstraints:m}=this.getProps();Ii(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),u||(u=oA(l,m.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Rt.read(c);const p=As(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:x})=>{this.isDragging&&x&&(Tn(b=>{const T=this.getAxisMotionValue(b);T&&(this.originPoint[b]+=m[b].translate,T.set(T.get()+m[b].translate))}),this.visualElement.render())}));return()=>{p(),o(),h(),g&&g(),u&&u()}}getProps(){const l=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:u=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=vf,dragMomentum:p=!0}=l;return{...l,drag:o,dragDirectionLock:u,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:p}}}function n0(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function oA(i,l,o){const u=ry(i,n0(o)),c=ry(l,n0(o));return()=>{u(),c()}}function Po(i,l,o){return(l===!0||l===i)&&(o===null||o===i)}function uA(i,l=10){let o=null;return Math.abs(i.y)>l?o="y":Math.abs(i.x)>l&&(o="x"),o}class rA extends Oa{constructor(l){super(l),this.removeGroupControls=en,this.removeListeners=en,this.controls=new sA(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}update(){const{dragControls:l}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};l!==o&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Qc=i=>(l,o)=>{i&&Rt.update(()=>i(l,o),!1,!0)};class cA extends Oa{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(l){this.session=new Qg(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kg(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:o,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:Qc(l),onStart:Qc(o),onMove:Qc(u),onEnd:(d,h)=>{delete this.session,c&&Rt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=vs(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 Zc=!1;class fA extends z.Component{componentDidMount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:u,layoutId:c}=this.props,{projection:d}=l;d&&(o.group&&o.group.add(d),u&&u.register&&c&&u.register(d),Zc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),au.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:o,visualElement:u,drag:c,isPresent:d}=this.props,{projection:h}=u;return h&&(h.isPresent=d,l.layoutDependency!==o&&h.setOptions({...h.options,layoutDependency:o}),Zc=!0,c||l.layoutDependency!==o||o===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||Rt.postRender(()=>{const p=h.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Gf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:u}=this.props,{projection:c}=l;Zc=!0,c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),u&&u.deregister&&u.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function kg(i){const[l,o]=_g(),u=z.useContext(Sf);return v.jsx(fA,{...i,layoutGroup:u,switchLayoutGroup:z.useContext(Gg),isPresent:l,safeToRemove:o})}const hA={pan:{Feature:cA},drag:{Feature:rA,ProjectionNode:Vg,MeasureLayout:kg}};function a0(i,l,o){const{props:u}=i;i.animationState&&u.whileHover&&i.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,d=u[c];d&&Rt.postRender(()=>d(l,Ms(l)))}class dA extends Oa{mount(){const{current:l}=this.node;l&&(this.unmount=US(l,(o,u)=>(a0(this.node,u,"Start"),c=>a0(this.node,c,"End"))))}unmount(){}}class mA extends Oa{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=Es(As(this.node.current,"focus",()=>this.onFocus()),As(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function i0(i,l,o){const{props:u}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&u.whileTap&&i.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),d=u[c];d&&Rt.postRender(()=>d(l,Ms(l)))}class pA extends Oa{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:o,propagate:u}=this.node.props;this.unmount=GS(l,(c,d)=>(i0(this.node,d,"Start"),(h,{success:p})=>i0(this.node,h,p?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:u?.tap===!1})}unmount(){}}const xf=new WeakMap,kc=new WeakMap,yA=i=>{const l=xf.get(i.target);l&&l(i)},gA=i=>{i.forEach(yA)};function vA({root:i,...l}){const o=i||document;kc.has(o)||kc.set(o,{});const u=kc.get(o),c=JSON.stringify(l);return u[c]||(u[c]=new IntersectionObserver(gA,{root:i,...l})),u[c]}function xA(i,l,o){const u=vA(l);return xf.set(i,o),u.observe(i),()=>{xf.delete(i),u.unobserve(i)}}const bA={some:0,all:1};class SA extends Oa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:o,margin:u,amount:c="some",once:d}=l,h={root:o?o.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:bA[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:x,onViewportLeave:b}=this.node.getProps(),T=m?x:b;T&&T(g)};return xA(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:o}=this.node;["amount","margin","root"].some(TA(l,o))&&this.startObserver()}unmount(){}}function TA({viewport:i={}},{viewport:l={}}={}){return o=>i[o]!==l[o]}const AA={inView:{Feature:SA},tap:{Feature:pA},focus:{Feature:mA},hover:{Feature:dA}},EA={layout:{ProjectionNode:Vg,MeasureLayout:kg}},wA={...JT,...AA,...hA,...EA},l0=XT(wA,KT),CA=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],MA={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)"}]},Jc=[{tier:"at",prefix:"my.fluxy.bot/",label:i=>`my.fluxy.bot/${i}`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1},{tier:"premium",prefix:"fluxy.bot/",label:i=>`fluxy.bot/${i}`,badge:"$3",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0}];function DA({models:i,value:l,onChange:o}){const[u,c]=z.useState(!1),d=z.useRef(null);z.useEffect(()=>{if(!u)return;const p=g=>{d.current&&!d.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[u]);const h=i.find(p=>p.id===l);return v.jsxs("div",{className:"relative",ref:d,children:[v.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:[v.jsx("span",{className:h?"text-white":"text-white/20",children:h?h.label:"Choose a model..."}),v.jsx(mx,{className:`h-4 w-4 text-white/30 transition-transform ${u?"rotate-180":""}`})]}),u&&v.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=>v.jsx("button",{onClick:()=>{o(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 zA({onComplete:i,isInitialSetup:l=!1,onSave:o}){const u=l?7:6,[c,d]=z.useState(0),[h,p]=z.useState(""),[g,m]=z.useState("anthropic"),[x,b]=z.useState(""),[T,N]=z.useState(!1),[V,Y]=z.useState({anthropic:"idle",openai:"idle"}),[X,q]=z.useState(!1),[K,G]=z.useState(""),[J,Z]=z.useState(!1),[lt,k]=z.useState(),[F,st]=z.useState(!1),[bt,wt]=z.useState(!1),[Lt,ae]=z.useState(),[vt,$t]=z.useState(""),[R,H]=z.useState(null),[$,ut]=z.useState(""),[ht,E]=z.useState({}),[U,Q]=z.useState("at"),[P,ot]=z.useState(!1),[at,dt]=z.useState(!1),[Kt,Ot]=z.useState(""),nn=z.useRef(null),[ie,cl]=z.useState("quick"),[oi,wn]=z.useState(""),[fl,hl]=z.useState(""),[qe,ta]=z.useState("relay"),[ze,ui]=z.useState(null),[Ge,dl]=z.useState(!1),[Ds,he]=z.useState(!1),[yu,js]=z.useState("admin"),[pe,ri]=z.useState(""),[ml,Ns]=z.useState(""),[Os,ci]=z.useState(!1),[le,ye]=z.useState(!1),[an,ge]=z.useState(!1),[ea,gu]=z.useState(""),[zs,Cn]=z.useState(""),[Mn,za]=z.useState(!1),[mn,Ra]=z.useState(!1),[Ae,Rs]=z.useState(!1),[Xe,fi]=z.useState(""),[se,Va]=z.useState(!1),[hi,pl]=z.useState(""),[di,mi]=z.useState(""),[yl,gl]=z.useState(""),[_a,ln]=z.useState(""),[Vt,ee]=z.useState(!1),[Dn,pi]=z.useState(!1),[Vs,jn]=z.useState(""),[Ua,Nn]=z.useState([]),[Ba,pn]=z.useState(!1),[On,zn]=z.useState(!1),[sn,Yt]=z.useState(""),[vl,La]=z.useState(""),[Rn,na]=z.useState(!1),xl=z.useRef(!1),yn=V[g]==="connected";z.useEffect(()=>{fetch("/api/onboard/status").then(D=>D.json()).then(D=>{D.userName&&p(D.userName),D.handle&&($t(D.handle.username),Q(D.handle.tier||"at"),ui({username:D.handle.username,tier:D.handle.tier,url:D.handle.url}),dt(!0),Ot(D.handle.url)),D.portalUser&&js(D.portalUser),D.portalConfigured&&ye(!0),D.provider&&m(D.provider),D.model&&b(D.model),D.whisperEnabled&&(Rs(!0),fi(D.whisperKey||"")),D.totpEnabled&&(Va(!0),ee(!0)),D.tunnelMode&&cl(D.tunnelMode),D.tunnelDomain&&wn(D.tunnelDomain),D.tunnelUrl&&hl(D.tunnelUrl),D.handle||ta("tunnel"),xl.current=!0}).catch(()=>{xl.current=!0})},[]),z.useEffect(()=>{na(window.matchMedia("(max-width: 768px)").matches||"ontouchstart"in window)},[]),z.useEffect(()=>{g!=="anthropic"||V.anthropic==="connected"||fetch("/api/auth/claude/status").then(D=>D.json()).then(D=>{D.authenticated&&Y(tt=>({...tt,anthropic:"connected"}))}).catch(()=>{})},[g]),z.useEffect(()=>{g!=="openai"||V.openai==="connected"||fetch("/api/auth/codex/status").then(D=>D.json()).then(D=>{D.authenticated&&Y(tt=>({...tt,openai:"connected"}))}).catch(()=>{})},[g]),z.useEffect(()=>{if(!bt)return;const D=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(wt(!1),Y(gn=>({...gn,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(D)},[bt]),z.useEffect(()=>{if(nn.current&&clearTimeout(nn.current),!xl.current||ie==="off"||ze&&at&&vt===ze.username)return;H(null),ut(""),E({}),dt(!1),Ot("");const D=vt.trim();if(D){if(D.length<3){H("invalid"),ut("At least 3 characters");return}return H("checking"),nn.current=setTimeout(async()=>{try{const St=await(await fetch(`/api/handle/check/${encodeURIComponent(D)}`)).json();if(!St.valid)H("invalid"),ut(St.error);else{const gn={};for(const _n of St.handles)gn[_n.tier]=_n.available;E(gn),H("ready");const Si=Jc.find(_n=>gn[_n.tier]);Si&&!gn[U]&&Q(Si.tier)}}catch{H(null)}},400),()=>{nn.current&&clearTimeout(nn.current)}}},[vt]);const yi=D=>{$t(D.toLowerCase().replace(/[^a-z0-9-]/g,""))},vu=async()=>{if(!(!vt||R!=="ready"||!ht[U])){ot(!0);try{const tt=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:U})})).json();tt.ok?(dt(!0),Ot(tt.url)):(ut(tt.error||"Registration failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{ot(!1)}}},gi=async()=>{if(!(!vt||R!=="ready"||!ht[U])){he(!0);try{const tt=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:U})})).json();tt.ok?(dt(!0),Ot(tt.url),ui({username:vt,tier:U,url:tt.url}),dl(!1)):(ut(tt.error||"Handle change failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{he(!1)}}},vi=D=>{g==="openai"&&D!=="openai"&&bt&&(fetch("/api/auth/codex/cancel",{method:"POST"}),wt(!1)),m(D),b(""),q(!1),G(""),k(void 0),wt(!1),ae(void 0)},Ke=D=>{if(window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0){const St=document.createElement("a");St.href=D,St.target="_blank",St.rel="noopener noreferrer",document.body.appendChild(St),St.click(),document.body.removeChild(St)}else window.open(D,"_blank","noopener,noreferrer")},Ee=async()=>{k(void 0);try{const tt=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();tt.success&&tt.authUrl?(Ke(tt.authUrl),q(!0)):k(tt.error||"Failed to start authentication")}catch(D){k(D.message)}},bl=async()=>{if(K.trim()){Z(!0),k(void 0);try{const tt=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:K.trim()})})).json();tt.success?Y(St=>({...St,anthropic:"connected"})):k(tt.error||"Code exchange failed")}catch(D){k(D.message)}finally{Z(!1)}}},xu=async()=>{try{const D=await navigator.clipboard.readText();D&&G(D.trim())}catch{}},Sl=async()=>{st(!0),k(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?Y(St=>({...St,anthropic:"connected"})):k("No active session found. Please authenticate first.")}catch{}finally{st(!1)}},_s=async()=>{wt(!0),ae(void 0);try{const tt=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();tt.success&&tt.authUrl?Ke(tt.authUrl):(wt(!1),ae(tt.error||"Failed to start authentication"))}catch(D){wt(!1),ae(D.message)}},xi=()=>{wt(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Us=pe===ml,ve=pe.length>=6&&Us,Tl=le?pe.length===0||Mn&&ve:ve,Vn=(()=>{switch(c){case 0:return!0;case 1:return h.trim().length>0;case 2:return ie==="off"||ie==="named"||qe==="tunnel"?vt.trim().length>=3:at;case 3:return!(!Tl||se&&!Vt||Ua.length>0&&!Ba);case 4:return!!(g&&x&&yn);case 5:return!0;default:return!1}})(),Re=()=>{Vn&&c<u-1&&d(D=>D+1)},aa=()=>{c>0&&d(D=>D-1)},bi=D=>{D.key==="Enter"&&Vn&&Re()},Bs=async()=>{N(!0);const D={userName:h.trim(),agentName:vt.trim()||"Fluxy",provider:g,model:x,apiKey:"",whisperEnabled:Ae,whisperKey:Ae?Xe:"",portalUser:yu.trim(),portalPass:pe};try{o?await o(D):await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)}),l?(N(!1),d(6)):i()}catch(tt){console.error("[OnboardWizard] Onboard failed:",tt),N(!1)}},xe="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",Al="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";return v.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[v.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),v.jsxs(l0.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:[v.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:u},(D,tt)=>v.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${tt===c?"w-7 bg-gradient-brand":tt<c?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},tt))}),v.jsx(vT,{mode:"wait",children:v.jsxs(l0.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:[c===0&&v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),v.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),v.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."}),v.jsxs("button",{onClick:Re,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",v.jsx(Ie,{className:"h-4 w-4"})]})]}),c===1&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),v.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[v.jsx("input",{type:"text",value:h,onChange:D=>p(D.target.value),onKeyDown:bi,placeholder:"Enter your name",autoFocus:!0,className:xe+" flex-1"}),v.jsx("button",{onClick:Re,disabled:!Vn,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:v.jsx(Ie,{className:"h-5 w-5"})})]})]}),c===2&&ie==="off"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Give your bot a name. This is used throughout the app as your bot's identity."}),v.jsx("div",{className:"relative mt-5",children:v.jsx("input",{type:"text",value:vt,onChange:D=>yi(D.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:xe+" pr-10 font-mono"})}),v.jsx("div",{className:"mt-4 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:"Private network mode — your bot is only accessible via your local network or VPN. No public URL will be created."})}),v.jsxs("button",{onClick:Re,disabled:!Vn,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",v.jsx(Ie,{className:"h-4 w-4"})]})]}),c===2&&ie==="named"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's identity. Your named tunnel domain is already configured."}),v.jsx("div",{className:"relative mt-5",children:v.jsx("input",{type:"text",value:vt,onChange:D=>yi(D.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:xe+" pr-10 font-mono"})}),v.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:[v.jsxs("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:["https://",oi]}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(`https://${oi}`),ci(!0),setTimeout(()=>ci(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Os?v.jsx(Ma,{className:"h-4 w-4 text-emerald-400"}):v.jsx(qp,{className:"h-4 w-4"})})]})]}),c===2&&ie==="quick"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.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."}),ze&&at&&!Ge&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Ma,{className:"h-4 w-4 text-emerald-400"}),v.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),v.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Kt})]}),v.jsxs("div",{className:"flex gap-2 mt-4",children:[v.jsxs("button",{onClick:Re,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",v.jsx(Ie,{className:"h-4 w-4"})]}),v.jsx("button",{onClick:()=>{dl(!0),dt(!1),$t(""),H(null),E({}),ta("relay")},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"})]})]}),Ge&&!at&&v.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[v.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),v.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",v.jsx("span",{className:"font-mono",children:ze?.url})," will be released and become available for others."]})]}),(!ze||Ge||!at)&&!(ze&&at&&!Ge)&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"relative mt-5",children:[v.jsx("input",{type:"text",value:vt,onChange:D=>yi(D.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:at,className:xe+" pr-10 font-mono"+(at?" opacity-50":"")}),R&&vt.length>0&&!at&&v.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[R==="checking"&&v.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),R==="invalid"&&v.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:v.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),R==="invalid"&&$&&v.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:$}),R==="ready"&&vt.length>0&&!at&&qe==="relay"&&v.jsxs("div",{className:"mt-4 text-center",children:[v.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-white/25",children:Jc.find(D=>D.tier===U)?.prefix}),v.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-gradient",children:vt})]}),R==="ready"&&vt.length>0&&!at&&v.jsxs("div",{className:"space-y-2 mt-4",children:[Jc.map(D=>{const St=ht[D.tier]===!1;return v.jsxs("button",{onClick:()=>{St||(Q(D.tier),ta("relay"))},disabled:St,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${St?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":qe==="relay"&&U===D.tier?D.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:[v.jsx("span",{className:`font-mono text-[13px] ${St?"text-white/40":qe==="relay"&&U===D.tier?"text-white/80":"text-white/50"}`,children:D.label(vt)}),St?v.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"}):v.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${D.badgeCls}`,children:D.badge})]},D.tier)}),v.jsxs("button",{onClick:()=>ta("tunnel"),className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${qe==="tunnel"?"border-white/[0.08] bg-white/[0.03]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[v.jsx("span",{className:"text-[13px] text-white/50",children:"No thanks, I'll use the random URL"}),v.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-white/[0.04] text-white/30 border-white/[0.08]",children:"Skip"})]})]}),at&&v.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Ma,{className:"h-4 w-4 text-emerald-400"}),v.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),v.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Kt})]}),qe==="relay"&&R==="ready"&&ht[U]&&vt.length>0&&!at&&v.jsx("button",{onClick:Ge?gi:vu,disabled:P||Ds,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:P||Ds?v.jsxs(v.Fragment,{children:[v.jsx(ei,{className:"h-4 w-4 animate-spin"}),Ge?"Changing...":"Claiming..."]}):v.jsxs(v.Fragment,{children:[Ge?"Change Handle":"Claim & Continue",v.jsx(Ie,{className:"h-4 w-4"})]})}),qe==="tunnel"&&R==="ready"&&vt.length>0&&!at&&v.jsxs("button",{onClick:Re,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",v.jsx(Ie,{className:"h-4 w-4"})]}),at&&v.jsxs("button",{onClick:Re,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",v.jsx(Ie,{className:"h-4 w-4"})]}),Ge&&!at&&v.jsx("button",{onClick:()=>{dl(!1),$t(ze.username),dt(!0),Ot(ze.url),Q(ze.tier),ta("relay"),H(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]})]}),c===3&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set a password"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"You'll need this password to access your agent's chat. Keep it safe — anyone with your URL will need it to log in."}),le&&v.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:v.jsx("p",{className:"text-white/40 text-[12px]",children:"Password already set. Leave fields empty to keep your current password, or enter your current password to change it."})}),le&&v.jsxs("div",{className:"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"password",value:ea,onChange:D=>{gu(D.target.value),Cn(""),za(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",autoFocus:!0,className:xe+" flex-1"}),ea.length>0&&!Mn&&v.jsx("button",{onClick:async()=>{Ra(!0),Cn("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:ea})})).json()).valid?za(!0):Cn("Incorrect password")}catch{Cn("Could not verify")}finally{Ra(!1)}},disabled:mn,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:mn?v.jsx(ei,{className:"h-4 w-4 animate-spin"}):"Verify"}),Mn&&v.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:v.jsx(Ma,{className:"h-4 w-4 text-emerald-400"})})]}),zs&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:zs})]}),(!le||Mn)&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:le?"mt-3":"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:le?"New password":"Password"}),v.jsx("input",{type:"password",value:pe,onChange:D=>ri(D.target.value),placeholder:"••••••••",autoComplete:"new-password",autoFocus:!le,onKeyDown:bi,className:xe}),pe.length>0&&pe.length<6&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),v.jsxs("div",{className:"mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:le?"Confirm new password":"Confirm password"}),v.jsx("input",{type:"password",value:ml,onChange:D=>Ns(D.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:bi,className:xe}),ml.length>0&&!Us&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),v.jsxs("div",{className:"mt-6 border border-white/[0.06] rounded-xl overflow-hidden",children:[v.jsxs("button",{onClick:async()=>{if(se&&Vt){zn(!0);return}const D=!se;if(Va(D),jn(""),ln(""),Nn([]),pn(!1),D&&!di)try{const tt=await fetch("/api/portal/totp/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:le?ea:pe})}),St=await tt.json();tt.ok?(pl(St.secret),mi(St.qrDataUri),gl(St.otpauthUri)):(jn(St.error||"Setup failed"),Va(!1))}catch{jn("Could not reach server"),Va(!1)}},type:"button",className:"w-full flex items-center gap-3 px-4 py-3 text-left",children:[v.jsx("div",{className:`w-9 h-9 rounded-lg flex items-center justify-center ${se&&Vt?"bg-emerald-500/10":"bg-white/[0.04]"}`,children:se&&Vt?v.jsx(Mx,{className:"h-4.5 w-4.5 text-emerald-400"}):v.jsx(jx,{className:"h-4.5 w-4.5 text-white/30"})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-[13px] font-medium text-white",children:"Two-Factor Authentication"}),(ie==="quick"||ie==="named")&&!se&&v.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-amber-500/10 text-amber-400 border border-amber-500/20",children:"Recommended"}),se&&Vt&&v.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:"Active"})]}),v.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:se&&Vt?"Require a 6-digit code from your authenticator app":"Add an extra layer of security with an authenticator app"})]}),v.jsx("div",{className:`w-10 h-6 rounded-full transition-colors relative ${se?"bg-emerald-500":"bg-white/10"}`,children:v.jsx("div",{className:`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform ${se?"translate-x-5":"translate-x-1"}`})})]}),On&&v.jsxs("div",{className:"px-4 pb-4 border-t border-white/[0.06]",children:[v.jsx("p",{className:"text-[12px] text-white/40 mt-3 mb-2",children:"Enter your current TOTP code to disable 2FA:"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:sn,onChange:D=>{Yt(D.target.value.replace(/\D/g,"")),La("")},placeholder:"000000",className:Al+" flex-1 tracking-[0.3em] text-center font-mono"}),v.jsx("button",{onClick:async()=>{if(sn.length===6)try{const D=await fetch("/api/portal/totp/disable",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:le?ea:pe,code:sn})}),tt=await D.json();D.ok?(Va(!1),ee(!1),pl(""),mi(""),gl(""),zn(!1),Yt(""),Nn([]),pn(!1)):La(tt.error||"Failed to disable")}catch{La("Could not reach server")}},disabled:sn.length!==6,className:"shrink-0 px-4 py-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-400 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:"Disable"})]}),vl&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:vl}),v.jsx("button",{onClick:()=>{zn(!1),Yt(""),La("")},className:"text-[11px] text-white/30 hover:text-white/50 mt-2",children:"Cancel"})]}),se&&!Vt&&!On&&v.jsxs("div",{className:"px-4 pb-4 border-t border-white/[0.06]",children:[Vs&&v.jsx("div",{className:"mt-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:v.jsx("p",{className:"text-red-400/90 text-[11px]",children:Vs})}),di&&v.jsxs(v.Fragment,{children:[v.jsx("p",{className:"text-[12px] text-white/40 mt-3 mb-3",children:"Scan this QR code with your authenticator app (Google Authenticator, Authy, 1Password, etc.)"}),Rn?v.jsxs("div",{className:"flex flex-col items-center gap-3",children:[v.jsxs("a",{href:yl,className:"w-full py-2.5 bg-[#AF27E3]/10 hover:bg-[#AF27E3]/20 text-[#AF27E3] text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:[v.jsx(Ox,{className:"h-4 w-4"}),"Open in Authenticator"]}),v.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(hi)},className:"text-[11px] text-white/30 hover:text-white/50 flex items-center gap-1",children:[v.jsx(jc,{className:"h-3 w-3"}),"Copy secret key"]})]}):v.jsxs("div",{className:"flex flex-col items-center gap-3",children:[v.jsx("div",{className:"bg-white rounded-xl p-2",children:v.jsx("img",{src:di,alt:"TOTP QR Code",className:"w-48 h-48"})}),v.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(hi)},className:"text-[11px] text-white/30 hover:text-white/50 flex items-center gap-1",children:[v.jsx(jc,{className:"h-3 w-3"}),"Copy secret key: ",hi.slice(0,8),"..."]})]}),v.jsxs("div",{className:"mt-4",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Enter the 6-digit code from your app"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:_a,onChange:D=>{ln(D.target.value.replace(/\D/g,"")),jn("")},placeholder:"000000",className:Al+" flex-1 tracking-[0.3em] text-center font-mono"}),v.jsx("button",{onClick:async()=>{if(_a.length===6){pi(!0),jn("");try{const D=await fetch("/api/portal/totp/verify-setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:_a,password:le?ea:pe})}),tt=await D.json();D.ok&&tt.success?(ee(!0),Nn(tt.recoveryCodes||[])):jn(tt.error||"Verification failed")}catch{jn("Could not reach server")}finally{pi(!1)}}},disabled:_a.length!==6||Dn,className:"shrink-0 px-4 py-2.5 bg-white/[0.06] hover:bg-white/[0.1] text-white/60 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:Dn?v.jsx(ei,{className:"h-4 w-4 animate-spin"}):"Verify"})]})]})]})]}),Ua.length>0&&v.jsx("div",{className:"px-4 pb-4 border-t border-white/[0.06]",children:v.jsxs("div",{className:"mt-3 bg-amber-500/5 border border-amber-500/15 rounded-xl px-3 py-2.5",children:[v.jsx("p",{className:"text-amber-400 text-[12px] font-medium mb-1",children:"Save your recovery codes"}),v.jsx("p",{className:"text-white/30 text-[11px] mb-3",children:"If you lose access to your authenticator, use one of these codes to sign in. Each code works once."}),v.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:Ua.map((D,tt)=>v.jsx("div",{className:"bg-black/30 rounded-lg px-2.5 py-1.5 text-center",children:v.jsx("code",{className:"text-[12px] text-white/60 font-mono tracking-wider",children:D})},tt))}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(Ua.join(`
18
+ `)),pn(!0)},className:`w-full mt-3 py-2 text-[12px] font-medium rounded-lg transition-colors flex items-center justify-center gap-1.5 ${Ba?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-white/[0.04] text-white/50 hover:bg-white/[0.08] border border-white/[0.06]"}`,children:Ba?v.jsxs(v.Fragment,{children:[v.jsx(Ma,{className:"h-3.5 w-3.5"}),"Copied — I've saved these"]}):v.jsxs(v.Fragment,{children:[v.jsx(jc,{className:"h-3.5 w-3.5"}),"Copy recovery codes"]})})]})})]}),v.jsxs("button",{onClick:Re,disabled:!Vn,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",v.jsx(Ie,{className:"h-4 w-4"})]})]}),c===4&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),v.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."}),v.jsx("div",{className:"flex gap-2.5 mt-4",children:CA.map(D=>v.jsxs("button",{onClick:()=>vi(D.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${g===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:[v.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[D.icon?v.jsx("img",{src:D.icon,alt:D.name,className:"w-8 h-8 rounded-lg"}):v.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"}),v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"text-[13px] font-medium text-white",children:D.name}),v.jsx("div",{className:"text-[10px] text-white/30",children:D.subtitle})]})]}),V[D.id]==="connected"?v.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:v.jsx(Ma,{className:"h-2.5 w-2.5 text-emerald-400"})}):g===D.id?v.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},D.id))}),v.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),g==="anthropic"&&v.jsxs("div",{className:"space-y-2.5",children:[yn&&v.jsxs("div",{className:"space-y-2.5",children:[v.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),v.jsxs("button",{onClick:()=>{Y(D=>({...D,anthropic:"idle"})),q(!1),G(""),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",children:[v.jsx(Nc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!yn&&v.jsxs(v.Fragment,{children:[lt&&v.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-red-400/90 text-[12px]",children:lt})}),v.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((D,tt)=>v.jsxs("div",{className:"flex items-start gap-2",children:[v.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:tt+1}),v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:D})]},tt))}),v.jsx("button",{onClick:Ee,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:X?v.jsxs(v.Fragment,{children:[v.jsx(Gp,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):v.jsxs(v.Fragment,{children:["Authenticate with Anthropic",v.jsx(Ie,{className:"h-3.5 w-3.5 opacity-60"})]})}),v.jsxs("div",{className:"relative",children:[v.jsx("input",{type:"text",value:K,onChange:D=>G(D.target.value),onKeyDown:D=>D.key==="Enter"&&bl(),placeholder:"Paste your code here...",className:Al+" pr-10 font-mono"}),v.jsx("button",{onClick:xu,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:v.jsx(qp,{className:"h-3.5 w-3.5"})})]}),v.jsx("button",{onClick:bl,disabled:!K.trim()||J,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:J?v.jsxs(v.Fragment,{children:[v.jsx(ei,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),v.jsxs("button",{onClick:Sl,disabled:F,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:[F?v.jsx(ei,{className:"h-3 w-3 animate-spin"}):v.jsx(Nc,{className:"h-3 w-3"}),F?"Checking...":"I'm already authenticated"]})]})]}),g==="openai"&&v.jsxs("div",{className:"space-y-2.5",children:[yn&&v.jsxs("div",{className:"space-y-2.5",children:[v.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),v.jsxs("button",{onClick:()=>{Y(D=>({...D,openai:"idle"})),ae("")},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",children:[v.jsx(Nc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!yn&&v.jsxs(v.Fragment,{children:[Lt&&v.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-red-400/90 text-[12px]",children:Lt})}),v.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((D,tt)=>v.jsxs("div",{className:"flex items-start gap-2",children:[v.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:tt+1}),v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:D})]},tt))}),v.jsx("button",{onClick:_s,disabled:bt,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:bt?v.jsxs(v.Fragment,{children:[v.jsx(ei,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):v.jsxs(v.Fragment,{children:["Authenticate with ChatGPT",v.jsx(Ie,{className:"h-3.5 w-3.5 opacity-60"})]})}),bt&&v.jsx("button",{onClick:xi,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),yn&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),v.jsx(DA,{models:MA[g]||[],value:x,onChange:b})]}),yn&&v.jsxs("button",{onClick:Re,disabled:!Vn,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",v.jsx(Ie,{className:"h-4 w-4"})]})]}),c===5&&v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),v.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"})]}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),v.jsx("button",{onClick:()=>Rs(D=>!D),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${Ae?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:v.jsxs("div",{className:"flex items-center gap-3.5",children:[v.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),v.jsxs("div",{className:"flex-1",children:[v.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),v.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."})]}),v.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${Ae?"bg-gradient-brand":"bg-white/[0.08]"}`,children:v.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${Ae?"translate-x-[18px]":"translate-x-0"}`})})]})}),Ae&&v.jsxs("div",{className:"mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),v.jsx("input",{type:"password",value:Xe,onChange:D=>fi(D.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:xe+" font-mono text-[13px]"}),Xe.length>0&&!Xe.startsWith("sk-")&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),Xe.length>0&&Xe.startsWith("sk-")&&Xe.length<20&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),v.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:[v.jsx(Ex,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),v.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."})]})]}),v.jsx("button",{onClick:Bs,disabled:T||Ae&&(!Xe.startsWith("sk-")||Xe.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:T?v.jsxs(v.Fragment,{children:[v.jsx(ei,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):v.jsxs(v.Fragment,{children:["Complete Setup",v.jsx(Ie,{className:"h-4 w-4"})]})}),!Ae&&v.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]}),c===6&&l&&(()=>{const D=ie==="off",tt=D?window.location.origin:ie==="named"?`https://${oi}`:qe==="relay"&&Kt?Kt:fl||"http://localhost:3000",St=tt.startsWith("http")?tt:`https://${tt}`,gn=D?"Your agent is running on your private network. Access it from any device on your local network or VPN.":ie==="named"?"Access your agent at your custom domain.":qe==="relay"&&Kt?"Your agent is live and ready. From now on, access it using your custom URL below.":"Your agent is live and ready. Your tunnel URL is shown below. Note: this URL changes on restart.";return v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center mb-5",children:v.jsx(Ma,{className:"h-8 w-8 text-emerald-400"})}),v.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"All Set!"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-2 leading-relaxed max-w-[340px]",children:gn}),v.jsxs("div",{className:"w-full mt-6 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:tt}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(St),ci(!0),setTimeout(()=>ci(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Os?v.jsx(Ma,{className:"h-4 w-4 text-emerald-400"}):v.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[v.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),v.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),v.jsxs("div",{className:"w-full mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block text-left",children:"Your password"}),v.jsxs("div",{className:"flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:an?pe:"•".repeat(Math.max(pe.length,8))}),v.jsx("button",{onClick:()=>ge(Si=>!Si),className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:an?v.jsx(xx,{className:"h-4 w-4"}):v.jsx(Sx,{className:"h-4 w-4"})})]})]}),v.jsxs("button",{onClick:()=>{D?(window.top||window).location.href="/":(window.top||window).location.href=St},className:"w-full mt-6 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:[D?"Go to dashboard":"Go to your agent",v.jsx(Gp,{className:"h-4 w-4"})]}),v.jsx("p",{className:"text-white/20 text-[11px] mt-3 leading-relaxed",children:D?"Access from any device on your network using the URL above.":`You'll be redirected to your ${ie==="named"?"custom domain":qe==="relay"?"custom URL":"tunnel URL"}.`})]})})()]},c)}),c>0&&c<u-1&&!(c===6&&l)&&v.jsx("div",{className:"px-8 pb-5 -mt-3",children:v.jsx("button",{onClick:aa,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{vT as A,Ma as C,ei as L,Ex as M,zA as O,jA as R,jx as S,Ie as a,jc as b,Oe as c,NA as d,s0 as g,v as j,l0 as m,z as r};