(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function u(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();var wr={exports:{}},ol={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ap;function Z1(){if(ap)return ol;ap=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(o,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:i,type:o,key:h,ref:c!==void 0?c:null,props:d}}return ol.Fragment=l,ol.jsx=u,ol.jsxs=u,ol}var lp;function Q1(){return lp||(lp=1,wr.exports=Z1()),wr.exports}var q=Q1(),Ur={exports:{}},at={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sp;function K1(){if(sp)return at;sp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),b=Symbol.iterator;function M(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,j={};function L(A,U,Q){this.props=A,this.context=U,this.refs=j,this.updater=Q||R}L.prototype.isReactComponent={},L.prototype.setState=function(A,U){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,U,"setState")},L.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function Y(){}Y.prototype=L.prototype;function H(A,U,Q){this.props=A,this.context=U,this.refs=j,this.updater=Q||R}var G=H.prototype=new Y;G.constructor=H,B(G,L.prototype),G.isPureReactComponent=!0;var J=Array.isArray;function lt(){}var I={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function it(A,U,Q){var W=Q.ref;return{$$typeof:i,type:A,key:U,ref:W!==void 0?W:null,props:Q}}function tt(A,U){return it(A.type,U,A.props)}function pt(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function vt(A){var U={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Q){return U[Q]})}var Pt=/\/+/g;function Yt(A,U){return typeof A=="object"&&A!==null&&A.key!=null?vt(""+A.key):U.toString(36)}function jt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(lt,lt):(A.status="pending",A.then(function(U){A.status==="pending"&&(A.status="fulfilled",A.value=U)},function(U){A.status==="pending"&&(A.status="rejected",A.reason=U)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function V(A,U,Q,W,st){var ct=typeof A;(ct==="undefined"||ct==="boolean")&&(A=null);var xt=!1;if(A===null)xt=!0;else switch(ct){case"bigint":case"string":case"number":xt=!0;break;case"object":switch(A.$$typeof){case i:case l:xt=!0;break;case v:return xt=A._init,V(xt(A._payload),U,Q,W,st)}}if(xt)return st=st(A),xt=W===""?"."+Yt(A,0):W,J(st)?(Q="",xt!=null&&(Q=xt.replace(Pt,"$&/")+"/"),V(st,U,Q,"",function(pa){return pa})):st!=null&&(pt(st)&&(st=tt(st,Q+(st.key==null||A&&A.key===st.key?"":(""+st.key).replace(Pt,"$&/")+"/")+xt)),U.push(st)),1;xt=0;var se=W===""?".":W+":";if(J(A))for(var Lt=0;Lt<A.length;Lt++)W=A[Lt],ct=se+Yt(W,Lt),xt+=V(W,U,Q,ct,st);else if(Lt=M(A),typeof Lt=="function")for(A=Lt.call(A),Lt=0;!(W=A.next()).done;)W=W.value,ct=se+Yt(W,Lt++),xt+=V(W,U,Q,ct,st);else if(ct==="object"){if(typeof A.then=="function")return V(jt(A),U,Q,W,st);throw U=String(A),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return xt}function Z(A,U,Q){if(A==null)return A;var W=[],st=0;return V(A,W,"","",function(ct){return U.call(Q,ct,st++)}),W}function K(A){if(A._status===-1){var U=A._result;U=U(),U.then(function(Q){(A._status===0||A._status===-1)&&(A._status=1,A._result=Q)},function(Q){(A._status===0||A._status===-1)&&(A._status=2,A._result=Q)}),A._status===-1&&(A._status=0,A._result=U)}if(A._status===1)return A._result.default;throw A._result}var ot=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},yt={map:Z,forEach:function(A,U,Q){Z(A,function(){U.apply(this,arguments)},Q)},count:function(A){var U=0;return Z(A,function(){U++}),U},toArray:function(A){return Z(A,function(U){return U})||[]},only:function(A){if(!pt(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return at.Activity=S,at.Children=yt,at.Component=L,at.Fragment=u,at.Profiler=c,at.PureComponent=H,at.StrictMode=o,at.Suspense=g,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,at.__COMPILER_RUNTIME={__proto__:null,c:function(A){return I.H.useMemoCache(A)}},at.cache=function(A){return function(){return A.apply(null,arguments)}},at.cacheSignal=function(){return null},at.cloneElement=function(A,U,Q){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var W=B({},A.props),st=A.key;if(U!=null)for(ct in U.key!==void 0&&(st=""+U.key),U)!$.call(U,ct)||ct==="key"||ct==="__self"||ct==="__source"||ct==="ref"&&U.ref===void 0||(W[ct]=U[ct]);var ct=arguments.length-2;if(ct===1)W.children=Q;else if(1<ct){for(var xt=Array(ct),se=0;se<ct;se++)xt[se]=arguments[se+2];W.children=xt}return it(A.type,st,W)},at.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},at.createElement=function(A,U,Q){var W,st={},ct=null;if(U!=null)for(W in U.key!==void 0&&(ct=""+U.key),U)$.call(U,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(st[W]=U[W]);var xt=arguments.length-2;if(xt===1)st.children=Q;else if(1<xt){for(var se=Array(xt),Lt=0;Lt<xt;Lt++)se[Lt]=arguments[Lt+2];st.children=se}if(A&&A.defaultProps)for(W in xt=A.defaultProps,xt)st[W]===void 0&&(st[W]=xt[W]);return it(A,ct,st)},at.createRef=function(){return{current:null}},at.forwardRef=function(A){return{$$typeof:m,render:A}},at.isValidElement=pt,at.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:K}},at.memo=function(A,U){return{$$typeof:p,type:A,compare:U===void 0?null:U}},at.startTransition=function(A){var U=I.T,Q={};I.T=Q;try{var W=A(),st=I.S;st!==null&&st(Q,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(lt,ot)}catch(ct){ot(ct)}finally{U!==null&&Q.types!==null&&(U.types=Q.types),I.T=U}},at.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},at.use=function(A){return I.H.use(A)},at.useActionState=function(A,U,Q){return I.H.useActionState(A,U,Q)},at.useCallback=function(A,U){return I.H.useCallback(A,U)},at.useContext=function(A){return I.H.useContext(A)},at.useDebugValue=function(){},at.useDeferredValue=function(A,U){return I.H.useDeferredValue(A,U)},at.useEffect=function(A,U){return I.H.useEffect(A,U)},at.useEffectEvent=function(A){return I.H.useEffectEvent(A)},at.useId=function(){return I.H.useId()},at.useImperativeHandle=function(A,U,Q){return I.H.useImperativeHandle(A,U,Q)},at.useInsertionEffect=function(A,U){return I.H.useInsertionEffect(A,U)},at.useLayoutEffect=function(A,U){return I.H.useLayoutEffect(A,U)},at.useMemo=function(A,U){return I.H.useMemo(A,U)},at.useOptimistic=function(A,U){return I.H.useOptimistic(A,U)},at.useReducer=function(A,U,Q){return I.H.useReducer(A,U,Q)},at.useRef=function(A){return I.H.useRef(A)},at.useState=function(A){return I.H.useState(A)},at.useSyncExternalStore=function(A,U,Q){return I.H.useSyncExternalStore(A,U,Q)},at.useTransition=function(){return I.H.useTransition()},at.version="19.2.4",at}var up;function Dc(){return up||(up=1,Ur.exports=K1()),Ur.exports}var X=Dc(),Br={exports:{}},rl={},jr={exports:{}},Lr={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var op;function J1(){return op||(op=1,(function(i){function l(V,Z){var K=V.length;V.push(Z);t:for(;0<K;){var ot=K-1>>>1,yt=V[ot];if(0<c(yt,Z))V[ot]=Z,V[K]=yt,K=ot;else break t}}function u(V){return V.length===0?null:V[0]}function o(V){if(V.length===0)return null;var Z=V[0],K=V.pop();if(K!==Z){V[0]=K;t:for(var ot=0,yt=V.length,A=yt>>>1;ot<A;){var U=2*(ot+1)-1,Q=V[U],W=U+1,st=V[W];if(0>c(Q,K))W<yt&&0>c(st,Q)?(V[ot]=st,V[W]=K,ot=W):(V[ot]=Q,V[U]=K,ot=U);else if(W<yt&&0>c(st,K))V[ot]=st,V[W]=K,ot=W;else break t}}return Z}function c(V,Z){var K=V.sortIndex-Z.sortIndex;return K!==0?K:V.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();i.unstable_now=function(){return h.now()-m}}var g=[],p=[],v=1,S=null,b=3,M=!1,R=!1,B=!1,j=!1,L=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function G(V){for(var Z=u(p);Z!==null;){if(Z.callback===null)o(p);else if(Z.startTime<=V)o(p),Z.sortIndex=Z.expirationTime,l(g,Z);else break;Z=u(p)}}function J(V){if(B=!1,G(V),!R)if(u(g)!==null)R=!0,lt||(lt=!0,vt());else{var Z=u(p);Z!==null&&jt(J,Z.startTime-V)}}var lt=!1,I=-1,$=5,it=-1;function tt(){return j?!0:!(i.unstable_now()-it<$)}function pt(){if(j=!1,lt){var V=i.unstable_now();it=V;var Z=!0;try{t:{R=!1,B&&(B=!1,Y(I),I=-1),M=!0;var K=b;try{e:{for(G(V),S=u(g);S!==null&&!(S.expirationTime>V&&tt());){var ot=S.callback;if(typeof ot=="function"){S.callback=null,b=S.priorityLevel;var yt=ot(S.expirationTime<=V);if(V=i.unstable_now(),typeof yt=="function"){S.callback=yt,G(V),Z=!0;break e}S===u(g)&&o(g),G(V)}else o(g);S=u(g)}if(S!==null)Z=!0;else{var A=u(p);A!==null&&jt(J,A.startTime-V),Z=!1}}break t}finally{S=null,b=K,M=!1}Z=void 0}}finally{Z?vt():lt=!1}}}var vt;if(typeof H=="function")vt=function(){H(pt)};else if(typeof MessageChannel<"u"){var Pt=new MessageChannel,Yt=Pt.port2;Pt.port1.onmessage=pt,vt=function(){Yt.postMessage(null)}}else vt=function(){L(pt,0)};function jt(V,Z){I=L(function(){V(i.unstable_now())},Z)}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(V){V.callback=null},i.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<V?Math.floor(1e3/V):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(V){switch(b){case 1:case 2:case 3:var Z=3;break;default:Z=b}var K=b;b=Z;try{return V()}finally{b=K}},i.unstable_requestPaint=function(){j=!0},i.unstable_runWithPriority=function(V,Z){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var K=b;b=V;try{return Z()}finally{b=K}},i.unstable_scheduleCallback=function(V,Z,K){var ot=i.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ot+K:ot):K=ot,V){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=K+yt,V={id:v++,callback:Z,priorityLevel:V,startTime:K,expirationTime:yt,sortIndex:-1},K>ot?(V.sortIndex=K,l(p,V),u(g)===null&&V===u(p)&&(B?(Y(I),I=-1):B=!0,jt(J,K-ot))):(V.sortIndex=yt,l(g,V),R||M||(R=!0,lt||(lt=!0,vt()))),V},i.unstable_shouldYield=tt,i.unstable_wrapCallback=function(V){var Z=b;return function(){var K=b;b=Z;try{return V.apply(this,arguments)}finally{b=K}}}})(Lr)),Lr}var rp;function k1(){return rp||(rp=1,jr.exports=J1()),jr.exports}var Hr={exports:{}},le={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cp;function F1(){if(cp)return le;cp=1;var i=Dc();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(l(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,p,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:g,containerInfo:p,implementation:v}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return le.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,le.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return d(g,p,null,v)},le.flushSync=function(g){var p=h.T,v=o.p;try{if(h.T=null,o.p=2,g)return g()}finally{h.T=p,o.p=v,o.d.f()}},le.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(g,p))},le.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},le.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,S=m(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?o.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:M}):v==="script"&&o.d.X(g,{crossOrigin:S,integrity:b,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},le.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(g)},le.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,S=m(v,p.crossOrigin);o.d.L(g,v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},le.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);o.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(g)},le.requestFormReset=function(g){o.d.r(g)},le.unstable_batchedUpdates=function(g,p){return g(p)},le.useFormState=function(g,p,v){return h.H.useFormState(g,p,v)},le.useFormStatus=function(){return h.H.useHostTransitionStatus()},le.version="19.2.4",le}var fp;function W1(){if(fp)return Hr.exports;fp=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(),Hr.exports=F1(),Hr.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hp;function P1(){if(hp)return rl;hp=1;var i=k1(),l=Dc(),u=W1();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(d(t)!==t)throw Error(o(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,a=e;;){var s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return g(s),t;if(r===a)return g(s),e;r=r.sibling}throw Error(o(188))}if(n.return!==a.return)n=s,a=r;else{for(var f=!1,y=s.child;y;){if(y===n){f=!0,n=s,a=r;break}if(y===a){f=!0,a=s,n=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===n){f=!0,n=r,a=s;break}if(y===a){f=!0,a=r,n=s;break}y=y.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var S=Object.assign,b=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),H=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),it=Symbol.for("react.activity"),tt=Symbol.for("react.memo_cache_sentinel"),pt=Symbol.iterator;function vt(t){return t===null||typeof t!="object"?null:(t=pt&&t[pt]||t["@@iterator"],typeof t=="function"?t:null)}var Pt=Symbol.for("react.client.reference");function Yt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Pt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case B:return"Fragment";case L:return"Profiler";case j:return"StrictMode";case J:return"Suspense";case lt:return"SuspenseList";case it:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case R:return"Portal";case H:return t.displayName||"Context";case Y:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case I:return e=t.displayName||null,e!==null?e:Yt(t.type)||"Memo";case $:e=t._payload,t=t._init;try{return Yt(t(e))}catch{}}return null}var jt=Array.isArray,V=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ot=[],yt=-1;function A(t){return{current:t}}function U(t){0>yt||(t.current=ot[yt],ot[yt]=null,yt--)}function Q(t,e){yt++,ot[yt]=t.current,t.current=e}var W=A(null),st=A(null),ct=A(null),xt=A(null);function se(t,e){switch(Q(ct,e),Q(st,t),Q(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Cm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Cm(e),t=zm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(W),Q(W,t)}function Lt(){U(W),U(st),U(ct)}function pa(t){t.memoizedState!==null&&Q(xt,t);var e=W.current,n=zm(e,t.type);e!==n&&(Q(st,t),Q(W,n))}function El(t){st.current===t&&(U(W),U(st)),xt.current===t&&(U(xt),al._currentValue=K)}var pu,nf;function Wn(t){if(pu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);pu=e&&e[1]||"",nf=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+pu+t+nf}var yu=!1;function gu(t,e){if(!t||yu)return"";yu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(O){var z=O}Reflect.construct(t,[],w)}else{try{w.call()}catch(O){z=O}t.call(w.prototype)}}else{try{throw Error()}catch(O){z=O}(w=t())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(O){if(O&&z&&typeof O.stack=="string")return[O.stack,z.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 T=f.split(`
`),C=y.split(`
`);for(s=a=0;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;for(;s<C.length&&!C[s].includes("DetermineComponentFrameRoot");)s++;if(a===T.length||s===C.length)for(a=T.length-1,s=C.length-1;1<=a&&0<=s&&T[a]!==C[s];)s--;for(;1<=a&&0<=s;a--,s--)if(T[a]!==C[s]){if(a!==1||s!==1)do if(a--,s--,0>s||T[a]!==C[s]){var _=`
`+T[a].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=a&&0<=s);break}}}finally{yu=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Wn(n):""}function T0(t,e){switch(t.tag){case 26:case 27:case 5:return Wn(t.type);case 16:return Wn("Lazy");case 13:return t.child!==e&&e!==null?Wn("Suspense Fallback"):Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 15:return gu(t.type,!1);case 11:return gu(t.type.render,!1);case 1:return gu(t.type,!0);case 31:return Wn("Activity");default:return""}}function af(t){try{var e="",n=null;do e+=T0(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var vu=Object.prototype.hasOwnProperty,Su=i.unstable_scheduleCallback,bu=i.unstable_cancelCallback,x0=i.unstable_shouldYield,A0=i.unstable_requestPaint,ge=i.unstable_now,E0=i.unstable_getCurrentPriorityLevel,lf=i.unstable_ImmediatePriority,sf=i.unstable_UserBlockingPriority,Ml=i.unstable_NormalPriority,M0=i.unstable_LowPriority,uf=i.unstable_IdlePriority,D0=i.log,C0=i.unstable_setDisableYieldValue,ya=null,ve=null;function Sn(t){if(typeof D0=="function"&&C0(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(ya,t)}catch{}}var Se=Math.clz32?Math.clz32:O0,z0=Math.log,R0=Math.LN2;function O0(t){return t>>>=0,t===0?32:31-(z0(t)/R0|0)|0}var Dl=256,Cl=262144,zl=4194304;function Pn(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 Rl(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=Pn(a):(f&=y,f!==0?s=Pn(f):n||(n=y&~t,n!==0&&(s=Pn(n))))):(y=a&~r,y!==0?s=Pn(y):f!==0?s=Pn(f):n||(n=a&~t,n!==0&&(s=Pn(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 ga(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function V0(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 of(){var t=zl;return zl<<=1,(zl&62914560)===0&&(zl=4194304),t}function Tu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function va(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function _0(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,T=t.expirationTimes,C=t.hiddenUpdates;for(n=f&~n;0<n;){var _=31-Se(n),w=1<<_;y[_]=0,T[_]=-1;var z=C[_];if(z!==null)for(C[_]=null,_=0;_<z.length;_++){var O=z[_];O!==null&&(O.lane&=-536870913)}n&=~w}a!==0&&rf(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function rf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Se(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function cf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-Se(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function ff(t,e){var n=e&-e;return n=(n&42)!==0?1:xu(n),(n&(t.suspendedLanes|e))!==0?0:n}function xu(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 Au(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function hf(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:Pm(t.type))}function df(t,e){var n=Z.p;try{return Z.p=t,e()}finally{Z.p=n}}var bn=Math.random().toString(36).slice(2),$t="__reactFiber$"+bn,ce="__reactProps$"+bn,xi="__reactContainer$"+bn,Eu="__reactEvents$"+bn,N0="__reactListeners$"+bn,w0="__reactHandles$"+bn,mf="__reactResources$"+bn,Sa="__reactMarker$"+bn;function Mu(t){delete t[$t],delete t[ce],delete t[Eu],delete t[N0],delete t[w0]}function Ai(t){var e=t[$t];if(e)return e;for(var n=t.parentNode;n;){if(e=n[xi]||n[$t]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Um(t);t!==null;){if(n=t[$t])return n;t=Um(t)}return e}t=n,n=t.parentNode}return null}function Ei(t){if(t=t[$t]||t[xi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ba(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Mi(t){var e=t[mf];return e||(e=t[mf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Sa]=!0}var pf=new Set,yf={};function $n(t,e){Di(t,e),Di(t+"Capture",e)}function Di(t,e){for(yf[t]=e,t=0;t<e.length;t++)pf.add(e[t])}var U0=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]*$"),gf={},vf={};function B0(t){return vu.call(vf,t)?!0:vu.call(gf,t)?!1:U0.test(t)?vf[t]=!0:(gf[t]=!0,!1)}function Ol(t,e,n){if(B0(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 Vl(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function tn(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function ze(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Sf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function j0(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 Du(t){if(!t._valueTracker){var e=Sf(t)?"checked":"value";t._valueTracker=j0(t,e,""+t[e])}}function bf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Sf(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function _l(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 L0=/[\n"\\]/g;function Re(t){return t.replace(L0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Cu(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=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?zu(t,f,ze(e)):n!=null?zu(t,f,ze(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=""+ze(y):t.removeAttribute("name")}function Tf(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)){Du(t);return}n=n!=null?""+ze(n):"",e=e!=null?""+ze(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),Du(t)}function zu(t,e,n){e==="number"&&_l(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ci(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=""+ze(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 xf(t,e,n){if(e!=null&&(e=""+ze(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+ze(n):""}function Af(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(jt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=ze(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Du(t)}function zi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var H0=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 Ef(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||H0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Mf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var s in e)a=e[s],e.hasOwnProperty(s)&&n[s]!==a&&Ef(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&Ef(t,r,e[r])}function Ru(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 q0=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"]]),Y0=/^[\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 Nl(t){return Y0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function en(){}var Ou=null;function Vu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ri=null,Oi=null;function Df(t){var e=Ei(t);if(e&&(t=e.stateNode)){var n=t[ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(Cu(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="'+Re(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[ce]||null;if(!s)throw Error(o(90));Cu(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&&bf(a)}break t;case"textarea":xf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ci(t,!!n.multiple,e,!1)}}}var _u=!1;function Cf(t,e,n){if(_u)return t(e,n);_u=!0;try{var a=t(e);return a}finally{if(_u=!1,(Ri!==null||Oi!==null)&&(bs(),Ri&&(e=Ri,t=Oi,Oi=Ri=null,Df(e),t)))for(e=0;e<t.length;e++)Df(t[e])}}function Ta(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ce]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nu=!1;if(nn)try{var xa={};Object.defineProperty(xa,"passive",{get:function(){Nu=!0}}),window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{Nu=!1}var Tn=null,wu=null,wl=null;function zf(){if(wl)return wl;var t,e=wu,n=e.length,a,s="value"in Tn?Tn.value:Tn.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 wl=s.slice(t,1<a?1-a:void 0)}function Ul(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 Bl(){return!0}function Rf(){return!1}function fe(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)?Bl:Rf,this.isPropagationStopped=Rf,this}return S(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=Bl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),e}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jl=fe(In),Aa=S({},In,{view:0,detail:0}),G0=fe(Aa),Uu,Bu,Ea,Ll=S({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lu,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!==Ea&&(Ea&&t.type==="mousemove"?(Uu=t.screenX-Ea.screenX,Bu=t.screenY-Ea.screenY):Bu=Uu=0,Ea=t),Uu)},movementY:function(t){return"movementY"in t?t.movementY:Bu}}),Of=fe(Ll),X0=S({},Ll,{dataTransfer:0}),Z0=fe(X0),Q0=S({},Aa,{relatedTarget:0}),ju=fe(Q0),K0=S({},In,{animationName:0,elapsedTime:0,pseudoElement:0}),J0=fe(K0),k0=S({},In,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),F0=fe(k0),W0=S({},In,{data:0}),Vf=fe(W0),P0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$0={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"},I0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=I0[t])?!!e[t]:!1}function Lu(){return tv}var ev=S({},Aa,{key:function(t){if(t.key){var e=P0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ul(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lu,charCode:function(t){return t.type==="keypress"?Ul(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ul(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),nv=fe(ev),iv=S({},Ll,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_f=fe(iv),av=S({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lu}),lv=fe(av),sv=S({},In,{propertyName:0,elapsedTime:0,pseudoElement:0}),uv=fe(sv),ov=S({},Ll,{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}),rv=fe(ov),cv=S({},In,{newState:0,oldState:0}),fv=fe(cv),hv=[9,13,27,32],Hu=nn&&"CompositionEvent"in window,Ma=null;nn&&"documentMode"in document&&(Ma=document.documentMode);var dv=nn&&"TextEvent"in window&&!Ma,Nf=nn&&(!Hu||Ma&&8<Ma&&11>=Ma),wf=" ",Uf=!1;function Bf(t,e){switch(t){case"keyup":return hv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vi=!1;function mv(t,e){switch(t){case"compositionend":return jf(e);case"keypress":return e.which!==32?null:(Uf=!0,wf);case"textInput":return t=e.data,t===wf&&Uf?null:t;default:return null}}function pv(t,e){if(Vi)return t==="compositionend"||!Hu&&Bf(t,e)?(t=zf(),wl=wu=Tn=null,Vi=!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 Nf&&e.locale!=="ko"?null:e.data;default:return null}}var yv={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 Lf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!yv[t.type]:e==="textarea"}function Hf(t,e,n,a){Ri?Oi?Oi.push(a):Oi=[a]:Ri=a,e=Cs(e,"onChange"),0<e.length&&(n=new jl("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Da=null,Ca=null;function gv(t){Tm(t,0)}function Hl(t){var e=ba(t);if(bf(e))return t}function qf(t,e){if(t==="change")return e}var Yf=!1;if(nn){var qu;if(nn){var Yu="oninput"in document;if(!Yu){var Gf=document.createElement("div");Gf.setAttribute("oninput","return;"),Yu=typeof Gf.oninput=="function"}qu=Yu}else qu=!1;Yf=qu&&(!document.documentMode||9<document.documentMode)}function Xf(){Da&&(Da.detachEvent("onpropertychange",Zf),Ca=Da=null)}function Zf(t){if(t.propertyName==="value"&&Hl(Ca)){var e=[];Hf(e,Ca,t,Vu(t)),Cf(gv,e)}}function vv(t,e,n){t==="focusin"?(Xf(),Da=e,Ca=n,Da.attachEvent("onpropertychange",Zf)):t==="focusout"&&Xf()}function Sv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Hl(Ca)}function bv(t,e){if(t==="click")return Hl(e)}function Tv(t,e){if(t==="input"||t==="change")return Hl(e)}function xv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:xv;function za(t,e){if(be(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(!vu.call(e,s)||!be(t[s],e[s]))return!1}return!0}function Qf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Kf(t,e){var n=Qf(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=Qf(n)}}function Jf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Jf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function kf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=_l(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=_l(t.document)}return e}function Gu(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 Av=nn&&"documentMode"in document&&11>=document.documentMode,_i=null,Xu=null,Ra=null,Zu=!1;function Ff(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zu||_i==null||_i!==_l(a)||(a=_i,"selectionStart"in a&&Gu(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}),Ra&&za(Ra,a)||(Ra=a,a=Cs(Xu,"onSelect"),0<a.length&&(e=new jl("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=_i)))}function ti(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ni={animationend:ti("Animation","AnimationEnd"),animationiteration:ti("Animation","AnimationIteration"),animationstart:ti("Animation","AnimationStart"),transitionrun:ti("Transition","TransitionRun"),transitionstart:ti("Transition","TransitionStart"),transitioncancel:ti("Transition","TransitionCancel"),transitionend:ti("Transition","TransitionEnd")},Qu={},Wf={};nn&&(Wf=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 ei(t){if(Qu[t])return Qu[t];if(!Ni[t])return t;var e=Ni[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Wf)return Qu[t]=e[n];return t}var Pf=ei("animationend"),$f=ei("animationiteration"),If=ei("animationstart"),Ev=ei("transitionrun"),Mv=ei("transitionstart"),Dv=ei("transitioncancel"),th=ei("transitionend"),eh=new Map,Ku="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(" ");Ku.push("scrollEnd");function qe(t,e){eh.set(t,e),$n(e,[t])}var ql=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)},Oe=[],wi=0,Ju=0;function Yl(){for(var t=wi,e=Ju=wi=0;e<t;){var n=Oe[e];Oe[e++]=null;var a=Oe[e];Oe[e++]=null;var s=Oe[e];Oe[e++]=null;var r=Oe[e];if(Oe[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&&nh(n,s,r)}}function Gl(t,e,n,a){Oe[wi++]=t,Oe[wi++]=e,Oe[wi++]=n,Oe[wi++]=a,Ju|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function ku(t,e,n,a){return Gl(t,e,n,a),Xl(t)}function ni(t,e){return Gl(t,null,null,e),Xl(t)}function nh(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-Se(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function Xl(t){if(50<Pa)throw Pa=0,ar=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ui={};function Cv(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 Te(t,e,n,a){return new Cv(t,e,n,a)}function Fu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function an(t,e){var n=t.alternate;return n===null?(n=Te(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 ih(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 Zl(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")Fu(t)&&(f=1);else if(typeof t=="string")f=_1(t,n,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case it:return t=Te(31,n,e,s),t.elementType=it,t.lanes=r,t;case B:return ii(n.children,s,r,e);case j:f=8,s|=24;break;case L:return t=Te(12,n,e,s|2),t.elementType=L,t.lanes=r,t;case J:return t=Te(13,n,e,s),t.elementType=J,t.lanes=r,t;case lt:return t=Te(19,n,e,s),t.elementType=lt,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:f=10;break t;case Y:f=9;break t;case G:f=11;break t;case I:f=14;break t;case $:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=Te(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function ii(t,e,n,a){return t=Te(7,t,a,e),t.lanes=n,t}function Wu(t,e,n){return t=Te(6,t,null,e),t.lanes=n,t}function ah(t){var e=Te(18,null,null,0);return e.stateNode=t,e}function Pu(t,e,n){return e=Te(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var lh=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var n=lh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:af(e)},lh.set(t,e),e)}return{value:t,source:e,stack:af(e)}}var Bi=[],ji=0,Ql=null,Oa=0,_e=[],Ne=0,xn=null,Ke=1,Je="";function ln(t,e){Bi[ji++]=Oa,Bi[ji++]=Ql,Ql=t,Oa=e}function sh(t,e,n){_e[Ne++]=Ke,_e[Ne++]=Je,_e[Ne++]=xn,xn=t;var a=Ke;t=Je;var s=32-Se(a)-1;a&=~(1<<s),n+=1;var r=32-Se(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,Ke=1<<32-Se(e)+s|n<<s|a,Je=r+t}else Ke=1<<r|n<<s|a,Je=t}function $u(t){t.return!==null&&(ln(t,1),sh(t,1,0))}function Iu(t){for(;t===Ql;)Ql=Bi[--ji],Bi[ji]=null,Oa=Bi[--ji],Bi[ji]=null;for(;t===xn;)xn=_e[--Ne],_e[Ne]=null,Je=_e[--Ne],_e[Ne]=null,Ke=_e[--Ne],_e[Ne]=null}function uh(t,e){_e[Ne++]=Ke,_e[Ne++]=Je,_e[Ne++]=xn,Ke=e.id,Je=e.overflow,xn=t}var It=null,Ot=null,gt=!1,An=null,we=!1,to=Error(o(519));function En(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(Ve(e,t)),to}function oh(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[$t]=t,e[ce]=a,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<Ia.length;n++)ht(Ia[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),Tf(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),Af(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||Mm(e.textContent,n)?(a.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),a.onScroll!=null&&ht("scroll",e),a.onScrollEnd!=null&&ht("scrollend",e),a.onClick!=null&&(e.onclick=en),e=!0):e=!1,e||En(t,!0)}function rh(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:we=!1;return;case 27:case 3:we=!0;return;default:It=It.return}}function Li(t){if(t!==It)return!1;if(!gt)return rh(t),gt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Sr(t.type,t.memoizedProps)),n=!n),n&&Ot&&En(t),rh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ot=wm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ot=wm(t)}else e===27?(e=Ot,Ln(t.type)?(t=Er,Er=null,Ot=t):Ot=e):Ot=It?Be(t.stateNode.nextSibling):null;return!0}function ai(){Ot=It=null,gt=!1}function eo(){var t=An;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),An=null),t}function Va(t){An===null?An=[t]:An.push(t)}var no=A(null),li=null,sn=null;function Mn(t,e,n){Q(no,e._currentValue),e._currentValue=n}function un(t){t._currentValue=no.current,U(no)}function io(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 ao(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 T=0;T<e.length;T++)if(y.context===e[T]){r.lanes|=n,y=r.alternate,y!==null&&(y.lanes|=n),io(r.return,n,t),a||(f=null);break t}r=y.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(o(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),io(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function Hi(t,e,n,a){t=null;for(var s=e,r=!1;s!==null;){if(!r){if((s.flags&524288)!==0)r=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var y=s.type;be(s.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(s===xt.current){if(f=s.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(al):t=[al])}s=s.return}t!==null&&ao(e,t,n,a),e.flags|=262144}function Kl(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function si(t){li=t,sn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function te(t){return ch(li,t)}function Jl(t,e){return li===null&&si(t),ch(t,e)}function ch(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},sn===null){if(t===null)throw Error(o(308));sn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else sn=sn.next=e;return n}var zv=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()})}},Rv=i.unstable_scheduleCallback,Ov=i.unstable_NormalPriority,Gt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lo(){return{controller:new zv,data:new Map,refCount:0}}function _a(t){t.refCount--,t.refCount===0&&Rv(Ov,function(){t.controller.abort()})}var Na=null,so=0,qi=0,Yi=null;function Vv(t,e){if(Na===null){var n=Na=[];so=0,qi=cr(),Yi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return so++,e.then(fh,fh),e}function fh(){if(--so===0&&Na!==null){Yi!==null&&(Yi.status="fulfilled");var t=Na;Na=null,qi=0,Yi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _v(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var hh=V.S;V.S=function(t,e){Fd=ge(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Vv(t,e),hh!==null&&hh(t,e)};var ui=A(null);function uo(){var t=ui.current;return t!==null?t:zt.pooledCache}function kl(t,e){e===null?Q(ui,ui.current):Q(ui,e.pool)}function dh(){var t=uo();return t===null?null:{parent:Gt._currentValue,pool:t}}var Gi=Error(o(460)),oo=Error(o(474)),Fl=Error(o(542)),Wl={then:function(){}};function mh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ph(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(en,en),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,gh(t),t;default:if(typeof e.status=="string")e.then(en,en);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=a}},function(a){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,gh(t),t}throw ri=e,Gi}}function oi(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ri=n,Gi):n}}var ri=null;function yh(){if(ri===null)throw Error(o(459));var t=ri;return ri=null,t}function gh(t){if(t===Gi||t===Fl)throw Error(o(483))}var Xi=null,wa=0;function Pl(t){var e=wa;return wa+=1,Xi===null&&(Xi=[]),ph(Xi,t,e)}function Ua(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function $l(t,e){throw e.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function vh(t){function e(E,x){if(t){var D=E.deletions;D===null?(E.deletions=[x],E.flags|=16):D.push(x)}}function n(E,x){if(!t)return null;for(;x!==null;)e(E,x),x=x.sibling;return null}function a(E){for(var x=new Map;E!==null;)E.key!==null?x.set(E.key,E):x.set(E.index,E),E=E.sibling;return x}function s(E,x){return E=an(E,x),E.index=0,E.sibling=null,E}function r(E,x,D){return E.index=D,t?(D=E.alternate,D!==null?(D=D.index,D<x?(E.flags|=67108866,x):D):(E.flags|=67108866,x)):(E.flags|=1048576,x)}function f(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function y(E,x,D,N){return x===null||x.tag!==6?(x=Wu(D,E.mode,N),x.return=E,x):(x=s(x,D),x.return=E,x)}function T(E,x,D,N){var et=D.type;return et===B?_(E,x,D.props.children,N,D.key):x!==null&&(x.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===$&&oi(et)===x.type)?(x=s(x,D.props),Ua(x,D),x.return=E,x):(x=Zl(D.type,D.key,D.props,null,E.mode,N),Ua(x,D),x.return=E,x)}function C(E,x,D,N){return x===null||x.tag!==4||x.stateNode.containerInfo!==D.containerInfo||x.stateNode.implementation!==D.implementation?(x=Pu(D,E.mode,N),x.return=E,x):(x=s(x,D.children||[]),x.return=E,x)}function _(E,x,D,N,et){return x===null||x.tag!==7?(x=ii(D,E.mode,N,et),x.return=E,x):(x=s(x,D),x.return=E,x)}function w(E,x,D){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=Wu(""+x,E.mode,D),x.return=E,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case M:return D=Zl(x.type,x.key,x.props,null,E.mode,D),Ua(D,x),D.return=E,D;case R:return x=Pu(x,E.mode,D),x.return=E,x;case $:return x=oi(x),w(E,x,D)}if(jt(x)||vt(x))return x=ii(x,E.mode,D,null),x.return=E,x;if(typeof x.then=="function")return w(E,Pl(x),D);if(x.$$typeof===H)return w(E,Jl(E,x),D);$l(E,x)}return null}function z(E,x,D,N){var et=x!==null?x.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return et!==null?null:y(E,x,""+D,N);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case M:return D.key===et?T(E,x,D,N):null;case R:return D.key===et?C(E,x,D,N):null;case $:return D=oi(D),z(E,x,D,N)}if(jt(D)||vt(D))return et!==null?null:_(E,x,D,N,null);if(typeof D.then=="function")return z(E,x,Pl(D),N);if(D.$$typeof===H)return z(E,x,Jl(E,D),N);$l(E,D)}return null}function O(E,x,D,N,et){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return E=E.get(D)||null,y(x,E,""+N,et);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case M:return E=E.get(N.key===null?D:N.key)||null,T(x,E,N,et);case R:return E=E.get(N.key===null?D:N.key)||null,C(x,E,N,et);case $:return N=oi(N),O(E,x,D,N,et)}if(jt(N)||vt(N))return E=E.get(D)||null,_(x,E,N,et,null);if(typeof N.then=="function")return O(E,x,D,Pl(N),et);if(N.$$typeof===H)return O(E,x,D,Jl(x,N),et);$l(x,N)}return null}function k(E,x,D,N){for(var et=null,St=null,P=x,rt=x=0,mt=null;P!==null&&rt<D.length;rt++){P.index>rt?(mt=P,P=null):mt=P.sibling;var bt=z(E,P,D[rt],N);if(bt===null){P===null&&(P=mt);break}t&&P&&bt.alternate===null&&e(E,P),x=r(bt,x,rt),St===null?et=bt:St.sibling=bt,St=bt,P=mt}if(rt===D.length)return n(E,P),gt&&ln(E,rt),et;if(P===null){for(;rt<D.length;rt++)P=w(E,D[rt],N),P!==null&&(x=r(P,x,rt),St===null?et=P:St.sibling=P,St=P);return gt&&ln(E,rt),et}for(P=a(P);rt<D.length;rt++)mt=O(P,E,rt,D[rt],N),mt!==null&&(t&&mt.alternate!==null&&P.delete(mt.key===null?rt:mt.key),x=r(mt,x,rt),St===null?et=mt:St.sibling=mt,St=mt);return t&&P.forEach(function(Xn){return e(E,Xn)}),gt&&ln(E,rt),et}function nt(E,x,D,N){if(D==null)throw Error(o(151));for(var et=null,St=null,P=x,rt=x=0,mt=null,bt=D.next();P!==null&&!bt.done;rt++,bt=D.next()){P.index>rt?(mt=P,P=null):mt=P.sibling;var Xn=z(E,P,bt.value,N);if(Xn===null){P===null&&(P=mt);break}t&&P&&Xn.alternate===null&&e(E,P),x=r(Xn,x,rt),St===null?et=Xn:St.sibling=Xn,St=Xn,P=mt}if(bt.done)return n(E,P),gt&&ln(E,rt),et;if(P===null){for(;!bt.done;rt++,bt=D.next())bt=w(E,bt.value,N),bt!==null&&(x=r(bt,x,rt),St===null?et=bt:St.sibling=bt,St=bt);return gt&&ln(E,rt),et}for(P=a(P);!bt.done;rt++,bt=D.next())bt=O(P,E,rt,bt.value,N),bt!==null&&(t&&bt.alternate!==null&&P.delete(bt.key===null?rt:bt.key),x=r(bt,x,rt),St===null?et=bt:St.sibling=bt,St=bt);return t&&P.forEach(function(X1){return e(E,X1)}),gt&&ln(E,rt),et}function Ct(E,x,D,N){if(typeof D=="object"&&D!==null&&D.type===B&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case M:t:{for(var et=D.key;x!==null;){if(x.key===et){if(et=D.type,et===B){if(x.tag===7){n(E,x.sibling),N=s(x,D.props.children),N.return=E,E=N;break t}}else if(x.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===$&&oi(et)===x.type){n(E,x.sibling),N=s(x,D.props),Ua(N,D),N.return=E,E=N;break t}n(E,x);break}else e(E,x);x=x.sibling}D.type===B?(N=ii(D.props.children,E.mode,N,D.key),N.return=E,E=N):(N=Zl(D.type,D.key,D.props,null,E.mode,N),Ua(N,D),N.return=E,E=N)}return f(E);case R:t:{for(et=D.key;x!==null;){if(x.key===et)if(x.tag===4&&x.stateNode.containerInfo===D.containerInfo&&x.stateNode.implementation===D.implementation){n(E,x.sibling),N=s(x,D.children||[]),N.return=E,E=N;break t}else{n(E,x);break}else e(E,x);x=x.sibling}N=Pu(D,E.mode,N),N.return=E,E=N}return f(E);case $:return D=oi(D),Ct(E,x,D,N)}if(jt(D))return k(E,x,D,N);if(vt(D)){if(et=vt(D),typeof et!="function")throw Error(o(150));return D=et.call(D),nt(E,x,D,N)}if(typeof D.then=="function")return Ct(E,x,Pl(D),N);if(D.$$typeof===H)return Ct(E,x,Jl(E,D),N);$l(E,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,x!==null&&x.tag===6?(n(E,x.sibling),N=s(x,D),N.return=E,E=N):(n(E,x),N=Wu(D,E.mode,N),N.return=E,E=N),f(E)):n(E,x)}return function(E,x,D,N){try{wa=0;var et=Ct(E,x,D,N);return Xi=null,et}catch(P){if(P===Gi||P===Fl)throw P;var St=Te(29,P,null,E.mode);return St.lanes=N,St.return=E,St}finally{}}}var ci=vh(!0),Sh=vh(!1),Dn=!1;function ro(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function co(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 Cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function zn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Tt&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=Xl(t),nh(t,null,n),e}return Gl(t,a,e,n),Xl(t)}function Ba(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,cf(t,n)}}function fo(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 ho=!1;function ja(){if(ho){var t=Yi;if(t!==null)throw t}}function La(t,e,n,a){ho=!1;var s=t.updateQueue;Dn=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var T=y,C=T.next;T.next=null,f===null?r=C:f.next=C,f=T;var _=t.alternate;_!==null&&(_=_.updateQueue,y=_.lastBaseUpdate,y!==f&&(y===null?_.firstBaseUpdate=C:y.next=C,_.lastBaseUpdate=T))}if(r!==null){var w=s.baseState;f=0,_=C=T=null,y=r;do{var z=y.lane&-536870913,O=z!==y.lane;if(O?(dt&z)===z:(a&z)===z){z!==0&&z===qi&&(ho=!0),_!==null&&(_=_.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var k=t,nt=y;z=e;var Ct=n;switch(nt.tag){case 1:if(k=nt.payload,typeof k=="function"){w=k.call(Ct,w,z);break t}w=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=nt.payload,z=typeof k=="function"?k.call(Ct,w,z):k,z==null)break t;w=S({},w,z);break t;case 2:Dn=!0}}z=y.callback,z!==null&&(t.flags|=64,O&&(t.flags|=8192),O=s.callbacks,O===null?s.callbacks=[z]:O.push(z))}else O={lane:z,tag:y.tag,payload:y.payload,callback:y.callback,next:null},_===null?(C=_=O,T=w):_=_.next=O,f|=z;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&&(T=w),s.baseState=T,s.firstBaseUpdate=C,s.lastBaseUpdate=_,r===null&&(s.shared.lanes=0),Nn|=f,t.lanes=f,t.memoizedState=w}}function bh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Th(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)bh(n[t],e)}var Zi=A(null),Il=A(0);function xh(t,e){t=yn,Q(Il,t),Q(Zi,e),yn=t|e.baseLanes}function mo(){Q(Il,yn),Q(Zi,Zi.current)}function po(){yn=Il.current,U(Zi),U(Il)}var xe=A(null),Ue=null;function Rn(t){var e=t.alternate;Q(Ht,Ht.current&1),Q(xe,t),Ue===null&&(e===null||Zi.current!==null||e.memoizedState!==null)&&(Ue=t)}function yo(t){Q(Ht,Ht.current),Q(xe,t),Ue===null&&(Ue=t)}function Ah(t){t.tag===22?(Q(Ht,Ht.current),Q(xe,t),Ue===null&&(Ue=t)):On()}function On(){Q(Ht,Ht.current),Q(xe,xe.current)}function Ae(t){U(xe),Ue===t&&(Ue=null),U(Ht)}var Ht=A(0);function ts(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||xr(n)||Ar(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 on=0,ut=null,Mt=null,Xt=null,es=!1,Qi=!1,fi=!1,ns=0,Ha=0,Ki=null,Nv=0;function wt(){throw Error(o(321))}function go(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!be(t[n],e[n]))return!1;return!0}function vo(t,e,n,a,s,r){return on=r,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,V.H=t===null||t.memoizedState===null?sd:No,fi=!1,r=n(a,s),fi=!1,Qi&&(r=Mh(e,n,a,s)),Eh(t),r}function Eh(t){V.H=Ga;var e=Mt!==null&&Mt.next!==null;if(on=0,Xt=Mt=ut=null,es=!1,Ha=0,Ki=null,e)throw Error(o(300));t===null||Zt||(t=t.dependencies,t!==null&&Kl(t)&&(Zt=!0))}function Mh(t,e,n,a){ut=t;var s=0;do{if(Qi&&(Ki=null),Ha=0,Qi=!1,25<=s)throw Error(o(301));if(s+=1,Xt=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)}V.H=ud,r=e(n,a)}while(Qi);return r}function wv(){var t=V.H,e=t.useState()[0];return e=typeof e.then=="function"?qa(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ut.flags|=1024),e}function So(){var t=ns!==0;return ns=0,t}function bo(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function To(t){if(es){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}es=!1}on=0,Xt=Mt=ut=null,Qi=!1,Ha=ns=0,Ki=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function qt(){if(Mt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Xt===null?ut.memoizedState:Xt.next;if(e!==null)Xt=e,Mt=t;else{if(t===null)throw ut.alternate===null?Error(o(467)):Error(o(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function is(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qa(t){var e=Ha;return Ha+=1,Ki===null&&(Ki=[]),t=ph(Ki,t,e),e=ut,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,V.H=e===null||e.memoizedState===null?sd:No),t}function as(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return qa(t);if(t.$$typeof===H)return te(t)}throw Error(o(438,String(t)))}function xo(t){var e=null,n=ut.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ut.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=is(),ut.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=tt;return e.index++,n}function rn(t,e){return typeof e=="function"?e(t):e}function ls(t){var e=qt();return Ao(e,Mt,t)}function Ao(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var s=t.baseQueue,r=a.pending;if(r!==null){if(s!==null){var f=s.next;s.next=r.next,r.next=f}e.baseQueue=s=r,a.pending=null}if(r=t.baseState,s===null)t.memoizedState=r;else{e=s.next;var y=f=null,T=null,C=e,_=!1;do{var w=C.lane&-536870913;if(w!==C.lane?(dt&w)===w:(on&w)===w){var z=C.revertLane;if(z===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),w===qi&&(_=!0);else if((on&z)===z){C=C.next,z===qi&&(_=!0);continue}else w={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},T===null?(y=T=w,f=r):T=T.next=w,ut.lanes|=z,Nn|=z;w=C.action,fi&&n(r,w),r=C.hasEagerState?C.eagerState:n(r,w)}else z={lane:w,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},T===null?(y=T=z,f=r):T=T.next=z,ut.lanes|=w,Nn|=w;C=C.next}while(C!==null&&C!==e);if(T===null?f=r:T.next=y,!be(r,t.memoizedState)&&(Zt=!0,_&&(n=Yi,n!==null)))throw n;t.memoizedState=r,t.baseState=f,t.baseQueue=T,a.lastRenderedState=r}return s===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Eo(t){var e=qt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,s=n.pending,r=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do r=t(r,f.action),f=f.next;while(f!==s);be(r,e.memoizedState)||(Zt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function Dh(t,e,n){var a=ut,s=qt(),r=gt;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!be((Mt||s).memoizedState,n);if(f&&(s.memoizedState=n,Zt=!0),s=s.queue,Co(Rh.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Xt!==null&&Xt.memoizedState.tag&1){if(a.flags|=2048,Ji(9,{destroy:void 0},zh.bind(null,a,s,n,e),null),zt===null)throw Error(o(349));r||(on&127)!==0||Ch(a,e,n)}return n}function Ch(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ut.updateQueue,e===null?(e=is(),ut.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function zh(t,e,n,a){e.value=n,e.getSnapshot=a,Oh(e)&&Vh(t)}function Rh(t,e,n){return n(function(){Oh(e)&&Vh(t)})}function Oh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!be(t,n)}catch{return!0}}function Vh(t){var e=ni(t,2);e!==null&&ye(e,t,2)}function Mo(t){var e=ue();if(typeof t=="function"){var n=t;if(t=n(),fi){Sn(!0);try{n()}finally{Sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:t},e}function _h(t,e,n,a){return t.baseState=n,Ao(t,Mt,typeof a=="function"?a:rn)}function Uv(t,e,n,a,s){if(os(t))throw Error(o(485));if(t=e.action,t!==null){var r={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};V.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,Nh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Nh(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=V.T,f={};V.T=f;try{var y=n(s,a),T=V.S;T!==null&&T(f,y),wh(t,e,y)}catch(C){Do(t,e,C)}finally{r!==null&&f.types!==null&&(r.types=f.types),V.T=r}}else try{r=n(s,a),wh(t,e,r)}catch(C){Do(t,e,C)}}function wh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Uh(t,e,a)},function(a){return Do(t,e,a)}):Uh(t,e,n)}function Uh(t,e,n){e.status="fulfilled",e.value=n,Bh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Nh(t,n)))}function Do(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,Bh(e),e=e.next;while(e!==a)}t.action=null}function Bh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function jh(t,e){return e}function Lh(t,e){if(gt){var n=zt.formState;if(n!==null){t:{var a=ut;if(gt){if(Ot){e:{for(var s=Ot,r=we;s.nodeType!==8;){if(!r){s=null;break e}if(s=Be(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Ot=Be(s.nextSibling),a=s.data==="F!";break t}}En(a)}a=!1}a&&(e=n[0])}}return n=ue(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jh,lastRenderedState:e},n.queue=a,n=id.bind(null,ut,a),a.dispatch=n,a=Mo(!1),r=_o.bind(null,ut,!1,a.queue),a=ue(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=Uv.bind(null,ut,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function Hh(t){var e=qt();return qh(e,Mt,t)}function qh(t,e,n){if(e=Ao(t,e,jh)[0],t=ls(rn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=qa(e)}catch(f){throw f===Gi?Fl:f}else a=e;e=qt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(ut.flags|=2048,Ji(9,{destroy:void 0},Bv.bind(null,s,n),null)),[a,r,t]}function Bv(t,e){t.action=e}function Yh(t){var e=qt(),n=Mt;if(n!==null)return qh(e,n,t);qt(),e=e.memoizedState,n=qt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Ji(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ut.updateQueue,e===null&&(e=is(),ut.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 Gh(){return qt().memoizedState}function ss(t,e,n,a){var s=ue();ut.flags|=t,s.memoizedState=Ji(1|e,{destroy:void 0},n,a===void 0?null:a)}function us(t,e,n,a){var s=qt();a=a===void 0?null:a;var r=s.memoizedState.inst;Mt!==null&&a!==null&&go(a,Mt.memoizedState.deps)?s.memoizedState=Ji(e,r,n,a):(ut.flags|=t,s.memoizedState=Ji(1|e,r,n,a))}function Xh(t,e){ss(8390656,8,t,e)}function Co(t,e){us(2048,8,t,e)}function jv(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=is(),ut.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Zh(t){var e=qt().memoizedState;return jv({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Qh(t,e){return us(4,2,t,e)}function Kh(t,e){return us(4,4,t,e)}function Jh(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 kh(t,e,n){n=n!=null?n.concat([t]):null,us(4,4,Jh.bind(null,e,t),n)}function zo(){}function Fh(t,e){var n=qt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&go(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Wh(t,e){var n=qt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&go(e,a[1]))return a[0];if(a=t(),fi){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a}function Ro(t,e,n){return n===void 0||(on&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Pd(),ut.lanes|=t,Nn|=t,n)}function Ph(t,e,n,a){return be(n,e)?n:Zi.current!==null?(t=Ro(t,n,a),be(t,e)||(Zt=!0),t):(on&42)===0||(on&1073741824)!==0&&(dt&261930)===0?(Zt=!0,t.memoizedState=n):(t=Pd(),ut.lanes|=t,Nn|=t,e)}function $h(t,e,n,a,s){var r=Z.p;Z.p=r!==0&&8>r?r:8;var f=V.T,y={};V.T=y,_o(t,!1,e,n);try{var T=s(),C=V.S;if(C!==null&&C(y,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var _=_v(T,a);Ya(t,e,_,De(t))}else Ya(t,e,a,De(t))}catch(w){Ya(t,e,{then:function(){},status:"rejected",reason:w},De())}finally{Z.p=r,f!==null&&y.types!==null&&(f.types=y.types),V.T=f}}function Lv(){}function Oo(t,e,n,a){if(t.tag!==5)throw Error(o(476));var s=Ih(t).queue;$h(t,s,e,K,n===null?Lv:function(){return td(t),n(a)})}function Ih(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:K},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function td(t){var e=Ih(t);e.next===null&&(e=t.alternate.memoizedState),Ya(t,e.next.queue,{},De())}function Vo(){return te(al)}function ed(){return qt().memoizedState}function nd(){return qt().memoizedState}function Hv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=De();t=Cn(n);var a=zn(e,t,n);a!==null&&(ye(a,e,n),Ba(a,e,n)),e={cache:lo()},t.payload=e;return}e=e.return}}function qv(t,e,n){var a=De();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},os(t)?ad(e,n):(n=ku(t,e,n,a),n!==null&&(ye(n,t,a),ld(n,e,a)))}function id(t,e,n){var a=De();Ya(t,e,n,a)}function Ya(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(os(t))ad(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,be(y,f))return Gl(t,e,s,0),zt===null&&Yl(),!1}catch{}finally{}if(n=ku(t,e,s,a),n!==null)return ye(n,t,a),ld(n,e,a),!0}return!1}function _o(t,e,n,a){if(a={lane:2,revertLane:cr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},os(t)){if(e)throw Error(o(479))}else e=ku(t,n,a,2),e!==null&&ye(e,t,2)}function os(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function ad(t,e){Qi=es=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function ld(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,cf(t,n)}}var Ga={readContext:te,use:as,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};Ga.useEffectEvent=wt;var sd={readContext:te,use:as,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:te,useEffect:Xh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ss(4194308,4,Jh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ss(4194308,4,t,e)},useInsertionEffect:function(t,e){ss(4,2,t,e)},useMemo:function(t,e){var n=ue();e=e===void 0?null:e;var a=t();if(fi){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ue();if(n!==void 0){var s=n(e);if(fi){Sn(!0);try{n(e)}finally{Sn(!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=qv.bind(null,ut,t),[a.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=Mo(t);var e=t.queue,n=id.bind(null,ut,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:zo,useDeferredValue:function(t,e){var n=ue();return Ro(n,t,e)},useTransition:function(){var t=Mo(!1);return t=$h.bind(null,ut,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ut,s=ue();if(gt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),zt===null)throw Error(o(349));(dt&127)!==0||Ch(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,Xh(Rh.bind(null,a,r,t),[t]),a.flags|=2048,Ji(9,{destroy:void 0},zh.bind(null,a,r,n,e),null),n},useId:function(){var t=ue(),e=zt.identifierPrefix;if(gt){var n=Je,a=Ke;n=(a&~(1<<32-Se(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ns++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Nv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Vo,useFormState:Lh,useActionState:Lh,useOptimistic:function(t){var e=ue();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=_o.bind(null,ut,!0,n),n.dispatch=e,[t,e]},useMemoCache:xo,useCacheRefresh:function(){return ue().memoizedState=Hv.bind(null,ut)},useEffectEvent:function(t){var e=ue(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},No={readContext:te,use:as,useCallback:Fh,useContext:te,useEffect:Co,useImperativeHandle:kh,useInsertionEffect:Qh,useLayoutEffect:Kh,useMemo:Wh,useReducer:ls,useRef:Gh,useState:function(){return ls(rn)},useDebugValue:zo,useDeferredValue:function(t,e){var n=qt();return Ph(n,Mt.memoizedState,t,e)},useTransition:function(){var t=ls(rn)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:qa(t),e]},useSyncExternalStore:Dh,useId:ed,useHostTransitionStatus:Vo,useFormState:Hh,useActionState:Hh,useOptimistic:function(t,e){var n=qt();return _h(n,Mt,t,e)},useMemoCache:xo,useCacheRefresh:nd};No.useEffectEvent=Zh;var ud={readContext:te,use:as,useCallback:Fh,useContext:te,useEffect:Co,useImperativeHandle:kh,useInsertionEffect:Qh,useLayoutEffect:Kh,useMemo:Wh,useReducer:Eo,useRef:Gh,useState:function(){return Eo(rn)},useDebugValue:zo,useDeferredValue:function(t,e){var n=qt();return Mt===null?Ro(n,t,e):Ph(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Eo(rn)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:qa(t),e]},useSyncExternalStore:Dh,useId:ed,useHostTransitionStatus:Vo,useFormState:Yh,useActionState:Yh,useOptimistic:function(t,e){var n=qt();return Mt!==null?_h(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:xo,useCacheRefresh:nd};ud.useEffectEvent=Zh;function wo(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:S({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Uo={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=De(),s=Cn(a);s.payload=e,n!=null&&(s.callback=n),e=zn(t,s,a),e!==null&&(ye(e,t,a),Ba(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=De(),s=Cn(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=zn(t,s,a),e!==null&&(ye(e,t,a),Ba(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=De(),a=Cn(n);a.tag=2,e!=null&&(a.callback=e),e=zn(t,a,n),e!==null&&(ye(e,t,n),Ba(e,t,n))}};function od(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?!za(n,a)||!za(s,r):!0}function rd(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&&Uo.enqueueReplaceState(e,e.state,null)}function hi(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=S({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function cd(t){ql(t)}function fd(t){console.error(t)}function hd(t){ql(t)}function rs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function dd(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 Bo(t,e,n){return n=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){rs(t,e)},n}function md(t){return t=Cn(t),t.tag=3,t}function pd(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(){dd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){dd(e,n,a),typeof s!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Yv(t,e,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Hi(e,n,s,!0),n=xe.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?Ts():n.alternate===null&&Ut===0&&(Ut=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Wl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),ur(t,a,s)),!1;case 22:return n.flags|=65536,a===Wl?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)),ur(t,a,s)),!1}throw Error(o(435,n.tag))}return ur(t,a,s),Ts(),!1}if(gt)return e=xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==to&&(t=Error(o(422),{cause:a}),Va(Ve(t,n)))):(a!==to&&(e=Error(o(423),{cause:a}),Va(Ve(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Ve(a,n),s=Bo(t.stateNode,a,s),fo(t,s),Ut!==4&&(Ut=2)),!1;var r=Error(o(520),{cause:a});if(r=Ve(r,n),Wa===null?Wa=[r]:Wa.push(r),Ut!==4&&(Ut=2),e===null)return!0;a=Ve(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Bo(n.stateNode,a,t),fo(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"&&(wn===null||!wn.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=md(s),pd(s,t,n,a),fo(n,s),!1}n=n.return}while(n!==null);return!1}var jo=Error(o(461)),Zt=!1;function ee(t,e,n,a){e.child=t===null?Sh(e,null,n,a):ci(e,t.child,n,a)}function yd(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 si(e),a=vo(t,e,n,f,r,s),y=So(),t!==null&&!Zt?(bo(t,e,s),cn(t,e,s)):(gt&&y&&$u(e),e.flags|=1,ee(t,e,a,s),e.child)}function gd(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!Fu(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,vd(t,e,r,a,s)):(t=Zl(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Qo(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:za,n(f,a)&&t.ref===e.ref)return cn(t,e,s)}return e.flags|=1,t=an(r,a),t.ref=e.ref,t.return=e,e.child=t}function vd(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(za(r,a)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=a=r,Qo(t,s))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,cn(t,e,s)}return Lo(t,e,n,a,s)}function Sd(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 bd(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&kl(e,r!==null?r.cachePool:null),r!==null?xh(e,r):mo(),Ah(e);else return a=e.lanes=536870912,bd(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(kl(e,r.cachePool),xh(e,r),On(),e.memoizedState=null):(t!==null&&kl(e,null),mo(),On());return ee(t,e,s,n),e.child}function Xa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function bd(t,e,n,a,s){var r=uo();return r=r===null?null:{parent:Gt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&kl(e,null),mo(),Ah(e),t!==null&&Hi(t,e,a,!0),e.childLanes=s,null}function cs(t,e){return e=hs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Td(t,e,n){return ci(e,t.child,null,n),t=cs(e,e.pendingProps),t.flags|=2,Ae(e),e.memoizedState=null,t}function Gv(t,e,n){var a=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(gt){if(a.mode==="hidden")return t=cs(e,a),e.lanes=536870912,Xa(null,t);if(yo(e),(t=Ot)?(t=Nm(t,we),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:xn!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},n=ah(t),n.return=e,e.child=n,It=e,Ot=null)):t=null,t===null)throw En(e);return e.lanes=536870912,null}return cs(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(yo(e),s)if(e.flags&256)e.flags&=-257,e=Td(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Zt||Hi(t,e,n,!1),s=(n&t.childLanes)!==0,Zt||s){if(a=zt,a!==null&&(f=ff(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,ni(t,f),ye(a,t,f),jo;Ts(),e=Td(t,e,n)}else t=r.treeContext,Ot=Be(f.nextSibling),It=e,gt=!0,An=null,we=!1,t!==null&&uh(e,t),e=cs(e,a),e.flags|=4096;return e}return t=an(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function fs(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Lo(t,e,n,a,s){return si(e),n=vo(t,e,n,a,void 0,s),a=So(),t!==null&&!Zt?(bo(t,e,s),cn(t,e,s)):(gt&&a&&$u(e),e.flags|=1,ee(t,e,n,s),e.child)}function xd(t,e,n,a,s,r){return si(e),e.updateQueue=null,n=Mh(e,a,n,s),Eh(t),a=So(),t!==null&&!Zt?(bo(t,e,r),cn(t,e,r)):(gt&&a&&$u(e),e.flags|=1,ee(t,e,n,r),e.child)}function Ad(t,e,n,a,s){if(si(e),e.stateNode===null){var r=Ui,f=n.contextType;typeof f=="object"&&f!==null&&(r=te(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Uo,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},ro(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?te(f):Ui,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(wo(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&&Uo.enqueueReplaceState(r,r.state,null),La(e,a,r,s),ja(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,T=hi(n,y);r.props=T;var C=r.context,_=n.contextType;f=Ui,typeof _=="object"&&_!==null&&(f=te(_));var w=n.getDerivedStateFromProps;_=typeof w=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,_||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||C!==f)&&rd(e,r,a,f),Dn=!1;var z=e.memoizedState;r.state=z,La(e,a,r,s),ja(),C=e.memoizedState,y||z!==C||Dn?(typeof w=="function"&&(wo(e,n,w,a),C=e.memoizedState),(T=Dn||od(e,n,T,a,z,C,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=C),r.props=a,r.state=C,r.context=f,a=T):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,co(t,e),f=e.memoizedProps,_=hi(n,f),r.props=_,w=e.pendingProps,z=r.context,C=n.contextType,T=Ui,typeof C=="object"&&C!==null&&(T=te(C)),y=n.getDerivedStateFromProps,(C=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==w||z!==T)&&rd(e,r,a,T),Dn=!1,z=e.memoizedState,r.state=z,La(e,a,r,s),ja();var O=e.memoizedState;f!==w||z!==O||Dn||t!==null&&t.dependencies!==null&&Kl(t.dependencies)?(typeof y=="function"&&(wo(e,n,y,a),O=e.memoizedState),(_=Dn||od(e,n,_,a,z,O,T)||t!==null&&t.dependencies!==null&&Kl(t.dependencies))?(C||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,O,T),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,O,T)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=O),r.props=a,r.state=O,r.context=T,a=_):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,fs(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=ci(e,t.child,null,s),e.child=ci(e,null,n,s)):ee(t,e,n,s),e.memoizedState=r.state,t=e.child):t=cn(t,e,s),t}function Ed(t,e,n,a){return ai(),e.flags|=256,ee(t,e,n,a),e.child}var Ho={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qo(t){return{baseLanes:t,cachePool:dh()}}function Yo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Me),t}function Md(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:(Ht.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(gt){if(s?Rn(e):On(),(t=Ot)?(t=Nm(t,we),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:xn!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},n=ah(t),n.return=e,e.child=n,It=e,Ot=null)):t=null,t===null)throw En(e);return Ar(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(On(),s=e.mode,y=hs({mode:"hidden",children:y},s),a=ii(a,s,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=qo(n),a.childLanes=Yo(t,f,n),e.memoizedState=Ho,Xa(null,a)):(Rn(e),Go(e,y))}var T=t.memoizedState;if(T!==null&&(y=T.dehydrated,y!==null)){if(r)e.flags&256?(Rn(e),e.flags&=-257,e=Xo(t,e,n)):e.memoizedState!==null?(On(),e.child=t.child,e.flags|=128,e=null):(On(),y=a.fallback,s=e.mode,a=hs({mode:"visible",children:a.children},s),y=ii(y,s,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,ci(e,t.child,null,n),a=e.child,a.memoizedState=qo(n),a.childLanes=Yo(t,f,n),e.memoizedState=Ho,e=Xa(null,a));else if(Rn(e),Ar(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var C=f.dgst;f=C,a=Error(o(419)),a.stack="",a.digest=f,Va({value:a,source:null,stack:null}),e=Xo(t,e,n)}else if(Zt||Hi(t,e,n,!1),f=(n&t.childLanes)!==0,Zt||f){if(f=zt,f!==null&&(a=ff(f,n),a!==0&&a!==T.retryLane))throw T.retryLane=a,ni(t,a),ye(f,t,a),jo;xr(y)||Ts(),e=Xo(t,e,n)}else xr(y)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ot=Be(y.nextSibling),It=e,gt=!0,An=null,we=!1,t!==null&&uh(e,t),e=Go(e,a.children),e.flags|=4096);return e}return s?(On(),y=a.fallback,s=e.mode,T=t.child,C=T.sibling,a=an(T,{mode:"hidden",children:a.children}),a.subtreeFlags=T.subtreeFlags&65011712,C!==null?y=an(C,y):(y=ii(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,Xa(null,a),a=e.child,y=t.child.memoizedState,y===null?y=qo(n):(s=y.cachePool,s!==null?(T=Gt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=dh(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=Yo(t,f,n),e.memoizedState=Ho,Xa(t.child,a)):(Rn(e),n=t.child,t=n.sibling,n=an(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 Go(t,e){return e=hs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function hs(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function Xo(t,e,n){return ci(e,t.child,null,n),t=Go(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Dd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),io(t.return,e,n)}function Zo(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 Cd(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=Ht.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,Q(Ht,f),ee(t,e,a,n),a=gt?Oa:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Dd(t,n,e);else if(t.tag===19)Dd(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&&ts(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Zo(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&&ts(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Zo(e,!0,n,null,r,a);break;case"together":Zo(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function cn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Nn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Hi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=an(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=an(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Qo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Kl(t)))}function Xv(t,e,n){switch(e.tag){case 3:se(e,e.stateNode.containerInfo),Mn(e,Gt,t.memoizedState.cache),ai();break;case 27:case 5:pa(e);break;case 4:se(e,e.stateNode.containerInfo);break;case 10:Mn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,yo(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Rn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Md(t,e,n):(Rn(e),t=cn(t,e,n),t!==null?t.sibling:null);Rn(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Hi(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return Cd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(Ht,Ht.current),a)break;return null;case 22:return e.lanes=0,Sd(t,e,n,e.pendingProps);case 24:Mn(e,Gt,t.memoizedState.cache)}return cn(t,e,n)}function zd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!Qo(t,n)&&(e.flags&128)===0)return Zt=!1,Xv(t,e,n);Zt=(t.flags&131072)!==0}else Zt=!1,gt&&(e.flags&1048576)!==0&&sh(e,Oa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=oi(e.elementType),e.type=t,typeof t=="function")Fu(t)?(a=hi(t,a),e.tag=1,e=Ad(null,e,t,a,n)):(e.tag=0,e=Lo(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===G){e.tag=11,e=yd(null,e,t,a,n);break t}else if(s===I){e.tag=14,e=gd(null,e,t,a,n);break t}}throw e=Yt(t)||t,Error(o(306,e,""))}}return e;case 0:return Lo(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=hi(a,e.pendingProps),Ad(t,e,a,s,n);case 3:t:{if(se(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,co(t,e),La(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Mn(e,Gt,a),a!==r.cache&&ao(e,[Gt],n,!0),ja(),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=Ed(t,e,a,n);break t}else if(a!==s){s=Ve(Error(o(424)),e),Va(s),e=Ed(t,e,a,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ot=Be(t.firstChild),It=e,gt=!0,An=null,we=!0,n=Sh(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ai(),a===s){e=cn(t,e,n);break t}ee(t,e,a,n)}e=e.child}return e;case 26:return fs(t,e),t===null?(n=Hm(e.type,null,e.pendingProps,null))?e.memoizedState=n:gt||(n=e.type,t=e.pendingProps,a=zs(ct.current).createElement(n),a[$t]=e,a[ce]=t,ne(a,n,t),Ft(a),e.stateNode=a):e.memoizedState=Hm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pa(e),t===null&&gt&&(a=e.stateNode=Bm(e.type,e.pendingProps,ct.current),It=e,we=!0,s=Ot,Ln(e.type)?(Er=s,Ot=Be(a.firstChild)):Ot=s),ee(t,e,e.pendingProps.children,n),fs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&gt&&((s=a=Ot)&&(a=S1(a,e.type,e.pendingProps,we),a!==null?(e.stateNode=a,It=e,Ot=Be(a.firstChild),we=!1,s=!0):s=!1),s||En(e)),pa(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,Sr(s,r)?a=null:f!==null&&Sr(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=vo(t,e,wv,null,null,n),al._currentValue=s),fs(t,e),ee(t,e,a,n),e.child;case 6:return t===null&&gt&&((t=n=Ot)&&(n=b1(n,e.pendingProps,we),n!==null?(e.stateNode=n,It=e,Ot=null,t=!0):t=!1),t||En(e)),null;case 13:return Md(t,e,n);case 4:return se(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ci(e,null,a,n):ee(t,e,a,n),e.child;case 11:return yd(t,e,e.type,e.pendingProps,n);case 7:return ee(t,e,e.pendingProps,n),e.child;case 8:return ee(t,e,e.pendingProps.children,n),e.child;case 12:return ee(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,Mn(e,e.type,a.value),ee(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,si(e),s=te(s),a=a(s),e.flags|=1,ee(t,e,a,n),e.child;case 14:return gd(t,e,e.type,e.pendingProps,n);case 15:return vd(t,e,e.type,e.pendingProps,n);case 19:return Cd(t,e,n);case 31:return Gv(t,e,n);case 22:return Sd(t,e,n,e.pendingProps);case 24:return si(e),a=te(Gt),t===null?(s=uo(),s===null&&(s=zt,r=lo(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},ro(e),Mn(e,Gt,s)):((t.lanes&n)!==0&&(co(t,e),La(e,null,null,n),ja()),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),Mn(e,Gt,a)):(a=r.cache,Mn(e,Gt,a),a!==s.cache&&ao(e,[Gt],n,!0))),ee(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function fn(t){t.flags|=4}function Ko(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(em())t.flags|=8192;else throw ri=Wl,oo}else t.flags&=-16777217}function Rd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Zm(e))if(em())t.flags|=8192;else throw ri=Wl,oo}function ds(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?of():536870912,t.lanes|=e,Pi|=e)}function Za(t,e){if(!gt)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 Vt(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 Zv(t,e,n){var a=e.pendingProps;switch(Iu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vt(e),null;case 1:return Vt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),un(Gt),Lt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Li(e)?fn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,eo())),Vt(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(fn(e),r!==null?(Vt(e),Rd(e,r)):(Vt(e),Ko(e,s,null,a,n))):r?r!==t.memoizedState?(fn(e),Vt(e),Rd(e,r)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&fn(e),Vt(e),Ko(e,s,t,a,n)),null;case 27:if(El(e),n=ct.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Vt(e),null}t=W.current,Li(e)?oh(e):(t=Bm(s,a,n),e.stateNode=t,fn(e))}return Vt(e),null;case 5:if(El(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Vt(e),null}if(r=W.current,Li(e))oh(e);else{var f=zs(ct.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[$t]=e,r[ce]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(ne(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&&fn(e)}}return Vt(e),Ko(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=ct.current,Li(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=It,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[$t]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Mm(t.nodeValue,n)),t||En(e,!0)}else t=zs(t).createTextNode(a),t[$t]=e,e.stateNode=t}return Vt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Li(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[$t]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else n=eo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ae(e),e):(Ae(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Vt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Li(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[$t]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),s=!1}else s=eo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Ae(e),e):(Ae(e),null)}return Ae(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),ds(e,e.updateQueue),Vt(e),null);case 4:return Lt(),t===null&&mr(e.stateNode.containerInfo),Vt(e),null;case 10:return un(e.type),Vt(e),null;case 19:if(U(Ht),a=e.memoizedState,a===null)return Vt(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)Za(a,!1);else{if(Ut!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=ts(t),r!==null){for(e.flags|=128,Za(a,!1),t=r.updateQueue,e.updateQueue=t,ds(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)ih(n,t),n=n.sibling;return Q(Ht,Ht.current&1|2),gt&&ln(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ge()>vs&&(e.flags|=128,s=!0,Za(a,!1),e.lanes=4194304)}else{if(!s)if(t=ts(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,ds(e,t),Za(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!gt)return Vt(e),null}else 2*ge()-a.renderingStartTime>vs&&n!==536870912&&(e.flags|=128,s=!0,Za(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=ge(),t.sibling=null,n=Ht.current,Q(Ht,s?n&1|2:n&1),gt&&ln(e,a.treeForkCount),t):(Vt(e),null);case 22:case 23:return Ae(e),po(),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&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),n=e.updateQueue,n!==null&&ds(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(ui),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),un(Gt),Vt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Qv(t,e){switch(Iu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return un(Gt),Lt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return El(e),null;case 31:if(e.memoizedState!==null){if(Ae(e),e.alternate===null)throw Error(o(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ae(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Ht),null;case 4:return Lt(),null;case 10:return un(e.type),null;case 22:case 23:return Ae(e),po(),t!==null&&U(ui),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return un(Gt),null;case 25:return null;default:return null}}function Od(t,e){switch(Iu(e),e.tag){case 3:un(Gt),Lt();break;case 26:case 27:case 5:El(e);break;case 4:Lt();break;case 31:e.memoizedState!==null&&Ae(e);break;case 13:Ae(e);break;case 19:U(Ht);break;case 10:un(e.type);break;case 22:case 23:Ae(e),po(),t!==null&&U(ui);break;case 24:un(Gt)}}function Qa(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){Et(e,e.return,y)}}function Vn(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 T=n,C=y;try{C()}catch(_){Et(s,T,_)}}}a=a.next}while(a!==r)}}catch(_){Et(e,e.return,_)}}function Vd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Th(e,n)}catch(a){Et(t,t.return,a)}}}function _d(t,e,n){n.props=hi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Et(t,e,a)}}function Ka(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){Et(t,e,s)}}function ke(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Et(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){Et(t,e,s)}else n.current=null}function Nd(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){Et(t,t.return,s)}}function Jo(t,e,n){try{var a=t.stateNode;d1(a,t.type,n,e),a[ce]=e}catch(s){Et(t,t.return,s)}}function wd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ln(t.type)||t.tag===4}function ko(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||wd(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&&Ln(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 Fo(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=en));else if(a!==4&&(a===27&&Ln(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Fo(t,e,n),t=t.sibling;t!==null;)Fo(t,e,n),t=t.sibling}function ms(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&&Ln(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ms(t,e,n),t=t.sibling;t!==null;)ms(t,e,n),t=t.sibling}function Ud(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);ne(e,a,n),e[$t]=t,e[ce]=n}catch(r){Et(t,t.return,r)}}var hn=!1,Qt=!1,Wo=!1,Bd=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function Kv(t,e){if(t=t.containerInfo,gr=Us,t=kf(t),Gu(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,T=-1,C=0,_=0,w=t,z=null;e:for(;;){for(var O;w!==n||s!==0&&w.nodeType!==3||(y=f+s),w!==r||a!==0&&w.nodeType!==3||(T=f+a),w.nodeType===3&&(f+=w.nodeValue.length),(O=w.firstChild)!==null;)z=w,w=O;for(;;){if(w===t)break e;if(z===n&&++C===s&&(y=f),z===r&&++_===a&&(T=f),(O=w.nextSibling)!==null)break;w=z,z=w.parentNode}w=O}n=y===-1||T===-1?null:{start:y,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(vr={focusedElem:t,selectionRange:n},Us=!1,Wt=e;Wt!==null;)if(e=Wt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Wt=t;else for(;Wt!==null;){switch(e=Wt,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 k=hi(n.type,s);t=a.getSnapshotBeforeUpdate(k,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(nt){Et(n,n.return,nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Tr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Tr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Wt=t;break}Wt=e.return}}function jd(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:mn(t,n),a&4&&Qa(5,n);break;case 1:if(mn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Et(n,n.return,f)}else{var s=hi(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Et(n,n.return,f)}}a&64&&Vd(n),a&512&&Ka(n,n.return);break;case 3:if(mn(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Th(t,e)}catch(f){Et(n,n.return,f)}}break;case 27:e===null&&a&4&&Ud(n);case 26:case 5:mn(t,n),e===null&&a&4&&Nd(n),a&512&&Ka(n,n.return);break;case 12:mn(t,n);break;case 31:mn(t,n),a&4&&qd(t,n);break;case 13:mn(t,n),a&4&&Yd(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=e1.bind(null,n),T1(t,n))));break;case 22:if(a=n.memoizedState!==null||hn,!a){e=e!==null&&e.memoizedState!==null||Qt,s=hn;var r=Qt;hn=a,(Qt=e)&&!r?pn(t,n,(n.subtreeFlags&8772)!==0):mn(t,n),hn=s,Qt=r}break;case 30:break;default:mn(t,n)}}function Ld(t){var e=t.alternate;e!==null&&(t.alternate=null,Ld(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Mu(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 _t=null,he=!1;function dn(t,e,n){for(n=n.child;n!==null;)Hd(t,e,n),n=n.sibling}function Hd(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(ya,n)}catch{}switch(n.tag){case 26:Qt||ke(n,e),dn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qt||ke(n,e);var a=_t,s=he;Ln(n.type)&&(_t=n.stateNode,he=!1),dn(t,e,n),el(n.stateNode),_t=a,he=s;break;case 5:Qt||ke(n,e);case 6:if(a=_t,s=he,_t=null,dn(t,e,n),_t=a,he=s,_t!==null)if(he)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(n.stateNode)}catch(r){Et(n,e,r)}else try{_t.removeChild(n.stateNode)}catch(r){Et(n,e,r)}break;case 18:_t!==null&&(he?(t=_t,Vm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),la(t)):Vm(_t,n.stateNode));break;case 4:a=_t,s=he,_t=n.stateNode.containerInfo,he=!0,dn(t,e,n),_t=a,he=s;break;case 0:case 11:case 14:case 15:Vn(2,n,e),Qt||Vn(4,n,e),dn(t,e,n);break;case 1:Qt||(ke(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&_d(n,e,a)),dn(t,e,n);break;case 21:dn(t,e,n);break;case 22:Qt=(a=Qt)||n.memoizedState!==null,dn(t,e,n),Qt=a;break;default:dn(t,e,n)}}function qd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{la(t)}catch(n){Et(e,e.return,n)}}}function Yd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{la(t)}catch(n){Et(e,e.return,n)}}function Jv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Bd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Bd),e;default:throw Error(o(435,t.tag))}}function ps(t,e){var n=Jv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=n1.bind(null,t,a);a.then(s,s)}})}function de(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(Ln(y.type)){_t=y.stateNode,he=!1;break t}break;case 5:_t=y.stateNode,he=!1;break t;case 3:case 4:_t=y.stateNode.containerInfo,he=!0;break t}y=y.return}if(_t===null)throw Error(o(160));Hd(r,f,s),_t=null,he=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Gd(e,t),e=e.sibling}var Ye=null;function Gd(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:de(e,t),me(t),a&4&&(Vn(3,t,t.return),Qa(3,t),Vn(5,t,t.return));break;case 1:de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),a&64&&hn&&(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=Ye;if(de(e,t),me(t),a&512&&(Qt||n===null||ke(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[Sa]||r[$t]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),ne(r,a,n),r[$t]=t,Ft(r),a=r;break t;case"link":var f=Gm("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),ne(r,a,n),s.head.appendChild(r);break;case"meta":if(f=Gm("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),ne(r,a,n),s.head.appendChild(r);break;default:throw Error(o(468,a))}r[$t]=t,Ft(r),a=r}t.stateNode=a}else Xm(s,t.type,t.stateNode);else t.stateNode=Ym(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?Xm(s,t.type,t.stateNode):Ym(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Jo(t,t.memoizedProps,n.memoizedProps)}break;case 27:de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),n!==null&&a&4&&Jo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),t.flags&32){s=t.stateNode;try{zi(s,"")}catch(k){Et(t,t.return,k)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,Jo(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Wo=!0);break;case 6:if(de(e,t),me(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(k){Et(t,t.return,k)}}break;case 3:if(Vs=null,s=Ye,Ye=Rs(e.containerInfo),de(e,t),Ye=s,me(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{la(e.containerInfo)}catch(k){Et(t,t.return,k)}Wo&&(Wo=!1,Xd(t));break;case 4:a=Ye,Ye=Rs(t.stateNode.containerInfo),de(e,t),me(t),Ye=a;break;case 12:de(e,t),me(t);break;case 31:de(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ps(t,a)));break;case 13:de(e,t),me(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(gs=ge()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ps(t,a)));break;case 22:s=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,C=hn,_=Qt;if(hn=C||s,Qt=_||T,de(e,t),Qt=_,hn=C,me(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||T||hn||Qt||di(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(r=T.stateNode,s)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=T.stateNode;var w=T.memoizedProps.style,z=w!=null&&w.hasOwnProperty("display")?w.display:null;y.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(k){Et(T,T.return,k)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(k){Et(T,T.return,k)}}}else if(e.tag===18){if(n===null){T=e;try{var O=T.stateNode;s?_m(O,!0):_m(T.stateNode,!1)}catch(k){Et(T,T.return,k)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,ps(t,n))));break;case 19:de(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ps(t,a)));break;case 30:break;case 21:break;default:de(e,t),me(t)}}function me(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(wd(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,r=ko(t);ms(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(zi(f,""),n.flags&=-33);var y=ko(t);ms(t,y,f);break;case 3:case 4:var T=n.stateNode.containerInfo,C=ko(t);Fo(t,C,T);break;default:throw Error(o(161))}}catch(_){Et(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Xd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Xd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function mn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)jd(t,e.alternate,e),e=e.sibling}function di(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Vn(4,e,e.return),di(e);break;case 1:ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&_d(e,e.return,n),di(e);break;case 27:el(e.stateNode);case 26:case 5:ke(e,e.return),di(e);break;case 22:e.memoizedState===null&&di(e);break;case 30:di(e);break;default:di(e)}t=t.sibling}}function pn(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:pn(s,r,n),Qa(4,r);break;case 1:if(pn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(C){Et(a,a.return,C)}if(a=r,s=a.updateQueue,s!==null){var y=a.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)bh(T[s],y)}catch(C){Et(a,a.return,C)}}n&&f&64&&Vd(r),Ka(r,r.return);break;case 27:Ud(r);case 26:case 5:pn(s,r,n),n&&a===null&&f&4&&Nd(r),Ka(r,r.return);break;case 12:pn(s,r,n);break;case 31:pn(s,r,n),n&&f&4&&qd(s,r);break;case 13:pn(s,r,n),n&&f&4&&Yd(s,r);break;case 22:r.memoizedState===null&&pn(s,r,n),Ka(r,r.return);break;case 30:break;default:pn(s,r,n)}e=e.sibling}}function Po(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&&_a(n))}function $o(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&_a(t))}function Ge(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zd(t,e,n,a),e=e.sibling}function Zd(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Ge(t,e,n,a),s&2048&&Qa(9,e);break;case 1:Ge(t,e,n,a);break;case 3:Ge(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&&_a(t)));break;case 12:if(s&2048){Ge(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(T){Et(e,e.return,T)}}else Ge(t,e,n,a);break;case 31:Ge(t,e,n,a);break;case 13:Ge(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?Ge(t,e,n,a):Ja(t,e):r._visibility&2?Ge(t,e,n,a):(r._visibility|=2,ki(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Po(f,e);break;case 24:Ge(t,e,n,a),s&2048&&$o(e.alternate,e);break;default:Ge(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,T=a,C=f.flags;switch(f.tag){case 0:case 11:case 15:ki(r,f,y,T,s),Qa(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?ki(r,f,y,T,s):Ja(r,f):(_._visibility|=2,ki(r,f,y,T,s)),s&&C&2048&&Po(f.alternate,f);break;case 24:ki(r,f,y,T,s),s&&C&2048&&$o(f.alternate,f);break;default:ki(r,f,y,T,s)}e=e.sibling}}function Ja(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:Ja(n,a),s&2048&&Po(a.alternate,a);break;case 24:Ja(n,a),s&2048&&$o(a.alternate,a);break;default:Ja(n,a)}e=e.sibling}}var ka=8192;function Fi(t,e,n){if(t.subtreeFlags&ka)for(t=t.child;t!==null;)Qd(t,e,n),t=t.sibling}function Qd(t,e,n){switch(t.tag){case 26:Fi(t,e,n),t.flags&ka&&t.memoizedState!==null&&N1(n,Ye,t.memoizedState,t.memoizedProps);break;case 5:Fi(t,e,n);break;case 3:case 4:var a=Ye;Ye=Rs(t.stateNode.containerInfo),Fi(t,e,n),Ye=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ka,ka=16777216,Fi(t,e,n),ka=a):Fi(t,e,n));break;default:Fi(t,e,n)}}function Kd(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 Fa(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];Wt=a,kd(a,t)}Kd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jd(t),t=t.sibling}function Jd(t){switch(t.tag){case 0:case 11:case 15:Fa(t),t.flags&2048&&Vn(9,t,t.return);break;case 3:Fa(t);break;case 12:Fa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ys(t)):Fa(t);break;default:Fa(t)}}function ys(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];Wt=a,kd(a,t)}Kd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Vn(8,e,e.return),ys(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,ys(e));break;default:ys(e)}t=t.sibling}}function kd(t,e){for(;Wt!==null;){var n=Wt;switch(n.tag){case 0:case 11:case 15:Vn(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:_a(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Wt=a;else t:for(n=t;Wt!==null;){a=Wt;var s=a.sibling,r=a.return;if(Ld(a),a===n){Wt=null;break t}if(s!==null){s.return=r,Wt=s;break t}Wt=r}}}var kv={getCacheForType:function(t){var e=te(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return te(Gt).controller.signal}},Fv=typeof WeakMap=="function"?WeakMap:Map,Tt=0,zt=null,ft=null,dt=0,At=0,Ee=null,_n=!1,Wi=!1,Io=!1,yn=0,Ut=0,Nn=0,mi=0,tr=0,Me=0,Pi=0,Wa=null,pe=null,er=!1,gs=0,Fd=0,vs=1/0,Ss=null,wn=null,Jt=0,Un=null,$i=null,gn=0,nr=0,ir=null,Wd=null,Pa=0,ar=null;function De(){return(Tt&2)!==0&&dt!==0?dt&-dt:V.T!==null?cr():hf()}function Pd(){if(Me===0)if((dt&536870912)===0||gt){var t=Cl;Cl<<=1,(Cl&3932160)===0&&(Cl=262144),Me=t}else Me=536870912;return t=xe.current,t!==null&&(t.flags|=32),Me}function ye(t,e,n){(t===zt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Ii(t,0),Bn(t,dt,Me,!1)),va(t,n),((Tt&2)===0||t!==zt)&&(t===zt&&((Tt&2)===0&&(mi|=n),Ut===4&&Bn(t,dt,Me,!1)),Fe(t))}function $d(t,e,n){if((Tt&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ga(t,e),s=a?$v(t,e):sr(t,e,!0),r=a;do{if(s===0){Wi&&!a&&Bn(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Wv(n)){s=sr(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=Wa;var T=y.current.memoizedState.isDehydrated;if(T&&(Ii(y,f).flags|=256),f=sr(y,f,!1),f!==2){if(Io&&!T){y.errorRecoveryDisabledLanes|=r,mi|=r,s=4;break t}r=pe,pe=s,r!==null&&(pe===null?pe=r:pe.push.apply(pe,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Ii(t,0),Bn(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Bn(a,e,Me,!_n);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=gs+300-ge(),10<s)){if(Bn(a,e,Me,!_n),Rl(a,0,!0)!==0)break t;gn=e,a.timeoutHandle=Rm(Id.bind(null,a,n,pe,Ss,er,e,Me,mi,Pi,_n,r,"Throttled",-0,0),s);break t}Id(a,n,pe,Ss,er,e,Me,mi,Pi,_n,r,null,-0,0)}}break}while(!0);Fe(t)}function Id(t,e,n,a,s,r,f,y,T,C,_,w,z,O){if(t.timeoutHandle=-1,w=e.subtreeFlags,w&8192||(w&16785408)===16785408){w={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Qd(e,r,w);var k=(r&62914560)===r?gs-ge():(r&4194048)===r?Fd-ge():0;if(k=w1(w,k),k!==null){gn=r,t.cancelPendingCommit=k(um.bind(null,t,e,r,n,a,s,f,y,T,_,w,null,z,O)),Bn(t,r,f,!C);return}}um(t,e,r,n,a,s,f,y,T)}function Wv(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(!be(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 Bn(t,e,n,a){e&=~tr,e&=~mi,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-Se(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&rf(t,n,e)}function bs(){return(Tt&6)===0?($a(0),!1):!0}function lr(){if(ft!==null){if(At===0)var t=ft.return;else t=ft,sn=li=null,To(t),Xi=null,wa=0,t=ft;for(;t!==null;)Od(t.alternate,t),t=t.return;ft=null}}function Ii(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,y1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),gn=0,lr(),zt=t,ft=n=an(t.current,null),dt=e,At=0,Ee=null,_n=!1,Wi=ga(t,e),Io=!1,Pi=Me=tr=mi=Nn=Ut=0,pe=Wa=null,er=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var s=31-Se(a),r=1<<s;e|=t[s],a&=~r}return yn=e,Yl(),n}function tm(t,e){ut=null,V.H=Ga,e===Gi||e===Fl?(e=yh(),At=3):e===oo?(e=yh(),At=4):At=e===jo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ee=e,ft===null&&(Ut=1,rs(t,Ve(e,t.current)))}function em(){var t=xe.current;return t===null?!0:(dt&4194048)===dt?Ue===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Ue:!1}function nm(){var t=V.H;return V.H=Ga,t===null?Ga:t}function im(){var t=V.A;return V.A=kv,t}function Ts(){Ut=4,_n||(dt&4194048)!==dt&&xe.current!==null||(Wi=!0),(Nn&134217727)===0&&(mi&134217727)===0||zt===null||Bn(zt,dt,Me,!1)}function sr(t,e,n){var a=Tt;Tt|=2;var s=nm(),r=im();(zt!==t||dt!==e)&&(Ss=null,Ii(t,e)),e=!1;var f=Ut;t:do try{if(At!==0&&ft!==null){var y=ft,T=Ee;switch(At){case 8:lr(),f=6;break t;case 3:case 2:case 9:case 6:xe.current===null&&(e=!0);var C=At;if(At=0,Ee=null,ta(t,y,T,C),n&&Wi){f=0;break t}break;default:C=At,At=0,Ee=null,ta(t,y,T,C)}}Pv(),f=Ut;break}catch(_){tm(t,_)}while(!0);return e&&t.shellSuspendCounter++,sn=li=null,Tt=a,V.H=s,V.A=r,ft===null&&(zt=null,dt=0,Yl()),f}function Pv(){for(;ft!==null;)am(ft)}function $v(t,e){var n=Tt;Tt|=2;var a=nm(),s=im();zt!==t||dt!==e?(Ss=null,vs=ge()+500,Ii(t,e)):Wi=ga(t,e);t:do try{if(At!==0&&ft!==null){e=ft;var r=Ee;e:switch(At){case 1:At=0,Ee=null,ta(t,e,r,1);break;case 2:case 9:if(mh(r)){At=0,Ee=null,lm(e);break}e=function(){At!==2&&At!==9||zt!==t||(At=7),Fe(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:mh(r)?(At=0,Ee=null,lm(e)):(At=0,Ee=null,ta(t,e,r,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var y=ft;if(f?Zm(f):y.stateNode.complete){At=0,Ee=null;var T=y.sibling;if(T!==null)ft=T;else{var C=y.return;C!==null?(ft=C,xs(C)):ft=null}break e}}At=0,Ee=null,ta(t,e,r,5);break;case 6:At=0,Ee=null,ta(t,e,r,6);break;case 8:lr(),Ut=6;break t;default:throw Error(o(462))}}Iv();break}catch(_){tm(t,_)}while(!0);return sn=li=null,V.H=a,V.A=s,Tt=n,ft!==null?0:(zt=null,dt=0,Yl(),Ut)}function Iv(){for(;ft!==null&&!x0();)am(ft)}function am(t){var e=zd(t.alternate,t,yn);t.memoizedProps=t.pendingProps,e===null?xs(t):ft=e}function lm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=xd(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=xd(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:To(e);default:Od(n,e),e=ft=ih(e,yn),e=zd(n,e,yn)}t.memoizedProps=t.pendingProps,e===null?xs(t):ft=e}function ta(t,e,n,a){sn=li=null,To(e),Xi=null,wa=0;var s=e.return;try{if(Yv(t,s,e,n,dt)){Ut=1,rs(t,Ve(n,t.current)),ft=null;return}}catch(r){if(s!==null)throw ft=s,r;Ut=1,rs(t,Ve(n,t.current)),ft=null;return}e.flags&32768?(gt||a===1?t=!0:Wi||(dt&536870912)!==0?t=!1:(_n=t=!0,(a===2||a===9||a===3||a===6)&&(a=xe.current,a!==null&&a.tag===13&&(a.flags|=16384))),sm(e,t)):xs(e)}function xs(t){var e=t;do{if((e.flags&32768)!==0){sm(e,_n);return}t=e.return;var n=Zv(e.alternate,e,yn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Ut===0&&(Ut=5)}function sm(t,e){do{var n=Qv(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Ut=6,ft=null}function um(t,e,n,a,s,r,f,y,T){t.cancelPendingCommit=null;do As();while(Jt!==0);if((Tt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(r=e.lanes|e.childLanes,r|=Ju,_0(t,n,r,f,y,T),t===zt&&(ft=zt=null,dt=0),$i=e,Un=t,gn=n,nr=r,ir=s,Wd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,i1(Ml,function(){return hm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=V.T,V.T=null,s=Z.p,Z.p=2,f=Tt,Tt|=4;try{Kv(t,e,n)}finally{Tt=f,Z.p=s,V.T=a}}Jt=1,om(),rm(),cm()}}function om(){if(Jt===1){Jt=0;var t=Un,e=$i,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=V.T,V.T=null;var a=Z.p;Z.p=2;var s=Tt;Tt|=4;try{Gd(e,t);var r=vr,f=kf(t.containerInfo),y=r.focusedElem,T=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&Jf(y.ownerDocument.documentElement,y)){if(T!==null&&Gu(y)){var C=T.start,_=T.end;if(_===void 0&&(_=C),"selectionStart"in y)y.selectionStart=C,y.selectionEnd=Math.min(_,y.value.length);else{var w=y.ownerDocument||document,z=w&&w.defaultView||window;if(z.getSelection){var O=z.getSelection(),k=y.textContent.length,nt=Math.min(T.start,k),Ct=T.end===void 0?nt:Math.min(T.end,k);!O.extend&&nt>Ct&&(f=Ct,Ct=nt,nt=f);var E=Kf(y,nt),x=Kf(y,Ct);if(E&&x&&(O.rangeCount!==1||O.anchorNode!==E.node||O.anchorOffset!==E.offset||O.focusNode!==x.node||O.focusOffset!==x.offset)){var D=w.createRange();D.setStart(E.node,E.offset),O.removeAllRanges(),nt>Ct?(O.addRange(D),O.extend(x.node,x.offset)):(D.setEnd(x.node,x.offset),O.addRange(D))}}}}for(w=[],O=y;O=O.parentNode;)O.nodeType===1&&w.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<w.length;y++){var N=w[y];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}Us=!!gr,vr=gr=null}finally{Tt=s,Z.p=a,V.T=n}}t.current=e,Jt=2}}function rm(){if(Jt===2){Jt=0;var t=Un,e=$i,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=V.T,V.T=null;var a=Z.p;Z.p=2;var s=Tt;Tt|=4;try{jd(t,e.alternate,e)}finally{Tt=s,Z.p=a,V.T=n}}Jt=3}}function cm(){if(Jt===4||Jt===3){Jt=0,A0();var t=Un,e=$i,n=gn,a=Wd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,$i=Un=null,fm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(wn=null),Au(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(ya,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=V.T,s=Z.p,Z.p=2,V.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{V.T=e,Z.p=s}}(gn&3)!==0&&As(),Fe(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===ar?Pa++:(Pa=0,ar=t):Pa=0,$a(0)}}function fm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,_a(e)))}function As(){return om(),rm(),cm(),hm()}function hm(){if(Jt!==5)return!1;var t=Un,e=nr;nr=0;var n=Au(gn),a=V.T,s=Z.p;try{Z.p=32>n?32:n,V.T=null,n=ir,ir=null;var r=Un,f=gn;if(Jt=0,$i=Un=null,gn=0,(Tt&6)!==0)throw Error(o(331));var y=Tt;if(Tt|=4,Jd(r.current),Zd(r,r.current,f,n),Tt=y,$a(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(ya,r)}catch{}return!0}finally{Z.p=s,V.T=a,fm(t,e)}}function dm(t,e,n){e=Ve(n,e),e=Bo(t.stateNode,e,2),t=zn(t,e,2),t!==null&&(va(t,2),Fe(t))}function Et(t,e,n){if(t.tag===3)dm(t,t,n);else for(;e!==null;){if(e.tag===3){dm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(wn===null||!wn.has(a))){t=Ve(n,t),n=md(2),a=zn(e,n,2),a!==null&&(pd(n,a,e,t),va(a,2),Fe(a));break}}e=e.return}}function ur(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new Fv;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)||(Io=!0,s.add(n),t=t1.bind(null,t,e,n),e.then(t,t))}function t1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(dt&n)===n&&(Ut===4||Ut===3&&(dt&62914560)===dt&&300>ge()-gs?(Tt&2)===0&&Ii(t,0):tr|=n,Pi===dt&&(Pi=0)),Fe(t)}function mm(t,e){e===0&&(e=of()),t=ni(t,e),t!==null&&(va(t,e),Fe(t))}function e1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),mm(t,n)}function n1(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),mm(t,n)}function i1(t,e){return Su(t,e)}var Es=null,ea=null,or=!1,Ms=!1,rr=!1,jn=0;function Fe(t){t!==ea&&t.next===null&&(ea===null?Es=ea=t:ea=ea.next=t),Ms=!0,or||(or=!0,l1())}function $a(t,e){if(!rr&&Ms){rr=!0;do for(var n=!1,a=Es;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-Se(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,vm(a,r))}else r=dt,r=Rl(a,a===zt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||ga(a,r)||(n=!0,vm(a,r));a=a.next}while(n);rr=!1}}function a1(){pm()}function pm(){Ms=or=!1;var t=0;jn!==0&&p1()&&(t=jn);for(var e=ge(),n=null,a=Es;a!==null;){var s=a.next,r=ym(a,e);r===0?(a.next=null,n===null?Es=s:n.next=s,s===null&&(ea=n)):(n=a,(t!==0||(r&3)!==0)&&(Ms=!0)),a=s}Jt!==0&&Jt!==5||$a(t),jn!==0&&(jn=0)}function ym(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-Se(r),y=1<<f,T=s[f];T===-1?((y&n)===0||(y&a)!==0)&&(s[f]=V0(y,e)):T<=e&&(t.expiredLanes|=y),r&=~y}if(e=zt,n=dt,n=Rl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&bu(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ga(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&bu(a),Au(n)){case 2:case 8:n=sf;break;case 32:n=Ml;break;case 268435456:n=uf;break;default:n=Ml}return a=gm.bind(null,t),n=Su(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&bu(a),t.callbackPriority=2,t.callbackNode=null,2}function gm(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(As()&&t.callbackNode!==n)return null;var a=dt;return a=Rl(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:($d(t,a,e),ym(t,ge()),t.callbackNode!=null&&t.callbackNode===n?gm.bind(null,t):null)}function vm(t,e){if(As())return null;$d(t,e,!0)}function l1(){g1(function(){(Tt&6)!==0?Su(lf,a1):pm()})}function cr(){if(jn===0){var t=qi;t===0&&(t=Dl,Dl<<=1,(Dl&261888)===0&&(Dl=256)),jn=t}return jn}function Sm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Nl(""+t)}function bm(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 s1(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=Sm((s[ce]||null).action),f=a.submitter;f&&(e=(e=f[ce]||null)?Sm(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new jl("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(jn!==0){var T=f?bm(s,f):new FormData(s);Oo(n,{pending:!0,data:T,method:s.method,action:r},null,T)}}else typeof r=="function"&&(y.preventDefault(),T=f?bm(s,f):new FormData(s),Oo(n,{pending:!0,data:T,method:s.method,action:r},r,T))},currentTarget:s}]})}}for(var fr=0;fr<Ku.length;fr++){var hr=Ku[fr],u1=hr.toLowerCase(),o1=hr[0].toUpperCase()+hr.slice(1);qe(u1,"on"+o1)}qe(Pf,"onAnimationEnd"),qe($f,"onAnimationIteration"),qe(If,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(Ev,"onTransitionRun"),qe(Mv,"onTransitionStart"),qe(Dv,"onTransitionCancel"),qe(th,"onTransitionEnd"),Di("onMouseEnter",["mouseout","mouseover"]),Di("onMouseLeave",["mouseout","mouseover"]),Di("onPointerEnter",["pointerout","pointerover"]),Di("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 Ia="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(" "),r1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ia));function Tm(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],T=y.instance,C=y.currentTarget;if(y=y.listener,T!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=C;try{r(s)}catch(_){ql(_)}s.currentTarget=null,r=T}else for(f=0;f<a.length;f++){if(y=a[f],T=y.instance,C=y.currentTarget,y=y.listener,T!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=C;try{r(s)}catch(_){ql(_)}s.currentTarget=null,r=T}}}}function ht(t,e){var n=e[Eu];n===void 0&&(n=e[Eu]=new Set);var a=t+"__bubble";n.has(a)||(xm(e,t,2,!1),n.add(a))}function dr(t,e,n){var a=0;e&&(a|=4),xm(n,t,a,e)}var Ds="_reactListening"+Math.random().toString(36).slice(2);function mr(t){if(!t[Ds]){t[Ds]=!0,pf.forEach(function(n){n!=="selectionchange"&&(r1.has(n)||dr(n,!1,t),dr(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ds]||(e[Ds]=!0,dr("selectionchange",!1,e))}}function xm(t,e,n,a){switch(Pm(e)){case 2:var s=j1;break;case 8:s=L1;break;default:s=Rr}n=s.bind(null,e,n,t),s=void 0,!Nu||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 pr(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 T=f.tag;if((T===3||T===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;y!==null;){if(f=Ai(y),f===null)return;if(T=f.tag,T===5||T===6||T===26||T===27){a=r=f;continue t}y=y.parentNode}}a=a.return}Cf(function(){var C=r,_=Vu(n),w=[];t:{var z=eh.get(t);if(z!==void 0){var O=jl,k=t;switch(t){case"keypress":if(Ul(n)===0)break t;case"keydown":case"keyup":O=nv;break;case"focusin":k="focus",O=ju;break;case"focusout":k="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=Of;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Z0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=lv;break;case Pf:case $f:case If:O=J0;break;case th:O=uv;break;case"scroll":case"scrollend":O=G0;break;case"wheel":O=rv;break;case"copy":case"cut":case"paste":O=F0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=_f;break;case"toggle":case"beforetoggle":O=fv}var nt=(e&4)!==0,Ct=!nt&&(t==="scroll"||t==="scrollend"),E=nt?z!==null?z+"Capture":null:z;nt=[];for(var x=C,D;x!==null;){var N=x;if(D=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||D===null||E===null||(N=Ta(x,E),N!=null&&nt.push(tl(x,N,D))),Ct)break;x=x.return}0<nt.length&&(z=new O(z,k,null,n,_),w.push({event:z,listeners:nt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",z&&n!==Ou&&(k=n.relatedTarget||n.fromElement)&&(Ai(k)||k[xi]))break t;if((O||z)&&(z=_.window===_?_:(z=_.ownerDocument)?z.defaultView||z.parentWindow:window,O?(k=n.relatedTarget||n.toElement,O=C,k=k?Ai(k):null,k!==null&&(Ct=d(k),nt=k.tag,k!==Ct||nt!==5&&nt!==27&&nt!==6)&&(k=null)):(O=null,k=C),O!==k)){if(nt=Of,N="onMouseLeave",E="onMouseEnter",x="mouse",(t==="pointerout"||t==="pointerover")&&(nt=_f,N="onPointerLeave",E="onPointerEnter",x="pointer"),Ct=O==null?z:ba(O),D=k==null?z:ba(k),z=new nt(N,x+"leave",O,n,_),z.target=Ct,z.relatedTarget=D,N=null,Ai(_)===C&&(nt=new nt(E,x+"enter",k,n,_),nt.target=D,nt.relatedTarget=Ct,N=nt),Ct=N,O&&k)e:{for(nt=c1,E=O,x=k,D=0,N=E;N;N=nt(N))D++;N=0;for(var et=x;et;et=nt(et))N++;for(;0<D-N;)E=nt(E),D--;for(;0<N-D;)x=nt(x),N--;for(;D--;){if(E===x||x!==null&&E===x.alternate){nt=E;break e}E=nt(E),x=nt(x)}nt=null}else nt=null;O!==null&&Am(w,z,O,nt,!1),k!==null&&Ct!==null&&Am(w,Ct,k,nt,!0)}}t:{if(z=C?ba(C):window,O=z.nodeName&&z.nodeName.toLowerCase(),O==="select"||O==="input"&&z.type==="file")var St=qf;else if(Lf(z))if(Yf)St=Tv;else{St=Sv;var P=vv}else O=z.nodeName,!O||O.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&Ru(C.elementType)&&(St=qf):St=bv;if(St&&(St=St(t,C))){Hf(w,St,n,_);break t}P&&P(t,z,C),t==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&zu(z,"number",z.value)}switch(P=C?ba(C):window,t){case"focusin":(Lf(P)||P.contentEditable==="true")&&(_i=P,Xu=C,Ra=null);break;case"focusout":Ra=Xu=_i=null;break;case"mousedown":Zu=!0;break;case"contextmenu":case"mouseup":case"dragend":Zu=!1,Ff(w,n,_);break;case"selectionchange":if(Av)break;case"keydown":case"keyup":Ff(w,n,_)}var rt;if(Hu)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else Vi?Bf(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Nf&&n.locale!=="ko"&&(Vi||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Vi&&(rt=zf()):(Tn=_,wu="value"in Tn?Tn.value:Tn.textContent,Vi=!0)),P=Cs(C,mt),0<P.length&&(mt=new Vf(mt,t,null,n,_),w.push({event:mt,listeners:P}),rt?mt.data=rt:(rt=jf(n),rt!==null&&(mt.data=rt)))),(rt=dv?mv(t,n):pv(t,n))&&(mt=Cs(C,"onBeforeInput"),0<mt.length&&(P=new Vf("onBeforeInput","beforeinput",null,n,_),w.push({event:P,listeners:mt}),P.data=rt)),s1(w,t,C,n,_)}Tm(w,e)})}function tl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Cs(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=Ta(t,n),s!=null&&a.unshift(tl(t,s,r)),s=Ta(t,e),s!=null&&a.push(tl(t,s,r))),t.tag===3)return a;t=t.return}return[]}function c1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Am(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,T=y.alternate,C=y.stateNode;if(y=y.tag,T!==null&&T===a)break;y!==5&&y!==26&&y!==27||C===null||(T=C,s?(C=Ta(n,r),C!=null&&f.unshift(tl(n,C,T))):s||(C=Ta(n,r),C!=null&&f.push(tl(n,C,T)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var f1=/\r\n?/g,h1=/\u0000|\uFFFD/g;function Em(t){return(typeof t=="string"?t:""+t).replace(f1,`
`).replace(h1,"")}function Mm(t,e){return e=Em(e),Em(t)===e}function Dt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||zi(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&zi(t,""+a);break;case"className":Vl(t,"class",a);break;case"tabIndex":Vl(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Vl(t,n,a);break;case"style":Mf(t,a,r);break;case"data":if(e!=="object"){Vl(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=Nl(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(e!=="input"&&Dt(t,e,"name",s.name,s,null),Dt(t,e,"formEncType",s.formEncType,s,null),Dt(t,e,"formMethod",s.formMethod,s,null),Dt(t,e,"formTarget",s.formTarget,s,null)):(Dt(t,e,"encType",s.encType,s,null),Dt(t,e,"method",s.method,s,null),Dt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Nl(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=en);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Nl(""+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":ht("beforetoggle",t),ht("toggle",t),Ol(t,"popover",a);break;case"xlinkActuate":tn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":tn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":tn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":tn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":tn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":tn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":tn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":tn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":tn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ol(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=q0.get(n)||n,Ol(t,n,a))}}function yr(t,e,n,a,s,r){switch(n){case"style":Mf(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?zi(t,a):(typeof a=="number"||typeof a=="bigint")&&zi(t,""+a);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"onClick":a!=null&&(t.onclick=en);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),r=t[ce]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,s),typeof a=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,s);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Ol(t,n,a)}}}function ne(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var a=!1,s=!1,r;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Dt(t,e,r,f,n,null)}}s&&Dt(t,e,"srcSet",n.srcSet,n,null),a&&Dt(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var y=r=f=s=null,T=null,C=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":T=_;break;case"defaultChecked":C=_;break;case"value":r=_;break;case"defaultValue":y=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:Dt(t,e,a,_,n,null)}}Tf(t,r,y,T,C,f,s,!1);return;case"select":ht("invalid",t),a=f=r=null;for(s in n)if(n.hasOwnProperty(s)&&(y=n[s],y!=null))switch(s){case"value":r=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:Dt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?Ci(t,!!a,e,!1):n!=null&&Ci(t,!!a,n,!0);return;case"textarea":ht("invalid",t),r=s=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":s=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:Dt(t,e,f,y,n,null)}Af(t,a,s,r);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(a=n[T],a!=null))switch(T){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Dt(t,e,T,a,n,null)}return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<Ia.length;a++)ht(Ia[a],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("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(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Dt(t,e,C,a,n,null)}return;default:if(Ru(e)){for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!==void 0&&yr(t,e,_,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Dt(t,e,y,a,n,null))}function d1(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,T=null,C=null,_=null;for(O in n){var w=n[O];if(n.hasOwnProperty(O)&&w!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":T=w;default:a.hasOwnProperty(O)||Dt(t,e,O,null,a,w)}}for(var z in a){var O=a[z];if(w=n[z],a.hasOwnProperty(z)&&(O!=null||w!=null))switch(z){case"type":r=O;break;case"name":s=O;break;case"checked":C=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(o(137,e));break;default:O!==w&&Dt(t,e,z,O,a,w)}}Cu(t,f,y,T,C,_,r,s);return;case"select":O=f=y=z=null;for(r in n)if(T=n[r],n.hasOwnProperty(r)&&T!=null)switch(r){case"value":break;case"multiple":O=T;default:a.hasOwnProperty(r)||Dt(t,e,r,null,a,T)}for(s in a)if(r=a[s],T=n[s],a.hasOwnProperty(s)&&(r!=null||T!=null))switch(s){case"value":z=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==T&&Dt(t,e,s,r,a,T)}e=y,n=f,a=O,z!=null?Ci(t,!!n,z,!1):!!a!=!!n&&(e!=null?Ci(t,!!n,e,!0):Ci(t,!!n,n?[]:"",!1));return;case"textarea":O=z=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Dt(t,e,y,null,a,s)}for(f in a)if(s=a[f],r=n[f],a.hasOwnProperty(f)&&(s!=null||r!=null))switch(f){case"value":z=s;break;case"defaultValue":O=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==r&&Dt(t,e,f,s,a,r)}xf(t,z,O);return;case"option":for(var k in n)if(z=n[k],n.hasOwnProperty(k)&&z!=null&&!a.hasOwnProperty(k))switch(k){case"selected":t.selected=!1;break;default:Dt(t,e,k,null,a,z)}for(T in a)if(z=a[T],O=n[T],a.hasOwnProperty(T)&&z!==O&&(z!=null||O!=null))switch(T){case"selected":t.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Dt(t,e,T,z,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 nt in n)z=n[nt],n.hasOwnProperty(nt)&&z!=null&&!a.hasOwnProperty(nt)&&Dt(t,e,nt,null,a,z);for(C in a)if(z=a[C],O=n[C],a.hasOwnProperty(C)&&z!==O&&(z!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Dt(t,e,C,z,a,O)}return;default:if(Ru(e)){for(var Ct in n)z=n[Ct],n.hasOwnProperty(Ct)&&z!==void 0&&!a.hasOwnProperty(Ct)&&yr(t,e,Ct,void 0,a,z);for(_ in a)z=a[_],O=n[_],!a.hasOwnProperty(_)||z===O||z===void 0&&O===void 0||yr(t,e,_,z,a,O);return}}for(var E in n)z=n[E],n.hasOwnProperty(E)&&z!=null&&!a.hasOwnProperty(E)&&Dt(t,e,E,null,a,z);for(w in a)z=a[w],O=n[w],!a.hasOwnProperty(w)||z===O||z==null&&O==null||Dt(t,e,w,z,a,O)}function Dm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function m1(){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&&Dm(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var T=n[a],C=T.startTime;if(C>y)break;var _=T.transferSize,w=T.initiatorType;_&&Dm(w)&&(T=T.responseEnd,f+=_*(T<y?1:(y-C)/(T-C)))}if(--a,e+=8*(r+f)/(s.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var gr=null,vr=null;function zs(t){return t.nodeType===9?t:t.ownerDocument}function Cm(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 zm(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 Sr(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 br=null;function p1(){var t=window.event;return t&&t.type==="popstate"?t===br?!1:(br=t,!0):(br=null,!1)}var Rm=typeof setTimeout=="function"?setTimeout:void 0,y1=typeof clearTimeout=="function"?clearTimeout:void 0,Om=typeof Promise=="function"?Promise:void 0,g1=typeof queueMicrotask=="function"?queueMicrotask:typeof Om<"u"?function(t){return Om.resolve(null).then(t).catch(v1)}:Rm;function v1(t){setTimeout(function(){throw t})}function Ln(t){return t==="head"}function Vm(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),la(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")el(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,el(n);for(var r=n.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[Sa]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&el(t.ownerDocument.body);n=s}while(n);la(e)}function _m(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 Tr(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":Tr(n),Mu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function S1(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[Sa])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=Be(t.nextSibling),t===null)break}return null}function b1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Be(t.nextSibling),t===null))return null;return t}function Nm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Be(t.nextSibling),t===null))return null;return t}function xr(t){return t.data==="$?"||t.data==="$~"}function Ar(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function T1(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 Be(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 Er=null;function wm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Be(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Um(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 Bm(t,e,n){switch(e=zs(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function el(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Mu(t)}var je=new Map,jm=new Set;function Rs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vn=Z.d;Z.d={f:x1,r:A1,D:E1,C:M1,L:D1,m:C1,X:R1,S:z1,M:O1};function x1(){var t=vn.f(),e=bs();return t||e}function A1(t){var e=Ei(t);e!==null&&e.tag===5&&e.type==="form"?td(e):vn.r(t)}var na=typeof document>"u"?null:document;function Lm(t,e,n){var a=na;if(a&&typeof e=="string"&&e){var s=Re(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),jm.has(s)||(jm.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),ne(e,"link",t),Ft(e),a.head.appendChild(e)))}}function E1(t){vn.D(t),Lm("dns-prefetch",t,null)}function M1(t,e){vn.C(t,e),Lm("preconnect",t,e)}function D1(t,e,n){vn.L(t,e,n);var a=na;if(a&&t&&e){var s='link[rel="preload"][as="'+Re(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Re(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Re(n.imageSizes)+'"]')):s+='[href="'+Re(t)+'"]';var r=s;switch(e){case"style":r=ia(t);break;case"script":r=aa(t)}je.has(r)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),je.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(nl(r))||e==="script"&&a.querySelector(il(r))||(e=a.createElement("link"),ne(e,"link",t),Ft(e),a.head.appendChild(e)))}}function C1(t,e){vn.m(t,e);var n=na;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Re(a)+'"][href="'+Re(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=aa(t)}if(!je.has(r)&&(t=S({rel:"modulepreload",href:t},e),je.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(il(r)))return}a=n.createElement("link"),ne(a,"link",t),Ft(a),n.head.appendChild(a)}}}function z1(t,e,n){vn.S(t,e,n);var a=na;if(a&&t){var s=Mi(a).hoistableStyles,r=ia(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(nl(r)))y.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=je.get(r))&&Mr(t,n);var T=f=a.createElement("link");Ft(T),ne(T,"link",t),T._p=new Promise(function(C,_){T.onload=C,T.onerror=_}),T.addEventListener("load",function(){y.loading|=1}),T.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Os(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function R1(t,e){vn.X(t,e);var n=na;if(n&&t){var a=Mi(n).hoistableScripts,s=aa(t),r=a.get(s);r||(r=n.querySelector(il(s)),r||(t=S({src:t,async:!0},e),(e=je.get(s))&&Dr(t,e),r=n.createElement("script"),Ft(r),ne(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function O1(t,e){vn.M(t,e);var n=na;if(n&&t){var a=Mi(n).hoistableScripts,s=aa(t),r=a.get(s);r||(r=n.querySelector(il(s)),r||(t=S({src:t,async:!0,type:"module"},e),(e=je.get(s))&&Dr(t,e),r=n.createElement("script"),Ft(r),ne(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function Hm(t,e,n,a){var s=(s=ct.current)?Rs(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ia(n.href),n=Mi(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=ia(n.href);var r=Mi(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(nl(t)))&&!r._p&&(f.instance=r,f.state.loading=5),je.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},je.set(t,n),r||V1(s,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=aa(n),n=Mi(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ia(t){return'href="'+Re(t)+'"'}function nl(t){return'link[rel="stylesheet"]['+t+"]"}function qm(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function V1(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ne(e,"link",n),Ft(e),t.head.appendChild(e))}function aa(t){return'[src="'+Re(t)+'"]'}function il(t){return"script[async]"+t}function Ym(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Re(n.href)+'"]');if(a)return e.instance=a,Ft(a),a;var s=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ft(a),ne(a,"style",s),Os(a,n.precedence,t),e.instance=a;case"stylesheet":s=ia(n.href);var r=t.querySelector(nl(s));if(r)return e.state.loading|=4,e.instance=r,Ft(r),r;a=qm(n),(s=je.get(s))&&Mr(a,s),r=(t.ownerDocument||t).createElement("link"),Ft(r);var f=r;return f._p=new Promise(function(y,T){f.onload=y,f.onerror=T}),ne(r,"link",a),e.state.loading|=4,Os(r,n.precedence,t),e.instance=r;case"script":return r=aa(n.src),(s=t.querySelector(il(r)))?(e.instance=s,Ft(s),s):(a=n,(s=je.get(r))&&(a=S({},n),Dr(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),Ft(s),ne(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Os(a,n.precedence,t));return e.instance}function Os(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 Mr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Dr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Vs=null;function Gm(t,e,n){if(Vs===null){var a=new Map,s=Vs=new Map;s.set(n,a)}else s=Vs,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[Sa]||r[$t]||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 Xm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function _1(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!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 Zm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function N1(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=ia(a.href),r=e.querySelector(nl(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=_s.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Ft(r);return}r=e.ownerDocument||e,a=qm(a),(s=je.get(s))&&Mr(a,s),r=r.createElement("link"),Ft(r);var f=r;f._p=new Promise(function(y,T){f.onload=y,f.onerror=T}),ne(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=_s.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Cr=0;function w1(t,e){return t.stylesheets&&t.count===0&&ws(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&ws(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Cr===0&&(Cr=62500*m1());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ws(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Cr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function _s(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ws(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ns=null;function ws(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ns=new Map,e.forEach(U1,t),Ns=null,_s.call(t))}function U1(t,e){if(!(e.state.loading&4)){var n=Ns.get(t);if(n)var a=n.get(null);else{n=new Map,Ns.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=_s.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 al={$$typeof:H,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function B1(t,e,n,a,s,r,f,y,T){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=Tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tu(0),this.hiddenUpdates=Tu(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Qm(t,e,n,a,s,r,f,y,T,C,_,w){return t=new B1(t,e,n,f,T,C,_,w,y),e=1,r===!0&&(e|=24),r=Te(3,null,null,e),t.current=r,r.stateNode=t,e=lo(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},ro(r),t}function Km(t){return t?(t=Ui,t):Ui}function Jm(t,e,n,a,s,r){s=Km(s),a.context===null?a.context=s:a.pendingContext=s,a=Cn(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=zn(t,a,e),n!==null&&(ye(n,t,e),Ba(n,t,e))}function km(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function zr(t,e){km(t,e),(t=t.alternate)&&km(t,e)}function Fm(t){if(t.tag===13||t.tag===31){var e=ni(t,67108864);e!==null&&ye(e,t,67108864),zr(t,67108864)}}function Wm(t){if(t.tag===13||t.tag===31){var e=De();e=xu(e);var n=ni(t,e);n!==null&&ye(n,t,e),zr(t,e)}}var Us=!0;function j1(t,e,n,a){var s=V.T;V.T=null;var r=Z.p;try{Z.p=2,Rr(t,e,n,a)}finally{Z.p=r,V.T=s}}function L1(t,e,n,a){var s=V.T;V.T=null;var r=Z.p;try{Z.p=8,Rr(t,e,n,a)}finally{Z.p=r,V.T=s}}function Rr(t,e,n,a){if(Us){var s=Or(a);if(s===null)pr(t,e,a,Bs,n),$m(t,a);else if(q1(s,t,e,n,a))a.stopPropagation();else if($m(t,a),e&4&&-1<H1.indexOf(t)){for(;s!==null;){var r=Ei(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Pn(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var T=1<<31-Se(f);y.entanglements[1]|=T,f&=~T}Fe(r),(Tt&6)===0&&(vs=ge()+500,$a(0))}}break;case 31:case 13:y=ni(r,2),y!==null&&ye(y,r,2),bs(),zr(r,2)}if(r=Or(a),r===null&&pr(t,e,a,Bs,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else pr(t,e,a,null,n)}}function Or(t){return t=Vu(t),Vr(t)}var Bs=null;function Vr(t){if(Bs=null,t=Ai(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(e),t!==null)return t;t=null}else if(n===31){if(t=m(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 Bs=t,null}function Pm(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(E0()){case lf:return 2;case sf:return 8;case Ml:case M0:return 32;case uf:return 268435456;default:return 32}default:return 32}}var _r=!1,Hn=null,qn=null,Yn=null,ll=new Map,sl=new Map,Gn=[],H1="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 $m(t,e){switch(t){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":ll.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(e.pointerId)}}function ul(t,e,n,a,s,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[s]},e!==null&&(e=Ei(e),e!==null&&Fm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function q1(t,e,n,a,s){switch(e){case"focusin":return Hn=ul(Hn,t,e,n,a,s),!0;case"dragenter":return qn=ul(qn,t,e,n,a,s),!0;case"mouseover":return Yn=ul(Yn,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return ll.set(r,ul(ll.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,sl.set(r,ul(sl.get(r)||null,t,e,n,a,s)),!0}return!1}function Im(t){var e=Ai(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,df(t.priority,function(){Wm(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,df(t.priority,function(){Wm(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 js(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Or(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Ou=a,n.target.dispatchEvent(a),Ou=null}else return e=Ei(n),e!==null&&Fm(e),t.blockedOn=n,!1;e.shift()}return!0}function tp(t,e,n){js(t)&&n.delete(e)}function Y1(){_r=!1,Hn!==null&&js(Hn)&&(Hn=null),qn!==null&&js(qn)&&(qn=null),Yn!==null&&js(Yn)&&(Yn=null),ll.forEach(tp),sl.forEach(tp)}function Ls(t,e){t.blockedOn===e&&(t.blockedOn=null,_r||(_r=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Y1)))}var Hs=null;function ep(t){Hs!==t&&(Hs=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Hs===t&&(Hs=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(Vr(a||n)===null)continue;break}var r=Ei(n);r!==null&&(t.splice(e,3),e-=3,Oo(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function la(t){function e(T){return Ls(T,t)}Hn!==null&&Ls(Hn,t),qn!==null&&Ls(qn,t),Yn!==null&&Ls(Yn,t),ll.forEach(e),sl.forEach(e);for(var n=0;n<Gn.length;n++){var a=Gn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)Im(n),n.blockedOn===null&&Gn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],r=n[a+1],f=s[ce]||null;if(typeof r=="function")f||ep(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[ce]||null)y=f.formAction;else if(Vr(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),ep(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 Nr(t){this._internalRoot=t}qs.prototype.render=Nr.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=De();Jm(n,a,t,e,null,null)},qs.prototype.unmount=Nr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Jm(t.current,2,null,t,null,null),bs(),e[xi]=null}};function qs(t){this._internalRoot=t}qs.prototype.unstable_scheduleHydration=function(t){if(t){var e=hf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Gn.length&&e!==0&&e<Gn[n].priority;n++);Gn.splice(n,0,t),n===0&&Im(t)}};var ip=l.version;if(ip!=="19.2.4")throw Error(o(527,ip,"19.2.4"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=p(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var G1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ys.isDisabled&&Ys.supportsFiber)try{ya=Ys.inject(G1),ve=Ys}catch{}}return rl.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,a="",s=cd,r=fd,f=hd;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=Qm(t,1,!1,null,null,n,a,null,s,r,f,np),t[xi]=e.current,mr(t),new Nr(e)},rl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var a=!1,s="",r=cd,f=fd,y=hd,T=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&&(T=n.formState)),e=Qm(t,1,!0,e,n??null,a,s,T,r,f,y,np),e.context=Km(null),n=e.current,a=De(),a=xu(a),s=Cn(a),s.callback=null,zn(n,s,a),n=a,e.current.lanes=n,va(e,n),Fe(e),t[xi]=e.current,mr(t),new qs(e)},rl.version="19.2.4",rl}var dp;function $1(){if(dp)return Br.exports;dp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Br.exports=P1(),Br.exports}var I1=$1();/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tS=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eS=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,u,o)=>o?o.toUpperCase():u.toLowerCase()),mp=i=>{const l=eS(i);return l.charAt(0).toUpperCase()+l.slice(1)},wy=(...i)=>i.filter((l,u,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===u).join(" ").trim(),nS=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var iS={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"};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aS=X.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:h,...m},g)=>X.createElement("svg",{ref:g,...iS,width:l,height:l,stroke:i,strokeWidth:o?Number(u)*24/Number(l):u,className:wy("lucide",c),...!d&&!nS(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,v])=>X.createElement(p,v)),...Array.isArray(d)?d:[d]]));/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ti=(i,l)=>{const u=X.forwardRef(({className:o,...c},d)=>X.createElement(aS,{ref:d,iconNode:l,className:wy(`lucide-${tS(mp(i))}`,`lucide-${i}`,o),...c}));return u.displayName=mp(i),u};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],sS=Ti("circle-alert",lS);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uS=[["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"}]],oS=Ti("external-link",uS);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],pp=Ti("globe",rS);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],fS=Ti("info",cS);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hS=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],dS=Ti("monitor",hS);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mS=[["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"}]],yp=Ti("shield",mS);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pS=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],gp=Ti("smartphone",pS),Cc=X.createContext({});function zc(i){const l=X.useRef(null);return l.current===null&&(l.current=i()),l.current}const yS=typeof window<"u",Uy=yS?X.useLayoutEffect:X.useEffect,cu=X.createContext(null);function Rc(i,l){i.indexOf(l)===-1&&i.push(l)}function eu(i,l){const u=i.indexOf(l);u>-1&&i.splice(u,1)}const Ie=(i,l,u)=>u>l?l:u<i?i:u;let Oc=()=>{};const Jn={},By=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function jy(i){return typeof i=="object"&&i!==null}const Ly=i=>/^0[^.\s]+$/u.test(i);function Hy(i){let l;return()=>(l===void 0&&(l=i()),l)}const He=i=>i,gS=(i,l)=>u=>l(i(u)),bl=(...i)=>i.reduce(gS),yl=(i,l,u)=>{const o=l-i;return o===0?1:(u-i)/o};class Vc{constructor(){this.subscriptions=[]}add(l){return Rc(this.subscriptions,l),()=>eu(this.subscriptions,l)}notify(l,u,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,u,o);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,u,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ce=i=>i*1e3,Le=i=>i/1e3;function qy(i,l){return l?i*(1e3/l):0}const Yy=(i,l,u)=>(((1-3*u+3*l)*i+(3*u-6*l))*i+3*l)*i,vS=1e-7,SS=12;function bS(i,l,u,o,c){let d,h,m=0;do h=l+(u-l)/2,d=Yy(h,o,c)-i,d>0?u=h:l=h;while(Math.abs(d)>vS&&++m<SS);return h}function Tl(i,l,u,o){if(i===l&&u===o)return He;const c=d=>bS(d,0,1,i,u);return d=>d===0||d===1?d:Yy(c(d),l,o)}const Gy=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,Xy=i=>l=>1-i(1-l),Zy=Tl(.33,1.53,.69,.99),_c=Xy(Zy),Qy=Gy(_c),Ky=i=>i>=1?1:(i*=2)<1?.5*_c(i):.5*(2-Math.pow(2,-10*(i-1))),Nc=i=>1-Math.sin(Math.acos(i)),Jy=Xy(Nc),ky=Gy(Nc),TS=Tl(.42,0,1,1),xS=Tl(0,0,.58,1),Fy=Tl(.42,0,.58,1),AS=i=>Array.isArray(i)&&typeof i[0]!="number",Wy=i=>Array.isArray(i)&&typeof i[0]=="number",ES={linear:He,easeIn:TS,easeInOut:Fy,easeOut:xS,circIn:Nc,circInOut:ky,circOut:Jy,backIn:_c,backInOut:Qy,backOut:Zy,anticipate:Ky},MS=i=>typeof i=="string",vp=i=>{if(Wy(i)){Oc(i.length===4);const[l,u,o,c]=i;return Tl(l,u,o,c)}else if(MS(i))return ES[i];return i},Gs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function DS(i,l){let u=new Set,o=new Set,c=!1,d=!1;const h=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function g(v){h.has(v)&&(p.schedule(v),i()),v(m)}const p={schedule:(v,S=!1,b=!1)=>{const R=b&&c?u:o;return S&&h.add(v),R.add(v),v},cancel:v=>{o.delete(v),h.delete(v)},process:v=>{if(m=v,c){d=!0;return}c=!0;const S=u;u=o,o=S,u.forEach(g),u.clear(),c=!1,d&&(d=!1,p.process(v))}};return p}const CS=40;function Py(i,l){let u=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,h=Gs.reduce((H,G)=>(H[G]=DS(d),H),{}),{setup:m,read:g,resolveKeyframes:p,preUpdate:v,update:S,preRender:b,render:M,postRender:R}=h,B=()=>{const H=Jn.useManualTiming,G=H?c.timestamp:performance.now();u=!1,H||(c.delta=o?1e3/60:Math.max(Math.min(G-c.timestamp,CS),1)),c.timestamp=G,c.isProcessing=!0,m.process(c),g.process(c),p.process(c),v.process(c),S.process(c),b.process(c),M.process(c),R.process(c),c.isProcessing=!1,u&&l&&(o=!1,i(B))},j=()=>{u=!0,o=!0,c.isProcessing||i(B)};return{schedule:Gs.reduce((H,G)=>{const J=h[G];return H[G]=(lt,I=!1,$=!1)=>(u||j(),J.schedule(lt,I,$)),H},{}),cancel:H=>{for(let G=0;G<Gs.length;G++)h[Gs[G]].cancel(H)},state:c,steps:h}}const{schedule:Rt,cancel:kn,state:ie,steps:qr}=Py(typeof requestAnimationFrame<"u"?requestAnimationFrame:He,!0);let Js;function zS(){Js=void 0}const oe={now:()=>(Js===void 0&&oe.set(ie.isProcessing||Jn.useManualTiming?ie.timestamp:performance.now()),Js),set:i=>{Js=i,queueMicrotask(zS)}},$y=i=>l=>typeof l=="string"&&l.startsWith(i),Iy=$y("--"),RS=$y("var(--"),wc=i=>RS(i)?OS.test(i.split("/*")[0].trim()):!1,OS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Sp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const ha={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},gl={...ha,transform:i=>Ie(0,1,i)},Xs={...ha,default:1},hl=i=>Math.round(i*1e5)/1e5,Uc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VS(i){return i==null}const _S=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Bc=(i,l)=>u=>!!(typeof u=="string"&&_S.test(u)&&u.startsWith(i)||l&&!VS(u)&&Object.prototype.hasOwnProperty.call(u,l)),tg=(i,l,u)=>o=>{if(typeof o!="string")return o;const[c,d,h,m]=o.match(Uc);return{[i]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(h),alpha:m!==void 0?parseFloat(m):1}},NS=i=>Ie(0,255,i),Yr={...ha,transform:i=>Math.round(NS(i))},gi={test:Bc("rgb","red"),parse:tg("red","green","blue"),transform:({red:i,green:l,blue:u,alpha:o=1})=>"rgba("+Yr.transform(i)+", "+Yr.transform(l)+", "+Yr.transform(u)+", "+hl(gl.transform(o))+")"};function wS(i){let l="",u="",o="",c="";return i.length>5?(l=i.substring(1,3),u=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),u=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,u+=u,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(u,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const nc={test:Bc("#"),parse:wS,transform:gi.transform},xl=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),Zn=xl("deg"),$e=xl("%"),F=xl("px"),US=xl("vh"),BS=xl("vw"),bp={...$e,parse:i=>$e.parse(i)/100,transform:i=>$e.transform(i*100)},ua={test:Bc("hsl","hue"),parse:tg("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:u,alpha:o=1})=>"hsla("+Math.round(i)+", "+$e.transform(hl(l))+", "+$e.transform(hl(u))+", "+hl(gl.transform(o))+")"},Kt={test:i=>gi.test(i)||nc.test(i)||ua.test(i),parse:i=>gi.test(i)?gi.parse(i):ua.test(i)?ua.parse(i):nc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?gi.transform(i):ua.transform(i),getAnimatableNone:i=>{const l=Kt.parse(i);return l.alpha=0,Kt.transform(l)}},jS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function LS(i){var l,u;return isNaN(i)&&typeof i=="string"&&(((l=i.match(Uc))==null?void 0:l.length)||0)+(((u=i.match(jS))==null?void 0:u.length)||0)>0}const eg="number",ng="color",HS="var",qS="var(",Tp="${}",YS=/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 ca(i){const l=i.toString(),u=[],o={color:[],number:[],var:[]},c=[];let d=0;const m=l.replace(YS,g=>(Kt.test(g)?(o.color.push(d),c.push(ng),u.push(Kt.parse(g))):g.startsWith(qS)?(o.var.push(d),c.push(HS),u.push(g)):(o.number.push(d),c.push(eg),u.push(parseFloat(g))),++d,Tp)).split(Tp);return{values:u,split:m,indexes:o,types:c}}function GS(i){return ca(i).values}function ig({split:i,types:l}){const u=i.length;return o=>{let c="";for(let d=0;d<u;d++)if(c+=i[d],o[d]!==void 0){const h=l[d];h===eg?c+=hl(o[d]):h===ng?c+=Kt.transform(o[d]):c+=o[d]}return c}}function XS(i){return ig(ca(i))}const ZS=i=>typeof i=="number"?0:Kt.test(i)?Kt.getAnimatableNone(i):i,QS=(i,l)=>typeof i=="number"?l!=null&&l.trim().endsWith("/")?i:0:ZS(i);function KS(i){const l=ca(i);return ig(l)(l.values.map((o,c)=>QS(o,l.split[c])))}const Qe={test:LS,parse:GS,createTransformer:XS,getAnimatableNone:KS};function Gr(i,l,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?i+(l-i)*6*u:u<1/2?l:u<2/3?i+(l-i)*(2/3-u)*6:i}function JS({hue:i,saturation:l,lightness:u,alpha:o}){i/=360,l/=100,u/=100;let c=0,d=0,h=0;if(!l)c=d=h=u;else{const m=u<.5?u*(1+l):u+l-u*l,g=2*u-m;c=Gr(g,m,i+1/3),d=Gr(g,m,i),h=Gr(g,m,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function nu(i,l){return u=>u>0?l:i}const Nt=(i,l,u)=>i+(l-i)*u,Xr=(i,l,u)=>{const o=i*i,c=u*(l*l-o)+o;return c<0?0:Math.sqrt(c)},kS=[nc,gi,ua],FS=i=>kS.find(l=>l.test(i));function xp(i){const l=FS(i);if(!l)return!1;let u=l.parse(i);return l===ua&&(u=JS(u)),u}const Ap=(i,l)=>{const u=xp(i),o=xp(l);if(!u||!o)return nu(i,l);const c={...u};return d=>(c.red=Xr(u.red,o.red,d),c.green=Xr(u.green,o.green,d),c.blue=Xr(u.blue,o.blue,d),c.alpha=Nt(u.alpha,o.alpha,d),gi.transform(c))},ic=new Set(["none","hidden"]);function WS(i,l){return ic.has(i)?u=>u<=0?i:l:u=>u>=1?l:i}function PS(i,l){return u=>Nt(i,l,u)}function jc(i){return typeof i=="number"?PS:typeof i=="string"?wc(i)?nu:Kt.test(i)?Ap:tb:Array.isArray(i)?ag:typeof i=="object"?Kt.test(i)?Ap:$S:nu}function ag(i,l){const u=[...i],o=u.length,c=i.map((d,h)=>jc(d)(d,l[h]));return d=>{for(let h=0;h<o;h++)u[h]=c[h](d);return u}}function $S(i,l){const u={...i,...l},o={};for(const c in u)i[c]!==void 0&&l[c]!==void 0&&(o[c]=jc(i[c])(i[c],l[c]));return c=>{for(const d in o)u[d]=o[d](c);return u}}function IS(i,l){const u=[],o={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][o[d]],m=i.values[h]??0;u[c]=m,o[d]++}return u}const tb=(i,l)=>{const u=Qe.createTransformer(l),o=ca(i),c=ca(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?ic.has(i)&&!c.values.length||ic.has(l)&&!o.values.length?WS(i,l):bl(ag(IS(o,c),c.values),u):nu(i,l)};function lg(i,l,u){return typeof i=="number"&&typeof l=="number"&&typeof u=="number"?Nt(i,l,u):jc(i)(i,l)}const eb=i=>{const l=({timestamp:u})=>i(u);return{start:(u=!0)=>Rt.update(l,u),stop:()=>kn(l),now:()=>ie.isProcessing?ie.timestamp:oe.now()}},sg=(i,l,u=10)=>{let o="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)o+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},iu=2e4;function Lc(i){let l=0;const u=50;let o=i.next(l);for(;!o.done&&l<iu;)l+=u,o=i.next(l);return l>=iu?1/0:l}function nb(i,l=100,u){const o=u({...i,keyframes:[0,l]}),c=Math.min(Lc(o),iu);return{type:"keyframes",ease:d=>o.next(c*d).value/l,duration:Le(c)}}const Bt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function ac(i,l){return i*Math.sqrt(1-l*l)}const ib=12;function ab(i,l,u){let o=u;for(let c=1;c<ib;c++)o=o-i(o)/l(o);return o}const Zr=.001;function lb({duration:i=Bt.duration,bounce:l=Bt.bounce,velocity:u=Bt.velocity,mass:o=Bt.mass}){let c,d,h=1-l;h=Ie(Bt.minDamping,Bt.maxDamping,h),i=Ie(Bt.minDuration,Bt.maxDuration,Le(i)),h<1?(c=p=>{const v=p*h,S=v*i,b=v-u,M=ac(p,h),R=Math.exp(-S);return Zr-b/M*R},d=p=>{const S=p*h*i,b=S*u+u,M=Math.pow(h,2)*Math.pow(p,2)*i,R=Math.exp(-S),B=ac(Math.pow(p,2),h);return(-c(p)+Zr>0?-1:1)*((b-M)*R)/B}):(c=p=>{const v=Math.exp(-p*i),S=(p-u)*i+1;return-Zr+v*S},d=p=>{const v=Math.exp(-p*i),S=(u-p)*(i*i);return v*S});const m=5/i,g=ab(c,d,m);if(i=Ce(i),isNaN(g))return{stiffness:Bt.stiffness,damping:Bt.damping,duration:i};{const p=Math.pow(g,2)*o;return{stiffness:p,damping:h*2*Math.sqrt(o*p),duration:i}}}const sb=["duration","bounce"],ub=["stiffness","damping","mass"];function Ep(i,l){return l.some(u=>i[u]!==void 0)}function ob(i){let l={velocity:Bt.velocity,stiffness:Bt.stiffness,damping:Bt.damping,mass:Bt.mass,isResolvedFromDuration:!1,...i};if(!Ep(i,ub)&&Ep(i,sb))if(l.velocity=0,i.visualDuration){const u=i.visualDuration,o=2*Math.PI/(u*1.2),c=o*o,d=2*Ie(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:Bt.mass,stiffness:c,damping:d}}else{const u=lb({...i,velocity:0});l={...l,...u,mass:Bt.mass},l.isResolvedFromDuration=!0}return l}function au(i=Bt.visualDuration,l=Bt.bounce){const u=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=u;const d=u.keyframes[0],h=u.keyframes[u.keyframes.length-1],m={done:!1,value:d},{stiffness:g,damping:p,mass:v,duration:S,velocity:b,isResolvedFromDuration:M}=ob({...u,velocity:-Le(u.velocity||0)}),R=b||0,B=p/(2*Math.sqrt(g*v)),j=h-d,L=Le(Math.sqrt(g/v)),Y=Math.abs(j)<5;o||(o=Y?Bt.restSpeed.granular:Bt.restSpeed.default),c||(c=Y?Bt.restDelta.granular:Bt.restDelta.default);let H,G,J,lt,I,$;if(B<1)J=ac(L,B),lt=(R+B*L*j)/J,H=tt=>{const pt=Math.exp(-B*L*tt);return h-pt*(lt*Math.sin(J*tt)+j*Math.cos(J*tt))},I=B*L*lt+j*J,$=B*L*j-lt*J,G=tt=>Math.exp(-B*L*tt)*(I*Math.sin(J*tt)+$*Math.cos(J*tt));else if(B===1){H=pt=>h-Math.exp(-L*pt)*(j+(R+L*j)*pt);const tt=R+L*j;G=pt=>Math.exp(-L*pt)*(L*tt*pt-R)}else{const tt=L*Math.sqrt(B*B-1);H=Yt=>{const jt=Math.exp(-B*L*Yt),V=Math.min(tt*Yt,300);return h-jt*((R+B*L*j)*Math.sinh(V)+tt*j*Math.cosh(V))/tt};const pt=(R+B*L*j)/tt,vt=B*L*pt-j*tt,Pt=B*L*j-pt*tt;G=Yt=>{const jt=Math.exp(-B*L*Yt),V=Math.min(tt*Yt,300);return jt*(vt*Math.sinh(V)+Pt*Math.cosh(V))}}const it={calculatedDuration:M&&S||null,velocity:tt=>Ce(G(tt)),next:tt=>{if(!M&&B<1){const vt=Math.exp(-B*L*tt),Pt=Math.sin(J*tt),Yt=Math.cos(J*tt),jt=h-vt*(lt*Pt+j*Yt),V=Ce(vt*(I*Pt+$*Yt));return m.done=Math.abs(V)<=o&&Math.abs(h-jt)<=c,m.value=m.done?h:jt,m}const pt=H(tt);if(M)m.done=tt>=S;else{const vt=Ce(G(tt));m.done=Math.abs(vt)<=o&&Math.abs(h-pt)<=c}return m.value=m.done?h:pt,m},toString:()=>{const tt=Math.min(Lc(it),iu),pt=sg(vt=>it.next(tt*vt).value,tt,30);return tt+"ms "+pt},toTransition:()=>{}};return it}au.applyToOptions=i=>{const l=nb(i,100,au);return i.ease=l.ease,i.duration=Ce(l.duration),i.type="keyframes",i};const rb=5;function ug(i,l,u){const o=Math.max(l-rb,0);return qy(u-i(o),l-o)}function lc({keyframes:i,velocity:l=0,power:u=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:m,max:g,restDelta:p=.5,restSpeed:v}){const S=i[0],b={done:!1,value:S},M=$=>m!==void 0&&$<m||g!==void 0&&$>g,R=$=>m===void 0?g:g===void 0||Math.abs(m-$)<Math.abs(g-$)?m:g;let B=u*l;const j=S+B,L=h===void 0?j:h(j);L!==j&&(B=L-S);const Y=$=>-B*Math.exp(-$/o),H=$=>L+Y($),G=$=>{const it=Y($),tt=H($);b.done=Math.abs(it)<=p,b.value=b.done?L:tt};let J,lt;const I=$=>{M(b.value)&&(J=$,lt=au({keyframes:[b.value,R(b.value)],velocity:ug(H,$,b.value),damping:c,stiffness:d,restDelta:p,restSpeed:v}))};return I(0),{calculatedDuration:null,next:$=>{let it=!1;return!lt&&J===void 0&&(it=!0,G($),I($)),J!==void 0&&$>=J?lt.next($-J):(!it&&G($),b)}}}function cb(i,l,u){const o=[],c=u||Jn.mix||lg,d=i.length-1;for(let h=0;h<d;h++){let m=c(i[h],i[h+1]);if(l){const g=Array.isArray(l)?l[h]||He:l;m=bl(g,m)}o.push(m)}return o}function fb(i,l,{clamp:u=!0,ease:o,mixer:c}={}){const d=i.length;if(Oc(d===l.length),d===1)return()=>l[0];if(d===2&&l[0]===l[1])return()=>l[1];const h=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),l=[...l].reverse());const m=cb(l,o,c),g=m.length,p=v=>{if(h&&v<i[0])return l[0];let S=0;if(g>1)for(;S<i.length-2&&!(v<i[S+1]);S++);const b=yl(i[S],i[S+1],v);return m[S](b)};return u?v=>p(Ie(i[0],i[d-1],v)):p}function hb(i,l){const u=i[i.length-1];for(let o=1;o<=l;o++){const c=yl(0,l,o);i.push(Nt(u,1,c))}}function db(i){const l=[0];return hb(l,i.length-1),l}function mb(i,l){return i.map(u=>u*l)}function pb(i,l){return i.map(()=>l||Fy).splice(0,i.length-1)}function dl({duration:i=300,keyframes:l,times:u,ease:o="easeInOut"}){const c=AS(o)?o.map(vp):vp(o),d={done:!1,value:l[0]},h=mb(u&&u.length===l.length?u:db(l),i),m=fb(h,l,{ease:Array.isArray(c)?c:pb(l,c)});return{calculatedDuration:i,next:g=>(d.value=m(g),d.done=g>=i,d)}}const yb=i=>i!==null;function fu(i,{repeat:l,repeatType:u="loop"},o,c=1){const d=i.filter(yb),m=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!m||o===void 0?d[m]:o}const gb={decay:lc,inertia:lc,tween:dl,keyframes:dl,spring:au};function og(i){typeof i.type=="string"&&(i.type=gb[i.type])}class Hc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,u){return this.finished.then(l,u)}}const vb=i=>i/100;class lu extends Hc{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var o,c;const{motionValue:u}=this.options;u&&u.updatedAt!==oe.now()&&this.tick(oe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(o=this.options).onStop)==null||c.call(o))},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;og(l);const{type:u=dl,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:m}=l;const g=u||dl;g!==dl&&typeof m[0]!="number"&&(this.mixKeyframes=bl(vb,lg(m[0],m[1])),m=[0,100]);const p=g({...l,keyframes:m});d==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...m].reverse(),velocity:-h})),p.calculatedDuration===null&&(p.calculatedDuration=Lc(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(l){const u=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(l,u=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:m,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:v,repeat:S,repeatType:b,repeatDelay:M,type:R,onUpdate:B,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),u?this.currentTime=l:this.updateTime(l);const L=this.currentTime-p*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?L<0:L>c;this.currentTime=Math.max(L,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let H=this.currentTime,G=o;if(S){const $=Math.min(this.currentTime,c)/m;let it=Math.floor($),tt=$%1;!tt&&$>=1&&(tt=1),tt===1&&it--,it=Math.min(it,S+1),!!(it%2)&&(b==="reverse"?(tt=1-tt,M&&(tt-=M/m)):b==="mirror"&&(G=h)),H=Ie(0,1,tt)*m}let J;Y?(this.delayState.value=v[0],J=this.delayState):J=G.next(H),d&&!Y&&(J.value=d(J.value));let{done:lt}=J;!Y&&g!==null&&(lt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&lt);return I&&R!==lc&&(J.value=fu(v,this.options,j,this.speed)),B&&B(J.value),I&&this.finish(),J}then(l,u){return this.finished.then(l,u)}get duration(){return Le(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Le(l)}get time(){return Le(this.currentTime)}set time(l){l=Ce(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=l,this.tick(l))}getGeneratorVelocity(){const l=this.currentTime;if(l<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(l);const u=this.generator.next(l).value;return ug(o=>this.generator.next(o).value,l,u)}get speed(){return this.playbackSpeed}set speed(l){const u=this.playbackSpeed!==l;u&&this.driver&&this.updateTime(oe.now()),this.playbackSpeed=l,u&&this.driver&&(this.time=Le(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:l=eb,startTime:u}=this.options;this.driver||(this.driver=l(h=>this.tick(h))),(d=(c=this.options).onPlay)==null||d.call(c);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=u??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(oe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var l,u;this.notifyFinished(),this.teardown(),this.state="finished",(u=(l=this.options).onComplete)==null||u.call(l)}cancel(){var l,u;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(u=(l=this.options).onCancel)==null||u.call(l)}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){var u;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(u=this.driver)==null||u.stop(),l.observe(this)}}function Sb(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const vi=i=>i*180/Math.PI,sc=i=>{const l=vi(Math.atan2(i[1],i[0]));return uc(l)},bb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:sc,rotateZ:sc,skewX:i=>vi(Math.atan(i[1])),skewY:i=>vi(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},uc=i=>(i=i%360,i<0&&(i+=360),i),Mp=sc,Dp=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),Cp=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Tb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dp,scaleY:Cp,scale:i=>(Dp(i)+Cp(i))/2,rotateX:i=>uc(vi(Math.atan2(i[6],i[5]))),rotateY:i=>uc(vi(Math.atan2(-i[2],i[0]))),rotateZ:Mp,rotate:Mp,skewX:i=>vi(Math.atan(i[4])),skewY:i=>vi(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function oc(i){return i.includes("scale")?1:0}function rc(i,l){if(!i||i==="none")return oc(l);const u=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(u)o=Tb,c=u;else{const m=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=bb,c=m}if(!c)return oc(l);const d=o[l],h=c[1].split(",").map(Ab);return typeof d=="function"?d(h):h[d]}const xb=(i,l)=>{const{transform:u="none"}=getComputedStyle(i);return rc(u,l)};function Ab(i){return parseFloat(i.trim())}const da=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ma=new Set(da),zp=i=>i===ha||i===F,Eb=new Set(["x","y","z"]),Mb=da.filter(i=>!Eb.has(i));function Db(i){const l=[];return Mb.forEach(u=>{const o=i.getValue(u);o!==void 0&&(l.push([u,o.get()]),o.set(u.startsWith("scale")?1:0))}),l}const Kn={width:({x:i},{paddingLeft:l="0",paddingRight:u="0",boxSizing:o})=>{const c=i.max-i.min;return o==="border-box"?c:c-parseFloat(l)-parseFloat(u)},height:({y:i},{paddingTop:l="0",paddingBottom:u="0",boxSizing:o})=>{const c=i.max-i.min;return o==="border-box"?c:c-parseFloat(l)-parseFloat(u)},top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>rc(l,"x"),y:(i,{transform:l})=>rc(l,"y")};Kn.translateX=Kn.x;Kn.translateY=Kn.y;const Si=new Set;let cc=!1,fc=!1,hc=!1;function rg(){if(fc){const i=Array.from(Si).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),u=new Map;l.forEach(o=>{const c=Db(o);c.length&&(u.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=u.get(o);c&&c.forEach(([d,h])=>{var m;(m=o.getValue(d))==null||m.set(h)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}fc=!1,cc=!1,Si.forEach(i=>i.complete(hc)),Si.clear()}function cg(){Si.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(fc=!0)})}function Cb(){hc=!0,cg(),rg(),hc=!1}class qc{constructor(l,u,o,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=u,this.name=o,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(Si.add(this),cc||(cc=!0,Rt.read(cg),Rt.resolveKeyframes(rg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:u,element:o,motionValue:c}=this;if(l[0]===null){const d=c==null?void 0:c.get(),h=l[l.length-1];if(d!==void 0)l[0]=d;else if(o&&u){const m=o.readValue(u,h);m!=null&&(l[0]=m)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}Sb(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),Si.delete(this)}cancel(){this.state==="scheduled"&&(Si.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const zb=i=>i.startsWith("--");function fg(i,l,u){zb(l)?i.style.setProperty(l,u):i.style[l]=u}const Rb={};function hg(i,l){const u=Hy(i);return()=>Rb[l]??u()}const Ob=hg(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),dg=hg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),fl=([i,l,u,o])=>`cubic-bezier(${i}, ${l}, ${u}, ${o})`,Rp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fl([0,.65,.55,1]),circOut:fl([.55,0,1,.45]),backIn:fl([.31,.01,.66,-.59]),backOut:fl([.33,1.53,.69,.99])};function mg(i,l){if(i)return typeof i=="function"?dg()?sg(i,l):"ease-out":Wy(i)?fl(i):Array.isArray(i)?i.map(u=>mg(u,l)||Rp.easeOut):Rp[i]}function Vb(i,l,u,{delay:o=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:m="easeOut",times:g}={},p=void 0){const v={[l]:u};g&&(v.offset=g);const S=mg(m,c);Array.isArray(S)&&(v.easing=S);const b={delay:o,duration:c,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),i.animate(v,b)}function pg(i){return typeof i=="function"&&"applyToOptions"in i}function _b({type:i,...l}){return pg(i)&&dg()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class yg extends Hc{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:u,name:o,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:m,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,Oc(typeof l.type!="string");const p=_b(l);this.animation=Vb(u,o,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=fu(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(v),fg(u,o,v),this.animation.cancel()}g==null||g(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var l,u;(u=(l=this.animation).finish)==null||u.call(l)}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(){var u,o,c;const l=(u=this.options)==null?void 0:u.element;!this.isPseudoElement&&(l!=null&&l.isConnected)&&((c=(o=this.animation).commitStyles)==null||c.call(o))}get duration(){var u,o;const l=((o=(u=this.animation.effect)==null?void 0:u.getComputedTiming)==null?void 0:o.call(u).duration)||0;return Le(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Le(l)}get time(){return Le(Number(this.animation.currentTime)||0)}set time(l){const u=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ce(l),u&&this.animation.pause()}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,rangeStart:u,rangeEnd:o,observe:c}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,l&&Ob()?(this.animation.timeline=l,u&&(this.animation.rangeStart=u),o&&(this.animation.rangeEnd=o),He):c(this)}}const gg={anticipate:Ky,backInOut:Qy,circInOut:ky};function Nb(i){return i in gg}function wb(i){typeof i.ease=="string"&&Nb(i.ease)&&(i.ease=gg[i.ease])}const Qr=10;class Ub extends yg{constructor(l){wb(l),og(l),super(l),l.startTime!==void 0&&l.autoplay!==!1&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:u,onUpdate:o,onComplete:c,element:d,...h}=this.options;if(!u)return;if(l!==void 0){u.set(l);return}const m=new lu({...h,autoplay:!1}),g=Math.max(Qr,oe.now()-this.startTime),p=Ie(0,Qr,g-Qr),v=m.sample(g).value,{name:S}=this.options;d&&S&&fg(d,S,v),u.setWithVelocity(m.sample(Math.max(0,g-p)).value,v,p),m.stop()}}const Op=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Qe.test(i)||i==="0")&&!i.startsWith("url("));function Bb(i){const l=i[0];if(i.length===1)return!0;for(let u=0;u<i.length;u++)if(i[u]!==l)return!0}function jb(i,l,u,o){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=Op(c,l),m=Op(d,l);return!h||!m?!1:Bb(i)||(u==="spring"||pg(u))&&o}function dc(i){i.duration=0,i.type="keyframes"}const vg=new Set(["opacity","clipPath","filter","transform"]),Lb=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Hb(i){for(let l=0;l<i.length;l++)if(typeof i[l]=="string"&&Lb.test(i[l]))return!0;return!1}const qb=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Yb=Hy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Gb(i){var S;const{motionValue:l,name:u,repeatDelay:o,repeatType:c,damping:d,type:h,keyframes:m}=i;if(!(((S=l==null?void 0:l.owner)==null?void 0:S.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:v}=l.owner.getProps();return Yb()&&u&&(vg.has(u)||qb.has(u)&&Hb(m))&&(u!=="transform"||!v)&&!p&&!o&&c!=="mirror"&&d!==0&&h!=="inertia"}const Xb=40;class Zb extends Hc{constructor({autoplay:l=!0,delay:u=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:m,name:g,motionValue:p,element:v,...S}){var R;super(),this.stop=()=>{var B,j;this._animation&&(this._animation.stop(),(B=this.stopTimeline)==null||B.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=oe.now();const b={autoplay:l,delay:u,type:o,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:p,element:v,...S},M=(v==null?void 0:v.KeyframeResolver)||qc;this.keyframeResolver=new M(m,(B,j,L)=>this.onKeyframesResolved(B,j,b,!L),g,p,v),(R=this.keyframeResolver)==null||R.scheduleResolve()}onKeyframesResolved(l,u,o,c){var L,Y;this.keyframeResolver=void 0;const{name:d,type:h,velocity:m,delay:g,isHandoff:p,onUpdate:v}=o;this.resolvedAt=oe.now();let S=!0;jb(l,d,h,m)||(S=!1,(Jn.instantAnimations||!g)&&(v==null||v(fu(l,o,u))),l[0]=l[l.length-1],dc(o),o.repeat=0);const M={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Xb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...o,keyframes:l},R=S&&!p&&Gb(M),B=(Y=(L=M.motionValue)==null?void 0:L.owner)==null?void 0:Y.current;let j;if(R)try{j=new Ub({...M,element:B})}catch{j=new lu(M)}else j=new lu(M);j.finished.then(()=>{this.notifyFinished()}).catch(He),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}get finished(){return this._animation?this.animation.finished:this._finished}then(l,u){return this.finished.finally(l).then(()=>{})}get animation(){var l;return this._animation||((l=this.keyframeResolver)==null||l.resume(),Cb()),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(){var l;this._animation&&this.animation.cancel(),(l=this.keyframeResolver)==null||l.cancel()}}function Sg(i,l,u,o=0,c=1){const d=Array.from(i).sort((p,v)=>p.sortNodePosition(v)).indexOf(l),h=i.size,m=(h-1)*o;return typeof u=="function"?u(d,h):c===1?d*o:m-d*o}const Qb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kb(i){const l=Qb.exec(i);if(!l)return[,];const[,u,o,c]=l;return[`--${u??o}`,c]}function bg(i,l,u=1){const[o,c]=Kb(i);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const h=d.trim();return By(h)?parseFloat(h):h}return wc(c)?bg(c,l,u+1):c}const Jb={type:"spring",stiffness:500,damping:25,restSpeed:10},kb=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),Fb={type:"keyframes",duration:.8},Wb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pb=(i,{keyframes:l})=>l.length>2?Fb:ma.has(i)?i.startsWith("scale")?kb(l[1]):Jb:Wb;function Tg(i,l){if(i!=null&&i.inherit&&l){const{inherit:u,...o}=i;return{...l,...o}}return i}function Yc(i,l){const u=(i==null?void 0:i[l])??(i==null?void 0:i.default)??i;return u!==i?Tg(u,i):u}const $b=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ib(i){for(const l in i)if(!$b.has(l))return!0;return!1}const Gc=(i,l,u,o={},c,d)=>h=>{const m=Yc(o,i)||{},g=m.delay||o.delay||0;let{elapsed:p=0}=o;p=p-Ce(g);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:l.getVelocity(),...m,delay:-p,onUpdate:b=>{l.set(b),m.onUpdate&&m.onUpdate(b)},onComplete:()=>{h(),m.onComplete&&m.onComplete()},name:i,motionValue:l,element:d?void 0:c};Ib(m)||Object.assign(v,Pb(i,v)),v.duration&&(v.duration=Ce(v.duration)),v.repeatDelay&&(v.repeatDelay=Ce(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let S=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(dc(v),v.delay===0&&(S=!0)),(Jn.instantAnimations||Jn.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(S=!0,dc(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,S&&!d&&l.get()!==void 0){const b=fu(v.keyframes,m);if(b!==void 0){Rt.update(()=>{v.onUpdate(b),v.onComplete()});return}}return m.isSync?new lu(v):new Zb(v)};function Vp(i){const l=[{},{}];return i==null||i.values.forEach((u,o)=>{l[0][o]=u.get(),l[1][o]=u.getVelocity()}),l}function Xc(i,l,u,o){if(typeof l=="function"){const[c,d]=Vp(o);l=l(u!==void 0?u:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=Vp(o);l=l(u!==void 0?u:i.custom,c,d)}return l}function bi(i,l,u){const o=i.getProps();return Xc(o,l,u!==void 0?u:o.custom,i)}const xg=new Set(["width","height","top","left","right","bottom",...da]),_p=30,tT=i=>!isNaN(parseFloat(i));class eT{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var d;const c=oe.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=u.owner}setCurrent(l){this.current=l,this.updatedAt=oe.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=tT(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,u){this.events[l]||(this.events[l]=new Vc);const o=this.events[l].add(u);return l==="change"?()=>{o(),Rt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,u){this.passiveEffect=l,this.stopPassiveEffect=u}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,u,o){this.set(u),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,u=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var l;(l=this.events.change)==null||l.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=oe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>_p)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,_p);return qy(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(l){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=l(u),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var l,u;(l=this.dependents)==null||l.clear(),(u=this.events.destroy)==null||u.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fa(i,l){return new eT(i,l)}const mc=i=>Array.isArray(i);function nT(i,l,u){i.hasValue(l)?i.getValue(l).set(u):i.addValue(l,fa(u))}function iT(i){return mc(i)?i[i.length-1]||0:i}function aT(i,l){const u=bi(i,l);let{transitionEnd:o={},transition:c={},...d}=u||{};d={...d,...o};for(const h in d){const m=iT(d[h]);nT(i,h,m)}}const ae=i=>!!(i&&i.getVelocity);function lT(i){return!!(ae(i)&&i.add)}function pc(i,l){const u=i.getValue("willChange");if(lT(u))return u.add(l);if(!u&&Jn.WillChange){const o=new Jn.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function Zc(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const sT="framerAppearId",Ag="data-"+Zc(sT);function Eg(i){return i.props[Ag]}function uT({protectedKeys:i,needsAnimating:l},u){const o=i.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,o}function Mg(i,l,{delay:u=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:h,...m}=l;const g=i.getDefaultTransition();d=d?Tg(d,g):g;const p=d==null?void 0:d.reduceMotion;o&&(d=o);const v=[],S=c&&i.animationState&&i.animationState.getState()[c];for(const b in m){const M=i.getValue(b,i.latestValues[b]??null),R=m[b];if(R===void 0||S&&uT(S,b))continue;const B={delay:u,...Yc(d||{},b)},j=M.get();if(j!==void 0&&!M.isAnimating&&!Array.isArray(R)&&R===j&&!B.velocity)continue;let L=!1;if(window.MotionHandoffAnimation){const G=Eg(i);if(G){const J=window.MotionHandoffAnimation(G,b,Rt);J!==null&&(B.startTime=J,L=!0)}}pc(i,b);const Y=p??i.shouldReduceMotion;M.start(Gc(b,M,R,Y&&xg.has(b)?{type:!1}:B,i,L));const H=M.animation;H&&v.push(H)}if(h){const b=()=>Rt.update(()=>{h&&aT(i,h)});v.length?Promise.all(v).then(b):b()}return v}function yc(i,l,u={}){var g;const o=bi(i,l,u.type==="exit"?(g=i.presenceContext)==null?void 0:g.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};u.transitionOverride&&(c=u.transitionOverride);const d=o?()=>Promise.all(Mg(i,o,u)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(p=0)=>{const{delayChildren:v=0,staggerChildren:S,staggerDirection:b}=c;return oT(i,l,p,v,S,b,u)}:()=>Promise.resolve(),{when:m}=c;if(m){const[p,v]=m==="beforeChildren"?[d,h]:[h,d];return p().then(()=>v())}else return Promise.all([d(),h(u.delay)])}function oT(i,l,u=0,o=0,c=0,d=1,h){const m=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),m.push(yc(g,l,{...h,delay:u+(typeof o=="function"?0:o)+Sg(i.variantChildren,g,o,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(m)}function rT(i,l,u={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(d=>yc(i,d,u));o=Promise.all(c)}else if(typeof l=="string")o=yc(i,l,u);else{const c=typeof l=="function"?bi(i,l,u.custom):l;o=Promise.all(Mg(i,c,u))}return o.then(()=>{i.notify("AnimationComplete",l)})}const cT={test:i=>i==="auto",parse:i=>i},Dg=i=>l=>l.test(i),Cg=[ha,F,$e,Zn,BS,US,cT],Np=i=>Cg.find(Dg(i));function fT(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||Ly(i):!0}const hT=new Set(["brightness","contrast","saturate","opacity"]);function dT(i){const[l,u]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=u.match(Uc)||[];if(!o)return i;const c=u.replace(o,"");let d=hT.has(l)?1:0;return o!==u&&(d*=100),l+"("+d+c+")"}const mT=/\b([a-z-]*)\(.*?\)/gu,gc={...Qe,getAnimatableNone:i=>{const l=i.match(mT);return l?l.map(dT).join(" "):i}},vc={...Qe,getAnimatableNone:i=>{const l=Qe.parse(i);return Qe.createTransformer(i)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},wp={...ha,transform:Math.round},pT={rotate:Zn,rotateX:Zn,rotateY:Zn,rotateZ:Zn,scale:Xs,scaleX:Xs,scaleY:Xs,scaleZ:Xs,skew:Zn,skewX:Zn,skewY:Zn,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:gl,originX:bp,originY:bp,originZ:F},Qc={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,fontSize:F,backgroundPositionX:F,backgroundPositionY:F,...pT,zIndex:wp,fillOpacity:gl,strokeOpacity:gl,numOctaves:wp},yT={...Qc,color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:gc,WebkitFilter:gc,mask:vc,WebkitMask:vc},zg=i=>yT[i],gT=new Set([gc,vc]);function Rg(i,l){let u=zg(i);return gT.has(u)||(u=Qe),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const vT=new Set(["auto","none","0"]);function ST(i,l,u){let o=0,c;for(;o<i.length&&!c;){const d=i[o];typeof d=="string"&&!vT.has(d)&&ca(d).values.length&&(c=i[o]),o++}if(c&&u)for(const d of l)i[d]=Rg(u,c)}class bT extends qc{constructor(l,u,o,c,d){super(l,u,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:u,name:o}=this;if(!u||!u.current)return;super.readKeyframes();for(let v=0;v<l.length;v++){let S=l[v];if(typeof S=="string"&&(S=S.trim(),wc(S))){const b=bg(S,u.current);b!==void 0&&(l[v]=b),v===l.length-1&&(this.finalKeyframe=S)}}if(this.resolveNoneKeyframes(),!xg.has(o)||l.length!==2)return;const[c,d]=l,h=Np(c),m=Np(d),g=Sp(c),p=Sp(d);if(g!==p&&Kn[o]){this.needsMeasurement=!0;return}if(h!==m)if(zp(h)&&zp(m))for(let v=0;v<l.length;v++){const S=l[v];typeof S=="string"&&(l[v]=parseFloat(S))}else Kn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,o=[];for(let c=0;c<l.length;c++)(l[c]===null||fT(l[c]))&&o.push(c);o.length&&ST(l,o,u)}measureInitialState(){const{element:l,unresolvedKeyframes:u,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kn[o](l.measureViewportBox(),window.getComputedStyle(l.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&l.getValue(o,c).jump(c,!1)}measureEndState(){var m;const{element:l,name:u,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const c=l.getValue(u);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,h=o[d];o[d]=Kn[u](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEach(([g,p])=>{l.getValue(g).set(p)}),this.resolveNoneKeyframes()}}function Og(i,l,u){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let o=document;const c=(u==null?void 0:u[i])??o.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(o=>o!=null)}const Vg=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function ks(i){return jy(i)&&"offsetHeight"in i&&!("ownerSVGElement"in i)}const{schedule:Kc}=Py(queueMicrotask,!1),Ze={x:!1,y:!1};function _g(){return Ze.x||Ze.y}function TT(i){return i==="x"||i==="y"?Ze[i]?null:(Ze[i]=!0,()=>{Ze[i]=!1}):Ze.x||Ze.y?null:(Ze.x=Ze.y=!0,()=>{Ze.x=Ze.y=!1})}function Ng(i,l){const u=Og(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[u,c,()=>o.abort()]}function xT(i){return!(i.pointerType==="touch"||_g())}function AT(i,l,u={}){const[o,c,d]=Ng(i,u);return o.forEach(h=>{let m=!1,g=!1,p;const v=()=>{h.removeEventListener("pointerleave",R)},S=j=>{p&&(p(j),p=void 0),v()},b=j=>{m=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),g&&(g=!1,S(j))},M=()=>{m=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},R=j=>{if(j.pointerType!=="touch"){if(m){g=!0;return}S(j)}},B=j=>{if(!xT(j))return;g=!1;const L=l(h,j);typeof L=="function"&&(p=L,h.addEventListener("pointerleave",R,c))};h.addEventListener("pointerenter",B,c),h.addEventListener("pointerdown",M,c)}),d}const wg=(i,l)=>l?i===l?!0:wg(i,l.parentElement):!1,Jc=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,ET=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function MT(i){return ET.has(i.tagName)||i.isContentEditable===!0}const DT=new Set(["INPUT","SELECT","TEXTAREA"]);function CT(i){return DT.has(i.tagName)||i.isContentEditable===!0}const Fs=new WeakSet;function Up(i){return l=>{l.key==="Enter"&&i(l)}}function Kr(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const zT=(i,l)=>{const u=i.currentTarget;if(!u)return;const o=Up(()=>{if(Fs.has(u))return;Kr(u,"down");const c=Up(()=>{Kr(u,"up")}),d=()=>Kr(u,"cancel");u.addEventListener("keyup",c,l),u.addEventListener("blur",d,l)});u.addEventListener("keydown",o,l),u.addEventListener("blur",()=>u.removeEventListener("keydown",o),l)};function Bp(i){return Jc(i)&&!_g()}const jp=new WeakSet;function RT(i,l,u={}){const[o,c,d]=Ng(i,u),h=m=>{const g=m.currentTarget;if(!Bp(m)||jp.has(m))return;Fs.add(g),u.stopPropagation&&jp.add(m);const p=l(g,m),v=(M,R)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",b),Fs.has(g)&&Fs.delete(g),Bp(M)&&typeof p=="function"&&p(M,{success:R})},S=M=>{v(M,g===window||g===document||u.useGlobalTarget||wg(g,M.target))},b=M=>{v(M,!1)};window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",b,c)};return o.forEach(m=>{(u.useGlobalTarget?window:m).addEventListener("pointerdown",h,c),ks(m)&&(m.addEventListener("focus",p=>zT(p,c)),!MT(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function kc(i){return jy(i)&&"ownerSVGElement"in i}const Ws=new WeakMap;let Qn;const Ug=(i,l,u)=>(o,c)=>c&&c[0]?c[0][i+"Size"]:kc(o)&&"getBBox"in o?o.getBBox()[l]:o[u],OT=Ug("inline","width","offsetWidth"),VT=Ug("block","height","offsetHeight");function _T({target:i,borderBoxSize:l}){var u;(u=Ws.get(i))==null||u.forEach(o=>{o(i,{get width(){return OT(i,l)},get height(){return VT(i,l)}})})}function NT(i){i.forEach(_T)}function wT(){typeof ResizeObserver>"u"||(Qn=new ResizeObserver(NT))}function UT(i,l){Qn||wT();const u=Og(i);return u.forEach(o=>{let c=Ws.get(o);c||(c=new Set,Ws.set(o,c)),c.add(l),Qn==null||Qn.observe(o)}),()=>{u.forEach(o=>{const c=Ws.get(o);c==null||c.delete(l),c!=null&&c.size||Qn==null||Qn.unobserve(o)})}}const Ps=new Set;let oa;function BT(){oa=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ps.forEach(l=>l(i))},window.addEventListener("resize",oa)}function jT(i){return Ps.add(i),oa||BT(),()=>{Ps.delete(i),!Ps.size&&typeof oa=="function"&&(window.removeEventListener("resize",oa),oa=void 0)}}function Lp(i,l){return typeof i=="function"?jT(i):UT(i,l)}function LT(i){return kc(i)&&i.tagName==="svg"}const HT=[...Cg,Kt,Qe],qT=i=>HT.find(Dg(i)),Hp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ra=()=>({x:Hp(),y:Hp()}),qp=()=>({min:0,max:0}),kt=()=>({x:qp(),y:qp()}),YT=new WeakMap;function hu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function vl(i){return typeof i=="string"||Array.isArray(i)}const Fc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wc=["initial",...Fc];function du(i){return hu(i.animate)||Wc.some(l=>vl(i[l]))}function Bg(i){return!!(du(i)||i.variants)}function GT(i,l,u){for(const o in l){const c=l[o],d=u[o];if(ae(c))i.addValue(o,c);else if(ae(d))i.addValue(o,fa(c,{owner:i}));else if(d!==c)if(i.hasValue(o)){const h=i.getValue(o);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(o);i.addValue(o,fa(h!==void 0?h:c,{owner:i}))}}for(const o in u)l[o]===void 0&&i.removeValue(o);return l}const Sc={current:null},jg={current:!1},XT=typeof window<"u";function ZT(){if(jg.current=!0,!!XT)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Sc.current=i.matches;i.addEventListener("change",l),l()}else Sc.current=!1}const Yp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let su={};function Lg(i){su=i}function QT(){return su}class KT{scrapeMotionValuesFromProps(l,u,o){return{}}constructor({parent:l,props:u,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:h,visualState:m},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=qc,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 M=oe.now();this.renderScheduledAt<M&&(this.renderScheduledAt=M,Rt.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=u.initial?{...p}:{},this.renderState=v,this.parent=l,this.props=u,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=du(u),this.isVariantNode=Bg(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:S,...b}=this.scrapeMotionValuesFromProps(u,{},this);for(const M in b){const R=b[M];p[M]!==void 0&&ae(R)&&R.set(p[M])}}mount(l){var u,o;if(this.hasBeenMounted)for(const c in this.initialValues)(u=this.values.get(c))==null||u.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=l,YT.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((c,d)=>this.bindToMotionValue(d,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(jg.current||ZT(),this.shouldReduceMotion=Sc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var l;this.projection&&this.projection.unmount(),kn(this.notifyUpdate),kn(this.render),this.valueSubscriptions.forEach(u=>u()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(l=this.parent)==null||l.removeChild(this);for(const u in this.events)this.events[u].clear();for(const u in this.features){const o=this.features[u];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,u){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),u.accelerate&&vg.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:m,times:g,ease:p,duration:v}=u.accelerate,S=new yg({element:this.current,name:l,keyframes:m,times:g,ease:p,duration:Ce(v)}),b=h(S);this.valueSubscriptions.set(l,()=>{b(),S.cancel()});return}const o=ma.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&Rt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,u)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),u.owner&&u.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in su){const u=su[l];if(!u)continue;const{isEnabled:o,Feature:c}=u;if(!this.features[l]&&c&&o(this.props)&&(this.features[l]=new c(this)),this.features[l]){const d=this.features[l];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,u){this.latestValues[l]=u}update(l,u){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let o=0;o<Yp.length;o++){const c=Yp[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,h=l[d];h&&(this.propEventSubscriptions[c]=this.on(c,h))}this.prevMotionValues=GT(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(l){const u=this.getClosestVariantNode();if(u)return u.variantChildren&&u.variantChildren.add(l),()=>u.variantChildren.delete(l)}addValue(l,u){const o=this.values.get(l);u!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,u),this.values.set(l,u),this.latestValues[l]=u.get())}removeValue(l){this.values.delete(l);const u=this.valueSubscriptions.get(l);u&&(u(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,u){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&u!==void 0&&(o=fa(u===null?void 0:u,{owner:this}),this.addValue(l,o)),o}readValue(l,u){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(By(o)||Ly(o))?o=parseFloat(o):!qT(o)&&Qe.test(u)&&(o=Rg(l,u)),this.setBaseTarget(l,ae(o)?o.get():o)),ae(o)?o.get():o}setBaseTarget(l,u){this.baseTarget[l]=u}getBaseTarget(l){var d;const{initial:u}=this.props;let o;if(typeof u=="string"||typeof u=="object"){const h=Xc(this.props,u,(d=this.presenceContext)==null?void 0:d.custom);h&&(o=h[l])}if(u&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!ae(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,u){return this.events[l]||(this.events[l]=new Vc),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){Kc.render(this.render)}}class Hg extends KT{constructor(){super(...arguments),this.KeyframeResolver=bT}sortInstanceNodePosition(l,u){return l.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(l,u){const o=l.style;return o?o[u]:void 0}removeValueFromRenderState(l,{vars:u,style:o}){delete u[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;ae(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}class Fn{constructor(l){this.isMounted=!1,this.node=l}update(){}}function qg({top:i,left:l,right:u,bottom:o}){return{x:{min:l,max:u},y:{min:i,max:o}}}function JT({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function kT(i,l){if(!l)return i;const u=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:u.y,left:u.x,bottom:o.y,right:o.x}}function Jr(i){return i===void 0||i===1}function bc({scale:i,scaleX:l,scaleY:u}){return!Jr(i)||!Jr(l)||!Jr(u)}function yi(i){return bc(i)||Yg(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function Yg(i){return Gp(i.x)||Gp(i.y)}function Gp(i){return i&&i!=="0%"}function uu(i,l,u){const o=i-u,c=l*o;return u+c}function Xp(i,l,u,o,c){return c!==void 0&&(i=uu(i,c,o)),uu(i,u,o)+l}function Tc(i,l=0,u=1,o,c){i.min=Xp(i.min,l,u,o,c),i.max=Xp(i.max,l,u,o,c)}function Gg(i,{x:l,y:u}){Tc(i.x,l.translate,l.scale,l.originPoint),Tc(i.y,u.translate,u.scale,u.originPoint)}const Zp=.999999999999,Qp=1.0000000000001;function FT(i,l,u,o=!1){var m;const c=u.length;if(!c)return;l.x=l.y=1;let d,h;for(let g=0;g<c;g++){d=u[g],h=d.projectionDelta;const{visualElement:p}=d.options;p&&p.props.style&&p.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Pe(i.x,-d.scroll.offset.x),Pe(i.y,-d.scroll.offset.y)),h&&(l.x*=h.x.scale,l.y*=h.y.scale,Gg(i,h)),o&&yi(d.latestValues)&&$s(i,d.latestValues,(m=d.layout)==null?void 0:m.layoutBox))}l.x<Qp&&l.x>Zp&&(l.x=1),l.y<Qp&&l.y>Zp&&(l.y=1)}function Pe(i,l){i.min+=l,i.max+=l}function Kp(i,l,u,o,c=.5){const d=Nt(i.min,i.max,c);Tc(i,l,u,d,o)}function Jp(i,l){return typeof i=="string"?parseFloat(i)/100*(l.max-l.min):i}function $s(i,l,u){const o=u??i;Kp(i.x,Jp(l.x,o.x),l.scaleX,l.scale,l.originX),Kp(i.y,Jp(l.y,o.y),l.scaleY,l.scale,l.originY)}function Xg(i,l){return qg(kT(i.getBoundingClientRect(),l))}function WT(i,l,u){const o=Xg(i,u),{scroll:c}=l;return c&&(Pe(o.x,c.offset.x),Pe(o.y,c.offset.y)),o}const PT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$T=da.length;function IT(i,l,u){let o="",c=!0;for(let d=0;d<$T;d++){const h=da[d],m=i[h];if(m===void 0)continue;let g=!0;if(typeof m=="number")g=m===(h.startsWith("scale")?1:0);else{const p=parseFloat(m);g=h.startsWith("scale")?p===1:p===0}if(!g||u){const p=Vg(m,Qc[h]);if(!g){c=!1;const v=PT[h]||h;o+=`${v}(${p}) `}u&&(l[h]=p)}}return o=o.trim(),u?o=u(l,c?"":o):c&&(o="none"),o}function Pc(i,l,u){const{style:o,vars:c,transformOrigin:d}=i;let h=!1,m=!1;for(const g in l){const p=l[g];if(ma.has(g)){h=!0;continue}else if(Iy(g)){c[g]=p;continue}else{const v=Vg(p,Qc[g]);g.startsWith("origin")?(m=!0,d[g]=v):o[g]=v}}if(l.transform||(h||u?o.transform=IT(l,i.transform,u):o.transform&&(o.transform="none")),m){const{originX:g="50%",originY:p="50%",originZ:v=0}=d;o.transformOrigin=`${g} ${p} ${v}`}}function Zg(i,{style:l,vars:u},o,c){const d=i.style;let h;for(h in l)d[h]=l[h];c==null||c.applyProjectionStyles(d,o);for(h in u)d.setProperty(h,u[h])}function kp(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const cl={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(F.test(i))i=parseFloat(i);else return i;const u=kp(i,l.target.x),o=kp(i,l.target.y);return`${u}% ${o}%`}},t2={correct:(i,{treeScale:l,projectionDelta:u})=>{const o=i,c=Qe.parse(i);if(c.length>5)return o;const d=Qe.createTransformer(i),h=typeof c[0]!="number"?1:0,m=u.x.scale*l.x,g=u.y.scale*l.y;c[0+h]/=m,c[1+h]/=g;const p=Nt(m,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=p),typeof c[3+h]=="number"&&(c[3+h]/=p),d(c)}},xc={borderRadius:{...cl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cl,borderTopRightRadius:cl,borderBottomLeftRadius:cl,borderBottomRightRadius:cl,boxShadow:t2};function Qg(i,{layout:l,layoutId:u}){return ma.has(i)||i.startsWith("origin")||(l||u!==void 0)&&(!!xc[i]||i==="opacity")}function $c(i,l,u){var h;const o=i.style,c=l==null?void 0:l.style,d={};if(!o)return d;for(const m in o)(ae(o[m])||c&&ae(c[m])||Qg(m,i)||((h=u==null?void 0:u.getValue(m))==null?void 0:h.liveStyle)!==void 0)&&(d[m]=o[m]);return d}function e2(i){return window.getComputedStyle(i)}class n2 extends Hg{constructor(){super(...arguments),this.type="html",this.renderInstance=Zg}readValueFromInstance(l,u){var o;if(ma.has(u))return(o=this.projection)!=null&&o.isProjecting?oc(u):xb(l,u);{const c=e2(l),d=(Iy(u)?c.getPropertyValue(u):c[u])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(l,{transformPagePoint:u}){return Xg(l,u)}build(l,u,o){Pc(l,u,o.transformTemplate)}scrapeMotionValuesFromProps(l,u,o){return $c(l,u,o)}}const i2={offset:"stroke-dashoffset",array:"stroke-dasharray"},a2={offset:"strokeDashoffset",array:"strokeDasharray"};function l2(i,l,u=1,o=0,c=!0){i.pathLength=1;const d=c?i2:a2;i[d.offset]=`${-o}`,i[d.array]=`${l} ${u}`}const s2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Kg(i,{attrX:l,attrY:u,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...m},g,p,v){if(Pc(i,m,p),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:S,style:b}=i;S.transform&&(b.transform=S.transform,delete S.transform),(b.transform||S.transformOrigin)&&(b.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),b.transform&&(b.transformBox=(v==null?void 0:v.transformBox)??"fill-box",delete S.transformBox);for(const M of s2)S[M]!==void 0&&(b[M]=S[M],delete S[M]);l!==void 0&&(S.x=l),u!==void 0&&(S.y=u),o!==void 0&&(S.scale=o),c!==void 0&&l2(S,c,d,h,!1)}const Jg=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"]),kg=i=>typeof i=="string"&&i.toLowerCase()==="svg";function u2(i,l,u,o){Zg(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(Jg.has(c)?c:Zc(c),l.attrs[c])}function Fg(i,l,u){const o=$c(i,l,u);for(const c in i)if(ae(i[c])||ae(l[c])){const d=da.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=i[c]}return o}class o2 extends Hg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(ma.has(u)){const o=zg(u);return o&&o.default||0}return u=Jg.has(u)?u:Zc(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,o){return Fg(l,u,o)}build(l,u,o){Kg(l,u,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,u,o,c){u2(l,u,o,c)}mount(l){this.isSVGTag=kg(l.tagName),super.mount(l)}}const r2=Wc.length;function Wg(i){if(!i)return;if(!i.isControllingVariants){const u=i.parent?Wg(i.parent)||{}:{};return i.props.initial!==void 0&&(u.initial=i.props.initial),u}const l={};for(let u=0;u<r2;u++){const o=Wc[u],c=i.props[o];(vl(c)||c===!1)&&(l[o]=c)}return l}function Pg(i,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==i.length)return!1;for(let o=0;o<u;o++)if(l[o]!==i[o])return!1;return!0}const c2=[...Fc].reverse(),f2=Fc.length;function h2(i){return l=>Promise.all(l.map(({animation:u,options:o})=>rT(i,u,o)))}function d2(i){let l=h2(i),u=Fp(),o=!0,c=!1;const d=p=>(v,S)=>{var M;const b=bi(i,S,p==="exit"?(M=i.presenceContext)==null?void 0:M.custom:void 0);if(b){const{transition:R,transitionEnd:B,...j}=b;v={...v,...j,...B}}return v};function h(p){l=p(i)}function m(p){const{props:v}=i,S=Wg(i.parent)||{},b=[],M=new Set;let R={},B=1/0;for(let L=0;L<f2;L++){const Y=c2[L],H=u[Y],G=v[Y]!==void 0?v[Y]:S[Y],J=vl(G),lt=Y===p?H.isActive:null;lt===!1&&(B=L);let I=G===S[Y]&&G!==v[Y]&&J;if(I&&(o||c)&&i.manuallyAnimateOnMount&&(I=!1),H.protectedKeys={...R},!H.isActive&&lt===null||!G&&!H.prevProp||hu(G)||typeof G=="boolean")continue;if(Y==="exit"&&H.isActive&&lt!==!0){H.prevResolvedValues&&(R={...R,...H.prevResolvedValues});continue}const $=m2(H.prevProp,G);let it=$||Y===p&&H.isActive&&!I&&J||L>B&&J,tt=!1;const pt=Array.isArray(G)?G:[G];let vt=pt.reduce(d(Y),{});lt===!1&&(vt={});const{prevResolvedValues:Pt={}}=H,Yt={...Pt,...vt},jt=K=>{it=!0,M.has(K)&&(tt=!0,M.delete(K)),H.needsAnimating[K]=!0;const ot=i.getValue(K);ot&&(ot.liveStyle=!1)};for(const K in Yt){const ot=vt[K],yt=Pt[K];if(R.hasOwnProperty(K))continue;let A=!1;mc(ot)&&mc(yt)?A=!Pg(ot,yt):A=ot!==yt,A?ot!=null?jt(K):M.add(K):ot!==void 0&&M.has(K)?jt(K):H.protectedKeys[K]=!0}H.prevProp=G,H.prevResolvedValues=vt,H.isActive&&(R={...R,...vt}),(o||c)&&i.blockInitialAnimation&&(it=!1);const V=I&&$;it&&(!V||tt)&&b.push(...pt.map(K=>{const ot={type:Y};if(typeof K=="string"&&(o||c)&&!V&&i.manuallyAnimateOnMount&&i.parent){const{parent:yt}=i,A=bi(yt,K);if(yt.enteringChildren&&A){const{delayChildren:U}=A.transition||{};ot.delay=Sg(yt.enteringChildren,i,U)}}return{animation:K,options:ot}}))}if(M.size){const L={};if(typeof v.initial!="boolean"){const Y=bi(i,Array.isArray(v.initial)?v.initial[0]:v.initial);Y&&Y.transition&&(L.transition=Y.transition)}M.forEach(Y=>{const H=i.getBaseTarget(Y),G=i.getValue(Y);G&&(G.liveStyle=!0),L[Y]=H??null}),b.push({animation:L})}let j=!!b.length;return o&&(v.initial===!1||v.initial===v.animate)&&!i.manuallyAnimateOnMount&&(j=!1),o=!1,c=!1,j?l(b):Promise.resolve()}function g(p,v){var b;if(u[p].isActive===v)return Promise.resolve();(b=i.variantChildren)==null||b.forEach(M=>{var R;return(R=M.animationState)==null?void 0:R.setActive(p,v)}),u[p].isActive=v;const S=m(p);for(const M in u)u[M].protectedKeys={};return S}return{animateChanges:m,setActive:g,setAnimateFunction:h,getState:()=>u,reset:()=>{u=Fp(),c=!0}}}function m2(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!Pg(l,i):!1}function pi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fp(){return{animate:pi(!0),whileInView:pi(),whileHover:pi(),whileTap:pi(),whileDrag:pi(),whileFocus:pi(),exit:pi()}}function Ac(i,l){i.min=l.min,i.max=l.max}function Xe(i,l){Ac(i.x,l.x),Ac(i.y,l.y)}function Wp(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const $g=1e-4,p2=1-$g,y2=1+$g,Ig=.01,g2=0-Ig,v2=0+Ig;function re(i){return i.max-i.min}function S2(i,l,u){return Math.abs(i-l)<=u}function Pp(i,l,u,o=.5){i.origin=o,i.originPoint=Nt(l.min,l.max,i.origin),i.scale=re(u)/re(l),i.translate=Nt(u.min,u.max,i.origin)-i.originPoint,(i.scale>=p2&&i.scale<=y2||isNaN(i.scale))&&(i.scale=1),(i.translate>=g2&&i.translate<=v2||isNaN(i.translate))&&(i.translate=0)}function ml(i,l,u,o){Pp(i.x,l.x,u.x,o?o.originX:void 0),Pp(i.y,l.y,u.y,o?o.originY:void 0)}function $p(i,l,u){i.min=u.min+l.min,i.max=i.min+re(l)}function b2(i,l,u){$p(i.x,l.x,u.x),$p(i.y,l.y,u.y)}function Ip(i,l,u){i.min=l.min-u.min,i.max=i.min+re(l)}function ou(i,l,u){Ip(i.x,l.x,u.x),Ip(i.y,l.y,u.y)}function ty(i,l,u,o,c){return i-=l,i=uu(i,1/u,o),c!==void 0&&(i=uu(i,1/c,o)),i}function T2(i,l=0,u=1,o=.5,c,d=i,h=i){if($e.test(l)&&(l=parseFloat(l),l=Nt(h.min,h.max,l/100)-h.min),typeof l!="number")return;let m=Nt(d.min,d.max,o);i===d&&(m-=l),i.min=ty(i.min,l,u,m,c),i.max=ty(i.max,l,u,m,c)}function ey(i,l,[u,o,c],d,h){T2(i,l[u],l[o],l[c],l.scale,d,h)}const x2=["x","scaleX","originX"],A2=["y","scaleY","originY"];function ny(i,l,u,o){ey(i.x,l,x2,u?u.x:void 0,o?o.x:void 0),ey(i.y,l,A2,u?u.y:void 0,o?o.y:void 0)}function iy(i){return i.translate===0&&i.scale===1}function t0(i){return iy(i.x)&&iy(i.y)}function ay(i,l){return i.min===l.min&&i.max===l.max}function E2(i,l){return ay(i.x,l.x)&&ay(i.y,l.y)}function ly(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function e0(i,l){return ly(i.x,l.x)&&ly(i.y,l.y)}function sy(i){return re(i.x)/re(i.y)}function uy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function We(i){return[i("x"),i("y")]}function M2(i,l,u){let o="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=(u==null?void 0:u.z)||0;if((c||d||h)&&(o=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),u){const{transformPerspective:p,rotate:v,rotateX:S,rotateY:b,skewX:M,skewY:R}=u;p&&(o=`perspective(${p}px) ${o}`),v&&(o+=`rotate(${v}deg) `),S&&(o+=`rotateX(${S}deg) `),b&&(o+=`rotateY(${b}deg) `),M&&(o+=`skewX(${M}deg) `),R&&(o+=`skewY(${R}deg) `)}const m=i.x.scale*l.x,g=i.y.scale*l.y;return(m!==1||g!==1)&&(o+=`scale(${m}, ${g})`),o||"none"}const n0=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],D2=n0.length,oy=i=>typeof i=="string"?parseFloat(i):i,ry=i=>typeof i=="number"||F.test(i);function C2(i,l,u,o,c,d){c?(i.opacity=Nt(0,u.opacity??1,z2(o)),i.opacityExit=Nt(l.opacity??1,0,R2(o))):d&&(i.opacity=Nt(l.opacity??1,u.opacity??1,o));for(let h=0;h<D2;h++){const m=n0[h];let g=cy(l,m),p=cy(u,m);if(g===void 0&&p===void 0)continue;g||(g=0),p||(p=0),g===0||p===0||ry(g)===ry(p)?(i[m]=Math.max(Nt(oy(g),oy(p),o),0),($e.test(p)||$e.test(g))&&(i[m]+="%")):i[m]=p}(l.rotate||u.rotate)&&(i.rotate=Nt(l.rotate||0,u.rotate||0,o))}function cy(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const z2=i0(0,.5,Jy),R2=i0(.5,.95,He);function i0(i,l,u){return o=>o<i?0:o>l?1:u(yl(i,l,o))}function O2(i,l,u){const o=ae(i)?i:fa(i);return o.start(Gc("",o,l,u)),o.animation}function Sl(i,l,u,o={passive:!0}){return i.addEventListener(l,u,o),()=>i.removeEventListener(l,u)}const V2=(i,l)=>i.depth-l.depth;class _2{constructor(){this.children=[],this.isDirty=!1}add(l){Rc(this.children,l),this.isDirty=!0}remove(l){eu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(V2),this.isDirty=!1,this.children.forEach(l)}}function N2(i,l){const u=oe.now(),o=({timestamp:c})=>{const d=c-u;d>=l&&(kn(o),i(d-l))};return Rt.setup(o,!0),()=>kn(o)}function Is(i){return ae(i)?i.get():i}class w2{constructor(){this.members=[]}add(l){Rc(this.members,l);for(let u=this.members.length-1;u>=0;u--){const o=this.members[u];if(o===l||o===this.lead||o===this.prevLead)continue;const c=o.instance;(!c||c.isConnected===!1)&&!o.snapshot&&(eu(this.members,o),o.unmount())}l.scheduleRender()}remove(l){if(eu(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(l){var u;for(let o=this.members.indexOf(l)-1;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1&&((u=c.instance)==null?void 0:u.isConnected)!==!1)return this.promote(c),!0}return!1}promote(l,u){var c;const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.updateSnapshot(),l.scheduleRender();const{layoutDependency:d}=o.options,{layoutDependency:h}=l.options;(d===void 0||d!==h)&&(l.resumeFrom=o,u&&(o.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),(c=l.root)!=null&&c.isUpdating&&(l.isLayoutDirty=!0)),l.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{var u,o,c,d,h;(o=(u=l.options).onExitComplete)==null||o.call(u),(h=(c=l.resumingFrom)==null?void 0:(d=c.options).onExitComplete)==null||h.call(d)})}scheduleRender(){this.members.forEach(l=>l.instance&&l.scheduleRender(!1))}removeLeadSnapshot(){var l;(l=this.lead)!=null&&l.snapshot&&(this.lead.snapshot=void 0)}}const tu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},kr=["","X","Y","Z"],U2=1e3;let B2=0;function Fr(i,l,u,o){const{latestValues:c}=l;c[i]&&(u[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function a0(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const u=Eg(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(u,"transform",Rt,!(c||d))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&a0(o)}function l0({attachResizeListener:i,defaultParent:l,measureScroll:u,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(h={},m=l==null?void 0:l()){this.id=B2++,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(H2),this.nodes.forEach(Z2),this.nodes.forEach(Q2),this.nodes.forEach(q2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new _2)}addEventListener(h,m){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Vc),this.eventHandlers.get(h).add(m)}notifyListeners(h,...m){const g=this.eventHandlers.get(h);g&&g.notify(...m)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=kc(h)&&!LT(h),this.instance=h;const{layoutId:m,layout:g,visualElement:p}=this.options;if(p&&!p.current&&p.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||m)&&(this.isLayoutDirty=!0),i){let v,S=0;const b=()=>this.root.updateBlockedByResize=!1;Rt.read(()=>{S=window.innerWidth}),i(h,()=>{const M=window.innerWidth;M!==S&&(S=M,this.root.updateBlockedByResize=!0,v&&v(),v=N2(b,250),tu.hasAnimatedSinceResize&&(tu.hasAnimatedSinceResize=!1,this.nodes.forEach(dy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:S,hasRelativeLayoutChanged:b,layout:M})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||p.getDefaultTransition()||W2,{onLayoutAnimationStart:B,onLayoutAnimationComplete:j}=p.getProps(),L=!this.targetLayout||!e0(this.targetLayout,M),Y=!S&&b;if(this.options.layoutRoot||this.resumeFrom||Y||S&&(L||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...Yc(R,"layout"),onPlay:B,onComplete:j};(p.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(v,Y)}else S||dy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=M})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),kn(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(K2),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&a0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const S=this.path[v];S.shouldResetTransform=!0,(typeof S.latestValues.x=="string"||typeof S.latestValues.y=="string")&&(S.isLayoutDirty=!0),S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:m,layout:g}=this.options;if(m===void 0&&!g)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(fy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(G2),this.nodes.forEach(X2),this.nodes.forEach(j2),this.nodes.forEach(L2)):this.nodes.forEach(hy),this.clearAllSnapshots();const m=oe.now();ie.delta=Ie(0,1e3/60,m-ie.timestamp),ie.timestamp=m,ie.isProcessing=!0,qr.update.process(ie),qr.preRender.process(ie),qr.render.process(ie),ie.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Y2),this.sharedNodes.forEach(J2)}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&&!re(this.snapshot.measuredBox.x)&&!re(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=kt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(m=!1),m&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!t0(this.projectionDelta),g=this.getTransformTemplate(),p=g?g(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;h&&this.instance&&(m||yi(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const m=this.measurePageBox();let g=this.removeElementScroll(m);return h&&(g=this.removeTransform(g)),P2(g),{animationId:this.root.animationId,measuredBox:m,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:h}=this.options;if(!h)return kt();const m=h.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some($2))){const{scroll:v}=this.root;v&&(Pe(m.x,v.offset.x),Pe(m.y,v.offset.y))}return m}removeElementScroll(h){var g;const m=kt();if(Xe(m,h),(g=this.scroll)!=null&&g.wasRoot)return m;for(let p=0;p<this.path.length;p++){const v=this.path[p],{scroll:S,options:b}=v;v!==this.root&&S&&b.layoutScroll&&(S.wasRoot&&Xe(m,h),Pe(m.x,S.offset.x),Pe(m.y,S.offset.y))}return m}applyTransform(h,m=!1,g){var v,S;const p=g||kt();Xe(p,h);for(let b=0;b<this.path.length;b++){const M=this.path[b];!m&&M.options.layoutScroll&&M.scroll&&M!==M.root&&(Pe(p.x,-M.scroll.offset.x),Pe(p.y,-M.scroll.offset.y)),yi(M.latestValues)&&$s(p,M.latestValues,(v=M.layout)==null?void 0:v.layoutBox)}return yi(this.latestValues)&&$s(p,this.latestValues,(S=this.layout)==null?void 0:S.layoutBox),p}removeTransform(h){var g;const m=kt();Xe(m,h);for(let p=0;p<this.path.length;p++){const v=this.path[p];if(!yi(v.latestValues))continue;let S;v.instance&&(bc(v.latestValues)&&v.updateSnapshot(),S=kt(),Xe(S,v.measurePageBox())),ny(m,v.latestValues,(g=v.snapshot)==null?void 0:g.layoutBox,S)}return yi(this.latestValues)&&ny(m,this.latestValues),m}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ie.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var M;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(h||g&&this.isSharedProjectionDirty||this.isProjectionDirty||(M=this.parent)!=null&&M.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:S}=this.options;if(!this.layout||!(v||S))return;this.resolvedRelativeTargetAt=ie.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),b2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Xe(this.target,this.layout.layoutBox),Gg(this.target,this.targetDelta)):Xe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||bc(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(h,m,g){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),ou(this.relativeTargetOrigin,m,g),Xe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var R;const h=this.getLead(),m=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||(R=this.parent)!=null&&R.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ie.timestamp&&(g=!1),g)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;Xe(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,b=this.treeScale.y;FT(this.layoutCorrected,this.treeScale,this.path,m),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=kt());const{target:M}=h;if(!M){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wp(this.prevProjectionDelta.x,this.projectionDelta.x),Wp(this.prevProjectionDelta.y,this.projectionDelta.y)),ml(this.projectionDelta,this.layoutCorrected,M,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==b||!uy(this.projectionDelta.x,this.prevProjectionDelta.x)||!uy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",M))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),h){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ra(),this.projectionDelta=ra(),this.projectionDeltaWithTransform=ra()}setAnimationOrigin(h,m=!1){const g=this.snapshot,p=g?g.latestValues:{},v={...this.latestValues},S=ra();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const b=kt(),M=g?g.source:void 0,R=this.layout?this.layout.source:void 0,B=M!==R,j=this.getStack(),L=!j||j.members.length<=1,Y=!!(B&&!L&&this.options.crossfade===!0&&!this.path.some(F2));this.animationProgress=0;let H;this.mixTargetDelta=G=>{const J=G/1e3;my(S.x,h.x,J),my(S.y,h.y,J),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ou(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),k2(this.relativeTarget,this.relativeTargetOrigin,b,J),H&&E2(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=kt()),Xe(H,this.relativeTarget)),B&&(this.animationValues=v,C2(v,p,this.latestValues,J,Y,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=J},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){var m,g,p;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(p=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||p.stop(),this.pendingAnimation&&(kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Rt.update(()=>{tu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=fa(0)),this.motionValue.jump(0,!1),this.currentAnimation=O2(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),h.onUpdate&&h.onUpdate(v)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(U2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:m,target:g,layout:p,latestValues:v}=h;if(!(!m||!g||!p)){if(this!==h&&this.layout&&p&&s0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){g=this.target||kt();const S=re(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+S;const b=re(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+b}Xe(m,g),$s(m,v),ml(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(h,m){this.sharedNodes.has(h)||this.sharedNodes.set(h,new w2),this.sharedNodes.get(h).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){var m;const{layoutId:h}=this.options;return h?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:h}=this.options;return h?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:m,preserveFollowOpacity:g}={}){const p=this.getStack();p&&p.promote(this,g),h&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let m=!1;const{latestValues:g}=h;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(m=!0),!m)return;const p={};g.z&&Fr("z",h,p,this.animationValues);for(let v=0;v<kr.length;v++)Fr(`rotate${kr[v]}`,h,p,this.animationValues),Fr(`skew${kr[v]}`,h,p,this.animationValues);h.render();for(const v in p)h.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);h.scheduleRender()}applyProjectionStyles(h,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=Is(m==null?void 0:m.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Is(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!yi(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let S=M2(this.projectionDeltaWithTransform,this.treeScale,v);g&&(S=g(v,S)),h.transform=S;const{x:b,y:M}=this.projectionDelta;h.transformOrigin=`${b.origin*100}% ${M.origin*100}% 0`,p.animationValues?h.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const R in xc){if(v[R]===void 0)continue;const{correct:B,applyTo:j,isCSSVariable:L}=xc[R],Y=S==="none"?v[R]:B(v[R],p);if(j){const H=j.length;for(let G=0;G<H;G++)h[j[G]]=Y}else L?this.options.visualElement.renderState.vars[R]=Y:h[R]=Y}this.options.layoutId&&(h.pointerEvents=p===this?Is(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>{var m;return(m=h.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(fy),this.root.sharedNodes.clear()}}}function j2(i){i.updateLayout()}function L2(i){var u;const l=((u=i.resumeFrom)==null?void 0:u.snapshot)||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:c}=i.layout,{animationType:d}=i.options,h=l.source!==i.layout.source;if(d==="size")We(S=>{const b=h?l.measuredBox[S]:l.layoutBox[S],M=re(b);b.min=o[S].min,b.max=b.min+M});else if(d==="x"||d==="y"){const S=d==="x"?"y":"x";Ac(h?l.measuredBox[S]:l.layoutBox[S],o[S])}else s0(d,l.layoutBox,o)&&We(S=>{const b=h?l.measuredBox[S]:l.layoutBox[S],M=re(o[S]);b.max=b.min+M,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[S].max=i.relativeTarget[S].min+M)});const m=ra();ml(m,o,l.layoutBox);const g=ra();h?ml(g,i.applyTransform(c,!0),l.measuredBox):ml(g,o,l.layoutBox);const p=!t0(m);let v=!1;if(!i.resumeFrom){const S=i.getClosestProjectingParent();if(S&&!S.resumeFrom){const{snapshot:b,layout:M}=S;if(b&&M){const R=kt();ou(R,l.layoutBox,b.layoutBox);const B=kt();ou(B,o,M.layoutBox),e0(R,B)||(v=!0),S.options.layoutRoot&&(i.relativeTarget=B,i.relativeTargetOrigin=R,i.relativeParent=S)}}}i.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:g,layoutDelta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v})}else if(i.isLead()){const{onExitComplete:o}=i.options;o&&o()}i.options.transition=void 0}function H2(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 q2(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function Y2(i){i.clearSnapshot()}function fy(i){i.clearMeasurements()}function hy(i){i.isLayoutDirty=!1}function G2(i){i.isAnimationBlocked&&i.layout&&!i.isLayoutDirty&&(i.snapshot=i.layout,i.isLayoutDirty=!0)}function X2(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function dy(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function Z2(i){i.resolveTargetDelta()}function Q2(i){i.calcProjection()}function K2(i){i.resetSkewAndRotation()}function J2(i){i.removeLeadSnapshot()}function my(i,l,u){i.translate=Nt(l.translate,0,u),i.scale=Nt(l.scale,1,u),i.origin=l.origin,i.originPoint=l.originPoint}function py(i,l,u,o){i.min=Nt(l.min,u.min,o),i.max=Nt(l.max,u.max,o)}function k2(i,l,u,o){py(i.x,l.x,u.x,o),py(i.y,l.y,u.y,o)}function F2(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const W2={duration:.45,ease:[.4,0,.1,1]},yy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),gy=yy("applewebkit/")&&!yy("chrome/")?Math.round:He;function vy(i){i.min=gy(i.min),i.max=gy(i.max)}function P2(i){vy(i.x),vy(i.y)}function s0(i,l,u){return i==="position"||i==="preserve-aspect"&&!S2(sy(l),sy(u),.2)}function $2(i){var l;return i!==i.root&&((l=i.scroll)==null?void 0:l.wasRoot)}const I2=l0({attachResizeListener:(i,l)=>Sl(i,"resize",l),measureScroll:()=>{var i,l;return{x:document.documentElement.scrollLeft||((i=document.body)==null?void 0:i.scrollLeft)||0,y:document.documentElement.scrollTop||((l=document.body)==null?void 0:l.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Wr={current:void 0},u0=l0({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Wr.current){const i=new I2({});i.mount(window),i.setOptions({layoutScroll:!0}),Wr.current=i}return Wr.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Ic=X.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Sy(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function tx(...i){return l=>{let u=!1;const o=i.map(c=>{const d=Sy(c,l);return!u&&typeof d=="function"&&(u=!0),d});if(u)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():Sy(i[c],null)}}}}function ex(...i){return X.useCallback(tx(...i),i)}class nx extends X.Component{getSnapshotBeforeUpdate(l){const u=this.props.childRef.current;if(ks(u)&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=u.offsetParent,c=ks(o)&&o.offsetWidth||0,d=ks(o)&&o.offsetHeight||0,h=getComputedStyle(u),m=this.props.sizeRef.current;m.height=parseFloat(h.height),m.width=parseFloat(h.width),m.top=u.offsetTop,m.left=u.offsetLeft,m.right=c-m.width-m.left,m.bottom=d-m.height-m.top}return null}componentDidUpdate(){}render(){return this.props.children}}function ix({children:i,isPresent:l,anchorX:u,anchorY:o,root:c,pop:d}){var b;const h=X.useId(),m=X.useRef(null),g=X.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=X.useContext(Ic),v=((b=i.props)==null?void 0:b.ref)??(i==null?void 0:i.ref),S=ex(m,v);return X.useInsertionEffect(()=>{const{width:M,height:R,top:B,left:j,right:L,bottom:Y}=g.current;if(l||d===!1||!m.current||!M||!R)return;const H=u==="left"?`left: ${j}`:`right: ${L}`,G=o==="bottom"?`bottom: ${Y}`:`top: ${B}`;m.current.dataset.motionPopId=h;const J=document.createElement("style");p&&(J.nonce=p);const lt=c??document.head;return lt.appendChild(J),J.sheet&&J.sheet.insertRule(`
          [data-motion-pop-id="${h}"] {
            position: absolute !important;
            width: ${M}px !important;
            height: ${R}px !important;
            ${H}px !important;
            ${G}px !important;
          }
        `),()=>{var I;(I=m.current)==null||I.removeAttribute("data-motion-pop-id"),lt.contains(J)&&lt.removeChild(J)}},[l]),q.jsx(nx,{isPresent:l,childRef:m,sizeRef:g,pop:d,children:d===!1?i:X.cloneElement(i,{ref:S})})}const ax=({children:i,initial:l,isPresent:u,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:h,anchorX:m,anchorY:g,root:p})=>{const v=zc(lx),S=X.useId();let b=!0,M=X.useMemo(()=>(b=!1,{id:S,initial:l,isPresent:u,custom:c,onExitComplete:R=>{v.set(R,!0);for(const B of v.values())if(!B)return;o&&o()},register:R=>(v.set(R,!1),()=>v.delete(R))}),[u,v,o]);return d&&b&&(M={...M}),X.useMemo(()=>{v.forEach((R,B)=>v.set(B,!1))},[u]),X.useEffect(()=>{!u&&!v.size&&o&&o()},[u]),i=q.jsx(ix,{pop:h==="popLayout",isPresent:u,anchorX:m,anchorY:g,root:p,children:i}),q.jsx(cu.Provider,{value:M,children:i})};function lx(){return new Map}function o0(i=!0){const l=X.useContext(cu);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:o,register:c}=l,d=X.useId();X.useEffect(()=>{if(i)return c(d)},[i]);const h=X.useCallback(()=>i&&o&&o(d),[d,o,i]);return!u&&o?[!1,h]:[!0]}const Zs=i=>i.key||"";function by(i){const l=[];return X.Children.forEach(i,u=>{X.isValidElement(u)&&l.push(u)}),l}const sx=({children:i,custom:l,initial:u=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:m="left",anchorY:g="top",root:p})=>{const[v,S]=o0(h),b=X.useMemo(()=>by(i),[i]),M=h&&!v?[]:b.map(Zs),R=X.useRef(!0),B=X.useRef(b),j=zc(()=>new Map),L=X.useRef(new Set),[Y,H]=X.useState(b),[G,J]=X.useState(b);Uy(()=>{R.current=!1,B.current=b;for(let $=0;$<G.length;$++){const it=Zs(G[$]);M.includes(it)?(j.delete(it),L.current.delete(it)):j.get(it)!==!0&&j.set(it,!1)}},[G,M.length,M.join("-")]);const lt=[];if(b!==Y){let $=[...b];for(let it=0;it<G.length;it++){const tt=G[it],pt=Zs(tt);M.includes(pt)||($.splice(it,0,tt),lt.push(tt))}return d==="wait"&&lt.length&&($=lt),J(by($)),H(b),null}const{forceRender:I}=X.useContext(Cc);return q.jsx(q.Fragment,{children:G.map($=>{const it=Zs($),tt=h&&!v?!1:b===G||M.includes(it),pt=()=>{if(L.current.has(it))return;if(j.has(it))L.current.add(it),j.set(it,!0);else return;let vt=!0;j.forEach(Pt=>{Pt||(vt=!1)}),vt&&(I==null||I(),J(B.current),h&&(S==null||S()),o&&o())};return q.jsx(ax,{isPresent:tt,initial:!R.current||u?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:tt?void 0:pt,anchorX:m,anchorY:g,children:$},it)})})},r0=X.createContext({strict:!1}),Ty={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 xy=!1;function ux(){if(xy)return;const i={};for(const l in Ty)i[l]={isEnabled:u=>Ty[l].some(o=>!!u[o])};Lg(i),xy=!0}function c0(){return ux(),QT()}function ox(i){const l=c0();for(const u in i)l[u]={...l[u],...i[u]};Lg(l)}const rx=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 ru(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||rx.has(i)}let f0=i=>!ru(i);function cx(i){typeof i=="function"&&(f0=l=>l.startsWith("on")?!ru(l):i(l))}try{cx(require("@emotion/is-prop-valid").default)}catch{}function fx(i,l,u){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||ae(i[c])||(f0(c)||u===!0&&ru(c)||!l&&!ru(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const mu=X.createContext({});function hx(i,l){if(du(i)){const{initial:u,animate:o}=i;return{initial:u===!1||vl(u)?u:void 0,animate:vl(o)?o:void 0}}return i.inherit!==!1?l:{}}function dx(i){const{initial:l,animate:u}=hx(i,X.useContext(mu));return X.useMemo(()=>({initial:l,animate:u}),[Ay(l),Ay(u)])}function Ay(i){return Array.isArray(i)?i.join(" "):i}const tf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function h0(i,l,u){for(const o in l)!ae(l[o])&&!Qg(o,u)&&(i[o]=l[o])}function mx({transformTemplate:i},l){return X.useMemo(()=>{const u=tf();return Pc(u,l,i),Object.assign({},u.vars,u.style)},[l])}function px(i,l){const u=i.style||{},o={};return h0(o,u,i),Object.assign(o,mx(i,l)),o}function yx(i,l){const u={},o=px(i,l);return i.drag&&i.dragListener!==!1&&(u.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(u.tabIndex=0),u.style=o,u}const d0=()=>({...tf(),attrs:{}});function gx(i,l,u,o){const c=X.useMemo(()=>{const d=d0();return Kg(d,l,kg(o),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};h0(d,i.style,i),c.style={...d,...c.style}}return c}const vx=["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 ef(i){return typeof i!="string"||i.includes("-")?!1:!!(vx.indexOf(i)>-1||/[A-Z]/u.test(i))}function Sx(i,l,u,{latestValues:o},c,d=!1,h){const g=(h??ef(i)?gx:yx)(l,o,c,i),p=fx(l,typeof i=="string",d),v=i!==X.Fragment?{...p,...g,ref:u}:{},{children:S}=l,b=X.useMemo(()=>ae(S)?S.get():S,[S]);return X.createElement(i,{...v,children:b})}function bx({scrapeMotionValuesFromProps:i,createRenderState:l},u,o,c){return{latestValues:Tx(u,o,c,i),renderState:l()}}function Tx(i,l,u,o){const c={},d=o(i,{});for(const b in d)c[b]=Is(d[b]);let{initial:h,animate:m}=i;const g=du(i),p=Bg(i);l&&p&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),m===void 0&&(m=l.animate));let v=u?u.initial===!1:!1;v=v||h===!1;const S=v?m:h;if(S&&typeof S!="boolean"&&!hu(S)){const b=Array.isArray(S)?S:[S];for(let M=0;M<b.length;M++){const R=Xc(i,b[M]);if(R){const{transitionEnd:B,transition:j,...L}=R;for(const Y in L){let H=L[Y];if(Array.isArray(H)){const G=v?H.length-1:0;H=H[G]}H!==null&&(c[Y]=H)}for(const Y in B)c[Y]=B[Y]}}}return c}const m0=i=>(l,u)=>{const o=X.useContext(mu),c=X.useContext(cu),d=()=>bx(i,l,o,c);return u?d():zc(d)},xx=m0({scrapeMotionValuesFromProps:$c,createRenderState:tf}),Ax=m0({scrapeMotionValuesFromProps:Fg,createRenderState:d0}),Ex=Symbol.for("motionComponentSymbol");function Mx(i,l,u){const o=X.useRef(u);X.useInsertionEffect(()=>{o.current=u});const c=X.useRef(null);return X.useCallback(d=>{var m;d&&((m=i.onMount)==null||m.call(i,d));const h=o.current;if(typeof h=="function")if(d){const g=h(d);typeof g=="function"&&(c.current=g)}else c.current?(c.current(),c.current=null):h(d);else h&&(h.current=d);l&&(d?l.mount(d):l.unmount())},[l])}const p0=X.createContext({});function sa(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function Dx(i,l,u,o,c,d){var H,G;const{visualElement:h}=X.useContext(mu),m=X.useContext(r0),g=X.useContext(cu),p=X.useContext(Ic),v=p.reducedMotion,S=p.skipAnimations,b=X.useRef(null),M=X.useRef(!1);o=o||m.renderer,!b.current&&o&&(b.current=o(i,{visualState:l,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:S,isSVG:d}),M.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const R=b.current,B=X.useContext(p0);R&&!R.projection&&c&&(R.type==="html"||R.type==="svg")&&Cx(b.current,u,c,B);const j=X.useRef(!1);X.useInsertionEffect(()=>{R&&j.current&&R.update(u,g)});const L=u[Ag],Y=X.useRef(!!L&&typeof window<"u"&&!((H=window.MotionHandoffIsComplete)!=null&&H.call(window,L))&&((G=window.MotionHasOptimisedAnimation)==null?void 0:G.call(window,L)));return Uy(()=>{M.current=!0,R&&(j.current=!0,window.MotionIsMounted=!0,R.updateFeatures(),R.scheduleRenderMicrotask(),Y.current&&R.animationState&&R.animationState.animateChanges())}),X.useEffect(()=>{R&&(!Y.current&&R.animationState&&R.animationState.animateChanges(),Y.current&&(queueMicrotask(()=>{var J;(J=window.MotionHandoffMarkAsComplete)==null||J.call(window,L)}),Y.current=!1),R.enteringChildren=void 0)}),R}function Cx(i,l,u,o){const{layoutId:c,layout:d,drag:h,dragConstraints:m,layoutScroll:g,layoutRoot:p,layoutCrossfade:v}=l;i.projection=new u(i.latestValues,l["data-framer-portal-id"]?void 0:y0(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||m&&sa(m),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:g,layoutRoot:p})}function y0(i){if(i)return i.options.allowProjection!==!1?i.projection:y0(i.parent)}function Pr(i,{forwardMotionProps:l=!1,type:u}={},o,c){o&&ox(o);const d=u?u==="svg":ef(i),h=d?Ax:xx;function m(p,v){let S;const b={...X.useContext(Ic),...p,layoutId:zx(p)},{isStatic:M}=b,R=dx(p),B=h(p,M);if(!M&&typeof window<"u"){Rx();const j=Ox(b);S=j.MeasureLayout,R.visualElement=Dx(i,B,b,c,j.ProjectionNode,d)}return q.jsxs(mu.Provider,{value:R,children:[S&&R.visualElement?q.jsx(S,{visualElement:R.visualElement,...b}):null,Sx(i,p,Mx(B,R.visualElement,v),B,M,l,d)]})}m.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=X.forwardRef(m);return g[Ex]=i,g}function zx({layoutId:i}){const l=X.useContext(Cc).id;return l&&i!==void 0?l+"-"+i:i}function Rx(i,l){X.useContext(r0).strict}function Ox(i){const l=c0(),{drag:u,layout:o}=l;if(!u&&!o)return{};const c={...u,...o};return{MeasureLayout:u!=null&&u.isEnabled(i)||o!=null&&o.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function Vx(i,l){if(typeof Proxy>"u")return Pr;const u=new Map,o=(d,h)=>Pr(d,h,i,l),c=(d,h)=>o(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?o:(u.has(h)||u.set(h,Pr(h,void 0,i,l)),u.get(h))})}const _x=(i,l)=>l.isSVG??ef(i)?new o2(l):new n2(l,{allowProjection:i!==X.Fragment});class Nx extends Fn{constructor(l){super(l),l.animationState||(l.animationState=d2(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();hu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:u}=this.node.prevProps||{};l!==u&&this.updateAnimationControlsSubscription()}unmount(){var l;this.node.animationState.reset(),(l=this.unmountControls)==null||l.call(this)}}let wx=0;class Ux extends Fn{constructor(){super(...arguments),this.id=wx++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:u}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;if(l&&o===!1){if(this.isExitComplete){const{initial:h,custom:m}=this.node.getProps();if(typeof h=="string"){const g=bi(this.node,h,m);if(g){const{transition:p,transitionEnd:v,...S}=g;for(const b in S)(d=this.node.getValue(b))==null||d.jump(S[b])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!l);u&&!l&&c.then(()=>{this.isExitComplete=!0,u(this.id)})}mount(){const{register:l,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const Bx={animation:{Feature:Nx},exit:{Feature:Ux}};function Al(i){return{point:{x:i.pageX,y:i.pageY}}}const jx=i=>l=>Jc(l)&&i(l,Al(l));function pl(i,l,u,o){return Sl(i,l,jx(u),o)}const g0=({current:i})=>i?i.ownerDocument.defaultView:null,Ey=(i,l)=>Math.abs(i-l);function Lx(i,l){const u=Ey(i.x,l.x),o=Ey(i.y,l.y);return Math.sqrt(u**2+o**2)}const My=new Set(["auto","scroll"]);class v0{constructor(l,u,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=M=>{this.handleScroll(M.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Qs(this.lastRawMoveEventInfo,this.transformPagePoint));const M=$r(this.lastMoveEventInfo,this.history),R=this.startEvent!==null,B=Lx(M.offset,{x:0,y:0})>=this.distanceThreshold;if(!R&&!B)return;const{point:j}=M,{timestamp:L}=ie;this.history.push({...j,timestamp:L});const{onStart:Y,onMove:H}=this.handlers;R||(Y&&Y(this.lastMoveEvent,M),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,M)},this.handlePointerMove=(M,R)=>{this.lastMoveEvent=M,this.lastRawMoveEventInfo=R,this.lastMoveEventInfo=Qs(R,this.transformPagePoint),Rt.update(this.updatePoint,!0)},this.handlePointerUp=(M,R)=>{this.end();const{onEnd:B,onSessionEnd:j,resumeAnimation:L}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&L&&L(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Y=$r(M.type==="pointercancel"?this.lastMoveEventInfo:Qs(R,this.transformPagePoint),this.history);this.startEvent&&B&&B(M,Y),j&&j(M,Y)},!Jc(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=c||window;const g=Al(l),p=Qs(g,this.transformPagePoint),{point:v}=p,{timestamp:S}=ie;this.history=[{...v,timestamp:S}];const{onSessionStart:b}=u;b&&b(l,$r(p,this.history)),this.removeListeners=bl(pl(this.contextWindow,"pointermove",this.handlePointerMove),pl(this.contextWindow,"pointerup",this.handlePointerUp),pl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(l){let u=l.parentElement;for(;u;){const o=getComputedStyle(u);(My.has(o.overflowX)||My.has(o.overflowY))&&this.scrollPositions.set(u,{x:u.scrollLeft,y:u.scrollTop}),u=u.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const u=this.scrollPositions.get(l);if(!u)return;const o=l===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-u.x,y:c.y-u.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(l,c),Rt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),kn(this.updatePoint)}}function Qs(i,l){return l?{point:l(i.point)}:i}function Dy(i,l){return{x:i.x-l.x,y:i.y-l.y}}function $r({point:i},l){return{point:i,delta:Dy(i,S0(l)),offset:Dy(i,Hx(l)),velocity:qx(l,.1)}}function Hx(i){return i[0]}function S0(i){return i[i.length-1]}function qx(i,l){if(i.length<2)return{x:0,y:0};let u=i.length-1,o=null;const c=S0(i);for(;u>=0&&(o=i[u],!(c.timestamp-o.timestamp>Ce(l)));)u--;if(!o)return{x:0,y:0};o===i[0]&&i.length>2&&c.timestamp-o.timestamp>Ce(l)*2&&(o=i[1]);const d=Le(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function Yx(i,{min:l,max:u},o){return l!==void 0&&i<l?i=o?Nt(l,i,o.min):Math.max(i,l):u!==void 0&&i>u&&(i=o?Nt(u,i,o.max):Math.min(i,u)),i}function Cy(i,l,u){return{min:l!==void 0?i.min+l:void 0,max:u!==void 0?i.max+u-(i.max-i.min):void 0}}function Gx(i,{top:l,left:u,bottom:o,right:c}){return{x:Cy(i.x,u,c),y:Cy(i.y,l,o)}}function zy(i,l){let u=l.min-i.min,o=l.max-i.max;return l.max-l.min<i.max-i.min&&([u,o]=[o,u]),{min:u,max:o}}function Xx(i,l){return{x:zy(i.x,l.x),y:zy(i.y,l.y)}}function Zx(i,l){let u=.5;const o=re(i),c=re(l);return c>o?u=yl(l.min,l.max-o,i.min):o>c&&(u=yl(i.min,i.max-c,l.min)),Ie(0,1,u)}function Qx(i,l){const u={};return l.min!==void 0&&(u.min=l.min-i.min),l.max!==void 0&&(u.max=l.max-i.min),u}const Ec=.35;function Kx(i=Ec){return i===!1?i=0:i===!0&&(i=Ec),{x:Ry(i,"left","right"),y:Ry(i,"top","bottom")}}function Ry(i,l,u){return{min:Oy(i,l),max:Oy(i,u)}}function Oy(i,l){return typeof i=="number"?i:i[l]||0}const Jx=new WeakMap;class kx{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=kt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:u=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=S=>{u&&this.snapToCursor(Al(S).point),this.stopAnimation()},h=(S,b)=>{const{drag:M,dragPropagation:R,onDragStart:B}=this.getProps();if(M&&!R&&(this.openDragLock&&this.openDragLock(),this.openDragLock=TT(M),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),We(L=>{let Y=this.getAxisMotionValue(L).get()||0;if($e.test(Y)){const{projection:H}=this.visualElement;if(H&&H.layout){const G=H.layout.layoutBox[L];G&&(Y=re(G)*(parseFloat(Y)/100))}}this.originPoint[L]=Y}),B&&Rt.update(()=>B(S,b),!1,!0),pc(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},m=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b;const{dragPropagation:M,dragDirectionLock:R,onDirectionLock:B,onDrag:j}=this.getProps();if(!M&&!this.openDragLock)return;const{offset:L}=b;if(R&&this.currentDirection===null){this.currentDirection=Wx(L),this.currentDirection!==null&&B&&B(this.currentDirection);return}this.updateAxis("x",b.point,L),this.updateAxis("y",b.point,L),this.visualElement.render(),j&&Rt.update(()=>j(S,b),!1,!0)},g=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b,this.stop(S,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:S}=this.getProps();(S||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new v0(l,{onSessionStart:d,onStart:h,onMove:m,onSessionEnd:g,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:g0(this.visualElement),element:this.visualElement.current})}stop(l,u){const o=l||this.latestPointerEvent,c=u||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:m}=this.getProps();m&&Rt.postRender(()=>m(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:u}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,u,o){const{drag:c}=this.getProps();if(!o||!Ks(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(h=Yx(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){var d;const{dragConstraints:l,dragElastic:u}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;l&&sa(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=Gx(o.layoutBox,l):this.constraints=!1,this.elastic=Kx(u),c!==this.constraints&&!sa(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&We(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=Qx(o.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!sa(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=WT(o,c.root,this.visualElement.getTransformPagePoint());let h=Xx(c.layout.layoutBox,d);if(u){const m=u(JT(h));this.hasMutatedConstraints=!!m,m&&(h=qg(m))}return h}startAnimation(l){const{drag:u,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:m}=this.getProps(),g=this.constraints||{},p=We(v=>{if(!Ks(v,u,this.currentDirection))return;let S=g&&g[v]||{};(h===!0||h===v)&&(S={min:0,max:0});const b=c?200:1e6,M=c?40:1e7,R={type:"inertia",velocity:o?l[v]:0,bounceStiffness:b,bounceDamping:M,timeConstant:750,restDelta:1,restSpeed:10,...d,...S};return this.startAxisValueAnimation(v,R)});return Promise.all(p).then(m)}startAxisValueAnimation(l,u){const o=this.getAxisMotionValue(l);return pc(this.visualElement,l),o.start(Gc(l,o,0,u,this.visualElement,!1))}stopAnimation(){We(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const u=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[u];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){We(u=>{const{drag:o}=this.getProps();if(!Ks(u,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:h,max:m}=c.layout.layoutBox[u],g=d.get()||0;d.set(l[u]-Nt(h,m,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:o}=this.visualElement;if(!sa(u)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};We(h=>{const m=this.getAxisMotionValue(h);if(m&&this.constraints!==!1){const g=m.get();c[h]=Zx({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),We(h=>{if(!Ks(h,l,null))return;const m=this.getAxisMotionValue(h),{min:g,max:p}=this.constraints[h];m.set(Nt(g,p,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Jx.set(this.visualElement,this);const l=this.visualElement.current,u=pl(l,"pointerdown",p=>{const{drag:v,dragListener:S=!0}=this.getProps(),b=p.target,M=b!==l&&CT(b);v&&S&&!M&&this.start(p)});let o;const c=()=>{const{dragConstraints:p}=this.getProps();sa(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),o||(o=Fx(l,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Rt.read(c);const m=Sl(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(We(S=>{const b=this.getAxisMotionValue(S);b&&(this.originPoint[S]+=p[S].translate,b.set(b.get()+p[S].translate))}),this.visualElement.render())}));return()=>{m(),u(),h(),g&&g(),o&&o()}}getProps(){const l=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=Ec,dragMomentum:m=!0}=l;return{...l,drag:u,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:m}}}function Vy(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function Fx(i,l,u){const o=Lp(i,Vy(u)),c=Lp(l,Vy(u));return()=>{o(),c()}}function Ks(i,l,u){return(l===!0||l===i)&&(u===null||u===i)}function Wx(i,l=10){let u=null;return Math.abs(i.y)>l?u="y":Math.abs(i.x)>l&&(u="x"),u}class Px extends Fn{constructor(l){super(l),this.removeGroupControls=He,this.removeListeners=He,this.controls=new kx(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}update(){const{dragControls:l}=this.node.getProps(),{dragControls:u}=this.node.prevProps||{};l!==u&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ir=i=>(l,u)=>{i&&Rt.update(()=>i(l,u),!1,!0)};class $x extends Fn{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(l){this.session=new v0(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:g0(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Ir(l),onStart:Ir(u),onMove:Ir(o),onEnd:(d,h)=>{delete this.session,c&&Rt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=pl(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 tc=!1;class Ix extends X.Component{componentDidMount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=l;d&&(u.group&&u.group.add(d),o&&o.register&&c&&o.register(d),tc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),tu.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:u,visualElement:o,drag:c,isPresent:d}=this.props,{projection:h}=o;return h&&(h.isPresent=d,l.layoutDependency!==u&&h.setOptions({...h.options,layoutDependency:u}),tc=!0,c||l.layoutDependency!==u||u===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||Rt.postRender(()=>{const m=h.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Kc.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o}=this.props,{projection:c}=l;tc=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function b0(i){const[l,u]=o0(),o=X.useContext(Cc);return q.jsx(Ix,{...i,layoutGroup:o,switchLayoutGroup:X.useContext(p0),isPresent:l,safeToRemove:u})}const tA={pan:{Feature:$x},drag:{Feature:Px,ProjectionNode:u0,MeasureLayout:b0}};function _y(i,l,u){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=o[c];d&&Rt.postRender(()=>d(l,Al(l)))}class eA extends Fn{mount(){const{current:l}=this.node;l&&(this.unmount=AT(l,(u,o)=>(_y(this.node,o,"Start"),c=>_y(this.node,c,"End"))))}unmount(){}}class nA extends Fn{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=bl(Sl(this.node.current,"focus",()=>this.onFocus()),Sl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ny(i,l,u){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=o[c];d&&Rt.postRender(()=>d(l,Al(l)))}class iA extends Fn{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:u,propagate:o}=this.node.props;this.unmount=RT(l,(c,d)=>(Ny(this.node,d,"Start"),(h,{success:m})=>Ny(this.node,h,m?"End":"Cancel")),{useGlobalTarget:u,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const Mc=new WeakMap,ec=new WeakMap,aA=i=>{const l=Mc.get(i.target);l&&l(i)},lA=i=>{i.forEach(aA)};function sA({root:i,...l}){const u=i||document;ec.has(u)||ec.set(u,{});const o=ec.get(u),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(lA,{root:i,...l})),o[c]}function uA(i,l,u){const o=sA(l);return Mc.set(i,u),o.observe(i),()=>{Mc.delete(i),o.unobserve(i)}}const oA={some:0,all:1};class rA extends Fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var g;(g=this.stopObserver)==null||g.call(this);const{viewport:l={}}=this.node.getProps(),{root:u,margin:o,amount:c="some",once:d}=l,h={root:u?u.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:oA[c]},m=p=>{const{isIntersecting:v}=p;if(this.isInView===v||(this.isInView=v,d&&!v&&this.hasEnteredView))return;v&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",v);const{onViewportEnter:S,onViewportLeave:b}=this.node.getProps(),M=v?S:b;M&&M(p)};this.stopObserver=uA(this.node.current,h,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(cA(l,u))&&this.startObserver()}unmount(){var l;(l=this.stopObserver)==null||l.call(this),this.hasEnteredView=!1,this.isInView=!1}}function cA({viewport:i={}},{viewport:l={}}={}){return u=>i[u]!==l[u]}const fA={inView:{Feature:rA},tap:{Feature:iA},focus:{Feature:nA},hover:{Feature:eA}},hA={layout:{ProjectionNode:u0,MeasureLayout:b0}},dA={...Bx,...fA,...tA,...hA},mA=Vx(dA,_x);function pA(){const[i,l]=X.useState("https://gemini.google.com/share/6be927f77444"),[u,o]=X.useState(""),[c,d]=X.useState(!1),[h,m]=X.useState(!0),[g,p]=X.useState(!1),v=b=>{if(!b)return"";if(!b.includes("://"))return"••••••••••••";try{const M=new URL(b),R=M.pathname.split("/");return R.length>1&&R[R.length-1]&&(R[R.length-1]="••••-••••-••••"),`${M.protocol}//${M.hostname}${R.join("/")}`}catch{return"Protected Gemini Session"}},S=()=>{if(!i.startsWith("http")){alert("Please enter a valid URL starting with http:// or https://");return}o(i),d(!0),m(!1)};return q.jsxs("div",{className:"min-h-screen bg-[#0a0a0a] text-white font-sans selection:bg-emerald-500/30",children:[q.jsx("nav",{className:"border-b border-white/10 bg-black/50 backdrop-blur-md sticky top-0 z-50 px-4 py-3",children:q.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4",children:[q.jsxs("div",{className:"flex items-center gap-2",children:[q.jsx("div",{className:"w-8 h-8 bg-emerald-500 rounded-lg flex items-center justify-center shadow-lg shadow-emerald-500/20",children:q.jsx(yp,{className:"w-5 h-5 text-black"})}),q.jsxs("h1",{className:"text-lg font-semibold tracking-tight",children:["Gemini Viewer ",q.jsx("span",{className:"text-xs font-mono text-emerald-500 opacity-70 ml-1",children:"v1.0"})]})]}),q.jsxs("div",{className:`flex-1 w-full max-w-2xl flex items-center gap-2 bg-white/5 border ${c&&!g?"border-emerald-500/30 bg-emerald-500/5":"border-white/10"} rounded-xl px-3 py-1.5 focus-within:border-emerald-500/50 transition-all`,children:[c&&!g?q.jsx(yp,{className:"w-4 h-4 text-emerald-500 animate-pulse"}):q.jsx(pp,{className:"w-4 h-4 text-white/40"}),q.jsx("input",{type:"text",value:g?i:c?v(i):i,onFocus:()=>p(!0),onBlur:()=>p(!1),onChange:b=>l(b.target.value),placeholder:"Enter Gemini share link...",className:`bg-transparent border-none outline-none flex-1 text-sm ${c&&!g?"text-emerald-500/70 font-mono":"text-white/90"} placeholder:text-white/20`,onKeyDown:b=>b.key==="Enter"&&S()}),c&&!g&&q.jsx("span",{className:"text-[10px] font-bold text-emerald-500/50 px-2 py-0.5 bg-emerald-500/10 rounded-md border border-emerald-500/20 uppercase tracking-widest",children:"Masked"}),q.jsxs("button",{onClick:S,className:"px-4 py-1 bg-emerald-500 hover:bg-emerald-400 text-black text-xs font-bold rounded-lg transition-colors flex items-center gap-1",children:[c?"REFRESH":"LOAD",q.jsx(oS,{className:"w-3 h-3"})]})]}),q.jsx("div",{className:"flex items-center gap-4",children:q.jsx("button",{onClick:()=>m(!h),className:"p-2 hover:bg-white/5 rounded-full transition-colors text-white/60 hover:text-white",children:q.jsx(fS,{className:"w-5 h-5"})})})]})}),q.jsxs("main",{className:"relative h-[calc(100vh-64px)] w-full overflow-hidden",children:[q.jsx(sx,{mode:"wait",children:h?q.jsx(mA.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},className:"absolute inset-0 z-40 flex items-center justify-center p-6 bg-[#0a0a0a]/80 backdrop-blur-xl",children:q.jsxs("div",{className:"max-w-2xl w-full bg-[#111] border border-white/10 rounded-3xl p-8 shadow-2xl",children:[q.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[q.jsx("div",{className:"p-3 bg-emerald-500/10 rounded-2xl",children:q.jsx(gp,{className:"w-8 h-8 text-emerald-500"})}),q.jsxs("div",{children:[q.jsx("h2",{className:"text-2xl font-bold",children:"Extension Setup Guide"}),q.jsx("p",{className:"text-white/40 text-sm",children:"Follow these steps to enable the viewer"})]})]}),q.jsxs("div",{className:"space-y-6",children:[q.jsxs("section",{children:[q.jsxs("h3",{className:"text-emerald-500 font-semibold mb-2 flex items-center gap-2",children:[q.jsx(dS,{className:"w-4 h-4"})," Desktop (Chrome/Edge/Brave)"]}),q.jsxs("ol",{className:"list-decimal list-inside text-sm text-white/70 space-y-2 ml-2",children:[q.jsx("li",{children:"Download the project source code."}),q.jsxs("li",{children:["Go to ",q.jsx("code",{className:"bg-white/10 px-1 rounded text-emerald-400",children:"chrome://extensions"})]}),q.jsxs("li",{children:["Enable ",q.jsx("span",{className:"font-bold text-white",children:"Developer Mode"})," (top right)."]}),q.jsxs("li",{children:["Click ",q.jsx("span",{className:"font-bold text-white",children:"Load unpacked"})," and select the project folder."]})]})]}),q.jsxs("section",{children:[q.jsxs("h3",{className:"text-emerald-500 font-semibold mb-2 flex items-center gap-2",children:[q.jsx(gp,{className:"w-4 h-4"})," Mobile (Android/iOS)"]}),q.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[q.jsxs("div",{className:"p-4 bg-white/5 rounded-2xl border border-white/5",children:[q.jsx("p",{className:"font-bold text-sm mb-1",children:"Android"}),q.jsxs("p",{className:"text-xs text-white/50",children:["Use ",q.jsx("span",{className:"text-white",children:"Kiwi Browser"})," or ",q.jsx("span",{className:"text-white",children:"Yandex Browser"}),". They support Chrome extensions natively."]})]}),q.jsxs("div",{className:"p-4 bg-white/5 rounded-2xl border border-white/5",children:[q.jsx("p",{className:"font-bold text-sm mb-1",children:"iOS (iPhone)"}),q.jsxs("p",{className:"text-xs text-white/50",children:["Requires ",q.jsx("span",{className:"text-white",children:"Orion Browser"})," or Safari Web Extensions (requires conversion to Xcode project)."]})]})]})]}),q.jsxs("div",{className:"p-4 bg-amber-500/10 border border-amber-500/20 rounded-2xl flex gap-3",children:[q.jsx(sS,{className:"w-5 h-5 text-amber-500 shrink-0"}),q.jsxs("p",{className:"text-xs text-amber-200/80 leading-relaxed",children:[q.jsx("strong",{children:"Security Note:"})," This extension works by stripping security headers (X-Frame-Options) using the ",q.jsx("code",{className:"text-amber-400",children:"declarativeNetRequest"})," API. This is only active within the extension context to allow embedding Gemini."]})]}),q.jsx("button",{onClick:()=>m(!1),className:"w-full py-4 bg-white text-black font-bold rounded-2xl hover:bg-emerald-500 transition-colors",children:"GOT IT, LET'S GO"})]})]})},"instructions"):null}),c?q.jsx("div",{className:"w-full h-full bg-white",children:q.jsx("iframe",{src:u,className:"w-full h-full border-none",title:"Gemini Content",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):q.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center p-6",children:[q.jsx("div",{className:"w-24 h-24 bg-white/5 rounded-full flex items-center justify-center mb-6 animate-pulse",children:q.jsx(pp,{className:"w-10 h-10 text-white/20"})}),q.jsx("h3",{className:"text-xl font-medium mb-2",children:"Ready to Load"}),q.jsx("p",{className:"text-white/40 max-w-xs",children:"Enter a URL above to view it within the extension container."})]})]}),q.jsx("footer",{className:"fixed bottom-4 right-4 z-50",children:q.jsxs("div",{className:"bg-black/80 backdrop-blur-md border border-white/10 px-3 py-1.5 rounded-full text-[10px] font-mono text-white/40 flex items-center gap-2",children:[q.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),"CHROME-EXTENSION://VIEWER/INDEX.HTML"]})})]})}I1.createRoot(document.getElementById("root")).render(q.jsx(X.StrictMode,{children:q.jsx(pA,{})}));
