fluxy-bot 0.3.19 → 0.3.21

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,17 @@
1
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function u(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();function Py(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var lc={exports:{}},Hl={};var bp;function k1(){if(bp)return Hl;bp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(o,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var p in c)p!=="key"&&(d[p]=c[p])}else d=c;return c=d.ref,{$$typeof:i,type:o,key:h,ref:c!==void 0?c:null,props:d}}return Hl.Fragment=l,Hl.jsx=u,Hl.jsxs=u,Hl}var Sp;function J1(){return Sp||(Sp=1,lc.exports=k1()),lc.exports}var b=J1(),sc={exports:{}},rt={};var Tp;function F1(){if(Tp)return rt;Tp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),T=Symbol.iterator;function N(E){return E===null||typeof E!="object"?null:(E=T&&E[T]||E["@@iterator"],typeof E=="function"?E:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,X={};function q(E,V,Q){this.props=E,this.context=V,this.refs=X,this.updater=Q||z}q.prototype.isReactComponent={},q.prototype.setState=function(E,V){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,V,"setState")},q.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function K(){}K.prototype=q.prototype;function G(E,V,Q){this.props=E,this.context=V,this.refs=X,this.updater=Q||z}var k=G.prototype=new K;k.constructor=G,Y(k,q.prototype),k.isPureReactComponent=!0;var Z=Array.isArray;function it(){}var J={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function lt(E,V,Q){var P=Q.ref;return{$$typeof:i,type:E,key:V,ref:P!==void 0?P:null,props:Q}}function xt(E,V){return lt(E.type,V,E.props)}function At(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function Bt(E){var V={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return V[Q]})}var se=/\/+/g;function Nt(E,V){return typeof E=="object"&&E!==null&&E.key!=null?Bt(""+E.key):V.toString(36)}function Pt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(it,it):(E.status="pending",E.then(function(V){E.status==="pending"&&(E.status="fulfilled",E.value=V)},function(V){E.status==="pending"&&(E.status="rejected",E.reason=V)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,V,Q,P,st){var nt=typeof E;(nt==="undefined"||nt==="boolean")&&(E=null);var dt=!1;if(E===null)dt=!0;else switch(nt){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(E.$$typeof){case i:case l:dt=!0;break;case v:return dt=E._init,O(dt(E._payload),V,Q,P,st)}}if(dt)return st=st(E),dt=P===""?"."+Nt(E,0):P,Z(st)?(Q="",dt!=null&&(Q=dt.replace(se,"$&/")+"/"),O(st,V,Q,"",function(ke){return ke})):st!=null&&(At(st)&&(st=xt(st,Q+(st.key==null||E&&E.key===st.key?"":(""+st.key).replace(se,"$&/")+"/")+dt)),V.push(st)),1;dt=0;var Rt=P===""?".":P+":";if(Z(E))for(var jt=0;jt<E.length;jt++)P=E[jt],nt=Rt+Nt(P,jt),dt+=O(P,V,Q,nt,st);else if(jt=N(E),typeof jt=="function")for(E=jt.call(E),jt=0;!(P=E.next()).done;)P=P.value,nt=Rt+Nt(P,jt++),dt+=O(P,V,Q,nt,st);else if(nt==="object"){if(typeof E.then=="function")return O(Pt(E),V,Q,P,st);throw V=String(E),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return dt}function H(E,V,Q){if(E==null)return E;var P=[],st=0;return O(E,P,"","",function(nt){return V.call(Q,nt,st++)}),P}function $(E){if(E._status===-1){var V=E._result;V=V(),V.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=V)}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 V=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(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ht={map:H,forEach:function(E,V,Q){H(E,function(){V.apply(this,arguments)},Q)},count:function(E){var V=0;return H(E,function(){V++}),V},toArray:function(E){return H(E,function(V){return V})||[]},only:function(E){if(!At(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return rt.Activity=x,rt.Children=ht,rt.Component=q,rt.Fragment=u,rt.Profiler=c,rt.PureComponent=G,rt.StrictMode=o,rt.Suspense=g,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,rt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return J.H.useMemoCache(E)}},rt.cache=function(E){return function(){return E.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(E,V,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=Y({},E.props),st=E.key;if(V!=null)for(nt in V.key!==void 0&&(st=""+V.key),V)!F.call(V,nt)||nt==="key"||nt==="__self"||nt==="__source"||nt==="ref"&&V.ref===void 0||(P[nt]=V[nt]);var nt=arguments.length-2;if(nt===1)P.children=Q;else if(1<nt){for(var dt=Array(nt),Rt=0;Rt<nt;Rt++)dt[Rt]=arguments[Rt+2];P.children=dt}return lt(E.type,st,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,V,Q){var P,st={},nt=null;if(V!=null)for(P in V.key!==void 0&&(nt=""+V.key),V)F.call(V,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(st[P]=V[P]);var dt=arguments.length-2;if(dt===1)st.children=Q;else if(1<dt){for(var Rt=Array(dt),jt=0;jt<dt;jt++)Rt[jt]=arguments[jt+2];st.children=Rt}if(E&&E.defaultProps)for(P in dt=E.defaultProps,dt)st[P]===void 0&&(st[P]=dt[P]);return lt(E,nt,st)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(E){return{$$typeof:p,render:E}},rt.isValidElement=At,rt.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:$}},rt.memo=function(E,V){return{$$typeof:m,type:E,compare:V===void 0?null:V}},rt.startTransition=function(E){var V=J.T,Q={};J.T=Q;try{var P=E(),st=J.S;st!==null&&st(Q,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(it,ut)}catch(nt){ut(nt)}finally{V!==null&&Q.types!==null&&(V.types=Q.types),J.T=V}},rt.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},rt.use=function(E){return J.H.use(E)},rt.useActionState=function(E,V,Q){return J.H.useActionState(E,V,Q)},rt.useCallback=function(E,V){return J.H.useCallback(E,V)},rt.useContext=function(E){return J.H.useContext(E)},rt.useDebugValue=function(){},rt.useDeferredValue=function(E,V){return J.H.useDeferredValue(E,V)},rt.useEffect=function(E,V){return J.H.useEffect(E,V)},rt.useEffectEvent=function(E){return J.H.useEffectEvent(E)},rt.useId=function(){return J.H.useId()},rt.useImperativeHandle=function(E,V,Q){return J.H.useImperativeHandle(E,V,Q)},rt.useInsertionEffect=function(E,V){return J.H.useInsertionEffect(E,V)},rt.useLayoutEffect=function(E,V){return J.H.useLayoutEffect(E,V)},rt.useMemo=function(E,V){return J.H.useMemo(E,V)},rt.useOptimistic=function(E,V){return J.H.useOptimistic(E,V)},rt.useReducer=function(E,V,Q){return J.H.useReducer(E,V,Q)},rt.useRef=function(E){return J.H.useRef(E)},rt.useState=function(E){return J.H.useState(E)},rt.useSyncExternalStore=function(E,V,Q){return J.H.useSyncExternalStore(E,V,Q)},rt.useTransition=function(){return J.H.useTransition()},rt.version="19.2.4",rt}var Ap;function $c(){return Ap||(Ap=1,sc.exports=F1()),sc.exports}var U=$c();const SA=Py(U);var uc={exports:{}},Yl={},oc={exports:{}},rc={};var Ep;function P1(){return Ep||(Ep=1,(function(i){function l(O,H){var $=O.length;O.push(H);t:for(;0<$;){var ut=$-1>>>1,ht=O[ut];if(0<c(ht,H))O[ut]=H,O[$]=ht,$=ut;else break t}}function u(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var H=O[0],$=O.pop();if($!==H){O[0]=$;t:for(var ut=0,ht=O.length,E=ht>>>1;ut<E;){var V=2*(ut+1)-1,Q=O[V],P=V+1,st=O[P];if(0>c(Q,$))P<ht&&0>c(st,Q)?(O[ut]=st,O[P]=$,ut=P):(O[ut]=Q,O[V]=$,ut=V);else if(P<ht&&0>c(st,$))O[ut]=st,O[P]=$,ut=P;else break t}}return H}function c(O,H){var $=O.sortIndex-H.sortIndex;return $!==0?$:O.id-H.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();i.unstable_now=function(){return h.now()-p}}var g=[],m=[],v=1,x=null,T=3,N=!1,z=!1,Y=!1,X=!1,q=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function k(O){for(var H=u(m);H!==null;){if(H.callback===null)o(m);else if(H.startTime<=O)o(m),H.sortIndex=H.expirationTime,l(g,H);else break;H=u(m)}}function Z(O){if(Y=!1,k(O),!z)if(u(g)!==null)z=!0,it||(it=!0,Bt());else{var H=u(m);H!==null&&Pt(Z,H.startTime-O)}}var it=!1,J=-1,F=5,lt=-1;function xt(){return X?!0:!(i.unstable_now()-lt<F)}function At(){if(X=!1,it){var O=i.unstable_now();lt=O;var H=!0;try{t:{z=!1,Y&&(Y=!1,K(J),J=-1),N=!0;var $=T;try{e:{for(k(O),x=u(g);x!==null&&!(x.expirationTime>O&&xt());){var ut=x.callback;if(typeof ut=="function"){x.callback=null,T=x.priorityLevel;var ht=ut(x.expirationTime<=O);if(O=i.unstable_now(),typeof ht=="function"){x.callback=ht,k(O),H=!0;break e}x===u(g)&&o(g),k(O)}else o(g);x=u(g)}if(x!==null)H=!0;else{var E=u(m);E!==null&&Pt(Z,E.startTime-O),H=!1}}break t}finally{x=null,T=$,N=!1}H=void 0}}finally{H?Bt():it=!1}}}var Bt;if(typeof G=="function")Bt=function(){G(At)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,Nt=se.port2;se.port1.onmessage=At,Bt=function(){Nt.postMessage(null)}}else Bt=function(){q(At,0)};function Pt(O,H){J=q(function(){O(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(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(O){switch(T){case 1:case 2:case 3:var H=3;break;default:H=T}var $=T;T=H;try{return O()}finally{T=$}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(O,H){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var $=T;T=O;try{return H()}finally{T=$}},i.unstable_scheduleCallback=function(O,H,$){var ut=i.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ut+$:ut):$=ut,O){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,O={id:v++,callback:H,priorityLevel:O,startTime:$,expirationTime:ht,sortIndex:-1},$>ut?(O.sortIndex=$,l(m,O),u(g)===null&&O===u(m)&&(Y?(K(J),J=-1):Y=!0,Pt(Z,$-ut))):(O.sortIndex=ht,l(g,O),z||N||(z=!0,it||(it=!0,Bt()))),O},i.unstable_shouldYield=xt,i.unstable_wrapCallback=function(O){var H=T;return function(){var $=T;T=H;try{return O.apply(this,arguments)}finally{T=$}}}})(rc)),rc}var Cp;function W1(){return Cp||(Cp=1,oc.exports=P1()),oc.exports}var cc={exports:{}},he={};var Mp;function $1(){if(Mp)return he;Mp=1;var i=$c();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(l(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,m,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:g,containerInfo:m,implementation:v}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return he.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,he.createPortal=function(g,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return d(g,m,null,v)},he.flushSync=function(g){var m=h.T,v=o.p;try{if(h.T=null,o.p=2,g)return g()}finally{h.T=m,o.p=v,o.d.f()}},he.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(g,m))},he.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},he.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?o.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:T,fetchPriority:N}):v==="script"&&o.d.X(g,{crossOrigin:x,integrity:T,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},he.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(g)},he.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin);o.d.L(g,v,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},he.preloadModule=function(g,m){if(typeof g=="string")if(m){var v=p(m.as,m.crossOrigin);o.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(g)},he.requestFormReset=function(g){o.d.r(g)},he.unstable_batchedUpdates=function(g,m){return g(m)},he.useFormState=function(g,m,v){return h.H.useFormState(g,m,v)},he.useFormStatus=function(){return h.H.useHostTransitionStatus()},he.version="19.2.4",he}var Dp;function I1(){if(Dp)return cc.exports;Dp=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(),cc.exports=$1(),cc.exports}var wp;function tx(){if(wp)return Yl;wp=1;var i=W1(),l=$c(),u=I1();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(d(t)!==t)throw Error(o(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,a=e;;){var s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return g(s),t;if(r===a)return g(s),e;r=r.sibling}throw Error(o(188))}if(n.return!==a.return)n=s,a=r;else{for(var f=!1,y=s.child;y;){if(y===n){f=!0,n=s,a=r;break}if(y===a){f=!0,a=s,n=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===n){f=!0,n=r,a=s;break}if(y===a){f=!0,a=r,n=s;break}y=y.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,T=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),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"),k=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),xt=Symbol.for("react.memo_cache_sentinel"),At=Symbol.iterator;function Bt(t){return t===null||typeof t!="object"?null:(t=At&&t[At]||t["@@iterator"],typeof t=="function"?t:null)}var se=Symbol.for("react.client.reference");function Nt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===se?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 it:return"SuspenseList";case lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case z:return"Portal";case G:return t.displayName||"Context";case K:return(t._context.displayName||"Context")+".Consumer";case k:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case J:return e=t.displayName||null,e!==null?e:Nt(t.type)||"Memo";case F:e=t._payload,t=t._init;try{return Nt(t(e))}catch{}}return null}var Pt=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ut=[],ht=-1;function E(t){return{current:t}}function V(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),st=E(null),nt=E(null),dt=E(null);function Rt(t,e){switch(Q(nt,e),Q(st,t),Q(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Xm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Xm(e),t=Km(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}V(P),Q(P,t)}function jt(){V(P),V(st),V(nt)}function ke(t){t.memoizedState!==null&&Q(dt,t);var e=P.current,n=Km(e,t.type);e!==n&&(Q(st,t),Q(P,n))}function ge(t){st.current===t&&(V(P),V(st)),dt.current===t&&(V(dt),_l._currentValue=$)}var Ga,Je;function Fe(t){if(Ga===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ga=e&&e[1]||"",Je=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Ga+t+Je}var Xa=!1;function Ka(t,e){if(!t||Xa)return"";Xa=!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(j){var w=j}Reflect.construct(t,[],L)}else{try{L.call()}catch(j){w=j}t.call(L.prototype)}}else{try{throw Error()}catch(j){w=j}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(j){if(j&&w&&typeof j.stack=="string")return[j.stack,w.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),f=r[0],y=r[1];if(f&&y){var S=f.split(`
4
+ `),D=y.split(`
5
+ `);for(s=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;s<D.length&&!D[s].includes("DetermineComponentFrameRoot");)s++;if(a===S.length||s===D.length)for(a=S.length-1,s=D.length-1;1<=a&&0<=s&&S[a]!==D[s];)s--;for(;1<=a&&0<=s;a--,s--)if(S[a]!==D[s]){if(a!==1||s!==1)do if(a--,s--,0>s||S[a]!==D[s]){var R=`
6
+ `+S[a].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=a&&0<=s);break}}}finally{Xa=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Fe(n):""}function Zu(t,e){switch(t.tag){case 26:case 27:case 5:return Fe(t.type);case 16:return Fe("Lazy");case 13:return t.child!==e&&e!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return Ka(t.type,!1);case 11:return Ka(t.type.render,!1);case 1:return Ka(t.type,!0);case 31:return Fe("Activity");default:return""}}function ns(t){try{var e="",n=null;do e+=Zu(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
+ Error generating stack: `+a.message+`
8
+ `+a.stack}}var Ee=Object.prototype.hasOwnProperty,Zi=i.unstable_scheduleCallback,ya=i.unstable_cancelCallback,ku=i.unstable_shouldYield,Ju=i.unstable_requestPaint,ue=i.unstable_now,un=i.unstable_getCurrentPriorityLevel,as=i.unstable_ImmediatePriority,ki=i.unstable_UserBlockingPriority,Qa=i.unstable_NormalPriority,Ji=i.unstable_LowPriority,is=i.unstable_IdlePriority,ls=i.log,Za=i.unstable_setDisableYieldValue,on=null,oe=null;function Pe(t){if(typeof ls=="function"&&Za(t),oe&&typeof oe.setStrictMode=="function")try{oe.setStrictMode(on,t)}catch{}}var re=Math.clz32?Math.clz32:We,rn=Math.log,ss=Math.LN2;function We(t){return t>>>=0,t===0?32:31-(rn(t)/ss|0)|0}var ga=256,qn=262144,Re=4194304;function Sn(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 ka(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=Sn(a):(f&=y,f!==0?s=Sn(f):n||(n=y&~t,n!==0&&(s=Sn(n))))):(y=a&~r,y!==0?s=Sn(y):f!==0?s=Sn(f):n||(n=a&~t,n!==0&&(s=Sn(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 va(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Fu(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 us(){var t=Re;return Re<<=1,(Re&62914560)===0&&(Re=4194304),t}function Ja(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function xa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Pu(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,D=t.hiddenUpdates;for(n=f&~n;0<n;){var R=31-re(n),L=1<<R;y[R]=0,S[R]=-1;var w=D[R];if(w!==null)for(D[R]=null,R=0;R<w.length;R++){var j=w[R];j!==null&&(j.lane&=-536870913)}n&=~L}a!==0&&os(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function os(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-re(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function rs(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-re(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function Fi(t,e){var n=e&-e;return n=(n&42)!==0?1:Fa(n),(n&(t.suspendedLanes|e))!==0?0:n}function Fa(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 Pi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Gn(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:dp(t.type))}function cn(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var fn=Math.random().toString(36).slice(2),Gt="__reactFiber$"+fn,ce="__reactProps$"+fn,Ce="__reactContainer$"+fn,cs="__reactEvents$"+fn,B="__reactListeners$"+fn,ot="__reactHandles$"+fn,fe="__reactResources$"+fn,Ve="__reactMarker$"+fn;function Pa(t){delete t[Gt],delete t[ce],delete t[cs],delete t[B],delete t[ot]}function $e(t){var e=t[Gt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ce]||n[Gt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Wm(t);t!==null;){if(n=t[Gt])return n;t=Wm(t)}return e}t=n,n=t.parentNode}return null}function Wa(t){if(t=t[Gt]||t[Ce]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Wi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function $a(t){var e=t[fe];return e||(e=t[fe]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function It(t){t[Ve]=!0}var Of=new Set,zf={};function ba(t,e){Ia(t,e),Ia(t+"Capture",e)}function Ia(t,e){for(zf[t]=e,t=0;t<e.length;t++)Of.add(e[t])}var Lg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Rf={},Vf={};function Hg(t){return Ee.call(Vf,t)?!0:Ee.call(Rf,t)?!1:Lg.test(t)?Vf[t]=!0:(Rf[t]=!0,!1)}function fs(t,e,n){if(Hg(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function hs(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 Tn(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 _e(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function _f(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Yg(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Wu(t){if(!t._valueTracker){var e=_f(t)?"checked":"value";t._valueTracker=Yg(t,e,""+t[e])}}function Uf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=_f(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function ds(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var qg=/[\n"\\]/g;function Ue(t){return t.replace(qg,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $u(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=""+_e(e)):t.value!==""+_e(e)&&(t.value=""+_e(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Iu(t,f,_e(e)):n!=null?Iu(t,f,_e(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=""+_e(y):t.removeAttribute("name")}function Bf(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)){Wu(t);return}n=n!=null?""+_e(n):"",e=e!=null?""+_e(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),Wu(t)}function Iu(t,e,n){e==="number"&&ds(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ti(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=""+_e(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 Lf(t,e,n){if(e!=null&&(e=""+_e(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+_e(n):""}function Hf(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Pt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=_e(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Wu(t)}function ei(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Gg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Yf(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||Gg.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function qf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var s in e)a=e[s],e.hasOwnProperty(s)&&n[s]!==a&&Yf(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&Yf(t,r,e[r])}function to(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Kg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ms(t){return Kg.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function An(){}var eo=null;function no(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ni=null,ai=null;function Gf(t){var e=Wa(t);if(e&&(t=e.stateNode)){var n=t[ce]||null;t:switch(t=e.stateNode,e.type){case"input":if($u(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="'+Ue(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[ce]||null;if(!s)throw Error(o(90));$u(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&&Uf(a)}break t;case"textarea":Lf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&ti(t,!!n.multiple,e,!1)}}}var ao=!1;function Xf(t,e,n){if(ao)return t(e,n);ao=!0;try{var a=t(e);return a}finally{if(ao=!1,(ni!==null||ai!==null)&&(eu(),ni&&(e=ni,t=ai,ai=ni=null,Gf(e),t)))for(e=0;e<t.length;e++)Gf(t[e])}}function $i(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ce]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var En=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),io=!1;if(En)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){io=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{io=!1}var Xn=null,lo=null,ps=null;function Kf(){if(ps)return ps;var t,e=lo,n=e.length,a,s="value"in Xn?Xn.value:Xn.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 ps=s.slice(t,1<a?1-a:void 0)}function ys(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 gs(){return!0}function Qf(){return!1}function ve(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)?gs:Qf,this.isPropagationStopped=Qf,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gs)},persist:function(){},isPersistent:gs}),e}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vs=ve(Sa),tl=x({},Sa,{view:0,detail:0}),Qg=ve(tl),so,uo,el,xs=x({},tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ro,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!==el&&(el&&t.type==="mousemove"?(so=t.screenX-el.screenX,uo=t.screenY-el.screenY):uo=so=0,el=t),so)},movementY:function(t){return"movementY"in t?t.movementY:uo}}),Zf=ve(xs),Zg=x({},xs,{dataTransfer:0}),kg=ve(Zg),Jg=x({},tl,{relatedTarget:0}),oo=ve(Jg),Fg=x({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),Pg=ve(Fg),Wg=x({},Sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$g=ve(Wg),Ig=x({},Sa,{data:0}),kf=ve(Ig),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ev={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function av(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=nv[t])?!!e[t]:!1}function ro(){return av}var iv=x({},tl,{key:function(t){if(t.key){var e=tv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ys(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ev[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ro,charCode:function(t){return t.type==="keypress"?ys(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ys(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),lv=ve(iv),sv=x({},xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jf=ve(sv),uv=x({},tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ro}),ov=ve(uv),rv=x({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),cv=ve(rv),fv=x({},xs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),hv=ve(fv),dv=x({},Sa,{newState:0,oldState:0}),mv=ve(dv),pv=[9,13,27,32],co=En&&"CompositionEvent"in window,nl=null;En&&"documentMode"in document&&(nl=document.documentMode);var yv=En&&"TextEvent"in window&&!nl,Ff=En&&(!co||nl&&8<nl&&11>=nl),Pf=" ",Wf=!1;function $f(t,e){switch(t){case"keyup":return pv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function If(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ii=!1;function gv(t,e){switch(t){case"compositionend":return If(e);case"keypress":return e.which!==32?null:(Wf=!0,Pf);case"textInput":return t=e.data,t===Pf&&Wf?null:t;default:return null}}function vv(t,e){if(ii)return t==="compositionend"||!co&&$f(t,e)?(t=Kf(),ps=lo=Xn=null,ii=!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 Ff&&e.locale!=="ko"?null:e.data;default:return null}}var xv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function th(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!xv[t.type]:e==="textarea"}function eh(t,e,n,a){ni?ai?ai.push(a):ai=[a]:ni=a,e=ou(e,"onChange"),0<e.length&&(n=new vs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var al=null,il=null;function bv(t){Bm(t,0)}function bs(t){var e=Wi(t);if(Uf(e))return t}function nh(t,e){if(t==="change")return e}var ah=!1;if(En){var fo;if(En){var ho="oninput"in document;if(!ho){var ih=document.createElement("div");ih.setAttribute("oninput","return;"),ho=typeof ih.oninput=="function"}fo=ho}else fo=!1;ah=fo&&(!document.documentMode||9<document.documentMode)}function lh(){al&&(al.detachEvent("onpropertychange",sh),il=al=null)}function sh(t){if(t.propertyName==="value"&&bs(il)){var e=[];eh(e,il,t,no(t)),Xf(bv,e)}}function Sv(t,e,n){t==="focusin"?(lh(),al=e,il=n,al.attachEvent("onpropertychange",sh)):t==="focusout"&&lh()}function Tv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return bs(il)}function Av(t,e){if(t==="click")return bs(e)}function Ev(t,e){if(t==="input"||t==="change")return bs(e)}function Cv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Me=typeof Object.is=="function"?Object.is:Cv;function ll(t,e){if(Me(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(!Ee.call(e,s)||!Me(t[s],e[s]))return!1}return!0}function uh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function oh(t,e){var n=uh(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=uh(n)}}function rh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?rh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ch(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ds(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=ds(t.document)}return e}function mo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Mv=En&&"documentMode"in document&&11>=document.documentMode,li=null,po=null,sl=null,yo=!1;function fh(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yo||li==null||li!==ds(a)||(a=li,"selectionStart"in a&&mo(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}),sl&&ll(sl,a)||(sl=a,a=ou(po,"onSelect"),0<a.length&&(e=new vs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=li)))}function Ta(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var si={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},go={},hh={};En&&(hh=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function Aa(t){if(go[t])return go[t];if(!si[t])return t;var e=si[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in hh)return go[t]=e[n];return t}var dh=Aa("animationend"),mh=Aa("animationiteration"),ph=Aa("animationstart"),Dv=Aa("transitionrun"),wv=Aa("transitionstart"),Nv=Aa("transitioncancel"),yh=Aa("transitionend"),gh=new Map,vo="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(" ");vo.push("scrollEnd");function Ie(t,e){gh.set(t,e),ba(e,[t])}var Ss=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)},Be=[],ui=0,xo=0;function Ts(){for(var t=ui,e=xo=ui=0;e<t;){var n=Be[e];Be[e++]=null;var a=Be[e];Be[e++]=null;var s=Be[e];Be[e++]=null;var r=Be[e];if(Be[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&&vh(n,s,r)}}function As(t,e,n,a){Be[ui++]=t,Be[ui++]=e,Be[ui++]=n,Be[ui++]=a,xo|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function bo(t,e,n,a){return As(t,e,n,a),Es(t)}function Ea(t,e){return As(t,null,null,e),Es(t)}function vh(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-re(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function Es(t){if(50<wl)throw wl=0,Nr=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var oi={};function jv(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 De(t,e,n,a){return new jv(t,e,n,a)}function So(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Cn(t,e){var n=t.alternate;return n===null?(n=De(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 xh(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 Cs(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")So(t)&&(f=1);else if(typeof t=="string")f=_1(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case lt:return t=De(31,n,e,s),t.elementType=lt,t.lanes=r,t;case Y:return Ca(n.children,s,r,e);case X:f=8,s|=24;break;case q:return t=De(12,n,e,s|2),t.elementType=q,t.lanes=r,t;case Z:return t=De(13,n,e,s),t.elementType=Z,t.lanes=r,t;case it:return t=De(19,n,e,s),t.elementType=it,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 k:f=11;break t;case J:f=14;break t;case F:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=De(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function Ca(t,e,n,a){return t=De(7,t,a,e),t.lanes=n,t}function To(t,e,n){return t=De(6,t,null,e),t.lanes=n,t}function bh(t){var e=De(18,null,null,0);return e.stateNode=t,e}function Ao(t,e,n){return e=De(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Sh=new WeakMap;function Le(t,e){if(typeof t=="object"&&t!==null){var n=Sh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ns(e)},Sh.set(t,e),e)}return{value:t,source:e,stack:ns(e)}}var ri=[],ci=0,Ms=null,ul=0,He=[],Ye=0,Kn=null,hn=1,dn="";function Mn(t,e){ri[ci++]=ul,ri[ci++]=Ms,Ms=t,ul=e}function Th(t,e,n){He[Ye++]=hn,He[Ye++]=dn,He[Ye++]=Kn,Kn=t;var a=hn;t=dn;var s=32-re(a)-1;a&=~(1<<s),n+=1;var r=32-re(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,hn=1<<32-re(e)+s|n<<s|a,dn=r+t}else hn=1<<r|n<<s|a,dn=t}function Eo(t){t.return!==null&&(Mn(t,1),Th(t,1,0))}function Co(t){for(;t===Ms;)Ms=ri[--ci],ri[ci]=null,ul=ri[--ci],ri[ci]=null;for(;t===Kn;)Kn=He[--Ye],He[Ye]=null,dn=He[--Ye],He[Ye]=null,hn=He[--Ye],He[Ye]=null}function Ah(t,e){He[Ye++]=hn,He[Ye++]=dn,He[Ye++]=Kn,hn=e.id,dn=e.overflow,Kn=t}var ee=null,Vt=null,vt=!1,Qn=null,qe=!1,Mo=Error(o(519));function Zn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ol(Le(e,t)),Mo}function Eh(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Gt]=t,e[ce]=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<jl.length;n++)pt(jl[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),Bf(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),Hf(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||qm(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=An),e=!0):e=!1,e||Zn(t,!0)}function Ch(t){for(ee=t.return;ee;)switch(ee.tag){case 5:case 31:case 13:qe=!1;return;case 27:case 3:qe=!0;return;default:ee=ee.return}}function fi(t){if(t!==ee)return!1;if(!vt)return Ch(t),vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Kr(t.type,t.memoizedProps)),n=!n),n&&Vt&&Zn(t),Ch(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Vt=Pm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Vt=Pm(t)}else e===27?(e=Vt,sa(t.type)?(t=Fr,Fr=null,Vt=t):Vt=e):Vt=ee?Xe(t.stateNode.nextSibling):null;return!0}function Ma(){Vt=ee=null,vt=!1}function Do(){var t=Qn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),Qn=null),t}function ol(t){Qn===null?Qn=[t]:Qn.push(t)}var wo=E(null),Da=null,Dn=null;function kn(t,e,n){Q(wo,e._currentValue),e._currentValue=n}function wn(t){t._currentValue=wo.current,V(wo)}function No(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 jo(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),No(r.return,n,t),a||(f=null);break t}r=y.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(o(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),No(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 hi(t,e,n,a){t=null;for(var s=e,r=!1;s!==null;){if(!r){if((s.flags&524288)!==0)r=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var y=s.type;Me(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(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(_l):t=[_l])}s=s.return}t!==null&&jo(e,t,n,a),e.flags|=262144}function Ds(t){for(t=t.firstContext;t!==null;){if(!Me(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function wa(t){Da=t,Dn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ne(t){return Mh(Da,t)}function ws(t,e){return Da===null&&wa(t),Mh(t,e)}function Mh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Dn===null){if(t===null)throw Error(o(308));Dn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Dn=Dn.next=e;return n}var Ov=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},zv=i.unstable_scheduleCallback,Rv=i.unstable_NormalPriority,Qt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oo(){return{controller:new Ov,data:new Map,refCount:0}}function rl(t){t.refCount--,t.refCount===0&&zv(Rv,function(){t.controller.abort()})}var cl=null,zo=0,di=0,mi=null;function Vv(t,e){if(cl===null){var n=cl=[];zo=0,di=_r(),mi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return zo++,e.then(Dh,Dh),e}function Dh(){if(--zo===0&&cl!==null){mi!==null&&(mi.status="fulfilled");var t=cl;cl=null,di=0,mi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _v(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var wh=O.S;O.S=function(t,e){fm=ue(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Vv(t,e),wh!==null&&wh(t,e)};var Na=E(null);function Ro(){var t=Na.current;return t!==null?t:Ot.pooledCache}function Ns(t,e){e===null?Q(Na,Na.current):Q(Na,e.pool)}function Nh(){var t=Ro();return t===null?null:{parent:Qt._currentValue,pool:t}}var pi=Error(o(460)),Vo=Error(o(474)),js=Error(o(542)),Os={then:function(){}};function jh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Oh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(An,An),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Rh(t),t;default:if(typeof e.status=="string")e.then(An,An);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=a}},function(a){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Rh(t),t}throw Oa=e,pi}}function ja(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Oa=n,pi):n}}var Oa=null;function zh(){if(Oa===null)throw Error(o(459));var t=Oa;return Oa=null,t}function Rh(t){if(t===pi||t===js)throw Error(o(483))}var yi=null,fl=0;function zs(t){var e=fl;return fl+=1,yi===null&&(yi=[]),Oh(yi,t,e)}function hl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Rs(t,e){throw e.$$typeof===T?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Vh(t){function e(C,A){if(t){var M=C.deletions;M===null?(C.deletions=[A],C.flags|=16):M.push(A)}}function n(C,A){if(!t)return null;for(;A!==null;)e(C,A),A=A.sibling;return null}function a(C){for(var A=new Map;C!==null;)C.key!==null?A.set(C.key,C):A.set(C.index,C),C=C.sibling;return A}function s(C,A){return C=Cn(C,A),C.index=0,C.sibling=null,C}function r(C,A,M){return C.index=M,t?(M=C.alternate,M!==null?(M=M.index,M<A?(C.flags|=67108866,A):M):(C.flags|=67108866,A)):(C.flags|=1048576,A)}function f(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function y(C,A,M,_){return A===null||A.tag!==6?(A=To(M,C.mode,_),A.return=C,A):(A=s(A,M),A.return=C,A)}function S(C,A,M,_){var et=M.type;return et===Y?R(C,A,M.props.children,_,M.key):A!==null&&(A.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===F&&ja(et)===A.type)?(A=s(A,M.props),hl(A,M),A.return=C,A):(A=Cs(M.type,M.key,M.props,null,C.mode,_),hl(A,M),A.return=C,A)}function D(C,A,M,_){return A===null||A.tag!==4||A.stateNode.containerInfo!==M.containerInfo||A.stateNode.implementation!==M.implementation?(A=Ao(M,C.mode,_),A.return=C,A):(A=s(A,M.children||[]),A.return=C,A)}function R(C,A,M,_,et){return A===null||A.tag!==7?(A=Ca(M,C.mode,_,et),A.return=C,A):(A=s(A,M),A.return=C,A)}function L(C,A,M){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=To(""+A,C.mode,M),A.return=C,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return M=Cs(A.type,A.key,A.props,null,C.mode,M),hl(M,A),M.return=C,M;case z:return A=Ao(A,C.mode,M),A.return=C,A;case F:return A=ja(A),L(C,A,M)}if(Pt(A)||Bt(A))return A=Ca(A,C.mode,M,null),A.return=C,A;if(typeof A.then=="function")return L(C,zs(A),M);if(A.$$typeof===G)return L(C,ws(C,A),M);Rs(C,A)}return null}function w(C,A,M,_){var et=A!==null?A.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return et!==null?null:y(C,A,""+M,_);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case N:return M.key===et?S(C,A,M,_):null;case z:return M.key===et?D(C,A,M,_):null;case F:return M=ja(M),w(C,A,M,_)}if(Pt(M)||Bt(M))return et!==null?null:R(C,A,M,_,null);if(typeof M.then=="function")return w(C,A,zs(M),_);if(M.$$typeof===G)return w(C,A,ws(C,M),_);Rs(C,M)}return null}function j(C,A,M,_,et){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return C=C.get(M)||null,y(A,C,""+_,et);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case N:return C=C.get(_.key===null?M:_.key)||null,S(A,C,_,et);case z:return C=C.get(_.key===null?M:_.key)||null,D(A,C,_,et);case F:return _=ja(_),j(C,A,M,_,et)}if(Pt(_)||Bt(_))return C=C.get(M)||null,R(A,C,_,et,null);if(typeof _.then=="function")return j(C,A,M,zs(_),et);if(_.$$typeof===G)return j(C,A,M,ws(A,_),et);Rs(A,_)}return null}function W(C,A,M,_){for(var et=null,bt=null,tt=A,ft=A=0,gt=null;tt!==null&&ft<M.length;ft++){tt.index>ft?(gt=tt,tt=null):gt=tt.sibling;var St=w(C,tt,M[ft],_);if(St===null){tt===null&&(tt=gt);break}t&&tt&&St.alternate===null&&e(C,tt),A=r(St,A,ft),bt===null?et=St:bt.sibling=St,bt=St,tt=gt}if(ft===M.length)return n(C,tt),vt&&Mn(C,ft),et;if(tt===null){for(;ft<M.length;ft++)tt=L(C,M[ft],_),tt!==null&&(A=r(tt,A,ft),bt===null?et=tt:bt.sibling=tt,bt=tt);return vt&&Mn(C,ft),et}for(tt=a(tt);ft<M.length;ft++)gt=j(tt,C,ft,M[ft],_),gt!==null&&(t&&gt.alternate!==null&&tt.delete(gt.key===null?ft:gt.key),A=r(gt,A,ft),bt===null?et=gt:bt.sibling=gt,bt=gt);return t&&tt.forEach(function(fa){return e(C,fa)}),vt&&Mn(C,ft),et}function at(C,A,M,_){if(M==null)throw Error(o(151));for(var et=null,bt=null,tt=A,ft=A=0,gt=null,St=M.next();tt!==null&&!St.done;ft++,St=M.next()){tt.index>ft?(gt=tt,tt=null):gt=tt.sibling;var fa=w(C,tt,St.value,_);if(fa===null){tt===null&&(tt=gt);break}t&&tt&&fa.alternate===null&&e(C,tt),A=r(fa,A,ft),bt===null?et=fa:bt.sibling=fa,bt=fa,tt=gt}if(St.done)return n(C,tt),vt&&Mn(C,ft),et;if(tt===null){for(;!St.done;ft++,St=M.next())St=L(C,St.value,_),St!==null&&(A=r(St,A,ft),bt===null?et=St:bt.sibling=St,bt=St);return vt&&Mn(C,ft),et}for(tt=a(tt);!St.done;ft++,St=M.next())St=j(tt,C,ft,St.value,_),St!==null&&(t&&St.alternate!==null&&tt.delete(St.key===null?ft:St.key),A=r(St,A,ft),bt===null?et=St:bt.sibling=St,bt=St);return t&&tt.forEach(function(Z1){return e(C,Z1)}),vt&&Mn(C,ft),et}function wt(C,A,M,_){if(typeof M=="object"&&M!==null&&M.type===Y&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case N:t:{for(var et=M.key;A!==null;){if(A.key===et){if(et=M.type,et===Y){if(A.tag===7){n(C,A.sibling),_=s(A,M.props.children),_.return=C,C=_;break t}}else if(A.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===F&&ja(et)===A.type){n(C,A.sibling),_=s(A,M.props),hl(_,M),_.return=C,C=_;break t}n(C,A);break}else e(C,A);A=A.sibling}M.type===Y?(_=Ca(M.props.children,C.mode,_,M.key),_.return=C,C=_):(_=Cs(M.type,M.key,M.props,null,C.mode,_),hl(_,M),_.return=C,C=_)}return f(C);case z:t:{for(et=M.key;A!==null;){if(A.key===et)if(A.tag===4&&A.stateNode.containerInfo===M.containerInfo&&A.stateNode.implementation===M.implementation){n(C,A.sibling),_=s(A,M.children||[]),_.return=C,C=_;break t}else{n(C,A);break}else e(C,A);A=A.sibling}_=Ao(M,C.mode,_),_.return=C,C=_}return f(C);case F:return M=ja(M),wt(C,A,M,_)}if(Pt(M))return W(C,A,M,_);if(Bt(M)){if(et=Bt(M),typeof et!="function")throw Error(o(150));return M=et.call(M),at(C,A,M,_)}if(typeof M.then=="function")return wt(C,A,zs(M),_);if(M.$$typeof===G)return wt(C,A,ws(C,M),_);Rs(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,A!==null&&A.tag===6?(n(C,A.sibling),_=s(A,M),_.return=C,C=_):(n(C,A),_=To(M,C.mode,_),_.return=C,C=_),f(C)):n(C,A)}return function(C,A,M,_){try{fl=0;var et=wt(C,A,M,_);return yi=null,et}catch(tt){if(tt===pi||tt===js)throw tt;var bt=De(29,tt,null,C.mode);return bt.lanes=_,bt.return=C,bt}}}var za=Vh(!0),_h=Vh(!1),Jn=!1;function _o(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uo(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 Fn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Tt&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=Es(t),vh(t,null,n),e}return As(t,a,e,n),Es(t)}function dl(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,rs(t,n)}}function Bo(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 Lo=!1;function ml(){if(Lo){var t=mi;if(t!==null)throw t}}function pl(t,e,n,a){Lo=!1;var s=t.updateQueue;Jn=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var S=y,D=S.next;S.next=null,f===null?r=D:f.next=D,f=S;var R=t.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==f&&(y===null?R.firstBaseUpdate=D:y.next=D,R.lastBaseUpdate=S))}if(r!==null){var L=s.baseState;f=0,R=D=S=null,y=r;do{var w=y.lane&-536870913,j=w!==y.lane;if(j?(yt&w)===w:(a&w)===w){w!==0&&w===di&&(Lo=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var W=t,at=y;w=e;var wt=n;switch(at.tag){case 1:if(W=at.payload,typeof W=="function"){L=W.call(wt,L,w);break t}L=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=at.payload,w=typeof W=="function"?W.call(wt,L,w):W,w==null)break t;L=x({},L,w);break t;case 2:Jn=!0}}w=y.callback,w!==null&&(t.flags|=64,j&&(t.flags|=8192),j=s.callbacks,j===null?s.callbacks=[w]:j.push(w))}else j={lane:w,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(D=R=j,S=L):R=R.next=j,f|=w;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;j=y,y=j.next,j.next=null,s.lastBaseUpdate=j,s.shared.pending=null}}while(!0);R===null&&(S=L),s.baseState=S,s.firstBaseUpdate=D,s.lastBaseUpdate=R,r===null&&(s.shared.lanes=0),ea|=f,t.lanes=f,t.memoizedState=L}}function Uh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Bh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Uh(n[t],e)}var gi=E(null),Vs=E(0);function Lh(t,e){t=Bn,Q(Vs,t),Q(gi,e),Bn=t|e.baseLanes}function Ho(){Q(Vs,Bn),Q(gi,gi.current)}function Yo(){Bn=Vs.current,V(gi),V(Vs)}var we=E(null),Ge=null;function Wn(t){var e=t.alternate;Q(Xt,Xt.current&1),Q(we,t),Ge===null&&(e===null||gi.current!==null||e.memoizedState!==null)&&(Ge=t)}function qo(t){Q(Xt,Xt.current),Q(we,t),Ge===null&&(Ge=t)}function Hh(t){t.tag===22?(Q(Xt,Xt.current),Q(we,t),Ge===null&&(Ge=t)):$n()}function $n(){Q(Xt,Xt.current),Q(we,we.current)}function Ne(t){V(we),Ge===t&&(Ge=null),V(Xt)}var Xt=E(0);function _s(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||kr(n)||Jr(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 Nn=0,ct=null,Mt=null,Zt=null,Us=!1,vi=!1,Ra=!1,Bs=0,yl=0,xi=null,Uv=0;function Ht(){throw Error(o(321))}function Go(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Me(t[n],e[n]))return!1;return!0}function Xo(t,e,n,a,s,r){return Nn=r,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,O.H=t===null||t.memoizedState===null?Td:ir,Ra=!1,r=n(a,s),Ra=!1,vi&&(r=qh(e,n,a,s)),Yh(t),r}function Yh(t){O.H=xl;var e=Mt!==null&&Mt.next!==null;if(Nn=0,Zt=Mt=ct=null,Us=!1,yl=0,xi=null,e)throw Error(o(300));t===null||kt||(t=t.dependencies,t!==null&&Ds(t)&&(kt=!0))}function qh(t,e,n,a){ct=t;var s=0;do{if(vi&&(xi=null),yl=0,vi=!1,25<=s)throw Error(o(301));if(s+=1,Zt=Mt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}O.H=Ad,r=e(n,a)}while(vi);return r}function Bv(){var t=O.H,e=t.useState()[0];return e=typeof e.then=="function"?gl(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ct.flags|=1024),e}function Ko(){var t=Bs!==0;return Bs=0,t}function Qo(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Zo(t){if(Us){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Us=!1}Nn=0,Zt=Mt=ct=null,vi=!1,yl=Bs=0,xi=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Kt(){if(Mt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Zt===null?ct.memoizedState:Zt.next;if(e!==null)Zt=e,Mt=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Ls(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gl(t){var e=yl;return yl+=1,xi===null&&(xi=[]),t=Oh(xi,t,e),e=ct,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,O.H=e===null||e.memoizedState===null?Td:ir),t}function Hs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return gl(t);if(t.$$typeof===G)return ne(t)}throw Error(o(438,String(t)))}function ko(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=Ls(),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]=xt;return e.index++,n}function jn(t,e){return typeof e=="function"?e(t):e}function Ys(t){var e=Kt();return Jo(e,Mt,t)}function Jo(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var s=t.baseQueue,r=a.pending;if(r!==null){if(s!==null){var f=s.next;s.next=r.next,r.next=f}e.baseQueue=s=r,a.pending=null}if(r=t.baseState,s===null)t.memoizedState=r;else{e=s.next;var y=f=null,S=null,D=e,R=!1;do{var L=D.lane&-536870913;if(L!==D.lane?(yt&L)===L:(Nn&L)===L){var w=D.revertLane;if(w===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),L===di&&(R=!0);else if((Nn&w)===w){D=D.next,w===di&&(R=!0);continue}else L={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(y=S=L,f=r):S=S.next=L,ct.lanes|=w,ea|=w;L=D.action,Ra&&n(r,L),r=D.hasEagerState?D.eagerState:n(r,L)}else w={lane:L,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(y=S=w,f=r):S=S.next=w,ct.lanes|=L,ea|=L;D=D.next}while(D!==null&&D!==e);if(S===null?f=r:S.next=y,!Me(r,t.memoizedState)&&(kt=!0,R&&(n=mi,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 Fo(t){var e=Kt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,s=n.pending,r=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do r=t(r,f.action),f=f.next;while(f!==s);Me(r,e.memoizedState)||(kt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function Gh(t,e,n){var a=ct,s=Kt(),r=vt;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!Me((Mt||s).memoizedState,n);if(f&&(s.memoizedState=n,kt=!0),s=s.queue,$o(Qh.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Zt!==null&&Zt.memoizedState.tag&1){if(a.flags|=2048,bi(9,{destroy:void 0},Kh.bind(null,a,s,n,e),null),Ot===null)throw Error(o(349));r||(Nn&127)!==0||Xh(a,e,n)}return n}function Xh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Ls(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Kh(t,e,n,a){e.value=n,e.getSnapshot=a,Zh(e)&&kh(t)}function Qh(t,e,n){return n(function(){Zh(e)&&kh(t)})}function Zh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Me(t,n)}catch{return!0}}function kh(t){var e=Ea(t,2);e!==null&&Ae(e,t,2)}function Po(t){var e=me();if(typeof t=="function"){var n=t;if(t=n(),Ra){Pe(!0);try{n()}finally{Pe(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:t},e}function Jh(t,e,n,a){return t.baseState=n,Jo(t,Mt,typeof a=="function"?a:jn)}function Lv(t,e,n,a,s){if(Xs(t))throw Error(o(485));if(t=e.action,t!==null){var r={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};O.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,Fh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Fh(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=O.T,f={};O.T=f;try{var y=n(s,a),S=O.S;S!==null&&S(f,y),Ph(t,e,y)}catch(D){Wo(t,e,D)}finally{r!==null&&f.types!==null&&(r.types=f.types),O.T=r}}else try{r=n(s,a),Ph(t,e,r)}catch(D){Wo(t,e,D)}}function Ph(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Wh(t,e,a)},function(a){return Wo(t,e,a)}):Wh(t,e,n)}function Wh(t,e,n){e.status="fulfilled",e.value=n,$h(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Fh(t,n)))}function Wo(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,$h(e),e=e.next;while(e!==a)}t.action=null}function $h(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ih(t,e){return e}function td(t,e){if(vt){var n=Ot.formState;if(n!==null){t:{var a=ct;if(vt){if(Vt){e:{for(var s=Vt,r=qe;s.nodeType!==8;){if(!r){s=null;break e}if(s=Xe(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Vt=Xe(s.nextSibling),a=s.data==="F!";break t}}Zn(a)}a=!1}a&&(e=n[0])}}return n=me(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ih,lastRenderedState:e},n.queue=a,n=xd.bind(null,ct,a),a.dispatch=n,a=Po(!1),r=ar.bind(null,ct,!1,a.queue),a=me(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=Lv.bind(null,ct,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function ed(t){var e=Kt();return nd(e,Mt,t)}function nd(t,e,n){if(e=Jo(t,e,Ih)[0],t=Ys(jn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=gl(e)}catch(f){throw f===pi?js:f}else a=e;e=Kt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,bi(9,{destroy:void 0},Hv.bind(null,s,n),null)),[a,r,t]}function Hv(t,e){t.action=e}function ad(t){var e=Kt(),n=Mt;if(n!==null)return nd(e,n,t);Kt(),e=e.memoizedState,n=Kt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function bi(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Ls(),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 id(){return Kt().memoizedState}function qs(t,e,n,a){var s=me();ct.flags|=t,s.memoizedState=bi(1|e,{destroy:void 0},n,a===void 0?null:a)}function Gs(t,e,n,a){var s=Kt();a=a===void 0?null:a;var r=s.memoizedState.inst;Mt!==null&&a!==null&&Go(a,Mt.memoizedState.deps)?s.memoizedState=bi(e,r,n,a):(ct.flags|=t,s.memoizedState=bi(1|e,r,n,a))}function ld(t,e){qs(8390656,8,t,e)}function $o(t,e){Gs(2048,8,t,e)}function Yv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=Ls(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function sd(t){var e=Kt().memoizedState;return Yv({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function ud(t,e){return Gs(4,2,t,e)}function od(t,e){return Gs(4,4,t,e)}function rd(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 cd(t,e,n){n=n!=null?n.concat([t]):null,Gs(4,4,rd.bind(null,e,t),n)}function Io(){}function fd(t,e){var n=Kt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&Go(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function hd(t,e){var n=Kt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&Go(e,a[1]))return a[0];if(a=t(),Ra){Pe(!0);try{t()}finally{Pe(!1)}}return n.memoizedState=[a,e],a}function tr(t,e,n){return n===void 0||(Nn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=dm(),ct.lanes|=t,ea|=t,n)}function dd(t,e,n,a){return Me(n,e)?n:gi.current!==null?(t=tr(t,n,a),Me(t,e)||(kt=!0),t):(Nn&42)===0||(Nn&1073741824)!==0&&(yt&261930)===0?(kt=!0,t.memoizedState=n):(t=dm(),ct.lanes|=t,ea|=t,e)}function md(t,e,n,a,s){var r=H.p;H.p=r!==0&&8>r?r:8;var f=O.T,y={};O.T=y,ar(t,!1,e,n);try{var S=s(),D=O.S;if(D!==null&&D(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var R=_v(S,a);vl(t,e,R,ze(t))}else vl(t,e,a,ze(t))}catch(L){vl(t,e,{then:function(){},status:"rejected",reason:L},ze())}finally{H.p=r,f!==null&&y.types!==null&&(f.types=y.types),O.T=f}}function qv(){}function er(t,e,n,a){if(t.tag!==5)throw Error(o(476));var s=pd(t).queue;md(t,s,e,$,n===null?qv:function(){return yd(t),n(a)})}function pd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:$},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function yd(t){var e=pd(t);e.next===null&&(e=t.alternate.memoizedState),vl(t,e.next.queue,{},ze())}function nr(){return ne(_l)}function gd(){return Kt().memoizedState}function vd(){return Kt().memoizedState}function Gv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=ze();t=Fn(n);var a=Pn(e,t,n);a!==null&&(Ae(a,e,n),dl(a,e,n)),e={cache:Oo()},t.payload=e;return}e=e.return}}function Xv(t,e,n){var a=ze();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Xs(t)?bd(e,n):(n=bo(t,e,n,a),n!==null&&(Ae(n,t,a),Sd(n,e,a)))}function xd(t,e,n){var a=ze();vl(t,e,n,a)}function vl(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xs(t))bd(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,Me(y,f))return As(t,e,s,0),Ot===null&&Ts(),!1}catch{}if(n=bo(t,e,s,a),n!==null)return Ae(n,t,a),Sd(n,e,a),!0}return!1}function ar(t,e,n,a){if(a={lane:2,revertLane:_r(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Xs(t)){if(e)throw Error(o(479))}else e=bo(t,n,a,2),e!==null&&Ae(e,t,2)}function Xs(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function bd(t,e){vi=Us=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Sd(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,rs(t,n)}}var xl={readContext:ne,use:Hs,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};xl.useEffectEvent=Ht;var Td={readContext:ne,use:Hs,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:ne,useEffect:ld,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,qs(4194308,4,rd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return qs(4194308,4,t,e)},useInsertionEffect:function(t,e){qs(4,2,t,e)},useMemo:function(t,e){var n=me();e=e===void 0?null:e;var a=t();if(Ra){Pe(!0);try{t()}finally{Pe(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=me();if(n!==void 0){var s=n(e);if(Ra){Pe(!0);try{n(e)}finally{Pe(!1)}}}else s=e;return a.memoizedState=a.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},a.queue=t,t=t.dispatch=Xv.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=Po(t);var e=t.queue,n=xd.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Io,useDeferredValue:function(t,e){var n=me();return tr(n,t,e)},useTransition:function(){var t=Po(!1);return t=md.bind(null,ct,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,s=me();if(vt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Ot===null)throw Error(o(349));(yt&127)!==0||Xh(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,ld(Qh.bind(null,a,r,t),[t]),a.flags|=2048,bi(9,{destroy:void 0},Kh.bind(null,a,r,n,e),null),n},useId:function(){var t=me(),e=Ot.identifierPrefix;if(vt){var n=dn,a=hn;n=(a&~(1<<32-re(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Bs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Uv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:nr,useFormState:td,useActionState:td,useOptimistic:function(t){var e=me();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=ar.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:ko,useCacheRefresh:function(){return me().memoizedState=Gv.bind(null,ct)},useEffectEvent:function(t){var e=me(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},ir={readContext:ne,use:Hs,useCallback:fd,useContext:ne,useEffect:$o,useImperativeHandle:cd,useInsertionEffect:ud,useLayoutEffect:od,useMemo:hd,useReducer:Ys,useRef:id,useState:function(){return Ys(jn)},useDebugValue:Io,useDeferredValue:function(t,e){var n=Kt();return dd(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Ys(jn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:gl(t),e]},useSyncExternalStore:Gh,useId:gd,useHostTransitionStatus:nr,useFormState:ed,useActionState:ed,useOptimistic:function(t,e){var n=Kt();return Jh(n,Mt,t,e)},useMemoCache:ko,useCacheRefresh:vd};ir.useEffectEvent=sd;var Ad={readContext:ne,use:Hs,useCallback:fd,useContext:ne,useEffect:$o,useImperativeHandle:cd,useInsertionEffect:ud,useLayoutEffect:od,useMemo:hd,useReducer:Fo,useRef:id,useState:function(){return Fo(jn)},useDebugValue:Io,useDeferredValue:function(t,e){var n=Kt();return Mt===null?tr(n,t,e):dd(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Fo(jn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:gl(t),e]},useSyncExternalStore:Gh,useId:gd,useHostTransitionStatus:nr,useFormState:ad,useActionState:ad,useOptimistic:function(t,e){var n=Kt();return Mt!==null?Jh(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ko,useCacheRefresh:vd};Ad.useEffectEvent=sd;function lr(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var sr={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=ze(),s=Fn(a);s.payload=e,n!=null&&(s.callback=n),e=Pn(t,s,a),e!==null&&(Ae(e,t,a),dl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=ze(),s=Fn(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Pn(t,s,a),e!==null&&(Ae(e,t,a),dl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ze(),a=Fn(n);a.tag=2,e!=null&&(a.callback=e),e=Pn(t,a,n),e!==null&&(Ae(e,t,n),dl(e,t,n))}};function Ed(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?!ll(n,a)||!ll(s,r):!0}function Cd(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&&sr.enqueueReplaceState(e,e.state,null)}function Va(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=x({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Md(t){Ss(t)}function Dd(t){console.error(t)}function wd(t){Ss(t)}function Ks(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Nd(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 ur(t,e,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ks(t,e)},n}function jd(t){return t=Fn(t),t.tag=3,t}function Od(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(){Nd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Nd(e,n,a),typeof s!="function"&&(na===null?na=new Set([this]):na.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&&hi(e,n,s,!0),n=we.current,n!==null){switch(n.tag){case 31:case 13:return Ge===null?nu():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Os?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),zr(t,a,s)),!1;case 22:return n.flags|=65536,a===Os?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)),zr(t,a,s)),!1}throw Error(o(435,n.tag))}return zr(t,a,s),nu(),!1}if(vt)return e=we.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==Mo&&(t=Error(o(422),{cause:a}),ol(Le(t,n)))):(a!==Mo&&(e=Error(o(423),{cause:a}),ol(Le(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Le(a,n),s=ur(t.stateNode,a,s),Bo(t,s),Yt!==4&&(Yt=2)),!1;var r=Error(o(520),{cause:a});if(r=Le(r,n),Dl===null?Dl=[r]:Dl.push(r),Yt!==4&&(Yt=2),e===null)return!0;a=Le(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=ur(n.stateNode,a,t),Bo(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"&&(na===null||!na.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=jd(s),Od(s,t,n,a),Bo(n,s),!1}n=n.return}while(n!==null);return!1}var or=Error(o(461)),kt=!1;function ae(t,e,n,a){e.child=t===null?_h(e,null,n,a):za(e,t.child,n,a)}function zd(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 wa(e),a=Xo(t,e,n,f,r,s),y=Ko(),t!==null&&!kt?(Qo(t,e,s),On(t,e,s)):(vt&&y&&Eo(e),e.flags|=1,ae(t,e,a,s),e.child)}function Rd(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!So(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Vd(t,e,r,a,s)):(t=Cs(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!yr(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:ll,n(f,a)&&t.ref===e.ref)return On(t,e,s)}return e.flags|=1,t=Cn(r,a),t.ref=e.ref,t.return=e,e.child=t}function Vd(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(ll(r,a)&&t.ref===e.ref)if(kt=!1,e.pendingProps=a=r,yr(t,s))(t.flags&131072)!==0&&(kt=!0);else return e.lanes=t.lanes,On(t,e,s)}return rr(t,e,n,a,s)}function _d(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 Ud(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ns(e,r!==null?r.cachePool:null),r!==null?Lh(e,r):Ho(),Hh(e);else return a=e.lanes=536870912,Ud(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Ns(e,r.cachePool),Lh(e,r),$n(),e.memoizedState=null):(t!==null&&Ns(e,null),Ho(),$n());return ae(t,e,s,n),e.child}function bl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ud(t,e,n,a,s){var r=Ro();return r=r===null?null:{parent:Qt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Ns(e,null),Ho(),Hh(e),t!==null&&hi(t,e,a,!0),e.childLanes=s,null}function Qs(t,e){return e=ks({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Bd(t,e,n){return za(e,t.child,null,n),t=Qs(e,e.pendingProps),t.flags|=2,Ne(e),e.memoizedState=null,t}function Qv(t,e,n){var a=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(a.mode==="hidden")return t=Qs(e,a),e.lanes=536870912,bl(null,t);if(qo(e),(t=Vt)?(t=Fm(t,qe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Kn!==null?{id:hn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},n=bh(t),n.return=e,e.child=n,ee=e,Vt=null)):t=null,t===null)throw Zn(e);return e.lanes=536870912,null}return Qs(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(qo(e),s)if(e.flags&256)e.flags&=-257,e=Bd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(kt||hi(t,e,n,!1),s=(n&t.childLanes)!==0,kt||s){if(a=Ot,a!==null&&(f=Fi(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,Ea(t,f),Ae(a,t,f),or;nu(),e=Bd(t,e,n)}else t=r.treeContext,Vt=Xe(f.nextSibling),ee=e,vt=!0,Qn=null,qe=!1,t!==null&&Ah(e,t),e=Qs(e,a),e.flags|=4096;return e}return t=Cn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Zs(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function rr(t,e,n,a,s){return wa(e),n=Xo(t,e,n,a,void 0,s),a=Ko(),t!==null&&!kt?(Qo(t,e,s),On(t,e,s)):(vt&&a&&Eo(e),e.flags|=1,ae(t,e,n,s),e.child)}function Ld(t,e,n,a,s,r){return wa(e),e.updateQueue=null,n=qh(e,a,n,s),Yh(t),a=Ko(),t!==null&&!kt?(Qo(t,e,r),On(t,e,r)):(vt&&a&&Eo(e),e.flags|=1,ae(t,e,n,r),e.child)}function Hd(t,e,n,a,s){if(wa(e),e.stateNode===null){var r=oi,f=n.contextType;typeof f=="object"&&f!==null&&(r=ne(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=sr,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},_o(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?ne(f):oi,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(lr(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&&sr.enqueueReplaceState(r,r.state,null),pl(e,a,r,s),ml(),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=Va(n,y);r.props=S;var D=r.context,R=n.contextType;f=oi,typeof R=="object"&&R!==null&&(f=ne(R));var L=n.getDerivedStateFromProps;R=typeof L=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,R||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||D!==f)&&Cd(e,r,a,f),Jn=!1;var w=e.memoizedState;r.state=w,pl(e,a,r,s),ml(),D=e.memoizedState,y||w!==D||Jn?(typeof L=="function"&&(lr(e,n,L,a),D=e.memoizedState),(S=Jn||Ed(e,n,S,a,w,D,f))?(R||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=D),r.props=a,r.state=D,r.context=f,a=S):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,Uo(t,e),f=e.memoizedProps,R=Va(n,f),r.props=R,L=e.pendingProps,w=r.context,D=n.contextType,S=oi,typeof D=="object"&&D!==null&&(S=ne(D)),y=n.getDerivedStateFromProps,(D=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==L||w!==S)&&Cd(e,r,a,S),Jn=!1,w=e.memoizedState,r.state=w,pl(e,a,r,s),ml();var j=e.memoizedState;f!==L||w!==j||Jn||t!==null&&t.dependencies!==null&&Ds(t.dependencies)?(typeof y=="function"&&(lr(e,n,y,a),j=e.memoizedState),(R=Jn||Ed(e,n,R,a,w,j,S)||t!==null&&t.dependencies!==null&&Ds(t.dependencies))?(D||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,j,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,j,S)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=j),r.props=a,r.state=j,r.context=S,a=R):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,Zs(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=za(e,t.child,null,s),e.child=za(e,null,n,s)):ae(t,e,n,s),e.memoizedState=r.state,t=e.child):t=On(t,e,s),t}function Yd(t,e,n,a){return Ma(),e.flags|=256,ae(t,e,n,a),e.child}var cr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fr(t){return{baseLanes:t,cachePool:Nh()}}function hr(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Oe),t}function qd(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:(Xt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(s?Wn(e):$n(),(t=Vt)?(t=Fm(t,qe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Kn!==null?{id:hn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},n=bh(t),n.return=e,e.child=n,ee=e,Vt=null)):t=null,t===null)throw Zn(e);return Jr(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?($n(),s=e.mode,y=ks({mode:"hidden",children:y},s),a=Ca(a,s,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=fr(n),a.childLanes=hr(t,f,n),e.memoizedState=cr,bl(null,a)):(Wn(e),dr(e,y))}var S=t.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(r)e.flags&256?(Wn(e),e.flags&=-257,e=mr(t,e,n)):e.memoizedState!==null?($n(),e.child=t.child,e.flags|=128,e=null):($n(),y=a.fallback,s=e.mode,a=ks({mode:"visible",children:a.children},s),y=Ca(y,s,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,za(e,t.child,null,n),a=e.child,a.memoizedState=fr(n),a.childLanes=hr(t,f,n),e.memoizedState=cr,e=bl(null,a));else if(Wn(e),Jr(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var D=f.dgst;f=D,a=Error(o(419)),a.stack="",a.digest=f,ol({value:a,source:null,stack:null}),e=mr(t,e,n)}else if(kt||hi(t,e,n,!1),f=(n&t.childLanes)!==0,kt||f){if(f=Ot,f!==null&&(a=Fi(f,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,Ea(t,a),Ae(f,t,a),or;kr(y)||nu(),e=mr(t,e,n)}else kr(y)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Vt=Xe(y.nextSibling),ee=e,vt=!0,Qn=null,qe=!1,t!==null&&Ah(e,t),e=dr(e,a.children),e.flags|=4096);return e}return s?($n(),y=a.fallback,s=e.mode,S=t.child,D=S.sibling,a=Cn(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,D!==null?y=Cn(D,y):(y=Ca(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,bl(null,a),a=e.child,y=t.child.memoizedState,y===null?y=fr(n):(s=y.cachePool,s!==null?(S=Qt._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Nh(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=hr(t,f,n),e.memoizedState=cr,bl(t.child,a)):(Wn(e),n=t.child,t=n.sibling,n=Cn(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 dr(t,e){return e=ks({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ks(t,e){return t=De(22,t,null,e),t.lanes=0,t}function mr(t,e,n){return za(e,t.child,null,n),t=dr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Gd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),No(t.return,e,n)}function pr(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 Xd(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=Xt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,Q(Xt,f),ae(t,e,a,n),a=vt?ul:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Gd(t,n,e);else if(t.tag===19)Gd(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&&_s(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),pr(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&&_s(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}pr(e,!0,n,null,r,a);break;case"together":pr(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function On(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ea|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(hi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=Cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function yr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ds(t)))}function Zv(t,e,n){switch(e.tag){case 3:Rt(e,e.stateNode.containerInfo),kn(e,Qt,t.memoizedState.cache),Ma();break;case 27:case 5:ke(e);break;case 4:Rt(e,e.stateNode.containerInfo);break;case 10:kn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,qo(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Wn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?qd(t,e,n):(Wn(e),t=On(t,e,n),t!==null?t.sibling:null);Wn(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(hi(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return Xd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(Xt,Xt.current),a)break;return null;case 22:return e.lanes=0,_d(t,e,n,e.pendingProps);case 24:kn(e,Qt,t.memoizedState.cache)}return On(t,e,n)}function Kd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)kt=!0;else{if(!yr(t,n)&&(e.flags&128)===0)return kt=!1,Zv(t,e,n);kt=(t.flags&131072)!==0}else kt=!1,vt&&(e.flags&1048576)!==0&&Th(e,ul,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")So(t)?(a=Va(t,a),e.tag=1,e=Hd(null,e,t,a,n)):(e.tag=0,e=rr(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===k){e.tag=11,e=zd(null,e,t,a,n);break t}else if(s===J){e.tag=14,e=Rd(null,e,t,a,n);break t}}throw e=Nt(t)||t,Error(o(306,e,""))}}return e;case 0:return rr(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=Va(a,e.pendingProps),Hd(t,e,a,s,n);case 3:t:{if(Rt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,Uo(t,e),pl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,kn(e,Qt,a),a!==r.cache&&jo(e,[Qt],n,!0),ml(),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=Yd(t,e,a,n);break t}else if(a!==s){s=Le(Error(o(424)),e),ol(s),e=Yd(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,Vt=Xe(t.firstChild),ee=e,vt=!0,Qn=null,qe=!0,n=_h(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ma(),a===s){e=On(t,e,n);break t}ae(t,e,a,n)}e=e.child}return e;case 26:return Zs(t,e),t===null?(n=ep(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,a=ru(nt.current).createElement(n),a[Gt]=e,a[ce]=t,ie(a,n,t),It(a),e.stateNode=a):e.memoizedState=ep(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ke(e),t===null&&vt&&(a=e.stateNode=$m(e.type,e.pendingProps,nt.current),ee=e,qe=!0,s=Vt,sa(e.type)?(Fr=s,Vt=Xe(a.firstChild)):Vt=s),ae(t,e,e.pendingProps.children,n),Zs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((s=a=Vt)&&(a=T1(a,e.type,e.pendingProps,qe),a!==null?(e.stateNode=a,ee=e,Vt=Xe(a.firstChild),qe=!1,s=!0):s=!1),s||Zn(e)),ke(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,Kr(s,r)?a=null:f!==null&&Kr(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=Xo(t,e,Bv,null,null,n),_l._currentValue=s),Zs(t,e),ae(t,e,a,n),e.child;case 6:return t===null&&vt&&((t=n=Vt)&&(n=A1(n,e.pendingProps,qe),n!==null?(e.stateNode=n,ee=e,Vt=null,t=!0):t=!1),t||Zn(e)),null;case 13:return qd(t,e,n);case 4:return Rt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=za(e,null,a,n):ae(t,e,a,n),e.child;case 11:return zd(t,e,e.type,e.pendingProps,n);case 7:return ae(t,e,e.pendingProps,n),e.child;case 8:return ae(t,e,e.pendingProps.children,n),e.child;case 12:return ae(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,kn(e,e.type,a.value),ae(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,wa(e),s=ne(s),a=a(s),e.flags|=1,ae(t,e,a,n),e.child;case 14:return Rd(t,e,e.type,e.pendingProps,n);case 15:return Vd(t,e,e.type,e.pendingProps,n);case 19:return Xd(t,e,n);case 31:return Qv(t,e,n);case 22:return _d(t,e,n,e.pendingProps);case 24:return wa(e),a=ne(Qt),t===null?(s=Ro(),s===null&&(s=Ot,r=Oo(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},_o(e),kn(e,Qt,s)):((t.lanes&n)!==0&&(Uo(t,e),pl(e,null,null,n),ml()),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),kn(e,Qt,a)):(a=r.cache,kn(e,Qt,a),a!==s.cache&&jo(e,[Qt],n,!0))),ae(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function zn(t){t.flags|=4}function gr(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(gm())t.flags|=8192;else throw Oa=Os,Vo}else t.flags&=-16777217}function Qd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!sp(e))if(gm())t.flags|=8192;else throw Oa=Os,Vo}function Js(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?us():536870912,t.lanes|=e,Ei|=e)}function Sl(t,e){if(!vt)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 _t(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function kv(t,e,n){var a=e.pendingProps;switch(Co(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),wn(Qt),jt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(fi(e)?zn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Do())),_t(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(zn(e),r!==null?(_t(e),Qd(e,r)):(_t(e),gr(e,s,null,a,n))):r?r!==t.memoizedState?(zn(e),_t(e),Qd(e,r)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&zn(e),_t(e),gr(e,s,t,a,n)),null;case 27:if(ge(e),n=nt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&zn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return _t(e),null}t=P.current,fi(e)?Eh(e):(t=$m(s,a,n),e.stateNode=t,zn(e))}return _t(e),null;case 5:if(ge(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&zn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return _t(e),null}if(r=P.current,fi(e))Eh(e);else{var f=ru(nt.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[Gt]=e,r[ce]=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(ie(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&&zn(e)}}return _t(e),gr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&zn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=nt.current,fi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=ee,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[Gt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||qm(t.nodeValue,n)),t||Zn(e,!0)}else t=ru(t).createTextNode(a),t[Gt]=e,e.stateNode=t}return _t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=fi(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Gt]=e}else Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else n=Do(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ne(e),e):(Ne(e),null);if((e.flags&128)!==0)throw Error(o(558))}return _t(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=fi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[Gt]=e}else Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),s=!1}else s=Do(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Ne(e),e):(Ne(e),null)}return Ne(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),Js(e,e.updateQueue),_t(e),null);case 4:return jt(),t===null&&Hr(e.stateNode.containerInfo),_t(e),null;case 10:return wn(e.type),_t(e),null;case 19:if(V(Xt),a=e.memoizedState,a===null)return _t(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)Sl(a,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=_s(t),r!==null){for(e.flags|=128,Sl(a,!1),t=r.updateQueue,e.updateQueue=t,Js(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)xh(n,t),n=n.sibling;return Q(Xt,Xt.current&1|2),vt&&Mn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ue()>Is&&(e.flags|=128,s=!0,Sl(a,!1),e.lanes=4194304)}else{if(!s)if(t=_s(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Js(e,t),Sl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!vt)return _t(e),null}else 2*ue()-a.renderingStartTime>Is&&n!==536870912&&(e.flags|=128,s=!0,Sl(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=ue(),t.sibling=null,n=Xt.current,Q(Xt,s?n&1|2:n&1),vt&&Mn(e,a.treeForkCount),t):(_t(e),null);case 22:case 23:return Ne(e),Yo(),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&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),n=e.updateQueue,n!==null&&Js(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&&V(Na),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),wn(Qt),_t(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Jv(t,e){switch(Co(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wn(Qt),jt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ge(e),null;case 31:if(e.memoizedState!==null){if(Ne(e),e.alternate===null)throw Error(o(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ne(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return V(Xt),null;case 4:return jt(),null;case 10:return wn(e.type),null;case 22:case 23:return Ne(e),Yo(),t!==null&&V(Na),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return wn(Qt),null;case 25:return null;default:return null}}function Zd(t,e){switch(Co(e),e.tag){case 3:wn(Qt),jt();break;case 26:case 27:case 5:ge(e);break;case 4:jt();break;case 31:e.memoizedState!==null&&Ne(e);break;case 13:Ne(e);break;case 19:V(Xt);break;case 10:wn(e.type);break;case 22:case 23:Ne(e),Yo(),t!==null&&V(Na);break;case 24:wn(Qt)}}function Tl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&t)===t){a=void 0;var r=n.create,f=n.inst;a=r(),f.destroy=a}n=n.next}while(n!==s)}}catch(y){Ct(e,e.return,y)}}function In(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,D=y;try{D()}catch(R){Ct(s,S,R)}}}a=a.next}while(a!==r)}}catch(R){Ct(e,e.return,R)}}function kd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Bh(e,n)}catch(a){Ct(t,t.return,a)}}}function Jd(t,e,n){n.props=Va(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Ct(t,e,a)}}function Al(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(s){Ct(t,e,s)}}function mn(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Ct(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ct(t,e,s)}else n.current=null}function Fd(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Ct(t,t.return,s)}}function vr(t,e,n){try{var a=t.stateNode;y1(a,t.type,n,e),a[ce]=e}catch(s){Ct(t,t.return,s)}}function Pd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&sa(t.type)||t.tag===4}function xr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Pd(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 br(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=An));else if(a!==4&&(a===27&&sa(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(br(t,e,n),t=t.sibling;t!==null;)br(t,e,n),t=t.sibling}function Fs(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(Fs(t,e,n),t=t.sibling;t!==null;)Fs(t,e,n),t=t.sibling}function Wd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);ie(e,a,n),e[Gt]=t,e[ce]=n}catch(r){Ct(t,t.return,r)}}var Rn=!1,Jt=!1,Sr=!1,$d=typeof WeakSet=="function"?WeakSet:Set,te=null;function Fv(t,e){if(t=t.containerInfo,Gr=yu,t=ch(t),mo(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,D=0,R=0,L=t,w=null;e:for(;;){for(var j;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),(j=L.firstChild)!==null;)w=L,L=j;for(;;){if(L===t)break e;if(w===n&&++D===s&&(y=f),w===r&&++R===a&&(S=f),(j=L.nextSibling)!==null)break;L=w,w=L.parentNode}L=j}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xr={focusedElem:t,selectionRange:n},yu=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,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=Va(n.type,s);t=a.getSnapshotBeforeUpdate(W,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(at){Ct(n,n.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Zr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Zr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function Id(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:_n(t,n),a&4&&Tl(5,n);break;case 1:if(_n(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Ct(n,n.return,f)}else{var s=Va(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ct(n,n.return,f)}}a&64&&kd(n),a&512&&Al(n,n.return);break;case 3:if(_n(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{Bh(t,e)}catch(f){Ct(n,n.return,f)}}break;case 27:e===null&&a&4&&Wd(n);case 26:case 5:_n(t,n),e===null&&a&4&&Fd(n),a&512&&Al(n,n.return);break;case 12:_n(t,n);break;case 31:_n(t,n),a&4&&nm(t,n);break;case 13:_n(t,n),a&4&&am(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=i1.bind(null,n),E1(t,n))));break;case 22:if(a=n.memoizedState!==null||Rn,!a){e=e!==null&&e.memoizedState!==null||Jt,s=Rn;var r=Jt;Rn=a,(Jt=e)&&!r?Un(t,n,(n.subtreeFlags&8772)!==0):_n(t,n),Rn=s,Jt=r}break;case 30:break;default:_n(t,n)}}function tm(t){var e=t.alternate;e!==null&&(t.alternate=null,tm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Pa(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 Ut=null,xe=!1;function Vn(t,e,n){for(n=n.child;n!==null;)em(t,e,n),n=n.sibling}function em(t,e,n){if(oe&&typeof oe.onCommitFiberUnmount=="function")try{oe.onCommitFiberUnmount(on,n)}catch{}switch(n.tag){case 26:Jt||mn(n,e),Vn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||mn(n,e);var a=Ut,s=xe;sa(n.type)&&(Ut=n.stateNode,xe=!1),Vn(t,e,n),zl(n.stateNode),Ut=a,xe=s;break;case 5:Jt||mn(n,e);case 6:if(a=Ut,s=xe,Ut=null,Vn(t,e,n),Ut=a,xe=s,Ut!==null)if(xe)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(r){Ct(n,e,r)}else try{Ut.removeChild(n.stateNode)}catch(r){Ct(n,e,r)}break;case 18:Ut!==null&&(xe?(t=Ut,km(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),zi(t)):km(Ut,n.stateNode));break;case 4:a=Ut,s=xe,Ut=n.stateNode.containerInfo,xe=!0,Vn(t,e,n),Ut=a,xe=s;break;case 0:case 11:case 14:case 15:In(2,n,e),Jt||In(4,n,e),Vn(t,e,n);break;case 1:Jt||(mn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Jd(n,e,a)),Vn(t,e,n);break;case 21:Vn(t,e,n);break;case 22:Jt=(a=Jt)||n.memoizedState!==null,Vn(t,e,n),Jt=a;break;default:Vn(t,e,n)}}function nm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{zi(t)}catch(n){Ct(e,e.return,n)}}}function am(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{zi(t)}catch(n){Ct(e,e.return,n)}}function Pv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new $d),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new $d),e;default:throw Error(o(435,t.tag))}}function Ps(t,e){var n=Pv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=l1.bind(null,t,a);a.then(s,s)}})}function be(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)){Ut=y.stateNode,xe=!1;break t}break;case 5:Ut=y.stateNode,xe=!1;break t;case 3:case 4:Ut=y.stateNode.containerInfo,xe=!0;break t}y=y.return}if(Ut===null)throw Error(o(160));em(r,f,s),Ut=null,xe=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)im(e,t),e=e.sibling}var tn=null;function im(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:be(e,t),Se(t),a&4&&(In(3,t,t.return),Tl(3,t),In(5,t,t.return));break;case 1:be(e,t),Se(t),a&512&&(Jt||n===null||mn(n,n.return)),a&64&&Rn&&(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=tn;if(be(e,t),Se(t),a&512&&(Jt||n===null||mn(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[Ve]||r[Gt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),ie(r,a,n),r[Gt]=t,It(r),a=r;break t;case"link":var f=ip("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),ie(r,a,n),s.head.appendChild(r);break;case"meta":if(f=ip("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),ie(r,a,n),s.head.appendChild(r);break;default:throw Error(o(468,a))}r[Gt]=t,It(r),a=r}t.stateNode=a}else lp(s,t.type,t.stateNode);else t.stateNode=ap(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?lp(s,t.type,t.stateNode):ap(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&vr(t,t.memoizedProps,n.memoizedProps)}break;case 27:be(e,t),Se(t),a&512&&(Jt||n===null||mn(n,n.return)),n!==null&&a&4&&vr(t,t.memoizedProps,n.memoizedProps);break;case 5:if(be(e,t),Se(t),a&512&&(Jt||n===null||mn(n,n.return)),t.flags&32){s=t.stateNode;try{ei(s,"")}catch(W){Ct(t,t.return,W)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,vr(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Sr=!0);break;case 6:if(be(e,t),Se(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(W){Ct(t,t.return,W)}}break;case 3:if(hu=null,s=tn,tn=cu(e.containerInfo),be(e,t),tn=s,Se(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{zi(e.containerInfo)}catch(W){Ct(t,t.return,W)}Sr&&(Sr=!1,lm(t));break;case 4:a=tn,tn=cu(t.stateNode.containerInfo),be(e,t),Se(t),tn=a;break;case 12:be(e,t),Se(t);break;case 31:be(e,t),Se(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ps(t,a)));break;case 13:be(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($s=ue()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ps(t,a)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,D=Rn,R=Jt;if(Rn=D||s,Jt=R||S,be(e,t),Jt=R,Rn=D,Se(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||Rn||Jt||_a(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,w=L!=null&&L.hasOwnProperty("display")?L.display:null;y.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(W){Ct(S,S.return,W)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(W){Ct(S,S.return,W)}}}else if(e.tag===18){if(n===null){S=e;try{var j=S.stateNode;s?Jm(j,!0):Jm(S.stateNode,!1)}catch(W){Ct(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,Ps(t,n))));break;case 19:be(e,t),Se(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ps(t,a)));break;case 30:break;case 21:break;default:be(e,t),Se(t)}}function Se(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Pd(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,r=xr(t);Fs(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(ei(f,""),n.flags&=-33);var y=xr(t);Fs(t,y,f);break;case 3:case 4:var S=n.stateNode.containerInfo,D=xr(t);br(t,D,S);break;default:throw Error(o(161))}}catch(R){Ct(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function lm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;lm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function _n(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Id(t,e.alternate,e),e=e.sibling}function _a(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:In(4,e,e.return),_a(e);break;case 1:mn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Jd(e,e.return,n),_a(e);break;case 27:zl(e.stateNode);case 26:case 5:mn(e,e.return),_a(e);break;case 22:e.memoizedState===null&&_a(e);break;case 30:_a(e);break;default:_a(e)}t=t.sibling}}function Un(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:Un(s,r,n),Tl(4,r);break;case 1:if(Un(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(D){Ct(a,a.return,D)}if(a=r,s=a.updateQueue,s!==null){var y=a.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)Uh(S[s],y)}catch(D){Ct(a,a.return,D)}}n&&f&64&&kd(r),Al(r,r.return);break;case 27:Wd(r);case 26:case 5:Un(s,r,n),n&&a===null&&f&4&&Fd(r),Al(r,r.return);break;case 12:Un(s,r,n);break;case 31:Un(s,r,n),n&&f&4&&nm(s,r);break;case 13:Un(s,r,n),n&&f&4&&am(s,r);break;case 22:r.memoizedState===null&&Un(s,r,n),Al(r,r.return);break;case 30:break;default:Un(s,r,n)}e=e.sibling}}function Tr(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&&rl(n))}function Ar(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&rl(t))}function en(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sm(t,e,n,a),e=e.sibling}function sm(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:en(t,e,n,a),s&2048&&Tl(9,e);break;case 1:en(t,e,n,a);break;case 3:en(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&&rl(t)));break;case 12:if(s&2048){en(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){Ct(e,e.return,S)}}else en(t,e,n,a);break;case 31:en(t,e,n,a);break;case 13:en(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?en(t,e,n,a):El(t,e):r._visibility&2?en(t,e,n,a):(r._visibility|=2,Si(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Tr(f,e);break;case 24:en(t,e,n,a),s&2048&&Ar(e.alternate,e);break;default:en(t,e,n,a)}}function Si(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,D=f.flags;switch(f.tag){case 0:case 11:case 15:Si(r,f,y,S,s),Tl(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Si(r,f,y,S,s):El(r,f):(R._visibility|=2,Si(r,f,y,S,s)),s&&D&2048&&Tr(f.alternate,f);break;case 24:Si(r,f,y,S,s),s&&D&2048&&Ar(f.alternate,f);break;default:Si(r,f,y,S,s)}e=e.sibling}}function El(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:El(n,a),s&2048&&Tr(a.alternate,a);break;case 24:El(n,a),s&2048&&Ar(a.alternate,a);break;default:El(n,a)}e=e.sibling}}var Cl=8192;function Ti(t,e,n){if(t.subtreeFlags&Cl)for(t=t.child;t!==null;)um(t,e,n),t=t.sibling}function um(t,e,n){switch(t.tag){case 26:Ti(t,e,n),t.flags&Cl&&t.memoizedState!==null&&U1(n,tn,t.memoizedState,t.memoizedProps);break;case 5:Ti(t,e,n);break;case 3:case 4:var a=tn;tn=cu(t.stateNode.containerInfo),Ti(t,e,n),tn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Cl,Cl=16777216,Ti(t,e,n),Cl=a):Ti(t,e,n));break;default:Ti(t,e,n)}}function om(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 Ml(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];te=a,cm(a,t)}om(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rm(t),t=t.sibling}function rm(t){switch(t.tag){case 0:case 11:case 15:Ml(t),t.flags&2048&&In(9,t,t.return);break;case 3:Ml(t);break;case 12:Ml(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ws(t)):Ml(t);break;default:Ml(t)}}function Ws(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];te=a,cm(a,t)}om(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:In(8,e,e.return),Ws(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ws(e));break;default:Ws(e)}t=t.sibling}}function cm(t,e){for(;te!==null;){var n=te;switch(n.tag){case 0:case 11:case 15:In(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:rl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,te=a;else t:for(n=t;te!==null;){a=te;var s=a.sibling,r=a.return;if(tm(a),a===n){te=null;break t}if(s!==null){s.return=r,te=s;break t}te=r}}}var Wv={getCacheForType:function(t){var e=ne(Qt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ne(Qt).controller.signal}},$v=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Ot=null,mt=null,yt=0,Et=0,je=null,ta=!1,Ai=!1,Er=!1,Bn=0,Yt=0,ea=0,Ua=0,Cr=0,Oe=0,Ei=0,Dl=null,Te=null,Mr=!1,$s=0,fm=0,Is=1/0,tu=null,na=null,Wt=0,aa=null,Ci=null,Ln=0,Dr=0,wr=null,hm=null,wl=0,Nr=null;function ze(){return(Tt&2)!==0&&yt!==0?yt&-yt:O.T!==null?_r():Gn()}function dm(){if(Oe===0)if((yt&536870912)===0||vt){var t=qn;qn<<=1,(qn&3932160)===0&&(qn=262144),Oe=t}else Oe=536870912;return t=we.current,t!==null&&(t.flags|=32),Oe}function Ae(t,e,n){(t===Ot&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(Mi(t,0),ia(t,yt,Oe,!1)),xa(t,n),((Tt&2)===0||t!==Ot)&&(t===Ot&&((Tt&2)===0&&(Ua|=n),Yt===4&&ia(t,yt,Oe,!1)),pn(t))}function mm(t,e,n){if((Tt&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||va(t,e),s=a?e1(t,e):Or(t,e,!0),r=a;do{if(s===0){Ai&&!a&&ia(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Iv(n)){s=Or(t,e,!1),r=!1;continue}if(s===2){if(r=e,t.errorRecoveryDisabledLanes&r)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var y=t;s=Dl;var S=y.current.memoizedState.isDehydrated;if(S&&(Mi(y,f).flags|=256),f=Or(y,f,!1),f!==2){if(Er&&!S){y.errorRecoveryDisabledLanes|=r,Ua|=r,s=4;break t}r=Te,Te=s,r!==null&&(Te===null?Te=r:Te.push.apply(Te,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Mi(t,0),ia(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:ia(a,e,Oe,!ta);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=$s+300-ue(),10<s)){if(ia(a,e,Oe,!ta),ka(a,0,!0)!==0)break t;Ln=e,a.timeoutHandle=Qm(pm.bind(null,a,n,Te,tu,Mr,e,Oe,Ua,Ei,ta,r,"Throttled",-0,0),s);break t}pm(a,n,Te,tu,Mr,e,Oe,Ua,Ei,ta,r,null,-0,0)}}break}while(!0);pn(t)}function pm(t,e,n,a,s,r,f,y,S,D,R,L,w,j){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:An},um(e,r,L);var W=(r&62914560)===r?$s-ue():(r&4194048)===r?fm-ue():0;if(W=B1(L,W),W!==null){Ln=r,t.cancelPendingCommit=W(Am.bind(null,t,e,r,n,a,s,f,y,S,R,L,null,w,j)),ia(t,r,f,!D);return}}Am(t,e,r,n,a,s,f,y,S)}function Iv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],r=s.getSnapshot;s=s.value;try{if(!Me(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 ia(t,e,n,a){e&=~Cr,e&=~Ua,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-re(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&os(t,n,e)}function eu(){return(Tt&6)===0?(Nl(0),!1):!0}function jr(){if(mt!==null){if(Et===0)var t=mt.return;else t=mt,Dn=Da=null,Zo(t),yi=null,fl=0,t=mt;for(;t!==null;)Zd(t.alternate,t),t=t.return;mt=null}}function Mi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,x1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Ln=0,jr(),Ot=t,mt=n=Cn(t.current,null),yt=e,Et=0,je=null,ta=!1,Ai=va(t,e),Er=!1,Ei=Oe=Cr=Ua=ea=Yt=0,Te=Dl=null,Mr=!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-re(a),r=1<<s;e|=t[s],a&=~r}return Bn=e,Ts(),n}function ym(t,e){ct=null,O.H=xl,e===pi||e===js?(e=zh(),Et=3):e===Vo?(e=zh(),Et=4):Et=e===or?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,je=e,mt===null&&(Yt=1,Ks(t,Le(e,t.current)))}function gm(){var t=we.current;return t===null?!0:(yt&4194048)===yt?Ge===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Ge:!1}function vm(){var t=O.H;return O.H=xl,t===null?xl:t}function xm(){var t=O.A;return O.A=Wv,t}function nu(){Yt=4,ta||(yt&4194048)!==yt&&we.current!==null||(Ai=!0),(ea&134217727)===0&&(Ua&134217727)===0||Ot===null||ia(Ot,yt,Oe,!1)}function Or(t,e,n){var a=Tt;Tt|=2;var s=vm(),r=xm();(Ot!==t||yt!==e)&&(tu=null,Mi(t,e)),e=!1;var f=Yt;t:do try{if(Et!==0&&mt!==null){var y=mt,S=je;switch(Et){case 8:jr(),f=6;break t;case 3:case 2:case 9:case 6:we.current===null&&(e=!0);var D=Et;if(Et=0,je=null,Di(t,y,S,D),n&&Ai){f=0;break t}break;default:D=Et,Et=0,je=null,Di(t,y,S,D)}}t1(),f=Yt;break}catch(R){ym(t,R)}while(!0);return e&&t.shellSuspendCounter++,Dn=Da=null,Tt=a,O.H=s,O.A=r,mt===null&&(Ot=null,yt=0,Ts()),f}function t1(){for(;mt!==null;)bm(mt)}function e1(t,e){var n=Tt;Tt|=2;var a=vm(),s=xm();Ot!==t||yt!==e?(tu=null,Is=ue()+500,Mi(t,e)):Ai=va(t,e);t:do try{if(Et!==0&&mt!==null){e=mt;var r=je;e:switch(Et){case 1:Et=0,je=null,Di(t,e,r,1);break;case 2:case 9:if(jh(r)){Et=0,je=null,Sm(e);break}e=function(){Et!==2&&Et!==9||Ot!==t||(Et=7),pn(t)},r.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:jh(r)?(Et=0,je=null,Sm(e)):(Et=0,je=null,Di(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?sp(f):y.stateNode.complete){Et=0,je=null;var S=y.sibling;if(S!==null)mt=S;else{var D=y.return;D!==null?(mt=D,au(D)):mt=null}break e}}Et=0,je=null,Di(t,e,r,5);break;case 6:Et=0,je=null,Di(t,e,r,6);break;case 8:jr(),Yt=6;break t;default:throw Error(o(462))}}n1();break}catch(R){ym(t,R)}while(!0);return Dn=Da=null,O.H=a,O.A=s,Tt=n,mt!==null?0:(Ot=null,yt=0,Ts(),Yt)}function n1(){for(;mt!==null&&!ku();)bm(mt)}function bm(t){var e=Kd(t.alternate,t,Bn);t.memoizedProps=t.pendingProps,e===null?au(t):mt=e}function Sm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Ld(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Ld(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:Zo(e);default:Zd(n,e),e=mt=xh(e,Bn),e=Kd(n,e,Bn)}t.memoizedProps=t.pendingProps,e===null?au(t):mt=e}function Di(t,e,n,a){Dn=Da=null,Zo(e),yi=null,fl=0;var s=e.return;try{if(Kv(t,s,e,n,yt)){Yt=1,Ks(t,Le(n,t.current)),mt=null;return}}catch(r){if(s!==null)throw mt=s,r;Yt=1,Ks(t,Le(n,t.current)),mt=null;return}e.flags&32768?(vt||a===1?t=!0:Ai||(yt&536870912)!==0?t=!1:(ta=t=!0,(a===2||a===9||a===3||a===6)&&(a=we.current,a!==null&&a.tag===13&&(a.flags|=16384))),Tm(e,t)):au(e)}function au(t){var e=t;do{if((e.flags&32768)!==0){Tm(e,ta);return}t=e.return;var n=kv(e.alternate,e,Bn);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Yt===0&&(Yt=5)}function Tm(t,e){do{var n=Jv(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);Yt=6,mt=null}function Am(t,e,n,a,s,r,f,y,S){t.cancelPendingCommit=null;do iu();while(Wt!==0);if((Tt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(r=e.lanes|e.childLanes,r|=xo,Pu(t,n,r,f,y,S),t===Ot&&(mt=Ot=null,yt=0),Ci=e,aa=t,Ln=n,Dr=r,wr=s,hm=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,s1(Qa,function(){return wm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,s=H.p,H.p=2,f=Tt,Tt|=4;try{Fv(t,e,n)}finally{Tt=f,H.p=s,O.T=a}}Wt=1,Em(),Cm(),Mm()}}function Em(){if(Wt===1){Wt=0;var t=aa,e=Ci,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var a=H.p;H.p=2;var s=Tt;Tt|=4;try{im(e,t);var r=Xr,f=ch(t.containerInfo),y=r.focusedElem,S=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&rh(y.ownerDocument.documentElement,y)){if(S!==null&&mo(y)){var D=S.start,R=S.end;if(R===void 0&&(R=D),"selectionStart"in y)y.selectionStart=D,y.selectionEnd=Math.min(R,y.value.length);else{var L=y.ownerDocument||document,w=L&&L.defaultView||window;if(w.getSelection){var j=w.getSelection(),W=y.textContent.length,at=Math.min(S.start,W),wt=S.end===void 0?at:Math.min(S.end,W);!j.extend&&at>wt&&(f=wt,wt=at,at=f);var C=oh(y,at),A=oh(y,wt);if(C&&A&&(j.rangeCount!==1||j.anchorNode!==C.node||j.anchorOffset!==C.offset||j.focusNode!==A.node||j.focusOffset!==A.offset)){var M=L.createRange();M.setStart(C.node,C.offset),j.removeAllRanges(),at>wt?(j.addRange(M),j.extend(A.node,A.offset)):(M.setEnd(A.node,A.offset),j.addRange(M))}}}}for(L=[],j=y;j=j.parentNode;)j.nodeType===1&&L.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<L.length;y++){var _=L[y];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}yu=!!Gr,Xr=Gr=null}finally{Tt=s,H.p=a,O.T=n}}t.current=e,Wt=2}}function Cm(){if(Wt===2){Wt=0;var t=aa,e=Ci,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var a=H.p;H.p=2;var s=Tt;Tt|=4;try{Id(t,e.alternate,e)}finally{Tt=s,H.p=a,O.T=n}}Wt=3}}function Mm(){if(Wt===4||Wt===3){Wt=0,Ju();var t=aa,e=Ci,n=Ln,a=hm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,Ci=aa=null,Dm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(na=null),Pi(n),e=e.stateNode,oe&&typeof oe.onCommitFiberRoot=="function")try{oe.onCommitFiberRoot(on,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=O.T,s=H.p,H.p=2,O.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{O.T=e,H.p=s}}(Ln&3)!==0&&iu(),pn(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Nr?wl++:(wl=0,Nr=t):wl=0,Nl(0)}}function Dm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,rl(e)))}function iu(){return Em(),Cm(),Mm(),wm()}function wm(){if(Wt!==5)return!1;var t=aa,e=Dr;Dr=0;var n=Pi(Ln),a=O.T,s=H.p;try{H.p=32>n?32:n,O.T=null,n=wr,wr=null;var r=aa,f=Ln;if(Wt=0,Ci=aa=null,Ln=0,(Tt&6)!==0)throw Error(o(331));var y=Tt;if(Tt|=4,rm(r.current),sm(r,r.current,f,n),Tt=y,Nl(0,!1),oe&&typeof oe.onPostCommitFiberRoot=="function")try{oe.onPostCommitFiberRoot(on,r)}catch{}return!0}finally{H.p=s,O.T=a,Dm(t,e)}}function Nm(t,e,n){e=Le(n,e),e=ur(t.stateNode,e,2),t=Pn(t,e,2),t!==null&&(xa(t,2),pn(t))}function Ct(t,e,n){if(t.tag===3)Nm(t,t,n);else for(;e!==null;){if(e.tag===3){Nm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(na===null||!na.has(a))){t=Le(n,t),n=jd(2),a=Pn(e,n,2),a!==null&&(Od(n,a,e,t),xa(a,2),pn(a));break}}e=e.return}}function zr(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new $v;var s=new Set;a.set(e,s)}else s=a.get(e),s===void 0&&(s=new Set,a.set(e,s));s.has(n)||(Er=!0,s.add(n),t=a1.bind(null,t,e,n),e.then(t,t))}function a1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(yt&n)===n&&(Yt===4||Yt===3&&(yt&62914560)===yt&&300>ue()-$s?(Tt&2)===0&&Mi(t,0):Cr|=n,Ei===yt&&(Ei=0)),pn(t)}function jm(t,e){e===0&&(e=us()),t=Ea(t,e),t!==null&&(xa(t,e),pn(t))}function i1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),jm(t,n)}function l1(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),jm(t,n)}function s1(t,e){return Zi(t,e)}var lu=null,wi=null,Rr=!1,su=!1,Vr=!1,la=0;function pn(t){t!==wi&&t.next===null&&(wi===null?lu=wi=t:wi=wi.next=t),su=!0,Rr||(Rr=!0,o1())}function Nl(t,e){if(!Vr&&su){Vr=!0;do for(var n=!1,a=lu;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-re(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Vm(a,r))}else r=yt,r=ka(a,a===Ot?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||va(a,r)||(n=!0,Vm(a,r));a=a.next}while(n);Vr=!1}}function u1(){Om()}function Om(){su=Rr=!1;var t=0;la!==0&&v1()&&(t=la);for(var e=ue(),n=null,a=lu;a!==null;){var s=a.next,r=zm(a,e);r===0?(a.next=null,n===null?lu=s:n.next=s,s===null&&(wi=n)):(n=a,(t!==0||(r&3)!==0)&&(su=!0)),a=s}Wt!==0&&Wt!==5||Nl(t),la!==0&&(la=0)}function zm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-re(r),y=1<<f,S=s[f];S===-1?((y&n)===0||(y&a)!==0)&&(s[f]=Fu(y,e)):S<=e&&(t.expiredLanes|=y),r&=~y}if(e=Ot,n=yt,n=ka(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&ya(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||va(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&ya(a),Pi(n)){case 2:case 8:n=ki;break;case 32:n=Qa;break;case 268435456:n=is;break;default:n=Qa}return a=Rm.bind(null,t),n=Zi(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&ya(a),t.callbackPriority=2,t.callbackNode=null,2}function Rm(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(iu()&&t.callbackNode!==n)return null;var a=yt;return a=ka(t,t===Ot?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(mm(t,a,e),zm(t,ue()),t.callbackNode!=null&&t.callbackNode===n?Rm.bind(null,t):null)}function Vm(t,e){if(iu())return null;mm(t,e,!0)}function o1(){b1(function(){(Tt&6)!==0?Zi(as,u1):Om()})}function _r(){if(la===0){var t=di;t===0&&(t=ga,ga<<=1,(ga&261888)===0&&(ga=256)),la=t}return la}function _m(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ms(""+t)}function Um(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function r1(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=_m((s[ce]||null).action),f=a.submitter;f&&(e=(e=f[ce]||null)?_m(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new vs("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(la!==0){var S=f?Um(s,f):new FormData(s);er(n,{pending:!0,data:S,method:s.method,action:r},null,S)}}else typeof r=="function"&&(y.preventDefault(),S=f?Um(s,f):new FormData(s),er(n,{pending:!0,data:S,method:s.method,action:r},r,S))},currentTarget:s}]})}}for(var Ur=0;Ur<vo.length;Ur++){var Br=vo[Ur],c1=Br.toLowerCase(),f1=Br[0].toUpperCase()+Br.slice(1);Ie(c1,"on"+f1)}Ie(dh,"onAnimationEnd"),Ie(mh,"onAnimationIteration"),Ie(ph,"onAnimationStart"),Ie("dblclick","onDoubleClick"),Ie("focusin","onFocus"),Ie("focusout","onBlur"),Ie(Dv,"onTransitionRun"),Ie(wv,"onTransitionStart"),Ie(Nv,"onTransitionCancel"),Ie(yh,"onTransitionEnd"),Ia("onMouseEnter",["mouseout","mouseover"]),Ia("onMouseLeave",["mouseout","mouseover"]),Ia("onPointerEnter",["pointerout","pointerover"]),Ia("onPointerLeave",["pointerout","pointerover"]),ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),h1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jl));function Bm(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,D=y.currentTarget;if(y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=D;try{r(s)}catch(R){Ss(R)}s.currentTarget=null,r=S}else for(f=0;f<a.length;f++){if(y=a[f],S=y.instance,D=y.currentTarget,y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=D;try{r(s)}catch(R){Ss(R)}s.currentTarget=null,r=S}}}}function pt(t,e){var n=e[cs];n===void 0&&(n=e[cs]=new Set);var a=t+"__bubble";n.has(a)||(Lm(e,t,2,!1),n.add(a))}function Lr(t,e,n){var a=0;e&&(a|=4),Lm(n,t,a,e)}var uu="_reactListening"+Math.random().toString(36).slice(2);function Hr(t){if(!t[uu]){t[uu]=!0,Of.forEach(function(n){n!=="selectionchange"&&(h1.has(n)||Lr(n,!1,t),Lr(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[uu]||(e[uu]=!0,Lr("selectionchange",!1,e))}}function Lm(t,e,n,a){switch(dp(e)){case 2:var s=Y1;break;case 8:s=q1;break;default:s=tc}n=s.bind(null,e,n,t),s=void 0,!io||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 Yr(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=$e(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}Xf(function(){var D=r,R=no(n),L=[];t:{var w=gh.get(t);if(w!==void 0){var j=vs,W=t;switch(t){case"keypress":if(ys(n)===0)break t;case"keydown":case"keyup":j=lv;break;case"focusin":W="focus",j=oo;break;case"focusout":W="blur",j=oo;break;case"beforeblur":case"afterblur":j=oo;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":j=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=kg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=ov;break;case dh:case mh:case ph:j=Pg;break;case yh:j=cv;break;case"scroll":case"scrollend":j=Qg;break;case"wheel":j=hv;break;case"copy":case"cut":case"paste":j=$g;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Jf;break;case"toggle":case"beforetoggle":j=mv}var at=(e&4)!==0,wt=!at&&(t==="scroll"||t==="scrollend"),C=at?w!==null?w+"Capture":null:w;at=[];for(var A=D,M;A!==null;){var _=A;if(M=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||M===null||C===null||(_=$i(A,C),_!=null&&at.push(Ol(A,_,M))),wt)break;A=A.return}0<at.length&&(w=new j(w,W,null,n,R),L.push({event:w,listeners:at}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout",w&&n!==eo&&(W=n.relatedTarget||n.fromElement)&&($e(W)||W[Ce]))break t;if((j||w)&&(w=R.window===R?R:(w=R.ownerDocument)?w.defaultView||w.parentWindow:window,j?(W=n.relatedTarget||n.toElement,j=D,W=W?$e(W):null,W!==null&&(wt=d(W),at=W.tag,W!==wt||at!==5&&at!==27&&at!==6)&&(W=null)):(j=null,W=D),j!==W)){if(at=Zf,_="onMouseLeave",C="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(at=Jf,_="onPointerLeave",C="onPointerEnter",A="pointer"),wt=j==null?w:Wi(j),M=W==null?w:Wi(W),w=new at(_,A+"leave",j,n,R),w.target=wt,w.relatedTarget=M,_=null,$e(R)===D&&(at=new at(C,A+"enter",W,n,R),at.target=M,at.relatedTarget=wt,_=at),wt=_,j&&W)e:{for(at=d1,C=j,A=W,M=0,_=C;_;_=at(_))M++;_=0;for(var et=A;et;et=at(et))_++;for(;0<M-_;)C=at(C),M--;for(;0<_-M;)A=at(A),_--;for(;M--;){if(C===A||A!==null&&C===A.alternate){at=C;break e}C=at(C),A=at(A)}at=null}else at=null;j!==null&&Hm(L,w,j,at,!1),W!==null&&wt!==null&&Hm(L,wt,W,at,!0)}}t:{if(w=D?Wi(D):window,j=w.nodeName&&w.nodeName.toLowerCase(),j==="select"||j==="input"&&w.type==="file")var bt=nh;else if(th(w))if(ah)bt=Ev;else{bt=Tv;var tt=Sv}else j=w.nodeName,!j||j.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?D&&to(D.elementType)&&(bt=nh):bt=Av;if(bt&&(bt=bt(t,D))){eh(L,bt,n,R);break t}tt&&tt(t,w,D),t==="focusout"&&D&&w.type==="number"&&D.memoizedProps.value!=null&&Iu(w,"number",w.value)}switch(tt=D?Wi(D):window,t){case"focusin":(th(tt)||tt.contentEditable==="true")&&(li=tt,po=D,sl=null);break;case"focusout":sl=po=li=null;break;case"mousedown":yo=!0;break;case"contextmenu":case"mouseup":case"dragend":yo=!1,fh(L,n,R);break;case"selectionchange":if(Mv)break;case"keydown":case"keyup":fh(L,n,R)}var ft;if(co)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 ii?$f(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(Ff&&n.locale!=="ko"&&(ii||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&ii&&(ft=Kf()):(Xn=R,lo="value"in Xn?Xn.value:Xn.textContent,ii=!0)),tt=ou(D,gt),0<tt.length&&(gt=new kf(gt,t,null,n,R),L.push({event:gt,listeners:tt}),ft?gt.data=ft:(ft=If(n),ft!==null&&(gt.data=ft)))),(ft=yv?gv(t,n):vv(t,n))&&(gt=ou(D,"onBeforeInput"),0<gt.length&&(tt=new kf("onBeforeInput","beforeinput",null,n,R),L.push({event:tt,listeners:gt}),tt.data=ft)),r1(L,t,D,n,R)}Bm(L,e)})}function Ol(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ou(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=$i(t,n),s!=null&&a.unshift(Ol(t,s,r)),s=$i(t,e),s!=null&&a.push(Ol(t,s,r))),t.tag===3)return a;t=t.return}return[]}function d1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Hm(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,S=y.alternate,D=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||D===null||(S=D,s?(D=$i(n,r),D!=null&&f.unshift(Ol(n,D,S))):s||(D=$i(n,r),D!=null&&f.push(Ol(n,D,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var m1=/\r\n?/g,p1=/\u0000|\uFFFD/g;function Ym(t){return(typeof t=="string"?t:""+t).replace(m1,`
9
+ `).replace(p1,"")}function qm(t,e){return e=Ym(e),Ym(t)===e}function Dt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||ei(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&ei(t,""+a);break;case"className":hs(t,"class",a);break;case"tabIndex":hs(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":hs(t,n,a);break;case"style":qf(t,a,r);break;case"data":if(e!=="object"){hs(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=ms(""+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"&&Dt(t,e,"name",s.name,s,null),Dt(t,e,"formEncType",s.formEncType,s,null),Dt(t,e,"formMethod",s.formMethod,s,null),Dt(t,e,"formTarget",s.formTarget,s,null)):(Dt(t,e,"encType",s.encType,s,null),Dt(t,e,"method",s.method,s,null),Dt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=ms(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=An);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(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=ms(""+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),fs(t,"popover",a);break;case"xlinkActuate":Tn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Tn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Tn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Tn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Tn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Tn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Tn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Tn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Tn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":fs(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Xg.get(n)||n,fs(t,n,a))}}function qr(t,e,n,a,s,r){switch(n){case"style":qf(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?ei(t,a):(typeof a=="number"||typeof a=="bigint")&&ei(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=An);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zf.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[ce]||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,""):fs(t,n,a)}}}function ie(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(o(137,e));default:Dt(t,e,r,f,n,null)}}s&&Dt(t,e,"srcSet",n.srcSet,n,null),a&&Dt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var y=r=f=s=null,S=null,D=null;for(a in n)if(n.hasOwnProperty(a)){var R=n[a];if(R!=null)switch(a){case"name":s=R;break;case"type":f=R;break;case"checked":S=R;break;case"defaultChecked":D=R;break;case"value":r=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,e));break;default:Dt(t,e,a,R,n,null)}}Bf(t,r,y,S,D,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:Dt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?ti(t,!!a,e,!1):n!=null&&ti(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(o(91));break;default:Dt(t,e,f,y,n,null)}Hf(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":Dt(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<jl.length;a++)pt(jl[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(D in n)if(n.hasOwnProperty(D)&&(a=n[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Dt(t,e,D,a,n,null)}return;default:if(to(e)){for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!==void 0&&qr(t,e,R,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Dt(t,e,y,a,n,null))}function y1(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,r=null,f=null,y=null,S=null,D=null,R=null;for(j in n){var L=n[j];if(n.hasOwnProperty(j)&&L!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":S=L;default:a.hasOwnProperty(j)||Dt(t,e,j,null,a,L)}}for(var w in a){var j=a[w];if(L=n[w],a.hasOwnProperty(w)&&(j!=null||L!=null))switch(w){case"type":r=j;break;case"name":s=j;break;case"checked":D=j;break;case"defaultChecked":R=j;break;case"value":f=j;break;case"defaultValue":y=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,e));break;default:j!==L&&Dt(t,e,w,j,a,L)}}$u(t,f,y,S,D,R,r,s);return;case"select":j=f=y=w=null;for(r in n)if(S=n[r],n.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":j=S;default:a.hasOwnProperty(r)||Dt(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":w=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==S&&Dt(t,e,s,r,a,S)}e=y,n=f,a=j,w!=null?ti(t,!!n,w,!1):!!a!=!!n&&(e!=null?ti(t,!!n,e,!0):ti(t,!!n,n?[]:"",!1));return;case"textarea":j=w=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Dt(t,e,y,null,a,s)}for(f in a)if(s=a[f],r=n[f],a.hasOwnProperty(f)&&(s!=null||r!=null))switch(f){case"value":w=s;break;case"defaultValue":j=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==r&&Dt(t,e,f,s,a,r)}Lf(t,w,j);return;case"option":for(var W in n)w=n[W],n.hasOwnProperty(W)&&w!=null&&!a.hasOwnProperty(W)&&(W==="selected"?t.selected=!1:Dt(t,e,W,null,a,w));for(S in a)w=a[S],j=n[S],a.hasOwnProperty(S)&&w!==j&&(w!=null||j!=null)&&(S==="selected"?t.selected=w&&typeof w!="function"&&typeof w!="symbol":Dt(t,e,S,w,a,j));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var at in n)w=n[at],n.hasOwnProperty(at)&&w!=null&&!a.hasOwnProperty(at)&&Dt(t,e,at,null,a,w);for(D in a)if(w=a[D],j=n[D],a.hasOwnProperty(D)&&w!==j&&(w!=null||j!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:Dt(t,e,D,w,a,j)}return;default:if(to(e)){for(var wt in n)w=n[wt],n.hasOwnProperty(wt)&&w!==void 0&&!a.hasOwnProperty(wt)&&qr(t,e,wt,void 0,a,w);for(R in a)w=a[R],j=n[R],!a.hasOwnProperty(R)||w===j||w===void 0&&j===void 0||qr(t,e,R,w,a,j);return}}for(var C in n)w=n[C],n.hasOwnProperty(C)&&w!=null&&!a.hasOwnProperty(C)&&Dt(t,e,C,null,a,w);for(L in a)w=a[L],j=n[L],!a.hasOwnProperty(L)||w===j||w==null&&j==null||Dt(t,e,L,w,a,j)}function Gm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],r=s.transferSize,f=s.initiatorType,y=s.duration;if(r&&y&&Gm(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var S=n[a],D=S.startTime;if(D>y)break;var R=S.transferSize,L=S.initiatorType;R&&Gm(L)&&(S=S.responseEnd,f+=R*(S<y?1:(y-D)/(S-D)))}if(--a,e+=8*(r+f)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Gr=null,Xr=null;function ru(t){return t.nodeType===9?t:t.ownerDocument}function Xm(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 Km(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 Kr(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 Qr=null;function v1(){var t=window.event;return t&&t.type==="popstate"?t===Qr?!1:(Qr=t,!0):(Qr=null,!1)}var Qm=typeof setTimeout=="function"?setTimeout:void 0,x1=typeof clearTimeout=="function"?clearTimeout:void 0,Zm=typeof Promise=="function"?Promise:void 0,b1=typeof queueMicrotask=="function"?queueMicrotask:typeof Zm<"u"?function(t){return Zm.resolve(null).then(t).catch(S1)}:Qm;function S1(t){setTimeout(function(){throw t})}function sa(t){return t==="head"}function km(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),zi(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")zl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,zl(n);for(var r=n.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[Ve]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&zl(t.ownerDocument.body);n=s}while(n);zi(e)}function Jm(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 Zr(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":Zr(n),Pa(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function T1(t,e,n,a){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ve])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=Xe(t.nextSibling),t===null)break}return null}function A1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Xe(t.nextSibling),t===null))return null;return t}function Fm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Xe(t.nextSibling),t===null))return null;return t}function kr(t){return t.data==="$?"||t.data==="$~"}function Jr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function E1(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Xe(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 Fr=null;function Pm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Xe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Wm(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 $m(t,e,n){switch(e=ru(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function zl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Pa(t)}var Ke=new Map,Im=new Set;function cu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Hn=H.d;H.d={f:C1,r:M1,D:D1,C:w1,L:N1,m:j1,X:z1,S:O1,M:R1};function C1(){var t=Hn.f(),e=eu();return t||e}function M1(t){var e=Wa(t);e!==null&&e.tag===5&&e.type==="form"?yd(e):Hn.r(t)}var Ni=typeof document>"u"?null:document;function tp(t,e,n){var a=Ni;if(a&&typeof e=="string"&&e){var s=Ue(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Im.has(s)||(Im.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),ie(e,"link",t),It(e),a.head.appendChild(e)))}}function D1(t){Hn.D(t),tp("dns-prefetch",t,null)}function w1(t,e){Hn.C(t,e),tp("preconnect",t,e)}function N1(t,e,n){Hn.L(t,e,n);var a=Ni;if(a&&t&&e){var s='link[rel="preload"][as="'+Ue(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Ue(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Ue(n.imageSizes)+'"]')):s+='[href="'+Ue(t)+'"]';var r=s;switch(e){case"style":r=ji(t);break;case"script":r=Oi(t)}Ke.has(r)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ke.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(Rl(r))||e==="script"&&a.querySelector(Vl(r))||(e=a.createElement("link"),ie(e,"link",t),It(e),a.head.appendChild(e)))}}function j1(t,e){Hn.m(t,e);var n=Ni;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Ue(a)+'"][href="'+Ue(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Oi(t)}if(!Ke.has(r)&&(t=x({rel:"modulepreload",href:t},e),Ke.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Vl(r)))return}a=n.createElement("link"),ie(a,"link",t),It(a),n.head.appendChild(a)}}}function O1(t,e,n){Hn.S(t,e,n);var a=Ni;if(a&&t){var s=$a(a).hoistableStyles,r=ji(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(Rl(r)))y.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ke.get(r))&&Pr(t,n);var S=f=a.createElement("link");It(S),ie(S,"link",t),S._p=new Promise(function(D,R){S.onload=D,S.onerror=R}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,fu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function z1(t,e){Hn.X(t,e);var n=Ni;if(n&&t){var a=$a(n).hoistableScripts,s=Oi(t),r=a.get(s);r||(r=n.querySelector(Vl(s)),r||(t=x({src:t,async:!0},e),(e=Ke.get(s))&&Wr(t,e),r=n.createElement("script"),It(r),ie(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function R1(t,e){Hn.M(t,e);var n=Ni;if(n&&t){var a=$a(n).hoistableScripts,s=Oi(t),r=a.get(s);r||(r=n.querySelector(Vl(s)),r||(t=x({src:t,async:!0,type:"module"},e),(e=Ke.get(s))&&Wr(t,e),r=n.createElement("script"),It(r),ie(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function ep(t,e,n,a){var s=(s=nt.current)?cu(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ji(n.href),n=$a(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=ji(n.href);var r=$a(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(Rl(t)))&&!r._p&&(f.instance=r,f.state.loading=5),Ke.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},Ke.set(t,n),r||V1(s,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Oi(n),n=$a(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ji(t){return'href="'+Ue(t)+'"'}function Rl(t){return'link[rel="stylesheet"]['+t+"]"}function np(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function V1(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ie(e,"link",n),It(e),t.head.appendChild(e))}function Oi(t){return'[src="'+Ue(t)+'"]'}function Vl(t){return"script[async]"+t}function ap(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ue(n.href)+'"]');if(a)return e.instance=a,It(a),a;var s=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),It(a),ie(a,"style",s),fu(a,n.precedence,t),e.instance=a;case"stylesheet":s=ji(n.href);var r=t.querySelector(Rl(s));if(r)return e.state.loading|=4,e.instance=r,It(r),r;a=np(n),(s=Ke.get(s))&&Pr(a,s),r=(t.ownerDocument||t).createElement("link"),It(r);var f=r;return f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),ie(r,"link",a),e.state.loading|=4,fu(r,n.precedence,t),e.instance=r;case"script":return r=Oi(n.src),(s=t.querySelector(Vl(r)))?(e.instance=s,It(s),s):(a=n,(s=Ke.get(r))&&(a=x({},n),Wr(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),It(s),ie(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,fu(a,n.precedence,t));return e.instance}function fu(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 Pr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Wr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var hu=null;function ip(t,e,n){if(hu===null){var a=new Map,s=hu=new Map;s.set(n,a)}else s=hu,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[Ve]||r[Gt]||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 lp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function _1(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function sp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function U1(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ji(a.href),r=e.querySelector(Rl(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=du.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,It(r);return}r=e.ownerDocument||e,a=np(a),(s=Ke.get(s))&&Pr(a,s),r=r.createElement("link"),It(r);var f=r;f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),ie(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=du.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var $r=0;function B1(t,e){return t.stylesheets&&t.count===0&&pu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&pu(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&$r===0&&($r=62500*g1());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&pu(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>$r?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function du(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var mu=null;function pu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,mu=new Map,e.forEach(L1,t),mu=null,du.call(t))}function L1(t,e){if(!(e.state.loading&4)){var n=mu.get(t);if(n)var a=n.get(null);else{n=new Map,mu.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=du.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 _l={$$typeof:G,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function H1(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=Ja(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ja(0),this.hiddenUpdates=Ja(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 up(t,e,n,a,s,r,f,y,S,D,R,L){return t=new H1(t,e,n,f,S,D,R,L,y),e=1,r===!0&&(e|=24),r=De(3,null,null,e),t.current=r,r.stateNode=t,e=Oo(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},_o(r),t}function op(t){return t?(t=oi,t):oi}function rp(t,e,n,a,s,r){s=op(s),a.context===null?a.context=s:a.pendingContext=s,a=Fn(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=Pn(t,a,e),n!==null&&(Ae(n,t,e),dl(n,t,e))}function cp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ir(t,e){cp(t,e),(t=t.alternate)&&cp(t,e)}function fp(t){if(t.tag===13||t.tag===31){var e=Ea(t,67108864);e!==null&&Ae(e,t,67108864),Ir(t,67108864)}}function hp(t){if(t.tag===13||t.tag===31){var e=ze();e=Fa(e);var n=Ea(t,e);n!==null&&Ae(n,t,e),Ir(t,e)}}var yu=!0;function Y1(t,e,n,a){var s=O.T;O.T=null;var r=H.p;try{H.p=2,tc(t,e,n,a)}finally{H.p=r,O.T=s}}function q1(t,e,n,a){var s=O.T;O.T=null;var r=H.p;try{H.p=8,tc(t,e,n,a)}finally{H.p=r,O.T=s}}function tc(t,e,n,a){if(yu){var s=ec(a);if(s===null)Yr(t,e,a,gu,n),mp(t,a);else if(X1(s,t,e,n,a))a.stopPropagation();else if(mp(t,a),e&4&&-1<G1.indexOf(t)){for(;s!==null;){var r=Wa(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Sn(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var S=1<<31-re(f);y.entanglements[1]|=S,f&=~S}pn(r),(Tt&6)===0&&(Is=ue()+500,Nl(0))}}break;case 31:case 13:y=Ea(r,2),y!==null&&Ae(y,r,2),eu(),Ir(r,2)}if(r=ec(a),r===null&&Yr(t,e,a,gu,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else Yr(t,e,a,null,n)}}function ec(t){return t=no(t),nc(t)}var gu=null;function nc(t){if(gu=null,t=$e(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 gu=t,null}function dp(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(un()){case as:return 2;case ki:return 8;case Qa:case Ji:return 32;case is:return 268435456;default:return 32}default:return 32}}var ac=!1,ua=null,oa=null,ra=null,Ul=new Map,Bl=new Map,ca=[],G1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function mp(t,e){switch(t){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":oa=null;break;case"mouseover":case"mouseout":ra=null;break;case"pointerover":case"pointerout":Ul.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(e.pointerId)}}function Ll(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=Wa(e),e!==null&&fp(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function X1(t,e,n,a,s){switch(e){case"focusin":return ua=Ll(ua,t,e,n,a,s),!0;case"dragenter":return oa=Ll(oa,t,e,n,a,s),!0;case"mouseover":return ra=Ll(ra,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return Ul.set(r,Ll(Ul.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,Bl.set(r,Ll(Bl.get(r)||null,t,e,n,a,s)),!0}return!1}function pp(t){var e=$e(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,cn(t.priority,function(){hp(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,cn(t.priority,function(){hp(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 vu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ec(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);eo=a,n.target.dispatchEvent(a),eo=null}else return e=Wa(n),e!==null&&fp(e),t.blockedOn=n,!1;e.shift()}return!0}function yp(t,e,n){vu(t)&&n.delete(e)}function K1(){ac=!1,ua!==null&&vu(ua)&&(ua=null),oa!==null&&vu(oa)&&(oa=null),ra!==null&&vu(ra)&&(ra=null),Ul.forEach(yp),Bl.forEach(yp)}function xu(t,e){t.blockedOn===e&&(t.blockedOn=null,ac||(ac=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,K1)))}var bu=null;function gp(t){bu!==t&&(bu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){bu===t&&(bu=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(nc(a||n)===null)continue;break}var r=Wa(n);r!==null&&(t.splice(e,3),e-=3,er(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function zi(t){function e(S){return xu(S,t)}ua!==null&&xu(ua,t),oa!==null&&xu(oa,t),ra!==null&&xu(ra,t),Ul.forEach(e),Bl.forEach(e);for(var n=0;n<ca.length;n++){var a=ca[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<ca.length&&(n=ca[0],n.blockedOn===null);)pp(n),n.blockedOn===null&&ca.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[ce]||null;if(typeof r=="function")f||gp(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[ce]||null)y=f.formAction;else if(nc(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),gp(n)}}}function vp(){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 ic(t){this._internalRoot=t}Su.prototype.render=ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=ze();rp(n,a,t,e,null,null)},Su.prototype.unmount=ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;rp(t.current,2,null,t,null,null),eu(),e[Ce]=null}};function Su(t){this._internalRoot=t}Su.prototype.unstable_scheduleHydration=function(t){if(t){var e=Gn();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ca.length&&e!==0&&e<ca[n].priority;n++);ca.splice(n,0,t),n===0&&pp(t)}};var xp=l.version;if(xp!=="19.2.4")throw Error(o(527,xp,"19.2.4"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var Q1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tu.isDisabled&&Tu.supportsFiber)try{on=Tu.inject(Q1),oe=Tu}catch{}}return Yl.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,a="",s=Md,r=Dd,f=wd;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=up(t,1,!1,null,null,n,a,null,s,r,f,vp),t[Ce]=e.current,Hr(t),new ic(e)},Yl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var a=!1,s="",r=Md,f=Dd,y=wd,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=up(t,1,!0,e,n??null,a,s,S,r,f,y,vp),e.context=op(null),n=e.current,a=ze(),a=Fa(a),s=Fn(a),s.callback=null,Pn(n,s,a),n=a,e.current.lanes=n,xa(e,n),pn(e),t[Ce]=e.current,Hr(t),new Su(e)},Yl.version="19.2.4",Yl}var Np;function ex(){if(Np)return uc.exports;Np=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(),uc.exports=tx(),uc.exports}var nx=ex();const TA=Py(nx);const Wy=(...i)=>i.filter((l,u,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===u).join(" ").trim();const ax=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const ix=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,u,o)=>o?o.toUpperCase():u.toLowerCase());const jp=i=>{const l=ix(i);return l.charAt(0).toUpperCase()+l.slice(1)};var lx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const sx=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const ux=U.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:h,...p},g)=>U.createElement("svg",{ref:g,...lx,width:l,height:l,stroke:i,strokeWidth:o?Number(u)*24/Number(l):u,className:Wy("lucide",c),...!d&&!sx(p)&&{"aria-hidden":"true"},...p},[...h.map(([m,v])=>U.createElement(m,v)),...Array.isArray(d)?d:[d]]));const bn=(i,l)=>{const u=U.forwardRef(({className:o,...c},d)=>U.createElement(ux,{ref:d,iconNode:l,className:Wy(`lucide-${ax(jp(i))}`,`lucide-${i}`,o),...c}));return u.displayName=jp(i),u};const ox=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],yn=bn("arrow-right",ox);const rx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ri=bn("check",rx);const cx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fx=bn("chevron-down",cx);const hx=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],dx=bn("clipboard-paste",hx);const mx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Op=bn("external-link",mx);const px=[["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"}]],yx=bn("eye-off",px);const gx=[["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"}]],vx=bn("eye",gx);const xx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vi=bn("loader-circle",xx);const bx=[["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"}]],Sx=bn("mic",bx);const Tx=[["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"}]],Ax=bn("refresh-cw",Tx),Ic=U.createContext({});function tf(i){const l=U.useRef(null);return l.current===null&&(l.current=i()),l.current}const $y=typeof window<"u",Iy=$y?U.useLayoutEffect:U.useEffect,Gu=U.createContext(null);function ef(i,l){i.indexOf(l)===-1&&i.push(l)}function Vu(i,l){const u=i.indexOf(l);u>-1&&i.splice(u,1)}const xn=(i,l,u)=>u>l?l:u<i?i:u;let nf=()=>{};const Yn={},t0=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function e0(i){return typeof i=="object"&&i!==null}const n0=i=>/^0[^.\s]+$/u.test(i);function a0(i){let l;return()=>(l===void 0&&(l=i()),l)}const Ze=i=>i,Ex=(i,l)=>u=>l(i(u)),$l=(...i)=>i.reduce(Ex),kl=(i,l,u)=>{const o=l-i;return o===0?1:(u-i)/o};class af{constructor(){this.subscriptions=[]}add(l){return ef(this.subscriptions,l),()=>Vu(this.subscriptions,l)}notify(l,u,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,u,o);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,u,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ln=i=>i*1e3,Qe=i=>i/1e3;function i0(i,l){return l?i*(1e3/l):0}const l0=(i,l,u)=>(((1-3*u+3*l)*i+(3*u-6*l))*i+3*l)*i,Cx=1e-7,Mx=12;function Dx(i,l,u,o,c){let d,h,p=0;do h=l+(u-l)/2,d=l0(h,o,c)-i,d>0?u=h:l=h;while(Math.abs(d)>Cx&&++p<Mx);return h}function Il(i,l,u,o){if(i===l&&u===o)return Ze;const c=d=>Dx(d,0,1,i,u);return d=>d===0||d===1?d:l0(c(d),l,o)}const s0=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,u0=i=>l=>1-i(1-l),o0=Il(.33,1.53,.69,.99),lf=u0(o0),r0=s0(lf),c0=i=>(i*=2)<1?.5*lf(i):.5*(2-Math.pow(2,-10*(i-1))),sf=i=>1-Math.sin(Math.acos(i)),f0=u0(sf),h0=s0(sf),wx=Il(.42,0,1,1),Nx=Il(0,0,.58,1),d0=Il(.42,0,.58,1),jx=i=>Array.isArray(i)&&typeof i[0]!="number",m0=i=>Array.isArray(i)&&typeof i[0]=="number",Ox={linear:Ze,easeIn:wx,easeInOut:d0,easeOut:Nx,circIn:sf,circInOut:h0,circOut:f0,backIn:lf,backInOut:r0,backOut:o0,anticipate:c0},zx=i=>typeof i=="string",zp=i=>{if(m0(i)){nf(i.length===4);const[l,u,o,c]=i;return Il(l,u,o,c)}else if(zx(i))return Ox[i];return i},Au=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Rx(i,l){let u=new Set,o=new Set,c=!1,d=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(v){h.has(v)&&(m.schedule(v),i()),v(p)}const m={schedule:(v,x=!1,T=!1)=>{const z=T&&c?u:o;return x&&h.add(v),z.has(v)||z.add(v),v},cancel:v=>{o.delete(v),h.delete(v)},process:v=>{if(p=v,c){d=!0;return}c=!0,[u,o]=[o,u],u.forEach(g),u.clear(),c=!1,d&&(d=!1,m.process(v))}};return m}const Vx=40;function p0(i,l){let u=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,h=Au.reduce((G,k)=>(G[k]=Rx(d),G),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:v,update:x,preRender:T,render:N,postRender:z}=h,Y=()=>{const G=Yn.useManualTiming?c.timestamp:performance.now();u=!1,Yn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(G-c.timestamp,Vx),1)),c.timestamp=G,c.isProcessing=!0,p.process(c),g.process(c),m.process(c),v.process(c),x.process(c),T.process(c),N.process(c),z.process(c),c.isProcessing=!1,u&&l&&(o=!1,i(Y))},X=()=>{u=!0,o=!0,c.isProcessing||i(Y)};return{schedule:Au.reduce((G,k)=>{const Z=h[k];return G[k]=(it,J=!1,F=!1)=>(u||X(),Z.schedule(it,J,F)),G},{}),cancel:G=>{for(let k=0;k<Au.length;k++)h[Au[k]].cancel(G)},state:c,steps:h}}const{schedule:zt,cancel:ma,state:le,steps:fc}=p0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ze,!0);let Du;function _x(){Du=void 0}const pe={now:()=>(Du===void 0&&pe.set(le.isProcessing||Yn.useManualTiming?le.timestamp:performance.now()),Du),set:i=>{Du=i,queueMicrotask(_x)}},y0=i=>l=>typeof l=="string"&&l.startsWith(i),g0=y0("--"),Ux=y0("var(--"),uf=i=>Ux(i)?Bx.test(i.split("/*")[0].trim()):!1,Bx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Rp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const Xi={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Jl={...Xi,transform:i=>xn(0,1,i)},Eu={...Xi,default:1},Xl=i=>Math.round(i*1e5)/1e5,of=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Lx(i){return i==null}const Hx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rf=(i,l)=>u=>!!(typeof u=="string"&&Hx.test(u)&&u.startsWith(i)||l&&!Lx(u)&&Object.prototype.hasOwnProperty.call(u,l)),v0=(i,l,u)=>o=>{if(typeof o!="string")return o;const[c,d,h,p]=o.match(of);return{[i]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},Yx=i=>xn(0,255,i),hc={...Xi,transform:i=>Math.round(Yx(i))},Ha={test:rf("rgb","red"),parse:v0("red","green","blue"),transform:({red:i,green:l,blue:u,alpha:o=1})=>"rgba("+hc.transform(i)+", "+hc.transform(l)+", "+hc.transform(u)+", "+Xl(Jl.transform(o))+")"};function qx(i){let l="",u="",o="",c="";return i.length>5?(l=i.substring(1,3),u=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),u=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,u+=u,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(u,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const wc={test:rf("#"),parse:qx,transform:Ha.transform},ts=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),ha=ts("deg"),vn=ts("%"),I=ts("px"),Gx=ts("vh"),Xx=ts("vw"),Vp={...vn,parse:i=>vn.parse(i)/100,transform:i=>vn.transform(i*100)},Ui={test:rf("hsl","hue"),parse:v0("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:u,alpha:o=1})=>"hsla("+Math.round(i)+", "+vn.transform(Xl(l))+", "+vn.transform(Xl(u))+", "+Xl(Jl.transform(o))+")"},Ft={test:i=>Ha.test(i)||wc.test(i)||Ui.test(i),parse:i=>Ha.test(i)?Ha.parse(i):Ui.test(i)?Ui.parse(i):wc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?Ha.transform(i):Ui.transform(i),getAnimatableNone:i=>{const l=Ft.parse(i);return l.alpha=0,Ft.transform(l)}},Kx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qx(i){return isNaN(i)&&typeof i=="string"&&(i.match(of)?.length||0)+(i.match(Kx)?.length||0)>0}const x0="number",b0="color",Zx="var",kx="var(",_p="${}",Jx=/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 Fl(i){const l=i.toString(),u=[],o={color:[],number:[],var:[]},c=[];let d=0;const p=l.replace(Jx,g=>(Ft.test(g)?(o.color.push(d),c.push(b0),u.push(Ft.parse(g))):g.startsWith(kx)?(o.var.push(d),c.push(Zx),u.push(g)):(o.number.push(d),c.push(x0),u.push(parseFloat(g))),++d,_p)).split(_p);return{values:u,split:p,indexes:o,types:c}}function S0(i){return Fl(i).values}function T0(i){const{split:l,types:u}=Fl(i),o=l.length;return c=>{let d="";for(let h=0;h<o;h++)if(d+=l[h],c[h]!==void 0){const p=u[h];p===x0?d+=Xl(c[h]):p===b0?d+=Ft.transform(c[h]):d+=c[h]}return d}}const Fx=i=>typeof i=="number"?0:Ft.test(i)?Ft.getAnimatableNone(i):i;function Px(i){const l=S0(i);return T0(i)(l.map(Fx))}const sn={test:Qx,parse:S0,createTransformer:T0,getAnimatableNone:Px};function dc(i,l,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?i+(l-i)*6*u:u<1/2?l:u<2/3?i+(l-i)*(2/3-u)*6:i}function Wx({hue:i,saturation:l,lightness:u,alpha:o}){i/=360,l/=100,u/=100;let c=0,d=0,h=0;if(!l)c=d=h=u;else{const p=u<.5?u*(1+l):u+l-u*l,g=2*u-p;c=dc(g,p,i+1/3),d=dc(g,p,i),h=dc(g,p,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function _u(i,l){return u=>u>0?l:i}const Lt=(i,l,u)=>i+(l-i)*u,mc=(i,l,u)=>{const o=i*i,c=u*(l*l-o)+o;return c<0?0:Math.sqrt(c)},$x=[wc,Ha,Ui],Ix=i=>$x.find(l=>l.test(i));function Up(i){const l=Ix(i);if(!l)return!1;let u=l.parse(i);return l===Ui&&(u=Wx(u)),u}const Bp=(i,l)=>{const u=Up(i),o=Up(l);if(!u||!o)return _u(i,l);const c={...u};return d=>(c.red=mc(u.red,o.red,d),c.green=mc(u.green,o.green,d),c.blue=mc(u.blue,o.blue,d),c.alpha=Lt(u.alpha,o.alpha,d),Ha.transform(c))},Nc=new Set(["none","hidden"]);function tb(i,l){return Nc.has(i)?u=>u<=0?i:l:u=>u>=1?l:i}function eb(i,l){return u=>Lt(i,l,u)}function cf(i){return typeof i=="number"?eb:typeof i=="string"?uf(i)?_u:Ft.test(i)?Bp:ib:Array.isArray(i)?A0:typeof i=="object"?Ft.test(i)?Bp:nb:_u}function A0(i,l){const u=[...i],o=u.length,c=i.map((d,h)=>cf(d)(d,l[h]));return d=>{for(let h=0;h<o;h++)u[h]=c[h](d);return u}}function nb(i,l){const u={...i,...l},o={};for(const c in u)i[c]!==void 0&&l[c]!==void 0&&(o[c]=cf(i[c])(i[c],l[c]));return c=>{for(const d in o)u[d]=o[d](c);return u}}function ab(i,l){const u=[],o={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][o[d]],p=i.values[h]??0;u[c]=p,o[d]++}return u}const ib=(i,l)=>{const u=sn.createTransformer(l),o=Fl(i),c=Fl(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Nc.has(i)&&!c.values.length||Nc.has(l)&&!o.values.length?tb(i,l):$l(A0(ab(o,c),c.values),u):_u(i,l)};function E0(i,l,u){return typeof i=="number"&&typeof l=="number"&&typeof u=="number"?Lt(i,l,u):cf(i)(i,l)}const lb=i=>{const l=({timestamp:u})=>i(u);return{start:(u=!0)=>zt.update(l,u),stop:()=>ma(l),now:()=>le.isProcessing?le.timestamp:pe.now()}},C0=(i,l,u=10)=>{let o="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)o+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Uu=2e4;function ff(i){let l=0;const u=50;let o=i.next(l);for(;!o.done&&l<Uu;)l+=u,o=i.next(l);return l>=Uu?1/0:l}function sb(i,l=100,u){const o=u({...i,keyframes:[0,l]}),c=Math.min(ff(o),Uu);return{type:"keyframes",ease:d=>o.next(c*d).value/l,duration:Qe(c)}}const ub=5;function M0(i,l,u){const o=Math.max(l-ub,0);return i0(u-i(o),l-o)}const qt={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},pc=.001;function ob({duration:i=qt.duration,bounce:l=qt.bounce,velocity:u=qt.velocity,mass:o=qt.mass}){let c,d,h=1-l;h=xn(qt.minDamping,qt.maxDamping,h),i=xn(qt.minDuration,qt.maxDuration,Qe(i)),h<1?(c=m=>{const v=m*h,x=v*i,T=v-u,N=jc(m,h),z=Math.exp(-x);return pc-T/N*z},d=m=>{const x=m*h*i,T=x*u+u,N=Math.pow(h,2)*Math.pow(m,2)*i,z=Math.exp(-x),Y=jc(Math.pow(m,2),h);return(-c(m)+pc>0?-1:1)*((T-N)*z)/Y}):(c=m=>{const v=Math.exp(-m*i),x=(m-u)*i+1;return-pc+v*x},d=m=>{const v=Math.exp(-m*i),x=(u-m)*(i*i);return v*x});const p=5/i,g=cb(c,d,p);if(i=ln(i),isNaN(g))return{stiffness:qt.stiffness,damping:qt.damping,duration:i};{const m=Math.pow(g,2)*o;return{stiffness:m,damping:h*2*Math.sqrt(o*m),duration:i}}}const rb=12;function cb(i,l,u){let o=u;for(let c=1;c<rb;c++)o=o-i(o)/l(o);return o}function jc(i,l){return i*Math.sqrt(1-l*l)}const fb=["duration","bounce"],hb=["stiffness","damping","mass"];function Lp(i,l){return l.some(u=>i[u]!==void 0)}function db(i){let l={velocity:qt.velocity,stiffness:qt.stiffness,damping:qt.damping,mass:qt.mass,isResolvedFromDuration:!1,...i};if(!Lp(i,hb)&&Lp(i,fb))if(l.velocity=0,i.visualDuration){const u=i.visualDuration,o=2*Math.PI/(u*1.2),c=o*o,d=2*xn(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:qt.mass,stiffness:c,damping:d}}else{const u=ob({...i,velocity:0});l={...l,...u,mass:qt.mass},l.isResolvedFromDuration=!0}return l}function Bu(i=qt.visualDuration,l=qt.bounce){const u=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=u;const d=u.keyframes[0],h=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:v,duration:x,velocity:T,isResolvedFromDuration:N}=db({...u,velocity:-Qe(u.velocity||0)}),z=T||0,Y=m/(2*Math.sqrt(g*v)),X=h-d,q=Qe(Math.sqrt(g/v)),K=Math.abs(X)<5;o||(o=K?qt.restSpeed.granular:qt.restSpeed.default),c||(c=K?qt.restDelta.granular:qt.restDelta.default);let G;if(Y<1){const Z=jc(q,Y);G=it=>{const J=Math.exp(-Y*q*it);return h-J*((z+Y*q*X)/Z*Math.sin(Z*it)+X*Math.cos(Z*it))}}else if(Y===1)G=Z=>h-Math.exp(-q*Z)*(X+(z+q*X)*Z);else{const Z=q*Math.sqrt(Y*Y-1);G=it=>{const J=Math.exp(-Y*q*it),F=Math.min(Z*it,300);return h-J*((z+Y*q*X)*Math.sinh(F)+Z*X*Math.cosh(F))/Z}}const k={calculatedDuration:N&&x||null,next:Z=>{const it=G(Z);if(N)p.done=Z>=x;else{let J=Z===0?z:0;Y<1&&(J=Z===0?ln(z):M0(G,Z,it));const F=Math.abs(J)<=o,lt=Math.abs(h-it)<=c;p.done=F&&lt}return p.value=p.done?h:it,p},toString:()=>{const Z=Math.min(ff(k),Uu),it=C0(J=>k.next(Z*J).value,Z,30);return Z+"ms "+it},toTransition:()=>{}};return k}Bu.applyToOptions=i=>{const l=sb(i,100,Bu);return i.ease=l.ease,i.duration=ln(l.duration),i.type="keyframes",i};function Oc({keyframes:i,velocity:l=0,power:u=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:p,max:g,restDelta:m=.5,restSpeed:v}){const x=i[0],T={done:!1,value:x},N=F=>p!==void 0&&F<p||g!==void 0&&F>g,z=F=>p===void 0?g:g===void 0||Math.abs(p-F)<Math.abs(g-F)?p:g;let Y=u*l;const X=x+Y,q=h===void 0?X:h(X);q!==X&&(Y=q-x);const K=F=>-Y*Math.exp(-F/o),G=F=>q+K(F),k=F=>{const lt=K(F),xt=G(F);T.done=Math.abs(lt)<=m,T.value=T.done?q:xt};let Z,it;const J=F=>{N(T.value)&&(Z=F,it=Bu({keyframes:[T.value,z(T.value)],velocity:M0(G,F,T.value),damping:c,stiffness:d,restDelta:m,restSpeed:v}))};return J(0),{calculatedDuration:null,next:F=>{let lt=!1;return!it&&Z===void 0&&(lt=!0,k(F),J(F)),Z!==void 0&&F>=Z?it.next(F-Z):(!lt&&k(F),T)}}}function mb(i,l,u){const o=[],c=u||Yn.mix||E0,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]||Ze:l;p=$l(g,p)}o.push(p)}return o}function pb(i,l,{clamp:u=!0,ease:o,mixer:c}={}){const d=i.length;if(nf(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=mb(l,o,c),g=p.length,m=v=>{if(h&&v<i[0])return l[0];let x=0;if(g>1)for(;x<i.length-2&&!(v<i[x+1]);x++);const T=kl(i[x],i[x+1],v);return p[x](T)};return u?v=>m(xn(i[0],i[d-1],v)):m}function yb(i,l){const u=i[i.length-1];for(let o=1;o<=l;o++){const c=kl(0,l,o);i.push(Lt(u,1,c))}}function gb(i){const l=[0];return yb(l,i.length-1),l}function vb(i,l){return i.map(u=>u*l)}function xb(i,l){return i.map(()=>l||d0).splice(0,i.length-1)}function Kl({duration:i=300,keyframes:l,times:u,ease:o="easeInOut"}){const c=jx(o)?o.map(zp):zp(o),d={done:!1,value:l[0]},h=vb(u&&u.length===l.length?u:gb(l),i),p=pb(h,l,{ease:Array.isArray(c)?c:xb(l,c)});return{calculatedDuration:i,next:g=>(d.value=p(g),d.done=g>=i,d)}}const bb=i=>i!==null;function hf(i,{repeat:l,repeatType:u="loop"},o,c=1){const d=i.filter(bb),p=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!p||o===void 0?d[p]:o}const Sb={decay:Oc,inertia:Oc,tween:Kl,keyframes:Kl,spring:Bu};function D0(i){typeof i.type=="string"&&(i.type=Sb[i.type])}class df{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,u){return this.finished.then(l,u)}}const Tb=i=>i/100;class mf extends df{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:u}=this.options;u&&u.updatedAt!==pe.now()&&this.tick(pe.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;D0(l);const{type:u=Kl,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:p}=l;const g=u||Kl;g!==Kl&&typeof p[0]!="number"&&(this.mixKeyframes=$l(Tb,E0(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=ff(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=m}updateTime(l){const u=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(l,u=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:m=0,keyframes:v,repeat:x,repeatType:T,repeatDelay:N,type:z,onUpdate: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)),u?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,k=o;if(x){const F=Math.min(this.currentTime,c)/p;let lt=Math.floor(F),xt=F%1;!xt&&F>=1&&(xt=1),xt===1&&lt--,lt=Math.min(lt,x+1),lt%2&&(T==="reverse"?(xt=1-xt,N&&(xt-=N/p)):T==="mirror"&&(k=h)),G=xn(0,1,xt)*p}const Z=K?{done:!1,value:v[0]}:k.next(G);d&&(Z.value=d(Z.value));let{done:it}=Z;!K&&g!==null&&(it=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&it);return J&&z!==Oc&&(Z.value=hf(v,this.options,X,this.speed)),Y&&Y(Z.value),J&&this.finish(),Z}then(l,u){return this.finished.then(l,u)}get duration(){return Qe(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Qe(l)}get time(){return Qe(this.currentTime)}set time(l){l=ln(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(pe.now());const u=this.playbackSpeed!==l;this.playbackSpeed=l,u&&(this.time=Qe(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=lb,startTime:u}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=u??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(pe.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 Ab(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const Ya=i=>i*180/Math.PI,zc=i=>{const l=Ya(Math.atan2(i[1],i[0]));return Rc(l)},Eb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:zc,rotateZ:zc,skewX:i=>Ya(Math.atan(i[1])),skewY:i=>Ya(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},Rc=i=>(i=i%360,i<0&&(i+=360),i),Hp=zc,Yp=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),qp=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Cb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yp,scaleY:qp,scale:i=>(Yp(i)+qp(i))/2,rotateX:i=>Rc(Ya(Math.atan2(i[6],i[5]))),rotateY:i=>Rc(Ya(Math.atan2(-i[2],i[0]))),rotateZ:Hp,rotate:Hp,skewX:i=>Ya(Math.atan(i[4])),skewY:i=>Ya(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function Vc(i){return i.includes("scale")?1:0}function _c(i,l){if(!i||i==="none")return Vc(l);const u=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(u)o=Cb,c=u;else{const p=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Eb,c=p}if(!c)return Vc(l);const d=o[l],h=c[1].split(",").map(Db);return typeof d=="function"?d(h):h[d]}const Mb=(i,l)=>{const{transform:u="none"}=getComputedStyle(i);return _c(u,l)};function Db(i){return parseFloat(i.trim())}const Ki=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qi=new Set(Ki),Gp=i=>i===Xi||i===I,wb=new Set(["x","y","z"]),Nb=Ki.filter(i=>!wb.has(i));function jb(i){const l=[];return Nb.forEach(u=>{const o=i.getValue(u);o!==void 0&&(l.push([u,o.get()]),o.set(u.startsWith("scale")?1:0))}),l}const da={width:({x:i},{paddingLeft:l="0",paddingRight:u="0"})=>i.max-i.min-parseFloat(l)-parseFloat(u),height:({y:i},{paddingTop:l="0",paddingBottom:u="0"})=>i.max-i.min-parseFloat(l)-parseFloat(u),top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>_c(l,"x"),y:(i,{transform:l})=>_c(l,"y")};da.translateX=da.x;da.translateY=da.y;const qa=new Set;let Uc=!1,Bc=!1,Lc=!1;function w0(){if(Bc){const i=Array.from(qa).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),u=new Map;l.forEach(o=>{const c=jb(o);c.length&&(u.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=u.get(o);c&&c.forEach(([d,h])=>{o.getValue(d)?.set(h)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Bc=!1,Uc=!1,qa.forEach(i=>i.complete(Lc)),qa.clear()}function N0(){qa.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(Bc=!0)})}function Ob(){Lc=!0,N0(),w0(),Lc=!1}class pf{constructor(l,u,o,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=u,this.name=o,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(qa.add(this),Uc||(Uc=!0,zt.read(N0),zt.resolveKeyframes(w0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:u,element:o,motionValue:c}=this;if(l[0]===null){const d=c?.get(),h=l[l.length-1];if(d!==void 0)l[0]=d;else if(o&&u){const p=o.readValue(u,h);p!=null&&(l[0]=p)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}Ab(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),qa.delete(this)}cancel(){this.state==="scheduled"&&(qa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const zb=i=>i.startsWith("--");function Rb(i,l,u){zb(l)?i.style.setProperty(l,u):i.style[l]=u}const Vb={};function j0(i,l){const u=a0(i);return()=>Vb[l]??u()}const _b=j0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),O0=j0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Gl=([i,l,u,o])=>`cubic-bezier(${i}, ${l}, ${u}, ${o})`,Xp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gl([0,.65,.55,1]),circOut:Gl([.55,0,1,.45]),backIn:Gl([.31,.01,.66,-.59]),backOut:Gl([.33,1.53,.69,.99])};function z0(i,l){if(i)return typeof i=="function"?O0()?C0(i,l):"ease-out":m0(i)?Gl(i):Array.isArray(i)?i.map(u=>z0(u,l)||Xp.easeOut):Xp[i]}function Ub(i,l,u,{delay:o=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:p="easeOut",times:g}={},m=void 0){const v={[l]:u};g&&(v.offset=g);const x=z0(p,c);Array.isArray(x)&&(v.easing=x);const T={delay:o,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return m&&(T.pseudoElement=m),i.animate(v,T)}function R0(i){return typeof i=="function"&&"applyToOptions"in i}function Bb({type:i,...l}){return R0(i)&&O0()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class V0 extends df{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:u,name:o,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:p,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,nf(typeof l.type!="string");const m=Bb(l);this.animation=Ub(u,o,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=hf(c,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(v):Rb(u,o,v),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const l=this.options?.element;!this.isPseudoElement&&l?.isConnected&&this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return Qe(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Qe(l)}get time(){return Qe(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ln(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,observe:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&_b()?(this.animation.timeline=l,Ze):u(this)}}const _0={anticipate:c0,backInOut:r0,circInOut:h0};function Lb(i){return i in _0}function Hb(i){typeof i.ease=="string"&&Lb(i.ease)&&(i.ease=_0[i.ease])}const yc=10;class Yb extends V0{constructor(l){Hb(l),D0(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:u,onUpdate:o,onComplete:c,element:d,...h}=this.options;if(!u)return;if(l!==void 0){u.set(l);return}const p=new mf({...h,autoplay:!1}),g=Math.max(yc,pe.now()-this.startTime),m=xn(0,yc,g-yc);u.setWithVelocity(p.sample(Math.max(0,g-m)).value,p.sample(g).value,m),p.stop()}}const Kp=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(sn.test(i)||i==="0")&&!i.startsWith("url("));function qb(i){const l=i[0];if(i.length===1)return!0;for(let u=0;u<i.length;u++)if(i[u]!==l)return!0}function Gb(i,l,u,o){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=Kp(c,l),p=Kp(d,l);return!h||!p?!1:qb(i)||(u==="spring"||R0(u))&&o}function Hc(i){i.duration=0,i.type="keyframes"}const Xb=new Set(["opacity","clipPath","filter","transform"]),Kb=a0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qb(i){const{motionValue:l,name:u,repeatDelay:o,repeatType:c,damping:d,type:h}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=l.owner.getProps();return Kb()&&u&&Xb.has(u)&&(u!=="transform"||!m)&&!g&&!o&&c!=="mirror"&&d!==0&&h!=="inertia"}const Zb=40;class kb extends df{constructor({autoplay:l=!0,delay:u=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:p,name:g,motionValue:m,element:v,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=pe.now();const T={autoplay:l,delay:u,type:o,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:m,element:v,...x},N=v?.KeyframeResolver||pf;this.keyframeResolver=new N(p,(z,Y,X)=>this.onKeyframesResolved(z,Y,T,!X),g,m,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,u,o,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:p,delay:g,isHandoff:m,onUpdate:v}=o;this.resolvedAt=pe.now(),Gb(l,d,h,p)||((Yn.instantAnimations||!g)&&v?.(hf(l,o,u)),l[0]=l[l.length-1],Hc(o),o.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Zb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...o,keyframes:l},N=!m&&Qb(T),z=T.motionValue?.owner?.current,Y=N?new Yb({...T,element:z}):new mf(T);Y.finished.then(()=>{this.notifyFinished()}).catch(Ze),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,u){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ob()),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 U0(i,l,u,o=0,c=1){const d=Array.from(i).sort((m,v)=>m.sortNodePosition(v)).indexOf(l),h=i.size,p=(h-1)*o;return typeof u=="function"?u(d,h):c===1?d*o:p-d*o}const Jb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fb(i){const l=Jb.exec(i);if(!l)return[,];const[,u,o,c]=l;return[`--${u??o}`,c]}function B0(i,l,u=1){const[o,c]=Fb(i);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const h=d.trim();return t0(h)?parseFloat(h):h}return uf(c)?B0(c,l,u+1):c}const Pb={type:"spring",stiffness:500,damping:25,restSpeed:10},Wb=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),$b={type:"keyframes",duration:.8},Ib={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tS=(i,{keyframes:l})=>l.length>2?$b:Qi.has(i)?i.startsWith("scale")?Wb(l[1]):Pb:Ib,eS=i=>i!==null;function nS(i,{repeat:l,repeatType:u="loop"},o){const c=i.filter(eS),d=l&&u!=="loop"&&l%2===1?0:c.length-1;return c[d]}function L0(i,l){if(i?.inherit&&l){const{inherit:u,...o}=i;return{...l,...o}}return i}function yf(i,l){const u=i?.[l]??i?.default??i;return u!==i?L0(u,i):u}function aS({when:i,delay:l,delayChildren:u,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:p,from:g,elapsed:m,...v}){return!!Object.keys(v).length}const gf=(i,l,u,o={},c,d)=>h=>{const p=yf(o,i)||{},g=p.delay||o.delay||0;let{elapsed:m=0}=o;m=m-ln(g);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:l.getVelocity(),...p,delay:-m,onUpdate:T=>{l.set(T),p.onUpdate&&p.onUpdate(T)},onComplete:()=>{h(),p.onComplete&&p.onComplete()},name:i,motionValue:l,element:d?void 0:c};aS(p)||Object.assign(v,tS(i,v)),v.duration&&(v.duration=ln(v.duration)),v.repeatDelay&&(v.repeatDelay=ln(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Hc(v),v.delay===0&&(x=!0)),(Yn.instantAnimations||Yn.skipAnimations||c?.shouldSkipAnimations)&&(x=!0,Hc(v),v.delay=0),v.allowFlatten=!p.type&&!p.ease,x&&!d&&l.get()!==void 0){const T=nS(v.keyframes,p);if(T!==void 0){zt.update(()=>{v.onUpdate(T),v.onComplete()});return}}return p.isSync?new mf(v):new kb(v)};function Qp(i){const l=[{},{}];return i?.values.forEach((u,o)=>{l[0][o]=u.get(),l[1][o]=u.getVelocity()}),l}function vf(i,l,u,o){if(typeof l=="function"){const[c,d]=Qp(o);l=l(u!==void 0?u:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=Qp(o);l=l(u!==void 0?u:i.custom,c,d)}return l}function qi(i,l,u){const o=i.getProps();return vf(o,l,u!==void 0?u:o.custom,i)}const H0=new Set(["width","height","top","left","right","bottom",...Ki]),Zp=30,iS=i=>!isNaN(parseFloat(i));class lS{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=pe.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=u.owner}setCurrent(l){this.current=l,this.updatedAt=pe.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=iS(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,u){this.events[l]||(this.events[l]=new af);const o=this.events[l].add(u);return l==="change"?()=>{o(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,u){this.passiveEffect=l,this.stopPassiveEffect=u}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,u,o){this.set(u),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,u=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=pe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Zp)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,Zp);return i0(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(l){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=l(u),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Gi(i,l){return new lS(i,l)}const Yc=i=>Array.isArray(i);function sS(i,l,u){i.hasValue(l)?i.getValue(l).set(u):i.addValue(l,Gi(u))}function uS(i){return Yc(i)?i[i.length-1]||0:i}function oS(i,l){const u=qi(i,l);let{transitionEnd:o={},transition:c={},...d}=u||{};d={...d,...o};for(const h in d){const p=uS(d[h]);sS(i,h,p)}}const de=i=>!!(i&&i.getVelocity);function rS(i){return!!(de(i)&&i.add)}function qc(i,l){const u=i.getValue("willChange");if(rS(u))return u.add(l);if(!u&&Yn.WillChange){const o=new Yn.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function xf(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const cS="framerAppearId",Y0="data-"+xf(cS);function q0(i){return i.props[Y0]}function fS({protectedKeys:i,needsAnimating:l},u){const o=i.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,o}function G0(i,l,{delay:u=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:h,...p}=l;const g=i.getDefaultTransition();d=d?L0(d,g):g;const m=d?.reduceMotion;o&&(d=o);const v=[],x=c&&i.animationState&&i.animationState.getState()[c];for(const T in p){const N=i.getValue(T,i.latestValues[T]??null),z=p[T];if(z===void 0||x&&fS(x,T))continue;const Y={delay:u,...yf(d||{},T)},X=N.get();if(X!==void 0&&!N.isAnimating&&!Array.isArray(z)&&z===X&&!Y.velocity)continue;let q=!1;if(window.MotionHandoffAnimation){const k=q0(i);if(k){const Z=window.MotionHandoffAnimation(k,T,zt);Z!==null&&(Y.startTime=Z,q=!0)}}qc(i,T);const K=m??i.shouldReduceMotion;N.start(gf(T,N,z,K&&H0.has(T)?{type:!1}:Y,i,q));const G=N.animation;G&&v.push(G)}if(h){const T=()=>zt.update(()=>{h&&oS(i,h)});v.length?Promise.all(v).then(T):T()}return v}function Gc(i,l,u={}){const o=qi(i,l,u.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};u.transitionOverride&&(c=u.transitionOverride);const d=o?()=>Promise.all(G0(i,o,u)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:x}=c;return hS(i,l,g,m,v,x,u)}:()=>Promise.resolve(),{when:p}=c;if(p){const[g,m]=p==="beforeChildren"?[d,h]:[h,d];return g().then(()=>m())}else return Promise.all([d(),h(u.delay)])}function hS(i,l,u=0,o=0,c=0,d=1,h){const p=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),p.push(Gc(g,l,{...h,delay:u+(typeof o=="function"?0:o)+U0(i.variantChildren,g,o,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(p)}function dS(i,l,u={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(d=>Gc(i,d,u));o=Promise.all(c)}else if(typeof l=="string")o=Gc(i,l,u);else{const c=typeof l=="function"?qi(i,l,u.custom):l;o=Promise.all(G0(i,c,u))}return o.then(()=>{i.notify("AnimationComplete",l)})}const mS={test:i=>i==="auto",parse:i=>i},X0=i=>l=>l.test(i),K0=[Xi,I,vn,ha,Xx,Gx,mS],kp=i=>K0.find(X0(i));function pS(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||n0(i):!0}const yS=new Set(["brightness","contrast","saturate","opacity"]);function gS(i){const[l,u]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=u.match(of)||[];if(!o)return i;const c=u.replace(o,"");let d=yS.has(l)?1:0;return o!==u&&(d*=100),l+"("+d+c+")"}const vS=/\b([a-z-]*)\(.*?\)/gu,Xc={...sn,getAnimatableNone:i=>{const l=i.match(vS);return l?l.map(gS).join(" "):i}},Kc={...sn,getAnimatableNone:i=>{const l=sn.parse(i);return sn.createTransformer(i)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Jp={...Xi,transform:Math.round},xS={rotate:ha,rotateX:ha,rotateY:ha,rotateZ:ha,scale:Eu,scaleX:Eu,scaleY:Eu,scaleZ:Eu,skew:ha,skewX:ha,skewY:ha,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Jl,originX:Vp,originY:Vp,originZ:I},bf={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,...xS,zIndex:Jp,fillOpacity:Jl,strokeOpacity:Jl,numOctaves:Jp},bS={...bf,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:Xc,WebkitFilter:Xc,mask:Kc,WebkitMask:Kc},Q0=i=>bS[i],SS=new Set([Xc,Kc]);function Z0(i,l){let u=Q0(i);return SS.has(u)||(u=sn),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const TS=new Set(["auto","none","0"]);function AS(i,l,u){let o=0,c;for(;o<i.length&&!c;){const d=i[o];typeof d=="string"&&!TS.has(d)&&Fl(d).values.length&&(c=i[o]),o++}if(c&&u)for(const d of l)i[d]=Z0(u,c)}class ES extends pf{constructor(l,u,o,c,d){super(l,u,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:u,name:o}=this;if(!u||!u.current)return;super.readKeyframes();for(let v=0;v<l.length;v++){let x=l[v];if(typeof x=="string"&&(x=x.trim(),uf(x))){const T=B0(x,u.current);T!==void 0&&(l[v]=T),v===l.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!H0.has(o)||l.length!==2)return;const[c,d]=l,h=kp(c),p=kp(d),g=Rp(c),m=Rp(d);if(g!==m&&da[o]){this.needsMeasurement=!0;return}if(h!==p)if(Gp(h)&&Gp(p))for(let v=0;v<l.length;v++){const x=l[v];typeof x=="string"&&(l[v]=parseFloat(x))}else da[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,o=[];for(let c=0;c<l.length;c++)(l[c]===null||pS(l[c]))&&o.push(c);o.length&&AS(l,o,u)}measureInitialState(){const{element:l,unresolvedKeyframes:u,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=da[o](l.measureViewportBox(),window.getComputedStyle(l.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&l.getValue(o,c).jump(c,!1)}measureEndState(){const{element:l,name:u,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const c=l.getValue(u);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,h=o[d];o[d]=da[u](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,g])=>{l.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const CS=new Set(["opacity","clipPath","filter","transform"]);function k0(i,l,u){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let o=document;const c=u?.[i]??o.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(o=>o!=null)}const J0=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function Qc(i){return e0(i)&&"offsetHeight"in i}const{schedule:Sf}=p0(queueMicrotask,!1),an={x:!1,y:!1};function F0(){return an.x||an.y}function MS(i){return i==="x"||i==="y"?an[i]?null:(an[i]=!0,()=>{an[i]=!1}):an.x||an.y?null:(an.x=an.y=!0,()=>{an.x=an.y=!1})}function P0(i,l){const u=k0(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[u,c,()=>o.abort()]}function DS(i){return!(i.pointerType==="touch"||F0())}function wS(i,l,u={}){const[o,c,d]=P0(i,u);return o.forEach(h=>{let p=!1,g=!1,m;const v=()=>{h.removeEventListener("pointerleave",z)},x=X=>{m&&(m(X),m=void 0),v()},T=X=>{p=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,x(X))},N=()=>{p=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},z=X=>{if(X.pointerType!=="touch"){if(p){g=!0;return}x(X)}},Y=X=>{if(!DS(X))return;g=!1;const q=l(h,X);typeof q=="function"&&(m=q,h.addEventListener("pointerleave",z,c))};h.addEventListener("pointerenter",Y,c),h.addEventListener("pointerdown",N,c)}),d}const W0=(i,l)=>l?i===l?!0:W0(i,l.parentElement):!1,Tf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,NS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jS(i){return NS.has(i.tagName)||i.isContentEditable===!0}const OS=new Set(["INPUT","SELECT","TEXTAREA"]);function zS(i){return OS.has(i.tagName)||i.isContentEditable===!0}const wu=new WeakSet;function Fp(i){return l=>{l.key==="Enter"&&i(l)}}function gc(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const RS=(i,l)=>{const u=i.currentTarget;if(!u)return;const o=Fp(()=>{if(wu.has(u))return;gc(u,"down");const c=Fp(()=>{gc(u,"up")}),d=()=>gc(u,"cancel");u.addEventListener("keyup",c,l),u.addEventListener("blur",d,l)});u.addEventListener("keydown",o,l),u.addEventListener("blur",()=>u.removeEventListener("keydown",o),l)};function Pp(i){return Tf(i)&&!F0()}const Wp=new WeakSet;function VS(i,l,u={}){const[o,c,d]=P0(i,u),h=p=>{const g=p.currentTarget;if(!Pp(p)||Wp.has(p))return;wu.add(g),u.stopPropagation&&Wp.add(p);const m=l(g,p),v=(N,z)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",T),wu.has(g)&&wu.delete(g),Pp(N)&&typeof m=="function"&&m(N,{success:z})},x=N=>{v(N,g===window||g===document||u.useGlobalTarget||W0(g,N.target))},T=N=>{v(N,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",T,c)};return o.forEach(p=>{(u.useGlobalTarget?window:p).addEventListener("pointerdown",h,c),Qc(p)&&(p.addEventListener("focus",m=>RS(m,c)),!jS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function Af(i){return e0(i)&&"ownerSVGElement"in i}const Nu=new WeakMap;let ju;const $0=(i,l,u)=>(o,c)=>c&&c[0]?c[0][i+"Size"]:Af(o)&&"getBBox"in o?o.getBBox()[l]:o[u],_S=$0("inline","width","offsetWidth"),US=$0("block","height","offsetHeight");function BS({target:i,borderBoxSize:l}){Nu.get(i)?.forEach(u=>{u(i,{get width(){return _S(i,l)},get height(){return US(i,l)}})})}function LS(i){i.forEach(BS)}function HS(){typeof ResizeObserver>"u"||(ju=new ResizeObserver(LS))}function YS(i,l){ju||HS();const u=k0(i);return u.forEach(o=>{let c=Nu.get(o);c||(c=new Set,Nu.set(o,c)),c.add(l),ju?.observe(o)}),()=>{u.forEach(o=>{const c=Nu.get(o);c?.delete(l),c?.size||ju?.unobserve(o)})}}const Ou=new Set;let Bi;function qS(){Bi=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ou.forEach(l=>l(i))},window.addEventListener("resize",Bi)}function GS(i){return Ou.add(i),Bi||qS(),()=>{Ou.delete(i),!Ou.size&&typeof Bi=="function"&&(window.removeEventListener("resize",Bi),Bi=void 0)}}function $p(i,l){return typeof i=="function"?GS(i):YS(i,l)}function XS(i){return Af(i)&&i.tagName==="svg"}const KS=[...K0,Ft,sn],QS=i=>KS.find(X0(i)),Ip=()=>({translate:0,scale:1,origin:0,originPoint:0}),Li=()=>({x:Ip(),y:Ip()}),ty=()=>({min:0,max:0}),$t=()=>({x:ty(),y:ty()}),ZS=new WeakMap;function Xu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Pl(i){return typeof i=="string"||Array.isArray(i)}const Ef=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cf=["initial",...Ef];function Ku(i){return Xu(i.animate)||Cf.some(l=>Pl(i[l]))}function I0(i){return!!(Ku(i)||i.variants)}function kS(i,l,u){for(const o in l){const c=l[o],d=u[o];if(de(c))i.addValue(o,c);else if(de(d))i.addValue(o,Gi(c,{owner:i}));else if(d!==c)if(i.hasValue(o)){const h=i.getValue(o);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(o);i.addValue(o,Gi(h!==void 0?h:c,{owner:i}))}}for(const o in u)l[o]===void 0&&i.removeValue(o);return l}const Zc={current:null},tg={current:!1},JS=typeof window<"u";function FS(){if(tg.current=!0,!!JS)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Zc.current=i.matches;i.addEventListener("change",l),l()}else Zc.current=!1}const ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Lu={};function eg(i){Lu=i}function PS(){return Lu}class WS{scrapeMotionValuesFromProps(l,u,o){return{}}constructor({parent:l,props:u,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:h,visualState:p},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=pf,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=pe.now();this.renderScheduledAt<N&&(this.renderScheduledAt=N,zt.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=u.initial?{...m}:{},this.renderState=v,this.parent=l,this.props=u,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=Ku(u),this.isVariantNode=I0(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:x,...T}=this.scrapeMotionValuesFromProps(u,{},this);for(const N in T){const z=T[N];m[N]!==void 0&&de(z)&&z.set(m[N])}}mount(l){if(this.hasBeenMounted)for(const u in this.initialValues)this.values.get(u)?.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=l,ZS.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,o)=>this.bindToMotionValue(o,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(tg.current||FS(),this.shouldReduceMotion=Zc.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(),ma(this.notifyUpdate),ma(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const u=this.features[l];u&&(u.unmount(),u.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,u){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),u.accelerate&&CS.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:g,ease:m,duration:v}=u.accelerate,x=new V0({element:this.current,name:l,keyframes:p,times:g,ease:m,duration:ln(v)}),T=h(x);this.valueSubscriptions.set(l,()=>{T(),x.cancel()});return}const o=Qi.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&zt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,u)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),u.owner&&u.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in Lu){const u=Lu[l];if(!u)continue;const{isEnabled:o,Feature:c}=u;if(!this.features[l]&&c&&o(this.props)&&(this.features[l]=new c(this)),this.features[l]){const d=this.features[l];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$t()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,u){this.latestValues[l]=u}update(l,u){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let o=0;o<ey.length;o++){const c=ey[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,h=l[d];h&&(this.propEventSubscriptions[c]=this.on(c,h))}this.prevMotionValues=kS(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(l){const u=this.getClosestVariantNode();if(u)return u.variantChildren&&u.variantChildren.add(l),()=>u.variantChildren.delete(l)}addValue(l,u){const o=this.values.get(l);u!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,u),this.values.set(l,u),this.latestValues[l]=u.get())}removeValue(l){this.values.delete(l);const u=this.valueSubscriptions.get(l);u&&(u(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,u){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&u!==void 0&&(o=Gi(u===null?void 0:u,{owner:this}),this.addValue(l,o)),o}readValue(l,u){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(t0(o)||n0(o))?o=parseFloat(o):!QS(o)&&sn.test(u)&&(o=Z0(l,u)),this.setBaseTarget(l,de(o)?o.get():o)),de(o)?o.get():o}setBaseTarget(l,u){this.baseTarget[l]=u}getBaseTarget(l){const{initial:u}=this.props;let o;if(typeof u=="string"||typeof u=="object"){const d=vf(this.props,u,this.presenceContext?.custom);d&&(o=d[l])}if(u&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!de(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,u){return this.events[l]||(this.events[l]=new af),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){Sf.render(this.render)}}class ng extends WS{constructor(){super(...arguments),this.KeyframeResolver=ES}sortInstanceNodePosition(l,u){return l.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(l,u){const o=l.style;return o?o[u]:void 0}removeValueFromRenderState(l,{vars:u,style:o}){delete u[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;de(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}class pa{constructor(l){this.isMounted=!1,this.node=l}update(){}}function ag({top:i,left:l,right:u,bottom:o}){return{x:{min:l,max:u},y:{min:i,max:o}}}function $S({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function IS(i,l){if(!l)return i;const u=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:u.y,left:u.x,bottom:o.y,right:o.x}}function vc(i){return i===void 0||i===1}function kc({scale:i,scaleX:l,scaleY:u}){return!vc(i)||!vc(l)||!vc(u)}function La(i){return kc(i)||ig(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function ig(i){return ny(i.x)||ny(i.y)}function ny(i){return i&&i!=="0%"}function Hu(i,l,u){const o=i-u,c=l*o;return u+c}function ay(i,l,u,o,c){return c!==void 0&&(i=Hu(i,c,o)),Hu(i,u,o)+l}function Jc(i,l=0,u=1,o,c){i.min=ay(i.min,l,u,o,c),i.max=ay(i.max,l,u,o,c)}function lg(i,{x:l,y:u}){Jc(i.x,l.translate,l.scale,l.originPoint),Jc(i.y,u.translate,u.scale,u.originPoint)}const iy=.999999999999,ly=1.0000000000001;function tT(i,l,u,o=!1){const c=u.length;if(!c)return;l.x=l.y=1;let d,h;for(let p=0;p<c;p++){d=u[p],h=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Yi(i,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(l.x*=h.x.scale,l.y*=h.y.scale,lg(i,h)),o&&La(d.latestValues)&&Yi(i,d.latestValues))}l.x<ly&&l.x>iy&&(l.x=1),l.y<ly&&l.y>iy&&(l.y=1)}function Hi(i,l){i.min=i.min+l,i.max=i.max+l}function sy(i,l,u,o,c=.5){const d=Lt(i.min,i.max,c);Jc(i,l,u,d,o)}function Yi(i,l){sy(i.x,l.x,l.scaleX,l.scale,l.originX),sy(i.y,l.y,l.scaleY,l.scale,l.originY)}function sg(i,l){return ag(IS(i.getBoundingClientRect(),l))}function eT(i,l,u){const o=sg(i,u),{scroll:c}=l;return c&&(Hi(o.x,c.offset.x),Hi(o.y,c.offset.y)),o}const nT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aT=Ki.length;function iT(i,l,u){let o="",c=!0;for(let d=0;d<aT;d++){const h=Ki[d],p=i[h];if(p===void 0)continue;let g=!0;if(typeof p=="number")g=p===(h.startsWith("scale")?1:0);else{const m=parseFloat(p);g=h.startsWith("scale")?m===1:m===0}if(!g||u){const m=J0(p,bf[h]);if(!g){c=!1;const v=nT[h]||h;o+=`${v}(${m}) `}u&&(l[h]=m)}}return o=o.trim(),u?o=u(l,c?"":o):c&&(o="none"),o}function Mf(i,l,u){const{style:o,vars:c,transformOrigin:d}=i;let h=!1,p=!1;for(const g in l){const m=l[g];if(Qi.has(g)){h=!0;continue}else if(g0(g)){c[g]=m;continue}else{const v=J0(m,bf[g]);g.startsWith("origin")?(p=!0,d[g]=v):o[g]=v}}if(l.transform||(h||u?o.transform=iT(l,i.transform,u):o.transform&&(o.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:v=0}=d;o.transformOrigin=`${g} ${m} ${v}`}}function ug(i,{style:l,vars:u},o,c){const d=i.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,o);for(h in u)d.setProperty(h,u[h])}function uy(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const ql={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(I.test(i))i=parseFloat(i);else return i;const u=uy(i,l.target.x),o=uy(i,l.target.y);return`${u}% ${o}%`}},lT={correct:(i,{treeScale:l,projectionDelta:u})=>{const o=i,c=sn.parse(i);if(c.length>5)return o;const d=sn.createTransformer(i),h=typeof c[0]!="number"?1:0,p=u.x.scale*l.x,g=u.y.scale*l.y;c[0+h]/=p,c[1+h]/=g;const m=Lt(p,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},Fc={borderRadius:{...ql,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ql,borderTopRightRadius:ql,borderBottomLeftRadius:ql,borderBottomRightRadius:ql,boxShadow:lT};function og(i,{layout:l,layoutId:u}){return Qi.has(i)||i.startsWith("origin")||(l||u!==void 0)&&(!!Fc[i]||i==="opacity")}function Df(i,l,u){const o=i.style,c=l?.style,d={};if(!o)return d;for(const h in o)(de(o[h])||c&&de(c[h])||og(h,i)||u?.getValue(h)?.liveStyle!==void 0)&&(d[h]=o[h]);return d}function sT(i){return window.getComputedStyle(i)}class uT extends ng{constructor(){super(...arguments),this.type="html",this.renderInstance=ug}readValueFromInstance(l,u){if(Qi.has(u))return this.projection?.isProjecting?Vc(u):Mb(l,u);{const o=sT(l),c=(g0(u)?o.getPropertyValue(u):o[u])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:u}){return sg(l,u)}build(l,u,o){Mf(l,u,o.transformTemplate)}scrapeMotionValuesFromProps(l,u,o){return Df(l,u,o)}}const oT={offset:"stroke-dashoffset",array:"stroke-dasharray"},rT={offset:"strokeDashoffset",array:"strokeDasharray"};function cT(i,l,u=1,o=0,c=!0){i.pathLength=1;const d=c?oT:rT;i[d.offset]=`${-o}`,i[d.array]=`${l} ${u}`}const fT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function rg(i,{attrX:l,attrY:u,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...p},g,m,v){if(Mf(i,p,m),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:x,style:T}=i;x.transform&&(T.transform=x.transform,delete x.transform),(T.transform||x.transformOrigin)&&(T.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),T.transform&&(T.transformBox=v?.transformBox??"fill-box",delete x.transformBox);for(const N of fT)x[N]!==void 0&&(T[N]=x[N],delete x[N]);l!==void 0&&(x.x=l),u!==void 0&&(x.y=u),o!==void 0&&(x.scale=o),c!==void 0&&cT(x,c,d,h,!1)}const cg=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"]),fg=i=>typeof i=="string"&&i.toLowerCase()==="svg";function hT(i,l,u,o){ug(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(cg.has(c)?c:xf(c),l.attrs[c])}function hg(i,l,u){const o=Df(i,l,u);for(const c in i)if(de(i[c])||de(l[c])){const d=Ki.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=i[c]}return o}class dT extends ng{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$t}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(Qi.has(u)){const o=Q0(u);return o&&o.default||0}return u=cg.has(u)?u:xf(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,o){return hg(l,u,o)}build(l,u,o){rg(l,u,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,u,o,c){hT(l,u,o,c)}mount(l){this.isSVGTag=fg(l.tagName),super.mount(l)}}const mT=Cf.length;function dg(i){if(!i)return;if(!i.isControllingVariants){const u=i.parent?dg(i.parent)||{}:{};return i.props.initial!==void 0&&(u.initial=i.props.initial),u}const l={};for(let u=0;u<mT;u++){const o=Cf[u],c=i.props[o];(Pl(c)||c===!1)&&(l[o]=c)}return l}function mg(i,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==i.length)return!1;for(let o=0;o<u;o++)if(l[o]!==i[o])return!1;return!0}const pT=[...Ef].reverse(),yT=Ef.length;function gT(i){return l=>Promise.all(l.map(({animation:u,options:o})=>dS(i,u,o)))}function vT(i){let l=gT(i),u=oy(),o=!0;const c=g=>(m,v)=>{const x=qi(i,v,g==="exit"?i.presenceContext?.custom:void 0);if(x){const{transition:T,transitionEnd:N,...z}=x;m={...m,...z,...N}}return m};function d(g){l=g(i)}function h(g){const{props:m}=i,v=dg(i.parent)||{},x=[],T=new Set;let N={},z=1/0;for(let X=0;X<yT;X++){const q=pT[X],K=u[q],G=m[q]!==void 0?m[q]:v[q],k=Pl(G),Z=q===g?K.isActive:null;Z===!1&&(z=X);let it=G===v[q]&&G!==m[q]&&k;if(it&&o&&i.manuallyAnimateOnMount&&(it=!1),K.protectedKeys={...N},!K.isActive&&Z===null||!G&&!K.prevProp||Xu(G)||typeof G=="boolean")continue;if(q==="exit"&&K.isActive&&Z!==!0){K.prevResolvedValues&&(N={...N,...K.prevResolvedValues});continue}const J=xT(K.prevProp,G);let F=J||q===g&&K.isActive&&!it&&k||X>z&&k,lt=!1;const xt=Array.isArray(G)?G:[G];let At=xt.reduce(c(q),{});Z===!1&&(At={});const{prevResolvedValues:Bt={}}=K,se={...Bt,...At},Nt=H=>{F=!0,T.has(H)&&(lt=!0,T.delete(H)),K.needsAnimating[H]=!0;const $=i.getValue(H);$&&($.liveStyle=!1)};for(const H in se){const $=At[H],ut=Bt[H];if(N.hasOwnProperty(H))continue;let ht=!1;Yc($)&&Yc(ut)?ht=!mg($,ut):ht=$!==ut,ht?$!=null?Nt(H):T.add(H):$!==void 0&&T.has(H)?Nt(H):K.protectedKeys[H]=!0}K.prevProp=G,K.prevResolvedValues=At,K.isActive&&(N={...N,...At}),o&&i.blockInitialAnimation&&(F=!1);const Pt=it&&J;F&&(!Pt||lt)&&x.push(...xt.map(H=>{const $={type:q};if(typeof H=="string"&&o&&!Pt&&i.manuallyAnimateOnMount&&i.parent){const{parent:ut}=i,ht=qi(ut,H);if(ut.enteringChildren&&ht){const{delayChildren:E}=ht.transition||{};$.delay=U0(ut.enteringChildren,i,E)}}return{animation:H,options:$}}))}if(T.size){const X={};if(typeof m.initial!="boolean"){const q=qi(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}),x.push({animation:X})}let Y=!!x.length;return o&&(m.initial===!1||m.initial===m.animate)&&!i.manuallyAnimateOnMount&&(Y=!1),o=!1,Y?l(x):Promise.resolve()}function p(g,m){if(u[g].isActive===m)return Promise.resolve();i.variantChildren?.forEach(x=>x.animationState?.setActive(g,m)),u[g].isActive=m;const v=h(g);for(const x in u)u[x].protectedKeys={};return v}return{animateChanges:h,setActive:p,setAnimateFunction:d,getState:()=>u,reset:()=>{u=oy()}}}function xT(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!mg(l,i):!1}function Ba(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oy(){return{animate:Ba(!0),whileInView:Ba(),whileHover:Ba(),whileTap:Ba(),whileDrag:Ba(),whileFocus:Ba(),exit:Ba()}}function ry(i,l){i.min=l.min,i.max=l.max}function nn(i,l){ry(i.x,l.x),ry(i.y,l.y)}function cy(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const pg=1e-4,bT=1-pg,ST=1+pg,yg=.01,TT=0-yg,AT=0+yg;function ye(i){return i.max-i.min}function ET(i,l,u){return Math.abs(i-l)<=u}function fy(i,l,u,o=.5){i.origin=o,i.originPoint=Lt(l.min,l.max,i.origin),i.scale=ye(u)/ye(l),i.translate=Lt(u.min,u.max,i.origin)-i.originPoint,(i.scale>=bT&&i.scale<=ST||isNaN(i.scale))&&(i.scale=1),(i.translate>=TT&&i.translate<=AT||isNaN(i.translate))&&(i.translate=0)}function Ql(i,l,u,o){fy(i.x,l.x,u.x,o?o.originX:void 0),fy(i.y,l.y,u.y,o?o.originY:void 0)}function hy(i,l,u){i.min=u.min+l.min,i.max=i.min+ye(l)}function CT(i,l,u){hy(i.x,l.x,u.x),hy(i.y,l.y,u.y)}function dy(i,l,u){i.min=l.min-u.min,i.max=i.min+ye(l)}function Yu(i,l,u){dy(i.x,l.x,u.x),dy(i.y,l.y,u.y)}function my(i,l,u,o,c){return i-=l,i=Hu(i,1/u,o),c!==void 0&&(i=Hu(i,1/c,o)),i}function MT(i,l=0,u=1,o=.5,c,d=i,h=i){if(vn.test(l)&&(l=parseFloat(l),l=Lt(h.min,h.max,l/100)-h.min),typeof l!="number")return;let p=Lt(d.min,d.max,o);i===d&&(p-=l),i.min=my(i.min,l,u,p,c),i.max=my(i.max,l,u,p,c)}function py(i,l,[u,o,c],d,h){MT(i,l[u],l[o],l[c],l.scale,d,h)}const DT=["x","scaleX","originX"],wT=["y","scaleY","originY"];function yy(i,l,u,o){py(i.x,l,DT,u?u.x:void 0,o?o.x:void 0),py(i.y,l,wT,u?u.y:void 0,o?o.y:void 0)}function gy(i){return i.translate===0&&i.scale===1}function gg(i){return gy(i.x)&&gy(i.y)}function vy(i,l){return i.min===l.min&&i.max===l.max}function NT(i,l){return vy(i.x,l.x)&&vy(i.y,l.y)}function xy(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function vg(i,l){return xy(i.x,l.x)&&xy(i.y,l.y)}function by(i){return ye(i.x)/ye(i.y)}function Sy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function gn(i){return[i("x"),i("y")]}function jT(i,l,u){let o="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=u?.z||0;if((c||d||h)&&(o=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),u){const{transformPerspective:m,rotate:v,rotateX:x,rotateY:T,skewX:N,skewY:z}=u;m&&(o=`perspective(${m}px) ${o}`),v&&(o+=`rotate(${v}deg) `),x&&(o+=`rotateX(${x}deg) `),T&&(o+=`rotateY(${T}deg) `),N&&(o+=`skewX(${N}deg) `),z&&(o+=`skewY(${z}deg) `)}const p=i.x.scale*l.x,g=i.y.scale*l.y;return(p!==1||g!==1)&&(o+=`scale(${p}, ${g})`),o||"none"}const xg=["TopLeft","TopRight","BottomLeft","BottomRight"],OT=xg.length,Ty=i=>typeof i=="string"?parseFloat(i):i,Ay=i=>typeof i=="number"||I.test(i);function zT(i,l,u,o,c,d){c?(i.opacity=Lt(0,u.opacity??1,RT(o)),i.opacityExit=Lt(l.opacity??1,0,VT(o))):d&&(i.opacity=Lt(l.opacity??1,u.opacity??1,o));for(let h=0;h<OT;h++){const p=`border${xg[h]}Radius`;let g=Ey(l,p),m=Ey(u,p);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||Ay(g)===Ay(m)?(i[p]=Math.max(Lt(Ty(g),Ty(m),o),0),(vn.test(m)||vn.test(g))&&(i[p]+="%")):i[p]=m}(l.rotate||u.rotate)&&(i.rotate=Lt(l.rotate||0,u.rotate||0,o))}function Ey(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const RT=bg(0,.5,f0),VT=bg(.5,.95,Ze);function bg(i,l,u){return o=>o<i?0:o>l?1:u(kl(i,l,o))}function _T(i,l,u){const o=de(i)?i:Gi(i);return o.start(gf("",o,l,u)),o.animation}function Wl(i,l,u,o={passive:!0}){return i.addEventListener(l,u,o),()=>i.removeEventListener(l,u)}const UT=(i,l)=>i.depth-l.depth;class BT{constructor(){this.children=[],this.isDirty=!1}add(l){ef(this.children,l),this.isDirty=!0}remove(l){Vu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(UT),this.isDirty=!1,this.children.forEach(l)}}function LT(i,l){const u=pe.now(),o=({timestamp:c})=>{const d=c-u;d>=l&&(ma(o),i(d-l))};return zt.setup(o,!0),()=>ma(o)}function zu(i){return de(i)?i.get():i}class HT{constructor(){this.members=[]}add(l){ef(this.members,l);for(let u=this.members.length-1;u>=0;u--){const o=this.members[u];if(o===l||o===this.lead||o===this.prevLead)continue;const c=o.instance;c&&c.isConnected===!1&&o.isPresent!==!1&&!o.snapshot&&Vu(this.members,o)}l.scheduleRender()}remove(l){if(Vu(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(l){const u=this.members.findIndex(c=>l===c);if(u===0)return!1;let o;for(let c=u;c>=0;c--){const d=this.members[c],h=d.instance;if(d.isPresent!==!1&&(!h||h.isConnected!==!1)){o=d;break}}return o?(this.promote(o),!0):!1}promote(l,u){const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.instance&&o.scheduleRender(),l.scheduleRender();const c=o.options.layoutDependency,d=l.options.layoutDependency;if(!(c!==void 0&&d!==void 0&&c===d)){const g=o.instance;g&&g.isConnected===!1&&!o.snapshot||(l.resumeFrom=o,u&&(l.resumeFrom.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:p}=l.options;p===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:u,resumingFrom:o}=l;u.onExitComplete&&u.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ru={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xc=["","X","Y","Z"],YT=1e3;let qT=0;function bc(i,l,u,o){const{latestValues:c}=l;c[i]&&(u[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function Sg(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const u=q0(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(u,"transform",zt,!(c||d))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&Sg(o)}function Tg({attachResizeListener:i,defaultParent:l,measureScroll:u,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(h={},p=l?.()){this.id=qT++,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(KT),this.nodes.forEach(JT),this.nodes.forEach(FT),this.nodes.forEach(QT)},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 BT)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new af),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=Af(h)&&!XS(h),this.instance=h;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),i){let v,x=0;const T=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{x=window.innerWidth}),i(h,()=>{const N=window.innerWidth;N!==x&&(x=N,this.root.updateBlockedByResize=!0,v&&v(),v=LT(T,250),Ru.hasAnimatedSinceResize&&(Ru.hasAnimatedSinceResize=!1,this.nodes.forEach(Dy)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:T,layout:N})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const z=this.options.transition||m.getDefaultTransition()||t2,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:X}=m.getProps(),q=!this.targetLayout||!vg(this.targetLayout,N),K=!x&&T;if(this.options.layoutRoot||this.resumeFrom||K||x&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...yf(z,"layout"),onPlay:Y,onComplete:X};(m.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(v,K)}else x||Dy(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(),ma(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(PT),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&&Sg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:p,layout:g}=this.options;if(p===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Cy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(My);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kT),this.nodes.forEach(GT),this.nodes.forEach(XT)):this.nodes.forEach(My),this.clearAllSnapshots();const p=pe.now();le.delta=xn(0,1e3/60,p-le.timestamp),le.timestamp=p,le.isProcessing=!0,fc.update.process(le),fc.preRender.process(le),fc.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ZT),this.sharedNodes.forEach(WT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(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=$t(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(p=!1),p&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!gg(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;h&&this.instance&&(p||La(this.latestValues)||v)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return h&&(g=this.removeTransform(g)),e2(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return $t();const p=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(n2))){const{scroll:m}=this.root;m&&(Hi(p.x,m.offset.x),Hi(p.y,m.offset.y))}return p}removeElementScroll(h){const p=$t();if(nn(p,h),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:v,options:x}=m;m!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&nn(p,h),Hi(p.x,v.offset.x),Hi(p.y,v.offset.y))}return p}applyTransform(h,p=!1){const g=$t();nn(g,h);for(let m=0;m<this.path.length;m++){const v=this.path[m];!p&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Yi(g,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),La(v.latestValues)&&Yi(g,v.latestValues)}return La(this.latestValues)&&Yi(g,this.latestValues),g}removeTransform(h){const p=$t();nn(p,h);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!La(m.latestValues))continue;kc(m.latestValues)&&m.updateSnapshot();const v=$t(),x=m.measurePageBox();nn(v,x),yy(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return La(this.latestValues)&&yy(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!==le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==p;if(!(h||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))return;this.resolvedRelativeTargetAt=le.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=$t(),this.targetWithTransforms=$t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),CT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),lg(this.target,this.targetDelta)):nn(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||kc(this.parent.latestValues)||ig(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=$t(),this.relativeTargetOrigin=$t(),Yu(this.relativeTargetOrigin,p,g),nn(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===le.timestamp&&(g=!1),g)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;nn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,T=this.treeScale.y;tT(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=$t());const{target:N}=h;if(!N){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cy(this.prevProjectionDelta.x,this.projectionDelta.x),cy(this.prevProjectionDelta.y,this.projectionDelta.y)),Ql(this.projectionDelta,this.layoutCorrected,N,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==T||!Sy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Sy(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=Li(),this.projectionDelta=Li(),this.projectionDeltaWithTransform=Li()}setAnimationOrigin(h,p=!1){const g=this.snapshot,m=g?g.latestValues:{},v={...this.latestValues},x=Li();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const T=$t(),N=g?g.source:void 0,z=this.layout?this.layout.source:void 0,Y=N!==z,X=this.getStack(),q=!X||X.members.length<=1,K=!!(Y&&!q&&this.options.crossfade===!0&&!this.path.some(IT));this.animationProgress=0;let G;this.mixTargetDelta=k=>{const Z=k/1e3;wy(x.x,h.x,Z),wy(x.y,h.y,Z),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yu(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),$T(this.relativeTarget,this.relativeTargetOrigin,T,Z),G&&NT(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=$t()),nn(G,this.relativeTarget)),Y&&(this.animationValues=v,zT(v,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&&(ma(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{Ru.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Gi(0)),this.motionValue.jump(0,!1),this.currentAnimation=_T(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(YT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:v}=h;if(!(!p||!g||!m)){if(this!==h&&this.layout&&m&&Ag(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||$t();const x=ye(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+x;const T=ye(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+T}nn(p,g),Yi(p,v),Ql(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new HT),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&&bc("z",h,m,this.animationValues);for(let v=0;v<xc.length;v++)bc(`rotate${xc[v]}`,h,m,this.animationValues),bc(`skew${xc[v]}`,h,m,this.animationValues);h.render();for(const v in m)h.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);h.scheduleRender()}applyProjectionStyles(h,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=zu(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=zu(p?.pointerEvents)||""),this.hasProjected&&!La(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let x=jT(this.projectionDeltaWithTransform,this.treeScale,v);g&&(x=g(v,x)),h.transform=x;const{x:T,y:N}=this.projectionDelta;h.transformOrigin=`${T.origin*100}% ${N.origin*100}% 0`,m.animationValues?h.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const z in Fc){if(v[z]===void 0)continue;const{correct:Y,applyTo:X,isCSSVariable:q}=Fc[z],K=x==="none"?v[z]:Y(v[z],m);if(X){const G=X.length;for(let k=0;k<G;k++)h[X[k]]=K}else q?this.options.visualElement.renderState.vars[z]=K:h[z]=K}this.options.layoutId&&(h.pointerEvents=m===this?zu(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Cy),this.root.sharedNodes.clear()}}}function GT(i){i.updateLayout()}function XT(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:o}=i.layout,{animationType:c}=i.options,d=l.source!==i.layout.source;c==="size"?gn(v=>{const x=d?l.measuredBox[v]:l.layoutBox[v],T=ye(x);x.min=u[v].min,x.max=x.min+T}):Ag(c,l.layoutBox,u)&&gn(v=>{const x=d?l.measuredBox[v]:l.layoutBox[v],T=ye(u[v]);x.max=x.min+T,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[v].max=i.relativeTarget[v].min+T)});const h=Li();Ql(h,u,l.layoutBox);const p=Li();d?Ql(p,i.applyTransform(o,!0),l.measuredBox):Ql(p,u,l.layoutBox);const g=!gg(h);let m=!1;if(!i.resumeFrom){const v=i.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:T}=v;if(x&&T){const N=$t();Yu(N,l.layoutBox,x.layoutBox);const z=$t();Yu(z,u,T.layoutBox),vg(N,z)||(m=!0),v.options.layoutRoot&&(i.relativeTarget=z,i.relativeTargetOrigin=N,i.relativeParent=v)}}}i.notifyListeners("didUpdate",{layout:u,snapshot:l,delta:p,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(i.isLead()){const{onExitComplete:u}=i.options;u&&u()}i.options.transition=void 0}function KT(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 QT(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function ZT(i){i.clearSnapshot()}function Cy(i){i.clearMeasurements()}function My(i){i.isLayoutDirty=!1}function kT(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Dy(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function JT(i){i.resolveTargetDelta()}function FT(i){i.calcProjection()}function PT(i){i.resetSkewAndRotation()}function WT(i){i.removeLeadSnapshot()}function wy(i,l,u){i.translate=Lt(l.translate,0,u),i.scale=Lt(l.scale,1,u),i.origin=l.origin,i.originPoint=l.originPoint}function Ny(i,l,u,o){i.min=Lt(l.min,u.min,o),i.max=Lt(l.max,u.max,o)}function $T(i,l,u,o){Ny(i.x,l.x,u.x,o),Ny(i.y,l.y,u.y,o)}function IT(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const t2={duration:.45,ease:[.4,0,.1,1]},jy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Oy=jy("applewebkit/")&&!jy("chrome/")?Math.round:Ze;function zy(i){i.min=Oy(i.min),i.max=Oy(i.max)}function e2(i){zy(i.x),zy(i.y)}function Ag(i,l,u){return i==="position"||i==="preserve-aspect"&&!ET(by(l),by(u),.2)}function n2(i){return i!==i.root&&i.scroll?.wasRoot}const a2=Tg({attachResizeListener:(i,l)=>Wl(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Sc={current:void 0},Eg=Tg({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Sc.current){const i=new a2({});i.mount(window),i.setOptions({layoutScroll:!0}),Sc.current=i}return Sc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),wf=U.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Ry(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function i2(...i){return l=>{let u=!1;const o=i.map(c=>{const d=Ry(c,l);return!u&&typeof d=="function"&&(u=!0),d});if(u)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():Ry(i[c],null)}}}}function l2(...i){return U.useCallback(i2(...i),i)}class s2 extends U.Component{getSnapshotBeforeUpdate(l){const u=this.props.childRef.current;if(u&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=u.offsetParent,c=Qc(o)&&o.offsetWidth||0,d=Qc(o)&&o.offsetHeight||0,h=this.props.sizeRef.current;h.height=u.offsetHeight||0,h.width=u.offsetWidth||0,h.top=u.offsetTop,h.left=u.offsetLeft,h.right=c-h.width-h.left,h.bottom=d-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function u2({children:i,isPresent:l,anchorX:u,anchorY:o,root:c,pop:d}){const h=U.useId(),p=U.useRef(null),g=U.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=U.useContext(wf),v=i.props?.ref??i?.ref,x=l2(p,v);return U.useInsertionEffect(()=>{const{width:T,height:N,top:z,left:Y,right:X,bottom:q}=g.current;if(l||d===!1||!p.current||!T||!N)return;const K=u==="left"?`left: ${Y}`:`right: ${X}`,G=o==="bottom"?`bottom: ${q}`:`top: ${z}`;p.current.dataset.motionPopId=h;const k=document.createElement("style");m&&(k.nonce=m);const Z=c??document.head;return Z.appendChild(k),k.sheet&&k.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(k)&&Z.removeChild(k)}},[l]),b.jsx(s2,{isPresent:l,childRef:p,sizeRef:g,pop:d,children:d===!1?i:U.cloneElement(i,{ref:x})})}const o2=({children:i,initial:l,isPresent:u,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:h,anchorX:p,anchorY:g,root:m})=>{const v=tf(r2),x=U.useId();let T=!0,N=U.useMemo(()=>(T=!1,{id:x,initial:l,isPresent:u,custom:c,onExitComplete:z=>{v.set(z,!0);for(const Y of v.values())if(!Y)return;o&&o()},register:z=>(v.set(z,!1),()=>v.delete(z))}),[u,v,o]);return d&&T&&(N={...N}),U.useMemo(()=>{v.forEach((z,Y)=>v.set(Y,!1))},[u]),U.useEffect(()=>{!u&&!v.size&&o&&o()},[u]),i=b.jsx(u2,{pop:h==="popLayout",isPresent:u,anchorX:p,anchorY:g,root:m,children:i}),b.jsx(Gu.Provider,{value:N,children:i})};function r2(){return new Map}function Cg(i=!0){const l=U.useContext(Gu);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:o,register:c}=l,d=U.useId();U.useEffect(()=>{if(i)return c(d)},[i]);const h=U.useCallback(()=>i&&o&&o(d),[d,o,i]);return!u&&o?[!1,h]:[!0]}const Cu=i=>i.key||"";function Vy(i){const l=[];return U.Children.forEach(i,u=>{U.isValidElement(u)&&l.push(u)}),l}const c2=({children:i,custom:l,initial:u=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left",anchorY:g="top",root:m})=>{const[v,x]=Cg(h),T=U.useMemo(()=>Vy(i),[i]),N=h&&!v?[]:T.map(Cu),z=U.useRef(!0),Y=U.useRef(T),X=tf(()=>new Map),q=U.useRef(new Set),[K,G]=U.useState(T),[k,Z]=U.useState(T);Iy(()=>{z.current=!1,Y.current=T;for(let F=0;F<k.length;F++){const lt=Cu(k[F]);N.includes(lt)?(X.delete(lt),q.current.delete(lt)):X.get(lt)!==!0&&X.set(lt,!1)}},[k,N.length,N.join("-")]);const it=[];if(T!==K){let F=[...T];for(let lt=0;lt<k.length;lt++){const xt=k[lt],At=Cu(xt);N.includes(At)||(F.splice(lt,0,xt),it.push(xt))}return d==="wait"&&it.length&&(F=it),Z(Vy(F)),G(T),null}const{forceRender:J}=U.useContext(Ic);return b.jsx(b.Fragment,{children:k.map(F=>{const lt=Cu(F),xt=h&&!v?!1:T===k||N.includes(lt),At=()=>{if(q.current.has(lt))return;if(q.current.add(lt),X.has(lt))X.set(lt,!0);else return;let Bt=!0;X.forEach(se=>{se||(Bt=!1)}),Bt&&(J?.(),Z(Y.current),h&&x?.(),o&&o())};return b.jsx(o2,{isPresent:xt,initial:!z.current||u?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:xt?void 0:At,anchorX:p,anchorY:g,children:F},lt)})})},Mg=U.createContext({strict:!1}),_y={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 Uy=!1;function f2(){if(Uy)return;const i={};for(const l in _y)i[l]={isEnabled:u=>_y[l].some(o=>!!u[o])};eg(i),Uy=!0}function Dg(){return f2(),PS()}function h2(i){const l=Dg();for(const u in i)l[u]={...l[u],...i[u]};eg(l)}const d2=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 qu(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||d2.has(i)}let wg=i=>!qu(i);function m2(i){typeof i=="function"&&(wg=l=>l.startsWith("on")?!qu(l):i(l))}try{m2(require("@emotion/is-prop-valid").default)}catch{}function p2(i,l,u){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||(wg(c)||u===!0&&qu(c)||!l&&!qu(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const Qu=U.createContext({});function y2(i,l){if(Ku(i)){const{initial:u,animate:o}=i;return{initial:u===!1||Pl(u)?u:void 0,animate:Pl(o)?o:void 0}}return i.inherit!==!1?l:{}}function g2(i){const{initial:l,animate:u}=y2(i,U.useContext(Qu));return U.useMemo(()=>({initial:l,animate:u}),[By(l),By(u)])}function By(i){return Array.isArray(i)?i.join(" "):i}const Nf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ng(i,l,u){for(const o in l)!de(l[o])&&!og(o,u)&&(i[o]=l[o])}function v2({transformTemplate:i},l){return U.useMemo(()=>{const u=Nf();return Mf(u,l,i),Object.assign({},u.vars,u.style)},[l])}function x2(i,l){const u=i.style||{},o={};return Ng(o,u,i),Object.assign(o,v2(i,l)),o}function b2(i,l){const u={},o=x2(i,l);return i.drag&&i.dragListener!==!1&&(u.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(u.tabIndex=0),u.style=o,u}const jg=()=>({...Nf(),attrs:{}});function S2(i,l,u,o){const c=U.useMemo(()=>{const d=jg();return rg(d,l,fg(o),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};Ng(d,i.style,i),c.style={...d,...c.style}}return c}const T2=["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 jf(i){return typeof i!="string"||i.includes("-")?!1:!!(T2.indexOf(i)>-1||/[A-Z]/u.test(i))}function A2(i,l,u,{latestValues:o},c,d=!1,h){const g=(h??jf(i)?S2:b2)(l,o,c,i),m=p2(l,typeof i=="string",d),v=i!==U.Fragment?{...m,...g,ref:u}:{},{children:x}=l,T=U.useMemo(()=>de(x)?x.get():x,[x]);return U.createElement(i,{...v,children:T})}function E2({scrapeMotionValuesFromProps:i,createRenderState:l},u,o,c){return{latestValues:C2(u,o,c,i),renderState:l()}}function C2(i,l,u,o){const c={},d=o(i,{});for(const T in d)c[T]=zu(d[T]);let{initial:h,animate:p}=i;const g=Ku(i),m=I0(i);l&&m&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),p===void 0&&(p=l.animate));let v=u?u.initial===!1:!1;v=v||h===!1;const x=v?p:h;if(x&&typeof x!="boolean"&&!Xu(x)){const T=Array.isArray(x)?x:[x];for(let N=0;N<T.length;N++){const z=vf(i,T[N]);if(z){const{transitionEnd:Y,transition:X,...q}=z;for(const K in q){let G=q[K];if(Array.isArray(G)){const k=v?G.length-1:0;G=G[k]}G!==null&&(c[K]=G)}for(const K in Y)c[K]=Y[K]}}}return c}const Og=i=>(l,u)=>{const o=U.useContext(Qu),c=U.useContext(Gu),d=()=>E2(i,l,o,c);return u?d():tf(d)},M2=Og({scrapeMotionValuesFromProps:Df,createRenderState:Nf}),D2=Og({scrapeMotionValuesFromProps:hg,createRenderState:jg}),w2=Symbol.for("motionComponentSymbol");function N2(i,l,u){const o=U.useRef(u);U.useInsertionEffect(()=>{o.current=u});const c=U.useRef(null);return U.useCallback(d=>{d&&i.onMount?.(d),l&&(d?l.mount(d):l.unmount());const h=o.current;if(typeof h=="function")if(d){const p=h(d);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):h(d);else h&&(h.current=d)},[l])}const zg=U.createContext({});function _i(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function j2(i,l,u,o,c,d){const{visualElement:h}=U.useContext(Qu),p=U.useContext(Mg),g=U.useContext(Gu),m=U.useContext(wf),v=m.reducedMotion,x=m.skipAnimations,T=U.useRef(null),N=U.useRef(!1);o=o||p.renderer,!T.current&&o&&(T.current=o(i,{visualState:l,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:d}),N.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const z=T.current,Y=U.useContext(zg);z&&!z.projection&&c&&(z.type==="html"||z.type==="svg")&&O2(T.current,u,c,Y);const X=U.useRef(!1);U.useInsertionEffect(()=>{z&&X.current&&z.update(u,g)});const q=u[Y0],K=U.useRef(!!q&&!window.MotionHandoffIsComplete?.(q)&&window.MotionHasOptimisedAnimation?.(q));return Iy(()=>{N.current=!0,z&&(X.current=!0,window.MotionIsMounted=!0,z.updateFeatures(),z.scheduleRenderMicrotask(),K.current&&z.animationState&&z.animationState.animateChanges())}),U.useEffect(()=>{z&&(!K.current&&z.animationState&&z.animationState.animateChanges(),K.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(q)}),K.current=!1),z.enteringChildren=void 0)}),z}function O2(i,l,u,o){const{layoutId:c,layout:d,drag:h,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:v}=l;i.projection=new u(i.latestValues,l["data-framer-portal-id"]?void 0:Rg(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||p&&_i(p),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:g,layoutRoot:m})}function Rg(i){if(i)return i.options.allowProjection!==!1?i.projection:Rg(i.parent)}function Tc(i,{forwardMotionProps:l=!1,type:u}={},o,c){o&&h2(o);const d=u?u==="svg":jf(i),h=d?D2:M2;function p(m,v){let x;const T={...U.useContext(wf),...m,layoutId:z2(m)},{isStatic:N}=T,z=g2(m),Y=h(m,N);if(!N&&$y){R2();const X=V2(T);x=X.MeasureLayout,z.visualElement=j2(i,Y,T,c,X.ProjectionNode,d)}return b.jsxs(Qu.Provider,{value:z,children:[x&&z.visualElement?b.jsx(x,{visualElement:z.visualElement,...T}):null,A2(i,m,N2(Y,z.visualElement,v),Y,N,l,d)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=U.forwardRef(p);return g[w2]=i,g}function z2({layoutId:i}){const l=U.useContext(Ic).id;return l&&i!==void 0?l+"-"+i:i}function R2(i,l){U.useContext(Mg).strict}function V2(i){const l=Dg(),{drag:u,layout:o}=l;if(!u&&!o)return{};const c={...u,...o};return{MeasureLayout:u?.isEnabled(i)||o?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function _2(i,l){if(typeof Proxy>"u")return Tc;const u=new Map,o=(d,h)=>Tc(d,h,i,l),c=(d,h)=>o(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?o:(u.has(h)||u.set(h,Tc(h,void 0,i,l)),u.get(h))})}const U2=(i,l)=>l.isSVG??jf(i)?new dT(l):new uT(l,{allowProjection:i!==U.Fragment});class B2 extends pa{constructor(l){super(l),l.animationState||(l.animationState=vT(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Xu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:u}=this.node.prevProps||{};l!==u&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let L2=0;class H2 extends pa{constructor(){super(...arguments),this.id=L2++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:u}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;const c=this.node.animationState.setActive("exit",!l);u&&!l&&c.then(()=>{u(this.id)})}mount(){const{register:l,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const Y2={animation:{Feature:B2},exit:{Feature:H2}};function es(i){return{point:{x:i.pageX,y:i.pageY}}}const q2=i=>l=>Tf(l)&&i(l,es(l));function Zl(i,l,u,o){return Wl(i,l,q2(u),o)}const Vg=({current:i})=>i?i.ownerDocument.defaultView:null,Ly=(i,l)=>Math.abs(i-l);function G2(i,l){const u=Ly(i.x,l.x),o=Ly(i.y,l.y);return Math.sqrt(u**2+o**2)}const Hy=new Set(["auto","scroll"]);class _g{constructor(l,u,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=N=>{this.handleScroll(N.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Ec(this.lastMoveEventInfo,this.history),z=this.startEvent!==null,Y=G2(N.offset,{x:0,y:0})>=this.distanceThreshold;if(!z&&!Y)return;const{point:X}=N,{timestamp:q}=le;this.history.push({...X,timestamp:q});const{onStart:K,onMove:G}=this.handlers;z||(K&&K(this.lastMoveEvent,N),this.startEvent=this.lastMoveEvent),G&&G(this.lastMoveEvent,N)},this.handlePointerMove=(N,z)=>{this.lastMoveEvent=N,this.lastMoveEventInfo=Ac(z,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(N,z)=>{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=Ec(N.type==="pointercancel"?this.lastMoveEventInfo:Ac(z,this.transformPagePoint),this.history);this.startEvent&&Y&&Y(N,K),X&&X(N,K)},!Tf(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=c||window;const g=es(l),m=Ac(g,this.transformPagePoint),{point:v}=m,{timestamp:x}=le;this.history=[{...v,timestamp:x}];const{onSessionStart:T}=u;T&&T(l,Ec(m,this.history)),this.removeListeners=$l(Zl(this.contextWindow,"pointermove",this.handlePointerMove),Zl(this.contextWindow,"pointerup",this.handlePointerUp),Zl(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(l){let u=l.parentElement;for(;u;){const o=getComputedStyle(u);(Hy.has(o.overflowX)||Hy.has(o.overflowY))&&this.scrollPositions.set(u,{x:u.scrollLeft,y:u.scrollTop}),u=u.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const u=this.scrollPositions.get(l);if(!u)return;const o=l===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-u.x,y:c.y-u.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(l,c),zt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ma(this.updatePoint)}}function Ac(i,l){return l?{point:l(i.point)}:i}function Yy(i,l){return{x:i.x-l.x,y:i.y-l.y}}function Ec({point:i},l){return{point:i,delta:Yy(i,Ug(l)),offset:Yy(i,X2(l)),velocity:K2(l,.1)}}function X2(i){return i[0]}function Ug(i){return i[i.length-1]}function K2(i,l){if(i.length<2)return{x:0,y:0};let u=i.length-1,o=null;const c=Ug(i);for(;u>=0&&(o=i[u],!(c.timestamp-o.timestamp>ln(l)));)u--;if(!o)return{x:0,y:0};o===i[0]&&i.length>2&&c.timestamp-o.timestamp>ln(l)*2&&(o=i[1]);const d=Qe(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function Q2(i,{min:l,max:u},o){return l!==void 0&&i<l?i=o?Lt(l,i,o.min):Math.max(i,l):u!==void 0&&i>u&&(i=o?Lt(u,i,o.max):Math.min(i,u)),i}function qy(i,l,u){return{min:l!==void 0?i.min+l:void 0,max:u!==void 0?i.max+u-(i.max-i.min):void 0}}function Z2(i,{top:l,left:u,bottom:o,right:c}){return{x:qy(i.x,u,c),y:qy(i.y,l,o)}}function Gy(i,l){let u=l.min-i.min,o=l.max-i.max;return l.max-l.min<i.max-i.min&&([u,o]=[o,u]),{min:u,max:o}}function k2(i,l){return{x:Gy(i.x,l.x),y:Gy(i.y,l.y)}}function J2(i,l){let u=.5;const o=ye(i),c=ye(l);return c>o?u=kl(l.min,l.max-o,i.min):o>c&&(u=kl(i.min,i.max-c,l.min)),xn(0,1,u)}function F2(i,l){const u={};return l.min!==void 0&&(u.min=l.min-i.min),l.max!==void 0&&(u.max=l.max-i.min),u}const Pc=.35;function P2(i=Pc){return i===!1?i=0:i===!0&&(i=Pc),{x:Xy(i,"left","right"),y:Xy(i,"top","bottom")}}function Xy(i,l,u){return{min:Ky(i,l),max:Ky(i,u)}}function Ky(i,l){return typeof i=="number"?i:i[l]||0}const W2=new WeakMap;class $2{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=$t(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:u=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=x=>{u&&this.snapToCursor(es(x).point),this.stopAnimation()},h=(x,T)=>{const{drag:N,dragPropagation:z,onDragStart:Y}=this.getProps();if(N&&!z&&(this.openDragLock&&this.openDragLock(),this.openDragLock=MS(N),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gn(q=>{let K=this.getAxisMotionValue(q).get()||0;if(vn.test(K)){const{projection:G}=this.visualElement;if(G&&G.layout){const k=G.layout.layoutBox[q];k&&(K=ye(k)*(parseFloat(K)/100))}}this.originPoint[q]=K}),Y&&zt.update(()=>Y(x,T),!1,!0),qc(this.visualElement,"transform");const{animationState:X}=this.visualElement;X&&X.setActive("whileDrag",!0)},p=(x,T)=>{this.latestPointerEvent=x,this.latestPanInfo=T;const{dragPropagation:N,dragDirectionLock:z,onDirectionLock:Y,onDrag:X}=this.getProps();if(!N&&!this.openDragLock)return;const{offset:q}=T;if(z&&this.currentDirection===null){this.currentDirection=tA(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&&zt.update(()=>X(x,T),!1,!0)},g=(x,T)=>{this.latestPointerEvent=x,this.latestPanInfo=T,this.stop(x,T),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new _g(l,{onSessionStart:d,onStart:h,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Vg(this.visualElement),element:this.visualElement.current})}stop(l,u){const o=l||this.latestPointerEvent,c=u||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&zt.postRender(()=>p(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:u}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,u,o){const{drag:c}=this.getProps();if(!o||!Mu(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(h=Q2(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:u}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&_i(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=Z2(o.layoutBox,l):this.constraints=!1,this.elastic=P2(u),c!==this.constraints&&!_i(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&gn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=F2(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!_i(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=eT(o,c.root,this.visualElement.getTransformPagePoint());let h=k2(c.layout.layoutBox,d);if(u){const p=u($S(h));this.hasMutatedConstraints=!!p,p&&(h=ag(p))}return h}startAnimation(l){const{drag:u,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=gn(v=>{if(!Mu(v,u,this.currentDirection))return;let x=g&&g[v]||{};h&&(x={min:0,max:0});const T=c?200:1e6,N=c?40:1e7,z={type:"inertia",velocity:o?l[v]:0,bounceStiffness:T,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...d,...x};return this.startAxisValueAnimation(v,z)});return Promise.all(m).then(p)}startAxisValueAnimation(l,u){const o=this.getAxisMotionValue(l);return qc(this.visualElement,l),o.start(gf(l,o,0,u,this.visualElement,!1))}stopAnimation(){gn(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const u=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[u];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){gn(u=>{const{drag:o}=this.getProps();if(!Mu(u,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:h,max:p}=c.layout.layoutBox[u],g=d.get()||0;d.set(l[u]-Lt(h,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:o}=this.visualElement;if(!_i(u)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};gn(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const g=p.get();c[h]=J2({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),gn(h=>{if(!Mu(h,l,null))return;const p=this.getAxisMotionValue(h),{min:g,max:m}=this.constraints[h];p.set(Lt(g,m,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;W2.set(this.visualElement,this);const l=this.visualElement.current,u=Zl(l,"pointerdown",m=>{const{drag:v,dragListener:x=!0}=this.getProps(),T=m.target,N=T!==l&&zS(T);v&&x&&!N&&this.start(m)});let o;const c=()=>{const{dragConstraints:m}=this.getProps();_i(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),o||(o=I2(l,m.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),zt.read(c);const p=Wl(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(gn(x=>{const T=this.getAxisMotionValue(x);T&&(this.originPoint[x]+=m[x].translate,T.set(T.get()+m[x].translate))}),this.visualElement.render())}));return()=>{p(),u(),h(),g&&g(),o&&o()}}getProps(){const l=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=Pc,dragMomentum:p=!0}=l;return{...l,drag:u,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:p}}}function Qy(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function I2(i,l,u){const o=$p(i,Qy(u)),c=$p(l,Qy(u));return()=>{o(),c()}}function Mu(i,l,u){return(l===!0||l===i)&&(u===null||u===i)}function tA(i,l=10){let u=null;return Math.abs(i.y)>l?u="y":Math.abs(i.x)>l&&(u="x"),u}class eA extends pa{constructor(l){super(l),this.removeGroupControls=Ze,this.removeListeners=Ze,this.controls=new $2(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ze}update(){const{dragControls:l}=this.node.getProps(),{dragControls:u}=this.node.prevProps||{};l!==u&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Cc=i=>(l,u)=>{i&&zt.update(()=>i(l,u),!1,!0)};class nA extends pa{constructor(){super(...arguments),this.removePointerDownListener=Ze}onPointerDown(l){this.session=new _g(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vg(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Cc(l),onStart:Cc(u),onMove:Cc(o),onEnd:(d,h)=>{delete this.session,c&&zt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=Zl(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 Mc=!1;class aA extends U.Component{componentDidMount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=l;d&&(u.group&&u.group.add(d),o&&o.register&&c&&o.register(d),Mc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ru.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:u,visualElement:o,drag:c,isPresent:d}=this.props,{projection:h}=o;return h&&(h.isPresent=d,l.layoutDependency!==u&&h.setOptions({...h.options,layoutDependency:u}),Mc=!0,c||l.layoutDependency!==u||u===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||zt.postRender(()=>{const p=h.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Sf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o}=this.props,{projection:c}=l;Mc=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function Bg(i){const[l,u]=Cg(),o=U.useContext(Ic);return b.jsx(aA,{...i,layoutGroup:o,switchLayoutGroup:U.useContext(zg),isPresent:l,safeToRemove:u})}const iA={pan:{Feature:nA},drag:{Feature:eA,ProjectionNode:Eg,MeasureLayout:Bg}};function Zy(i,l,u){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=o[c];d&&zt.postRender(()=>d(l,es(l)))}class lA extends pa{mount(){const{current:l}=this.node;l&&(this.unmount=wS(l,(u,o)=>(Zy(this.node,o,"Start"),c=>Zy(this.node,c,"End"))))}unmount(){}}class sA extends pa{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=$l(Wl(this.node.current,"focus",()=>this.onFocus()),Wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ky(i,l,u){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=o[c];d&&zt.postRender(()=>d(l,es(l)))}class uA extends pa{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:u,propagate:o}=this.node.props;this.unmount=VS(l,(c,d)=>(ky(this.node,d,"Start"),(h,{success:p})=>ky(this.node,h,p?"End":"Cancel")),{useGlobalTarget:u,stopPropagation:o?.tap===!1})}unmount(){}}const Wc=new WeakMap,Dc=new WeakMap,oA=i=>{const l=Wc.get(i.target);l&&l(i)},rA=i=>{i.forEach(oA)};function cA({root:i,...l}){const u=i||document;Dc.has(u)||Dc.set(u,{});const o=Dc.get(u),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(rA,{root:i,...l})),o[c]}function fA(i,l,u){const o=cA(l);return Wc.set(i,u),o.observe(i),()=>{Wc.delete(i),o.unobserve(i)}}const hA={some:0,all:1};class dA extends pa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:u,margin:o,amount:c="some",once:d}=l,h={root:u?u.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:hA[c]},p=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,d&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),T=m?v:x;T&&T(g)};return fA(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(mA(l,u))&&this.startObserver()}unmount(){}}function mA({viewport:i={}},{viewport:l={}}={}){return u=>i[u]!==l[u]}const pA={inView:{Feature:dA},tap:{Feature:uA},focus:{Feature:sA},hover:{Feature:lA}},yA={layout:{ProjectionNode:Eg,MeasureLayout:Bg}},gA={...Y2,...pA,...iA,...yA},Jy=_2(gA,U2),vA=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],xA={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)"}]},Fy=[{tier:"premium",label:i=>`${i}.fluxy.bot`,badge:"$5",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0},{tier:"at",label:i=>`${i}.at.fluxy.bot`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1}];function bA({models:i,value:l,onChange:u}){const[o,c]=U.useState(!1),d=U.useRef(null);U.useEffect(()=>{if(!o)return;const p=g=>{d.current&&!d.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[o]);const h=i.find(p=>p.id===l);return b.jsxs("div",{className:"relative",ref:d,children:[b.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:[b.jsx("span",{className:h?"text-white":"text-white/20",children:h?h.label:"Choose a model..."}),b.jsx(fx,{className:`h-4 w-4 text-white/30 transition-transform ${o?"rotate-180":""}`})]}),o&&b.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=>b.jsx("button",{onClick:()=>{u(p.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${l===p.id?"text-[#AF27E3] bg-[#AF27E3]/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:p.label},p.id))})]})}function EA({onComplete:i,isInitialSetup:l=!1,onSave:u}){const o=l?7:6,[c,d]=U.useState(0),[h,p]=U.useState(""),[g,m]=U.useState("anthropic"),[v,x]=U.useState(""),[T,N]=U.useState(!1),[z,Y]=U.useState({anthropic:"idle",openai:"idle"}),[X,q]=U.useState(!1),[K,G]=U.useState(""),[k,Z]=U.useState(!1),[it,J]=U.useState(),[F,lt]=U.useState(!1),[xt,At]=U.useState(!1),[Bt,se]=U.useState(),[Nt,Pt]=U.useState(""),[O,H]=U.useState(null),[$,ut]=U.useState(""),[ht,E]=U.useState({}),[V,Q]=U.useState("at"),[P,st]=U.useState(!1),[nt,dt]=U.useState(!1),[Rt,jt]=U.useState(""),ke=U.useRef(null),[ge,Ga]=U.useState(null),[Je,Fe]=U.useState(!1),[Xa,Ka]=U.useState(!1),[Zu,ns]=U.useState("admin"),[Ee,Zi]=U.useState(""),[ya,ku]=U.useState(""),[Ju,ue]=U.useState(!1),[un,as]=U.useState(!1),[ki,Qa]=U.useState(!1),[Ji,is]=U.useState(""),[ls,Za]=U.useState(""),[on,oe]=U.useState(!1),[Pe,re]=U.useState(!1),[rn,ss]=U.useState(!1),[We,ga]=U.useState(""),qn=U.useRef(!1),Re=z[g]==="connected";U.useEffect(()=>{fetch("/api/onboard/status").then(B=>B.json()).then(B=>{B.userName&&p(B.userName),B.handle&&(Pt(B.handle.username),Q(B.handle.tier||"at"),Ga({username:B.handle.username,tier:B.handle.tier,url:B.handle.url}),dt(!0),jt(B.handle.url)),B.portalUser&&ns(B.portalUser),B.portalConfigured&&as(!0),B.provider&&m(B.provider),B.model&&x(B.model),B.whisperEnabled&&(ss(!0),ga(B.whisperKey||"")),qn.current=!0}).catch(()=>{qn.current=!0})},[]),U.useEffect(()=>{g!=="anthropic"||z.anthropic==="connected"||fetch("/api/auth/claude/status").then(B=>B.json()).then(B=>{B.authenticated&&Y(ot=>({...ot,anthropic:"connected"}))}).catch(()=>{})},[g]),U.useEffect(()=>{g!=="openai"||z.openai==="connected"||fetch("/api/auth/codex/status").then(B=>B.json()).then(B=>{B.authenticated&&Y(ot=>({...ot,openai:"connected"}))}).catch(()=>{})},[g]),U.useEffect(()=>{if(!xt)return;const B=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(At(!1),Y(Ve=>({...Ve,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(B)},[xt]),U.useEffect(()=>{if(ke.current&&clearTimeout(ke.current),!qn.current||ge&&nt&&Nt===ge.username)return;H(null),ut(""),E({}),dt(!1),jt("");const B=Nt.trim();if(B){if(B.length<3){H("invalid"),ut("At least 3 characters");return}return H("checking"),ke.current=setTimeout(async()=>{try{const fe=await(await fetch(`/api/handle/check/${encodeURIComponent(B)}`)).json();if(!fe.valid)H("invalid"),ut(fe.error);else{const Ve={};for(const $e of fe.handles)Ve[$e.tier]=$e.available;E(Ve),H("ready");const Pa=Fy.find($e=>Ve[$e.tier]);Pa&&!Ve[V]&&Q(Pa.tier)}}catch{H(null)}},400),()=>{ke.current&&clearTimeout(ke.current)}}},[Nt]);const Sn=B=>{Pt(B.toLowerCase().replace(/[^a-z0-9-]/g,""))},ka=async()=>{if(!(!Nt||O!=="ready"||!ht[V])){st(!0);try{const ot=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Nt,tier:V})})).json();ot.ok?(dt(!0),jt(ot.url)):(ut(ot.error||"Registration failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{st(!1)}}},va=async()=>{if(!(!Nt||O!=="ready"||!ht[V])){Ka(!0);try{const ot=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Nt,tier:V})})).json();ot.ok?(dt(!0),jt(ot.url),Ga({username:Nt,tier:V,url:ot.url}),Fe(!1)):(ut(ot.error||"Handle change failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{Ka(!1)}}},Fu=B=>{g==="openai"&&B!=="openai"&&xt&&(fetch("/api/auth/codex/cancel",{method:"POST"}),At(!1)),m(B),x(""),q(!1),G(""),J(void 0),At(!1),se(void 0)},us=async()=>{J(void 0);try{const ot=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();ot.success&&ot.authUrl?(window.open(ot.authUrl,"_blank"),q(!0)):J(ot.error||"Failed to start authentication")}catch(B){J(B.message)}},Ja=async()=>{if(K.trim()){Z(!0),J(void 0);try{const ot=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:K.trim()})})).json();ot.success?Y(fe=>({...fe,anthropic:"connected"})):J(ot.error||"Code exchange failed")}catch(B){J(B.message)}finally{Z(!1)}}},xa=async()=>{try{const B=await navigator.clipboard.readText();B&&G(B.trim())}catch{}},Pu=async()=>{lt(!0),J(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?Y(fe=>({...fe,anthropic:"connected"})):J("No active session found. Please authenticate first.")}catch{}finally{lt(!1)}},os=async()=>{At(!0),se(void 0);try{const ot=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();ot.success&&ot.authUrl?window.open(ot.authUrl,"_blank"):(At(!1),se(ot.error||"Failed to start authentication"))}catch(B){At(!1),se(B.message)}},rs=()=>{At(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Fi=Ee===ya,Fa=Ee.length>=6&&Fi,Pi=un?Ee.length===0||on&&Fa:Fa,Gn=(()=>{switch(c){case 0:return!0;case 1:return h.trim().length>0;case 2:return nt;case 3:return Pi;case 4:return!!(g&&v&&Re);case 5:return!0;default:return!1}})(),cn=()=>{Gn&&c<o-1&&d(B=>B+1)},fn=()=>{c>0&&d(B=>B-1)},Gt=B=>{B.key==="Enter"&&Gn&&cn()},ce=async()=>{N(!0);const B={userName:h.trim(),agentName:Nt.trim()||"Fluxy",provider:g,model:v,apiKey:"",whisperEnabled:rn,whisperKey:rn?We:"",portalUser:Zu.trim(),portalPass:Ee};try{u?await u(B):await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)}),l?(N(!1),d(6)):i()}catch(ot){console.error("[OnboardWizard] Onboard failed:",ot),N(!1)}},Ce="w-full bg-white/[0.05] border border-white/[0.08] text-white rounded-xl px-4 py-3 text-base outline-none input-glow placeholder:text-white/20 transition-all";return b.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[b.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),b.jsxs(Jy.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:[b.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:o},(B,ot)=>b.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${ot===c?"w-7 bg-gradient-brand":ot<c?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},ot))}),b.jsx(c2,{mode:"wait",children:b.jsxs(Jy.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&&b.jsxs("div",{className:"flex flex-col items-center text-center",children:[b.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),b.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),b.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."}),b.jsxs("button",{onClick:cn,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",b.jsx(yn,{className:"h-4 w-4"})]})]}),c===1&&b.jsxs("div",{children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),b.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),b.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[b.jsx("input",{type:"text",value:h,onChange:B=>p(B.target.value),onKeyDown:Gt,placeholder:"Enter your name",autoFocus:!0,className:Ce+" flex-1"}),b.jsx("button",{onClick:cn,disabled:!Gn,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:b.jsx(yn,{className:"h-5 w-5"})})]})]}),c===2&&b.jsxs("div",{children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),b.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."}),ge&&nt&&!Je&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Ri,{className:"h-4 w-4 text-emerald-400"}),b.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),b.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Rt})]}),b.jsxs("div",{className:"flex gap-2 mt-4",children:[b.jsxs("button",{onClick:cn,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",b.jsx(yn,{className:"h-4 w-4"})]}),b.jsx("button",{onClick:()=>{Fe(!0),dt(!1),Pt(""),H(null),E({})},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"})]})]}),Je&&!nt&&b.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[b.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),b.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",b.jsx("span",{className:"font-mono",children:ge?.url})," will be released and become available for others."]})]}),(!ge||Je||!nt)&&!(ge&&nt&&!Je)&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"relative mt-5",children:[b.jsx("input",{type:"text",value:Nt,onChange:B=>Sn(B.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:nt,className:Ce+" pr-10 font-mono"+(nt?" opacity-50":"")}),O&&Nt.length>0&&!nt&&b.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[O==="checking"&&b.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),O==="invalid"&&b.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:b.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),O==="invalid"&&$&&b.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:$}),O==="ready"&&Nt.length>0&&!nt&&b.jsx("div",{className:"space-y-2 mt-4",children:Fy.map(B=>{const fe=ht[B.tier]===!1;return b.jsxs("button",{onClick:()=>!fe&&Q(B.tier),disabled:fe,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${fe?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":V===B.tier?B.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:[b.jsx("span",{className:"font-mono text-[13px] text-white/70",children:B.label(Nt)}),fe?b.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"}):b.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${B.badgeCls}`,children:B.badge})]},B.tier)})}),nt&&b.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Ri,{className:"h-4 w-4 text-emerald-400"}),b.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),b.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Rt})]}),O==="ready"&&ht[V]&&Nt.length>0&&!nt&&b.jsx("button",{onClick:Je?va:ka,disabled:P||Xa,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||Xa?b.jsxs(b.Fragment,{children:[b.jsx(Vi,{className:"h-4 w-4 animate-spin"}),Je?"Changing...":"Claiming..."]}):b.jsxs(b.Fragment,{children:[Je?"Change Handle":"Claim & Continue",b.jsx(yn,{className:"h-4 w-4"})]})}),nt&&b.jsxs("button",{onClick:cn,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",b.jsx(yn,{className:"h-4 w-4"})]}),Je&&!nt&&b.jsx("button",{onClick:()=>{Fe(!1),Pt(ge.username),dt(!0),jt(ge.url),Q(ge.tier),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&&b.jsxs("div",{children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set a password"}),b.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."}),un&&b.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:b.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."})}),un&&b.jsxs("div",{className:"mt-5",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("input",{type:"password",value:Ji,onChange:B=>{is(B.target.value),Za(""),oe(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",autoFocus:!0,className:Ce+" flex-1"}),Ji.length>0&&!on&&b.jsx("button",{onClick:async()=>{re(!0),Za("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:Ji})})).json()).valid?oe(!0):Za("Incorrect password")}catch{Za("Could not verify")}finally{re(!1)}},disabled:Pe,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:Pe?b.jsx(Vi,{className:"h-4 w-4 animate-spin"}):"Verify"}),on&&b.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:b.jsx(Ri,{className:"h-4 w-4 text-emerald-400"})})]}),ls&&b.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:ls})]}),(!un||on)&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:un?"mt-3":"mt-5",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:un?"New password":"Password"}),b.jsx("input",{type:"password",value:Ee,onChange:B=>Zi(B.target.value),placeholder:"••••••••",autoComplete:"new-password",autoFocus:!un,onKeyDown:Gt,className:Ce}),Ee.length>0&&Ee.length<6&&b.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),b.jsxs("div",{className:"mt-3",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:un?"Confirm new password":"Confirm password"}),b.jsx("input",{type:"password",value:ya,onChange:B=>ku(B.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:Gt,className:Ce}),ya.length>0&&!Fi&&b.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),b.jsxs("button",{onClick:cn,disabled:!Gn,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",b.jsx(yn,{className:"h-4 w-4"})]})]}),c===4&&b.jsxs("div",{children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),b.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."}),b.jsx("div",{className:"flex gap-2.5 mt-4",children:vA.map(B=>b.jsxs("button",{onClick:()=>Fu(B.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${g===B.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[b.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[B.icon?b.jsx("img",{src:B.icon,alt:B.name,className:"w-8 h-8 rounded-lg"}):b.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"}),b.jsxs("div",{className:"text-center",children:[b.jsx("div",{className:"text-[13px] font-medium text-white",children:B.name}),b.jsx("div",{className:"text-[10px] text-white/30",children:B.subtitle})]})]}),z[B.id]==="connected"?b.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:b.jsx(Ri,{className:"h-2.5 w-2.5 text-emerald-400"})}):g===B.id?b.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},B.id))}),b.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),g==="anthropic"&&b.jsxs("div",{className:"space-y-2.5",children:[Re&&b.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:b.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),!Re&&b.jsxs(b.Fragment,{children:[it&&b.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:b.jsx("p",{className:"text-red-400/90 text-[12px]",children:it})}),b.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((B,ot)=>b.jsxs("div",{className:"flex items-start gap-2",children:[b.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:ot+1}),b.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:B})]},ot))}),b.jsx("button",{onClick:us,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?b.jsxs(b.Fragment,{children:[b.jsx(Op,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):b.jsxs(b.Fragment,{children:["Authenticate with Anthropic",b.jsx(yn,{className:"h-3.5 w-3.5 opacity-60"})]})}),b.jsxs("div",{className:"relative",children:[b.jsx("input",{type:"text",value:K,onChange:B=>G(B.target.value),onKeyDown:B=>B.key==="Enter"&&Ja(),placeholder:"Paste your code here...",className:"w-full bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none input-glow placeholder:text-white/20 transition-all"+" pr-10 font-mono"}),b.jsx("button",{onClick:xa,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:b.jsx(dx,{className:"h-3.5 w-3.5"})})]}),b.jsx("button",{onClick:Ja,disabled:!K.trim()||k,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:k?b.jsxs(b.Fragment,{children:[b.jsx(Vi,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),b.jsxs("button",{onClick:Pu,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?b.jsx(Vi,{className:"h-3 w-3 animate-spin"}):b.jsx(Ax,{className:"h-3 w-3"}),F?"Checking...":"I'm already authenticated"]})]})]}),g==="openai"&&b.jsxs("div",{className:"space-y-2.5",children:[Re&&b.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:b.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),!Re&&b.jsxs(b.Fragment,{children:[Bt&&b.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:b.jsx("p",{className:"text-red-400/90 text-[12px]",children:Bt})}),b.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((B,ot)=>b.jsxs("div",{className:"flex items-start gap-2",children:[b.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:ot+1}),b.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:B})]},ot))}),b.jsx("button",{onClick:os,disabled:xt,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:xt?b.jsxs(b.Fragment,{children:[b.jsx(Vi,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):b.jsxs(b.Fragment,{children:["Authenticate with ChatGPT",b.jsx(yn,{className:"h-3.5 w-3.5 opacity-60"})]})}),xt&&b.jsx("button",{onClick:rs,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),Re&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),b.jsx(bA,{models:xA[g]||[],value:v,onChange:x})]}),Re&&b.jsxs("button",{onClick:cn,disabled:!Gn,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",b.jsx(yn,{className:"h-4 w-4"})]})]}),c===5&&b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),b.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"})]}),b.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),b.jsx("button",{onClick:()=>ss(B=>!B),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${rn?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:b.jsxs("div",{className:"flex items-center gap-3.5",children:[b.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),b.jsxs("div",{className:"flex-1",children:[b.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),b.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."})]}),b.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${rn?"bg-gradient-brand":"bg-white/[0.08]"}`,children:b.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${rn?"translate-x-[18px]":"translate-x-0"}`})})]})}),rn&&b.jsxs("div",{className:"mt-3",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),b.jsx("input",{type:"password",value:We,onChange:B=>ga(B.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:Ce+" font-mono text-[13px]"}),We.length>0&&!We.startsWith("sk-")&&b.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),We.length>0&&We.startsWith("sk-")&&We.length<20&&b.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),b.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:[b.jsx(Sx,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),b.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."})]})]}),b.jsx("button",{onClick:ce,disabled:T||rn&&(!We.startsWith("sk-")||We.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?b.jsxs(b.Fragment,{children:[b.jsx(Vi,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):b.jsxs(b.Fragment,{children:["Complete Setup",b.jsx(yn,{className:"h-4 w-4"})]})}),!rn&&b.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]}),c===6&&l&&b.jsxs("div",{className:"flex flex-col items-center text-center",children:[b.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:b.jsx(Ri,{className:"h-8 w-8 text-emerald-400"})}),b.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"All Set!"}),b.jsx("p",{className:"text-white/40 text-[13px] mt-2 leading-relaxed max-w-[340px]",children:"Your agent is live and ready. From now on, access it using your custom URL below."}),b.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:[b.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:Rt}),b.jsx("button",{onClick:()=>{const B=Rt.startsWith("http")?Rt:`https://${Rt}`;navigator.clipboard.writeText(B),ue(!0),setTimeout(()=>ue(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Ju?b.jsx(Ri,{className:"h-4 w-4 text-emerald-400"}):b.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[b.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),b.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),b.jsxs("div",{className:"w-full mt-3",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block text-left",children:"Your password"}),b.jsxs("div",{className:"flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[b.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:ki?Ee:"•".repeat(Math.max(Ee.length,8))}),b.jsx("button",{onClick:()=>Qa(B=>!B),className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:ki?b.jsx(yx,{className:"h-4 w-4"}):b.jsx(vx,{className:"h-4 w-4"})})]})]}),b.jsxs("button",{onClick:()=>{const B=Rt.startsWith("http")?Rt:`https://${Rt}`;(window.top||window).location.href=B},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:["Go to your agent",b.jsx(Op,{className:"h-4 w-4"})]}),b.jsx("p",{className:"text-white/20 text-[11px] mt-3 leading-relaxed",children:"You'll be redirected to your custom URL."})]})]},c)}),c>0&&c<o-1&&!(c===6&&l)&&b.jsx("div",{className:"px-8 pb-5 -mt-3",children:b.jsx("button",{onClick:fn,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{yn as A,Vi as L,Sx as M,EA as O,SA as R,c2 as a,TA as b,bn as c,Py as g,b as j,Jy as m,U as r};