fluxy-bot 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-fluxy/assets/{fluxy-B3uetGlY.js → fluxy-CRSo6Knd.js} +1 -1
- package/dist-fluxy/assets/globals-BWMp2Xbb.js +18 -0
- package/dist-fluxy/assets/globals-C8d9vAbE.css +1 -0
- package/dist-fluxy/assets/{onboard-CLFtmM94.js → onboard-CsZAcwbT.js} +1 -1
- package/dist-fluxy/fluxy.html +3 -3
- package/dist-fluxy/onboard.html +3 -3
- package/package.json +1 -1
- package/supervisor/chat/OnboardWizard.tsx +371 -280
- package/dist-fluxy/assets/globals-C2PnXkaM.js +0 -18
- package/dist-fluxy/assets/globals-SDpY_go3.css +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function o(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(c){if(c.ep)return;c.ep=!0;const h=o(c);fetch(c.href,h)}})();function u0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ec={exports:{}},hs={};var Op;function $x(){if(Op)return hs;Op=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(u,c,h){var d=null;if(h!==void 0&&(d=""+h),c.key!==void 0&&(d=""+c.key),"key"in c){h={};for(var p in c)p!=="key"&&(h[p]=c[p])}else h=c;return c=h.ref,{$$typeof:i,type:u,key:d,ref:c!==void 0?c:null,props:h}}return hs.Fragment=l,hs.jsx=o,hs.jsxs=o,hs}var zp;function Ix(){return zp||(zp=1,Ec.exports=$x()),Ec.exports}var v=Ix(),wc={exports:{}},rt={};var Rp;function t1(){if(Rp)return rt;Rp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function D(E){return E===null||typeof E!="object"?null:(E=T&&E[T]||E["@@iterator"],typeof E=="function"?E:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,X={};function q(E,U,Q){this.props=E,this.context=U,this.refs=X,this.updater=Q||V}q.prototype.isReactComponent={},q.prototype.setState=function(E,U){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,U,"setState")},q.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function K(){}K.prototype=q.prototype;function G(E,U,Q){this.props=E,this.context=U,this.refs=X,this.updater=Q||V}var J=G.prototype=new K;J.constructor=G,Y(J,q.prototype),J.isPureReactComponent=!0;var Z=Array.isArray;function lt(){}var k={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function st(E,U,Q){var P=Q.ref;return{$$typeof:i,type:E,key:U,ref:P!==void 0?P:null,props:Q}}function bt(E,U){return st(E.type,U,E.props)}function Et(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function Lt(E){var U={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return U[Q]})}var ae=/\/+/g;function vt(E,U){return typeof E=="object"&&E!==null&&E.key!=null?Lt(""+E.key):U.toString(36)}function $t(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(lt,lt):(E.status="pending",E.then(function(U){E.status==="pending"&&(E.status="fulfilled",E.value=U)},function(U){E.status==="pending"&&(E.status="rejected",E.reason=U)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function R(E,U,Q,P,ot){var at=typeof E;(at==="undefined"||at==="boolean")&&(E=null);var ht=!1;if(E===null)ht=!0;else switch(at){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(E.$$typeof){case i:case l:ht=!0;break;case x:return ht=E._init,R(ht(E._payload),U,Q,P,ot)}}if(ht)return ot=ot(E),ht=P===""?"."+vt(E,0):P,Z(ot)?(Q="",ht!=null&&(Q=ht.replace(ae,"$&/")+"/"),R(ot,U,Q,"",function(sn){return sn})):ot!=null&&(Et(ot)&&(ot=bt(ot,Q+(ot.key==null||E&&E.key===ot.key?"":(""+ot.key).replace(ae,"$&/")+"/")+ht)),U.push(ot)),1;ht=0;var Kt=P===""?".":P+":";if(Z(E))for(var Dt=0;Dt<E.length;Dt++)P=E[Dt],at=Kt+vt(P,Dt),ht+=R(P,U,Q,at,ot);else if(Dt=D(E),typeof Dt=="function")for(E=Dt.call(E),Dt=0;!(P=E.next()).done;)P=P.value,at=Kt+vt(P,Dt++),ht+=R(P,U,Q,at,ot);else if(at==="object"){if(typeof E.then=="function")return R($t(E),U,Q,P,ot);throw U=String(E),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ht}function H(E,U,Q){if(E==null)return E;var P=[],ot=0;return R(E,P,"","",function(at){return U.call(Q,at,ot++)}),P}function $(E){if(E._status===-1){var U=E._result;U=U(),U.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=U)}if(E._status===1)return E._result.default;throw E._result}var ut=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},dt={map:H,forEach:function(E,U,Q){H(E,function(){U.apply(this,arguments)},Q)},count:function(E){var U=0;return H(E,function(){U++}),U},toArray:function(E){return H(E,function(U){return U})||[]},only:function(E){if(!Et(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return rt.Activity=b,rt.Children=dt,rt.Component=q,rt.Fragment=o,rt.Profiler=c,rt.PureComponent=G,rt.StrictMode=u,rt.Suspense=g,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,rt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return k.H.useMemoCache(E)}},rt.cache=function(E){return function(){return E.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(E,U,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=Y({},E.props),ot=E.key;if(U!=null)for(at in U.key!==void 0&&(ot=""+U.key),U)!F.call(U,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&U.ref===void 0||(P[at]=U[at]);var at=arguments.length-2;if(at===1)P.children=Q;else if(1<at){for(var ht=Array(at),Kt=0;Kt<at;Kt++)ht[Kt]=arguments[Kt+2];P.children=ht}return st(E.type,ot,P)},rt.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:h,_context:E},E},rt.createElement=function(E,U,Q){var P,ot={},at=null;if(U!=null)for(P in U.key!==void 0&&(at=""+U.key),U)F.call(U,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ot[P]=U[P]);var ht=arguments.length-2;if(ht===1)ot.children=Q;else if(1<ht){for(var Kt=Array(ht),Dt=0;Dt<ht;Dt++)Kt[Dt]=arguments[Dt+2];ot.children=Kt}if(E&&E.defaultProps)for(P in ht=E.defaultProps,ht)ot[P]===void 0&&(ot[P]=ht[P]);return st(E,at,ot)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(E){return{$$typeof:p,render:E}},rt.isValidElement=Et,rt.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:$}},rt.memo=function(E,U){return{$$typeof:m,type:E,compare:U===void 0?null:U}},rt.startTransition=function(E){var U=k.T,Q={};k.T=Q;try{var P=E(),ot=k.S;ot!==null&&ot(Q,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(lt,ut)}catch(at){ut(at)}finally{U!==null&&Q.types!==null&&(U.types=Q.types),k.T=U}},rt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},rt.use=function(E){return k.H.use(E)},rt.useActionState=function(E,U,Q){return k.H.useActionState(E,U,Q)},rt.useCallback=function(E,U){return k.H.useCallback(E,U)},rt.useContext=function(E){return k.H.useContext(E)},rt.useDebugValue=function(){},rt.useDeferredValue=function(E,U){return k.H.useDeferredValue(E,U)},rt.useEffect=function(E,U){return k.H.useEffect(E,U)},rt.useEffectEvent=function(E){return k.H.useEffectEvent(E)},rt.useId=function(){return k.H.useId()},rt.useImperativeHandle=function(E,U,Q){return k.H.useImperativeHandle(E,U,Q)},rt.useInsertionEffect=function(E,U){return k.H.useInsertionEffect(E,U)},rt.useLayoutEffect=function(E,U){return k.H.useLayoutEffect(E,U)},rt.useMemo=function(E,U){return k.H.useMemo(E,U)},rt.useOptimistic=function(E,U){return k.H.useOptimistic(E,U)},rt.useReducer=function(E,U,Q){return k.H.useReducer(E,U,Q)},rt.useRef=function(E){return k.H.useRef(E)},rt.useState=function(E){return k.H.useState(E)},rt.useSyncExternalStore=function(E,U,Q){return k.H.useSyncExternalStore(E,U,Q)},rt.useTransition=function(){return k.H.useTransition()},rt.version="19.2.4",rt}var Vp;function Sf(){return Vp||(Vp=1,wc.exports=t1()),wc.exports}var z=Sf();const NA=u0(z);var Cc={exports:{}},ms={},Mc={exports:{}},jc={};var _p;function e1(){return _p||(_p=1,(function(i){function l(R,H){var $=R.length;R.push(H);t:for(;0<$;){var ut=$-1>>>1,dt=R[ut];if(0<c(dt,H))R[ut]=H,R[$]=dt,$=ut;else break t}}function o(R){return R.length===0?null:R[0]}function u(R){if(R.length===0)return null;var H=R[0],$=R.pop();if($!==H){R[0]=$;t:for(var ut=0,dt=R.length,E=dt>>>1;ut<E;){var U=2*(ut+1)-1,Q=R[U],P=U+1,ot=R[P];if(0>c(Q,$))P<dt&&0>c(ot,Q)?(R[ut]=ot,R[P]=$,ut=P):(R[ut]=Q,R[U]=$,ut=U);else if(P<dt&&0>c(ot,$))R[ut]=ot,R[P]=$,ut=P;else break t}}return H}function c(R,H){var $=R.sortIndex-H.sortIndex;return $!==0?$:R.id-H.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var d=Date,p=d.now();i.unstable_now=function(){return d.now()-p}}var g=[],m=[],x=1,b=null,T=3,D=!1,V=!1,Y=!1,X=!1,q=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function J(R){for(var H=o(m);H!==null;){if(H.callback===null)u(m);else if(H.startTime<=R)u(m),H.sortIndex=H.expirationTime,l(g,H);else break;H=o(m)}}function Z(R){if(Y=!1,J(R),!V)if(o(g)!==null)V=!0,lt||(lt=!0,Lt());else{var H=o(m);H!==null&&$t(Z,H.startTime-R)}}var lt=!1,k=-1,F=5,st=-1;function bt(){return X?!0:!(i.unstable_now()-st<F)}function Et(){if(X=!1,lt){var R=i.unstable_now();st=R;var H=!0;try{t:{V=!1,Y&&(Y=!1,K(k),k=-1),D=!0;var $=T;try{e:{for(J(R),b=o(g);b!==null&&!(b.expirationTime>R&&bt());){var ut=b.callback;if(typeof ut=="function"){b.callback=null,T=b.priorityLevel;var dt=ut(b.expirationTime<=R);if(R=i.unstable_now(),typeof dt=="function"){b.callback=dt,J(R),H=!0;break e}b===o(g)&&u(g),J(R)}else u(g);b=o(g)}if(b!==null)H=!0;else{var E=o(m);E!==null&&$t(Z,E.startTime-R),H=!1}}break t}finally{b=null,T=$,D=!1}H=void 0}}finally{H?Lt():lt=!1}}}var Lt;if(typeof G=="function")Lt=function(){G(Et)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,vt=ae.port2;ae.port1.onmessage=Et,Lt=function(){vt.postMessage(null)}}else Lt=function(){q(Et,0)};function $t(R,H){k=q(function(){R(i.unstable_now())},H)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(R){R.callback=null},i.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<R?Math.floor(1e3/R):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(R){switch(T){case 1:case 2:case 3:var H=3;break;default:H=T}var $=T;T=H;try{return R()}finally{T=$}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(R,H){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var $=T;T=R;try{return H()}finally{T=$}},i.unstable_scheduleCallback=function(R,H,$){var ut=i.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ut+$:ut):$=ut,R){case 1:var dt=-1;break;case 2:dt=250;break;case 5:dt=1073741823;break;case 4:dt=1e4;break;default:dt=5e3}return dt=$+dt,R={id:x++,callback:H,priorityLevel:R,startTime:$,expirationTime:dt,sortIndex:-1},$>ut?(R.sortIndex=$,l(m,R),o(g)===null&&R===o(m)&&(Y?(K(k),k=-1):Y=!0,$t(Z,$-ut))):(R.sortIndex=dt,l(g,R),V||D||(V=!0,lt||(lt=!0,Lt()))),R},i.unstable_shouldYield=bt,i.unstable_wrapCallback=function(R){var H=T;return function(){var $=T;T=H;try{return R.apply(this,arguments)}finally{T=$}}}})(jc)),jc}var Up;function n1(){return Up||(Up=1,Mc.exports=e1()),Mc.exports}var Nc={exports:{}},he={};var Bp;function a1(){if(Bp)return he;Bp=1;var i=Sf();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var u={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function h(g,m,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:g,containerInfo:m,implementation:x}}var d=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=u,he.createPortal=function(g,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return h(g,m,null,x)},he.flushSync=function(g){var m=d.T,x=u.p;try{if(d.T=null,u.p=2,g)return g()}finally{d.T=m,u.p=x,u.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,u.d.C(g,m))},he.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},he.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,D=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:D}):x==="script"&&u.d.X(g,{crossOrigin:b,integrity:T,fetchPriority:D,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 x=p(m.as,m.crossOrigin);u.d.M(g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(g)},he.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin);u.d.L(g,x,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},he.preloadModule=function(g,m){if(typeof g=="string")if(m){var x=p(m.as,m.crossOrigin);u.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(g)},he.requestFormReset=function(g){u.d.r(g)},he.unstable_batchedUpdates=function(g,m){return g(m)},he.useFormState=function(g,m,x){return d.H.useFormState(g,m,x)},he.useFormStatus=function(){return d.H.useHostTransitionStatus()},he.version="19.2.4",he}var Lp;function i1(){if(Lp)return Nc.exports;Lp=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(),Nc.exports=a1(),Nc.exports}var Hp;function l1(){if(Hp)return ms;Hp=1;var i=n1(),l=Sf(),o=i1();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(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 d(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(h(t)!==t)throw Error(u(188))}function m(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(u(188));return e!==t?null:t}for(var n=t,a=e;;){var s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return g(s),t;if(r===a)return g(s),e;r=r.sibling}throw Error(u(188))}if(n.return!==a.return)n=s,a=r;else{for(var f=!1,y=s.child;y;){if(y===n){f=!0,n=s,a=r;break}if(y===a){f=!0,a=s,n=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===n){f=!0,n=r,a=s;break}if(y===a){f=!0,a=r,n=s;break}y=y.sibling}if(!f)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?t:e}function x(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=x(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,T=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),G=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),st=Symbol.for("react.activity"),bt=Symbol.for("react.memo_cache_sentinel"),Et=Symbol.iterator;function Lt(t){return t===null||typeof t!="object"?null:(t=Et&&t[Et]||t["@@iterator"],typeof t=="function"?t:null)}var ae=Symbol.for("react.client.reference");function vt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ae?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case q:return"Profiler";case X:return"StrictMode";case Z:return"Suspense";case lt:return"SuspenseList";case st:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case G:return t.displayName||"Context";case K:return(t._context.displayName||"Context")+".Consumer";case J:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:vt(t.type)||"Memo";case F:e=t._payload,t=t._init;try{return vt(t(e))}catch{}}return null}var $t=Array.isArray,R=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ut=[],dt=-1;function E(t){return{current:t}}function U(t){0>dt||(t.current=ut[dt],ut[dt]=null,dt--)}function Q(t,e){dt++,ut[dt]=t.current,t.current=e}var P=E(null),ot=E(null),at=E(null),ht=E(null);function Kt(t,e){switch(Q(at,e),Q(ot,t),Q(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?tp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=tp(e),t=ep(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(P),Q(P,t)}function Dt(){U(P),U(ot),U(at)}function sn(t){t.memoizedState!==null&&Q(ht,t);var e=P.current,n=ep(e,t.type);e!==n&&(Q(ot,t),Q(P,n))}function ie(t){ot.current===t&&(U(P),U(ot)),ht.current===t&&(U(ht),rs._currentValue=$)}var hl,di;function Mn(t){if(hl===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);hl=e&&e[1]||"",di=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+hl+t+di}var ml=!1;function pl(t,e){if(!t||ml)return"";ml=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(O){var N=O}Reflect.construct(t,[],L)}else{try{L.call()}catch(O){N=O}t.call(L.prototype)}}else{try{throw Error()}catch(O){N=O}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(O){if(O&&N&&typeof O.stack=="string")return[O.stack,N.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),f=r[0],y=r[1];if(f&&y){var S=f.split(`
|
|
4
|
+
`),M=y.split(`
|
|
5
|
+
`);for(s=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(a===S.length||s===M.length)for(a=S.length-1,s=M.length-1;1<=a&&0<=s&&S[a]!==M[s];)s--;for(;1<=a&&0<=s;a--,s--)if(S[a]!==M[s]){if(a!==1||s!==1)do if(a--,s--,0>s||S[a]!==M[s]){var _=`
|
|
6
|
+
`+S[a].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=a&&0<=s);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Mn(n):""}function Xe(t,e){switch(t.tag){case 26:case 27:case 5:return Mn(t.type);case 16:return Mn("Lazy");case 13:return t.child!==e&&e!==null?Mn("Suspense Fallback"):Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 15:return pl(t.type,!1);case 11:return pl(t.type.render,!1);case 1:return pl(t.type,!0);case 31:return Mn("Activity");default:return""}}function ta(t){try{var e="",n=null;do e+=Xe(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var ze=Object.prototype.hasOwnProperty,hi=i.unstable_scheduleCallback,Ke=i.unstable_cancelCallback,yl=i.unstable_shouldYield,Os=i.unstable_requestPaint,fe=i.unstable_now,gu=i.unstable_getCurrentPriorityLevel,zs=i.unstable_ImmediatePriority,pe=i.unstable_UserBlockingPriority,mi=i.unstable_NormalPriority,gl=i.unstable_LowPriority,Rs=i.unstable_IdlePriority,Vs=i.log,pi=i.unstable_setDisableYieldValue,le=null,ye=null;function on(t){if(typeof Vs=="function"&&pi(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(le,t)}catch{}}var ge=Math.clz32?Math.clz32:_s,ea=Math.log,vu=Math.LN2;function _s(t){return t>>>=0,t===0?32:31-(ea(t)/vu|0)|0}var jn=256,Nn=262144,Ua=4194304;function gn(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 Ba(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=gn(a):(f&=y,f!==0?s=gn(f):n||(n=y&~t,n!==0&&(s=gn(n))))):(y=a&~r,y!==0?s=gn(y):f!==0?s=gn(f):n||(n=a&~t,n!==0&&(s=gn(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 Se(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Us(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 Qe(){var t=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),t}function yi(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function de(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Dn(t,e,n,a,s,r){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,S=t.expirationTimes,M=t.hiddenUpdates;for(n=f&~n;0<n;){var _=31-ge(n),L=1<<_;y[_]=0,S[_]=-1;var N=M[_];if(N!==null)for(M[_]=null,_=0;_<N.length;_++){var O=N[_];O!==null&&(O.lane&=-536870913)}n&=~L}a!==0&&vl(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function vl(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ge(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function La(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ge(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function gi(t,e){var n=e&-e;return n=(n&42)!==0?1:na(n),(n&(t.suspendedLanes|e))!==0?0:n}function na(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 xl(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ha(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Ep(t.type))}function Ya(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var Ze=Math.random().toString(36).slice(2),Ut="__reactFiber$"+Ze,ee="__reactProps$"+Ze,On="__reactContainer$"+Ze,vi="__reactEvents$"+Ze,xi="__reactListeners$"+Ze,vn="__reactHandles$"+Ze,bl="__reactResources$"+Ze,zn="__reactMarker$"+Ze;function qa(t){delete t[Ut],delete t[ee],delete t[vi],delete t[xi],delete t[vn]}function Rn(t){var e=t[Ut];if(e)return e;for(var n=t.parentNode;n;){if(e=n[On]||n[Ut]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=up(t);t!==null;){if(n=t[Ut])return n;t=up(t)}return e}t=n,n=t.parentNode}return null}function aa(t){if(t=t[Ut]||t[On]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Vn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function un(t){var e=t[bl];return e||(e=t[bl]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Yt(t){t[zn]=!0}var Sl=new Set,Ga={};function _n(t,e){ia(t,e),ia(t+"Capture",e)}function ia(t,e){for(Ga[t]=e,t=0;t<e.length;t++)Sl.add(e[t])}var Xa=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]*$"),la={},bi={};function Un(t){return ze.call(bi,t)?!0:ze.call(la,t)?!1:Xa.test(t)?bi[t]=!0:(la[t]=!0,!1)}function sa(t,e,n){if(Un(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 Si(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 rn(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 Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Tl(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function xu(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ti(t){if(!t._valueTracker){var e=Tl(t)?"checked":"value";t._valueTracker=xu(t,e,""+t[e])}}function Bs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Tl(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Ai(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 bu=/[\n"\\]/g;function Ae(t){return t.replace(bu,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ei(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=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?El(t,f,Te(e)):n!=null?El(t,f,Te(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=""+Te(y):t.removeAttribute("name")}function Al(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)){Ti(t);return}n=n!=null?""+Te(n):"",e=e!=null?""+Te(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),Ti(t)}function El(t,e,n){e==="number"&&Ai(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Re(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=""+Te(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 ke(t,e,n){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Te(n):""}function Ls(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(u(92));if($t(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Te(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Ti(t)}function xn(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Su=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 Je(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||Su.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function wl(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var s in e)a=e[s],e.hasOwnProperty(s)&&n[s]!==a&&Je(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&Je(t,r,e[r])}function j(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 tt=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"]]),zt=/^[\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 Ve(t){return zt.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ee(){}var oa=null;function Tu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var wi=null,Ci=null;function If(t){var e=aa(t);if(e&&(t=e.stateNode)){var n=t[ee]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ei(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="'+Ae(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[ee]||null;if(!s)throw Error(u(90));Ei(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&&Bs(a)}break t;case"textarea":ke(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Re(t,!!n.multiple,e,!1)}}}var Au=!1;function td(t,e,n){if(Au)return t(e,n);Au=!0;try{var a=t(e);return a}finally{if(Au=!1,(wi!==null||Ci!==null)&&(Co(),wi&&(e=wi,t=Ci,Ci=wi=null,If(e),t)))for(e=0;e<t.length;e++)If(t[e])}}function Cl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ee]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(u(231,e,typeof n));return n}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eu=!1;if(Bn)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Eu=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Eu=!1}var ua=null,wu=null,Hs=null;function ed(){if(Hs)return Hs;var t,e=wu,n=e.length,a,s="value"in ua?ua.value:ua.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 Hs=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 qs(){return!0}function nd(){return!1}function we(t){function e(n,a,s,r,f){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?qs:nd,this.isPropagationStopped=nd,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=qs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qs)},persist:function(){},isPersistent:qs}),e}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=we(Ka),jl=b({},Ka,{view:0,detail:0}),Pg=we(jl),Cu,Mu,Nl,Xs=b({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nu,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!==Nl&&(Nl&&t.type==="mousemove"?(Cu=t.screenX-Nl.screenX,Mu=t.screenY-Nl.screenY):Mu=Cu=0,Nl=t),Cu)},movementY:function(t){return"movementY"in t?t.movementY:Mu}}),ad=we(Xs),Wg=b({},Xs,{dataTransfer:0}),$g=we(Wg),Ig=b({},jl,{relatedTarget:0}),ju=we(Ig),tv=b({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),ev=we(tv),nv=b({},Ka,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),av=we(nv),iv=b({},Ka,{data:0}),id=we(iv),lv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sv={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"},ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ov[t])?!!e[t]:!1}function Nu(){return uv}var rv=b({},jl,{key:function(t){if(t.key){var e=lv[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"?sv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nu,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}}),cv=we(rv),fv=b({},Xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ld=we(fv),dv=b({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nu}),hv=we(dv),mv=b({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),pv=we(mv),yv=b({},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}),gv=we(yv),vv=b({},Ka,{newState:0,oldState:0}),xv=we(vv),bv=[9,13,27,32],Du=Bn&&"CompositionEvent"in window,Dl=null;Bn&&"documentMode"in document&&(Dl=document.documentMode);var Sv=Bn&&"TextEvent"in window&&!Dl,sd=Bn&&(!Du||Dl&&8<Dl&&11>=Dl),od=" ",ud=!1;function rd(t,e){switch(t){case"keyup":return bv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Mi=!1;function Tv(t,e){switch(t){case"compositionend":return cd(e);case"keypress":return e.which!==32?null:(ud=!0,od);case"textInput":return t=e.data,t===od&&ud?null:t;default:return null}}function Av(t,e){if(Mi)return t==="compositionend"||!Du&&rd(t,e)?(t=ed(),Hs=wu=ua=null,Mi=!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 sd&&e.locale!=="ko"?null:e.data;default:return null}}var Ev={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 fd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ev[t.type]:e==="textarea"}function dd(t,e,n,a){wi?Ci?Ci.push(a):Ci=[a]:wi=a,e=Ro(e,"onChange"),0<e.length&&(n=new Gs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Ol=null,zl=null;function wv(t){Jm(t,0)}function Ks(t){var e=Vn(t);if(Bs(e))return t}function hd(t,e){if(t==="change")return e}var md=!1;if(Bn){var Ou;if(Bn){var zu="oninput"in document;if(!zu){var pd=document.createElement("div");pd.setAttribute("oninput","return;"),zu=typeof pd.oninput=="function"}Ou=zu}else Ou=!1;md=Ou&&(!document.documentMode||9<document.documentMode)}function yd(){Ol&&(Ol.detachEvent("onpropertychange",gd),zl=Ol=null)}function gd(t){if(t.propertyName==="value"&&Ks(zl)){var e=[];dd(e,zl,t,Tu(t)),td(wv,e)}}function Cv(t,e,n){t==="focusin"?(yd(),Ol=e,zl=n,Ol.attachEvent("onpropertychange",gd)):t==="focusout"&&yd()}function Mv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ks(zl)}function jv(t,e){if(t==="click")return Ks(e)}function Nv(t,e){if(t==="input"||t==="change")return Ks(e)}function Dv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _e=typeof Object.is=="function"?Object.is:Dv;function Rl(t,e){if(_e(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!ze.call(e,s)||!_e(t[s],e[s]))return!1}return!0}function vd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function xd(t,e){var n=vd(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=vd(n)}}function bd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?bd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Sd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ai(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=Ai(t.document)}return e}function Ru(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 Ov=Bn&&"documentMode"in document&&11>=document.documentMode,ji=null,Vu=null,Vl=null,_u=!1;function Td(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_u||ji==null||ji!==Ai(a)||(a=ji,"selectionStart"in a&&Ru(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}),Vl&&Rl(Vl,a)||(Vl=a,a=Ro(Vu,"onSelect"),0<a.length&&(e=new Gs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=ji)))}function Qa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ni={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionrun:Qa("Transition","TransitionRun"),transitionstart:Qa("Transition","TransitionStart"),transitioncancel:Qa("Transition","TransitionCancel"),transitionend:Qa("Transition","TransitionEnd")},Uu={},Ad={};Bn&&(Ad=document.createElement("div").style,"AnimationEvent"in window||(delete Ni.animationend.animation,delete Ni.animationiteration.animation,delete Ni.animationstart.animation),"TransitionEvent"in window||delete Ni.transitionend.transition);function Za(t){if(Uu[t])return Uu[t];if(!Ni[t])return t;var e=Ni[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ad)return Uu[t]=e[n];return t}var Ed=Za("animationend"),wd=Za("animationiteration"),Cd=Za("animationstart"),zv=Za("transitionrun"),Rv=Za("transitionstart"),Vv=Za("transitioncancel"),Md=Za("transitionend"),jd=new Map,Bu="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(" ");Bu.push("scrollEnd");function cn(t,e){jd.set(t,e),_n(e,[t])}var Qs=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)},Fe=[],Di=0,Lu=0;function Zs(){for(var t=Di,e=Lu=Di=0;e<t;){var n=Fe[e];Fe[e++]=null;var a=Fe[e];Fe[e++]=null;var s=Fe[e];Fe[e++]=null;var r=Fe[e];if(Fe[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&&Nd(n,s,r)}}function ks(t,e,n,a){Fe[Di++]=t,Fe[Di++]=e,Fe[Di++]=n,Fe[Di++]=a,Lu|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Hu(t,e,n,a){return ks(t,e,n,a),Js(t)}function ka(t,e){return ks(t,null,null,e),Js(t)}function Nd(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var s=!1,r=t.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(s=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,s&&e!==null&&(s=31-ge(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function Js(t){if(50<ns)throw ns=0,Jr=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Oi={};function _v(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 Ue(t,e,n,a){return new _v(t,e,n,a)}function Yu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ln(t,e){var n=t.alternate;return n===null?(n=Ue(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 Dd(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 Fs(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")Yu(t)&&(f=1);else if(typeof t=="string")f=Yx(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case st:return t=Ue(31,n,e,s),t.elementType=st,t.lanes=r,t;case Y:return Ja(n.children,s,r,e);case X:f=8,s|=24;break;case q:return t=Ue(12,n,e,s|2),t.elementType=q,t.lanes=r,t;case Z:return t=Ue(13,n,e,s),t.elementType=Z,t.lanes=r,t;case lt:return t=Ue(19,n,e,s),t.elementType=lt,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:f=10;break t;case K:f=9;break t;case J:f=11;break t;case k:f=14;break t;case F:f=16,a=null;break t}f=29,n=Error(u(130,t===null?"null":typeof t,"")),a=null}return e=Ue(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function Ja(t,e,n,a){return t=Ue(7,t,a,e),t.lanes=n,t}function qu(t,e,n){return t=Ue(6,t,null,e),t.lanes=n,t}function Od(t){var e=Ue(18,null,null,0);return e.stateNode=t,e}function Gu(t,e,n){return e=Ue(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var zd=new WeakMap;function Pe(t,e){if(typeof t=="object"&&t!==null){var n=zd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ta(e)},zd.set(t,e),e)}return{value:t,source:e,stack:ta(e)}}var zi=[],Ri=0,Ps=null,_l=0,We=[],$e=0,ra=null,bn=1,Sn="";function Hn(t,e){zi[Ri++]=_l,zi[Ri++]=Ps,Ps=t,_l=e}function Rd(t,e,n){We[$e++]=bn,We[$e++]=Sn,We[$e++]=ra,ra=t;var a=bn;t=Sn;var s=32-ge(a)-1;a&=~(1<<s),n+=1;var r=32-ge(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,bn=1<<32-ge(e)+s|n<<s|a,Sn=r+t}else bn=1<<r|n<<s|a,Sn=t}function Xu(t){t.return!==null&&(Hn(t,1),Rd(t,1,0))}function Ku(t){for(;t===Ps;)Ps=zi[--Ri],zi[Ri]=null,_l=zi[--Ri],zi[Ri]=null;for(;t===ra;)ra=We[--$e],We[$e]=null,Sn=We[--$e],We[$e]=null,bn=We[--$e],We[$e]=null}function Vd(t,e){We[$e++]=bn,We[$e++]=Sn,We[$e++]=ra,bn=e.id,Sn=e.overflow,ra=t}var se=null,Vt=null,xt=!1,ca=null,Ie=!1,Qu=Error(u(519));function fa(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ul(Pe(e,t)),Qu}function _d(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Ut]=t,e[ee]=a,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<is.length;n++)pt(is[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),Al(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),Ls(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||$m(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=Ee),e=!0):e=!1,e||fa(t,!0)}function Ud(t){for(se=t.return;se;)switch(se.tag){case 5:case 31:case 13:Ie=!1;return;case 27:case 3:Ie=!0;return;default:se=se.return}}function Vi(t){if(t!==se)return!1;if(!xt)return Ud(t),xt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||rc(t.type,t.memoizedProps)),n=!n),n&&Vt&&fa(t),Ud(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=op(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=op(t)}else e===27?(e=Vt,wa(t.type)?(t=mc,mc=null,Vt=t):Vt=e):Vt=se?en(t.stateNode.nextSibling):null;return!0}function Fa(){Vt=se=null,xt=!1}function Zu(){var t=ca;return t!==null&&(Ne===null?Ne=t:Ne.push.apply(Ne,t),ca=null),t}function Ul(t){ca===null?ca=[t]:ca.push(t)}var ku=E(null),Pa=null,Yn=null;function da(t,e,n){Q(ku,e._currentValue),e._currentValue=n}function qn(t){t._currentValue=ku.current,U(ku)}function Ju(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 Fu(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),Ju(r.return,n,t),a||(f=null);break t}r=y.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(u(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),Ju(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 _i(t,e,n,a){t=null;for(var s=e,r=!1;s!==null;){if(!r){if((s.flags&524288)!==0)r=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(u(387));if(f=f.memoizedProps,f!==null){var y=s.type;_e(s.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(s===ht.current){if(f=s.alternate,f===null)throw Error(u(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(rs):t=[rs])}s=s.return}t!==null&&Fu(e,t,n,a),e.flags|=262144}function Ws(t){for(t=t.firstContext;t!==null;){if(!_e(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Wa(t){Pa=t,Yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return Bd(Pa,t)}function $s(t,e){return Pa===null&&Wa(t),Bd(t,e)}function Bd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Yn===null){if(t===null)throw Error(u(308));Yn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Yn=Yn.next=e;return n}var Uv=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()})}},Bv=i.unstable_scheduleCallback,Lv=i.unstable_NormalPriority,kt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pu(){return{controller:new Uv,data:new Map,refCount:0}}function Bl(t){t.refCount--,t.refCount===0&&Bv(Lv,function(){t.controller.abort()})}var Ll=null,Wu=0,Ui=0,Bi=null;function Hv(t,e){if(Ll===null){var n=Ll=[];Wu=0,Ui=tc(),Bi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Wu++,e.then(Ld,Ld),e}function Ld(){if(--Wu===0&&Ll!==null){Bi!==null&&(Bi.status="fulfilled");var t=Ll;Ll=null,Ui=0,Bi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Yv(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 Hd=R.S;R.S=function(t,e){Tm=fe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Hv(t,e),Hd!==null&&Hd(t,e)};var $a=E(null);function $u(){var t=$a.current;return t!==null?t:Ot.pooledCache}function Is(t,e){e===null?Q($a,$a.current):Q($a,e.pool)}function Yd(){var t=$u();return t===null?null:{parent:kt._currentValue,pool:t}}var Li=Error(u(460)),Iu=Error(u(474)),to=Error(u(542)),eo={then:function(){}};function qd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Gd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ee,Ee),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Kd(t),t;default:if(typeof e.status=="string")e.then(Ee,Ee);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=a}},function(a){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Kd(t),t}throw ti=e,Li}}function Ia(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ti=n,Li):n}}var ti=null;function Xd(){if(ti===null)throw Error(u(459));var t=ti;return ti=null,t}function Kd(t){if(t===Li||t===to)throw Error(u(483))}var Hi=null,Hl=0;function no(t){var e=Hl;return Hl+=1,Hi===null&&(Hi=[]),Gd(Hi,t,e)}function Yl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ao(t,e){throw e.$$typeof===T?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Qd(t){function e(w,A){if(t){var C=w.deletions;C===null?(w.deletions=[A],w.flags|=16):C.push(A)}}function n(w,A){if(!t)return null;for(;A!==null;)e(w,A),A=A.sibling;return null}function a(w){for(var A=new Map;w!==null;)w.key!==null?A.set(w.key,w):A.set(w.index,w),w=w.sibling;return A}function s(w,A){return w=Ln(w,A),w.index=0,w.sibling=null,w}function r(w,A,C){return w.index=C,t?(C=w.alternate,C!==null?(C=C.index,C<A?(w.flags|=67108866,A):C):(w.flags|=67108866,A)):(w.flags|=1048576,A)}function f(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function y(w,A,C,B){return A===null||A.tag!==6?(A=qu(C,w.mode,B),A.return=w,A):(A=s(A,C),A.return=w,A)}function S(w,A,C,B){var nt=C.type;return nt===Y?_(w,A,C.props.children,B,C.key):A!==null&&(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===F&&Ia(nt)===A.type)?(A=s(A,C.props),Yl(A,C),A.return=w,A):(A=Fs(C.type,C.key,C.props,null,w.mode,B),Yl(A,C),A.return=w,A)}function M(w,A,C,B){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=Gu(C,w.mode,B),A.return=w,A):(A=s(A,C.children||[]),A.return=w,A)}function _(w,A,C,B,nt){return A===null||A.tag!==7?(A=Ja(C,w.mode,B,nt),A.return=w,A):(A=s(A,C),A.return=w,A)}function L(w,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=qu(""+A,w.mode,C),A.return=w,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case D:return C=Fs(A.type,A.key,A.props,null,w.mode,C),Yl(C,A),C.return=w,C;case V:return A=Gu(A,w.mode,C),A.return=w,A;case F:return A=Ia(A),L(w,A,C)}if($t(A)||Lt(A))return A=Ja(A,w.mode,C,null),A.return=w,A;if(typeof A.then=="function")return L(w,no(A),C);if(A.$$typeof===G)return L(w,$s(w,A),C);ao(w,A)}return null}function N(w,A,C,B){var nt=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return nt!==null?null:y(w,A,""+C,B);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case D:return C.key===nt?S(w,A,C,B):null;case V:return C.key===nt?M(w,A,C,B):null;case F:return C=Ia(C),N(w,A,C,B)}if($t(C)||Lt(C))return nt!==null?null:_(w,A,C,B,null);if(typeof C.then=="function")return N(w,A,no(C),B);if(C.$$typeof===G)return N(w,A,$s(w,C),B);ao(w,C)}return null}function O(w,A,C,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return w=w.get(C)||null,y(A,w,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case D:return w=w.get(B.key===null?C:B.key)||null,S(A,w,B,nt);case V:return w=w.get(B.key===null?C:B.key)||null,M(A,w,B,nt);case F:return B=Ia(B),O(w,A,C,B,nt)}if($t(B)||Lt(B))return w=w.get(C)||null,_(A,w,B,nt,null);if(typeof B.then=="function")return O(w,A,C,no(B),nt);if(B.$$typeof===G)return O(w,A,C,$s(A,B),nt);ao(A,B)}return null}function W(w,A,C,B){for(var nt=null,St=null,et=A,ft=A=0,gt=null;et!==null&&ft<C.length;ft++){et.index>ft?(gt=et,et=null):gt=et.sibling;var Tt=N(w,et,C[ft],B);if(Tt===null){et===null&&(et=gt);break}t&&et&&Tt.alternate===null&&e(w,et),A=r(Tt,A,ft),St===null?nt=Tt:St.sibling=Tt,St=Tt,et=gt}if(ft===C.length)return n(w,et),xt&&Hn(w,ft),nt;if(et===null){for(;ft<C.length;ft++)et=L(w,C[ft],B),et!==null&&(A=r(et,A,ft),St===null?nt=et:St.sibling=et,St=et);return xt&&Hn(w,ft),nt}for(et=a(et);ft<C.length;ft++)gt=O(et,w,ft,C[ft],B),gt!==null&&(t&>.alternate!==null&&et.delete(gt.key===null?ft:gt.key),A=r(gt,A,ft),St===null?nt=gt:St.sibling=gt,St=gt);return t&&et.forEach(function(Da){return e(w,Da)}),xt&&Hn(w,ft),nt}function it(w,A,C,B){if(C==null)throw Error(u(151));for(var nt=null,St=null,et=A,ft=A=0,gt=null,Tt=C.next();et!==null&&!Tt.done;ft++,Tt=C.next()){et.index>ft?(gt=et,et=null):gt=et.sibling;var Da=N(w,et,Tt.value,B);if(Da===null){et===null&&(et=gt);break}t&&et&&Da.alternate===null&&e(w,et),A=r(Da,A,ft),St===null?nt=Da:St.sibling=Da,St=Da,et=gt}if(Tt.done)return n(w,et),xt&&Hn(w,ft),nt;if(et===null){for(;!Tt.done;ft++,Tt=C.next())Tt=L(w,Tt.value,B),Tt!==null&&(A=r(Tt,A,ft),St===null?nt=Tt:St.sibling=Tt,St=Tt);return xt&&Hn(w,ft),nt}for(et=a(et);!Tt.done;ft++,Tt=C.next())Tt=O(et,w,ft,Tt.value,B),Tt!==null&&(t&&Tt.alternate!==null&&et.delete(Tt.key===null?ft:Tt.key),A=r(Tt,A,ft),St===null?nt=Tt:St.sibling=Tt,St=Tt);return t&&et.forEach(function(Wx){return e(w,Wx)}),xt&&Hn(w,ft),nt}function Nt(w,A,C,B){if(typeof C=="object"&&C!==null&&C.type===Y&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case D:t:{for(var nt=C.key;A!==null;){if(A.key===nt){if(nt=C.type,nt===Y){if(A.tag===7){n(w,A.sibling),B=s(A,C.props.children),B.return=w,w=B;break t}}else if(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===F&&Ia(nt)===A.type){n(w,A.sibling),B=s(A,C.props),Yl(B,C),B.return=w,w=B;break t}n(w,A);break}else e(w,A);A=A.sibling}C.type===Y?(B=Ja(C.props.children,w.mode,B,C.key),B.return=w,w=B):(B=Fs(C.type,C.key,C.props,null,w.mode,B),Yl(B,C),B.return=w,w=B)}return f(w);case V:t:{for(nt=C.key;A!==null;){if(A.key===nt)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(w,A.sibling),B=s(A,C.children||[]),B.return=w,w=B;break t}else{n(w,A);break}else e(w,A);A=A.sibling}B=Gu(C,w.mode,B),B.return=w,w=B}return f(w);case F:return C=Ia(C),Nt(w,A,C,B)}if($t(C))return W(w,A,C,B);if(Lt(C)){if(nt=Lt(C),typeof nt!="function")throw Error(u(150));return C=nt.call(C),it(w,A,C,B)}if(typeof C.then=="function")return Nt(w,A,no(C),B);if(C.$$typeof===G)return Nt(w,A,$s(w,C),B);ao(w,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(w,A.sibling),B=s(A,C),B.return=w,w=B):(n(w,A),B=qu(C,w.mode,B),B.return=w,w=B),f(w)):n(w,A)}return function(w,A,C,B){try{Hl=0;var nt=Nt(w,A,C,B);return Hi=null,nt}catch(et){if(et===Li||et===to)throw et;var St=Ue(29,et,null,w.mode);return St.lanes=B,St.return=w,St}}}var ei=Qd(!0),Zd=Qd(!1),ha=!1;function tr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function er(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 ma(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function pa(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(At&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=Js(t),Nd(t,null,n),e}return ks(t,a,e,n),Js(t)}function ql(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,La(t,n)}}function nr(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 ar=!1;function Gl(){if(ar){var t=Bi;if(t!==null)throw t}}function Xl(t,e,n,a){ar=!1;var s=t.updateQueue;ha=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var S=y,M=S.next;S.next=null,f===null?r=M:f.next=M,f=S;var _=t.alternate;_!==null&&(_=_.updateQueue,y=_.lastBaseUpdate,y!==f&&(y===null?_.firstBaseUpdate=M:y.next=M,_.lastBaseUpdate=S))}if(r!==null){var L=s.baseState;f=0,_=M=S=null,y=r;do{var N=y.lane&-536870913,O=N!==y.lane;if(O?(yt&N)===N:(a&N)===N){N!==0&&N===Ui&&(ar=!0),_!==null&&(_=_.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var W=t,it=y;N=e;var Nt=n;switch(it.tag){case 1:if(W=it.payload,typeof W=="function"){L=W.call(Nt,L,N);break t}L=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=it.payload,N=typeof W=="function"?W.call(Nt,L,N):W,N==null)break t;L=b({},L,N);break t;case 2:ha=!0}}N=y.callback,N!==null&&(t.flags|=64,O&&(t.flags|=8192),O=s.callbacks,O===null?s.callbacks=[N]:O.push(N))}else O={lane:N,tag:y.tag,payload:y.payload,callback:y.callback,next:null},_===null?(M=_=O,S=L):_=_.next=O,f|=N;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;O=y,y=O.next,O.next=null,s.lastBaseUpdate=O,s.shared.pending=null}}while(!0);_===null&&(S=L),s.baseState=S,s.firstBaseUpdate=M,s.lastBaseUpdate=_,r===null&&(s.shared.lanes=0),ba|=f,t.lanes=f,t.memoizedState=L}}function kd(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Jd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)kd(n[t],e)}var Yi=E(null),io=E(0);function Fd(t,e){t=Pn,Q(io,t),Q(Yi,e),Pn=t|e.baseLanes}function ir(){Q(io,Pn),Q(Yi,Yi.current)}function lr(){Pn=io.current,U(Yi),U(io)}var Be=E(null),tn=null;function ya(t){var e=t.alternate;Q(Qt,Qt.current&1),Q(Be,t),tn===null&&(e===null||Yi.current!==null||e.memoizedState!==null)&&(tn=t)}function sr(t){Q(Qt,Qt.current),Q(Be,t),tn===null&&(tn=t)}function Pd(t){t.tag===22?(Q(Qt,Qt.current),Q(Be,t),tn===null&&(tn=t)):ga()}function ga(){Q(Qt,Qt.current),Q(Be,Be.current)}function Le(t){U(Be),tn===t&&(tn=null),U(Qt)}var Qt=E(0);function lo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||dc(n)||hc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Gn=0,ct=null,Mt=null,Jt=null,so=!1,qi=!1,ni=!1,oo=0,Kl=0,Gi=null,qv=0;function qt(){throw Error(u(321))}function or(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!_e(t[n],e[n]))return!1;return!0}function ur(t,e,n,a,s,r){return Gn=r,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?Rh:Ar,ni=!1,r=n(a,s),ni=!1,qi&&(r=$d(e,n,a,s)),Wd(t),r}function Wd(t){R.H=kl;var e=Mt!==null&&Mt.next!==null;if(Gn=0,Jt=Mt=ct=null,so=!1,Kl=0,Gi=null,e)throw Error(u(300));t===null||Ft||(t=t.dependencies,t!==null&&Ws(t)&&(Ft=!0))}function $d(t,e,n,a){ct=t;var s=0;do{if(qi&&(Gi=null),Kl=0,qi=!1,25<=s)throw Error(u(301));if(s+=1,Jt=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)}R.H=Vh,r=e(n,a)}while(qi);return r}function Gv(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?Ql(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ct.flags|=1024),e}function rr(){var t=oo!==0;return oo=0,t}function cr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function fr(t){if(so){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}so=!1}Gn=0,Jt=Mt=ct=null,qi=!1,Kl=oo=0,Gi=null}function ve(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function Zt(){if(Mt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Jt===null?ct.memoizedState:Jt.next;if(e!==null)Jt=e,Mt=t;else{if(t===null)throw ct.alternate===null?Error(u(467)):Error(u(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function uo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ql(t){var e=Kl;return Kl+=1,Gi===null&&(Gi=[]),t=Gd(Gi,t,e),e=ct,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?Rh:Ar),t}function ro(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ql(t);if(t.$$typeof===G)return oe(t)}throw Error(u(438,String(t)))}function dr(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=uo(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=bt;return e.index++,n}function Xn(t,e){return typeof e=="function"?e(t):e}function co(t){var e=Zt();return hr(e,Mt,t)}function hr(t,e,n){var a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var s=t.baseQueue,r=a.pending;if(r!==null){if(s!==null){var f=s.next;s.next=r.next,r.next=f}e.baseQueue=s=r,a.pending=null}if(r=t.baseState,s===null)t.memoizedState=r;else{e=s.next;var y=f=null,S=null,M=e,_=!1;do{var L=M.lane&-536870913;if(L!==M.lane?(yt&L)===L:(Gn&L)===L){var N=M.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),L===Ui&&(_=!0);else if((Gn&N)===N){M=M.next,N===Ui&&(_=!0);continue}else L={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(y=S=L,f=r):S=S.next=L,ct.lanes|=N,ba|=N;L=M.action,ni&&n(r,L),r=M.hasEagerState?M.eagerState:n(r,L)}else N={lane:L,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(y=S=N,f=r):S=S.next=N,ct.lanes|=L,ba|=L;M=M.next}while(M!==null&&M!==e);if(S===null?f=r:S.next=y,!_e(r,t.memoizedState)&&(Ft=!0,_&&(n=Bi,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 mr(t){var e=Zt(),n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=t;var a=n.dispatch,s=n.pending,r=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do r=t(r,f.action),f=f.next;while(f!==s);_e(r,e.memoizedState)||(Ft=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function Id(t,e,n){var a=ct,s=Zt(),r=xt;if(r){if(n===void 0)throw Error(u(407));n=n()}else n=e();var f=!_e((Mt||s).memoizedState,n);if(f&&(s.memoizedState=n,Ft=!0),s=s.queue,gr(nh.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Jt!==null&&Jt.memoizedState.tag&1){if(a.flags|=2048,Xi(9,{destroy:void 0},eh.bind(null,a,s,n,e),null),Ot===null)throw Error(u(349));r||(Gn&127)!==0||th(a,e,n)}return n}function th(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=uo(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function eh(t,e,n,a){e.value=n,e.getSnapshot=a,ah(e)&&ih(t)}function nh(t,e,n){return n(function(){ah(e)&&ih(t)})}function ah(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!_e(t,n)}catch{return!0}}function ih(t){var e=ka(t,2);e!==null&&De(e,t,2)}function pr(t){var e=ve();if(typeof t=="function"){var n=t;if(t=n(),ni){on(!0);try{n()}finally{on(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:t},e}function lh(t,e,n,a){return t.baseState=n,hr(t,Mt,typeof a=="function"?a:Xn)}function Xv(t,e,n,a,s){if(mo(t))throw Error(u(485));if(t=e.action,t!==null){var r={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};R.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,sh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function sh(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=R.T,f={};R.T=f;try{var y=n(s,a),S=R.S;S!==null&&S(f,y),oh(t,e,y)}catch(M){yr(t,e,M)}finally{r!==null&&f.types!==null&&(r.types=f.types),R.T=r}}else try{r=n(s,a),oh(t,e,r)}catch(M){yr(t,e,M)}}function oh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){uh(t,e,a)},function(a){return yr(t,e,a)}):uh(t,e,n)}function uh(t,e,n){e.status="fulfilled",e.value=n,rh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,sh(t,n)))}function yr(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,rh(e),e=e.next;while(e!==a)}t.action=null}function rh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ch(t,e){return e}function fh(t,e){if(xt){var n=Ot.formState;if(n!==null){t:{var a=ct;if(xt){if(Vt){e:{for(var s=Vt,r=Ie;s.nodeType!==8;){if(!r){s=null;break e}if(s=en(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Vt=en(s.nextSibling),a=s.data==="F!";break t}}fa(a)}a=!1}a&&(e=n[0])}}return n=ve(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ch,lastRenderedState:e},n.queue=a,n=Dh.bind(null,ct,a),a.dispatch=n,a=pr(!1),r=Tr.bind(null,ct,!1,a.queue),a=ve(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=Xv.bind(null,ct,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function dh(t){var e=Zt();return hh(e,Mt,t)}function hh(t,e,n){if(e=hr(t,e,ch)[0],t=co(Xn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Ql(e)}catch(f){throw f===Li?to:f}else a=e;e=Zt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Xi(9,{destroy:void 0},Kv.bind(null,s,n),null)),[a,r,t]}function Kv(t,e){t.action=e}function mh(t){var e=Zt(),n=Mt;if(n!==null)return hh(e,n,t);Zt(),e=e.memoizedState,n=Zt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Xi(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=uo(),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 ph(){return Zt().memoizedState}function fo(t,e,n,a){var s=ve();ct.flags|=t,s.memoizedState=Xi(1|e,{destroy:void 0},n,a===void 0?null:a)}function ho(t,e,n,a){var s=Zt();a=a===void 0?null:a;var r=s.memoizedState.inst;Mt!==null&&a!==null&&or(a,Mt.memoizedState.deps)?s.memoizedState=Xi(e,r,n,a):(ct.flags|=t,s.memoizedState=Xi(1|e,r,n,a))}function yh(t,e){fo(8390656,8,t,e)}function gr(t,e){ho(2048,8,t,e)}function Qv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=uo(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function gh(t){var e=Zt().memoizedState;return Qv({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function vh(t,e){return ho(4,2,t,e)}function xh(t,e){return ho(4,4,t,e)}function bh(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 Sh(t,e,n){n=n!=null?n.concat([t]):null,ho(4,4,bh.bind(null,e,t),n)}function vr(){}function Th(t,e){var n=Zt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&or(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Ah(t,e){var n=Zt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&or(e,a[1]))return a[0];if(a=t(),ni){on(!0);try{t()}finally{on(!1)}}return n.memoizedState=[a,e],a}function xr(t,e,n){return n===void 0||(Gn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Em(),ct.lanes|=t,ba|=t,n)}function Eh(t,e,n,a){return _e(n,e)?n:Yi.current!==null?(t=xr(t,n,a),_e(t,e)||(Ft=!0),t):(Gn&42)===0||(Gn&1073741824)!==0&&(yt&261930)===0?(Ft=!0,t.memoizedState=n):(t=Em(),ct.lanes|=t,ba|=t,e)}function wh(t,e,n,a,s){var r=H.p;H.p=r!==0&&8>r?r:8;var f=R.T,y={};R.T=y,Tr(t,!1,e,n);try{var S=s(),M=R.S;if(M!==null&&M(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var _=Yv(S,a);Zl(t,e,_,qe(t))}else Zl(t,e,a,qe(t))}catch(L){Zl(t,e,{then:function(){},status:"rejected",reason:L},qe())}finally{H.p=r,f!==null&&y.types!==null&&(f.types=y.types),R.T=f}}function Zv(){}function br(t,e,n,a){if(t.tag!==5)throw Error(u(476));var s=Ch(t).queue;wh(t,s,e,$,n===null?Zv:function(){return Mh(t),n(a)})}function Ch(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:$},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Mh(t){var e=Ch(t);e.next===null&&(e=t.alternate.memoizedState),Zl(t,e.next.queue,{},qe())}function Sr(){return oe(rs)}function jh(){return Zt().memoizedState}function Nh(){return Zt().memoizedState}function kv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=qe();t=ma(n);var a=pa(e,t,n);a!==null&&(De(a,e,n),ql(a,e,n)),e={cache:Pu()},t.payload=e;return}e=e.return}}function Jv(t,e,n){var a=qe();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mo(t)?Oh(e,n):(n=Hu(t,e,n,a),n!==null&&(De(n,t,a),zh(n,e,a)))}function Dh(t,e,n){var a=qe();Zl(t,e,n,a)}function Zl(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mo(t))Oh(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,_e(y,f))return ks(t,e,s,0),Ot===null&&Zs(),!1}catch{}if(n=Hu(t,e,s,a),n!==null)return De(n,t,a),zh(n,e,a),!0}return!1}function Tr(t,e,n,a){if(a={lane:2,revertLane:tc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mo(t)){if(e)throw Error(u(479))}else e=Hu(t,n,a,2),e!==null&&De(e,t,2)}function mo(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Oh(t,e){qi=so=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function zh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,La(t,n)}}var kl={readContext:oe,use:ro,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};kl.useEffectEvent=qt;var Rh={readContext:oe,use:ro,useCallback:function(t,e){return ve().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:yh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,fo(4194308,4,bh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return fo(4194308,4,t,e)},useInsertionEffect:function(t,e){fo(4,2,t,e)},useMemo:function(t,e){var n=ve();e=e===void 0?null:e;var a=t();if(ni){on(!0);try{t()}finally{on(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ve();if(n!==void 0){var s=n(e);if(ni){on(!0);try{n(e)}finally{on(!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=Jv.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=ve();return t={current:t},e.memoizedState=t},useState:function(t){t=pr(t);var e=t.queue,n=Dh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:vr,useDeferredValue:function(t,e){var n=ve();return xr(n,t,e)},useTransition:function(){var t=pr(!1);return t=wh.bind(null,ct,t.queue,!0,!1),ve().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,s=ve();if(xt){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),Ot===null)throw Error(u(349));(yt&127)!==0||th(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,yh(nh.bind(null,a,r,t),[t]),a.flags|=2048,Xi(9,{destroy:void 0},eh.bind(null,a,r,n,e),null),n},useId:function(){var t=ve(),e=Ot.identifierPrefix;if(xt){var n=Sn,a=bn;n=(a&~(1<<32-ge(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=oo++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=qv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Sr,useFormState:fh,useActionState:fh,useOptimistic:function(t){var e=ve();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Tr.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:dr,useCacheRefresh:function(){return ve().memoizedState=kv.bind(null,ct)},useEffectEvent:function(t){var e=ve(),n={impl:t};return e.memoizedState=n,function(){if((At&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Ar={readContext:oe,use:ro,useCallback:Th,useContext:oe,useEffect:gr,useImperativeHandle:Sh,useInsertionEffect:vh,useLayoutEffect:xh,useMemo:Ah,useReducer:co,useRef:ph,useState:function(){return co(Xn)},useDebugValue:vr,useDeferredValue:function(t,e){var n=Zt();return Eh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=co(Xn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Ql(t),e]},useSyncExternalStore:Id,useId:jh,useHostTransitionStatus:Sr,useFormState:dh,useActionState:dh,useOptimistic:function(t,e){var n=Zt();return lh(n,Mt,t,e)},useMemoCache:dr,useCacheRefresh:Nh};Ar.useEffectEvent=gh;var Vh={readContext:oe,use:ro,useCallback:Th,useContext:oe,useEffect:gr,useImperativeHandle:Sh,useInsertionEffect:vh,useLayoutEffect:xh,useMemo:Ah,useReducer:mr,useRef:ph,useState:function(){return mr(Xn)},useDebugValue:vr,useDeferredValue:function(t,e){var n=Zt();return Mt===null?xr(n,t,e):Eh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=mr(Xn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Ql(t),e]},useSyncExternalStore:Id,useId:jh,useHostTransitionStatus:Sr,useFormState:mh,useActionState:mh,useOptimistic:function(t,e){var n=Zt();return Mt!==null?lh(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:dr,useCacheRefresh:Nh};Vh.useEffectEvent=gh;function Er(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var wr={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=qe(),s=ma(a);s.payload=e,n!=null&&(s.callback=n),e=pa(t,s,a),e!==null&&(De(e,t,a),ql(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=qe(),s=ma(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=pa(t,s,a),e!==null&&(De(e,t,a),ql(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=qe(),a=ma(n);a.tag=2,e!=null&&(a.callback=e),e=pa(t,a,n),e!==null&&(De(e,t,n),ql(e,t,n))}};function _h(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?!Rl(n,a)||!Rl(s,r):!0}function Uh(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&&wr.enqueueReplaceState(e,e.state,null)}function ai(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=b({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Bh(t){Qs(t)}function Lh(t){console.error(t)}function Hh(t){Qs(t)}function po(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Yh(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 Cr(t,e,n){return n=ma(n),n.tag=3,n.payload={element:null},n.callback=function(){po(t,e)},n}function qh(t){return t=ma(t),t.tag=3,t}function Gh(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(){Yh(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Yh(e,n,a),typeof s!="function"&&(Sa===null?Sa=new Set([this]):Sa.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Fv(t,e,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&_i(e,n,s,!0),n=Be.current,n!==null){switch(n.tag){case 31:case 13:return tn===null?Mo():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===eo?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Wr(t,a,s)),!1;case 22:return n.flags|=65536,a===eo?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)),Wr(t,a,s)),!1}throw Error(u(435,n.tag))}return Wr(t,a,s),Mo(),!1}if(xt)return e=Be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==Qu&&(t=Error(u(422),{cause:a}),Ul(Pe(t,n)))):(a!==Qu&&(e=Error(u(423),{cause:a}),Ul(Pe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Pe(a,n),s=Cr(t.stateNode,a,s),nr(t,s),Gt!==4&&(Gt=2)),!1;var r=Error(u(520),{cause:a});if(r=Pe(r,n),es===null?es=[r]:es.push(r),Gt!==4&&(Gt=2),e===null)return!0;a=Pe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Cr(n.stateNode,a,t),nr(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"&&(Sa===null||!Sa.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=qh(s),Gh(s,t,n,a),nr(n,s),!1}n=n.return}while(n!==null);return!1}var Mr=Error(u(461)),Ft=!1;function ue(t,e,n,a){e.child=t===null?Zd(e,null,n,a):ei(e,t.child,n,a)}function Xh(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=ur(t,e,n,f,r,s),y=rr(),t!==null&&!Ft?(cr(t,e,s),Kn(t,e,s)):(xt&&y&&Xu(e),e.flags|=1,ue(t,e,a,s),e.child)}function Kh(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!Yu(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Qh(t,e,r,a,s)):(t=Fs(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!_r(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:Rl,n(f,a)&&t.ref===e.ref)return Kn(t,e,s)}return e.flags|=1,t=Ln(r,a),t.ref=e.ref,t.return=e,e.child=t}function Qh(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(Rl(r,a)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=a=r,_r(t,s))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,Kn(t,e,s)}return jr(t,e,n,a,s)}function Zh(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 kh(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Is(e,r!==null?r.cachePool:null),r!==null?Fd(e,r):ir(),Pd(e);else return a=e.lanes=536870912,kh(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Is(e,r.cachePool),Fd(e,r),ga(),e.memoizedState=null):(t!==null&&Is(e,null),ir(),ga());return ue(t,e,s,n),e.child}function Jl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function kh(t,e,n,a,s){var r=$u();return r=r===null?null:{parent:kt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Is(e,null),ir(),Pd(e),t!==null&&_i(t,e,a,!0),e.childLanes=s,null}function yo(t,e){return e=vo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Jh(t,e,n){return ei(e,t.child,null,n),t=yo(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function Pv(t,e,n){var a=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(a.mode==="hidden")return t=yo(e,a),e.lanes=536870912,Jl(null,t);if(sr(e),(t=Vt)?(t=sp(t,Ie),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ra!==null?{id:bn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},n=Od(t),n.return=e,e.child=n,se=e,Vt=null)):t=null,t===null)throw fa(e);return e.lanes=536870912,null}return yo(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(sr(e),s)if(e.flags&256)e.flags&=-257,e=Jh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Ft||_i(t,e,n,!1),s=(n&t.childLanes)!==0,Ft||s){if(a=Ot,a!==null&&(f=gi(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,ka(t,f),De(a,t,f),Mr;Mo(),e=Jh(t,e,n)}else t=r.treeContext,Vt=en(f.nextSibling),se=e,xt=!0,ca=null,Ie=!1,t!==null&&Vd(e,t),e=yo(e,a),e.flags|=4096;return e}return t=Ln(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function go(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function jr(t,e,n,a,s){return Wa(e),n=ur(t,e,n,a,void 0,s),a=rr(),t!==null&&!Ft?(cr(t,e,s),Kn(t,e,s)):(xt&&a&&Xu(e),e.flags|=1,ue(t,e,n,s),e.child)}function Fh(t,e,n,a,s,r){return Wa(e),e.updateQueue=null,n=$d(e,a,n,s),Wd(t),a=rr(),t!==null&&!Ft?(cr(t,e,r),Kn(t,e,r)):(xt&&a&&Xu(e),e.flags|=1,ue(t,e,n,r),e.child)}function Ph(t,e,n,a,s){if(Wa(e),e.stateNode===null){var r=Oi,f=n.contextType;typeof f=="object"&&f!==null&&(r=oe(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=wr,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},tr(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?oe(f):Oi,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Er(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&&wr.enqueueReplaceState(r,r.state,null),Xl(e,a,r,s),Gl(),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=ai(n,y);r.props=S;var M=r.context,_=n.contextType;f=Oi,typeof _=="object"&&_!==null&&(f=oe(_));var L=n.getDerivedStateFromProps;_=typeof L=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,_||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||M!==f)&&Uh(e,r,a,f),ha=!1;var N=e.memoizedState;r.state=N,Xl(e,a,r,s),Gl(),M=e.memoizedState,y||N!==M||ha?(typeof L=="function"&&(Er(e,n,L,a),M=e.memoizedState),(S=ha||_h(e,n,S,a,N,M,f))?(_||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=M),r.props=a,r.state=M,r.context=f,a=S):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,er(t,e),f=e.memoizedProps,_=ai(n,f),r.props=_,L=e.pendingProps,N=r.context,M=n.contextType,S=Oi,typeof M=="object"&&M!==null&&(S=oe(M)),y=n.getDerivedStateFromProps,(M=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==L||N!==S)&&Uh(e,r,a,S),ha=!1,N=e.memoizedState,r.state=N,Xl(e,a,r,s),Gl();var O=e.memoizedState;f!==L||N!==O||ha||t!==null&&t.dependencies!==null&&Ws(t.dependencies)?(typeof y=="function"&&(Er(e,n,y,a),O=e.memoizedState),(_=ha||_h(e,n,_,a,N,O,S)||t!==null&&t.dependencies!==null&&Ws(t.dependencies))?(M||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,O,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,O,S)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=O),r.props=a,r.state=O,r.context=S,a=_):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,go(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=ei(e,t.child,null,s),e.child=ei(e,null,n,s)):ue(t,e,n,s),e.memoizedState=r.state,t=e.child):t=Kn(t,e,s),t}function Wh(t,e,n,a){return Fa(),e.flags|=256,ue(t,e,n,a),e.child}var Nr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dr(t){return{baseLanes:t,cachePool:Yd()}}function Or(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ye),t}function $h(t,e,n){var a=e.pendingProps,s=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(s?ya(e):ga(),(t=Vt)?(t=sp(t,Ie),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ra!==null?{id:bn,overflow:Sn}:null,retryLane:536870912,hydrationErrors:null},n=Od(t),n.return=e,e.child=n,se=e,Vt=null)):t=null,t===null)throw fa(e);return hc(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(ga(),s=e.mode,y=vo({mode:"hidden",children:y},s),a=Ja(a,s,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=Dr(n),a.childLanes=Or(t,f,n),e.memoizedState=Nr,Jl(null,a)):(ya(e),zr(e,y))}var S=t.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(r)e.flags&256?(ya(e),e.flags&=-257,e=Rr(t,e,n)):e.memoizedState!==null?(ga(),e.child=t.child,e.flags|=128,e=null):(ga(),y=a.fallback,s=e.mode,a=vo({mode:"visible",children:a.children},s),y=Ja(y,s,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,ei(e,t.child,null,n),a=e.child,a.memoizedState=Dr(n),a.childLanes=Or(t,f,n),e.memoizedState=Nr,e=Jl(null,a));else if(ya(e),hc(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var M=f.dgst;f=M,a=Error(u(419)),a.stack="",a.digest=f,Ul({value:a,source:null,stack:null}),e=Rr(t,e,n)}else if(Ft||_i(t,e,n,!1),f=(n&t.childLanes)!==0,Ft||f){if(f=Ot,f!==null&&(a=gi(f,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,ka(t,a),De(f,t,a),Mr;dc(y)||Mo(),e=Rr(t,e,n)}else dc(y)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Vt=en(y.nextSibling),se=e,xt=!0,ca=null,Ie=!1,t!==null&&Vd(e,t),e=zr(e,a.children),e.flags|=4096);return e}return s?(ga(),y=a.fallback,s=e.mode,S=t.child,M=S.sibling,a=Ln(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,M!==null?y=Ln(M,y):(y=Ja(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,Jl(null,a),a=e.child,y=t.child.memoizedState,y===null?y=Dr(n):(s=y.cachePool,s!==null?(S=kt._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Yd(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=Or(t,f,n),e.memoizedState=Nr,Jl(t.child,a)):(ya(e),n=t.child,t=n.sibling,n=Ln(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function zr(t,e){return e=vo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function vo(t,e){return t=Ue(22,t,null,e),t.lanes=0,t}function Rr(t,e,n){return ei(e,t.child,null,n),t=zr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Ih(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Ju(t.return,e,n)}function Vr(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 tm(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=Qt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,Q(Qt,f),ue(t,e,a,n),a=xt?_l:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ih(t,n,e);else if(t.tag===19)Ih(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&&lo(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Vr(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&&lo(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Vr(e,!0,n,null,r,a);break;case"together":Vr(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Kn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ba|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(_i(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=Ln(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Ln(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function _r(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ws(t)))}function Wv(t,e,n){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),da(e,kt,t.memoizedState.cache),Fa();break;case 27:case 5:sn(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:da(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,sr(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ya(e),e.flags|=128,null):(n&e.child.childLanes)!==0?$h(t,e,n):(ya(e),t=Kn(t,e,n),t!==null?t.sibling:null);ya(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(_i(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return tm(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,Zh(t,e,n,e.pendingProps);case 24:da(e,kt,t.memoizedState.cache)}return Kn(t,e,n)}function em(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!_r(t,n)&&(e.flags&128)===0)return Ft=!1,Wv(t,e,n);Ft=(t.flags&131072)!==0}else Ft=!1,xt&&(e.flags&1048576)!==0&&Rd(e,_l,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Ia(e.elementType),e.type=t,typeof t=="function")Yu(t)?(a=ai(t,a),e.tag=1,e=Ph(null,e,t,a,n)):(e.tag=0,e=jr(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===J){e.tag=11,e=Xh(null,e,t,a,n);break t}else if(s===k){e.tag=14,e=Kh(null,e,t,a,n);break t}}throw e=vt(t)||t,Error(u(306,e,""))}}return e;case 0:return jr(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=ai(a,e.pendingProps),Ph(t,e,a,s,n);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,er(t,e),Xl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,da(e,kt,a),a!==r.cache&&Fu(e,[kt],n,!0),Gl(),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=Wh(t,e,a,n);break t}else if(a!==s){s=Pe(Error(u(424)),e),Ul(s),e=Wh(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=en(t.firstChild),se=e,xt=!0,ca=null,Ie=!0,n=Zd(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fa(),a===s){e=Kn(t,e,n);break t}ue(t,e,a,n)}e=e.child}return e;case 26:return go(t,e),t===null?(n=dp(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,a=Vo(at.current).createElement(n),a[Ut]=e,a[ee]=t,re(a,n,t),Yt(a),e.stateNode=a):e.memoizedState=dp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return sn(e),t===null&&xt&&(a=e.stateNode=rp(e.type,e.pendingProps,at.current),se=e,Ie=!0,s=Vt,wa(e.type)?(mc=s,Vt=en(a.firstChild)):Vt=s),ue(t,e,e.pendingProps.children,n),go(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((s=a=Vt)&&(a=Mx(a,e.type,e.pendingProps,Ie),a!==null?(e.stateNode=a,se=e,Vt=en(a.firstChild),Ie=!1,s=!0):s=!1),s||fa(e)),sn(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,rc(s,r)?a=null:f!==null&&rc(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=ur(t,e,Gv,null,null,n),rs._currentValue=s),go(t,e),ue(t,e,a,n),e.child;case 6:return t===null&&xt&&((t=n=Vt)&&(n=jx(n,e.pendingProps,Ie),n!==null?(e.stateNode=n,se=e,Vt=null,t=!0):t=!1),t||fa(e)),null;case 13:return $h(t,e,n);case 4:return Kt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ei(e,null,a,n):ue(t,e,a,n),e.child;case 11:return Xh(t,e,e.type,e.pendingProps,n);case 7:return ue(t,e,e.pendingProps,n),e.child;case 8:return ue(t,e,e.pendingProps.children,n),e.child;case 12:return ue(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,da(e,e.type,a.value),ue(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,Wa(e),s=oe(s),a=a(s),e.flags|=1,ue(t,e,a,n),e.child;case 14:return Kh(t,e,e.type,e.pendingProps,n);case 15:return Qh(t,e,e.type,e.pendingProps,n);case 19:return tm(t,e,n);case 31:return Pv(t,e,n);case 22:return Zh(t,e,n,e.pendingProps);case 24:return Wa(e),a=oe(kt),t===null?(s=$u(),s===null&&(s=Ot,r=Pu(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},tr(e),da(e,kt,s)):((t.lanes&n)!==0&&(er(t,e),Xl(e,null,null,n),Gl()),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),da(e,kt,a)):(a=r.cache,da(e,kt,a),a!==s.cache&&Fu(e,[kt],n,!0))),ue(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Qn(t){t.flags|=4}function Ur(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(jm())t.flags|=8192;else throw ti=eo,Iu}else t.flags&=-16777217}function nm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!gp(e))if(jm())t.flags|=8192;else throw ti=eo,Iu}function xo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Qe():536870912,t.lanes|=e,ki|=e)}function Fl(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function _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 $v(t,e,n){var a=e.pendingProps;switch(Ku(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),qn(kt),Dt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Vi(e)?Qn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Zu())),_t(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(Qn(e),r!==null?(_t(e),nm(e,r)):(_t(e),Ur(e,s,null,a,n))):r?r!==t.memoizedState?(Qn(e),_t(e),nm(e,r)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Qn(e),_t(e),Ur(e,s,t,a,n)),null;case 27:if(ie(e),n=at.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Qn(e);else{if(!a){if(e.stateNode===null)throw Error(u(166));return _t(e),null}t=P.current,Vi(e)?_d(e):(t=rp(s,a,n),e.stateNode=t,Qn(e))}return _t(e),null;case 5:if(ie(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Qn(e);else{if(!a){if(e.stateNode===null)throw Error(u(166));return _t(e),null}if(r=P.current,Vi(e))_d(e);else{var f=Vo(at.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(s,{is:a.is}):f.createElement(s)}}r[Ut]=e,r[ee]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(re(r,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Qn(e)}}return _t(e),Ur(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Qn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(u(166));if(t=at.current,Vi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=se,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[Ut]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||$m(t.nodeValue,n)),t||fa(e,!0)}else t=Vo(t).createTextNode(a),t[Ut]=e,e.stateNode=t}return _t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Vi(e),n!==null){if(t===null){if(!a)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[Ut]=e}else Fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else n=Zu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Le(e),e):(Le(e),null);if((e.flags&128)!==0)throw Error(u(558))}return _t(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Vi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(u(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[Ut]=e}else Fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),s=!1}else s=Zu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Le(e),e):(Le(e),null)}return Le(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),xo(e,e.updateQueue),_t(e),null);case 4:return Dt(),t===null&&ic(e.stateNode.containerInfo),_t(e),null;case 10:return qn(e.type),_t(e),null;case 19:if(U(Qt),a=e.memoizedState,a===null)return _t(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)Fl(a,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=lo(t),r!==null){for(e.flags|=128,Fl(a,!1),t=r.updateQueue,e.updateQueue=t,xo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Dd(n,t),n=n.sibling;return Q(Qt,Qt.current&1|2),xt&&Hn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&fe()>Eo&&(e.flags|=128,s=!0,Fl(a,!1),e.lanes=4194304)}else{if(!s)if(t=lo(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,xo(e,t),Fl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!xt)return _t(e),null}else 2*fe()-a.renderingStartTime>Eo&&n!==536870912&&(e.flags|=128,s=!0,Fl(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=fe(),t.sibling=null,n=Qt.current,Q(Qt,s?n&1|2:n&1),xt&&Hn(e,a.treeForkCount),t):(_t(e),null);case 22:case 23:return Le(e),lr(),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&&xo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&U($a),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),qn(kt),_t(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function Iv(t,e){switch(Ku(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return qn(kt),Dt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ie(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(u(340));Fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Le(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Qt),null;case 4:return Dt(),null;case 10:return qn(e.type),null;case 22:case 23:return Le(e),lr(),t!==null&&U($a),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return qn(kt),null;case 25:return null;default:return null}}function am(t,e){switch(Ku(e),e.tag){case 3:qn(kt),Dt();break;case 26:case 27:case 5:ie(e);break;case 4:Dt();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:U(Qt);break;case 10:qn(e.type);break;case 22:case 23:Le(e),lr(),t!==null&&U($a);break;case 24:qn(kt)}}function Pl(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 va(t,e,n){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var r=s.next;a=r;do{if((a.tag&t)===t){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,s=e;var S=n,M=y;try{M()}catch(_){Ct(s,S,_)}}}a=a.next}while(a!==r)}}catch(_){Ct(e,e.return,_)}}function im(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Jd(e,n)}catch(a){Ct(t,t.return,a)}}}function lm(t,e,n){n.props=ai(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Ct(t,e,a)}}function Wl(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 Tn(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 sm(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 Br(t,e,n){try{var a=t.stateNode;Sx(a,t.type,n,e),a[ee]=e}catch(s){Ct(t,t.return,s)}}function om(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&wa(t.type)||t.tag===4}function Lr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||om(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&&wa(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 Hr(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=Ee));else if(a!==4&&(a===27&&wa(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Hr(t,e,n),t=t.sibling;t!==null;)Hr(t,e,n),t=t.sibling}function bo(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&&wa(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(bo(t,e,n),t=t.sibling;t!==null;)bo(t,e,n),t=t.sibling}function um(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);re(e,a,n),e[Ut]=t,e[ee]=n}catch(r){Ct(t,t.return,r)}}var Zn=!1,Pt=!1,Yr=!1,rm=typeof WeakSet=="function"?WeakSet:Set,ne=null;function tx(t,e){if(t=t.containerInfo,oc=qo,t=Sd(t),Ru(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,y=-1,S=-1,M=0,_=0,L=t,N=null;e:for(;;){for(var O;L!==n||s!==0&&L.nodeType!==3||(y=f+s),L!==r||a!==0&&L.nodeType!==3||(S=f+a),L.nodeType===3&&(f+=L.nodeValue.length),(O=L.firstChild)!==null;)N=L,L=O;for(;;){if(L===t)break e;if(N===n&&++M===s&&(y=f),N===r&&++_===a&&(S=f),(O=L.nextSibling)!==null)break;L=N,N=L.parentNode}L=O}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(uc={focusedElem:t,selectionRange:n},qo=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){switch(e=ne,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,s=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var W=ai(n.type,s);t=a.getSnapshotBeforeUpdate(W,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(it){Ct(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)fc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":fc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(u(163))}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}}function cm(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Jn(t,n),a&4&&Pl(5,n);break;case 1:if(Jn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Ct(n,n.return,f)}else{var s=ai(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ct(n,n.return,f)}}a&64&&im(n),a&512&&Wl(n,n.return);break;case 3:if(Jn(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Jd(t,e)}catch(f){Ct(n,n.return,f)}}break;case 27:e===null&&a&4&&um(n);case 26:case 5:Jn(t,n),e===null&&a&4&&sm(n),a&512&&Wl(n,n.return);break;case 12:Jn(t,n);break;case 31:Jn(t,n),a&4&&hm(t,n);break;case 13:Jn(t,n),a&4&&mm(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=rx.bind(null,n),Nx(t,n))));break;case 22:if(a=n.memoizedState!==null||Zn,!a){e=e!==null&&e.memoizedState!==null||Pt,s=Zn;var r=Pt;Zn=a,(Pt=e)&&!r?Fn(t,n,(n.subtreeFlags&8772)!==0):Jn(t,n),Zn=s,Pt=r}break;case 30:break;default:Jn(t,n)}}function fm(t){var e=t.alternate;e!==null&&(t.alternate=null,fm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&qa(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Bt=null,Ce=!1;function kn(t,e,n){for(n=n.child;n!==null;)dm(t,e,n),n=n.sibling}function dm(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(le,n)}catch{}switch(n.tag){case 26:Pt||Tn(n,e),kn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pt||Tn(n,e);var a=Bt,s=Ce;wa(n.type)&&(Bt=n.stateNode,Ce=!1),kn(t,e,n),ss(n.stateNode),Bt=a,Ce=s;break;case 5:Pt||Tn(n,e);case 6:if(a=Bt,s=Ce,Bt=null,kn(t,e,n),Bt=a,Ce=s,Bt!==null)if(Ce)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(r){Ct(n,e,r)}else try{Bt.removeChild(n.stateNode)}catch(r){Ct(n,e,r)}break;case 18:Bt!==null&&(Ce?(t=Bt,ip(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),el(t)):ip(Bt,n.stateNode));break;case 4:a=Bt,s=Ce,Bt=n.stateNode.containerInfo,Ce=!0,kn(t,e,n),Bt=a,Ce=s;break;case 0:case 11:case 14:case 15:va(2,n,e),Pt||va(4,n,e),kn(t,e,n);break;case 1:Pt||(Tn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&lm(n,e,a)),kn(t,e,n);break;case 21:kn(t,e,n);break;case 22:Pt=(a=Pt)||n.memoizedState!==null,kn(t,e,n),Pt=a;break;default:kn(t,e,n)}}function hm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{el(t)}catch(n){Ct(e,e.return,n)}}}function mm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{el(t)}catch(n){Ct(e,e.return,n)}}function ex(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new rm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new rm),e;default:throw Error(u(435,t.tag))}}function So(t,e){var n=ex(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=cx.bind(null,t,a);a.then(s,s)}})}function Me(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],r=t,f=e,y=f;t:for(;y!==null;){switch(y.tag){case 27:if(wa(y.type)){Bt=y.stateNode,Ce=!1;break t}break;case 5:Bt=y.stateNode,Ce=!1;break t;case 3:case 4:Bt=y.stateNode.containerInfo,Ce=!0;break t}y=y.return}if(Bt===null)throw Error(u(160));dm(r,f,s),Bt=null,Ce=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)pm(e,t),e=e.sibling}var fn=null;function pm(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Me(e,t),je(t),a&4&&(va(3,t,t.return),Pl(3,t),va(5,t,t.return));break;case 1:Me(e,t),je(t),a&512&&(Pt||n===null||Tn(n,n.return)),a&64&&Zn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=fn;if(Me(e,t),je(t),a&512&&(Pt||n===null||Tn(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[zn]||r[Ut]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),re(r,a,n),r[Ut]=t,Yt(r),a=r;break t;case"link":var f=pp("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),re(r,a,n),s.head.appendChild(r);break;case"meta":if(f=pp("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),re(r,a,n),s.head.appendChild(r);break;default:throw Error(u(468,a))}r[Ut]=t,Yt(r),a=r}t.stateNode=a}else yp(s,t.type,t.stateNode);else t.stateNode=mp(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?yp(s,t.type,t.stateNode):mp(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Br(t,t.memoizedProps,n.memoizedProps)}break;case 27:Me(e,t),je(t),a&512&&(Pt||n===null||Tn(n,n.return)),n!==null&&a&4&&Br(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Me(e,t),je(t),a&512&&(Pt||n===null||Tn(n,n.return)),t.flags&32){s=t.stateNode;try{xn(s,"")}catch(W){Ct(t,t.return,W)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,Br(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Yr=!0);break;case 6:if(Me(e,t),je(t),a&4){if(t.stateNode===null)throw Error(u(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(W){Ct(t,t.return,W)}}break;case 3:if(Bo=null,s=fn,fn=_o(e.containerInfo),Me(e,t),fn=s,je(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{el(e.containerInfo)}catch(W){Ct(t,t.return,W)}Yr&&(Yr=!1,ym(t));break;case 4:a=fn,fn=_o(t.stateNode.containerInfo),Me(e,t),je(t),fn=a;break;case 12:Me(e,t),je(t);break;case 31:Me(e,t),je(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,So(t,a)));break;case 13:Me(e,t),je(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ao=fe()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,So(t,a)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,M=Zn,_=Pt;if(Zn=M||s,Pt=_||S,Me(e,t),Pt=_,Zn=M,je(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||Zn||Pt||ii(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,N=L!=null&&L.hasOwnProperty("display")?L.display:null;y.style.display=N==null||typeof N=="boolean"?"":(""+N).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 O=S.stateNode;s?lp(O,!0):lp(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,So(t,n))));break;case 19:Me(e,t),je(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,So(t,a)));break;case 30:break;case 21:break;default:Me(e,t),je(t)}}function je(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(om(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,r=Lr(t);bo(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(xn(f,""),n.flags&=-33);var y=Lr(t);bo(t,y,f);break;case 3:case 4:var S=n.stateNode.containerInfo,M=Lr(t);Hr(t,M,S);break;default:throw Error(u(161))}}catch(_){Ct(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ym(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ym(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Jn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)cm(t,e.alternate,e),e=e.sibling}function ii(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:va(4,e,e.return),ii(e);break;case 1:Tn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&lm(e,e.return,n),ii(e);break;case 27:ss(e.stateNode);case 26:case 5:Tn(e,e.return),ii(e);break;case 22:e.memoizedState===null&&ii(e);break;case 30:ii(e);break;default:ii(e)}t=t.sibling}}function Fn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,s=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:Fn(s,r,n),Pl(4,r);break;case 1:if(Fn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){Ct(a,a.return,M)}if(a=r,s=a.updateQueue,s!==null){var y=a.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)kd(S[s],y)}catch(M){Ct(a,a.return,M)}}n&&f&64&&im(r),Wl(r,r.return);break;case 27:um(r);case 26:case 5:Fn(s,r,n),n&&a===null&&f&4&&sm(r),Wl(r,r.return);break;case 12:Fn(s,r,n);break;case 31:Fn(s,r,n),n&&f&4&&hm(s,r);break;case 13:Fn(s,r,n),n&&f&4&&mm(s,r);break;case 22:r.memoizedState===null&&Fn(s,r,n),Wl(r,r.return);break;case 30:break;default:Fn(s,r,n)}e=e.sibling}}function qr(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&&Bl(n))}function Gr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Bl(t))}function dn(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gm(t,e,n,a),e=e.sibling}function gm(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:dn(t,e,n,a),s&2048&&Pl(9,e);break;case 1:dn(t,e,n,a);break;case 3:dn(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&&Bl(t)));break;case 12:if(s&2048){dn(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 dn(t,e,n,a);break;case 31:dn(t,e,n,a);break;case 13:dn(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?dn(t,e,n,a):$l(t,e):r._visibility&2?dn(t,e,n,a):(r._visibility|=2,Ki(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&qr(f,e);break;case 24:dn(t,e,n,a),s&2048&&Gr(e.alternate,e);break;default:dn(t,e,n,a)}}function Ki(t,e,n,a,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,y=n,S=a,M=f.flags;switch(f.tag){case 0:case 11:case 15:Ki(r,f,y,S,s),Pl(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?Ki(r,f,y,S,s):$l(r,f):(_._visibility|=2,Ki(r,f,y,S,s)),s&&M&2048&&qr(f.alternate,f);break;case 24:Ki(r,f,y,S,s),s&&M&2048&&Gr(f.alternate,f);break;default:Ki(r,f,y,S,s)}e=e.sibling}}function $l(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:$l(n,a),s&2048&&qr(a.alternate,a);break;case 24:$l(n,a),s&2048&&Gr(a.alternate,a);break;default:$l(n,a)}e=e.sibling}}var Il=8192;function Qi(t,e,n){if(t.subtreeFlags&Il)for(t=t.child;t!==null;)vm(t,e,n),t=t.sibling}function vm(t,e,n){switch(t.tag){case 26:Qi(t,e,n),t.flags&Il&&t.memoizedState!==null&&qx(n,fn,t.memoizedState,t.memoizedProps);break;case 5:Qi(t,e,n);break;case 3:case 4:var a=fn;fn=_o(t.stateNode.containerInfo),Qi(t,e,n),fn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Il,Il=16777216,Qi(t,e,n),Il=a):Qi(t,e,n));break;default:Qi(t,e,n)}}function xm(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 ts(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ne=a,Sm(a,t)}xm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bm(t),t=t.sibling}function bm(t){switch(t.tag){case 0:case 11:case 15:ts(t),t.flags&2048&&va(9,t,t.return);break;case 3:ts(t);break;case 12:ts(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,To(t)):ts(t);break;default:ts(t)}}function To(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ne=a,Sm(a,t)}xm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:va(8,e,e.return),To(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,To(e));break;default:To(e)}t=t.sibling}}function Sm(t,e){for(;ne!==null;){var n=ne;switch(n.tag){case 0:case 11:case 15:va(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:Bl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ne=a;else t:for(n=t;ne!==null;){a=ne;var s=a.sibling,r=a.return;if(fm(a),a===n){ne=null;break t}if(s!==null){s.return=r,ne=s;break t}ne=r}}}var nx={getCacheForType:function(t){var e=oe(kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return oe(kt).controller.signal}},ax=typeof WeakMap=="function"?WeakMap:Map,At=0,Ot=null,mt=null,yt=0,wt=0,He=null,xa=!1,Zi=!1,Xr=!1,Pn=0,Gt=0,ba=0,li=0,Kr=0,Ye=0,ki=0,es=null,Ne=null,Qr=!1,Ao=0,Tm=0,Eo=1/0,wo=null,Sa=null,It=0,Ta=null,Ji=null,Wn=0,Zr=0,kr=null,Am=null,ns=0,Jr=null;function qe(){return(At&2)!==0&&yt!==0?yt&-yt:R.T!==null?tc():Ha()}function Em(){if(Ye===0)if((yt&536870912)===0||xt){var t=Nn;Nn<<=1,(Nn&3932160)===0&&(Nn=262144),Ye=t}else Ye=536870912;return t=Be.current,t!==null&&(t.flags|=32),Ye}function De(t,e,n){(t===Ot&&(wt===2||wt===9)||t.cancelPendingCommit!==null)&&(Fi(t,0),Aa(t,yt,Ye,!1)),de(t,n),((At&2)===0||t!==Ot)&&(t===Ot&&((At&2)===0&&(li|=n),Gt===4&&Aa(t,yt,Ye,!1)),An(t))}function wm(t,e,n){if((At&6)!==0)throw Error(u(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Se(t,e),s=a?sx(t,e):Pr(t,e,!0),r=a;do{if(s===0){Zi&&!a&&Aa(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!ix(n)){s=Pr(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=es;var S=y.current.memoizedState.isDehydrated;if(S&&(Fi(y,f).flags|=256),f=Pr(y,f,!1),f!==2){if(Xr&&!S){y.errorRecoveryDisabledLanes|=r,li|=r,s=4;break t}r=Ne,Ne=s,r!==null&&(Ne===null?Ne=r:Ne.push.apply(Ne,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Fi(t,0),Aa(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:Aa(a,e,Ye,!xa);break t;case 2:Ne=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(s=Ao+300-fe(),10<s)){if(Aa(a,e,Ye,!xa),Ba(a,0,!0)!==0)break t;Wn=e,a.timeoutHandle=np(Cm.bind(null,a,n,Ne,wo,Qr,e,Ye,li,ki,xa,r,"Throttled",-0,0),s);break t}Cm(a,n,Ne,wo,Qr,e,Ye,li,ki,xa,r,null,-0,0)}}break}while(!0);An(t)}function Cm(t,e,n,a,s,r,f,y,S,M,_,L,N,O){if(t.timeoutHandle=-1,L=e.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ee},vm(e,r,L);var W=(r&62914560)===r?Ao-fe():(r&4194048)===r?Tm-fe():0;if(W=Gx(L,W),W!==null){Wn=r,t.cancelPendingCommit=W(Vm.bind(null,t,e,r,n,a,s,f,y,S,_,L,null,N,O)),Aa(t,r,f,!M);return}}Vm(t,e,r,n,a,s,f,y,S)}function ix(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(!_e(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 Aa(t,e,n,a){e&=~Kr,e&=~li,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-ge(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&vl(t,n,e)}function Co(){return(At&6)===0?(as(0),!1):!0}function Fr(){if(mt!==null){if(wt===0)var t=mt.return;else t=mt,Yn=Pa=null,fr(t),Hi=null,Hl=0,t=mt;for(;t!==null;)am(t.alternate,t),t=t.return;mt=null}}function Fi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Ex(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Wn=0,Fr(),Ot=t,mt=n=Ln(t.current,null),yt=e,wt=0,He=null,xa=!1,Zi=Se(t,e),Xr=!1,ki=Ye=Kr=li=ba=Gt=0,Ne=es=null,Qr=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var s=31-ge(a),r=1<<s;e|=t[s],a&=~r}return Pn=e,Zs(),n}function Mm(t,e){ct=null,R.H=kl,e===Li||e===to?(e=Xd(),wt=3):e===Iu?(e=Xd(),wt=4):wt=e===Mr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,He=e,mt===null&&(Gt=1,po(t,Pe(e,t.current)))}function jm(){var t=Be.current;return t===null?!0:(yt&4194048)===yt?tn===null:(yt&62914560)===yt||(yt&536870912)!==0?t===tn:!1}function Nm(){var t=R.H;return R.H=kl,t===null?kl:t}function Dm(){var t=R.A;return R.A=nx,t}function Mo(){Gt=4,xa||(yt&4194048)!==yt&&Be.current!==null||(Zi=!0),(ba&134217727)===0&&(li&134217727)===0||Ot===null||Aa(Ot,yt,Ye,!1)}function Pr(t,e,n){var a=At;At|=2;var s=Nm(),r=Dm();(Ot!==t||yt!==e)&&(wo=null,Fi(t,e)),e=!1;var f=Gt;t:do try{if(wt!==0&&mt!==null){var y=mt,S=He;switch(wt){case 8:Fr(),f=6;break t;case 3:case 2:case 9:case 6:Be.current===null&&(e=!0);var M=wt;if(wt=0,He=null,Pi(t,y,S,M),n&&Zi){f=0;break t}break;default:M=wt,wt=0,He=null,Pi(t,y,S,M)}}lx(),f=Gt;break}catch(_){Mm(t,_)}while(!0);return e&&t.shellSuspendCounter++,Yn=Pa=null,At=a,R.H=s,R.A=r,mt===null&&(Ot=null,yt=0,Zs()),f}function lx(){for(;mt!==null;)Om(mt)}function sx(t,e){var n=At;At|=2;var a=Nm(),s=Dm();Ot!==t||yt!==e?(wo=null,Eo=fe()+500,Fi(t,e)):Zi=Se(t,e);t:do try{if(wt!==0&&mt!==null){e=mt;var r=He;e:switch(wt){case 1:wt=0,He=null,Pi(t,e,r,1);break;case 2:case 9:if(qd(r)){wt=0,He=null,zm(e);break}e=function(){wt!==2&&wt!==9||Ot!==t||(wt=7),An(t)},r.then(e,e);break t;case 3:wt=7;break t;case 4:wt=5;break t;case 7:qd(r)?(wt=0,He=null,zm(e)):(wt=0,He=null,Pi(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?gp(f):y.stateNode.complete){wt=0,He=null;var S=y.sibling;if(S!==null)mt=S;else{var M=y.return;M!==null?(mt=M,jo(M)):mt=null}break e}}wt=0,He=null,Pi(t,e,r,5);break;case 6:wt=0,He=null,Pi(t,e,r,6);break;case 8:Fr(),Gt=6;break t;default:throw Error(u(462))}}ox();break}catch(_){Mm(t,_)}while(!0);return Yn=Pa=null,R.H=a,R.A=s,At=n,mt!==null?0:(Ot=null,yt=0,Zs(),Gt)}function ox(){for(;mt!==null&&!yl();)Om(mt)}function Om(t){var e=em(t.alternate,t,Pn);t.memoizedProps=t.pendingProps,e===null?jo(t):mt=e}function zm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Fh(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Fh(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:fr(e);default:am(n,e),e=mt=Dd(e,Pn),e=em(n,e,Pn)}t.memoizedProps=t.pendingProps,e===null?jo(t):mt=e}function Pi(t,e,n,a){Yn=Pa=null,fr(e),Hi=null,Hl=0;var s=e.return;try{if(Fv(t,s,e,n,yt)){Gt=1,po(t,Pe(n,t.current)),mt=null;return}}catch(r){if(s!==null)throw mt=s,r;Gt=1,po(t,Pe(n,t.current)),mt=null;return}e.flags&32768?(xt||a===1?t=!0:Zi||(yt&536870912)!==0?t=!1:(xa=t=!0,(a===2||a===9||a===3||a===6)&&(a=Be.current,a!==null&&a.tag===13&&(a.flags|=16384))),Rm(e,t)):jo(e)}function jo(t){var e=t;do{if((e.flags&32768)!==0){Rm(e,xa);return}t=e.return;var n=$v(e.alternate,e,Pn);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Gt===0&&(Gt=5)}function Rm(t,e){do{var n=Iv(t.alternate,t);if(n!==null){n.flags&=32767,mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=n}while(t!==null);Gt=6,mt=null}function Vm(t,e,n,a,s,r,f,y,S){t.cancelPendingCommit=null;do No();while(It!==0);if((At&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(r=e.lanes|e.childLanes,r|=Lu,Dn(t,n,r,f,y,S),t===Ot&&(mt=Ot=null,yt=0),Ji=e,Ta=t,Wn=n,Zr=r,kr=s,Am=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,fx(mi,function(){return Hm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=R.T,R.T=null,s=H.p,H.p=2,f=At,At|=4;try{tx(t,e,n)}finally{At=f,H.p=s,R.T=a}}It=1,_m(),Um(),Bm()}}function _m(){if(It===1){It=0;var t=Ta,e=Ji,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var a=H.p;H.p=2;var s=At;At|=4;try{pm(e,t);var r=uc,f=Sd(t.containerInfo),y=r.focusedElem,S=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&bd(y.ownerDocument.documentElement,y)){if(S!==null&&Ru(y)){var M=S.start,_=S.end;if(_===void 0&&(_=M),"selectionStart"in y)y.selectionStart=M,y.selectionEnd=Math.min(_,y.value.length);else{var L=y.ownerDocument||document,N=L&&L.defaultView||window;if(N.getSelection){var O=N.getSelection(),W=y.textContent.length,it=Math.min(S.start,W),Nt=S.end===void 0?it:Math.min(S.end,W);!O.extend&&it>Nt&&(f=Nt,Nt=it,it=f);var w=xd(y,it),A=xd(y,Nt);if(w&&A&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==A.node||O.focusOffset!==A.offset)){var C=L.createRange();C.setStart(w.node,w.offset),O.removeAllRanges(),it>Nt?(O.addRange(C),O.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),O.addRange(C))}}}}for(L=[],O=y;O=O.parentNode;)O.nodeType===1&&L.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<L.length;y++){var B=L[y];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}qo=!!oc,uc=oc=null}finally{At=s,H.p=a,R.T=n}}t.current=e,It=2}}function Um(){if(It===2){It=0;var t=Ta,e=Ji,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var a=H.p;H.p=2;var s=At;At|=4;try{cm(t,e.alternate,e)}finally{At=s,H.p=a,R.T=n}}It=3}}function Bm(){if(It===4||It===3){It=0,Os();var t=Ta,e=Ji,n=Wn,a=Am;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,Ji=Ta=null,Lm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Sa=null),xl(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(le,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=R.T,s=H.p,H.p=2,R.T=null;try{for(var r=t.onRecoverableError,f=0;f<a.length;f++){var y=a[f];r(y.value,{componentStack:y.stack})}}finally{R.T=e,H.p=s}}(Wn&3)!==0&&No(),An(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Jr?ns++:(ns=0,Jr=t):ns=0,as(0)}}function Lm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Bl(e)))}function No(){return _m(),Um(),Bm(),Hm()}function Hm(){if(It!==5)return!1;var t=Ta,e=Zr;Zr=0;var n=xl(Wn),a=R.T,s=H.p;try{H.p=32>n?32:n,R.T=null,n=kr,kr=null;var r=Ta,f=Wn;if(It=0,Ji=Ta=null,Wn=0,(At&6)!==0)throw Error(u(331));var y=At;if(At|=4,bm(r.current),gm(r,r.current,f,n),At=y,as(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(le,r)}catch{}return!0}finally{H.p=s,R.T=a,Lm(t,e)}}function Ym(t,e,n){e=Pe(n,e),e=Cr(t.stateNode,e,2),t=pa(t,e,2),t!==null&&(de(t,2),An(t))}function Ct(t,e,n){if(t.tag===3)Ym(t,t,n);else for(;e!==null;){if(e.tag===3){Ym(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Sa===null||!Sa.has(a))){t=Pe(n,t),n=qh(2),a=pa(e,n,2),a!==null&&(Gh(n,a,e,t),de(a,2),An(a));break}}e=e.return}}function Wr(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new ax;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)||(Xr=!0,s.add(n),t=ux.bind(null,t,e,n),e.then(t,t))}function ux(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&&(Gt===4||Gt===3&&(yt&62914560)===yt&&300>fe()-Ao?(At&2)===0&&Fi(t,0):Kr|=n,ki===yt&&(ki=0)),An(t)}function qm(t,e){e===0&&(e=Qe()),t=ka(t,e),t!==null&&(de(t,e),An(t))}function rx(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),qm(t,n)}function cx(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(e),qm(t,n)}function fx(t,e){return hi(t,e)}var Do=null,Wi=null,$r=!1,Oo=!1,Ir=!1,Ea=0;function An(t){t!==Wi&&t.next===null&&(Wi===null?Do=Wi=t:Wi=Wi.next=t),Oo=!0,$r||($r=!0,hx())}function as(t,e){if(!Ir&&Oo){Ir=!0;do for(var n=!1,a=Do;a!==null;){if(t!==0){var s=a.pendingLanes;if(s===0)var r=0;else{var f=a.suspendedLanes,y=a.pingedLanes;r=(1<<31-ge(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Qm(a,r))}else r=yt,r=Ba(a,a===Ot?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||Se(a,r)||(n=!0,Qm(a,r));a=a.next}while(n);Ir=!1}}function dx(){Gm()}function Gm(){Oo=$r=!1;var t=0;Ea!==0&&Ax()&&(t=Ea);for(var e=fe(),n=null,a=Do;a!==null;){var s=a.next,r=Xm(a,e);r===0?(a.next=null,n===null?Do=s:n.next=s,s===null&&(Wi=n)):(n=a,(t!==0||(r&3)!==0)&&(Oo=!0)),a=s}It!==0&&It!==5||as(t),Ea!==0&&(Ea=0)}function Xm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-ge(r),y=1<<f,S=s[f];S===-1?((y&n)===0||(y&a)!==0)&&(s[f]=Us(y,e)):S<=e&&(t.expiredLanes|=y),r&=~y}if(e=Ot,n=yt,n=Ba(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(wt===2||wt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ke(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Se(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Ke(a),xl(n)){case 2:case 8:n=pe;break;case 32:n=mi;break;case 268435456:n=Rs;break;default:n=mi}return a=Km.bind(null,t),n=hi(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Ke(a),t.callbackPriority=2,t.callbackNode=null,2}function Km(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(No()&&t.callbackNode!==n)return null;var a=yt;return a=Ba(t,t===Ot?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(wm(t,a,e),Xm(t,fe()),t.callbackNode!=null&&t.callbackNode===n?Km.bind(null,t):null)}function Qm(t,e){if(No())return null;wm(t,e,!0)}function hx(){wx(function(){(At&6)!==0?hi(zs,dx):Gm()})}function tc(){if(Ea===0){var t=Ui;t===0&&(t=jn,jn<<=1,(jn&261888)===0&&(jn=256)),Ea=t}return Ea}function Zm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ve(""+t)}function km(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 mx(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=Zm((s[ee]||null).action),f=a.submitter;f&&(e=(e=f[ee]||null)?Zm(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new Gs("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ea!==0){var S=f?km(s,f):new FormData(s);br(n,{pending:!0,data:S,method:s.method,action:r},null,S)}}else typeof r=="function"&&(y.preventDefault(),S=f?km(s,f):new FormData(s),br(n,{pending:!0,data:S,method:s.method,action:r},r,S))},currentTarget:s}]})}}for(var ec=0;ec<Bu.length;ec++){var nc=Bu[ec],px=nc.toLowerCase(),yx=nc[0].toUpperCase()+nc.slice(1);cn(px,"on"+yx)}cn(Ed,"onAnimationEnd"),cn(wd,"onAnimationIteration"),cn(Cd,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(zv,"onTransitionRun"),cn(Rv,"onTransitionStart"),cn(Vv,"onTransitionCancel"),cn(Md,"onTransitionEnd"),ia("onMouseEnter",["mouseout","mouseover"]),ia("onMouseLeave",["mouseout","mouseover"]),ia("onPointerEnter",["pointerout","pointerover"]),ia("onPointerLeave",["pointerout","pointerover"]),_n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_n("onBeforeInput",["compositionend","keypress","textInput","paste"]),_n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var is="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(" "),gx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(is));function Jm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],s=a.event;a=a.listeners;t:{var r=void 0;if(e)for(var f=a.length-1;0<=f;f--){var y=a[f],S=y.instance,M=y.currentTarget;if(y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=M;try{r(s)}catch(_){Qs(_)}s.currentTarget=null,r=S}else for(f=0;f<a.length;f++){if(y=a[f],S=y.instance,M=y.currentTarget,y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=M;try{r(s)}catch(_){Qs(_)}s.currentTarget=null,r=S}}}}function pt(t,e){var n=e[vi];n===void 0&&(n=e[vi]=new Set);var a=t+"__bubble";n.has(a)||(Fm(e,t,2,!1),n.add(a))}function ac(t,e,n){var a=0;e&&(a|=4),Fm(n,t,a,e)}var zo="_reactListening"+Math.random().toString(36).slice(2);function ic(t){if(!t[zo]){t[zo]=!0,Sl.forEach(function(n){n!=="selectionchange"&&(gx.has(n)||ac(n,!1,t),ac(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[zo]||(e[zo]=!0,ac("selectionchange",!1,e))}}function Fm(t,e,n,a){switch(Ep(e)){case 2:var s=Qx;break;case 8:s=Zx;break;default:s=xc}n=s.bind(null,e,n,t),s=void 0,!Eu||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 lc(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=Rn(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}td(function(){var M=r,_=Tu(n),L=[];t:{var N=jd.get(t);if(N!==void 0){var O=Gs,W=t;switch(t){case"keypress":if(Ys(n)===0)break t;case"keydown":case"keyup":O=cv;break;case"focusin":W="focus",O=ju;break;case"focusout":W="blur",O=ju;break;case"beforeblur":case"afterblur":O=ju;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=$g;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=hv;break;case Ed:case wd:case Cd:O=ev;break;case Md:O=pv;break;case"scroll":case"scrollend":O=Pg;break;case"wheel":O=gv;break;case"copy":case"cut":case"paste":O=av;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=ld;break;case"toggle":case"beforetoggle":O=xv}var it=(e&4)!==0,Nt=!it&&(t==="scroll"||t==="scrollend"),w=it?N!==null?N+"Capture":null:N;it=[];for(var A=M,C;A!==null;){var B=A;if(C=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||C===null||w===null||(B=Cl(A,w),B!=null&&it.push(ls(A,B,C))),Nt)break;A=A.return}0<it.length&&(N=new O(N,W,null,n,_),L.push({event:N,listeners:it}))}}if((e&7)===0){t:{if(N=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",N&&n!==oa&&(W=n.relatedTarget||n.fromElement)&&(Rn(W)||W[On]))break t;if((O||N)&&(N=_.window===_?_:(N=_.ownerDocument)?N.defaultView||N.parentWindow:window,O?(W=n.relatedTarget||n.toElement,O=M,W=W?Rn(W):null,W!==null&&(Nt=h(W),it=W.tag,W!==Nt||it!==5&&it!==27&&it!==6)&&(W=null)):(O=null,W=M),O!==W)){if(it=ad,B="onMouseLeave",w="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(it=ld,B="onPointerLeave",w="onPointerEnter",A="pointer"),Nt=O==null?N:Vn(O),C=W==null?N:Vn(W),N=new it(B,A+"leave",O,n,_),N.target=Nt,N.relatedTarget=C,B=null,Rn(_)===M&&(it=new it(w,A+"enter",W,n,_),it.target=C,it.relatedTarget=Nt,B=it),Nt=B,O&&W)e:{for(it=vx,w=O,A=W,C=0,B=w;B;B=it(B))C++;B=0;for(var nt=A;nt;nt=it(nt))B++;for(;0<C-B;)w=it(w),C--;for(;0<B-C;)A=it(A),B--;for(;C--;){if(w===A||A!==null&&w===A.alternate){it=w;break e}w=it(w),A=it(A)}it=null}else it=null;O!==null&&Pm(L,N,O,it,!1),W!==null&&Nt!==null&&Pm(L,Nt,W,it,!0)}}t:{if(N=M?Vn(M):window,O=N.nodeName&&N.nodeName.toLowerCase(),O==="select"||O==="input"&&N.type==="file")var St=hd;else if(fd(N))if(md)St=Nv;else{St=Mv;var et=Cv}else O=N.nodeName,!O||O.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?M&&j(M.elementType)&&(St=hd):St=jv;if(St&&(St=St(t,M))){dd(L,St,n,_);break t}et&&et(t,N,M),t==="focusout"&&M&&N.type==="number"&&M.memoizedProps.value!=null&&El(N,"number",N.value)}switch(et=M?Vn(M):window,t){case"focusin":(fd(et)||et.contentEditable==="true")&&(ji=et,Vu=M,Vl=null);break;case"focusout":Vl=Vu=ji=null;break;case"mousedown":_u=!0;break;case"contextmenu":case"mouseup":case"dragend":_u=!1,Td(L,n,_);break;case"selectionchange":if(Ov)break;case"keydown":case"keyup":Td(L,n,_)}var ft;if(Du)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 Mi?rd(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(sd&&n.locale!=="ko"&&(Mi||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Mi&&(ft=ed()):(ua=_,wu="value"in ua?ua.value:ua.textContent,Mi=!0)),et=Ro(M,gt),0<et.length&&(gt=new id(gt,t,null,n,_),L.push({event:gt,listeners:et}),ft?gt.data=ft:(ft=cd(n),ft!==null&&(gt.data=ft)))),(ft=Sv?Tv(t,n):Av(t,n))&&(gt=Ro(M,"onBeforeInput"),0<gt.length&&(et=new id("onBeforeInput","beforeinput",null,n,_),L.push({event:et,listeners:gt}),et.data=ft)),mx(L,t,M,n,_)}Jm(L,e)})}function ls(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ro(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=Cl(t,n),s!=null&&a.unshift(ls(t,s,r)),s=Cl(t,e),s!=null&&a.push(ls(t,s,r))),t.tag===3)return a;t=t.return}return[]}function vx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Pm(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,S=y.alternate,M=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||M===null||(S=M,s?(M=Cl(n,r),M!=null&&f.unshift(ls(n,M,S))):s||(M=Cl(n,r),M!=null&&f.push(ls(n,M,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var xx=/\r\n?/g,bx=/\u0000|\uFFFD/g;function Wm(t){return(typeof t=="string"?t:""+t).replace(xx,`
|
|
9
|
+
`).replace(bx,"")}function $m(t,e){return e=Wm(e),Wm(t)===e}function jt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||xn(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&xn(t,""+a);break;case"className":Si(t,"class",a);break;case"tabIndex":Si(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(t,n,a);break;case"style":wl(t,a,r);break;case"data":if(e!=="object"){Si(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=Ve(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(e!=="input"&&jt(t,e,"name",s.name,s,null),jt(t,e,"formEncType",s.formEncType,s,null),jt(t,e,"formMethod",s.formMethod,s,null),jt(t,e,"formTarget",s.formTarget,s,null)):(jt(t,e,"encType",s.encType,s,null),jt(t,e,"method",s.method,s,null),jt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ve(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Ee);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Ve(""+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),sa(t,"popover",a);break;case"xlinkActuate":rn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":rn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":rn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":rn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":rn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":rn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":rn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":rn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":rn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":sa(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=tt.get(n)||n,sa(t,n,a))}}function sc(t,e,n,a,s,r){switch(n){case"style":wl(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof a=="string"?xn(t,a):(typeof a=="number"||typeof a=="bigint")&&xn(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=Ee);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ga.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),r=t[ee]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,s),typeof a=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,s);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):sa(t,n,a)}}}function re(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var a=!1,s=!1,r;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:jt(t,e,r,f,n,null)}}s&&jt(t,e,"srcSet",n.srcSet,n,null),a&&jt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var y=r=f=s=null,S=null,M=null;for(a in n)if(n.hasOwnProperty(a)){var _=n[a];if(_!=null)switch(a){case"name":s=_;break;case"type":f=_;break;case"checked":S=_;break;case"defaultChecked":M=_;break;case"value":r=_;break;case"defaultValue":y=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:jt(t,e,a,_,n,null)}}Al(t,r,y,S,M,f,s,!1);return;case"select":pt("invalid",t),a=f=r=null;for(s in n)if(n.hasOwnProperty(s)&&(y=n[s],y!=null))switch(s){case"value":r=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:jt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?Re(t,!!a,e,!1):n!=null&&Re(t,!!a,n,!0);return;case"textarea":pt("invalid",t),r=s=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":s=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(u(91));break;default:jt(t,e,f,y,n,null)}Ls(t,a,s,r);return;case"option":for(S in n)n.hasOwnProperty(S)&&(a=n[S],a!=null)&&(S==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":jt(t,e,S,a,n,null));return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(a=0;a<is.length;a++)pt(is[a],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in n)if(n.hasOwnProperty(M)&&(a=n[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:jt(t,e,M,a,n,null)}return;default:if(j(e)){for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!==void 0&&sc(t,e,_,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&jt(t,e,y,a,n,null))}function Sx(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,r=null,f=null,y=null,S=null,M=null,_=null;for(O in n){var L=n[O];if(n.hasOwnProperty(O)&&L!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":S=L;default:a.hasOwnProperty(O)||jt(t,e,O,null,a,L)}}for(var N in a){var O=a[N];if(L=n[N],a.hasOwnProperty(N)&&(O!=null||L!=null))switch(N){case"type":r=O;break;case"name":s=O;break;case"checked":M=O;break;case"defaultChecked":_=O;break;case"value":f=O;break;case"defaultValue":y=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,e));break;default:O!==L&&jt(t,e,N,O,a,L)}}Ei(t,f,y,S,M,_,r,s);return;case"select":O=f=y=N=null;for(r in n)if(S=n[r],n.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":O=S;default:a.hasOwnProperty(r)||jt(t,e,r,null,a,S)}for(s in a)if(r=a[s],S=n[s],a.hasOwnProperty(s)&&(r!=null||S!=null))switch(s){case"value":N=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==S&&jt(t,e,s,r,a,S)}e=y,n=f,a=O,N!=null?Re(t,!!n,N,!1):!!a!=!!n&&(e!=null?Re(t,!!n,e,!0):Re(t,!!n,n?[]:"",!1));return;case"textarea":O=N=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:jt(t,e,y,null,a,s)}for(f in a)if(s=a[f],r=n[f],a.hasOwnProperty(f)&&(s!=null||r!=null))switch(f){case"value":N=s;break;case"defaultValue":O=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==r&&jt(t,e,f,s,a,r)}ke(t,N,O);return;case"option":for(var W in n)N=n[W],n.hasOwnProperty(W)&&N!=null&&!a.hasOwnProperty(W)&&(W==="selected"?t.selected=!1:jt(t,e,W,null,a,N));for(S in a)N=a[S],O=n[S],a.hasOwnProperty(S)&&N!==O&&(N!=null||O!=null)&&(S==="selected"?t.selected=N&&typeof N!="function"&&typeof N!="symbol":jt(t,e,S,N,a,O));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var it in n)N=n[it],n.hasOwnProperty(it)&&N!=null&&!a.hasOwnProperty(it)&&jt(t,e,it,null,a,N);for(M in a)if(N=a[M],O=n[M],a.hasOwnProperty(M)&&N!==O&&(N!=null||O!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,e));break;default:jt(t,e,M,N,a,O)}return;default:if(j(e)){for(var Nt in n)N=n[Nt],n.hasOwnProperty(Nt)&&N!==void 0&&!a.hasOwnProperty(Nt)&&sc(t,e,Nt,void 0,a,N);for(_ in a)N=a[_],O=n[_],!a.hasOwnProperty(_)||N===O||N===void 0&&O===void 0||sc(t,e,_,N,a,O);return}}for(var w in n)N=n[w],n.hasOwnProperty(w)&&N!=null&&!a.hasOwnProperty(w)&&jt(t,e,w,null,a,N);for(L in a)N=a[L],O=n[L],!a.hasOwnProperty(L)||N===O||N==null&&O==null||jt(t,e,L,N,a,O)}function Im(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tx(){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&&Im(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var S=n[a],M=S.startTime;if(M>y)break;var _=S.transferSize,L=S.initiatorType;_&&Im(L)&&(S=S.responseEnd,f+=_*(S<y?1:(y-M)/(S-M)))}if(--a,e+=8*(r+f)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var oc=null,uc=null;function Vo(t){return t.nodeType===9?t:t.ownerDocument}function tp(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 ep(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 rc(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 cc=null;function Ax(){var t=window.event;return t&&t.type==="popstate"?t===cc?!1:(cc=t,!0):(cc=null,!1)}var np=typeof setTimeout=="function"?setTimeout:void 0,Ex=typeof clearTimeout=="function"?clearTimeout:void 0,ap=typeof Promise=="function"?Promise:void 0,wx=typeof queueMicrotask=="function"?queueMicrotask:typeof ap<"u"?function(t){return ap.resolve(null).then(t).catch(Cx)}:np;function Cx(t){setTimeout(function(){throw t})}function wa(t){return t==="head"}function ip(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),el(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ss(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ss(n);for(var r=n.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[zn]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&ss(t.ownerDocument.body);n=s}while(n);el(e)}function lp(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 fc(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":fc(n),qa(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Mx(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[zn])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=en(t.nextSibling),t===null)break}return null}function jx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=en(t.nextSibling),t===null))return null;return t}function sp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=en(t.nextSibling),t===null))return null;return t}function dc(t){return t.data==="$?"||t.data==="$~"}function hc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Nx(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 en(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 mc=null;function op(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return en(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function up(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 rp(t,e,n){switch(e=Vo(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function ss(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);qa(t)}var nn=new Map,cp=new Set;function _o(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var $n=H.d;H.d={f:Dx,r:Ox,D:zx,C:Rx,L:Vx,m:_x,X:Bx,S:Ux,M:Lx};function Dx(){var t=$n.f(),e=Co();return t||e}function Ox(t){var e=aa(t);e!==null&&e.tag===5&&e.type==="form"?Mh(e):$n.r(t)}var $i=typeof document>"u"?null:document;function fp(t,e,n){var a=$i;if(a&&typeof e=="string"&&e){var s=Ae(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),cp.has(s)||(cp.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),re(e,"link",t),Yt(e),a.head.appendChild(e)))}}function zx(t){$n.D(t),fp("dns-prefetch",t,null)}function Rx(t,e){$n.C(t,e),fp("preconnect",t,e)}function Vx(t,e,n){$n.L(t,e,n);var a=$i;if(a&&t&&e){var s='link[rel="preload"][as="'+Ae(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Ae(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Ae(n.imageSizes)+'"]')):s+='[href="'+Ae(t)+'"]';var r=s;switch(e){case"style":r=Ii(t);break;case"script":r=tl(t)}nn.has(r)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),nn.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(os(r))||e==="script"&&a.querySelector(us(r))||(e=a.createElement("link"),re(e,"link",t),Yt(e),a.head.appendChild(e)))}}function _x(t,e){$n.m(t,e);var n=$i;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Ae(a)+'"][href="'+Ae(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=tl(t)}if(!nn.has(r)&&(t=b({rel:"modulepreload",href:t},e),nn.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(us(r)))return}a=n.createElement("link"),re(a,"link",t),Yt(a),n.head.appendChild(a)}}}function Ux(t,e,n){$n.S(t,e,n);var a=$i;if(a&&t){var s=un(a).hoistableStyles,r=Ii(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(os(r)))y.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=nn.get(r))&&pc(t,n);var S=f=a.createElement("link");Yt(S),re(S,"link",t),S._p=new Promise(function(M,_){S.onload=M,S.onerror=_}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Uo(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function Bx(t,e){$n.X(t,e);var n=$i;if(n&&t){var a=un(n).hoistableScripts,s=tl(t),r=a.get(s);r||(r=n.querySelector(us(s)),r||(t=b({src:t,async:!0},e),(e=nn.get(s))&&yc(t,e),r=n.createElement("script"),Yt(r),re(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function Lx(t,e){$n.M(t,e);var n=$i;if(n&&t){var a=un(n).hoistableScripts,s=tl(t),r=a.get(s);r||(r=n.querySelector(us(s)),r||(t=b({src:t,async:!0,type:"module"},e),(e=nn.get(s))&&yc(t,e),r=n.createElement("script"),Yt(r),re(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function dp(t,e,n,a){var s=(s=at.current)?_o(s):null;if(!s)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ii(n.href),n=un(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=Ii(n.href);var r=un(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(os(t)))&&!r._p&&(f.instance=r,f.state.loading=5),nn.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},nn.set(t,n),r||Hx(s,t,n,f.state))),e&&a===null)throw Error(u(528,""));return f}if(e&&a!==null)throw Error(u(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=tl(n),n=un(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function Ii(t){return'href="'+Ae(t)+'"'}function os(t){return'link[rel="stylesheet"]['+t+"]"}function hp(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function Hx(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}),re(e,"link",n),Yt(e),t.head.appendChild(e))}function tl(t){return'[src="'+Ae(t)+'"]'}function us(t){return"script[async]"+t}function mp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ae(n.href)+'"]');if(a)return e.instance=a,Yt(a),a;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Yt(a),re(a,"style",s),Uo(a,n.precedence,t),e.instance=a;case"stylesheet":s=Ii(n.href);var r=t.querySelector(os(s));if(r)return e.state.loading|=4,e.instance=r,Yt(r),r;a=hp(n),(s=nn.get(s))&&pc(a,s),r=(t.ownerDocument||t).createElement("link"),Yt(r);var f=r;return f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),re(r,"link",a),e.state.loading|=4,Uo(r,n.precedence,t),e.instance=r;case"script":return r=tl(n.src),(s=t.querySelector(us(r)))?(e.instance=s,Yt(s),s):(a=n,(s=nn.get(r))&&(a=b({},n),yc(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),Yt(s),re(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Uo(a,n.precedence,t));return e.instance}function Uo(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 pc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function yc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Bo=null;function pp(t,e,n){if(Bo===null){var a=new Map,s=Bo=new Map;s.set(n,a)}else s=Bo,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[zn]||r[Ut]||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 yp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Yx(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 gp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function qx(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=Ii(a.href),r=e.querySelector(os(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Lo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Yt(r);return}r=e.ownerDocument||e,a=hp(a),(s=nn.get(s))&&pc(a,s),r=r.createElement("link"),Yt(r);var f=r;f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),re(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=Lo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var gc=0;function Gx(t,e){return t.stylesheets&&t.count===0&&Yo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Yo(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&gc===0&&(gc=62500*Tx());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Yo(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>gc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ho=null;function Yo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ho=new Map,e.forEach(Xx,t),Ho=null,Lo.call(t))}function Xx(t,e){if(!(e.state.loading&4)){var n=Ho.get(t);if(n)var a=n.get(null);else{n=new Map,Ho.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=Lo.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 rs={$$typeof:G,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Kx(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=yi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yi(0),this.hiddenUpdates=yi(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 vp(t,e,n,a,s,r,f,y,S,M,_,L){return t=new Kx(t,e,n,f,S,M,_,L,y),e=1,r===!0&&(e|=24),r=Ue(3,null,null,e),t.current=r,r.stateNode=t,e=Pu(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},tr(r),t}function xp(t){return t?(t=Oi,t):Oi}function bp(t,e,n,a,s,r){s=xp(s),a.context===null?a.context=s:a.pendingContext=s,a=ma(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=pa(t,a,e),n!==null&&(De(n,t,e),ql(n,t,e))}function Sp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vc(t,e){Sp(t,e),(t=t.alternate)&&Sp(t,e)}function Tp(t){if(t.tag===13||t.tag===31){var e=ka(t,67108864);e!==null&&De(e,t,67108864),vc(t,67108864)}}function Ap(t){if(t.tag===13||t.tag===31){var e=qe();e=na(e);var n=ka(t,e);n!==null&&De(n,t,e),vc(t,e)}}var qo=!0;function Qx(t,e,n,a){var s=R.T;R.T=null;var r=H.p;try{H.p=2,xc(t,e,n,a)}finally{H.p=r,R.T=s}}function Zx(t,e,n,a){var s=R.T;R.T=null;var r=H.p;try{H.p=8,xc(t,e,n,a)}finally{H.p=r,R.T=s}}function xc(t,e,n,a){if(qo){var s=bc(a);if(s===null)lc(t,e,a,Go,n),wp(t,a);else if(Jx(s,t,e,n,a))a.stopPropagation();else if(wp(t,a),e&4&&-1<kx.indexOf(t)){for(;s!==null;){var r=aa(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=gn(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var S=1<<31-ge(f);y.entanglements[1]|=S,f&=~S}An(r),(At&6)===0&&(Eo=fe()+500,as(0))}}break;case 31:case 13:y=ka(r,2),y!==null&&De(y,r,2),Co(),vc(r,2)}if(r=bc(a),r===null&&lc(t,e,a,Go,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else lc(t,e,a,null,n)}}function bc(t){return t=Tu(t),Sc(t)}var Go=null;function Sc(t){if(Go=null,t=Rn(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(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 Go=t,null}function Ep(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gu()){case zs:return 2;case pe:return 8;case mi:case gl:return 32;case Rs:return 268435456;default:return 32}default:return 32}}var Tc=!1,Ca=null,Ma=null,ja=null,cs=new Map,fs=new Map,Na=[],kx="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 wp(t,e){switch(t){case"focusin":case"focusout":Ca=null;break;case"dragenter":case"dragleave":Ma=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":cs.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":fs.delete(e.pointerId)}}function ds(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=aa(e),e!==null&&Tp(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Jx(t,e,n,a,s){switch(e){case"focusin":return Ca=ds(Ca,t,e,n,a,s),!0;case"dragenter":return Ma=ds(Ma,t,e,n,a,s),!0;case"mouseover":return ja=ds(ja,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return cs.set(r,ds(cs.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,fs.set(r,ds(fs.get(r)||null,t,e,n,a,s)),!0}return!1}function Cp(t){var e=Rn(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,Ya(t.priority,function(){Ap(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,Ya(t.priority,function(){Ap(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 Xo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=bc(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);oa=a,n.target.dispatchEvent(a),oa=null}else return e=aa(n),e!==null&&Tp(e),t.blockedOn=n,!1;e.shift()}return!0}function Mp(t,e,n){Xo(t)&&n.delete(e)}function Fx(){Tc=!1,Ca!==null&&Xo(Ca)&&(Ca=null),Ma!==null&&Xo(Ma)&&(Ma=null),ja!==null&&Xo(ja)&&(ja=null),cs.forEach(Mp),fs.forEach(Mp)}function Ko(t,e){t.blockedOn===e&&(t.blockedOn=null,Tc||(Tc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Fx)))}var Qo=null;function jp(t){Qo!==t&&(Qo=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Qo===t&&(Qo=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(Sc(a||n)===null)continue;break}var r=aa(n);r!==null&&(t.splice(e,3),e-=3,br(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function el(t){function e(S){return Ko(S,t)}Ca!==null&&Ko(Ca,t),Ma!==null&&Ko(Ma,t),ja!==null&&Ko(ja,t),cs.forEach(e),fs.forEach(e);for(var n=0;n<Na.length;n++){var a=Na[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Na.length&&(n=Na[0],n.blockedOn===null);)Cp(n),n.blockedOn===null&&Na.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],r=n[a+1],f=s[ee]||null;if(typeof r=="function")f||jp(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[ee]||null)y=f.formAction;else if(Sc(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),jp(n)}}}function Np(){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 Ac(t){this._internalRoot=t}Zo.prototype.render=Ac.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,a=qe();bp(n,a,t,e,null,null)},Zo.prototype.unmount=Ac.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bp(t.current,2,null,t,null,null),Co(),e[On]=null}};function Zo(t){this._internalRoot=t}Zo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ha();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Na.length&&e!==0&&e<Na[n].priority;n++);Na.splice(n,0,t),n===0&&Cp(t)}};var Dp=l.version;if(Dp!=="19.2.4")throw Error(u(527,Dp,"19.2.4"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=m(e),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var Px={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ko=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ko.isDisabled&&ko.supportsFiber)try{le=ko.inject(Px),ye=ko}catch{}}return ms.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,a="",s=Bh,r=Lh,f=Hh;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=vp(t,1,!1,null,null,n,a,null,s,r,f,Np),t[On]=e.current,ic(t),new Ac(e)},ms.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var a=!1,s="",r=Bh,f=Lh,y=Hh,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=vp(t,1,!0,e,n??null,a,s,S,r,f,y,Np),e.context=xp(null),n=e.current,a=qe(),a=na(a),s=ma(a),s.callback=null,pa(n,s,a),n=a,e.current.lanes=n,de(e,n),An(e),t[On]=e.current,ic(t),new Zo(e)},ms.version="19.2.4",ms}var Yp;function s1(){if(Yp)return Cc.exports;Yp=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=l1(),Cc.exports}var o1=s1();const DA=u0(o1);const r0=(...i)=>i.filter((l,o,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===o).join(" ").trim();const u1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const r1=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,u)=>u?u.toUpperCase():o.toLowerCase());const qp=i=>{const l=r1(i);return l.charAt(0).toUpperCase()+l.slice(1)};var c1={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 f1=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const d1=z.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:c="",children:h,iconNode:d,...p},g)=>z.createElement("svg",{ref:g,...c1,width:l,height:l,stroke:i,strokeWidth:u?Number(o)*24/Number(l):o,className:r0("lucide",c),...!h&&!f1(p)&&{"aria-hidden":"true"},...p},[...d.map(([m,x])=>z.createElement(m,x)),...Array.isArray(h)?h:[h]]));const Oe=(i,l)=>{const o=z.forwardRef(({className:u,...c},h)=>z.createElement(d1,{ref:h,iconNode:l,className:r0(`lucide-${u1(qp(i))}`,`lucide-${i}`,u),...c}));return o.displayName=qp(i),o};const h1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ge=Oe("arrow-right",h1);const m1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Oa=Oe("check",m1);const p1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],y1=Oe("chevron-down",p1);const g1=[["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"}]],Gp=Oe("clipboard-paste",g1);const v1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Dc=Oe("copy",v1);const x1=[["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"}]],Xp=Oe("external-link",x1);const b1=[["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"}]],S1=Oe("eye-off",b1);const T1=[["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"}]],A1=Oe("eye",T1);const E1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],si=Oe("loader-circle",E1);const w1=[["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"}]],C1=Oe("mic",w1);const M1=[["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"}]],Oc=Oe("refresh-cw",M1);const j1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Kp=Oe("shield-check",j1);const N1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],D1=Oe("shield",N1);const O1=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],z1=Oe("smartphone",O1),Tf=z.createContext({});function Af(i){const l=z.useRef(null);return l.current===null&&(l.current=i()),l.current}const c0=typeof window<"u",f0=c0?z.useLayoutEffect:z.useEffect,hu=z.createContext(null);function Ef(i,l){i.indexOf(l)===-1&&i.push(l)}function lu(i,l){const o=i.indexOf(l);o>-1&&i.splice(o,1)}const Cn=(i,l,o)=>o>l?l:o<i?i:o;let wf=()=>{};const In={},d0=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function h0(i){return typeof i=="object"&&i!==null}const m0=i=>/^0[^.\s]+$/u.test(i);function p0(i){let l;return()=>(l===void 0&&(l=i()),l)}const ln=i=>i,R1=(i,l)=>o=>l(i(o)),Ms=(...i)=>i.reduce(R1),Ts=(i,l,o)=>{const u=l-i;return u===0?1:(o-i)/u};class Cf{constructor(){this.subscriptions=[]}add(l){return Ef(this.subscriptions,l),()=>lu(this.subscriptions,l)}notify(l,o,u){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,o,u);else for(let h=0;h<c;h++){const d=this.subscriptions[h];d&&d(l,o,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pn=i=>i*1e3,an=i=>i/1e3;function y0(i,l){return l?i*(1e3/l):0}const g0=(i,l,o)=>(((1-3*o+3*l)*i+(3*o-6*l))*i+3*l)*i,V1=1e-7,_1=12;function U1(i,l,o,u,c){let h,d,p=0;do d=l+(o-l)/2,h=g0(d,u,c)-i,h>0?o=d:l=d;while(Math.abs(h)>V1&&++p<_1);return d}function js(i,l,o,u){if(i===l&&o===u)return ln;const c=h=>U1(h,0,1,i,o);return h=>h===0||h===1?h:g0(c(h),l,u)}const v0=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,x0=i=>l=>1-i(1-l),b0=js(.33,1.53,.69,.99),Mf=x0(b0),S0=v0(Mf),T0=i=>(i*=2)<1?.5*Mf(i):.5*(2-Math.pow(2,-10*(i-1))),jf=i=>1-Math.sin(Math.acos(i)),A0=x0(jf),E0=v0(jf),B1=js(.42,0,1,1),L1=js(0,0,.58,1),w0=js(.42,0,.58,1),H1=i=>Array.isArray(i)&&typeof i[0]!="number",C0=i=>Array.isArray(i)&&typeof i[0]=="number",Y1={linear:ln,easeIn:B1,easeInOut:w0,easeOut:L1,circIn:jf,circInOut:E0,circOut:A0,backIn:Mf,backInOut:S0,backOut:b0,anticipate:T0},q1=i=>typeof i=="string",Qp=i=>{if(C0(i)){wf(i.length===4);const[l,o,u,c]=i;return js(l,o,u,c)}else if(q1(i))return Y1[i];return i},Jo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function G1(i,l){let o=new Set,u=new Set,c=!1,h=!1;const d=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(x){d.has(x)&&(m.schedule(x),i()),x(p)}const m={schedule:(x,b=!1,T=!1)=>{const V=T&&c?o:u;return b&&d.add(x),V.has(x)||V.add(x),x},cancel:x=>{u.delete(x),d.delete(x)},process:x=>{if(p=x,c){h=!0;return}c=!0,[o,u]=[u,o],o.forEach(g),o.clear(),c=!1,h&&(h=!1,m.process(x))}};return m}const X1=40;function M0(i,l){let o=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>o=!0,d=Jo.reduce((G,J)=>(G[J]=G1(h),G),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:x,update:b,preRender:T,render:D,postRender:V}=d,Y=()=>{const G=In.useManualTiming?c.timestamp:performance.now();o=!1,In.useManualTiming||(c.delta=u?1e3/60:Math.max(Math.min(G-c.timestamp,X1),1)),c.timestamp=G,c.isProcessing=!0,p.process(c),g.process(c),m.process(c),x.process(c),b.process(c),T.process(c),D.process(c),V.process(c),c.isProcessing=!1,o&&l&&(u=!1,i(Y))},X=()=>{o=!0,u=!0,c.isProcessing||i(Y)};return{schedule:Jo.reduce((G,J)=>{const Z=d[J];return G[J]=(lt,k=!1,F=!1)=>(o||X(),Z.schedule(lt,k,F)),G},{}),cancel:G=>{for(let J=0;J<Jo.length;J++)d[Jo[J]].cancel(G)},state:c,steps:d}}const{schedule:Rt,cancel:Va,state:ce,steps:zc}=M0(typeof requestAnimationFrame<"u"?requestAnimationFrame:ln,!0);let $o;function K1(){$o=void 0}const xe={now:()=>($o===void 0&&xe.set(ce.isProcessing||In.useManualTiming?ce.timestamp:performance.now()),$o),set:i=>{$o=i,queueMicrotask(K1)}},j0=i=>l=>typeof l=="string"&&l.startsWith(i),N0=j0("--"),Q1=j0("var(--"),Nf=i=>Q1(i)?Z1.test(i.split("/*")[0].trim()):!1,Z1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Zp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const cl={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},As={...cl,transform:i=>Cn(0,1,i)},Fo={...cl,default:1},vs=i=>Math.round(i*1e5)/1e5,Df=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function k1(i){return i==null}const J1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Of=(i,l)=>o=>!!(typeof o=="string"&&J1.test(o)&&o.startsWith(i)||l&&!k1(o)&&Object.prototype.hasOwnProperty.call(o,l)),D0=(i,l,o)=>u=>{if(typeof u!="string")return u;const[c,h,d,p]=u.match(Df);return{[i]:parseFloat(c),[l]:parseFloat(h),[o]:parseFloat(d),alpha:p!==void 0?parseFloat(p):1}},F1=i=>Cn(0,255,i),Rc={...cl,transform:i=>Math.round(F1(i))},ri={test:Of("rgb","red"),parse:D0("red","green","blue"),transform:({red:i,green:l,blue:o,alpha:u=1})=>"rgba("+Rc.transform(i)+", "+Rc.transform(l)+", "+Rc.transform(o)+", "+vs(As.transform(u))+")"};function P1(i){let l="",o="",u="",c="";return i.length>5?(l=i.substring(1,3),o=i.substring(3,5),u=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),o=i.substring(2,3),u=i.substring(3,4),c=i.substring(4,5),l+=l,o+=o,u+=u,c+=c),{red:parseInt(l,16),green:parseInt(o,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const Pc={test:Of("#"),parse:P1,transform:ri.transform},Ns=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),za=Ns("deg"),wn=Ns("%"),I=Ns("px"),W1=Ns("vh"),$1=Ns("vw"),kp={...wn,parse:i=>wn.parse(i)/100,transform:i=>wn.transform(i*100)},al={test:Of("hsl","hue"),parse:D0("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:o,alpha:u=1})=>"hsla("+Math.round(i)+", "+wn.transform(vs(l))+", "+wn.transform(vs(o))+", "+vs(As.transform(u))+")"},Wt={test:i=>ri.test(i)||Pc.test(i)||al.test(i),parse:i=>ri.test(i)?ri.parse(i):al.test(i)?al.parse(i):Pc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?ri.transform(i):al.transform(i),getAnimatableNone:i=>{const l=Wt.parse(i);return l.alpha=0,Wt.transform(l)}},I1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tb(i){return isNaN(i)&&typeof i=="string"&&(i.match(Df)?.length||0)+(i.match(I1)?.length||0)>0}const O0="number",z0="color",eb="var",nb="var(",Jp="${}",ab=/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 Es(i){const l=i.toString(),o=[],u={color:[],number:[],var:[]},c=[];let h=0;const p=l.replace(ab,g=>(Wt.test(g)?(u.color.push(h),c.push(z0),o.push(Wt.parse(g))):g.startsWith(nb)?(u.var.push(h),c.push(eb),o.push(g)):(u.number.push(h),c.push(O0),o.push(parseFloat(g))),++h,Jp)).split(Jp);return{values:o,split:p,indexes:u,types:c}}function R0(i){return Es(i).values}function V0(i){const{split:l,types:o}=Es(i),u=l.length;return c=>{let h="";for(let d=0;d<u;d++)if(h+=l[d],c[d]!==void 0){const p=o[d];p===O0?h+=vs(c[d]):p===z0?h+=Wt.transform(c[d]):h+=c[d]}return h}}const ib=i=>typeof i=="number"?0:Wt.test(i)?Wt.getAnimatableNone(i):i;function lb(i){const l=R0(i);return V0(i)(l.map(ib))}const yn={test:tb,parse:R0,createTransformer:V0,getAnimatableNone:lb};function Vc(i,l,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?i+(l-i)*6*o:o<1/2?l:o<2/3?i+(l-i)*(2/3-o)*6:i}function sb({hue:i,saturation:l,lightness:o,alpha:u}){i/=360,l/=100,o/=100;let c=0,h=0,d=0;if(!l)c=h=d=o;else{const p=o<.5?o*(1+l):o+l-o*l,g=2*o-p;c=Vc(g,p,i+1/3),h=Vc(g,p,i),d=Vc(g,p,i-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(d*255),alpha:u}}function su(i,l){return o=>o>0?l:i}const Ht=(i,l,o)=>i+(l-i)*o,_c=(i,l,o)=>{const u=i*i,c=o*(l*l-u)+u;return c<0?0:Math.sqrt(c)},ob=[Pc,ri,al],ub=i=>ob.find(l=>l.test(i));function Fp(i){const l=ub(i);if(!l)return!1;let o=l.parse(i);return l===al&&(o=sb(o)),o}const Pp=(i,l)=>{const o=Fp(i),u=Fp(l);if(!o||!u)return su(i,l);const c={...o};return h=>(c.red=_c(o.red,u.red,h),c.green=_c(o.green,u.green,h),c.blue=_c(o.blue,u.blue,h),c.alpha=Ht(o.alpha,u.alpha,h),ri.transform(c))},Wc=new Set(["none","hidden"]);function rb(i,l){return Wc.has(i)?o=>o<=0?i:l:o=>o>=1?l:i}function cb(i,l){return o=>Ht(i,l,o)}function zf(i){return typeof i=="number"?cb:typeof i=="string"?Nf(i)?su:Wt.test(i)?Pp:hb:Array.isArray(i)?_0:typeof i=="object"?Wt.test(i)?Pp:fb:su}function _0(i,l){const o=[...i],u=o.length,c=i.map((h,d)=>zf(h)(h,l[d]));return h=>{for(let d=0;d<u;d++)o[d]=c[d](h);return o}}function fb(i,l){const o={...i,...l},u={};for(const c in o)i[c]!==void 0&&l[c]!==void 0&&(u[c]=zf(i[c])(i[c],l[c]));return c=>{for(const h in u)o[h]=u[h](c);return o}}function db(i,l){const o=[],u={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const h=l.types[c],d=i.indexes[h][u[h]],p=i.values[d]??0;o[c]=p,u[h]++}return o}const hb=(i,l)=>{const o=yn.createTransformer(l),u=Es(i),c=Es(l);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Wc.has(i)&&!c.values.length||Wc.has(l)&&!u.values.length?rb(i,l):Ms(_0(db(u,c),c.values),o):su(i,l)};function U0(i,l,o){return typeof i=="number"&&typeof l=="number"&&typeof o=="number"?Ht(i,l,o):zf(i)(i,l)}const mb=i=>{const l=({timestamp:o})=>i(o);return{start:(o=!0)=>Rt.update(l,o),stop:()=>Va(l),now:()=>ce.isProcessing?ce.timestamp:xe.now()}},B0=(i,l,o=10)=>{let u="";const c=Math.max(Math.round(l/o),2);for(let h=0;h<c;h++)u+=Math.round(i(h/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},ou=2e4;function Rf(i){let l=0;const o=50;let u=i.next(l);for(;!u.done&&l<ou;)l+=o,u=i.next(l);return l>=ou?1/0:l}function pb(i,l=100,o){const u=o({...i,keyframes:[0,l]}),c=Math.min(Rf(u),ou);return{type:"keyframes",ease:h=>u.next(c*h).value/l,duration:an(c)}}const yb=5;function L0(i,l,o){const u=Math.max(l-yb,0);return y0(o-i(u),l-u)}const Xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Uc=.001;function gb({duration:i=Xt.duration,bounce:l=Xt.bounce,velocity:o=Xt.velocity,mass:u=Xt.mass}){let c,h,d=1-l;d=Cn(Xt.minDamping,Xt.maxDamping,d),i=Cn(Xt.minDuration,Xt.maxDuration,an(i)),d<1?(c=m=>{const x=m*d,b=x*i,T=x-o,D=$c(m,d),V=Math.exp(-b);return Uc-T/D*V},h=m=>{const b=m*d*i,T=b*o+o,D=Math.pow(d,2)*Math.pow(m,2)*i,V=Math.exp(-b),Y=$c(Math.pow(m,2),d);return(-c(m)+Uc>0?-1:1)*((T-D)*V)/Y}):(c=m=>{const x=Math.exp(-m*i),b=(m-o)*i+1;return-Uc+x*b},h=m=>{const x=Math.exp(-m*i),b=(o-m)*(i*i);return x*b});const p=5/i,g=xb(c,h,p);if(i=pn(i),isNaN(g))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:i};{const m=Math.pow(g,2)*u;return{stiffness:m,damping:d*2*Math.sqrt(u*m),duration:i}}}const vb=12;function xb(i,l,o){let u=o;for(let c=1;c<vb;c++)u=u-i(u)/l(u);return u}function $c(i,l){return i*Math.sqrt(1-l*l)}const bb=["duration","bounce"],Sb=["stiffness","damping","mass"];function Wp(i,l){return l.some(o=>i[o]!==void 0)}function Tb(i){let l={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...i};if(!Wp(i,Sb)&&Wp(i,bb))if(l.velocity=0,i.visualDuration){const o=i.visualDuration,u=2*Math.PI/(o*1.2),c=u*u,h=2*Cn(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:Xt.mass,stiffness:c,damping:h}}else{const o=gb({...i,velocity:0});l={...l,...o,mass:Xt.mass},l.isResolvedFromDuration=!0}return l}function uu(i=Xt.visualDuration,l=Xt.bounce){const o=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:u,restDelta:c}=o;const h=o.keyframes[0],d=o.keyframes[o.keyframes.length-1],p={done:!1,value:h},{stiffness:g,damping:m,mass:x,duration:b,velocity:T,isResolvedFromDuration:D}=Tb({...o,velocity:-an(o.velocity||0)}),V=T||0,Y=m/(2*Math.sqrt(g*x)),X=d-h,q=an(Math.sqrt(g/x)),K=Math.abs(X)<5;u||(u=K?Xt.restSpeed.granular:Xt.restSpeed.default),c||(c=K?Xt.restDelta.granular:Xt.restDelta.default);let G;if(Y<1){const Z=$c(q,Y);G=lt=>{const k=Math.exp(-Y*q*lt);return d-k*((V+Y*q*X)/Z*Math.sin(Z*lt)+X*Math.cos(Z*lt))}}else if(Y===1)G=Z=>d-Math.exp(-q*Z)*(X+(V+q*X)*Z);else{const Z=q*Math.sqrt(Y*Y-1);G=lt=>{const k=Math.exp(-Y*q*lt),F=Math.min(Z*lt,300);return d-k*((V+Y*q*X)*Math.sinh(F)+Z*X*Math.cosh(F))/Z}}const J={calculatedDuration:D&&b||null,next:Z=>{const lt=G(Z);if(D)p.done=Z>=b;else{let k=Z===0?V:0;Y<1&&(k=Z===0?pn(V):L0(G,Z,lt));const F=Math.abs(k)<=u,st=Math.abs(d-lt)<=c;p.done=F&&st}return p.value=p.done?d:lt,p},toString:()=>{const Z=Math.min(Rf(J),ou),lt=B0(k=>J.next(Z*k).value,Z,30);return Z+"ms "+lt},toTransition:()=>{}};return J}uu.applyToOptions=i=>{const l=pb(i,100,uu);return i.ease=l.ease,i.duration=pn(l.duration),i.type="keyframes",i};function Ic({keyframes:i,velocity:l=0,power:o=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:d,min:p,max:g,restDelta:m=.5,restSpeed:x}){const b=i[0],T={done:!1,value:b},D=F=>p!==void 0&&F<p||g!==void 0&&F>g,V=F=>p===void 0?g:g===void 0||Math.abs(p-F)<Math.abs(g-F)?p:g;let Y=o*l;const X=b+Y,q=d===void 0?X:d(X);q!==X&&(Y=q-b);const K=F=>-Y*Math.exp(-F/u),G=F=>q+K(F),J=F=>{const st=K(F),bt=G(F);T.done=Math.abs(st)<=m,T.value=T.done?q:bt};let Z,lt;const k=F=>{D(T.value)&&(Z=F,lt=uu({keyframes:[T.value,V(T.value)],velocity:L0(G,F,T.value),damping:c,stiffness:h,restDelta:m,restSpeed:x}))};return k(0),{calculatedDuration:null,next:F=>{let st=!1;return!lt&&Z===void 0&&(st=!0,J(F),k(F)),Z!==void 0&&F>=Z?lt.next(F-Z):(!st&&J(F),T)}}}function Ab(i,l,o){const u=[],c=o||In.mix||U0,h=i.length-1;for(let d=0;d<h;d++){let p=c(i[d],i[d+1]);if(l){const g=Array.isArray(l)?l[d]||ln:l;p=Ms(g,p)}u.push(p)}return u}function Eb(i,l,{clamp:o=!0,ease:u,mixer:c}={}){const h=i.length;if(wf(h===l.length),h===1)return()=>l[0];if(h===2&&l[0]===l[1])return()=>l[1];const d=i[0]===i[1];i[0]>i[h-1]&&(i=[...i].reverse(),l=[...l].reverse());const p=Ab(l,u,c),g=p.length,m=x=>{if(d&&x<i[0])return l[0];let b=0;if(g>1)for(;b<i.length-2&&!(x<i[b+1]);b++);const T=Ts(i[b],i[b+1],x);return p[b](T)};return o?x=>m(Cn(i[0],i[h-1],x)):m}function wb(i,l){const o=i[i.length-1];for(let u=1;u<=l;u++){const c=Ts(0,l,u);i.push(Ht(o,1,c))}}function Cb(i){const l=[0];return wb(l,i.length-1),l}function Mb(i,l){return i.map(o=>o*l)}function jb(i,l){return i.map(()=>l||w0).splice(0,i.length-1)}function xs({duration:i=300,keyframes:l,times:o,ease:u="easeInOut"}){const c=H1(u)?u.map(Qp):Qp(u),h={done:!1,value:l[0]},d=Mb(o&&o.length===l.length?o:Cb(l),i),p=Eb(d,l,{ease:Array.isArray(c)?c:jb(l,c)});return{calculatedDuration:i,next:g=>(h.value=p(g),h.done=g>=i,h)}}const Nb=i=>i!==null;function Vf(i,{repeat:l,repeatType:o="loop"},u,c=1){const h=i.filter(Nb),p=c<0||l&&o!=="loop"&&l%2===1?0:h.length-1;return!p||u===void 0?h[p]:u}const Db={decay:Ic,inertia:Ic,tween:xs,keyframes:xs,spring:uu};function H0(i){typeof i.type=="string"&&(i.type=Db[i.type])}class _f{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,o){return this.finished.then(l,o)}}const Ob=i=>i/100;class Uf extends _f{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:o}=this.options;o&&o.updatedAt!==xe.now()&&this.tick(xe.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;H0(l);const{type:o=xs,repeat:u=0,repeatDelay:c=0,repeatType:h,velocity:d=0}=l;let{keyframes:p}=l;const g=o||xs;g!==xs&&typeof p[0]!="number"&&(this.mixKeyframes=Ms(Ob,U0(p[0],p[1])),p=[0,100]);const m=g({...l,keyframes:p});h==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...p].reverse(),velocity:-d})),m.calculatedDuration===null&&(m.calculatedDuration=Rf(m));const{calculatedDuration:x}=m;this.calculatedDuration=x,this.resolvedDuration=x+c,this.totalDuration=this.resolvedDuration*(u+1)-c,this.generator=m}updateTime(l){const o=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(l,o=!1){const{generator:u,totalDuration:c,mixKeyframes:h,mirroredGenerator:d,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return u.next(0);const{delay:m=0,keyframes:x,repeat:b,repeatType:T,repeatDelay:D,type:V,onUpdate:Y,finalKeyframe:X}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),o?this.currentTime=l:this.updateTime(l);const q=this.currentTime-m*(this.playbackSpeed>=0?1:-1),K=this.playbackSpeed>=0?q<0:q>c;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let G=this.currentTime,J=u;if(b){const F=Math.min(this.currentTime,c)/p;let st=Math.floor(F),bt=F%1;!bt&&F>=1&&(bt=1),bt===1&&st--,st=Math.min(st,b+1),st%2&&(T==="reverse"?(bt=1-bt,D&&(bt-=D/p)):T==="mirror"&&(J=d)),G=Cn(0,1,bt)*p}const Z=K?{done:!1,value:x[0]}:J.next(G);h&&(Z.value=h(Z.value));let{done:lt}=Z;!K&&g!==null&&(lt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&<);return k&&V!==Ic&&(Z.value=Vf(x,this.options,X,this.speed)),Y&&Y(Z.value),k&&this.finish(),Z}then(l,o){return this.finished.then(l,o)}get duration(){return an(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+an(l)}get time(){return an(this.currentTime)}set time(l){l=pn(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(xe.now());const o=this.playbackSpeed!==l;this.playbackSpeed=l,o&&(this.time=an(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=mb,startTime:o}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=o??u),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(xe.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 zb(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const ci=i=>i*180/Math.PI,tf=i=>{const l=ci(Math.atan2(i[1],i[0]));return ef(l)},Rb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:tf,rotateZ:tf,skewX:i=>ci(Math.atan(i[1])),skewY:i=>ci(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},ef=i=>(i=i%360,i<0&&(i+=360),i),$p=tf,Ip=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),ty=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Vb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ip,scaleY:ty,scale:i=>(Ip(i)+ty(i))/2,rotateX:i=>ef(ci(Math.atan2(i[6],i[5]))),rotateY:i=>ef(ci(Math.atan2(-i[2],i[0]))),rotateZ:$p,rotate:$p,skewX:i=>ci(Math.atan(i[4])),skewY:i=>ci(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function nf(i){return i.includes("scale")?1:0}function af(i,l){if(!i||i==="none")return nf(l);const o=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(o)u=Vb,c=o;else{const p=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=Rb,c=p}if(!c)return nf(l);const h=u[l],d=c[1].split(",").map(Ub);return typeof h=="function"?h(d):d[h]}const _b=(i,l)=>{const{transform:o="none"}=getComputedStyle(i);return af(o,l)};function Ub(i){return parseFloat(i.trim())}const fl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dl=new Set(fl),ey=i=>i===cl||i===I,Bb=new Set(["x","y","z"]),Lb=fl.filter(i=>!Bb.has(i));function Hb(i){const l=[];return Lb.forEach(o=>{const u=i.getValue(o);u!==void 0&&(l.push([o,u.get()]),u.set(o.startsWith("scale")?1:0))}),l}const Ra={width:({x:i},{paddingLeft:l="0",paddingRight:o="0"})=>i.max-i.min-parseFloat(l)-parseFloat(o),height:({y:i},{paddingTop:l="0",paddingBottom:o="0"})=>i.max-i.min-parseFloat(l)-parseFloat(o),top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>af(l,"x"),y:(i,{transform:l})=>af(l,"y")};Ra.translateX=Ra.x;Ra.translateY=Ra.y;const fi=new Set;let lf=!1,sf=!1,of=!1;function Y0(){if(sf){const i=Array.from(fi).filter(u=>u.needsMeasurement),l=new Set(i.map(u=>u.element)),o=new Map;l.forEach(u=>{const c=Hb(u);c.length&&(o.set(u,c),u.render())}),i.forEach(u=>u.measureInitialState()),l.forEach(u=>{u.render();const c=o.get(u);c&&c.forEach(([h,d])=>{u.getValue(h)?.set(d)})}),i.forEach(u=>u.measureEndState()),i.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}sf=!1,lf=!1,fi.forEach(i=>i.complete(of)),fi.clear()}function q0(){fi.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(sf=!0)})}function Yb(){of=!0,q0(),Y0(),of=!1}class Bf{constructor(l,o,u,c,h,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=o,this.name=u,this.motionValue=c,this.element=h,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(fi.add(this),lf||(lf=!0,Rt.read(q0),Rt.resolveKeyframes(Y0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:o,element:u,motionValue:c}=this;if(l[0]===null){const h=c?.get(),d=l[l.length-1];if(h!==void 0)l[0]=h;else if(u&&o){const p=u.readValue(o,d);p!=null&&(l[0]=p)}l[0]===void 0&&(l[0]=d),c&&h===void 0&&c.set(l[0])}zb(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),fi.delete(this)}cancel(){this.state==="scheduled"&&(fi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const qb=i=>i.startsWith("--");function Gb(i,l,o){qb(l)?i.style.setProperty(l,o):i.style[l]=o}const Xb={};function G0(i,l){const o=p0(i);return()=>Xb[l]??o()}const Kb=G0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),X0=G0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gs=([i,l,o,u])=>`cubic-bezier(${i}, ${l}, ${o}, ${u})`,ny={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gs([0,.65,.55,1]),circOut:gs([.55,0,1,.45]),backIn:gs([.31,.01,.66,-.59]),backOut:gs([.33,1.53,.69,.99])};function K0(i,l){if(i)return typeof i=="function"?X0()?B0(i,l):"ease-out":C0(i)?gs(i):Array.isArray(i)?i.map(o=>K0(o,l)||ny.easeOut):ny[i]}function Qb(i,l,o,{delay:u=0,duration:c=300,repeat:h=0,repeatType:d="loop",ease:p="easeOut",times:g}={},m=void 0){const x={[l]:o};g&&(x.offset=g);const b=K0(p,c);Array.isArray(b)&&(x.easing=b);const T={delay:u,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:h+1,direction:d==="reverse"?"alternate":"normal"};return m&&(T.pseudoElement=m),i.animate(x,T)}function Q0(i){return typeof i=="function"&&"applyToOptions"in i}function Zb({type:i,...l}){return Q0(i)&&X0()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class Z0 extends _f{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:o,name:u,keyframes:c,pseudoElement:h,allowFlatten:d=!1,finalKeyframe:p,onComplete:g}=l;this.isPseudoElement=!!h,this.allowFlatten=d,this.options=l,wf(typeof l.type!="string");const m=Zb(l);this.animation=Qb(o,u,c,m,h),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const x=Vf(c,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(x):Gb(o,u,x),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const l=this.options?.element;!this.isPseudoElement&&l?.isConnected&&this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return an(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+an(l)}get time(){return an(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=pn(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&Kb()?(this.animation.timeline=l,ln):o(this)}}const k0={anticipate:T0,backInOut:S0,circInOut:E0};function kb(i){return i in k0}function Jb(i){typeof i.ease=="string"&&kb(i.ease)&&(i.ease=k0[i.ease])}const Bc=10;class Fb extends Z0{constructor(l){Jb(l),H0(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:o,onUpdate:u,onComplete:c,element:h,...d}=this.options;if(!o)return;if(l!==void 0){o.set(l);return}const p=new Uf({...d,autoplay:!1}),g=Math.max(Bc,xe.now()-this.startTime),m=Cn(0,Bc,g-Bc);o.setWithVelocity(p.sample(Math.max(0,g-m)).value,p.sample(g).value,m),p.stop()}}const ay=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(yn.test(i)||i==="0")&&!i.startsWith("url("));function Pb(i){const l=i[0];if(i.length===1)return!0;for(let o=0;o<i.length;o++)if(i[o]!==l)return!0}function Wb(i,l,o,u){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const h=i[i.length-1],d=ay(c,l),p=ay(h,l);return!d||!p?!1:Pb(i)||(o==="spring"||Q0(o))&&u}function uf(i){i.duration=0,i.type="keyframes"}const $b=new Set(["opacity","clipPath","filter","transform"]),Ib=p0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function tS(i){const{motionValue:l,name:o,repeatDelay:u,repeatType:c,damping:h,type:d}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=l.owner.getProps();return Ib()&&o&&$b.has(o)&&(o!=="transform"||!m)&&!g&&!u&&c!=="mirror"&&h!==0&&d!=="inertia"}const eS=40;class nS extends _f{constructor({autoplay:l=!0,delay:o=0,type:u="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:d="loop",keyframes:p,name:g,motionValue:m,element:x,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=xe.now();const T={autoplay:l,delay:o,type:u,repeat:c,repeatDelay:h,repeatType:d,name:g,motionValue:m,element:x,...b},D=x?.KeyframeResolver||Bf;this.keyframeResolver=new D(p,(V,Y,X)=>this.onKeyframesResolved(V,Y,T,!X),g,m,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,o,u,c){this.keyframeResolver=void 0;const{name:h,type:d,velocity:p,delay:g,isHandoff:m,onUpdate:x}=u;this.resolvedAt=xe.now(),Wb(l,h,d,p)||((In.instantAnimations||!g)&&x?.(Vf(l,u,o)),l[0]=l[l.length-1],uf(u),u.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>eS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...u,keyframes:l},D=!m&&tS(T),V=T.motionValue?.owner?.current,Y=D?new Fb({...T,element:V}):new Uf(T);Y.finished.then(()=>{this.notifyFinished()}).catch(ln),this.pendingTimeline&&(this.stopTimeline=Y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=Y}get finished(){return this._animation?this.animation.finished:this._finished}then(l,o){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Yb()),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 J0(i,l,o,u=0,c=1){const h=Array.from(i).sort((m,x)=>m.sortNodePosition(x)).indexOf(l),d=i.size,p=(d-1)*u;return typeof o=="function"?o(h,d):c===1?h*u:p-h*u}const aS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function iS(i){const l=aS.exec(i);if(!l)return[,];const[,o,u,c]=l;return[`--${o??u}`,c]}function F0(i,l,o=1){const[u,c]=iS(i);if(!u)return;const h=window.getComputedStyle(l).getPropertyValue(u);if(h){const d=h.trim();return d0(d)?parseFloat(d):d}return Nf(c)?F0(c,l,o+1):c}const lS={type:"spring",stiffness:500,damping:25,restSpeed:10},sS=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),oS={type:"keyframes",duration:.8},uS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rS=(i,{keyframes:l})=>l.length>2?oS:dl.has(i)?i.startsWith("scale")?sS(l[1]):lS:uS,cS=i=>i!==null;function fS(i,{repeat:l,repeatType:o="loop"},u){const c=i.filter(cS),h=l&&o!=="loop"&&l%2===1?0:c.length-1;return c[h]}function P0(i,l){if(i?.inherit&&l){const{inherit:o,...u}=i;return{...l,...u}}return i}function Lf(i,l){const o=i?.[l]??i?.default??i;return o!==i?P0(o,i):o}function dS({when:i,delay:l,delayChildren:o,staggerChildren:u,staggerDirection:c,repeat:h,repeatType:d,repeatDelay:p,from:g,elapsed:m,...x}){return!!Object.keys(x).length}const Hf=(i,l,o,u={},c,h)=>d=>{const p=Lf(u,i)||{},g=p.delay||u.delay||0;let{elapsed:m=0}=u;m=m-pn(g);const x={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:l.getVelocity(),...p,delay:-m,onUpdate:T=>{l.set(T),p.onUpdate&&p.onUpdate(T)},onComplete:()=>{d(),p.onComplete&&p.onComplete()},name:i,motionValue:l,element:h?void 0:c};dS(p)||Object.assign(x,rS(i,x)),x.duration&&(x.duration=pn(x.duration)),x.repeatDelay&&(x.repeatDelay=pn(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(uf(x),x.delay===0&&(b=!0)),(In.instantAnimations||In.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,uf(x),x.delay=0),x.allowFlatten=!p.type&&!p.ease,b&&!h&&l.get()!==void 0){const T=fS(x.keyframes,p);if(T!==void 0){Rt.update(()=>{x.onUpdate(T),x.onComplete()});return}}return p.isSync?new Uf(x):new nS(x)};function iy(i){const l=[{},{}];return i?.values.forEach((o,u)=>{l[0][u]=o.get(),l[1][u]=o.getVelocity()}),l}function Yf(i,l,o,u){if(typeof l=="function"){const[c,h]=iy(u);l=l(o!==void 0?o:i.custom,c,h)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,h]=iy(u);l=l(o!==void 0?o:i.custom,c,h)}return l}function ul(i,l,o){const u=i.getProps();return Yf(u,l,o!==void 0?o:u.custom,i)}const W0=new Set(["width","height","top","left","right","bottom",...fl]),ly=30,hS=i=>!isNaN(parseFloat(i));class mS{constructor(l,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{const c=xe.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=o.owner}setCurrent(l){this.current=l,this.updatedAt=xe.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=hS(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,o){this.events[l]||(this.events[l]=new Cf);const u=this.events[l].add(o);return l==="change"?()=>{u(),Rt.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,o){this.passiveEffect=l,this.stopPassiveEffect=o}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,o,u){this.set(o),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-u}jump(l,o=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=xe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>ly)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,ly);return y0(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(l){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=l(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function rl(i,l){return new mS(i,l)}const rf=i=>Array.isArray(i);function pS(i,l,o){i.hasValue(l)?i.getValue(l).set(o):i.addValue(l,rl(o))}function yS(i){return rf(i)?i[i.length-1]||0:i}function gS(i,l){const o=ul(i,l);let{transitionEnd:u={},transition:c={},...h}=o||{};h={...h,...u};for(const d in h){const p=yS(h[d]);pS(i,d,p)}}const me=i=>!!(i&&i.getVelocity);function vS(i){return!!(me(i)&&i.add)}function cf(i,l){const o=i.getValue("willChange");if(vS(o))return o.add(l);if(!o&&In.WillChange){const u=new In.WillChange("auto");i.addValue("willChange",u),u.add(l)}}function qf(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const xS="framerAppearId",$0="data-"+qf(xS);function I0(i){return i.props[$0]}function bS({protectedKeys:i,needsAnimating:l},o){const u=i.hasOwnProperty(o)&&l[o]!==!0;return l[o]=!1,u}function tg(i,l,{delay:o=0,transitionOverride:u,type:c}={}){let{transition:h,transitionEnd:d,...p}=l;const g=i.getDefaultTransition();h=h?P0(h,g):g;const m=h?.reduceMotion;u&&(h=u);const x=[],b=c&&i.animationState&&i.animationState.getState()[c];for(const T in p){const D=i.getValue(T,i.latestValues[T]??null),V=p[T];if(V===void 0||b&&bS(b,T))continue;const Y={delay:o,...Lf(h||{},T)},X=D.get();if(X!==void 0&&!D.isAnimating&&!Array.isArray(V)&&V===X&&!Y.velocity)continue;let q=!1;if(window.MotionHandoffAnimation){const J=I0(i);if(J){const Z=window.MotionHandoffAnimation(J,T,Rt);Z!==null&&(Y.startTime=Z,q=!0)}}cf(i,T);const K=m??i.shouldReduceMotion;D.start(Hf(T,D,V,K&&W0.has(T)?{type:!1}:Y,i,q));const G=D.animation;G&&x.push(G)}if(d){const T=()=>Rt.update(()=>{d&&gS(i,d)});x.length?Promise.all(x).then(T):T()}return x}function ff(i,l,o={}){const u=ul(i,l,o.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=u||{};o.transitionOverride&&(c=o.transitionOverride);const h=u?()=>Promise.all(tg(i,u,o)):()=>Promise.resolve(),d=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:x,staggerDirection:b}=c;return SS(i,l,g,m,x,b,o)}:()=>Promise.resolve(),{when:p}=c;if(p){const[g,m]=p==="beforeChildren"?[h,d]:[d,h];return g().then(()=>m())}else return Promise.all([h(),d(o.delay)])}function SS(i,l,o=0,u=0,c=0,h=1,d){const p=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),p.push(ff(g,l,{...d,delay:o+(typeof u=="function"?0:u)+J0(i.variantChildren,g,u,c,h)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(p)}function TS(i,l,o={}){i.notify("AnimationStart",l);let u;if(Array.isArray(l)){const c=l.map(h=>ff(i,h,o));u=Promise.all(c)}else if(typeof l=="string")u=ff(i,l,o);else{const c=typeof l=="function"?ul(i,l,o.custom):l;u=Promise.all(tg(i,c,o))}return u.then(()=>{i.notify("AnimationComplete",l)})}const AS={test:i=>i==="auto",parse:i=>i},eg=i=>l=>l.test(i),ng=[cl,I,wn,za,$1,W1,AS],sy=i=>ng.find(eg(i));function ES(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||m0(i):!0}const wS=new Set(["brightness","contrast","saturate","opacity"]);function CS(i){const[l,o]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[u]=o.match(Df)||[];if(!u)return i;const c=o.replace(u,"");let h=wS.has(l)?1:0;return u!==o&&(h*=100),l+"("+h+c+")"}const MS=/\b([a-z-]*)\(.*?\)/gu,df={...yn,getAnimatableNone:i=>{const l=i.match(MS);return l?l.map(CS).join(" "):i}},hf={...yn,getAnimatableNone:i=>{const l=yn.parse(i);return yn.createTransformer(i)(l.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},oy={...cl,transform:Math.round},jS={rotate:za,rotateX:za,rotateY:za,rotateZ:za,scale:Fo,scaleX:Fo,scaleY:Fo,scaleZ:Fo,skew:za,skewX:za,skewY:za,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:As,originX:kp,originY:kp,originZ:I},Gf={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,...jS,zIndex:oy,fillOpacity:As,strokeOpacity:As,numOctaves:oy},NS={...Gf,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:df,WebkitFilter:df,mask:hf,WebkitMask:hf},ag=i=>NS[i],DS=new Set([df,hf]);function ig(i,l){let o=ag(i);return DS.has(o)||(o=yn),o.getAnimatableNone?o.getAnimatableNone(l):void 0}const OS=new Set(["auto","none","0"]);function zS(i,l,o){let u=0,c;for(;u<i.length&&!c;){const h=i[u];typeof h=="string"&&!OS.has(h)&&Es(h).values.length&&(c=i[u]),u++}if(c&&o)for(const h of l)i[h]=ig(o,c)}class RS extends Bf{constructor(l,o,u,c,h){super(l,o,u,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:o,name:u}=this;if(!o||!o.current)return;super.readKeyframes();for(let x=0;x<l.length;x++){let b=l[x];if(typeof b=="string"&&(b=b.trim(),Nf(b))){const T=F0(b,o.current);T!==void 0&&(l[x]=T),x===l.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!W0.has(u)||l.length!==2)return;const[c,h]=l,d=sy(c),p=sy(h),g=Zp(c),m=Zp(h);if(g!==m&&Ra[u]){this.needsMeasurement=!0;return}if(d!==p)if(ey(d)&&ey(p))for(let x=0;x<l.length;x++){const b=l[x];typeof b=="string"&&(l[x]=parseFloat(b))}else Ra[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:o}=this,u=[];for(let c=0;c<l.length;c++)(l[c]===null||ES(l[c]))&&u.push(c);u.length&&zS(l,u,o)}measureInitialState(){const{element:l,unresolvedKeyframes:o,name:u}=this;if(!l||!l.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ra[u](l.measureViewportBox(),window.getComputedStyle(l.current)),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&l.getValue(u,c).jump(c,!1)}measureEndState(){const{element:l,name:o,unresolvedKeyframes:u}=this;if(!l||!l.current)return;const c=l.getValue(o);c&&c.jump(this.measuredOrigin,!1);const h=u.length-1,d=u[h];u[h]=Ra[o](l.measureViewportBox(),window.getComputedStyle(l.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,g])=>{l.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const VS=new Set(["opacity","clipPath","filter","transform"]);function lg(i,l,o){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let u=document;const c=o?.[i]??u.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(u=>u!=null)}const sg=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function mf(i){return h0(i)&&"offsetHeight"in i}const{schedule:Xf}=M0(queueMicrotask,!1),mn={x:!1,y:!1};function og(){return mn.x||mn.y}function _S(i){return i==="x"||i==="y"?mn[i]?null:(mn[i]=!0,()=>{mn[i]=!1}):mn.x||mn.y?null:(mn.x=mn.y=!0,()=>{mn.x=mn.y=!1})}function ug(i,l){const o=lg(i),u=new AbortController,c={passive:!0,...l,signal:u.signal};return[o,c,()=>u.abort()]}function US(i){return!(i.pointerType==="touch"||og())}function BS(i,l,o={}){const[u,c,h]=ug(i,o);return u.forEach(d=>{let p=!1,g=!1,m;const x=()=>{d.removeEventListener("pointerleave",V)},b=X=>{m&&(m(X),m=void 0),x()},T=X=>{p=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,b(X))},D=()=>{p=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},V=X=>{if(X.pointerType!=="touch"){if(p){g=!0;return}b(X)}},Y=X=>{if(!US(X))return;g=!1;const q=l(d,X);typeof q=="function"&&(m=q,d.addEventListener("pointerleave",V,c))};d.addEventListener("pointerenter",Y,c),d.addEventListener("pointerdown",D,c)}),h}const rg=(i,l)=>l?i===l?!0:rg(i,l.parentElement):!1,Kf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,LS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function HS(i){return LS.has(i.tagName)||i.isContentEditable===!0}const YS=new Set(["INPUT","SELECT","TEXTAREA"]);function qS(i){return YS.has(i.tagName)||i.isContentEditable===!0}const Io=new WeakSet;function uy(i){return l=>{l.key==="Enter"&&i(l)}}function Lc(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const GS=(i,l)=>{const o=i.currentTarget;if(!o)return;const u=uy(()=>{if(Io.has(o))return;Lc(o,"down");const c=uy(()=>{Lc(o,"up")}),h=()=>Lc(o,"cancel");o.addEventListener("keyup",c,l),o.addEventListener("blur",h,l)});o.addEventListener("keydown",u,l),o.addEventListener("blur",()=>o.removeEventListener("keydown",u),l)};function ry(i){return Kf(i)&&!og()}const cy=new WeakSet;function XS(i,l,o={}){const[u,c,h]=ug(i,o),d=p=>{const g=p.currentTarget;if(!ry(p)||cy.has(p))return;Io.add(g),o.stopPropagation&&cy.add(p);const m=l(g,p),x=(D,V)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",T),Io.has(g)&&Io.delete(g),ry(D)&&typeof m=="function"&&m(D,{success:V})},b=D=>{x(D,g===window||g===document||o.useGlobalTarget||rg(g,D.target))},T=D=>{x(D,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",T,c)};return u.forEach(p=>{(o.useGlobalTarget?window:p).addEventListener("pointerdown",d,c),mf(p)&&(p.addEventListener("focus",m=>GS(m,c)),!HS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),h}function Qf(i){return h0(i)&&"ownerSVGElement"in i}const tu=new WeakMap;let eu;const cg=(i,l,o)=>(u,c)=>c&&c[0]?c[0][i+"Size"]:Qf(u)&&"getBBox"in u?u.getBBox()[l]:u[o],KS=cg("inline","width","offsetWidth"),QS=cg("block","height","offsetHeight");function ZS({target:i,borderBoxSize:l}){tu.get(i)?.forEach(o=>{o(i,{get width(){return KS(i,l)},get height(){return QS(i,l)}})})}function kS(i){i.forEach(ZS)}function JS(){typeof ResizeObserver>"u"||(eu=new ResizeObserver(kS))}function FS(i,l){eu||JS();const o=lg(i);return o.forEach(u=>{let c=tu.get(u);c||(c=new Set,tu.set(u,c)),c.add(l),eu?.observe(u)}),()=>{o.forEach(u=>{const c=tu.get(u);c?.delete(l),c?.size||eu?.unobserve(u)})}}const nu=new Set;let il;function PS(){il=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};nu.forEach(l=>l(i))},window.addEventListener("resize",il)}function WS(i){return nu.add(i),il||PS(),()=>{nu.delete(i),!nu.size&&typeof il=="function"&&(window.removeEventListener("resize",il),il=void 0)}}function fy(i,l){return typeof i=="function"?WS(i):FS(i,l)}function $S(i){return Qf(i)&&i.tagName==="svg"}const IS=[...ng,Wt,yn],t2=i=>IS.find(eg(i)),dy=()=>({translate:0,scale:1,origin:0,originPoint:0}),ll=()=>({x:dy(),y:dy()}),hy=()=>({min:0,max:0}),te=()=>({x:hy(),y:hy()}),e2=new WeakMap;function mu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function ws(i){return typeof i=="string"||Array.isArray(i)}const Zf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kf=["initial",...Zf];function pu(i){return mu(i.animate)||kf.some(l=>ws(i[l]))}function fg(i){return!!(pu(i)||i.variants)}function n2(i,l,o){for(const u in l){const c=l[u],h=o[u];if(me(c))i.addValue(u,c);else if(me(h))i.addValue(u,rl(c,{owner:i}));else if(h!==c)if(i.hasValue(u)){const d=i.getValue(u);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=i.getStaticValue(u);i.addValue(u,rl(d!==void 0?d:c,{owner:i}))}}for(const u in o)l[u]===void 0&&i.removeValue(u);return l}const pf={current:null},dg={current:!1},a2=typeof window<"u";function i2(){if(dg.current=!0,!!a2)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>pf.current=i.matches;i.addEventListener("change",l),l()}else pf.current=!1}const my=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ru={};function hg(i){ru=i}function l2(){return ru}class s2{scrapeMotionValuesFromProps(l,o,u){return{}}constructor({parent:l,props:o,presenceContext:u,reducedMotionConfig:c,skipAnimations:h,blockInitialAnimation:d,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=Bf,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 D=xe.now();this.renderScheduledAt<D&&(this.renderScheduledAt=D,Rt.render(this.render,!1,!0))};const{latestValues:m,renderState:x}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=o.initial?{...m}:{},this.renderState=x,this.parent=l,this.props=o,this.presenceContext=u,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=h,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=pu(o),this.isVariantNode=fg(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:b,...T}=this.scrapeMotionValuesFromProps(o,{},this);for(const D in T){const V=T[D];m[D]!==void 0&&me(V)&&V.set(m[D])}}mount(l){if(this.hasBeenMounted)for(const o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=l,e2.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,u)=>this.bindToMotionValue(u,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(dg.current||i2(),this.shouldReduceMotion=pf.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(),Va(this.notifyUpdate),Va(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const o=this.features[l];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,o){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),o.accelerate&&VS.has(l)&&this.current instanceof HTMLElement){const{factory:d,keyframes:p,times:g,ease:m,duration:x}=o.accelerate,b=new Z0({element:this.current,name:l,keyframes:p,times:g,ease:m,duration:pn(x)}),T=d(b);this.valueSubscriptions.set(l,()=>{T(),b.cancel()});return}const u=dl.has(l);u&&this.onBindTransform&&this.onBindTransform();const c=o.on("change",d=>{this.latestValues[l]=d,this.props.onUpdate&&Rt.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;typeof window<"u"&&window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,l,o)),this.valueSubscriptions.set(l,()=>{c(),h&&h(),o.owner&&o.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in ru){const o=ru[l];if(!o)continue;const{isEnabled:u,Feature:c}=o;if(!this.features[l]&&c&&u(this.props)&&(this.features[l]=new c(this)),this.features[l]){const h=this.features[l];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,o){this.latestValues[l]=o}update(l,o){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let u=0;u<my.length;u++){const c=my[u];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,d=l[h];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=n2(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(l){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(l),()=>o.variantChildren.delete(l)}addValue(l,o){const u=this.values.get(l);o!==u&&(u&&this.removeValue(l),this.bindToMotionValue(l,o),this.values.set(l,o),this.latestValues[l]=o.get())}removeValue(l){this.values.delete(l);const o=this.valueSubscriptions.get(l);o&&(o(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,o){if(this.props.values&&this.props.values[l])return this.props.values[l];let u=this.values.get(l);return u===void 0&&o!==void 0&&(u=rl(o===null?void 0:o,{owner:this}),this.addValue(l,u)),u}readValue(l,o){let u=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return u!=null&&(typeof u=="string"&&(d0(u)||m0(u))?u=parseFloat(u):!t2(u)&&yn.test(o)&&(u=ig(l,o)),this.setBaseTarget(l,me(u)?u.get():u)),me(u)?u.get():u}setBaseTarget(l,o){this.baseTarget[l]=o}getBaseTarget(l){const{initial:o}=this.props;let u;if(typeof o=="string"||typeof o=="object"){const h=Yf(this.props,o,this.presenceContext?.custom);h&&(u=h[l])}if(o&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!me(c)?c:this.initialValues[l]!==void 0&&u===void 0?void 0:this.baseTarget[l]}on(l,o){return this.events[l]||(this.events[l]=new Cf),this.events[l].add(o)}notify(l,...o){this.events[l]&&this.events[l].notify(...o)}scheduleRenderMicrotask(){Xf.render(this.render)}}class mg extends s2{constructor(){super(...arguments),this.KeyframeResolver=RS}sortInstanceNodePosition(l,o){return l.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(l,o){const u=l.style;return u?u[o]:void 0}removeValueFromRenderState(l,{vars:o,style:u}){delete o[l],delete u[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;me(l)&&(this.childSubscription=l.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class _a{constructor(l){this.isMounted=!1,this.node=l}update(){}}function pg({top:i,left:l,right:o,bottom:u}){return{x:{min:l,max:o},y:{min:i,max:u}}}function o2({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function u2(i,l){if(!l)return i;const o=l({x:i.left,y:i.top}),u=l({x:i.right,y:i.bottom});return{top:o.y,left:o.x,bottom:u.y,right:u.x}}function Hc(i){return i===void 0||i===1}function yf({scale:i,scaleX:l,scaleY:o}){return!Hc(i)||!Hc(l)||!Hc(o)}function ui(i){return yf(i)||yg(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function yg(i){return py(i.x)||py(i.y)}function py(i){return i&&i!=="0%"}function cu(i,l,o){const u=i-o,c=l*u;return o+c}function yy(i,l,o,u,c){return c!==void 0&&(i=cu(i,c,u)),cu(i,o,u)+l}function gf(i,l=0,o=1,u,c){i.min=yy(i.min,l,o,u,c),i.max=yy(i.max,l,o,u,c)}function gg(i,{x:l,y:o}){gf(i.x,l.translate,l.scale,l.originPoint),gf(i.y,o.translate,o.scale,o.originPoint)}const gy=.999999999999,vy=1.0000000000001;function r2(i,l,o,u=!1){const c=o.length;if(!c)return;l.x=l.y=1;let h,d;for(let p=0;p<c;p++){h=o[p],d=h.projectionDelta;const{visualElement:g}=h.options;g&&g.props.style&&g.props.style.display==="contents"||(u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ol(i,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),d&&(l.x*=d.x.scale,l.y*=d.y.scale,gg(i,d)),u&&ui(h.latestValues)&&ol(i,h.latestValues))}l.x<vy&&l.x>gy&&(l.x=1),l.y<vy&&l.y>gy&&(l.y=1)}function sl(i,l){i.min=i.min+l,i.max=i.max+l}function xy(i,l,o,u,c=.5){const h=Ht(i.min,i.max,c);gf(i,l,o,h,u)}function ol(i,l){xy(i.x,l.x,l.scaleX,l.scale,l.originX),xy(i.y,l.y,l.scaleY,l.scale,l.originY)}function vg(i,l){return pg(u2(i.getBoundingClientRect(),l))}function c2(i,l,o){const u=vg(i,o),{scroll:c}=l;return c&&(sl(u.x,c.offset.x),sl(u.y,c.offset.y)),u}const f2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},d2=fl.length;function h2(i,l,o){let u="",c=!0;for(let h=0;h<d2;h++){const d=fl[h],p=i[d];if(p===void 0)continue;let g=!0;if(typeof p=="number")g=p===(d.startsWith("scale")?1:0);else{const m=parseFloat(p);g=d.startsWith("scale")?m===1:m===0}if(!g||o){const m=sg(p,Gf[d]);if(!g){c=!1;const x=f2[d]||d;u+=`${x}(${m}) `}o&&(l[d]=m)}}return u=u.trim(),o?u=o(l,c?"":u):c&&(u="none"),u}function Jf(i,l,o){const{style:u,vars:c,transformOrigin:h}=i;let d=!1,p=!1;for(const g in l){const m=l[g];if(dl.has(g)){d=!0;continue}else if(N0(g)){c[g]=m;continue}else{const x=sg(m,Gf[g]);g.startsWith("origin")?(p=!0,h[g]=x):u[g]=x}}if(l.transform||(d||o?u.transform=h2(l,i.transform,o):u.transform&&(u.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:x=0}=h;u.transformOrigin=`${g} ${m} ${x}`}}function xg(i,{style:l,vars:o},u,c){const h=i.style;let d;for(d in l)h[d]=l[d];c?.applyProjectionStyles(h,u);for(d in o)h.setProperty(d,o[d])}function by(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const ps={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(I.test(i))i=parseFloat(i);else return i;const o=by(i,l.target.x),u=by(i,l.target.y);return`${o}% ${u}%`}},m2={correct:(i,{treeScale:l,projectionDelta:o})=>{const u=i,c=yn.parse(i);if(c.length>5)return u;const h=yn.createTransformer(i),d=typeof c[0]!="number"?1:0,p=o.x.scale*l.x,g=o.y.scale*l.y;c[0+d]/=p,c[1+d]/=g;const m=Ht(p,g,.5);return typeof c[2+d]=="number"&&(c[2+d]/=m),typeof c[3+d]=="number"&&(c[3+d]/=m),h(c)}},vf={borderRadius:{...ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ps,borderTopRightRadius:ps,borderBottomLeftRadius:ps,borderBottomRightRadius:ps,boxShadow:m2};function bg(i,{layout:l,layoutId:o}){return dl.has(i)||i.startsWith("origin")||(l||o!==void 0)&&(!!vf[i]||i==="opacity")}function Ff(i,l,o){const u=i.style,c=l?.style,h={};if(!u)return h;for(const d in u)(me(u[d])||c&&me(c[d])||bg(d,i)||o?.getValue(d)?.liveStyle!==void 0)&&(h[d]=u[d]);return h}function p2(i){return window.getComputedStyle(i)}class y2 extends mg{constructor(){super(...arguments),this.type="html",this.renderInstance=xg}readValueFromInstance(l,o){if(dl.has(o))return this.projection?.isProjecting?nf(o):_b(l,o);{const u=p2(l),c=(N0(o)?u.getPropertyValue(o):u[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:o}){return vg(l,o)}build(l,o,u){Jf(l,o,u.transformTemplate)}scrapeMotionValuesFromProps(l,o,u){return Ff(l,o,u)}}const g2={offset:"stroke-dashoffset",array:"stroke-dasharray"},v2={offset:"strokeDashoffset",array:"strokeDasharray"};function x2(i,l,o=1,u=0,c=!0){i.pathLength=1;const h=c?g2:v2;i[h.offset]=`${-u}`,i[h.array]=`${l} ${o}`}const b2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Sg(i,{attrX:l,attrY:o,attrScale:u,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...p},g,m,x){if(Jf(i,p,m),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:b,style:T}=i;b.transform&&(T.transform=b.transform,delete b.transform),(T.transform||b.transformOrigin)&&(T.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),T.transform&&(T.transformBox=x?.transformBox??"fill-box",delete b.transformBox);for(const D of b2)b[D]!==void 0&&(T[D]=b[D],delete b[D]);l!==void 0&&(b.x=l),o!==void 0&&(b.y=o),u!==void 0&&(b.scale=u),c!==void 0&&x2(b,c,h,d,!1)}const Tg=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"]),Ag=i=>typeof i=="string"&&i.toLowerCase()==="svg";function S2(i,l,o,u){xg(i,l,void 0,u);for(const c in l.attrs)i.setAttribute(Tg.has(c)?c:qf(c),l.attrs[c])}function Eg(i,l,o){const u=Ff(i,l,o);for(const c in i)if(me(i[c])||me(l[c])){const h=fl.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[h]=i[c]}return u}class T2 extends mg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(l,o){return l[o]}readValueFromInstance(l,o){if(dl.has(o)){const u=ag(o);return u&&u.default||0}return o=Tg.has(o)?o:qf(o),l.getAttribute(o)}scrapeMotionValuesFromProps(l,o,u){return Eg(l,o,u)}build(l,o,u){Sg(l,o,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(l,o,u,c){S2(l,o,u,c)}mount(l){this.isSVGTag=Ag(l.tagName),super.mount(l)}}const A2=kf.length;function wg(i){if(!i)return;if(!i.isControllingVariants){const o=i.parent?wg(i.parent)||{}:{};return i.props.initial!==void 0&&(o.initial=i.props.initial),o}const l={};for(let o=0;o<A2;o++){const u=kf[o],c=i.props[u];(ws(c)||c===!1)&&(l[u]=c)}return l}function Cg(i,l){if(!Array.isArray(l))return!1;const o=l.length;if(o!==i.length)return!1;for(let u=0;u<o;u++)if(l[u]!==i[u])return!1;return!0}const E2=[...Zf].reverse(),w2=Zf.length;function C2(i){return l=>Promise.all(l.map(({animation:o,options:u})=>TS(i,o,u)))}function M2(i){let l=C2(i),o=Sy(),u=!0;const c=g=>(m,x)=>{const b=ul(i,x,g==="exit"?i.presenceContext?.custom:void 0);if(b){const{transition:T,transitionEnd:D,...V}=b;m={...m,...V,...D}}return m};function h(g){l=g(i)}function d(g){const{props:m}=i,x=wg(i.parent)||{},b=[],T=new Set;let D={},V=1/0;for(let X=0;X<w2;X++){const q=E2[X],K=o[q],G=m[q]!==void 0?m[q]:x[q],J=ws(G),Z=q===g?K.isActive:null;Z===!1&&(V=X);let lt=G===x[q]&&G!==m[q]&&J;if(lt&&u&&i.manuallyAnimateOnMount&&(lt=!1),K.protectedKeys={...D},!K.isActive&&Z===null||!G&&!K.prevProp||mu(G)||typeof G=="boolean")continue;if(q==="exit"&&K.isActive&&Z!==!0){K.prevResolvedValues&&(D={...D,...K.prevResolvedValues});continue}const k=j2(K.prevProp,G);let F=k||q===g&&K.isActive&&!lt&&J||X>V&&J,st=!1;const bt=Array.isArray(G)?G:[G];let Et=bt.reduce(c(q),{});Z===!1&&(Et={});const{prevResolvedValues:Lt={}}=K,ae={...Lt,...Et},vt=H=>{F=!0,T.has(H)&&(st=!0,T.delete(H)),K.needsAnimating[H]=!0;const $=i.getValue(H);$&&($.liveStyle=!1)};for(const H in ae){const $=Et[H],ut=Lt[H];if(D.hasOwnProperty(H))continue;let dt=!1;rf($)&&rf(ut)?dt=!Cg($,ut):dt=$!==ut,dt?$!=null?vt(H):T.add(H):$!==void 0&&T.has(H)?vt(H):K.protectedKeys[H]=!0}K.prevProp=G,K.prevResolvedValues=Et,K.isActive&&(D={...D,...Et}),u&&i.blockInitialAnimation&&(F=!1);const $t=lt&&k;F&&(!$t||st)&&b.push(...bt.map(H=>{const $={type:q};if(typeof H=="string"&&u&&!$t&&i.manuallyAnimateOnMount&&i.parent){const{parent:ut}=i,dt=ul(ut,H);if(ut.enteringChildren&&dt){const{delayChildren:E}=dt.transition||{};$.delay=J0(ut.enteringChildren,i,E)}}return{animation:H,options:$}}))}if(T.size){const X={};if(typeof m.initial!="boolean"){const q=ul(i,Array.isArray(m.initial)?m.initial[0]:m.initial);q&&q.transition&&(X.transition=q.transition)}T.forEach(q=>{const K=i.getBaseTarget(q),G=i.getValue(q);G&&(G.liveStyle=!0),X[q]=K??null}),b.push({animation:X})}let Y=!!b.length;return u&&(m.initial===!1||m.initial===m.animate)&&!i.manuallyAnimateOnMount&&(Y=!1),u=!1,Y?l(b):Promise.resolve()}function p(g,m){if(o[g].isActive===m)return Promise.resolve();i.variantChildren?.forEach(b=>b.animationState?.setActive(g,m)),o[g].isActive=m;const x=d(g);for(const b in o)o[b].protectedKeys={};return x}return{animateChanges:d,setActive:p,setAnimateFunction:h,getState:()=>o,reset:()=>{o=Sy()}}}function j2(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!Cg(l,i):!1}function oi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sy(){return{animate:oi(!0),whileInView:oi(),whileHover:oi(),whileTap:oi(),whileDrag:oi(),whileFocus:oi(),exit:oi()}}function Ty(i,l){i.min=l.min,i.max=l.max}function hn(i,l){Ty(i.x,l.x),Ty(i.y,l.y)}function Ay(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const Mg=1e-4,N2=1-Mg,D2=1+Mg,jg=.01,O2=0-jg,z2=0+jg;function be(i){return i.max-i.min}function R2(i,l,o){return Math.abs(i-l)<=o}function Ey(i,l,o,u=.5){i.origin=u,i.originPoint=Ht(l.min,l.max,i.origin),i.scale=be(o)/be(l),i.translate=Ht(o.min,o.max,i.origin)-i.originPoint,(i.scale>=N2&&i.scale<=D2||isNaN(i.scale))&&(i.scale=1),(i.translate>=O2&&i.translate<=z2||isNaN(i.translate))&&(i.translate=0)}function bs(i,l,o,u){Ey(i.x,l.x,o.x,u?u.originX:void 0),Ey(i.y,l.y,o.y,u?u.originY:void 0)}function wy(i,l,o){i.min=o.min+l.min,i.max=i.min+be(l)}function V2(i,l,o){wy(i.x,l.x,o.x),wy(i.y,l.y,o.y)}function Cy(i,l,o){i.min=l.min-o.min,i.max=i.min+be(l)}function fu(i,l,o){Cy(i.x,l.x,o.x),Cy(i.y,l.y,o.y)}function My(i,l,o,u,c){return i-=l,i=cu(i,1/o,u),c!==void 0&&(i=cu(i,1/c,u)),i}function _2(i,l=0,o=1,u=.5,c,h=i,d=i){if(wn.test(l)&&(l=parseFloat(l),l=Ht(d.min,d.max,l/100)-d.min),typeof l!="number")return;let p=Ht(h.min,h.max,u);i===h&&(p-=l),i.min=My(i.min,l,o,p,c),i.max=My(i.max,l,o,p,c)}function jy(i,l,[o,u,c],h,d){_2(i,l[o],l[u],l[c],l.scale,h,d)}const U2=["x","scaleX","originX"],B2=["y","scaleY","originY"];function Ny(i,l,o,u){jy(i.x,l,U2,o?o.x:void 0,u?u.x:void 0),jy(i.y,l,B2,o?o.y:void 0,u?u.y:void 0)}function Dy(i){return i.translate===0&&i.scale===1}function Ng(i){return Dy(i.x)&&Dy(i.y)}function Oy(i,l){return i.min===l.min&&i.max===l.max}function L2(i,l){return Oy(i.x,l.x)&&Oy(i.y,l.y)}function zy(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function Dg(i,l){return zy(i.x,l.x)&&zy(i.y,l.y)}function Ry(i){return be(i.x)/be(i.y)}function Vy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function En(i){return[i("x"),i("y")]}function H2(i,l,o){let u="";const c=i.x.translate/l.x,h=i.y.translate/l.y,d=o?.z||0;if((c||h||d)&&(u=`translate3d(${c}px, ${h}px, ${d}px) `),(l.x!==1||l.y!==1)&&(u+=`scale(${1/l.x}, ${1/l.y}) `),o){const{transformPerspective:m,rotate:x,rotateX:b,rotateY:T,skewX:D,skewY:V}=o;m&&(u=`perspective(${m}px) ${u}`),x&&(u+=`rotate(${x}deg) `),b&&(u+=`rotateX(${b}deg) `),T&&(u+=`rotateY(${T}deg) `),D&&(u+=`skewX(${D}deg) `),V&&(u+=`skewY(${V}deg) `)}const p=i.x.scale*l.x,g=i.y.scale*l.y;return(p!==1||g!==1)&&(u+=`scale(${p}, ${g})`),u||"none"}const Og=["TopLeft","TopRight","BottomLeft","BottomRight"],Y2=Og.length,_y=i=>typeof i=="string"?parseFloat(i):i,Uy=i=>typeof i=="number"||I.test(i);function q2(i,l,o,u,c,h){c?(i.opacity=Ht(0,o.opacity??1,G2(u)),i.opacityExit=Ht(l.opacity??1,0,X2(u))):h&&(i.opacity=Ht(l.opacity??1,o.opacity??1,u));for(let d=0;d<Y2;d++){const p=`border${Og[d]}Radius`;let g=By(l,p),m=By(o,p);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||Uy(g)===Uy(m)?(i[p]=Math.max(Ht(_y(g),_y(m),u),0),(wn.test(m)||wn.test(g))&&(i[p]+="%")):i[p]=m}(l.rotate||o.rotate)&&(i.rotate=Ht(l.rotate||0,o.rotate||0,u))}function By(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const G2=zg(0,.5,A0),X2=zg(.5,.95,ln);function zg(i,l,o){return u=>u<i?0:u>l?1:o(Ts(i,l,u))}function K2(i,l,o){const u=me(i)?i:rl(i);return u.start(Hf("",u,l,o)),u.animation}function Cs(i,l,o,u={passive:!0}){return i.addEventListener(l,o,u),()=>i.removeEventListener(l,o)}const Q2=(i,l)=>i.depth-l.depth;class Z2{constructor(){this.children=[],this.isDirty=!1}add(l){Ef(this.children,l),this.isDirty=!0}remove(l){lu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(Q2),this.isDirty=!1,this.children.forEach(l)}}function k2(i,l){const o=xe.now(),u=({timestamp:c})=>{const h=c-o;h>=l&&(Va(u),i(h-l))};return Rt.setup(u,!0),()=>Va(u)}function au(i){return me(i)?i.get():i}class J2{constructor(){this.members=[]}add(l){Ef(this.members,l);for(let o=this.members.length-1;o>=0;o--){const u=this.members[o];if(u===l||u===this.lead||u===this.prevLead)continue;const c=u.instance;c&&c.isConnected===!1&&u.isPresent!==!1&&!u.snapshot&&lu(this.members,u)}l.scheduleRender()}remove(l){if(lu(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(l){const o=this.members.findIndex(c=>l===c);if(o===0)return!1;let u;for(let c=o;c>=0;c--){const h=this.members[c],d=h.instance;if(h.isPresent!==!1&&(!d||d.isConnected!==!1)){u=h;break}}return u?(this.promote(u),!0):!1}promote(l,o){const u=this.lead;if(l!==u&&(this.prevLead=u,this.lead=l,l.show(),u)){u.instance&&u.scheduleRender(),l.scheduleRender();const c=u.options.layoutDependency,h=l.options.layoutDependency;if(!(c!==void 0&&h!==void 0&&c===h)){const g=u.instance;g&&g.isConnected===!1&&!u.snapshot||(l.resumeFrom=u,o&&(l.resumeFrom.preserveOpacity=!0),u.snapshot&&(l.snapshot=u.snapshot,l.snapshot.latestValues=u.animationValues||u.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:p}=l.options;p===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:o,resumingFrom:u}=l;o.onExitComplete&&o.onExitComplete(),u&&u.options.onExitComplete&&u.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const iu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Yc=["","X","Y","Z"],F2=1e3;let P2=0;function qc(i,l,o,u){const{latestValues:c}=l;c[i]&&(o[i]=c[i],l.setStaticValue(i,0),u&&(u[i]=0))}function Rg(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const o=I0(l);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:h}=i.options;window.MotionCancelOptimisedAnimation(o,"transform",Rt,!(c||h))}const{parent:u}=i;u&&!u.hasCheckedOptimisedAppear&&Rg(u)}function Vg({attachResizeListener:i,defaultParent:l,measureScroll:o,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(d={},p=l?.()){this.id=P2++,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(I2),this.nodes.forEach(aT),this.nodes.forEach(iT),this.nodes.forEach(tT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,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 Z2)}addEventListener(d,p){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Cf),this.eventHandlers.get(d).add(p)}notifyListeners(d,...p){const g=this.eventHandlers.get(d);g&&g.notify(...p)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Qf(d)&&!$S(d),this.instance=d;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),i){let x,b=0;const T=()=>this.root.updateBlockedByResize=!1;Rt.read(()=>{b=window.innerWidth}),i(d,()=>{const D=window.innerWidth;D!==b&&(b=D,this.root.updateBlockedByResize=!0,x&&x(),x=k2(T,250),iu.hasAnimatedSinceResize&&(iu.hasAnimatedSinceResize=!1,this.nodes.forEach(Yy)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:T,layout:D})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||m.getDefaultTransition()||rT,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:X}=m.getProps(),q=!this.targetLayout||!Dg(this.targetLayout,D),K=!b&&T;if(this.options.layoutRoot||this.resumeFrom||K||b&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...Lf(V,"layout"),onPlay:Y,onComplete:X};(m.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(x,K)}else b||Yy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=D})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Va(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(lT),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const b=this.path[x];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:p,layout:g}=this.options;if(p===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ly);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Hy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nT),this.nodes.forEach(W2),this.nodes.forEach($2)):this.nodes.forEach(Hy),this.clearAllSnapshots();const p=xe.now();ce.delta=Cn(0,1e3/60,p-ce.timestamp),ce.timestamp=p,ce.isProcessing=!0,zc.update.process(ce),zc.preRender.process(ce),zc.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eT),this.sharedNodes.forEach(sT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!be(this.snapshot.measuredBox.x)&&!be(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 d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(p=!1),p&&this.instance){const g=u(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!Ng(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,x=m!==this.prevTransformTemplateValue;d&&this.instance&&(p||ui(this.latestValues)||x)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return d&&(g=this.removeTransform(g)),cT(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return te();const p=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fT))){const{scroll:m}=this.root;m&&(sl(p.x,m.offset.x),sl(p.y,m.offset.y))}return p}removeElementScroll(d){const p=te();if(hn(p,d),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:x,options:b}=m;m!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&hn(p,d),sl(p.x,x.offset.x),sl(p.y,x.offset.y))}return p}applyTransform(d,p=!1){const g=te();hn(g,d);for(let m=0;m<this.path.length;m++){const x=this.path[m];!p&&x.options.layoutScroll&&x.scroll&&x!==x.root&&ol(g,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),ui(x.latestValues)&&ol(g,x.latestValues)}return ui(this.latestValues)&&ol(g,this.latestValues),g}removeTransform(d){const p=te();hn(p,d);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!ui(m.latestValues))continue;yf(m.latestValues)&&m.updateSnapshot();const x=te(),b=m.measurePageBox();hn(x,b),Ny(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,x)}return ui(this.latestValues)&&Ny(p,this.latestValues),p}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!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(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:b}=this.options;if(!this.layout||!(x||b))return;this.resolvedRelativeTargetAt=ce.timestamp;const T=this.getClosestProjectingParent();T&&this.linkedParentVersion!==T.layoutVersion&&!T.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(T&&T.layout?this.createRelativeTarget(T,this.layout.layoutBox,T.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),V2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):hn(this.target,this.layout.layoutBox),gg(this.target,this.targetDelta)):hn(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||yf(this.parent.latestValues)||yg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,p,g){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),fu(this.relativeTargetOrigin,p,g),hn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),p=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(g=!1),g)return;const{layout:m,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||x))return;hn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,T=this.treeScale.y;r2(this.layoutCorrected,this.treeScale,this.path,p),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=te());const{target:D}=d;if(!D){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),bs(this.projectionDelta,this.layoutCorrected,D,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==T||!Vy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",D))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ll(),this.projectionDelta=ll(),this.projectionDeltaWithTransform=ll()}setAnimationOrigin(d,p=!1){const g=this.snapshot,m=g?g.latestValues:{},x={...this.latestValues},b=ll();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const T=te(),D=g?g.source:void 0,V=this.layout?this.layout.source:void 0,Y=D!==V,X=this.getStack(),q=!X||X.members.length<=1,K=!!(Y&&!q&&this.options.crossfade===!0&&!this.path.some(uT));this.animationProgress=0;let G;this.mixTargetDelta=J=>{const Z=J/1e3;qy(b.x,d.x,Z),qy(b.y,d.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fu(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),oT(this.relativeTarget,this.relativeTargetOrigin,T,Z),G&&L2(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=te()),hn(G,this.relativeTarget)),Y&&(this.animationValues=x,q2(x,m,this.latestValues,Z,K,q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Va(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Rt.update(()=>{iu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=rl(0)),this.motionValue.jump(0,!1),this.currentAnimation=K2(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),d.onUpdate&&d.onUpdate(p)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(F2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:x}=d;if(!(!p||!g||!m)){if(this!==d&&this.layout&&m&&_g(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||te();const b=be(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+b;const T=be(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+T}hn(p,g),ol(p,x),bs(this.projectionDeltaWithTransform,this.layoutCorrected,p,x)}}registerSharedNode(d,p){this.sharedNodes.has(d)||this.sharedNodes.set(d,new J2),this.sharedNodes.get(d).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 d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:p,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let p=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const m={};g.z&&qc("z",d,m,this.animationValues);for(let x=0;x<Yc.length;x++)qc(`rotate${Yc[x]}`,d,m,this.animationValues),qc(`skew${Yc[x]}`,d,m,this.animationValues);d.render();for(const x in m)d.setStaticValue(x,m[x]),this.animationValues&&(this.animationValues[x]=m[x]);d.scheduleRender()}applyProjectionStyles(d,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=au(p?.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=au(p?.pointerEvents)||""),this.hasProjected&&!ui(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const x=m.animationValues||m.latestValues;this.applyTransformsToTarget();let b=H2(this.projectionDeltaWithTransform,this.treeScale,x);g&&(b=g(x,b)),d.transform=b;const{x:T,y:D}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${D.origin*100}% 0`,m.animationValues?d.opacity=m===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:d.opacity=m===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const V in vf){if(x[V]===void 0)continue;const{correct:Y,applyTo:X,isCSSVariable:q}=vf[V],K=b==="none"?x[V]:Y(x[V],m);if(X){const G=X.length;for(let J=0;J<G;J++)d[X[J]]=K}else q?this.options.visualElement.renderState.vars[V]=K:d[V]=K}this.options.layoutId&&(d.pointerEvents=m===this?au(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(Ly),this.root.sharedNodes.clear()}}}function W2(i){i.updateLayout()}function $2(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=i.layout,{animationType:c}=i.options,h=l.source!==i.layout.source;c==="size"?En(x=>{const b=h?l.measuredBox[x]:l.layoutBox[x],T=be(b);b.min=o[x].min,b.max=b.min+T}):_g(c,l.layoutBox,o)&&En(x=>{const b=h?l.measuredBox[x]:l.layoutBox[x],T=be(o[x]);b.max=b.min+T,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[x].max=i.relativeTarget[x].min+T)});const d=ll();bs(d,o,l.layoutBox);const p=ll();h?bs(p,i.applyTransform(u,!0),l.measuredBox):bs(p,o,l.layoutBox);const g=!Ng(d);let m=!1;if(!i.resumeFrom){const x=i.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:T}=x;if(b&&T){const D=te();fu(D,l.layoutBox,b.layoutBox);const V=te();fu(V,o,T.layoutBox),Dg(D,V)||(m=!0),x.options.layoutRoot&&(i.relativeTarget=V,i.relativeTargetOrigin=D,i.relativeParent=x)}}}i.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:p,layoutDelta:d,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(i.isLead()){const{onExitComplete:o}=i.options;o&&o()}i.options.transition=void 0}function I2(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 tT(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function eT(i){i.clearSnapshot()}function Ly(i){i.clearMeasurements()}function Hy(i){i.isLayoutDirty=!1}function nT(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Yy(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function aT(i){i.resolveTargetDelta()}function iT(i){i.calcProjection()}function lT(i){i.resetSkewAndRotation()}function sT(i){i.removeLeadSnapshot()}function qy(i,l,o){i.translate=Ht(l.translate,0,o),i.scale=Ht(l.scale,1,o),i.origin=l.origin,i.originPoint=l.originPoint}function Gy(i,l,o,u){i.min=Ht(l.min,o.min,u),i.max=Ht(l.max,o.max,u)}function oT(i,l,o,u){Gy(i.x,l.x,o.x,u),Gy(i.y,l.y,o.y,u)}function uT(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const rT={duration:.45,ease:[.4,0,.1,1]},Xy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Ky=Xy("applewebkit/")&&!Xy("chrome/")?Math.round:ln;function Qy(i){i.min=Ky(i.min),i.max=Ky(i.max)}function cT(i){Qy(i.x),Qy(i.y)}function _g(i,l,o){return i==="position"||i==="preserve-aspect"&&!R2(Ry(l),Ry(o),.2)}function fT(i){return i!==i.root&&i.scroll?.wasRoot}const dT=Vg({attachResizeListener:(i,l)=>Cs(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Gc={current:void 0},Ug=Vg({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Gc.current){const i=new dT({});i.mount(window),i.setOptions({layoutScroll:!0}),Gc.current=i}return Gc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Pf=z.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Zy(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function hT(...i){return l=>{let o=!1;const u=i.map(c=>{const h=Zy(c,l);return!o&&typeof h=="function"&&(o=!0),h});if(o)return()=>{for(let c=0;c<u.length;c++){const h=u[c];typeof h=="function"?h():Zy(i[c],null)}}}}function mT(...i){return z.useCallback(hT(...i),i)}class pT extends z.Component{getSnapshotBeforeUpdate(l){const o=this.props.childRef.current;if(o&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=o.offsetParent,c=mf(u)&&u.offsetWidth||0,h=mf(u)&&u.offsetHeight||0,d=this.props.sizeRef.current;d.height=o.offsetHeight||0,d.width=o.offsetWidth||0,d.top=o.offsetTop,d.left=o.offsetLeft,d.right=c-d.width-d.left,d.bottom=h-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function yT({children:i,isPresent:l,anchorX:o,anchorY:u,root:c,pop:h}){const d=z.useId(),p=z.useRef(null),g=z.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=z.useContext(Pf),x=i.props?.ref??i?.ref,b=mT(p,x);return z.useInsertionEffect(()=>{const{width:T,height:D,top:V,left:Y,right:X,bottom:q}=g.current;if(l||h===!1||!p.current||!T||!D)return;const K=o==="left"?`left: ${Y}`:`right: ${X}`,G=u==="bottom"?`bottom: ${q}`:`top: ${V}`;p.current.dataset.motionPopId=d;const J=document.createElement("style");m&&(J.nonce=m);const Z=c??document.head;return Z.appendChild(J),J.sheet&&J.sheet.insertRule(`
|
|
10
|
+
[data-motion-pop-id="${d}"] {
|
|
11
|
+
position: absolute !important;
|
|
12
|
+
width: ${T}px !important;
|
|
13
|
+
height: ${D}px !important;
|
|
14
|
+
${K}px !important;
|
|
15
|
+
${G}px !important;
|
|
16
|
+
}
|
|
17
|
+
`),()=>{Z.contains(J)&&Z.removeChild(J)}},[l]),v.jsx(pT,{isPresent:l,childRef:p,sizeRef:g,pop:h,children:h===!1?i:z.cloneElement(i,{ref:b})})}const gT=({children:i,initial:l,isPresent:o,onExitComplete:u,custom:c,presenceAffectsLayout:h,mode:d,anchorX:p,anchorY:g,root:m})=>{const x=Af(vT),b=z.useId();let T=!0,D=z.useMemo(()=>(T=!1,{id:b,initial:l,isPresent:o,custom:c,onExitComplete:V=>{x.set(V,!0);for(const Y of x.values())if(!Y)return;u&&u()},register:V=>(x.set(V,!1),()=>x.delete(V))}),[o,x,u]);return h&&T&&(D={...D}),z.useMemo(()=>{x.forEach((V,Y)=>x.set(Y,!1))},[o]),z.useEffect(()=>{!o&&!x.size&&u&&u()},[o]),i=v.jsx(yT,{pop:d==="popLayout",isPresent:o,anchorX:p,anchorY:g,root:m,children:i}),v.jsx(hu.Provider,{value:D,children:i})};function vT(){return new Map}function Bg(i=!0){const l=z.useContext(hu);if(l===null)return[!0,null];const{isPresent:o,onExitComplete:u,register:c}=l,h=z.useId();z.useEffect(()=>{if(i)return c(h)},[i]);const d=z.useCallback(()=>i&&u&&u(h),[h,u,i]);return!o&&u?[!1,d]:[!0]}const Po=i=>i.key||"";function ky(i){const l=[];return z.Children.forEach(i,o=>{z.isValidElement(o)&&l.push(o)}),l}const Jy=({children:i,custom:l,initial:o=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:p="left",anchorY:g="top",root:m})=>{const[x,b]=Bg(d),T=z.useMemo(()=>ky(i),[i]),D=d&&!x?[]:T.map(Po),V=z.useRef(!0),Y=z.useRef(T),X=Af(()=>new Map),q=z.useRef(new Set),[K,G]=z.useState(T),[J,Z]=z.useState(T);f0(()=>{V.current=!1,Y.current=T;for(let F=0;F<J.length;F++){const st=Po(J[F]);D.includes(st)?(X.delete(st),q.current.delete(st)):X.get(st)!==!0&&X.set(st,!1)}},[J,D.length,D.join("-")]);const lt=[];if(T!==K){let F=[...T];for(let st=0;st<J.length;st++){const bt=J[st],Et=Po(bt);D.includes(Et)||(F.splice(st,0,bt),lt.push(bt))}return h==="wait"&<.length&&(F=lt),Z(ky(F)),G(T),null}const{forceRender:k}=z.useContext(Tf);return v.jsx(v.Fragment,{children:J.map(F=>{const st=Po(F),bt=d&&!x?!1:T===J||D.includes(st),Et=()=>{if(q.current.has(st))return;if(q.current.add(st),X.has(st))X.set(st,!0);else return;let Lt=!0;X.forEach(ae=>{ae||(Lt=!1)}),Lt&&(k?.(),Z(Y.current),d&&b?.(),u&&u())};return v.jsx(gT,{isPresent:bt,initial:!V.current||o?void 0:!1,custom:l,presenceAffectsLayout:c,mode:h,root:m,onExitComplete:bt?void 0:Et,anchorX:p,anchorY:g,children:F},st)})})},Lg=z.createContext({strict:!1}),Fy={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 Py=!1;function xT(){if(Py)return;const i={};for(const l in Fy)i[l]={isEnabled:o=>Fy[l].some(u=>!!o[u])};hg(i),Py=!0}function Hg(){return xT(),l2()}function bT(i){const l=Hg();for(const o in i)l[o]={...l[o],...i[o]};hg(l)}const ST=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function du(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||ST.has(i)}let Yg=i=>!du(i);function TT(i){typeof i=="function"&&(Yg=l=>l.startsWith("on")?!du(l):i(l))}try{TT(require("@emotion/is-prop-valid").default)}catch{}function AT(i,l,o){const u={};for(const c in i)c==="values"&&typeof i.values=="object"||(Yg(c)||o===!0&&du(c)||!l&&!du(c)||i.draggable&&c.startsWith("onDrag"))&&(u[c]=i[c]);return u}const yu=z.createContext({});function ET(i,l){if(pu(i)){const{initial:o,animate:u}=i;return{initial:o===!1||ws(o)?o:void 0,animate:ws(u)?u:void 0}}return i.inherit!==!1?l:{}}function wT(i){const{initial:l,animate:o}=ET(i,z.useContext(yu));return z.useMemo(()=>({initial:l,animate:o}),[Wy(l),Wy(o)])}function Wy(i){return Array.isArray(i)?i.join(" "):i}const Wf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qg(i,l,o){for(const u in l)!me(l[u])&&!bg(u,o)&&(i[u]=l[u])}function CT({transformTemplate:i},l){return z.useMemo(()=>{const o=Wf();return Jf(o,l,i),Object.assign({},o.vars,o.style)},[l])}function MT(i,l){const o=i.style||{},u={};return qg(u,o,i),Object.assign(u,CT(i,l)),u}function jT(i,l){const o={},u=MT(i,l);return i.drag&&i.dragListener!==!1&&(o.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(o.tabIndex=0),o.style=u,o}const Gg=()=>({...Wf(),attrs:{}});function NT(i,l,o,u){const c=z.useMemo(()=>{const h=Gg();return Sg(h,l,Ag(u),i.transformTemplate,i.style),{...h.attrs,style:{...h.style}}},[l]);if(i.style){const h={};qg(h,i.style,i),c.style={...h,...c.style}}return c}const DT=["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 $f(i){return typeof i!="string"||i.includes("-")?!1:!!(DT.indexOf(i)>-1||/[A-Z]/u.test(i))}function OT(i,l,o,{latestValues:u},c,h=!1,d){const g=(d??$f(i)?NT:jT)(l,u,c,i),m=AT(l,typeof i=="string",h),x=i!==z.Fragment?{...m,...g,ref:o}:{},{children:b}=l,T=z.useMemo(()=>me(b)?b.get():b,[b]);return z.createElement(i,{...x,children:T})}function zT({scrapeMotionValuesFromProps:i,createRenderState:l},o,u,c){return{latestValues:RT(o,u,c,i),renderState:l()}}function RT(i,l,o,u){const c={},h=u(i,{});for(const T in h)c[T]=au(h[T]);let{initial:d,animate:p}=i;const g=pu(i),m=fg(i);l&&m&&!g&&i.inherit!==!1&&(d===void 0&&(d=l.initial),p===void 0&&(p=l.animate));let x=o?o.initial===!1:!1;x=x||d===!1;const b=x?p:d;if(b&&typeof b!="boolean"&&!mu(b)){const T=Array.isArray(b)?b:[b];for(let D=0;D<T.length;D++){const V=Yf(i,T[D]);if(V){const{transitionEnd:Y,transition:X,...q}=V;for(const K in q){let G=q[K];if(Array.isArray(G)){const J=x?G.length-1:0;G=G[J]}G!==null&&(c[K]=G)}for(const K in Y)c[K]=Y[K]}}}return c}const Xg=i=>(l,o)=>{const u=z.useContext(yu),c=z.useContext(hu),h=()=>zT(i,l,u,c);return o?h():Af(h)},VT=Xg({scrapeMotionValuesFromProps:Ff,createRenderState:Wf}),_T=Xg({scrapeMotionValuesFromProps:Eg,createRenderState:Gg}),UT=Symbol.for("motionComponentSymbol");function BT(i,l,o){const u=z.useRef(o);z.useInsertionEffect(()=>{u.current=o});const c=z.useRef(null);return z.useCallback(h=>{h&&i.onMount?.(h),l&&(h?l.mount(h):l.unmount());const d=u.current;if(typeof d=="function")if(h){const p=d(h);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):d(h);else d&&(d.current=h)},[l])}const Kg=z.createContext({});function nl(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function LT(i,l,o,u,c,h){const{visualElement:d}=z.useContext(yu),p=z.useContext(Lg),g=z.useContext(hu),m=z.useContext(Pf),x=m.reducedMotion,b=m.skipAnimations,T=z.useRef(null),D=z.useRef(!1);u=u||p.renderer,!T.current&&u&&(T.current=u(i,{visualState:l,parent:d,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:x,skipAnimations:b,isSVG:h}),D.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const V=T.current,Y=z.useContext(Kg);V&&!V.projection&&c&&(V.type==="html"||V.type==="svg")&&HT(T.current,o,c,Y);const X=z.useRef(!1);z.useInsertionEffect(()=>{V&&X.current&&V.update(o,g)});const q=o[$0],K=z.useRef(!!q&&!window.MotionHandoffIsComplete?.(q)&&window.MotionHasOptimisedAnimation?.(q));return f0(()=>{D.current=!0,V&&(X.current=!0,window.MotionIsMounted=!0,V.updateFeatures(),V.scheduleRenderMicrotask(),K.current&&V.animationState&&V.animationState.animateChanges())}),z.useEffect(()=>{V&&(!K.current&&V.animationState&&V.animationState.animateChanges(),K.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(q)}),K.current=!1),V.enteringChildren=void 0)}),V}function HT(i,l,o,u){const{layoutId:c,layout:h,drag:d,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:x}=l;i.projection=new o(i.latestValues,l["data-framer-portal-id"]?void 0:Qg(i.parent)),i.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!d||p&&nl(p),visualElement:i,animationType:typeof h=="string"?h:"both",initialPromotionConfig:u,crossfade:x,layoutScroll:g,layoutRoot:m})}function Qg(i){if(i)return i.options.allowProjection!==!1?i.projection:Qg(i.parent)}function Xc(i,{forwardMotionProps:l=!1,type:o}={},u,c){u&&bT(u);const h=o?o==="svg":$f(i),d=h?_T:VT;function p(m,x){let b;const T={...z.useContext(Pf),...m,layoutId:YT(m)},{isStatic:D}=T,V=wT(m),Y=d(m,D);if(!D&&c0){qT();const X=GT(T);b=X.MeasureLayout,V.visualElement=LT(i,Y,T,c,X.ProjectionNode,h)}return v.jsxs(yu.Provider,{value:V,children:[b&&V.visualElement?v.jsx(b,{visualElement:V.visualElement,...T}):null,OT(i,m,BT(Y,V.visualElement,x),Y,D,l,h)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=z.forwardRef(p);return g[UT]=i,g}function YT({layoutId:i}){const l=z.useContext(Tf).id;return l&&i!==void 0?l+"-"+i:i}function qT(i,l){z.useContext(Lg).strict}function GT(i){const l=Hg(),{drag:o,layout:u}=l;if(!o&&!u)return{};const c={...o,...u};return{MeasureLayout:o?.isEnabled(i)||u?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function XT(i,l){if(typeof Proxy>"u")return Xc;const o=new Map,u=(h,d)=>Xc(h,d,i,l),c=(h,d)=>u(h,d);return new Proxy(c,{get:(h,d)=>d==="create"?u:(o.has(d)||o.set(d,Xc(d,void 0,i,l)),o.get(d))})}const KT=(i,l)=>l.isSVG??$f(i)?new T2(l):new y2(l,{allowProjection:i!==z.Fragment});class QT extends _a{constructor(l){super(l),l.animationState||(l.animationState=M2(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();mu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:o}=this.node.prevProps||{};l!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ZT=0;class kT extends _a{constructor(){super(...arguments),this.id=ZT++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:o}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===u)return;const c=this.node.animationState.setActive("exit",!l);o&&!l&&c.then(()=>{o(this.id)})}mount(){const{register:l,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const JT={animation:{Feature:QT},exit:{Feature:kT}};function Ds(i){return{point:{x:i.pageX,y:i.pageY}}}const FT=i=>l=>Kf(l)&&i(l,Ds(l));function Ss(i,l,o,u){return Cs(i,l,FT(o),u)}const Zg=({current:i})=>i?i.ownerDocument.defaultView:null,$y=(i,l)=>Math.abs(i-l);function PT(i,l){const o=$y(i.x,l.x),u=$y(i.y,l.y);return Math.sqrt(o**2+u**2)}const Iy=new Set(["auto","scroll"]);class kg{constructor(l,o,{transformPagePoint:u,contextWindow:c=window,dragSnapToOrigin:h=!1,distanceThreshold:d=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=D=>{this.handleScroll(D.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Qc(this.lastMoveEventInfo,this.history),V=this.startEvent!==null,Y=PT(D.offset,{x:0,y:0})>=this.distanceThreshold;if(!V&&!Y)return;const{point:X}=D,{timestamp:q}=ce;this.history.push({...X,timestamp:q});const{onStart:K,onMove:G}=this.handlers;V||(K&&K(this.lastMoveEvent,D),this.startEvent=this.lastMoveEvent),G&&G(this.lastMoveEvent,D)},this.handlePointerMove=(D,V)=>{this.lastMoveEvent=D,this.lastMoveEventInfo=Kc(V,this.transformPagePoint),Rt.update(this.updatePoint,!0)},this.handlePointerUp=(D,V)=>{this.end();const{onEnd:Y,onSessionEnd:X,resumeAnimation:q}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&q&&q(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const K=Qc(D.type==="pointercancel"?this.lastMoveEventInfo:Kc(V,this.transformPagePoint),this.history);this.startEvent&&Y&&Y(D,K),X&&X(D,K)},!Kf(l))return;this.dragSnapToOrigin=h,this.handlers=o,this.transformPagePoint=u,this.distanceThreshold=d,this.contextWindow=c||window;const g=Ds(l),m=Kc(g,this.transformPagePoint),{point:x}=m,{timestamp:b}=ce;this.history=[{...x,timestamp:b}];const{onSessionStart:T}=o;T&&T(l,Qc(m,this.history)),this.removeListeners=Ms(Ss(this.contextWindow,"pointermove",this.handlePointerMove),Ss(this.contextWindow,"pointerup",this.handlePointerUp),Ss(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(l){let o=l.parentElement;for(;o;){const u=getComputedStyle(o);(Iy.has(u.overflowX)||Iy.has(u.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const o=this.scrollPositions.get(l);if(!o)return;const u=l===window,c=u?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},h={x:c.x-o.x,y:c.y-o.y};h.x===0&&h.y===0||(u?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=h.x,this.lastMoveEventInfo.point.y+=h.y):this.history.length>0&&(this.history[0].x-=h.x,this.history[0].y-=h.y),this.scrollPositions.set(l,c),Rt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Va(this.updatePoint)}}function Kc(i,l){return l?{point:l(i.point)}:i}function t0(i,l){return{x:i.x-l.x,y:i.y-l.y}}function Qc({point:i},l){return{point:i,delta:t0(i,Jg(l)),offset:t0(i,WT(l)),velocity:$T(l,.1)}}function WT(i){return i[0]}function Jg(i){return i[i.length-1]}function $T(i,l){if(i.length<2)return{x:0,y:0};let o=i.length-1,u=null;const c=Jg(i);for(;o>=0&&(u=i[o],!(c.timestamp-u.timestamp>pn(l)));)o--;if(!u)return{x:0,y:0};u===i[0]&&i.length>2&&c.timestamp-u.timestamp>pn(l)*2&&(u=i[1]);const h=an(c.timestamp-u.timestamp);if(h===0)return{x:0,y:0};const d={x:(c.x-u.x)/h,y:(c.y-u.y)/h};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function IT(i,{min:l,max:o},u){return l!==void 0&&i<l?i=u?Ht(l,i,u.min):Math.max(i,l):o!==void 0&&i>o&&(i=u?Ht(o,i,u.max):Math.min(i,o)),i}function e0(i,l,o){return{min:l!==void 0?i.min+l:void 0,max:o!==void 0?i.max+o-(i.max-i.min):void 0}}function tA(i,{top:l,left:o,bottom:u,right:c}){return{x:e0(i.x,o,c),y:e0(i.y,l,u)}}function n0(i,l){let o=l.min-i.min,u=l.max-i.max;return l.max-l.min<i.max-i.min&&([o,u]=[u,o]),{min:o,max:u}}function eA(i,l){return{x:n0(i.x,l.x),y:n0(i.y,l.y)}}function nA(i,l){let o=.5;const u=be(i),c=be(l);return c>u?o=Ts(l.min,l.max-u,i.min):u>c&&(o=Ts(i.min,i.max-c,l.min)),Cn(0,1,o)}function aA(i,l){const o={};return l.min!==void 0&&(o.min=l.min-i.min),l.max!==void 0&&(o.max=l.max-i.min),o}const xf=.35;function iA(i=xf){return i===!1?i=0:i===!0&&(i=xf),{x:a0(i,"left","right"),y:a0(i,"top","bottom")}}function a0(i,l,o){return{min:i0(i,l),max:i0(i,o)}}function i0(i,l){return typeof i=="number"?i:i[l]||0}const lA=new WeakMap;class sA{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:o=!1,distanceThreshold:u}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const h=b=>{o&&this.snapToCursor(Ds(b).point),this.stopAnimation()},d=(b,T)=>{const{drag:D,dragPropagation:V,onDragStart:Y}=this.getProps();if(D&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_S(D),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),En(q=>{let K=this.getAxisMotionValue(q).get()||0;if(wn.test(K)){const{projection:G}=this.visualElement;if(G&&G.layout){const J=G.layout.layoutBox[q];J&&(K=be(J)*(parseFloat(K)/100))}}this.originPoint[q]=K}),Y&&Rt.update(()=>Y(b,T),!1,!0),cf(this.visualElement,"transform");const{animationState:X}=this.visualElement;X&&X.setActive("whileDrag",!0)},p=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T;const{dragPropagation:D,dragDirectionLock:V,onDirectionLock:Y,onDrag:X}=this.getProps();if(!D&&!this.openDragLock)return;const{offset:q}=T;if(V&&this.currentDirection===null){this.currentDirection=uA(q),this.currentDirection!==null&&Y&&Y(this.currentDirection);return}this.updateAxis("x",T.point,q),this.updateAxis("y",T.point,q),this.visualElement.render(),X&&Rt.update(()=>X(b,T),!1,!0)},g=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T,this.stop(b,T),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new kg(l,{onSessionStart:h,onStart:d,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:u,contextWindow:Zg(this.visualElement),element:this.visualElement.current})}stop(l,o){const u=l||this.latestPointerEvent,c=o||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!c||!u)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:p}=this.getProps();p&&Rt.postRender(()=>p(u,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:o}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:u}=this.getProps();!u&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,o,u){const{drag:c}=this.getProps();if(!u||!Wo(l,c,this.currentDirection))return;const h=this.getAxisMotionValue(l);let d=this.originPoint[l]+u[l];this.constraints&&this.constraints[l]&&(d=IT(d,this.constraints[l],this.elastic[l])),h.set(d)}resolveConstraints(){const{dragConstraints:l,dragElastic:o}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&nl(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&u?this.constraints=tA(u.layoutBox,l):this.constraints=!1,this.elastic=iA(o),c!==this.constraints&&!nl(l)&&u&&this.constraints&&!this.hasMutatedConstraints&&En(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=aA(u.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:o}=this.getProps();if(!l||!nl(l))return!1;const u=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=c2(u,c.root,this.visualElement.getTransformPagePoint());let d=eA(c.layout.layoutBox,h);if(o){const p=o(o2(d));this.hasMutatedConstraints=!!p,p&&(d=pg(p))}return d}startAnimation(l){const{drag:o,dragMomentum:u,dragElastic:c,dragTransition:h,dragSnapToOrigin:d,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=En(x=>{if(!Wo(x,o,this.currentDirection))return;let b=g&&g[x]||{};d&&(b={min:0,max:0});const T=c?200:1e6,D=c?40:1e7,V={type:"inertia",velocity:u?l[x]:0,bounceStiffness:T,bounceDamping:D,timeConstant:750,restDelta:1,restSpeed:10,...h,...b};return this.startAxisValueAnimation(x,V)});return Promise.all(m).then(p)}startAxisValueAnimation(l,o){const u=this.getAxisMotionValue(l);return cf(this.visualElement,l),u.start(Hf(l,u,0,o,this.visualElement,!1))}stopAnimation(){En(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const o=`_drag${l.toUpperCase()}`,u=this.visualElement.getProps(),c=u[o];return c||this.visualElement.getValue(l,(u.initial?u.initial[l]:void 0)||0)}snapToCursor(l){En(o=>{const{drag:u}=this.getProps();if(!Wo(o,u,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(o);if(c&&c.layout){const{min:d,max:p}=c.layout.layoutBox[o],g=h.get()||0;h.set(l[o]-Ht(d,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:o}=this.getProps(),{projection:u}=this.visualElement;if(!nl(o)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};En(d=>{const p=this.getAxisMotionValue(d);if(p&&this.constraints!==!1){const g=p.get();c[d]=nA({min:g,max:g},this.constraints[d])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.constraints=!1,this.resolveConstraints(),En(d=>{if(!Wo(d,l,null))return;const p=this.getAxisMotionValue(d),{min:g,max:m}=this.constraints[d];p.set(Ht(g,m,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;lA.set(this.visualElement,this);const l=this.visualElement.current,o=Ss(l,"pointerdown",m=>{const{drag:x,dragListener:b=!0}=this.getProps(),T=m.target,D=T!==l&&qS(T);x&&b&&!D&&this.start(m)});let u;const c=()=>{const{dragConstraints:m}=this.getProps();nl(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),u||(u=oA(l,m.current,()=>this.scalePositionWithinConstraints())))},{projection:h}=this.visualElement,d=h.addEventListener("measure",c);h&&!h.layout&&(h.root&&h.root.updateScroll(),h.updateLayout()),Rt.read(c);const p=Cs(window,"resize",()=>this.scalePositionWithinConstraints()),g=h.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:x})=>{this.isDragging&&x&&(En(b=>{const T=this.getAxisMotionValue(b);T&&(this.originPoint[b]+=m[b].translate,T.set(T.get()+m[b].translate))}),this.visualElement.render())}));return()=>{p(),o(),d(),g&&g(),u&&u()}}getProps(){const l=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:u=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:d=xf,dragMomentum:p=!0}=l;return{...l,drag:o,dragDirectionLock:u,dragPropagation:c,dragConstraints:h,dragElastic:d,dragMomentum:p}}}function l0(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function oA(i,l,o){const u=fy(i,l0(o)),c=fy(l,l0(o));return()=>{u(),c()}}function Wo(i,l,o){return(l===!0||l===i)&&(o===null||o===i)}function uA(i,l=10){let o=null;return Math.abs(i.y)>l?o="y":Math.abs(i.x)>l&&(o="x"),o}class rA extends _a{constructor(l){super(l),this.removeGroupControls=ln,this.removeListeners=ln,this.controls=new sA(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ln}update(){const{dragControls:l}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};l!==o&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Zc=i=>(l,o)=>{i&&Rt.update(()=>i(l,o),!1,!0)};class cA extends _a{constructor(){super(...arguments),this.removePointerDownListener=ln}onPointerDown(l){this.session=new kg(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zg(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:o,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:Zc(l),onStart:Zc(o),onMove:Zc(u),onEnd:(h,d)=>{delete this.session,c&&Rt.postRender(()=>c(h,d))}}}mount(){this.removePointerDownListener=Ss(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 kc=!1;class fA extends z.Component{componentDidMount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:u,layoutId:c}=this.props,{projection:h}=l;h&&(o.group&&o.group.add(h),u&&u.register&&c&&u.register(h),kc&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),iu.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:o,visualElement:u,drag:c,isPresent:h}=this.props,{projection:d}=u;return d&&(d.isPresent=h,l.layoutDependency!==o&&d.setOptions({...d.options,layoutDependency:o}),kc=!0,c||l.layoutDependency!==o||o===void 0||l.isPresent!==h?d.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?d.promote():d.relegate()||Rt.postRender(()=>{const p=d.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Xf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:u}=this.props,{projection:c}=l;kc=!0,c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),u&&u.deregister&&u.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function Fg(i){const[l,o]=Bg(),u=z.useContext(Tf);return v.jsx(fA,{...i,layoutGroup:u,switchLayoutGroup:z.useContext(Kg),isPresent:l,safeToRemove:o})}const dA={pan:{Feature:cA},drag:{Feature:rA,ProjectionNode:Ug,MeasureLayout:Fg}};function s0(i,l,o){const{props:u}=i;i.animationState&&u.whileHover&&i.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,h=u[c];h&&Rt.postRender(()=>h(l,Ds(l)))}class hA extends _a{mount(){const{current:l}=this.node;l&&(this.unmount=BS(l,(o,u)=>(s0(this.node,u,"Start"),c=>s0(this.node,c,"End"))))}unmount(){}}class mA extends _a{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=Ms(Cs(this.node.current,"focus",()=>this.onFocus()),Cs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function o0(i,l,o){const{props:u}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&u.whileTap&&i.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),h=u[c];h&&Rt.postRender(()=>h(l,Ds(l)))}class pA extends _a{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:o,propagate:u}=this.node.props;this.unmount=XS(l,(c,h)=>(o0(this.node,h,"Start"),(d,{success:p})=>o0(this.node,d,p?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:u?.tap===!1})}unmount(){}}const bf=new WeakMap,Jc=new WeakMap,yA=i=>{const l=bf.get(i.target);l&&l(i)},gA=i=>{i.forEach(yA)};function vA({root:i,...l}){const o=i||document;Jc.has(o)||Jc.set(o,{});const u=Jc.get(o),c=JSON.stringify(l);return u[c]||(u[c]=new IntersectionObserver(gA,{root:i,...l})),u[c]}function xA(i,l,o){const u=vA(l);return bf.set(i,o),u.observe(i),()=>{bf.delete(i),u.unobserve(i)}}const bA={some:0,all:1};class SA extends _a{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:o,margin:u,amount:c="some",once:h}=l,d={root:o?o.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:bA[c]},p=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,h&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:x,onViewportLeave:b}=this.node.getProps(),T=m?x:b;T&&T(g)};return xA(this.node.current,d,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:o}=this.node;["amount","margin","root"].some(TA(l,o))&&this.startObserver()}unmount(){}}function TA({viewport:i={}},{viewport:l={}}={}){return o=>i[o]!==l[o]}const AA={inView:{Feature:SA},tap:{Feature:pA},focus:{Feature:mA},hover:{Feature:hA}},EA={layout:{ProjectionNode:Ug,MeasureLayout:Fg}},wA={...JT,...AA,...dA,...EA},ys=XT(wA,KT),CA=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],MA={anthropic:[{id:"claude-opus-4-6",label:"Opus 4.6"},{id:"claude-sonnet-4-6",label:"Sonnet 4.6"},{id:"claude-haiku-4-5-20251001",label:"Haiku 4.5"}],openai:[{id:"gpt-5.2-codex:medium",label:"GPT-5.2 Codex Medium"},{id:"gpt-5.2-codex:high",label:"GPT-5.2 Codex High"},{id:"gpt-5.2-codex:xhigh",label:"GPT-5.2 Codex Extra High"},{id:"gpt-5.3-codex:medium",label:"GPT-5.3 Codex Medium (Pro)"},{id:"gpt-5.3-codex:high",label:"GPT-5.3 Codex High (Pro)"},{id:"gpt-5.3-codex:xhigh",label:"GPT-5.3 Codex Extra High (Pro)"}]},Fc=[{tier:"at",prefix:"my.fluxy.bot/",label:i=>`my.fluxy.bot/${i}`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1},{tier:"premium",prefix:"fluxy.bot/",label:i=>`fluxy.bot/${i}`,badge:"$3",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0}];function jA({models:i,value:l,onChange:o}){const[u,c]=z.useState(!1),h=z.useRef(null);z.useEffect(()=>{if(!u)return;const p=g=>{h.current&&!h.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[u]);const d=i.find(p=>p.id===l);return v.jsxs("div",{className:"relative",ref:h,children:[v.jsxs("button",{type:"button",onClick:()=>c(p=>!p),className:"w-full flex items-center justify-between bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none hover:border-white/15 focus:border-[#AF27E3]/30 transition-colors",children:[v.jsx("span",{className:d?"text-white":"text-white/20",children:d?d.label:"Choose a model..."}),v.jsx(y1,{className:`h-4 w-4 text-white/30 transition-transform ${u?"rotate-180":""}`})]}),u&&v.jsx("div",{className:"absolute left-0 right-0 top-full mt-1 bg-[#222] border border-white/[0.08] rounded-xl shadow-xl py-1 z-10 max-h-48 overflow-y-auto",children:i.map(p=>v.jsx("button",{onClick:()=>{o(p.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${l===p.id?"text-[#AF27E3] bg-[#AF27E3]/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:p.label},p.id))})]})}function zA({onComplete:i,isInitialSetup:l=!1,onSave:o}){const u=l?7:6,[c,h]=z.useState(0),[d,p]=z.useState(""),[g,m]=z.useState("anthropic"),[x,b]=z.useState(""),[T,D]=z.useState(!1),[V,Y]=z.useState({anthropic:"idle",openai:"idle"}),[X,q]=z.useState(!1),[K,G]=z.useState(""),[J,Z]=z.useState(!1),[lt,k]=z.useState(),[F,st]=z.useState(!1),[bt,Et]=z.useState(!1),[Lt,ae]=z.useState(),[vt,$t]=z.useState(""),[R,H]=z.useState(null),[$,ut]=z.useState(""),[dt,E]=z.useState({}),[U,Q]=z.useState("at"),[P,ot]=z.useState(!1),[at,ht]=z.useState(!1),[Kt,Dt]=z.useState(""),sn=z.useRef(null),[ie,hl]=z.useState("quick"),[di,Mn]=z.useState(""),[ml,pl]=z.useState(""),[Xe,ta]=z.useState("relay"),[ze,hi]=z.useState(null),[Ke,yl]=z.useState(!1),[Os,fe]=z.useState(!1),[gu,zs]=z.useState("admin"),[pe,mi]=z.useState(""),[gl,Rs]=z.useState(""),[Vs,pi]=z.useState(!1),[le,ye]=z.useState(!1),[on,ge]=z.useState(!1),[ea,vu]=z.useState(""),[_s,jn]=z.useState(""),[Nn,Ua]=z.useState(!1),[gn,Ba]=z.useState(!1),[Se,Us]=z.useState(!1),[Qe,yi]=z.useState(""),[de,Dn]=z.useState(!1),[vl,La]=z.useState(""),[gi,na]=z.useState(""),[xl,Ha]=z.useState(""),[Ya,Ze]=z.useState(""),[Ut,ee]=z.useState(!1),[On,vi]=z.useState(!1),[xi,vn]=z.useState(""),[bl,zn]=z.useState([]),[qa,Rn]=z.useState(!1),[aa,Vn]=z.useState(!1),[un,Yt]=z.useState(""),[Sl,Ga]=z.useState(""),[_n,ia]=z.useState(!1),[Xa,la]=z.useState("password"),bi=z.useRef(!1),Un=V[g]==="connected";z.useEffect(()=>{fetch("/api/onboard/status").then(j=>j.json()).then(j=>{j.userName&&p(j.userName),j.handle&&($t(j.handle.username),Q(j.handle.tier||"at"),hi({username:j.handle.username,tier:j.handle.tier,url:j.handle.url}),ht(!0),Dt(j.handle.url)),j.portalUser&&zs(j.portalUser),j.portalConfigured&&ye(!0),j.provider&&m(j.provider),j.model&&b(j.model),j.whisperEnabled&&(Us(!0),yi(j.whisperKey||"")),j.totpEnabled&&(Dn(!0),ee(!0)),j.tunnelMode&&hl(j.tunnelMode),j.tunnelDomain&&Mn(j.tunnelDomain),j.tunnelUrl&&pl(j.tunnelUrl),j.handle||ta("tunnel"),bi.current=!0}).catch(()=>{bi.current=!0})},[]),z.useEffect(()=>{ia(window.matchMedia("(max-width: 768px)").matches||"ontouchstart"in window)},[]),z.useEffect(()=>{g!=="anthropic"||V.anthropic==="connected"||fetch("/api/auth/claude/status").then(j=>j.json()).then(j=>{j.authenticated&&Y(tt=>({...tt,anthropic:"connected"}))}).catch(()=>{})},[g]),z.useEffect(()=>{g!=="openai"||V.openai==="connected"||fetch("/api/auth/codex/status").then(j=>j.json()).then(j=>{j.authenticated&&Y(tt=>({...tt,openai:"connected"}))}).catch(()=>{})},[g]),z.useEffect(()=>{if(!bt)return;const j=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(Et(!1),Y(Ve=>({...Ve,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(j)},[bt]),z.useEffect(()=>{if(sn.current&&clearTimeout(sn.current),!bi.current||ie==="off"||ze&&at&&vt===ze.username)return;H(null),ut(""),E({}),ht(!1),Dt("");const j=vt.trim();if(j){if(j.length<3){H("invalid"),ut("At least 3 characters");return}return H("checking"),sn.current=setTimeout(async()=>{try{const zt=await(await fetch(`/api/handle/check/${encodeURIComponent(j)}`)).json();if(!zt.valid)H("invalid"),ut(zt.error);else{const Ve={};for(const oa of zt.handles)Ve[oa.tier]=oa.available;E(Ve),H("ready");const Ee=Fc.find(oa=>Ve[oa.tier]);Ee&&!Ve[U]&&Q(Ee.tier)}}catch{H(null)}},400),()=>{sn.current&&clearTimeout(sn.current)}}},[vt]);const sa=j=>{$t(j.toLowerCase().replace(/[^a-z0-9-]/g,""))},Si=async()=>{if(!(!vt||R!=="ready"||!dt[U])){ot(!0);try{const tt=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:U})})).json();tt.ok?(ht(!0),Dt(tt.url)):(ut(tt.error||"Registration failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{ot(!1)}}},rn=async()=>{if(!(!vt||R!=="ready"||!dt[U])){fe(!0);try{const tt=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:U})})).json();tt.ok?(ht(!0),Dt(tt.url),hi({username:vt,tier:U,url:tt.url}),yl(!1)):(ut(tt.error||"Handle change failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{fe(!1)}}},Te=j=>{g==="openai"&&j!=="openai"&&bt&&(fetch("/api/auth/codex/cancel",{method:"POST"}),Et(!1)),m(j),b(""),q(!1),G(""),k(void 0),Et(!1),ae(void 0)},Tl=j=>{if(window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0){const zt=document.createElement("a");zt.href=j,zt.target="_blank",zt.rel="noopener noreferrer",document.body.appendChild(zt),zt.click(),document.body.removeChild(zt)}else window.open(j,"_blank","noopener,noreferrer")},xu=async()=>{k(void 0);try{const tt=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();tt.success&&tt.authUrl?(Tl(tt.authUrl),q(!0)):k(tt.error||"Failed to start authentication")}catch(j){k(j.message)}},Ti=async()=>{if(K.trim()){Z(!0),k(void 0);try{const tt=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:K.trim()})})).json();tt.success?Y(zt=>({...zt,anthropic:"connected"})):k(tt.error||"Code exchange failed")}catch(j){k(j.message)}finally{Z(!1)}}},Bs=async()=>{try{const j=await navigator.clipboard.readText();j&&G(j.trim())}catch{}},Ai=async()=>{st(!0),k(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?Y(zt=>({...zt,anthropic:"connected"})):k("No active session found. Please authenticate first.")}catch{}finally{st(!1)}},bu=async()=>{Et(!0),ae(void 0);try{const tt=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();tt.success&&tt.authUrl?Tl(tt.authUrl):(Et(!1),ae(tt.error||"Failed to start authentication"))}catch(j){Et(!1),ae(j.message)}},Ae=()=>{Et(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Ei=pe===gl,Al=pe.length>=6&&Ei,El=le?pe.length===0||Nn&&Al:Al,Re=(()=>{switch(c){case 0:return!0;case 1:return d.trim().length>0;case 2:return ie==="off"||ie==="named"||Xe==="tunnel"?vt.trim().length>=3:at;case 3:return!(Xa!=="password"||!El||de&&!Ut);case 4:return!!(g&&x&&Un);case 5:return!0;default:return!1}})(),ke=()=>{Re&&c<u-1&&h(j=>j+1)},Ls=()=>{c>0&&h(j=>j-1)},xn=j=>{j.key==="Enter"&&Re&&ke()},Su=async()=>{D(!0);const j={userName:d.trim(),agentName:vt.trim()||"Fluxy",provider:g,model:x,apiKey:"",whisperEnabled:Se,whisperKey:Se?Qe:"",portalUser:gu.trim(),portalPass:pe};try{o?await o(j):await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j)}),l?(D(!1),h(6)):i()}catch(tt){console.error("[OnboardWizard] Onboard failed:",tt),D(!1)}},Je="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",wl="w-full bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none input-glow placeholder:text-white/20 transition-all";return v.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[v.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),v.jsxs(ys.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3},className:"relative w-full max-w-[480px] bg-[#181818] border border-white/[0.06] rounded-[24px] shadow-2xl overflow-hidden",children:[v.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:u},(j,tt)=>v.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${tt===c?"w-7 bg-gradient-brand":tt<c?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},tt))}),v.jsx(Jy,{mode:"wait",children:v.jsxs(ys.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},transition:{duration:.2,ease:"easeOut"},className:"px-8 pt-6 pb-8",children:[c===0&&v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),v.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),v.jsx("p",{className:"text-white/40 text-[14px] mt-2 leading-relaxed max-w-[320px]",children:"Let's set up your AI assistant in just a few steps."}),v.jsxs("button",{onClick:ke,className:"mt-6 px-7 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center gap-2",children:["Get Started",v.jsx(Ge,{className:"h-4 w-4"})]})]}),c===1&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),v.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[v.jsx("input",{type:"text",value:d,onChange:j=>p(j.target.value),onKeyDown:xn,placeholder:"Enter your name",autoFocus:!0,className:Je+" flex-1"}),v.jsx("button",{onClick:ke,disabled:!Re,className:"shrink-0 h-12 w-12 flex items-center justify-center rounded-full bg-gradient-brand hover:opacity-90 text-white transition-colors disabled:opacity-30",children:v.jsx(Ge,{className:"h-5 w-5"})})]})]}),c===2&&ie==="off"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Give your bot a name. This is used throughout the app as your bot's identity."}),v.jsx("div",{className:"relative mt-5",children:v.jsx("input",{type:"text",value:vt,onChange:j=>sa(j.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Je+" pr-10 font-mono"})}),v.jsx("div",{className:"mt-4 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:"Private network mode — your bot is only accessible via your local network or VPN. No public URL will be created."})}),v.jsxs("button",{onClick:ke,disabled:!Re,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]})]}),c===2&&ie==="named"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's identity. Your named tunnel domain is already configured."}),v.jsx("div",{className:"relative mt-5",children:v.jsx("input",{type:"text",value:vt,onChange:j=>sa(j.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:Je+" pr-10 font-mono"})}),v.jsxs("div",{className:"mt-4 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsxs("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:["https://",di]}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(`https://${di}`),pi(!0),setTimeout(()=>pi(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Vs?v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"}):v.jsx(Gp,{className:"h-4 w-4"})})]})]}),c===2&&ie==="quick"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's name and permanent handle — access it from anywhere."}),ze&&at&&!Ke&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"}),v.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),v.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Kt})]}),v.jsxs("div",{className:"flex gap-2 mt-4",children:[v.jsxs("button",{onClick:ke,className:"flex-1 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]}),v.jsx("button",{onClick:()=>{yl(!0),ht(!1),$t(""),H(null),E({}),ta("relay")},className:"px-5 py-3 bg-white/[0.04] hover:bg-white/[0.08] border border-white/[0.08] text-white/60 text-[13px] font-medium rounded-full transition-colors",children:"Change"})]})]}),Ke&&!at&&v.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[v.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),v.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",v.jsx("span",{className:"font-mono",children:ze?.url})," will be released and become available for others."]})]}),(!ze||Ke||!at)&&!(ze&&at&&!Ke)&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"relative mt-5",children:[v.jsx("input",{type:"text",value:vt,onChange:j=>sa(j.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:at,className:Je+" pr-10 font-mono"+(at?" opacity-50":"")}),R&&vt.length>0&&!at&&v.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[R==="checking"&&v.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),R==="invalid"&&v.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:v.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),R==="invalid"&&$&&v.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:$}),R==="ready"&&vt.length>0&&!at&&Xe==="relay"&&v.jsxs("div",{className:"mt-4 text-center",children:[v.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-white/25",children:Fc.find(j=>j.tier===U)?.prefix}),v.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-gradient",children:vt})]}),R==="ready"&&vt.length>0&&!at&&v.jsxs("div",{className:"space-y-2 mt-4",children:[Fc.map(j=>{const zt=dt[j.tier]===!1;return v.jsxs("button",{onClick:()=>{zt||(Q(j.tier),ta("relay"))},disabled:zt,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${zt?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":Xe==="relay"&&U===j.tier?j.highlight?"border-[#AF27E3]/40 bg-[#AF27E3]/[0.06]":"border-[#AF27E3]/30 bg-white/[0.04]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[v.jsx("span",{className:`font-mono text-[13px] ${zt?"text-white/40":Xe==="relay"&&U===j.tier?"text-white/80":"text-white/50"}`,children:j.label(vt)}),zt?v.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-red-500/10 text-red-400 border-red-500/20",children:"Taken"}):v.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${j.badgeCls}`,children:j.badge})]},j.tier)}),v.jsxs("button",{onClick:()=>ta("tunnel"),className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${Xe==="tunnel"?"border-white/[0.08] bg-white/[0.03]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[v.jsx("span",{className:"text-[13px] text-white/50",children:"No thanks, I'll use the random URL"}),v.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-white/[0.04] text-white/30 border-white/[0.08]",children:"Skip"})]})]}),at&&v.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"}),v.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),v.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Kt})]}),Xe==="relay"&&R==="ready"&&dt[U]&&vt.length>0&&!at&&v.jsx("button",{onClick:Ke?rn:Si,disabled:P||Os,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||Os?v.jsxs(v.Fragment,{children:[v.jsx(si,{className:"h-4 w-4 animate-spin"}),Ke?"Changing...":"Claiming..."]}):v.jsxs(v.Fragment,{children:[Ke?"Change Handle":"Claim & Continue",v.jsx(Ge,{className:"h-4 w-4"})]})}),Xe==="tunnel"&&R==="ready"&&vt.length>0&&!at&&v.jsxs("button",{onClick:ke,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]}),at&&v.jsxs("button",{onClick:ke,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]}),Ke&&!at&&v.jsx("button",{onClick:()=>{yl(!1),$t(ze.username),ht(!0),Dt(ze.url),Q(ze.tier),ta("relay"),H(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]})]}),c===3&&v.jsx("div",{children:v.jsxs(Jy,{mode:"wait",children:[Xa==="password"&&v.jsxs(ys.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.15},children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set a password"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"You'll need this password to access your agent's chat. Keep it safe — anyone with your URL will need it to log in."}),le&&v.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:v.jsx("p",{className:"text-white/40 text-[12px]",children:"Password already set. Leave fields empty to keep your current password, or enter your current password to change it."})}),le&&v.jsxs("div",{className:"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"password",value:ea,onChange:j=>{vu(j.target.value),jn(""),Ua(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",autoFocus:!0,className:Je+" flex-1"}),ea.length>0&&!Nn&&v.jsx("button",{onClick:async()=>{Ba(!0),jn("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:ea})})).json()).valid?Ua(!0):jn("Incorrect password")}catch{jn("Could not verify")}finally{Ba(!1)}},disabled:gn,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:gn?v.jsx(si,{className:"h-4 w-4 animate-spin"}):"Verify"}),Nn&&v.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"})})]}),_s&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:_s})]}),(!le||Nn)&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:le?"mt-3":"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:le?"New password":"Password"}),v.jsx("input",{type:"password",value:pe,onChange:j=>mi(j.target.value),placeholder:"••••••••",autoComplete:"new-password",autoFocus:!le,onKeyDown:xn,className:Je}),pe.length>0&&pe.length<6&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),v.jsxs("div",{className:"mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:le?"Confirm new password":"Confirm password"}),v.jsx("input",{type:"password",value:gl,onChange:j=>Rs(j.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:xn,className:Je}),gl.length>0&&!Ei&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),v.jsxs("div",{className:"mt-5 border border-white/[0.06] rounded-xl overflow-hidden",children:[v.jsxs("button",{onClick:async()=>{if(de&&Ut){Vn(!0);return}if(de)Dn(!1),na(""),La(""),Ha("");else if(Dn(!0),vn(""),Ze(""),gi)la("totp-setup");else try{const j=await fetch("/api/portal/totp/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:le?ea:pe})}),tt=await j.json();j.ok?(La(tt.secret),na(tt.qrDataUri),Ha(tt.otpauthUri),la("totp-setup")):(vn(tt.error||"Setup failed"),Dn(!1))}catch{vn("Could not reach server"),Dn(!1)}},type:"button",className:"w-full flex items-center gap-3 px-4 py-3 text-left",children:[v.jsx("div",{className:`w-9 h-9 rounded-lg flex items-center justify-center shrink-0 ${de&&Ut?"bg-emerald-500/10":"bg-white/[0.04]"}`,children:de&&Ut?v.jsx(Kp,{className:"h-[18px] w-[18px] text-emerald-400"}):v.jsx(D1,{className:"h-[18px] w-[18px] text-white/30"})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-[13px] font-medium text-white",children:"Two-Factor Authentication"}),(ie==="quick"||ie==="named")&&!de&&v.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-amber-500/10 text-amber-400 border border-amber-500/20 shrink-0",children:"Recommended"}),de&&Ut&&v.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-emerald-500/10 text-emerald-400 border border-emerald-500/20 shrink-0",children:"Active"})]}),v.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:de&&Ut?"Require a 6-digit code from your authenticator app":"Add an extra layer of security"})]}),v.jsx("div",{className:`w-10 h-6 rounded-full transition-colors relative shrink-0 ${de?"bg-emerald-500":"bg-white/10"}`,children:v.jsx("div",{className:`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform ${de?"translate-x-5":"translate-x-1"}`})})]}),aa&&v.jsxs("div",{className:"px-4 pb-3 border-t border-white/[0.06]",children:[v.jsx("p",{className:"text-[12px] text-white/40 mt-3 mb-2",children:"Enter your current TOTP code to disable 2FA:"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:un,onChange:j=>{Yt(j.target.value.replace(/\D/g,"")),Ga("")},placeholder:"000000",className:wl+" flex-1 tracking-[0.3em] text-center font-mono"}),v.jsx("button",{onClick:async()=>{if(un.length===6)try{const j=await fetch("/api/portal/totp/disable",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:le?ea:pe,code:un})}),tt=await j.json();j.ok?(Dn(!1),ee(!1),La(""),na(""),Ha(""),Vn(!1),Yt(""),zn([]),Rn(!1)):Ga(tt.error||"Failed to disable")}catch{Ga("Could not reach server")}},disabled:un.length!==6,className:"shrink-0 px-4 py-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-400 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:"Disable"})]}),Sl&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:Sl}),v.jsx("button",{onClick:()=>{Vn(!1),Yt(""),Ga("")},className:"text-[11px] text-white/30 hover:text-white/50 mt-2",children:"Cancel"})]}),xi&&Xa==="password"&&v.jsx("div",{className:"mx-4 mb-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:v.jsx("p",{className:"text-red-400/90 text-[11px]",children:xi})})]}),v.jsxs("button",{onClick:ke,disabled:!Re,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]})]},"password"),Xa==="totp-setup"&&v.jsxs(ys.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[v.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[v.jsx("button",{onClick:()=>{Dn(!1),na(""),La(""),Ha(""),Ze(""),vn(""),la("password")},className:"w-7 h-7 rounded-full bg-white/[0.04] flex items-center justify-center text-white/40 hover:text-white/70 transition-colors shrink-0",children:v.jsx(ArrowLeft,{className:"h-4 w-4"})}),v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set up 2FA"})]}),xi&&v.jsx("div",{className:"mt-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:v.jsx("p",{className:"text-red-400/90 text-[11px]",children:xi})}),gi&&v.jsxs(v.Fragment,{children:[_n?v.jsxs("div",{className:"mt-4",children:[v.jsx("p",{className:"text-white/40 text-[13px] leading-relaxed mb-4",children:"Add Fluxy to your authenticator app, then enter the 6-digit code below to confirm."}),v.jsxs("a",{href:xl,className:"w-full py-3 bg-[#AF27E3]/10 hover:bg-[#AF27E3]/20 text-[#AF27E3] text-[14px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:[v.jsx(z1,{className:"h-4 w-4"}),"Open in Authenticator"]}),v.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(vl)},className:"w-full mt-2 text-[11px] text-white/25 hover:text-white/40 flex items-center justify-center gap-1 py-1 transition-colors",children:[v.jsx(Dc,{className:"h-3 w-3"}),"Or copy secret key manually"]})]}):v.jsxs("div",{className:"mt-4 flex gap-4 items-start",children:[v.jsx("div",{className:"shrink-0",children:v.jsx("div",{className:"bg-white rounded-xl p-1.5",children:v.jsx("img",{src:gi,alt:"TOTP QR Code",className:"w-[140px] h-[140px]"})})}),v.jsxs("div",{className:"flex-1 min-w-0 pt-1",children:[v.jsx("p",{className:"text-white/40 text-[13px] leading-relaxed",children:"Scan this QR code with your authenticator app."}),v.jsx("p",{className:"text-white/25 text-[11px] mt-2 leading-relaxed",children:"Google Authenticator, Authy, 1Password, or any TOTP app."}),v.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(vl)},className:"mt-3 text-[11px] text-white/25 hover:text-white/40 flex items-center gap-1 transition-colors",children:[v.jsx(Dc,{className:"h-3 w-3"}),"Copy secret key"]})]})]}),v.jsxs("div",{className:"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Enter the 6-digit code from your app"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:Ya,onChange:j=>{Ze(j.target.value.replace(/\D/g,"")),vn("")},placeholder:"000000",autoFocus:!0,className:Je+" tracking-[0.3em] text-center font-mono flex-1"}),v.jsx("button",{onClick:async()=>{if(Ya.length===6){vi(!0),vn("");try{const j=await fetch("/api/portal/totp/verify-setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:Ya,password:le?ea:pe})}),tt=await j.json();j.ok&&tt.success?(ee(!0),zn(tt.recoveryCodes||[]),la("recovery")):vn(tt.error||"Verification failed")}catch{vn("Could not reach server")}finally{vi(!1)}}},disabled:Ya.length!==6||On,className:"shrink-0 px-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-xl transition-colors flex items-center gap-2 disabled:opacity-40",children:On?v.jsx(si,{className:"h-4 w-4 animate-spin"}):"Verify"})]})]})]})]},"totp-setup"),Xa==="recovery"&&v.jsxs(ys.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[v.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[v.jsx("div",{className:"w-9 h-9 rounded-xl bg-emerald-500/10 flex items-center justify-center shrink-0",children:v.jsx(Kp,{className:"h-[18px] w-[18px] text-emerald-400"})}),v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"2FA enabled"}),v.jsx("p",{className:"text-emerald-400/70 text-[12px]",children:"Save your recovery codes"})]})]}),v.jsx("p",{className:"text-white/35 text-[13px] mt-3 leading-relaxed",children:"If you lose your authenticator app, you can use one of these codes to sign in. Each code works once. Store them somewhere safe."}),v.jsx("div",{className:"mt-4 grid grid-cols-2 gap-1.5",children:bl.map((j,tt)=>v.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 text-center",children:v.jsx("code",{className:"text-[13px] text-white/60 font-mono tracking-wider",children:j})},tt))}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(bl.join(`
|
|
18
|
+
`)),Rn(!0)},className:`w-full mt-4 py-3 text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 ${qa?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-white/[0.05] text-white/60 hover:bg-white/[0.08] border border-white/[0.08]"}`,children:qa?v.jsxs(v.Fragment,{children:[v.jsx(Oa,{className:"h-4 w-4"}),"Copied"]}):v.jsxs(v.Fragment,{children:[v.jsx(Dc,{className:"h-4 w-4"}),"Copy recovery codes"]})}),v.jsxs("button",{onClick:()=>{zn([]),la("password")},disabled:!qa,className:"w-full mt-3 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:["Done",v.jsx(Ge,{className:"h-4 w-4"})]})]},"recovery")]})}),c===4&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Pick one provider to power your bot, authenticate, and select a model."}),v.jsx("div",{className:"flex gap-2.5 mt-4",children:CA.map(j=>v.jsxs("button",{onClick:()=>Te(j.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${g===j.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[v.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[j.icon?v.jsx("img",{src:j.icon,alt:j.name,className:"w-8 h-8 rounded-lg"}):v.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/[0.06] flex items-center justify-center text-white/50 text-sm font-bold",children:"O"}),v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"text-[13px] font-medium text-white",children:j.name}),v.jsx("div",{className:"text-[10px] text-white/30",children:j.subtitle})]})]}),V[j.id]==="connected"?v.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:v.jsx(Oa,{className:"h-2.5 w-2.5 text-emerald-400"})}):g===j.id?v.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},j.id))}),v.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),g==="anthropic"&&v.jsxs("div",{className:"space-y-2.5",children:[Un&&v.jsxs("div",{className:"space-y-2.5",children:[v.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),v.jsxs("button",{onClick:()=>{Y(j=>({...j,anthropic:"idle"})),q(!1),G(""),k("")},className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5",children:[v.jsx(Oc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Un&&v.jsxs(v.Fragment,{children:[lt&&v.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-red-400/90 text-[12px]",children:lt})}),v.jsx("div",{className:"space-y-1.5",children:["Click the button below to open Anthropic's login page","Sign in with your Anthropic account — a code will be generated","Copy the code and paste it in the field below"].map((j,tt)=>v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:tt+1}),v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:j})]},tt))}),v.jsx("button",{onClick:xu,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:X?v.jsxs(v.Fragment,{children:[v.jsx(Xp,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):v.jsxs(v.Fragment,{children:["Authenticate with Anthropic",v.jsx(Ge,{className:"h-3.5 w-3.5 opacity-60"})]})}),v.jsxs("div",{className:"relative",children:[v.jsx("input",{type:"text",value:K,onChange:j=>G(j.target.value),onKeyDown:j=>j.key==="Enter"&&Ti(),placeholder:"Paste your code here...",className:wl+" pr-10 font-mono"}),v.jsx("button",{onClick:Bs,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:v.jsx(Gp,{className:"h-3.5 w-3.5"})})]}),v.jsx("button",{onClick:Ti,disabled:!K.trim()||J,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:J?v.jsxs(v.Fragment,{children:[v.jsx(si,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),v.jsxs("button",{onClick:Ai,disabled:F,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5 disabled:opacity-50",children:[F?v.jsx(si,{className:"h-3 w-3 animate-spin"}):v.jsx(Oc,{className:"h-3 w-3"}),F?"Checking...":"I'm already authenticated"]})]})]}),g==="openai"&&v.jsxs("div",{className:"space-y-2.5",children:[Un&&v.jsxs("div",{className:"space-y-2.5",children:[v.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),v.jsxs("button",{onClick:()=>{Y(j=>({...j,openai:"idle"})),ae("")},className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5",children:[v.jsx(Oc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Un&&v.jsxs(v.Fragment,{children:[Lt&&v.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-red-400/90 text-[12px]",children:Lt})}),v.jsx("div",{className:"space-y-1.5",children:["Click the button below — your browser will open for ChatGPT sign-in","Sign in with your ChatGPT Plus or Pro account","Authentication completes automatically — no code to copy"].map((j,tt)=>v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:tt+1}),v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:j})]},tt))}),v.jsx("button",{onClick:bu,disabled:bt,className:"w-full py-2.5 px-4 bg-white/[0.06] hover:bg-white/[0.09] text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-60",children:bt?v.jsxs(v.Fragment,{children:[v.jsx(si,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):v.jsxs(v.Fragment,{children:["Authenticate with ChatGPT",v.jsx(Ge,{className:"h-3.5 w-3.5 opacity-60"})]})}),bt&&v.jsx("button",{onClick:Ae,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),Un&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),v.jsx(jA,{models:MA[g]||[],value:x,onChange:b})]}),Un&&v.jsxs("button",{onClick:ke,disabled:!Re,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]})]}),c===5&&v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),v.jsx("span",{className:"text-[11px] text-white/25 font-medium bg-white/[0.04] border border-white/[0.06] rounded-full px-2.5 py-0.5",children:"Optional"})]}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),v.jsx("button",{onClick:()=>Us(j=>!j),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${Se?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:v.jsxs("div",{className:"flex items-center gap-3.5",children:[v.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),v.jsxs("div",{className:"flex-1",children:[v.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),v.jsx("div",{className:"text-[12px] text-white/35 mt-0.5 leading-relaxed",children:"Speech-to-text powered by OpenAI. Requires an OpenAI API key."})]}),v.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${Se?"bg-gradient-brand":"bg-white/[0.08]"}`,children:v.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${Se?"translate-x-[18px]":"translate-x-0"}`})})]})}),Se&&v.jsxs("div",{className:"mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),v.jsx("input",{type:"password",value:Qe,onChange:j=>yi(j.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:Je+" font-mono text-[13px]"}),Qe.length>0&&!Qe.startsWith("sk-")&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),Qe.length>0&&Qe.startsWith("sk-")&&Qe.length<20&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),v.jsxs("div",{className:"flex items-start gap-2.5 mt-3 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsx(C1,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),v.jsx("p",{className:"text-white/35 text-[12px] leading-relaxed",children:"Users will see a microphone button in the chat. Audio is sent to OpenAI's Whisper API for transcription, then processed as a regular text message."})]})]}),v.jsx("button",{onClick:Su,disabled:T||Se&&(!Qe.startsWith("sk-")||Qe.length<20),className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:T?v.jsxs(v.Fragment,{children:[v.jsx(si,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):v.jsxs(v.Fragment,{children:["Complete Setup",v.jsx(Ge,{className:"h-4 w-4"})]})}),!Se&&v.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]}),c===6&&l&&(()=>{const j=ie==="off",tt=j?window.location.origin:ie==="named"?`https://${di}`:Xe==="relay"&&Kt?Kt:ml||"http://localhost:3000",zt=tt.startsWith("http")?tt:`https://${tt}`,Ve=j?"Your agent is running on your private network. Access it from any device on your local network or VPN.":ie==="named"?"Access your agent at your custom domain.":Xe==="relay"&&Kt?"Your agent is live and ready. From now on, access it using your custom URL below.":"Your agent is live and ready. Your tunnel URL is shown below. Note: this URL changes on restart.";return v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center mb-5",children:v.jsx(Oa,{className:"h-8 w-8 text-emerald-400"})}),v.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"All Set!"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-2 leading-relaxed max-w-[340px]",children:Ve}),v.jsxs("div",{className:"w-full mt-6 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:tt}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(zt),pi(!0),setTimeout(()=>pi(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Vs?v.jsx(Oa,{className:"h-4 w-4 text-emerald-400"}):v.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[v.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),v.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),v.jsxs("div",{className:"w-full mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block text-left",children:"Your password"}),v.jsxs("div",{className:"flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:on?pe:"•".repeat(Math.max(pe.length,8))}),v.jsx("button",{onClick:()=>ge(Ee=>!Ee),className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:on?v.jsx(S1,{className:"h-4 w-4"}):v.jsx(A1,{className:"h-4 w-4"})})]})]}),v.jsxs("button",{onClick:()=>{j?(window.top||window).location.href="/":(window.top||window).location.href=zt},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:[j?"Go to dashboard":"Go to your agent",v.jsx(Xp,{className:"h-4 w-4"})]}),v.jsx("p",{className:"text-white/20 text-[11px] mt-3 leading-relaxed",children:j?"Access from any device on your network using the URL above.":`You'll be redirected to your ${ie==="named"?"custom domain":Xe==="relay"?"custom URL":"tunnel URL"}.`})]})})()]},c)}),c>0&&c<u-1&&!(c===6&&l)&&v.jsx("div",{className:"px-8 pb-5 -mt-3",children:v.jsx("button",{onClick:Ls,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{Jy as A,Oa as C,si as L,C1 as M,zA as O,NA as R,D1 as S,Ge as a,Dc as b,Oe as c,DA as d,u0 as g,v as j,ys as m,z as r};
|