File: /home/hnhtennm/public_html/llpdemo.hnhtechsolutions.com/assets/index-Cisft0bF.js
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(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 r(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();var xr={exports:{}},al={};var Pm;function z1(){if(Pm)return al;Pm=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(r,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var g in c)g!=="key"&&(d[g]=c[g])}else d=c;return c=d.ref,{$$typeof:a,type:r,key:h,ref:c!==void 0?c:null,props:d}}return al.Fragment=l,al.jsx=u,al.jsxs=u,al}var $m;function O1(){return $m||($m=1,xr.exports=z1()),xr.exports}var lt=O1(),Dr={exports:{}},nt={};var Im;function R1(){if(Im)return nt;Im=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function O(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,U={};function L(E,N,Q){this.props=E,this.context=N,this.refs=U,this.updater=Q||j}L.prototype.isReactComponent={},L.prototype.setState=function(E,N){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,N,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function q(){}q.prototype=L.prototype;function H(E,N,Q){this.props=E,this.context=N,this.refs=U,this.updater=Q||j}var I=H.prototype=new q;I.constructor=H,Y(I,L.prototype),I.isPureReactComponent=!0;var X=Array.isArray;function $(){}var K={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function pt(E,N,Q){var k=Q.ref;return{$$typeof:a,type:E,key:N,ref:k!==void 0?k:null,props:Q}}function Rt(E,N){return pt(E.type,N,E.props)}function Ht(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function Qt(E){var N={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return N[Q]})}var We=/\/+/g;function De(E,N){return typeof E=="object"&&E!==null&&E.key!=null?Qt(""+E.key):N.toString(36)}function ue(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then($,$):(E.status="pending",E.then(function(N){E.status==="pending"&&(E.status="fulfilled",E.value=N)},function(N){E.status==="pending"&&(E.status="rejected",E.reason=N)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function V(E,N,Q,k,it){var ut=typeof E;(ut==="undefined"||ut==="boolean")&&(E=null);var St=!1;if(E===null)St=!0;else switch(ut){case"bigint":case"string":case"number":St=!0;break;case"object":switch(E.$$typeof){case a:case l:St=!0;break;case S:return St=E._init,V(St(E._payload),N,Q,k,it)}}if(St)return it=it(E),St=k===""?"."+De(E,0):k,X(it)?(Q="",St!=null&&(Q=St.replace(We,"$&/")+"/"),V(it,N,Q,"",function(fa){return fa})):it!=null&&(Ht(it)&&(it=Rt(it,Q+(it.key==null||E&&E.key===it.key?"":(""+it.key).replace(We,"$&/")+"/")+St)),N.push(it)),1;St=0;var ie=k===""?".":k+":";if(X(E))for(var Nt=0;Nt<E.length;Nt++)k=E[Nt],ut=ie+De(k,Nt),St+=V(k,N,Q,ut,it);else if(Nt=O(E),typeof Nt=="function")for(E=Nt.call(E),Nt=0;!(k=E.next()).done;)k=k.value,ut=ie+De(k,Nt++),St+=V(k,N,Q,ut,it);else if(ut==="object"){if(typeof E.then=="function")return V(ue(E),N,Q,k,it);throw N=String(E),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return St}function w(E,N,Q){if(E==null)return E;var k=[],it=0;return V(E,k,"","",function(ut){return N.call(Q,ut,it++)}),k}function W(E){if(E._status===-1){var N=E._result;N=N(),N.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=N)}if(E._status===1)return E._result.default;throw E._result}var ct=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},mt={map:w,forEach:function(E,N,Q){w(E,function(){N.apply(this,arguments)},Q)},count:function(E){var N=0;return w(E,function(){N++}),N},toArray:function(E){return w(E,function(N){return N})||[]},only:function(E){if(!Ht(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return nt.Activity=v,nt.Children=mt,nt.Component=L,nt.Fragment=u,nt.Profiler=c,nt.PureComponent=H,nt.StrictMode=r,nt.Suspense=y,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,nt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return K.H.useMemoCache(E)}},nt.cache=function(E){return function(){return E.apply(null,arguments)}},nt.cacheSignal=function(){return null},nt.cloneElement=function(E,N,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var k=Y({},E.props),it=E.key;if(N!=null)for(ut in N.key!==void 0&&(it=""+N.key),N)!Z.call(N,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&N.ref===void 0||(k[ut]=N[ut]);var ut=arguments.length-2;if(ut===1)k.children=Q;else if(1<ut){for(var St=Array(ut),ie=0;ie<ut;ie++)St[ie]=arguments[ie+2];k.children=St}return pt(E.type,it,k)},nt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},nt.createElement=function(E,N,Q){var k,it={},ut=null;if(N!=null)for(k in N.key!==void 0&&(ut=""+N.key),N)Z.call(N,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(it[k]=N[k]);var St=arguments.length-2;if(St===1)it.children=Q;else if(1<St){for(var ie=Array(St),Nt=0;Nt<St;Nt++)ie[Nt]=arguments[Nt+2];it.children=ie}if(E&&E.defaultProps)for(k in St=E.defaultProps,St)it[k]===void 0&&(it[k]=St[k]);return pt(E,ut,it)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(E){return{$$typeof:g,render:E}},nt.isValidElement=Ht,nt.lazy=function(E){return{$$typeof:S,_payload:{_status:-1,_result:E},_init:W}},nt.memo=function(E,N){return{$$typeof:m,type:E,compare:N===void 0?null:N}},nt.startTransition=function(E){var N=K.T,Q={};K.T=Q;try{var k=E(),it=K.S;it!==null&&it(Q,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then($,ct)}catch(ut){ct(ut)}finally{N!==null&&Q.types!==null&&(N.types=Q.types),K.T=N}},nt.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},nt.use=function(E){return K.H.use(E)},nt.useActionState=function(E,N,Q){return K.H.useActionState(E,N,Q)},nt.useCallback=function(E,N){return K.H.useCallback(E,N)},nt.useContext=function(E){return K.H.useContext(E)},nt.useDebugValue=function(){},nt.useDeferredValue=function(E,N){return K.H.useDeferredValue(E,N)},nt.useEffect=function(E,N){return K.H.useEffect(E,N)},nt.useEffectEvent=function(E){return K.H.useEffectEvent(E)},nt.useId=function(){return K.H.useId()},nt.useImperativeHandle=function(E,N,Q){return K.H.useImperativeHandle(E,N,Q)},nt.useInsertionEffect=function(E,N){return K.H.useInsertionEffect(E,N)},nt.useLayoutEffect=function(E,N){return K.H.useLayoutEffect(E,N)},nt.useMemo=function(E,N){return K.H.useMemo(E,N)},nt.useOptimistic=function(E,N){return K.H.useOptimistic(E,N)},nt.useReducer=function(E,N,Q){return K.H.useReducer(E,N,Q)},nt.useRef=function(E){return K.H.useRef(E)},nt.useState=function(E){return K.H.useState(E)},nt.useSyncExternalStore=function(E,N,Q){return K.H.useSyncExternalStore(E,N,Q)},nt.useTransition=function(){return K.H.useTransition()},nt.version="19.2.3",nt}var tp;function mc(){return tp||(tp=1,Dr.exports=R1()),Dr.exports}var G=mc(),Mr={exports:{}},ll={},Cr={exports:{}},zr={};var ep;function V1(){return ep||(ep=1,(function(a){function l(V,w){var W=V.length;V.push(w);t:for(;0<W;){var ct=W-1>>>1,mt=V[ct];if(0<c(mt,w))V[ct]=w,V[W]=mt,W=ct;else break t}}function u(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var w=V[0],W=V.pop();if(W!==w){V[0]=W;t:for(var ct=0,mt=V.length,E=mt>>>1;ct<E;){var N=2*(ct+1)-1,Q=V[N],k=N+1,it=V[k];if(0>c(Q,W))k<mt&&0>c(it,Q)?(V[ct]=it,V[k]=W,ct=k):(V[ct]=Q,V[N]=W,ct=N);else if(k<mt&&0>c(it,W))V[ct]=it,V[k]=W,ct=k;else break t}}return w}function c(V,w){var W=V.sortIndex-w.sortIndex;return W!==0?W:V.id-w.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,g=h.now();a.unstable_now=function(){return h.now()-g}}var y=[],m=[],S=1,v=null,b=3,O=!1,j=!1,Y=!1,U=!1,L=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function I(V){for(var w=u(m);w!==null;){if(w.callback===null)r(m);else if(w.startTime<=V)r(m),w.sortIndex=w.expirationTime,l(y,w);else break;w=u(m)}}function X(V){if(Y=!1,I(V),!j)if(u(y)!==null)j=!0,$||($=!0,Qt());else{var w=u(m);w!==null&&ue(X,w.startTime-V)}}var $=!1,K=-1,Z=5,pt=-1;function Rt(){return U?!0:!(a.unstable_now()-pt<Z)}function Ht(){if(U=!1,$){var V=a.unstable_now();pt=V;var w=!0;try{t:{j=!1,Y&&(Y=!1,q(K),K=-1),O=!0;var W=b;try{e:{for(I(V),v=u(y);v!==null&&!(v.expirationTime>V&&Rt());){var ct=v.callback;if(typeof ct=="function"){v.callback=null,b=v.priorityLevel;var mt=ct(v.expirationTime<=V);if(V=a.unstable_now(),typeof mt=="function"){v.callback=mt,I(V),w=!0;break e}v===u(y)&&r(y),I(V)}else r(y);v=u(y)}if(v!==null)w=!0;else{var E=u(m);E!==null&&ue(X,E.startTime-V),w=!1}}break t}finally{v=null,b=W,O=!1}w=void 0}}finally{w?Qt():$=!1}}}var Qt;if(typeof H=="function")Qt=function(){H(Ht)};else if(typeof MessageChannel<"u"){var We=new MessageChannel,De=We.port2;We.port1.onmessage=Ht,Qt=function(){De.postMessage(null)}}else Qt=function(){L(Ht,0)};function ue(V,w){K=L(function(){V(a.unstable_now())},w)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(V){V.callback=null},a.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"):Z=0<V?Math.floor(1e3/V):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(V){switch(b){case 1:case 2:case 3:var w=3;break;default:w=b}var W=b;b=w;try{return V()}finally{b=W}},a.unstable_requestPaint=function(){U=!0},a.unstable_runWithPriority=function(V,w){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var W=b;b=V;try{return w()}finally{b=W}},a.unstable_scheduleCallback=function(V,w,W){var ct=a.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ct+W:ct):W=ct,V){case 1:var mt=-1;break;case 2:mt=250;break;case 5:mt=1073741823;break;case 4:mt=1e4;break;default:mt=5e3}return mt=W+mt,V={id:S++,callback:w,priorityLevel:V,startTime:W,expirationTime:mt,sortIndex:-1},W>ct?(V.sortIndex=W,l(m,V),u(y)===null&&V===u(m)&&(Y?(q(K),K=-1):Y=!0,ue(X,W-ct))):(V.sortIndex=mt,l(y,V),j||O||(j=!0,$||($=!0,Qt()))),V},a.unstable_shouldYield=Rt,a.unstable_wrapCallback=function(V){var w=b;return function(){var W=b;b=w;try{return V.apply(this,arguments)}finally{b=W}}}})(zr)),zr}var np;function _1(){return np||(np=1,Cr.exports=V1()),Cr.exports}var Or={exports:{}},ee={};var ip;function U1(){if(ip)return ee;ip=1;var a=mc();function l(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)m+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={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(y,m,S){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:y,containerInfo:m,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ee.createPortal=function(y,m){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return d(y,m,null,S)},ee.flushSync=function(y){var m=h.T,S=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=m,r.p=S,r.d.f()}},ee.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(y,m))},ee.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},ee.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var S=m.as,v=g(S,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,O=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;S==="style"?r.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:O}):S==="script"&&r.d.X(y,{crossOrigin:v,integrity:b,fetchPriority:O,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ee.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var S=g(m.as,m.crossOrigin);r.d.M(y,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(y)},ee.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var S=m.as,v=g(S,m.crossOrigin);r.d.L(y,S,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ee.preloadModule=function(y,m){if(typeof y=="string")if(m){var S=g(m.as,m.crossOrigin);r.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(y)},ee.requestFormReset=function(y){r.d.r(y)},ee.unstable_batchedUpdates=function(y,m){return y(m)},ee.useFormState=function(y,m,S){return h.H.useFormState(y,m,S)},ee.useFormStatus=function(){return h.H.useHostTransitionStatus()},ee.version="19.2.3",ee}var ap;function B1(){if(ap)return Or.exports;ap=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Or.exports=U1(),Or.exports}var lp;function N1(){if(lp)return ll;lp=1;var a=_1(),l=mc(),u=B1();function r(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 g(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 y(t){if(d(t)!==t)throw Error(r(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,i=e;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return y(s),t;if(o===i)return y(s),e;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=s,i=o;else{for(var f=!1,p=s.child;p;){if(p===n){f=!0,n=s,i=o;break}if(p===i){f=!0,i=s,n=o;break}p=p.sibling}if(!f){for(p=o.child;p;){if(p===n){f=!0,n=o,i=s;break}if(p===i){f=!0,i=o,n=s;break}p=p.sibling}if(!f)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),H=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),pt=Symbol.for("react.activity"),Rt=Symbol.for("react.memo_cache_sentinel"),Ht=Symbol.iterator;function Qt(t){return t===null||typeof t!="object"?null:(t=Ht&&t[Ht]||t["@@iterator"],typeof t=="function"?t:null)}var We=Symbol.for("react.client.reference");function De(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===We?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case L:return"Profiler";case U:return"StrictMode";case X:return"Suspense";case $:return"SuspenseList";case pt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case H:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case I:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case K:return e=t.displayName||null,e!==null?e:De(t.type)||"Memo";case Z:e=t._payload,t=t._init;try{return De(t(e))}catch{}}return null}var ue=Array.isArray,V=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},ct=[],mt=-1;function E(t){return{current:t}}function N(t){0>mt||(t.current=ct[mt],ct[mt]=null,mt--)}function Q(t,e){mt++,ct[mt]=t.current,t.current=e}var k=E(null),it=E(null),ut=E(null),St=E(null);function ie(t,e){switch(Q(ut,e),Q(it,t),Q(k,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Tm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Tm(e),t=bm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(k),Q(k,t)}function Nt(){N(k),N(it),N(ut)}function fa(t){t.memoizedState!==null&&Q(St,t);var e=k.current,n=bm(e,t.type);e!==n&&(Q(it,t),Q(k,n))}function Al(t){it.current===t&&(N(k),N(it)),St.current===t&&(N(St),tl._currentValue=W)}var lu,kc;function Fn(t){if(lu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);lu=e&&e[1]||"",kc=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+lu+t+kc}var su=!1;function uu(t,e){if(!t||su)return"";su=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(z){var C=z}Reflect.construct(t,[],B)}else{try{B.call()}catch(z){C=z}t.call(B.prototype)}}else{try{throw Error()}catch(z){C=z}(B=t())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(z){if(z&&C&&typeof z.stack=="string")return[z.stack,C.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),f=o[0],p=o[1];if(f&&p){var T=f.split(`
`),M=p.split(`
`);for(s=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(i===T.length||s===M.length)for(i=T.length-1,s=M.length-1;1<=i&&0<=s&&T[i]!==M[s];)s--;for(;1<=i&&0<=s;i--,s--)if(T[i]!==M[s]){if(i!==1||s!==1)do if(i--,s--,0>s||T[i]!==M[s]){var R=`
`+T[i].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=i&&0<=s);break}}}finally{su=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Fn(n):""}function l0(t,e){switch(t.tag){case 26:case 27:case 5:return Fn(t.type);case 16:return Fn("Lazy");case 13:return t.child!==e&&e!==null?Fn("Suspense Fallback"):Fn("Suspense");case 19:return Fn("SuspenseList");case 0:case 15:return uu(t.type,!1);case 11:return uu(t.type.render,!1);case 1:return uu(t.type,!0);case 31:return Fn("Activity");default:return""}}function Wc(t){try{var e="",n=null;do e+=l0(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}var ou=Object.prototype.hasOwnProperty,ru=a.unstable_scheduleCallback,cu=a.unstable_cancelCallback,s0=a.unstable_shouldYield,u0=a.unstable_requestPaint,pe=a.unstable_now,o0=a.unstable_getCurrentPriorityLevel,Pc=a.unstable_ImmediatePriority,$c=a.unstable_UserBlockingPriority,El=a.unstable_NormalPriority,r0=a.unstable_LowPriority,Ic=a.unstable_IdlePriority,c0=a.log,f0=a.unstable_setDisableYieldValue,ha=null,ye=null;function vn(t){if(typeof c0=="function"&&f0(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(ha,t)}catch{}}var ge=Math.clz32?Math.clz32:m0,h0=Math.log,d0=Math.LN2;function m0(t){return t>>>=0,t===0?32:31-(h0(t)/d0|0)|0}var xl=256,Dl=262144,Ml=4194304;function kn(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 Cl(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var s=0,o=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var p=i&134217727;return p!==0?(i=p&~o,i!==0?s=kn(i):(f&=p,f!==0?s=kn(f):n||(n=p&~t,n!==0&&(s=kn(n))))):(p=i&~o,p!==0?s=kn(p):f!==0?s=kn(f):n||(n=i&~t,n!==0&&(s=kn(n)))),s===0?0:e!==0&&e!==s&&(e&o)===0&&(o=s&-s,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:s}function da(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function p0(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 tf(){var t=Ml;return Ml<<=1,(Ml&62914560)===0&&(Ml=4194304),t}function fu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ma(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function y0(t,e,n,i,s,o){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 p=t.entanglements,T=t.expirationTimes,M=t.hiddenUpdates;for(n=f&~n;0<n;){var R=31-ge(n),B=1<<R;p[R]=0,T[R]=-1;var C=M[R];if(C!==null)for(M[R]=null,R=0;R<C.length;R++){var z=C[R];z!==null&&(z.lane&=-536870913)}n&=~B}i!==0&&ef(t,i,0),o!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=o&~(f&~e))}function ef(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-ge(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function nf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-ge(n),s=1<<i;s&e|t[i]&e&&(t[i]|=e),n&=~s}}function af(t,e){var n=e&-e;return n=(n&42)!==0?1:hu(n),(n&(t.suspendedLanes|e))!==0?0:n}function hu(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 du(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function lf(){var t=w.p;return t!==0?t:(t=window.event,t===void 0?32:Qm(t.type))}function sf(t,e){var n=w.p;try{return w.p=t,e()}finally{w.p=n}}var Sn=Math.random().toString(36).slice(2),kt="__reactFiber$"+Sn,oe="__reactProps$"+Sn,vi="__reactContainer$"+Sn,mu="__reactEvents$"+Sn,g0="__reactListeners$"+Sn,v0="__reactHandles$"+Sn,uf="__reactResources$"+Sn,pa="__reactMarker$"+Sn;function pu(t){delete t[kt],delete t[oe],delete t[mu],delete t[g0],delete t[v0]}function Si(t){var e=t[kt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[vi]||n[kt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=zm(t);t!==null;){if(n=t[kt])return n;t=zm(t)}return e}t=n,n=t.parentNode}return null}function Ti(t){if(t=t[kt]||t[vi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ya(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function bi(t){var e=t[uf];return e||(e=t[uf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Jt(t){t[pa]=!0}var of=new Set,rf={};function Wn(t,e){Ai(t,e),Ai(t+"Capture",e)}function Ai(t,e){for(rf[t]=e,t=0;t<e.length;t++)of.add(e[t])}var S0=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]*$"),cf={},ff={};function T0(t){return ou.call(ff,t)?!0:ou.call(cf,t)?!1:S0.test(t)?ff[t]=!0:(cf[t]=!0,!1)}function zl(t,e,n){if(T0(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ol(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 Pe(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}function Me(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function hf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function b0(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,o=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,o.call(this,f)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function yu(t){if(!t._valueTracker){var e=hf(t)?"checked":"value";t._valueTracker=b0(t,e,""+t[e])}}function df(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=hf(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Rl(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 A0=/[\n"\\]/g;function Ce(t){return t.replace(A0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function gu(t,e,n,i,s,o,f,p){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=""+Me(e)):t.value!==""+Me(e)&&(t.value=""+Me(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?vu(t,f,Me(e)):n!=null?vu(t,f,Me(n)):i!=null&&t.removeAttribute("value"),s==null&&o!=null&&(t.defaultChecked=!!o),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+Me(p):t.removeAttribute("name")}function mf(t,e,n,i,s,o,f,p){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){yu(t);return}n=n!=null?""+Me(n):"",e=e!=null?""+Me(e):n,p||e===t.value||(t.value=e),t.defaultValue=e}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=p?t.checked:!!i,t.defaultChecked=!!i,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),yu(t)}function vu(t,e,n){e==="number"&&Rl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ei(t,e,n,i){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&&i&&(t[n].defaultSelected=!0)}else{for(n=""+Me(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,i&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function pf(t,e,n){if(e!=null&&(e=""+Me(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Me(n):""}function yf(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(r(92));if(ue(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=Me(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),yu(t)}function xi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var E0=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 gf(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||E0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function vf(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var s in e)i=e[s],e.hasOwnProperty(s)&&n[s]!==i&&gf(t,s,i)}else for(var o in e)e.hasOwnProperty(o)&&gf(t,o,e[o])}function Su(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 x0=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"]]),D0=/^[\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 Vl(t){return D0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function $e(){}var Tu=null;function bu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Di=null,Mi=null;function Sf(t){var e=Ti(t);if(e&&(t=e.stateNode)){var n=t[oe]||null;t:switch(t=e.stateNode,e.type){case"input":if(gu(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="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var s=i[oe]||null;if(!s)throw Error(r(90));gu(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&df(i)}break t;case"textarea":pf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ei(t,!!n.multiple,e,!1)}}}var Au=!1;function Tf(t,e,n){if(Au)return t(e,n);Au=!0;try{var i=t(e);return i}finally{if(Au=!1,(Di!==null||Mi!==null)&&(vs(),Di&&(e=Di,t=Mi,Mi=Di=null,Sf(e),t)))for(e=0;e<t.length;e++)Sf(t[e])}}function ga(t,e){var n=t.stateNode;if(n===null)return null;var i=n[oe]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var Ie=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eu=!1;if(Ie)try{var va={};Object.defineProperty(va,"passive",{get:function(){Eu=!0}}),window.addEventListener("test",va,va),window.removeEventListener("test",va,va)}catch{Eu=!1}var Tn=null,xu=null,_l=null;function bf(){if(_l)return _l;var t,e=xu,n=e.length,i,s="value"in Tn?Tn.value:Tn.textContent,o=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(i=1;i<=f&&e[n-i]===s[o-i];i++);return _l=s.slice(t,1<i?1-i: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 Af(){return!1}function re(t){function e(n,i,s,o,f){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=o,this.target=f,this.currentTarget=null;for(var p in t)t.hasOwnProperty(p)&&(n=t[p],this[p]=n?n(o):o[p]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Bl:Af,this.isPropagationStopped=Af,this}return v(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 Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nl=re(Pn),Sa=v({},Pn,{view:0,detail:0}),M0=re(Sa),Du,Mu,Ta,jl=v({},Sa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zu,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!==Ta&&(Ta&&t.type==="mousemove"?(Du=t.screenX-Ta.screenX,Mu=t.screenY-Ta.screenY):Mu=Du=0,Ta=t),Du)},movementY:function(t){return"movementY"in t?t.movementY:Mu}}),Ef=re(jl),C0=v({},jl,{dataTransfer:0}),z0=re(C0),O0=v({},Sa,{relatedTarget:0}),Cu=re(O0),R0=v({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0}),V0=re(R0),_0=v({},Pn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),U0=re(_0),B0=v({},Pn,{data:0}),xf=re(B0),N0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j0={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"},L0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=L0[t])?!!e[t]:!1}function zu(){return H0}var w0=v({},Sa,{key:function(t){if(t.key){var e=N0[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"?j0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zu,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}}),Y0=re(w0),q0=v({},jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Df=re(q0),G0=v({},Sa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),X0=re(G0),Q0=v({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z0=re(Q0),K0=v({},jl,{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}),J0=re(K0),F0=v({},Pn,{newState:0,oldState:0}),k0=re(F0),W0=[9,13,27,32],Ou=Ie&&"CompositionEvent"in window,ba=null;Ie&&"documentMode"in document&&(ba=document.documentMode);var P0=Ie&&"TextEvent"in window&&!ba,Mf=Ie&&(!Ou||ba&&8<ba&&11>=ba),Cf=" ",zf=!1;function Of(t,e){switch(t){case"keyup":return W0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ci=!1;function $0(t,e){switch(t){case"compositionend":return Rf(e);case"keypress":return e.which!==32?null:(zf=!0,Cf);case"textInput":return t=e.data,t===Cf&&zf?null:t;default:return null}}function I0(t,e){if(Ci)return t==="compositionend"||!Ou&&Of(t,e)?(t=bf(),_l=xu=Tn=null,Ci=!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 Mf&&e.locale!=="ko"?null:e.data;default:return null}}var tv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!tv[t.type]:e==="textarea"}function _f(t,e,n,i){Di?Mi?Mi.push(i):Mi=[i]:Di=i,e=Ds(e,"onChange"),0<e.length&&(n=new Nl("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Aa=null,Ea=null;function ev(t){mm(t,0)}function Ll(t){var e=ya(t);if(df(e))return t}function Uf(t,e){if(t==="change")return e}var Bf=!1;if(Ie){var Ru;if(Ie){var Vu="oninput"in document;if(!Vu){var Nf=document.createElement("div");Nf.setAttribute("oninput","return;"),Vu=typeof Nf.oninput=="function"}Ru=Vu}else Ru=!1;Bf=Ru&&(!document.documentMode||9<document.documentMode)}function jf(){Aa&&(Aa.detachEvent("onpropertychange",Lf),Ea=Aa=null)}function Lf(t){if(t.propertyName==="value"&&Ll(Ea)){var e=[];_f(e,Ea,t,bu(t)),Tf(ev,e)}}function nv(t,e,n){t==="focusin"?(jf(),Aa=e,Ea=n,Aa.attachEvent("onpropertychange",Lf)):t==="focusout"&&jf()}function iv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ll(Ea)}function av(t,e){if(t==="click")return Ll(e)}function lv(t,e){if(t==="input"||t==="change")return Ll(e)}function sv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ve=typeof Object.is=="function"?Object.is:sv;function xa(t,e){if(ve(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!ou.call(e,s)||!ve(t[s],e[s]))return!1}return!0}function Hf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function wf(t,e){var n=Hf(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Hf(n)}}function Yf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Yf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function qf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Rl(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=Rl(t.document)}return e}function _u(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 uv=Ie&&"documentMode"in document&&11>=document.documentMode,zi=null,Uu=null,Da=null,Bu=!1;function Gf(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bu||zi==null||zi!==Rl(i)||(i=zi,"selectionStart"in i&&_u(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Da&&xa(Da,i)||(Da=i,i=Ds(Uu,"onSelect"),0<i.length&&(e=new Nl("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=zi)))}function $n(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Oi={animationend:$n("Animation","AnimationEnd"),animationiteration:$n("Animation","AnimationIteration"),animationstart:$n("Animation","AnimationStart"),transitionrun:$n("Transition","TransitionRun"),transitionstart:$n("Transition","TransitionStart"),transitioncancel:$n("Transition","TransitionCancel"),transitionend:$n("Transition","TransitionEnd")},Nu={},Xf={};Ie&&(Xf=document.createElement("div").style,"AnimationEvent"in window||(delete Oi.animationend.animation,delete Oi.animationiteration.animation,delete Oi.animationstart.animation),"TransitionEvent"in window||delete Oi.transitionend.transition);function In(t){if(Nu[t])return Nu[t];if(!Oi[t])return t;var e=Oi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Xf)return Nu[t]=e[n];return t}var Qf=In("animationend"),Zf=In("animationiteration"),Kf=In("animationstart"),ov=In("transitionrun"),rv=In("transitionstart"),cv=In("transitioncancel"),Jf=In("transitionend"),Ff=new Map,ju="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(" ");ju.push("scrollEnd");function we(t,e){Ff.set(t,e),Wn(e,[t])}var Hl=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)},ze=[],Ri=0,Lu=0;function wl(){for(var t=Ri,e=Lu=Ri=0;e<t;){var n=ze[e];ze[e++]=null;var i=ze[e];ze[e++]=null;var s=ze[e];ze[e++]=null;var o=ze[e];if(ze[e++]=null,i!==null&&s!==null){var f=i.pending;f===null?s.next=s:(s.next=f.next,f.next=s),i.pending=s}o!==0&&kf(n,s,o)}}function Yl(t,e,n,i){ze[Ri++]=t,ze[Ri++]=e,ze[Ri++]=n,ze[Ri++]=i,Lu|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Hu(t,e,n,i){return Yl(t,e,n,i),ql(t)}function ti(t,e){return Yl(t,null,null,e),ql(t)}function kf(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var s=!1,o=t.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(s=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,s&&e!==null&&(s=31-ge(n),t=o.hiddenUpdates,i=t[s],i===null?t[s]=[e]:i.push(e),e.lane=n|536870912),o):null}function ql(t){if(50<Ja)throw Ja=0,Fo=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Vi={};function fv(t,e,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Se(t,e,n,i){return new fv(t,e,n,i)}function wu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tn(t,e){var n=t.alternate;return n===null?(n=Se(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 Wf(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 Gl(t,e,n,i,s,o){var f=0;if(i=t,typeof t=="function")wu(t)&&(f=1);else if(typeof t=="string")f=y1(t,n,k.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case pt:return t=Se(31,n,e,s),t.elementType=pt,t.lanes=o,t;case Y:return ei(n.children,s,o,e);case U:f=8,s|=24;break;case L:return t=Se(12,n,e,s|2),t.elementType=L,t.lanes=o,t;case X:return t=Se(13,n,e,s),t.elementType=X,t.lanes=o,t;case $:return t=Se(19,n,e,s),t.elementType=$,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:f=10;break t;case q:f=9;break t;case I:f=11;break t;case K:f=14;break t;case Z:f=16,i=null;break t}f=29,n=Error(r(130,t===null?"null":typeof t,"")),i=null}return e=Se(f,n,e,s),e.elementType=t,e.type=i,e.lanes=o,e}function ei(t,e,n,i){return t=Se(7,t,i,e),t.lanes=n,t}function Yu(t,e,n){return t=Se(6,t,null,e),t.lanes=n,t}function Pf(t){var e=Se(18,null,null,0);return e.stateNode=t,e}function qu(t,e,n){return e=Se(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var $f=new WeakMap;function Oe(t,e){if(typeof t=="object"&&t!==null){var n=$f.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Wc(e)},$f.set(t,e),e)}return{value:t,source:e,stack:Wc(e)}}var _i=[],Ui=0,Xl=null,Ma=0,Re=[],Ve=0,bn=null,Qe=1,Ze="";function en(t,e){_i[Ui++]=Ma,_i[Ui++]=Xl,Xl=t,Ma=e}function If(t,e,n){Re[Ve++]=Qe,Re[Ve++]=Ze,Re[Ve++]=bn,bn=t;var i=Qe;t=Ze;var s=32-ge(i)-1;i&=~(1<<s),n+=1;var o=32-ge(e)+s;if(30<o){var f=s-s%5;o=(i&(1<<f)-1).toString(32),i>>=f,s-=f,Qe=1<<32-ge(e)+s|n<<s|i,Ze=o+t}else Qe=1<<o|n<<s|i,Ze=t}function Gu(t){t.return!==null&&(en(t,1),If(t,1,0))}function Xu(t){for(;t===Xl;)Xl=_i[--Ui],_i[Ui]=null,Ma=_i[--Ui],_i[Ui]=null;for(;t===bn;)bn=Re[--Ve],Re[Ve]=null,Ze=Re[--Ve],Re[Ve]=null,Qe=Re[--Ve],Re[Ve]=null}function th(t,e){Re[Ve++]=Qe,Re[Ve++]=Ze,Re[Ve++]=bn,Qe=e.id,Ze=e.overflow,bn=t}var Wt=null,Mt=null,dt=!1,An=null,_e=!1,Qu=Error(r(519));function En(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ca(Oe(e,t)),Qu}function eh(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[kt]=t,e[oe]=i,n){case"dialog":rt("cancel",e),rt("close",e);break;case"iframe":case"object":case"embed":rt("load",e);break;case"video":case"audio":for(n=0;n<ka.length;n++)rt(ka[n],e);break;case"source":rt("error",e);break;case"img":case"image":case"link":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"input":rt("invalid",e),mf(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":rt("invalid",e);break;case"textarea":rt("invalid",e),yf(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||vm(e.textContent,n)?(i.popover!=null&&(rt("beforetoggle",e),rt("toggle",e)),i.onScroll!=null&&rt("scroll",e),i.onScrollEnd!=null&&rt("scrollend",e),i.onClick!=null&&(e.onclick=$e),e=!0):e=!1,e||En(t,!0)}function nh(t){for(Wt=t.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:_e=!1;return;case 27:case 3:_e=!0;return;default:Wt=Wt.return}}function Bi(t){if(t!==Wt)return!1;if(!dt)return nh(t),dt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||rr(t.type,t.memoizedProps)),n=!n),n&&Mt&&En(t),nh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Mt=Cm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Mt=Cm(t)}else e===27?(e=Mt,Ln(t.type)?(t=mr,mr=null,Mt=t):Mt=e):Mt=Wt?Be(t.stateNode.nextSibling):null;return!0}function ni(){Mt=Wt=null,dt=!1}function Zu(){var t=An;return t!==null&&(de===null?de=t:de.push.apply(de,t),An=null),t}function Ca(t){An===null?An=[t]:An.push(t)}var Ku=E(null),ii=null,nn=null;function xn(t,e,n){Q(Ku,e._currentValue),e._currentValue=n}function an(t){t._currentValue=Ku.current,N(Ku)}function Ju(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Fu(t,e,n,i){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){var f=s.child;o=o.firstContext;t:for(;o!==null;){var p=o;o=s;for(var T=0;T<e.length;T++)if(p.context===e[T]){o.lanes|=n,p=o.alternate,p!==null&&(p.lanes|=n),Ju(o.return,n,t),i||(f=null);break t}o=p.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(r(341));f.lanes|=n,o=f.alternate,o!==null&&(o.lanes|=n),Ju(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function Ni(t,e,n,i){t=null;for(var s=e,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var p=s.type;ve(s.pendingProps.value,f.value)||(t!==null?t.push(p):t=[p])}}else if(s===St.current){if(f=s.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(tl):t=[tl])}s=s.return}t!==null&&Fu(e,t,n,i),e.flags|=262144}function Ql(t){for(t=t.firstContext;t!==null;){if(!ve(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ai(t){ii=t,nn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Pt(t){return ih(ii,t)}function Zl(t,e){return ii===null&&ai(t),ih(t,e)}function ih(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},nn===null){if(t===null)throw Error(r(308));nn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else nn=nn.next=e;return n}var hv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},dv=a.unstable_scheduleCallback,mv=a.unstable_NormalPriority,wt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ku(){return{controller:new hv,data:new Map,refCount:0}}function za(t){t.refCount--,t.refCount===0&&dv(mv,function(){t.controller.abort()})}var Oa=null,Wu=0,ji=0,Li=null;function pv(t,e){if(Oa===null){var n=Oa=[];Wu=0,ji=tr(),Li={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Wu++,e.then(ah,ah),e}function ah(){if(--Wu===0&&Oa!==null){Li!==null&&(Li.status="fulfilled");var t=Oa;Oa=null,ji=0,Li=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function yv(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(i.status="rejected",i.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),i}var lh=V.S;V.S=function(t,e){Gd=pe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&pv(t,e),lh!==null&&lh(t,e)};var li=E(null);function Pu(){var t=li.current;return t!==null?t:Dt.pooledCache}function Kl(t,e){e===null?Q(li,li.current):Q(li,e.pool)}function sh(){var t=Pu();return t===null?null:{parent:wt._currentValue,pool:t}}var Hi=Error(r(460)),$u=Error(r(474)),Jl=Error(r(542)),Fl={then:function(){}};function uh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function oh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then($e,$e),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ch(t),t;default:if(typeof e.status=="string")e.then($e,$e);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=i}},function(i){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ch(t),t}throw ui=e,Hi}}function si(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ui=n,Hi):n}}var ui=null;function rh(){if(ui===null)throw Error(r(459));var t=ui;return ui=null,t}function ch(t){if(t===Hi||t===Jl)throw Error(r(483))}var wi=null,Ra=0;function kl(t){var e=Ra;return Ra+=1,wi===null&&(wi=[]),oh(wi,t,e)}function Va(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Wl(t,e){throw e.$$typeof===b?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function fh(t){function e(x,A){if(t){var D=x.deletions;D===null?(x.deletions=[A],x.flags|=16):D.push(A)}}function n(x,A){if(!t)return null;for(;A!==null;)e(x,A),A=A.sibling;return null}function i(x){for(var A=new Map;x!==null;)x.key!==null?A.set(x.key,x):A.set(x.index,x),x=x.sibling;return A}function s(x,A){return x=tn(x,A),x.index=0,x.sibling=null,x}function o(x,A,D){return x.index=D,t?(D=x.alternate,D!==null?(D=D.index,D<A?(x.flags|=67108866,A):D):(x.flags|=67108866,A)):(x.flags|=1048576,A)}function f(x){return t&&x.alternate===null&&(x.flags|=67108866),x}function p(x,A,D,_){return A===null||A.tag!==6?(A=Yu(D,x.mode,_),A.return=x,A):(A=s(A,D),A.return=x,A)}function T(x,A,D,_){var tt=D.type;return tt===Y?R(x,A,D.props.children,_,D.key):A!==null&&(A.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===Z&&si(tt)===A.type)?(A=s(A,D.props),Va(A,D),A.return=x,A):(A=Gl(D.type,D.key,D.props,null,x.mode,_),Va(A,D),A.return=x,A)}function M(x,A,D,_){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=qu(D,x.mode,_),A.return=x,A):(A=s(A,D.children||[]),A.return=x,A)}function R(x,A,D,_,tt){return A===null||A.tag!==7?(A=ei(D,x.mode,_,tt),A.return=x,A):(A=s(A,D),A.return=x,A)}function B(x,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Yu(""+A,x.mode,D),A.return=x,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case O:return D=Gl(A.type,A.key,A.props,null,x.mode,D),Va(D,A),D.return=x,D;case j:return A=qu(A,x.mode,D),A.return=x,A;case Z:return A=si(A),B(x,A,D)}if(ue(A)||Qt(A))return A=ei(A,x.mode,D,null),A.return=x,A;if(typeof A.then=="function")return B(x,kl(A),D);if(A.$$typeof===H)return B(x,Zl(x,A),D);Wl(x,A)}return null}function C(x,A,D,_){var tt=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return tt!==null?null:p(x,A,""+D,_);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case O:return D.key===tt?T(x,A,D,_):null;case j:return D.key===tt?M(x,A,D,_):null;case Z:return D=si(D),C(x,A,D,_)}if(ue(D)||Qt(D))return tt!==null?null:R(x,A,D,_,null);if(typeof D.then=="function")return C(x,A,kl(D),_);if(D.$$typeof===H)return C(x,A,Zl(x,D),_);Wl(x,D)}return null}function z(x,A,D,_,tt){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return x=x.get(D)||null,p(A,x,""+_,tt);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case O:return x=x.get(_.key===null?D:_.key)||null,T(A,x,_,tt);case j:return x=x.get(_.key===null?D:_.key)||null,M(A,x,_,tt);case Z:return _=si(_),z(x,A,D,_,tt)}if(ue(_)||Qt(_))return x=x.get(D)||null,R(A,x,_,tt,null);if(typeof _.then=="function")return z(x,A,D,kl(_),tt);if(_.$$typeof===H)return z(x,A,D,Zl(A,_),tt);Wl(A,_)}return null}function F(x,A,D,_){for(var tt=null,yt=null,P=A,st=A=0,ht=null;P!==null&&st<D.length;st++){P.index>st?(ht=P,P=null):ht=P.sibling;var gt=C(x,P,D[st],_);if(gt===null){P===null&&(P=ht);break}t&&P&>.alternate===null&&e(x,P),A=o(gt,A,st),yt===null?tt=gt:yt.sibling=gt,yt=gt,P=ht}if(st===D.length)return n(x,P),dt&&en(x,st),tt;if(P===null){for(;st<D.length;st++)P=B(x,D[st],_),P!==null&&(A=o(P,A,st),yt===null?tt=P:yt.sibling=P,yt=P);return dt&&en(x,st),tt}for(P=i(P);st<D.length;st++)ht=z(P,x,st,D[st],_),ht!==null&&(t&&ht.alternate!==null&&P.delete(ht.key===null?st:ht.key),A=o(ht,A,st),yt===null?tt=ht:yt.sibling=ht,yt=ht);return t&&P.forEach(function(Gn){return e(x,Gn)}),dt&&en(x,st),tt}function et(x,A,D,_){if(D==null)throw Error(r(151));for(var tt=null,yt=null,P=A,st=A=0,ht=null,gt=D.next();P!==null&&!gt.done;st++,gt=D.next()){P.index>st?(ht=P,P=null):ht=P.sibling;var Gn=C(x,P,gt.value,_);if(Gn===null){P===null&&(P=ht);break}t&&P&&Gn.alternate===null&&e(x,P),A=o(Gn,A,st),yt===null?tt=Gn:yt.sibling=Gn,yt=Gn,P=ht}if(gt.done)return n(x,P),dt&&en(x,st),tt;if(P===null){for(;!gt.done;st++,gt=D.next())gt=B(x,gt.value,_),gt!==null&&(A=o(gt,A,st),yt===null?tt=gt:yt.sibling=gt,yt=gt);return dt&&en(x,st),tt}for(P=i(P);!gt.done;st++,gt=D.next())gt=z(P,x,st,gt.value,_),gt!==null&&(t&>.alternate!==null&&P.delete(gt.key===null?st:gt.key),A=o(gt,A,st),yt===null?tt=gt:yt.sibling=gt,yt=gt);return t&&P.forEach(function(C1){return e(x,C1)}),dt&&en(x,st),tt}function xt(x,A,D,_){if(typeof D=="object"&&D!==null&&D.type===Y&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case O:t:{for(var tt=D.key;A!==null;){if(A.key===tt){if(tt=D.type,tt===Y){if(A.tag===7){n(x,A.sibling),_=s(A,D.props.children),_.return=x,x=_;break t}}else if(A.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===Z&&si(tt)===A.type){n(x,A.sibling),_=s(A,D.props),Va(_,D),_.return=x,x=_;break t}n(x,A);break}else e(x,A);A=A.sibling}D.type===Y?(_=ei(D.props.children,x.mode,_,D.key),_.return=x,x=_):(_=Gl(D.type,D.key,D.props,null,x.mode,_),Va(_,D),_.return=x,x=_)}return f(x);case j:t:{for(tt=D.key;A!==null;){if(A.key===tt)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){n(x,A.sibling),_=s(A,D.children||[]),_.return=x,x=_;break t}else{n(x,A);break}else e(x,A);A=A.sibling}_=qu(D,x.mode,_),_.return=x,x=_}return f(x);case Z:return D=si(D),xt(x,A,D,_)}if(ue(D))return F(x,A,D,_);if(Qt(D)){if(tt=Qt(D),typeof tt!="function")throw Error(r(150));return D=tt.call(D),et(x,A,D,_)}if(typeof D.then=="function")return xt(x,A,kl(D),_);if(D.$$typeof===H)return xt(x,A,Zl(x,D),_);Wl(x,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(n(x,A.sibling),_=s(A,D),_.return=x,x=_):(n(x,A),_=Yu(D,x.mode,_),_.return=x,x=_),f(x)):n(x,A)}return function(x,A,D,_){try{Ra=0;var tt=xt(x,A,D,_);return wi=null,tt}catch(P){if(P===Hi||P===Jl)throw P;var yt=Se(29,P,null,x.mode);return yt.lanes=_,yt.return=x,yt}}}var oi=fh(!0),hh=fh(!1),Dn=!1;function Iu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function to(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 Mn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(vt&2)!==0){var s=i.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e,e=ql(t),kf(t,null,n),e}return Yl(t,i,e,n),ql(t)}function _a(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,nf(t,n)}}function eo(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=f:o=o.next=f,n=n.next}while(n!==null);o===null?s=o=e:o=o.next=e}else s=o=e;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var no=!1;function Ua(){if(no){var t=Li;if(t!==null)throw t}}function Ba(t,e,n,i){no=!1;var s=t.updateQueue;Dn=!1;var o=s.firstBaseUpdate,f=s.lastBaseUpdate,p=s.shared.pending;if(p!==null){s.shared.pending=null;var T=p,M=T.next;T.next=null,f===null?o=M:f.next=M,f=T;var R=t.alternate;R!==null&&(R=R.updateQueue,p=R.lastBaseUpdate,p!==f&&(p===null?R.firstBaseUpdate=M:p.next=M,R.lastBaseUpdate=T))}if(o!==null){var B=s.baseState;f=0,R=M=T=null,p=o;do{var C=p.lane&-536870913,z=C!==p.lane;if(z?(ft&C)===C:(i&C)===C){C!==0&&C===ji&&(no=!0),R!==null&&(R=R.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var F=t,et=p;C=e;var xt=n;switch(et.tag){case 1:if(F=et.payload,typeof F=="function"){B=F.call(xt,B,C);break t}B=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=et.payload,C=typeof F=="function"?F.call(xt,B,C):F,C==null)break t;B=v({},B,C);break t;case 2:Dn=!0}}C=p.callback,C!==null&&(t.flags|=64,z&&(t.flags|=8192),z=s.callbacks,z===null?s.callbacks=[C]:z.push(C))}else z={lane:C,tag:p.tag,payload:p.payload,callback:p.callback,next:null},R===null?(M=R=z,T=B):R=R.next=z,f|=C;if(p=p.next,p===null){if(p=s.shared.pending,p===null)break;z=p,p=z.next,z.next=null,s.lastBaseUpdate=z,s.shared.pending=null}}while(!0);R===null&&(T=B),s.baseState=T,s.firstBaseUpdate=M,s.lastBaseUpdate=R,o===null&&(s.shared.lanes=0),_n|=f,t.lanes=f,t.memoizedState=B}}function dh(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function mh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)dh(n[t],e)}var Yi=E(null),Pl=E(0);function ph(t,e){t=dn,Q(Pl,t),Q(Yi,e),dn=t|e.baseLanes}function io(){Q(Pl,dn),Q(Yi,Yi.current)}function ao(){dn=Pl.current,N(Yi),N(Pl)}var Te=E(null),Ue=null;function zn(t){var e=t.alternate;Q(jt,jt.current&1),Q(Te,t),Ue===null&&(e===null||Yi.current!==null||e.memoizedState!==null)&&(Ue=t)}function lo(t){Q(jt,jt.current),Q(Te,t),Ue===null&&(Ue=t)}function yh(t){t.tag===22?(Q(jt,jt.current),Q(Te,t),Ue===null&&(Ue=t)):On()}function On(){Q(jt,jt.current),Q(Te,Te.current)}function be(t){N(Te),Ue===t&&(Ue=null),N(jt)}var jt=E(0);function $l(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hr(n)||dr(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 ln=0,at=null,At=null,Yt=null,Il=!1,qi=!1,ri=!1,ts=0,Na=0,Gi=null,gv=0;function _t(){throw Error(r(321))}function so(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ve(t[n],e[n]))return!1;return!0}function uo(t,e,n,i,s,o){return ln=o,at=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,V.H=t===null||t.memoizedState===null?Ih:Eo,ri=!1,o=n(i,s),ri=!1,qi&&(o=vh(e,n,i,s)),gh(t),o}function gh(t){V.H=Ha;var e=At!==null&&At.next!==null;if(ln=0,Yt=At=at=null,Il=!1,Na=0,Gi=null,e)throw Error(r(300));t===null||qt||(t=t.dependencies,t!==null&&Ql(t)&&(qt=!0))}function vh(t,e,n,i){at=t;var s=0;do{if(qi&&(Gi=null),Na=0,qi=!1,25<=s)throw Error(r(301));if(s+=1,Yt=At=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=td,o=e(n,i)}while(qi);return o}function vv(){var t=V.H,e=t.useState()[0];return e=typeof e.then=="function"?ja(e):e,t=t.useState()[0],(At!==null?At.memoizedState:null)!==t&&(at.flags|=1024),e}function oo(){var t=ts!==0;return ts=0,t}function ro(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function co(t){if(Il){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Il=!1}ln=0,Yt=At=at=null,qi=!1,Na=ts=0,Gi=null}function ae(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?at.memoizedState=Yt=t:Yt=Yt.next=t,Yt}function Lt(){if(At===null){var t=at.alternate;t=t!==null?t.memoizedState:null}else t=At.next;var e=Yt===null?at.memoizedState:Yt.next;if(e!==null)Yt=e,At=t;else{if(t===null)throw at.alternate===null?Error(r(467)):Error(r(310));At=t,t={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},Yt===null?at.memoizedState=Yt=t:Yt=Yt.next=t}return Yt}function es(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ja(t){var e=Na;return Na+=1,Gi===null&&(Gi=[]),t=oh(Gi,t,e),e=at,(Yt===null?e.memoizedState:Yt.next)===null&&(e=e.alternate,V.H=e===null||e.memoizedState===null?Ih:Eo),t}function ns(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ja(t);if(t.$$typeof===H)return Pt(t)}throw Error(r(438,String(t)))}function fo(t){var e=null,n=at.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=at.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=es(),at.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=Rt;return e.index++,n}function sn(t,e){return typeof e=="function"?e(t):e}function is(t){var e=Lt();return ho(e,At,t)}function ho(t,e,n){var i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var s=t.baseQueue,o=i.pending;if(o!==null){if(s!==null){var f=s.next;s.next=o.next,o.next=f}e.baseQueue=s=o,i.pending=null}if(o=t.baseState,s===null)t.memoizedState=o;else{e=s.next;var p=f=null,T=null,M=e,R=!1;do{var B=M.lane&-536870913;if(B!==M.lane?(ft&B)===B:(ln&B)===B){var C=M.revertLane;if(C===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),B===ji&&(R=!0);else if((ln&C)===C){M=M.next,C===ji&&(R=!0);continue}else B={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},T===null?(p=T=B,f=o):T=T.next=B,at.lanes|=C,_n|=C;B=M.action,ri&&n(o,B),o=M.hasEagerState?M.eagerState:n(o,B)}else C={lane:B,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},T===null?(p=T=C,f=o):T=T.next=C,at.lanes|=B,_n|=B;M=M.next}while(M!==null&&M!==e);if(T===null?f=o:T.next=p,!ve(o,t.memoizedState)&&(qt=!0,R&&(n=Li,n!==null)))throw n;t.memoizedState=o,t.baseState=f,t.baseQueue=T,i.lastRenderedState=o}return s===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function mo(t){var e=Lt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var i=n.dispatch,s=n.pending,o=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do o=t(o,f.action),f=f.next;while(f!==s);ve(o,e.memoizedState)||(qt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,i]}function Sh(t,e,n){var i=at,s=Lt(),o=dt;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=e();var f=!ve((At||s).memoizedState,n);if(f&&(s.memoizedState=n,qt=!0),s=s.queue,go(Ah.bind(null,i,s,t),[t]),s.getSnapshot!==e||f||Yt!==null&&Yt.memoizedState.tag&1){if(i.flags|=2048,Xi(9,{destroy:void 0},bh.bind(null,i,s,n,e),null),Dt===null)throw Error(r(349));o||(ln&127)!==0||Th(i,e,n)}return n}function Th(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=at.updateQueue,e===null?(e=es(),at.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function bh(t,e,n,i){e.value=n,e.getSnapshot=i,Eh(e)&&xh(t)}function Ah(t,e,n){return n(function(){Eh(e)&&xh(t)})}function Eh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ve(t,n)}catch{return!0}}function xh(t){var e=ti(t,2);e!==null&&me(e,t,2)}function po(t){var e=ae();if(typeof t=="function"){var n=t;if(t=n(),ri){vn(!0);try{n()}finally{vn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:t},e}function Dh(t,e,n,i){return t.baseState=n,ho(t,At,typeof i=="function"?i:sn)}function Sv(t,e,n,i,s){if(ss(t))throw Error(r(485));if(t=e.action,t!==null){var o={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){o.listeners.push(f)}};V.T!==null?n(!0):o.isTransition=!1,i(o),n=e.pending,n===null?(o.next=e.pending=o,Mh(e,o)):(o.next=n.next,e.pending=n.next=o)}}function Mh(t,e){var n=e.action,i=e.payload,s=t.state;if(e.isTransition){var o=V.T,f={};V.T=f;try{var p=n(s,i),T=V.S;T!==null&&T(f,p),Ch(t,e,p)}catch(M){yo(t,e,M)}finally{o!==null&&f.types!==null&&(o.types=f.types),V.T=o}}else try{o=n(s,i),Ch(t,e,o)}catch(M){yo(t,e,M)}}function Ch(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){zh(t,e,i)},function(i){return yo(t,e,i)}):zh(t,e,n)}function zh(t,e,n){e.status="fulfilled",e.value=n,Oh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Mh(t,n)))}function yo(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,Oh(e),e=e.next;while(e!==i)}t.action=null}function Oh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Rh(t,e){return e}function Vh(t,e){if(dt){var n=Dt.formState;if(n!==null){t:{var i=at;if(dt){if(Mt){e:{for(var s=Mt,o=_e;s.nodeType!==8;){if(!o){s=null;break e}if(s=Be(s.nextSibling),s===null){s=null;break e}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){Mt=Be(s.nextSibling),i=s.data==="F!";break t}}En(i)}i=!1}i&&(e=n[0])}}return n=ae(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rh,lastRenderedState:e},n.queue=i,n=Wh.bind(null,at,i),i.dispatch=n,i=po(!1),o=Ao.bind(null,at,!1,i.queue),i=ae(),s={state:e,dispatch:null,action:t,pending:null},i.queue=s,n=Sv.bind(null,at,s,o,n),s.dispatch=n,i.memoizedState=t,[e,n,!1]}function _h(t){var e=Lt();return Uh(e,At,t)}function Uh(t,e,n){if(e=ho(t,e,Rh)[0],t=is(sn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=ja(e)}catch(f){throw f===Hi?Jl:f}else i=e;e=Lt();var s=e.queue,o=s.dispatch;return n!==e.memoizedState&&(at.flags|=2048,Xi(9,{destroy:void 0},Tv.bind(null,s,n),null)),[i,o,t]}function Tv(t,e){t.action=e}function Bh(t){var e=Lt(),n=At;if(n!==null)return Uh(e,n,t);Lt(),e=e.memoizedState,n=Lt();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function Xi(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=at.updateQueue,e===null&&(e=es(),at.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Nh(){return Lt().memoizedState}function as(t,e,n,i){var s=ae();at.flags|=t,s.memoizedState=Xi(1|e,{destroy:void 0},n,i===void 0?null:i)}function ls(t,e,n,i){var s=Lt();i=i===void 0?null:i;var o=s.memoizedState.inst;At!==null&&i!==null&&so(i,At.memoizedState.deps)?s.memoizedState=Xi(e,o,n,i):(at.flags|=t,s.memoizedState=Xi(1|e,o,n,i))}function jh(t,e){as(8390656,8,t,e)}function go(t,e){ls(2048,8,t,e)}function bv(t){at.flags|=4;var e=at.updateQueue;if(e===null)e=es(),at.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Lh(t){var e=Lt().memoizedState;return bv({ref:e,nextImpl:t}),function(){if((vt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Hh(t,e){return ls(4,2,t,e)}function wh(t,e){return ls(4,4,t,e)}function Yh(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 qh(t,e,n){n=n!=null?n.concat([t]):null,ls(4,4,Yh.bind(null,e,t),n)}function vo(){}function Gh(t,e){var n=Lt();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&so(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Xh(t,e){var n=Lt();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&so(e,i[1]))return i[0];if(i=t(),ri){vn(!0);try{t()}finally{vn(!1)}}return n.memoizedState=[i,e],i}function So(t,e,n){return n===void 0||(ln&1073741824)!==0&&(ft&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Qd(),at.lanes|=t,_n|=t,n)}function Qh(t,e,n,i){return ve(n,e)?n:Yi.current!==null?(t=So(t,n,i),ve(t,e)||(qt=!0),t):(ln&42)===0||(ln&1073741824)!==0&&(ft&261930)===0?(qt=!0,t.memoizedState=n):(t=Qd(),at.lanes|=t,_n|=t,e)}function Zh(t,e,n,i,s){var o=w.p;w.p=o!==0&&8>o?o:8;var f=V.T,p={};V.T=p,Ao(t,!1,e,n);try{var T=s(),M=V.S;if(M!==null&&M(p,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var R=yv(T,i);La(t,e,R,xe(t))}else La(t,e,i,xe(t))}catch(B){La(t,e,{then:function(){},status:"rejected",reason:B},xe())}finally{w.p=o,f!==null&&p.types!==null&&(f.types=p.types),V.T=f}}function Av(){}function To(t,e,n,i){if(t.tag!==5)throw Error(r(476));var s=Kh(t).queue;Zh(t,s,e,W,n===null?Av:function(){return Jh(t),n(i)})}function Kh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:W},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Jh(t){var e=Kh(t);e.next===null&&(e=t.alternate.memoizedState),La(t,e.next.queue,{},xe())}function bo(){return Pt(tl)}function Fh(){return Lt().memoizedState}function kh(){return Lt().memoizedState}function Ev(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=xe();t=Mn(n);var i=Cn(e,t,n);i!==null&&(me(i,e,n),_a(i,e,n)),e={cache:ku()},t.payload=e;return}e=e.return}}function xv(t,e,n){var i=xe();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ss(t)?Ph(e,n):(n=Hu(t,e,n,i),n!==null&&(me(n,t,i),$h(n,e,i)))}function Wh(t,e,n){var i=xe();La(t,e,n,i)}function La(t,e,n,i){var s={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ss(t))Ph(e,s);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var f=e.lastRenderedState,p=o(f,n);if(s.hasEagerState=!0,s.eagerState=p,ve(p,f))return Yl(t,e,s,0),Dt===null&&wl(),!1}catch{}if(n=Hu(t,e,s,i),n!==null)return me(n,t,i),$h(n,e,i),!0}return!1}function Ao(t,e,n,i){if(i={lane:2,revertLane:tr(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ss(t)){if(e)throw Error(r(479))}else e=Hu(t,n,i,2),e!==null&&me(e,t,2)}function ss(t){var e=t.alternate;return t===at||e!==null&&e===at}function Ph(t,e){qi=Il=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function $h(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,nf(t,n)}}var Ha={readContext:Pt,use:ns,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};Ha.useEffectEvent=_t;var Ih={readContext:Pt,use:ns,useCallback:function(t,e){return ae().memoizedState=[t,e===void 0?null:e],t},useContext:Pt,useEffect:jh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,as(4194308,4,Yh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return as(4194308,4,t,e)},useInsertionEffect:function(t,e){as(4,2,t,e)},useMemo:function(t,e){var n=ae();e=e===void 0?null:e;var i=t();if(ri){vn(!0);try{t()}finally{vn(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=ae();if(n!==void 0){var s=n(e);if(ri){vn(!0);try{n(e)}finally{vn(!1)}}}else s=e;return i.memoizedState=i.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},i.queue=t,t=t.dispatch=xv.bind(null,at,t),[i.memoizedState,t]},useRef:function(t){var e=ae();return t={current:t},e.memoizedState=t},useState:function(t){t=po(t);var e=t.queue,n=Wh.bind(null,at,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:vo,useDeferredValue:function(t,e){var n=ae();return So(n,t,e)},useTransition:function(){var t=po(!1);return t=Zh.bind(null,at,t.queue,!0,!1),ae().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=at,s=ae();if(dt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),Dt===null)throw Error(r(349));(ft&127)!==0||Th(i,e,n)}s.memoizedState=n;var o={value:n,getSnapshot:e};return s.queue=o,jh(Ah.bind(null,i,o,t),[t]),i.flags|=2048,Xi(9,{destroy:void 0},bh.bind(null,i,o,n,e),null),n},useId:function(){var t=ae(),e=Dt.identifierPrefix;if(dt){var n=Ze,i=Qe;n=(i&~(1<<32-ge(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ts++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=gv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:bo,useFormState:Vh,useActionState:Vh,useOptimistic:function(t){var e=ae();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ao.bind(null,at,!0,n),n.dispatch=e,[t,e]},useMemoCache:fo,useCacheRefresh:function(){return ae().memoizedState=Ev.bind(null,at)},useEffectEvent:function(t){var e=ae(),n={impl:t};return e.memoizedState=n,function(){if((vt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Eo={readContext:Pt,use:ns,useCallback:Gh,useContext:Pt,useEffect:go,useImperativeHandle:qh,useInsertionEffect:Hh,useLayoutEffect:wh,useMemo:Xh,useReducer:is,useRef:Nh,useState:function(){return is(sn)},useDebugValue:vo,useDeferredValue:function(t,e){var n=Lt();return Qh(n,At.memoizedState,t,e)},useTransition:function(){var t=is(sn)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:ja(t),e]},useSyncExternalStore:Sh,useId:Fh,useHostTransitionStatus:bo,useFormState:_h,useActionState:_h,useOptimistic:function(t,e){var n=Lt();return Dh(n,At,t,e)},useMemoCache:fo,useCacheRefresh:kh};Eo.useEffectEvent=Lh;var td={readContext:Pt,use:ns,useCallback:Gh,useContext:Pt,useEffect:go,useImperativeHandle:qh,useInsertionEffect:Hh,useLayoutEffect:wh,useMemo:Xh,useReducer:mo,useRef:Nh,useState:function(){return mo(sn)},useDebugValue:vo,useDeferredValue:function(t,e){var n=Lt();return At===null?So(n,t,e):Qh(n,At.memoizedState,t,e)},useTransition:function(){var t=mo(sn)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:ja(t),e]},useSyncExternalStore:Sh,useId:Fh,useHostTransitionStatus:bo,useFormState:Bh,useActionState:Bh,useOptimistic:function(t,e){var n=Lt();return At!==null?Dh(n,At,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:fo,useCacheRefresh:kh};td.useEffectEvent=Lh;function xo(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Do={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=xe(),s=Mn(i);s.payload=e,n!=null&&(s.callback=n),e=Cn(t,s,i),e!==null&&(me(e,t,i),_a(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=xe(),s=Mn(i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Cn(t,s,i),e!==null&&(me(e,t,i),_a(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=xe(),i=Mn(n);i.tag=2,e!=null&&(i.callback=e),e=Cn(t,i,n),e!==null&&(me(e,t,n),_a(e,t,n))}};function ed(t,e,n,i,s,o,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,o,f):e.prototype&&e.prototype.isPureReactComponent?!xa(n,i)||!xa(s,o):!0}function nd(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Do.enqueueReplaceState(e,e.state,null)}function ci(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=v({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function id(t){Hl(t)}function ad(t){console.error(t)}function ld(t){Hl(t)}function us(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function sd(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Mo(t,e,n){return n=Mn(n),n.tag=3,n.payload={element:null},n.callback=function(){us(t,e)},n}function ud(t){return t=Mn(t),t.tag=3,t}function od(t,e,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=i.value;t.payload=function(){return s(o)},t.callback=function(){sd(e,n,i)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){sd(e,n,i),typeof s!="function"&&(Un===null?Un=new Set([this]):Un.add(this));var p=i.stack;this.componentDidCatch(i.value,{componentStack:p!==null?p:""})})}function Dv(t,e,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Ni(e,n,s,!0),n=Te.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?Ss():n.alternate===null&&Ut===0&&(Ut=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===Fl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Po(t,i,s)),!1;case 22:return n.flags|=65536,i===Fl?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Po(t,i,s)),!1}throw Error(r(435,n.tag))}return Po(t,i,s),Ss(),!1}if(dt)return e=Te.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,i!==Qu&&(t=Error(r(422),{cause:i}),Ca(Oe(t,n)))):(i!==Qu&&(e=Error(r(423),{cause:i}),Ca(Oe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,i=Oe(i,n),s=Mo(t.stateNode,i,s),eo(t,s),Ut!==4&&(Ut=2)),!1;var o=Error(r(520),{cause:i});if(o=Oe(o,n),Ka===null?Ka=[o]:Ka.push(o),Ut!==4&&(Ut=2),e===null)return!0;i=Oe(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Mo(n.stateNode,i,t),eo(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Un===null||!Un.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=ud(s),od(s,t,n,i),eo(n,s),!1}n=n.return}while(n!==null);return!1}var Co=Error(r(461)),qt=!1;function $t(t,e,n,i){e.child=t===null?hh(e,null,n,i):oi(e,t.child,n,i)}function rd(t,e,n,i,s){n=n.render;var o=e.ref;if("ref"in i){var f={};for(var p in i)p!=="ref"&&(f[p]=i[p])}else f=i;return ai(e),i=uo(t,e,n,f,o,s),p=oo(),t!==null&&!qt?(ro(t,e,s),un(t,e,s)):(dt&&p&&Gu(e),e.flags|=1,$t(t,e,i,s),e.child)}function cd(t,e,n,i,s){if(t===null){var o=n.type;return typeof o=="function"&&!wu(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,fd(t,e,o,i,s)):(t=Gl(n.type,null,i,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!No(t,s)){var f=o.memoizedProps;if(n=n.compare,n=n!==null?n:xa,n(f,i)&&t.ref===e.ref)return un(t,e,s)}return e.flags|=1,t=tn(o,i),t.ref=e.ref,t.return=e,e.child=t}function fd(t,e,n,i,s){if(t!==null){var o=t.memoizedProps;if(xa(o,i)&&t.ref===e.ref)if(qt=!1,e.pendingProps=i=o,No(t,s))(t.flags&131072)!==0&&(qt=!0);else return e.lanes=t.lanes,un(t,e,s)}return zo(t,e,n,i,s)}function hd(t,e,n,i){var s=i.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(i=e.child=t.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~o}else i=0,e.child=null;return dd(t,e,o,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Kl(e,o!==null?o.cachePool:null),o!==null?ph(e,o):io(),yh(e);else return i=e.lanes=536870912,dd(t,e,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(Kl(e,o.cachePool),ph(e,o),On(),e.memoizedState=null):(t!==null&&Kl(e,null),io(),On());return $t(t,e,s,n),e.child}function wa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function dd(t,e,n,i,s){var o=Pu();return o=o===null?null:{parent:wt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&Kl(e,null),io(),yh(e),t!==null&&Ni(t,e,i,!0),e.childLanes=s,null}function os(t,e){return e=cs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function md(t,e,n){return oi(e,t.child,null,n),t=os(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function Mv(t,e,n){var i=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(dt){if(i.mode==="hidden")return t=os(e,i),e.lanes=536870912,wa(null,t);if(lo(e),(t=Mt)?(t=Mm(t,_e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bn!==null?{id:Qe,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Pf(t),n.return=e,e.child=n,Wt=e,Mt=null)):t=null,t===null)throw En(e);return e.lanes=536870912,null}return os(e,i)}var o=t.memoizedState;if(o!==null){var f=o.dehydrated;if(lo(e),s)if(e.flags&256)e.flags&=-257,e=md(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(qt||Ni(t,e,n,!1),s=(n&t.childLanes)!==0,qt||s){if(i=Dt,i!==null&&(f=af(i,n),f!==0&&f!==o.retryLane))throw o.retryLane=f,ti(t,f),me(i,t,f),Co;Ss(),e=md(t,e,n)}else t=o.treeContext,Mt=Be(f.nextSibling),Wt=e,dt=!0,An=null,_e=!1,t!==null&&th(e,t),e=os(e,i),e.flags|=4096;return e}return t=tn(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function rs(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(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function zo(t,e,n,i,s){return ai(e),n=uo(t,e,n,i,void 0,s),i=oo(),t!==null&&!qt?(ro(t,e,s),un(t,e,s)):(dt&&i&&Gu(e),e.flags|=1,$t(t,e,n,s),e.child)}function pd(t,e,n,i,s,o){return ai(e),e.updateQueue=null,n=vh(e,i,n,s),gh(t),i=oo(),t!==null&&!qt?(ro(t,e,o),un(t,e,o)):(dt&&i&&Gu(e),e.flags|=1,$t(t,e,n,o),e.child)}function yd(t,e,n,i,s){if(ai(e),e.stateNode===null){var o=Vi,f=n.contextType;typeof f=="object"&&f!==null&&(o=Pt(f)),o=new n(i,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Do,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=i,o.state=e.memoizedState,o.refs={},Iu(e),f=n.contextType,o.context=typeof f=="object"&&f!==null?Pt(f):Vi,o.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(xo(e,n,f,i),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(f=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),f!==o.state&&Do.enqueueReplaceState(o,o.state,null),Ba(e,i,o,s),Ua(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){o=e.stateNode;var p=e.memoizedProps,T=ci(n,p);o.props=T;var M=o.context,R=n.contextType;f=Vi,typeof R=="object"&&R!==null&&(f=Pt(R));var B=n.getDerivedStateFromProps;R=typeof B=="function"||typeof o.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,R||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(p||M!==f)&&nd(e,o,i,f),Dn=!1;var C=e.memoizedState;o.state=C,Ba(e,i,o,s),Ua(),M=e.memoizedState,p||C!==M||Dn?(typeof B=="function"&&(xo(e,n,B,i),M=e.memoizedState),(T=Dn||ed(e,n,T,i,C,M,f))?(R||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=M),o.props=i,o.state=M,o.context=f,i=T):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,to(t,e),f=e.memoizedProps,R=ci(n,f),o.props=R,B=e.pendingProps,C=o.context,M=n.contextType,T=Vi,typeof M=="object"&&M!==null&&(T=Pt(M)),p=n.getDerivedStateFromProps,(M=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f!==B||C!==T)&&nd(e,o,i,T),Dn=!1,C=e.memoizedState,o.state=C,Ba(e,i,o,s),Ua();var z=e.memoizedState;f!==B||C!==z||Dn||t!==null&&t.dependencies!==null&&Ql(t.dependencies)?(typeof p=="function"&&(xo(e,n,p,i),z=e.memoizedState),(R=Dn||ed(e,n,R,i,C,z,T)||t!==null&&t.dependencies!==null&&Ql(t.dependencies))?(M||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,z,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,z,T)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=z),o.props=i,o.state=z,o.context=T,i=R):(typeof o.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),i=!1)}return o=i,rs(t,e),i=(e.flags&128)!==0,o||i?(o=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&i?(e.child=oi(e,t.child,null,s),e.child=oi(e,null,n,s)):$t(t,e,n,s),e.memoizedState=o.state,t=e.child):t=un(t,e,s),t}function gd(t,e,n,i){return ni(),e.flags|=256,$t(t,e,n,i),e.child}var Oo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ro(t){return{baseLanes:t,cachePool:sh()}}function Vo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ee),t}function vd(t,e,n){var i=e.pendingProps,s=!1,o=(e.flags&128)!==0,f;if((f=o)||(f=t!==null&&t.memoizedState===null?!1:(jt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(dt){if(s?zn(e):On(),(t=Mt)?(t=Mm(t,_e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bn!==null?{id:Qe,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Pf(t),n.return=e,e.child=n,Wt=e,Mt=null)):t=null,t===null)throw En(e);return dr(t)?e.lanes=32:e.lanes=536870912,null}var p=i.children;return i=i.fallback,s?(On(),s=e.mode,p=cs({mode:"hidden",children:p},s),i=ei(i,s,n,null),p.return=e,i.return=e,p.sibling=i,e.child=p,i=e.child,i.memoizedState=Ro(n),i.childLanes=Vo(t,f,n),e.memoizedState=Oo,wa(null,i)):(zn(e),_o(e,p))}var T=t.memoizedState;if(T!==null&&(p=T.dehydrated,p!==null)){if(o)e.flags&256?(zn(e),e.flags&=-257,e=Uo(t,e,n)):e.memoizedState!==null?(On(),e.child=t.child,e.flags|=128,e=null):(On(),p=i.fallback,s=e.mode,i=cs({mode:"visible",children:i.children},s),p=ei(p,s,n,null),p.flags|=2,i.return=e,p.return=e,i.sibling=p,e.child=i,oi(e,t.child,null,n),i=e.child,i.memoizedState=Ro(n),i.childLanes=Vo(t,f,n),e.memoizedState=Oo,e=wa(null,i));else if(zn(e),dr(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var M=f.dgst;f=M,i=Error(r(419)),i.stack="",i.digest=f,Ca({value:i,source:null,stack:null}),e=Uo(t,e,n)}else if(qt||Ni(t,e,n,!1),f=(n&t.childLanes)!==0,qt||f){if(f=Dt,f!==null&&(i=af(f,n),i!==0&&i!==T.retryLane))throw T.retryLane=i,ti(t,i),me(f,t,i),Co;hr(p)||Ss(),e=Uo(t,e,n)}else hr(p)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Mt=Be(p.nextSibling),Wt=e,dt=!0,An=null,_e=!1,t!==null&&th(e,t),e=_o(e,i.children),e.flags|=4096);return e}return s?(On(),p=i.fallback,s=e.mode,T=t.child,M=T.sibling,i=tn(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,M!==null?p=tn(M,p):(p=ei(p,s,n,null),p.flags|=2),p.return=e,i.return=e,i.sibling=p,e.child=i,wa(null,i),i=e.child,p=t.child.memoizedState,p===null?p=Ro(n):(s=p.cachePool,s!==null?(T=wt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=sh(),p={baseLanes:p.baseLanes|n,cachePool:s}),i.memoizedState=p,i.childLanes=Vo(t,f,n),e.memoizedState=Oo,wa(t.child,i)):(zn(e),n=t.child,t=n.sibling,n=tn(n,{mode:"visible",children:i.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 _o(t,e){return e=cs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function cs(t,e){return t=Se(22,t,null,e),t.lanes=0,t}function Uo(t,e,n){return oi(e,t.child,null,n),t=_o(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Sd(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Ju(t.return,e,n)}function Bo(t,e,n,i,s,o){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s,treeForkCount:o}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=n,f.tailMode=s,f.treeForkCount=o)}function Td(t,e,n){var i=e.pendingProps,s=i.revealOrder,o=i.tail;i=i.children;var f=jt.current,p=(f&2)!==0;if(p?(f=f&1|2,e.flags|=128):f&=1,Q(jt,f),$t(t,e,i,n),i=dt?Ma:0,!p&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Sd(t,n,e);else if(t.tag===19)Sd(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&&$l(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Bo(e,!1,s,n,o,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&$l(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Bo(e,!0,n,null,o,i);break;case"together":Bo(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function un(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),_n|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ni(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=tn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=tn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function No(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ql(t)))}function Cv(t,e,n){switch(e.tag){case 3:ie(e,e.stateNode.containerInfo),xn(e,wt,t.memoizedState.cache),ni();break;case 27:case 5:fa(e);break;case 4:ie(e,e.stateNode.containerInfo);break;case 10:xn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,lo(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(zn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?vd(t,e,n):(zn(e),t=un(t,e,n),t!==null?t.sibling:null);zn(e);break;case 19:var s=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Ni(t,e,n,!1),i=(n&e.childLanes)!==0),s){if(i)return Td(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(jt,jt.current),i)break;return null;case 22:return e.lanes=0,hd(t,e,n,e.pendingProps);case 24:xn(e,wt,t.memoizedState.cache)}return un(t,e,n)}function bd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)qt=!0;else{if(!No(t,n)&&(e.flags&128)===0)return qt=!1,Cv(t,e,n);qt=(t.flags&131072)!==0}else qt=!1,dt&&(e.flags&1048576)!==0&&If(e,Ma,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=si(e.elementType),e.type=t,typeof t=="function")wu(t)?(i=ci(t,i),e.tag=1,e=yd(null,e,t,i,n)):(e.tag=0,e=zo(null,e,t,i,n));else{if(t!=null){var s=t.$$typeof;if(s===I){e.tag=11,e=rd(null,e,t,i,n);break t}else if(s===K){e.tag=14,e=cd(null,e,t,i,n);break t}}throw e=De(t)||t,Error(r(306,e,""))}}return e;case 0:return zo(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,s=ci(i,e.pendingProps),yd(t,e,i,s,n);case 3:t:{if(ie(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var o=e.memoizedState;s=o.element,to(t,e),Ba(e,i,null,n);var f=e.memoizedState;if(i=f.cache,xn(e,wt,i),i!==o.cache&&Fu(e,[wt],n,!0),Ua(),i=f.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=gd(t,e,i,n);break t}else if(i!==s){s=Oe(Error(r(424)),e),Ca(s),e=gd(t,e,i,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Mt=Be(t.firstChild),Wt=e,dt=!0,An=null,_e=!0,n=hh(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ni(),i===s){e=un(t,e,n);break t}$t(t,e,i,n)}e=e.child}return e;case 26:return rs(t,e),t===null?(n=_m(e.type,null,e.pendingProps,null))?e.memoizedState=n:dt||(n=e.type,t=e.pendingProps,i=Ms(ut.current).createElement(n),i[kt]=e,i[oe]=t,It(i,n,t),Jt(i),e.stateNode=i):e.memoizedState=_m(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return fa(e),t===null&&dt&&(i=e.stateNode=Om(e.type,e.pendingProps,ut.current),Wt=e,_e=!0,s=Mt,Ln(e.type)?(mr=s,Mt=Be(i.firstChild)):Mt=s),$t(t,e,e.pendingProps.children,n),rs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&dt&&((s=i=Mt)&&(i=i1(i,e.type,e.pendingProps,_e),i!==null?(e.stateNode=i,Wt=e,Mt=Be(i.firstChild),_e=!1,s=!0):s=!1),s||En(e)),fa(e),s=e.type,o=e.pendingProps,f=t!==null?t.memoizedProps:null,i=o.children,rr(s,o)?i=null:f!==null&&rr(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=uo(t,e,vv,null,null,n),tl._currentValue=s),rs(t,e),$t(t,e,i,n),e.child;case 6:return t===null&&dt&&((t=n=Mt)&&(n=a1(n,e.pendingProps,_e),n!==null?(e.stateNode=n,Wt=e,Mt=null,t=!0):t=!1),t||En(e)),null;case 13:return vd(t,e,n);case 4:return ie(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=oi(e,null,i,n):$t(t,e,i,n),e.child;case 11:return rd(t,e,e.type,e.pendingProps,n);case 7:return $t(t,e,e.pendingProps,n),e.child;case 8:return $t(t,e,e.pendingProps.children,n),e.child;case 12:return $t(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,xn(e,e.type,i.value),$t(t,e,i.children,n),e.child;case 9:return s=e.type._context,i=e.pendingProps.children,ai(e),s=Pt(s),i=i(s),e.flags|=1,$t(t,e,i,n),e.child;case 14:return cd(t,e,e.type,e.pendingProps,n);case 15:return fd(t,e,e.type,e.pendingProps,n);case 19:return Td(t,e,n);case 31:return Mv(t,e,n);case 22:return hd(t,e,n,e.pendingProps);case 24:return ai(e),i=Pt(wt),t===null?(s=Pu(),s===null&&(s=Dt,o=ku(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),e.memoizedState={parent:i,cache:s},Iu(e),xn(e,wt,s)):((t.lanes&n)!==0&&(to(t,e),Ba(e,null,null,n),Ua()),s=t.memoizedState,o=e.memoizedState,s.parent!==i?(s={parent:i,cache:i},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),xn(e,wt,i)):(i=o.cache,xn(e,wt,i),i!==s.cache&&Fu(e,[wt],n,!0))),$t(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function on(t){t.flags|=4}function jo(t,e,n,i,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(Fd())t.flags|=8192;else throw ui=Fl,$u}else t.flags&=-16777217}function Ad(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Lm(e))if(Fd())t.flags|=8192;else throw ui=Fl,$u}function fs(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?tf():536870912,t.lanes|=e,Ji|=e)}function Ya(t,e){if(!dt)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Ct(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function zv(t,e,n){var i=e.pendingProps;switch(Xu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(e),null;case 1:return Ct(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),an(wt),Nt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Bi(e)?on(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Zu())),Ct(e),null;case 26:var s=e.type,o=e.memoizedState;return t===null?(on(e),o!==null?(Ct(e),Ad(e,o)):(Ct(e),jo(e,s,null,i,n))):o?o!==t.memoizedState?(on(e),Ct(e),Ad(e,o)):(Ct(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&on(e),Ct(e),jo(e,s,t,i,n)),null;case 27:if(Al(e),n=ut.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&on(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Ct(e),null}t=k.current,Bi(e)?eh(e):(t=Om(s,i,n),e.stateNode=t,on(e))}return Ct(e),null;case 5:if(Al(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&on(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return Ct(e),null}if(o=k.current,Bi(e))eh(e);else{var f=Ms(ut.current);switch(o){case 1:o=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=f.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?f.createElement("select",{is:i.is}):f.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?f.createElement(s,{is:i.is}):f.createElement(s)}}o[kt]=e,o[oe]=i;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)o.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=o;t:switch(It(o,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&on(e)}}return Ct(e),jo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&on(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(r(166));if(t=ut.current,Bi(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,s=Wt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}t[kt]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||vm(t.nodeValue,n)),t||En(e,!0)}else t=Ms(t).createTextNode(i),t[kt]=e,e.stateNode=t}return Ct(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=Bi(e),n!==null){if(t===null){if(!i)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[kt]=e}else ni(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ct(e),t=!1}else n=Zu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Ct(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Bi(e),i!==null&&i.dehydrated!==null){if(t===null){if(!s)throw Error(r(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[kt]=e}else ni(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ct(e),s=!1}else s=Zu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==s&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),fs(e,e.updateQueue),Ct(e),null);case 4:return Nt(),t===null&&ar(e.stateNode.containerInfo),Ct(e),null;case 10:return an(e.type),Ct(e),null;case 19:if(N(jt),i=e.memoizedState,i===null)return Ct(e),null;if(s=(e.flags&128)!==0,o=i.rendering,o===null)if(s)Ya(i,!1);else{if(Ut!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=$l(t),o!==null){for(e.flags|=128,Ya(i,!1),t=o.updateQueue,e.updateQueue=t,fs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Wf(n,t),n=n.sibling;return Q(jt,jt.current&1|2),dt&&en(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&pe()>ys&&(e.flags|=128,s=!0,Ya(i,!1),e.lanes=4194304)}else{if(!s)if(t=$l(o),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,fs(e,t),Ya(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!dt)return Ct(e),null}else 2*pe()-i.renderingStartTime>ys&&n!==536870912&&(e.flags|=128,s=!0,Ya(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=jt.current,Q(jt,s?n&1|2:n&1),dt&&en(e,i.treeForkCount),t):(Ct(e),null);case 22:case 23:return be(e),ao(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(Ct(e),e.subtreeFlags&6&&(e.flags|=8192)):Ct(e),n=e.updateQueue,n!==null&&fs(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&N(li),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),an(wt),Ct(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Ov(t,e){switch(Xu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return an(wt),Nt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Al(e),null;case 31:if(e.memoizedState!==null){if(be(e),e.alternate===null)throw Error(r(340));ni()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ni()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(jt),null;case 4:return Nt(),null;case 10:return an(e.type),null;case 22:case 23:return be(e),ao(),t!==null&&N(li),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return an(wt),null;case 25:return null;default:return null}}function Ed(t,e){switch(Xu(e),e.tag){case 3:an(wt),Nt();break;case 26:case 27:case 5:Al(e);break;case 4:Nt();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:N(jt);break;case 10:an(e.type);break;case 22:case 23:be(e),ao(),t!==null&&N(li);break;case 24:an(wt)}}function qa(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&t)===t){i=void 0;var o=n.create,f=n.inst;i=o(),f.destroy=i}n=n.next}while(n!==s)}}catch(p){bt(e,e.return,p)}}function Rn(t,e,n){try{var i=e.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var o=s.next;i=o;do{if((i.tag&t)===t){var f=i.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,s=e;var T=n,M=p;try{M()}catch(R){bt(s,T,R)}}}i=i.next}while(i!==o)}}catch(R){bt(e,e.return,R)}}function xd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{mh(e,n)}catch(i){bt(t,t.return,i)}}}function Dd(t,e,n){n.props=ci(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){bt(t,e,i)}}function Ga(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(s){bt(t,e,s)}}function Ke(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(s){bt(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){bt(t,e,s)}else n.current=null}function Md(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(s){bt(t,t.return,s)}}function Lo(t,e,n){try{var i=t.stateNode;Pv(i,t.type,n,e),i[oe]=e}catch(s){bt(t,t.return,s)}}function Cd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ln(t.type)||t.tag===4}function Ho(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Cd(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 wo(t,e,n){var i=t.tag;if(i===5||i===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=$e));else if(i!==4&&(i===27&&Ln(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(wo(t,e,n),t=t.sibling;t!==null;)wo(t,e,n),t=t.sibling}function hs(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&Ln(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(hs(t,e,n),t=t.sibling;t!==null;)hs(t,e,n),t=t.sibling}function zd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);It(e,i,n),e[kt]=t,e[oe]=n}catch(o){bt(t,t.return,o)}}var rn=!1,Gt=!1,Yo=!1,Od=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function Rv(t,e){if(t=t.containerInfo,ur=Us,t=qf(t),_u(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var f=0,p=-1,T=-1,M=0,R=0,B=t,C=null;e:for(;;){for(var z;B!==n||s!==0&&B.nodeType!==3||(p=f+s),B!==o||i!==0&&B.nodeType!==3||(T=f+i),B.nodeType===3&&(f+=B.nodeValue.length),(z=B.firstChild)!==null;)C=B,B=z;for(;;){if(B===t)break e;if(C===n&&++M===s&&(p=f),C===o&&++R===i&&(T=f),(z=B.nextSibling)!==null)break;B=C,C=B.parentNode}B=z}n=p===-1||T===-1?null:{start:p,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(or={focusedElem:t,selectionRange:n},Us=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,o=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&&o!==null){t=void 0,n=e,s=o.memoizedProps,o=o.memoizedState,i=n.stateNode;try{var F=ci(n.type,s);t=i.getSnapshotBeforeUpdate(F,o),i.__reactInternalSnapshotBeforeUpdate=t}catch(et){bt(n,n.return,et)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)fr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":fr(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(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function Rd(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:fn(t,n),i&4&&qa(5,n);break;case 1:if(fn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){bt(n,n.return,f)}else{var s=ci(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){bt(n,n.return,f)}}i&64&&xd(n),i&512&&Ga(n,n.return);break;case 3:if(fn(t,n),i&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{mh(t,e)}catch(f){bt(n,n.return,f)}}break;case 27:e===null&&i&4&&zd(n);case 26:case 5:fn(t,n),e===null&&i&4&&Md(n),i&512&&Ga(n,n.return);break;case 12:fn(t,n);break;case 31:fn(t,n),i&4&&Ud(t,n);break;case 13:fn(t,n),i&4&&Bd(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=wv.bind(null,n),l1(t,n))));break;case 22:if(i=n.memoizedState!==null||rn,!i){e=e!==null&&e.memoizedState!==null||Gt,s=rn;var o=Gt;rn=i,(Gt=e)&&!o?hn(t,n,(n.subtreeFlags&8772)!==0):fn(t,n),rn=s,Gt=o}break;case 30:break;default:fn(t,n)}}function Vd(t){var e=t.alternate;e!==null&&(t.alternate=null,Vd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&pu(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 Ot=null,ce=!1;function cn(t,e,n){for(n=n.child;n!==null;)_d(t,e,n),n=n.sibling}function _d(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(ha,n)}catch{}switch(n.tag){case 26:Gt||Ke(n,e),cn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Gt||Ke(n,e);var i=Ot,s=ce;Ln(n.type)&&(Ot=n.stateNode,ce=!1),cn(t,e,n),Pa(n.stateNode),Ot=i,ce=s;break;case 5:Gt||Ke(n,e);case 6:if(i=Ot,s=ce,Ot=null,cn(t,e,n),Ot=i,ce=s,Ot!==null)if(ce)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(n.stateNode)}catch(o){bt(n,e,o)}else try{Ot.removeChild(n.stateNode)}catch(o){bt(n,e,o)}break;case 18:Ot!==null&&(ce?(t=Ot,xm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ea(t)):xm(Ot,n.stateNode));break;case 4:i=Ot,s=ce,Ot=n.stateNode.containerInfo,ce=!0,cn(t,e,n),Ot=i,ce=s;break;case 0:case 11:case 14:case 15:Rn(2,n,e),Gt||Rn(4,n,e),cn(t,e,n);break;case 1:Gt||(Ke(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Dd(n,e,i)),cn(t,e,n);break;case 21:cn(t,e,n);break;case 22:Gt=(i=Gt)||n.memoizedState!==null,cn(t,e,n),Gt=i;break;default:cn(t,e,n)}}function Ud(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ea(t)}catch(n){bt(e,e.return,n)}}}function Bd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ea(t)}catch(n){bt(e,e.return,n)}}function Vv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Od),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Od),e;default:throw Error(r(435,t.tag))}}function ds(t,e){var n=Vv(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var s=Yv.bind(null,t,i);i.then(s,s)}})}function fe(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i],o=t,f=e,p=f;t:for(;p!==null;){switch(p.tag){case 27:if(Ln(p.type)){Ot=p.stateNode,ce=!1;break t}break;case 5:Ot=p.stateNode,ce=!1;break t;case 3:case 4:Ot=p.stateNode.containerInfo,ce=!0;break t}p=p.return}if(Ot===null)throw Error(r(160));_d(o,f,s),Ot=null,ce=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Nd(e,t),e=e.sibling}var Ye=null;function Nd(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:fe(e,t),he(t),i&4&&(Rn(3,t,t.return),qa(3,t),Rn(5,t,t.return));break;case 1:fe(e,t),he(t),i&512&&(Gt||n===null||Ke(n,n.return)),i&64&&rn&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var s=Ye;if(fe(e,t),he(t),i&512&&(Gt||n===null||Ke(n,n.return)),i&4){var o=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(i){case"title":o=s.getElementsByTagName("title")[0],(!o||o[pa]||o[kt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(i),s.head.insertBefore(o,s.querySelector("head > title"))),It(o,i,n),o[kt]=t,Jt(o),i=o;break t;case"link":var f=Nm("link","href",s).get(i+(n.href||""));if(f){for(var p=0;p<f.length;p++)if(o=f[p],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(p,1);break e}}o=s.createElement(i),It(o,i,n),s.head.appendChild(o);break;case"meta":if(f=Nm("meta","content",s).get(i+(n.content||""))){for(p=0;p<f.length;p++)if(o=f[p],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(p,1);break e}}o=s.createElement(i),It(o,i,n),s.head.appendChild(o);break;default:throw Error(r(468,i))}o[kt]=t,Jt(o),i=o}t.stateNode=i}else jm(s,t.type,t.stateNode);else t.stateNode=Bm(s,i,t.memoizedProps);else o!==i?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,i===null?jm(s,t.type,t.stateNode):Bm(s,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Lo(t,t.memoizedProps,n.memoizedProps)}break;case 27:fe(e,t),he(t),i&512&&(Gt||n===null||Ke(n,n.return)),n!==null&&i&4&&Lo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(fe(e,t),he(t),i&512&&(Gt||n===null||Ke(n,n.return)),t.flags&32){s=t.stateNode;try{xi(s,"")}catch(F){bt(t,t.return,F)}}i&4&&t.stateNode!=null&&(s=t.memoizedProps,Lo(t,s,n!==null?n.memoizedProps:s)),i&1024&&(Yo=!0);break;case 6:if(fe(e,t),he(t),i&4){if(t.stateNode===null)throw Error(r(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(F){bt(t,t.return,F)}}break;case 3:if(Os=null,s=Ye,Ye=Cs(e.containerInfo),fe(e,t),Ye=s,he(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{ea(e.containerInfo)}catch(F){bt(t,t.return,F)}Yo&&(Yo=!1,jd(t));break;case 4:i=Ye,Ye=Cs(t.stateNode.containerInfo),fe(e,t),he(t),Ye=i;break;case 12:fe(e,t),he(t);break;case 31:fe(e,t),he(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,ds(t,i)));break;case 13:fe(e,t),he(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ps=pe()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,ds(t,i)));break;case 22:s=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,M=rn,R=Gt;if(rn=M||s,Gt=R||T,fe(e,t),Gt=R,rn=M,he(t),i&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||T||rn||Gt||fi(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(o=T.stateNode,s)f=o.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=T.stateNode;var B=T.memoizedProps.style,C=B!=null&&B.hasOwnProperty("display")?B.display:null;p.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(F){bt(T,T.return,F)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(F){bt(T,T.return,F)}}}else if(e.tag===18){if(n===null){T=e;try{var z=T.stateNode;s?Dm(z,!0):Dm(T.stateNode,!1)}catch(F){bt(T,T.return,F)}}}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}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,ds(t,n))));break;case 19:fe(e,t),he(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,ds(t,i)));break;case 30:break;case 21:break;default:fe(e,t),he(t)}}function he(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(Cd(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,o=Ho(t);hs(t,o,s);break;case 5:var f=n.stateNode;n.flags&32&&(xi(f,""),n.flags&=-33);var p=Ho(t);hs(t,p,f);break;case 3:case 4:var T=n.stateNode.containerInfo,M=Ho(t);wo(t,M,T);break;default:throw Error(r(161))}}catch(R){bt(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function jd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;jd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function fn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Rd(t,e.alternate,e),e=e.sibling}function fi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Rn(4,e,e.return),fi(e);break;case 1:Ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Dd(e,e.return,n),fi(e);break;case 27:Pa(e.stateNode);case 26:case 5:Ke(e,e.return),fi(e);break;case 22:e.memoizedState===null&&fi(e);break;case 30:fi(e);break;default:fi(e)}t=t.sibling}}function hn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,s=t,o=e,f=o.flags;switch(o.tag){case 0:case 11:case 15:hn(s,o,n),qa(4,o);break;case 1:if(hn(s,o,n),i=o,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){bt(i,i.return,M)}if(i=o,s=i.updateQueue,s!==null){var p=i.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)dh(T[s],p)}catch(M){bt(i,i.return,M)}}n&&f&64&&xd(o),Ga(o,o.return);break;case 27:zd(o);case 26:case 5:hn(s,o,n),n&&i===null&&f&4&&Md(o),Ga(o,o.return);break;case 12:hn(s,o,n);break;case 31:hn(s,o,n),n&&f&4&&Ud(s,o);break;case 13:hn(s,o,n),n&&f&4&&Bd(s,o);break;case 22:o.memoizedState===null&&hn(s,o,n),Ga(o,o.return);break;case 30:break;default:hn(s,o,n)}e=e.sibling}}function qo(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&&za(n))}function Go(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&za(t))}function qe(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ld(t,e,n,i),e=e.sibling}function Ld(t,e,n,i){var s=e.flags;switch(e.tag){case 0:case 11:case 15:qe(t,e,n,i),s&2048&&qa(9,e);break;case 1:qe(t,e,n,i);break;case 3:qe(t,e,n,i),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&za(t)));break;case 12:if(s&2048){qe(t,e,n,i),t=e.stateNode;try{var o=e.memoizedProps,f=o.id,p=o.onPostCommit;typeof p=="function"&&p(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){bt(e,e.return,T)}}else qe(t,e,n,i);break;case 31:qe(t,e,n,i);break;case 13:qe(t,e,n,i);break;case 23:break;case 22:o=e.stateNode,f=e.alternate,e.memoizedState!==null?o._visibility&2?qe(t,e,n,i):Xa(t,e):o._visibility&2?qe(t,e,n,i):(o._visibility|=2,Qi(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),s&2048&&qo(f,e);break;case 24:qe(t,e,n,i),s&2048&&Go(e.alternate,e);break;default:qe(t,e,n,i)}}function Qi(t,e,n,i,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,f=e,p=n,T=i,M=f.flags;switch(f.tag){case 0:case 11:case 15:Qi(o,f,p,T,s),qa(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Qi(o,f,p,T,s):Xa(o,f):(R._visibility|=2,Qi(o,f,p,T,s)),s&&M&2048&&qo(f.alternate,f);break;case 24:Qi(o,f,p,T,s),s&&M&2048&&Go(f.alternate,f);break;default:Qi(o,f,p,T,s)}e=e.sibling}}function Xa(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,s=i.flags;switch(i.tag){case 22:Xa(n,i),s&2048&&qo(i.alternate,i);break;case 24:Xa(n,i),s&2048&&Go(i.alternate,i);break;default:Xa(n,i)}e=e.sibling}}var Qa=8192;function Zi(t,e,n){if(t.subtreeFlags&Qa)for(t=t.child;t!==null;)Hd(t,e,n),t=t.sibling}function Hd(t,e,n){switch(t.tag){case 26:Zi(t,e,n),t.flags&Qa&&t.memoizedState!==null&&g1(n,Ye,t.memoizedState,t.memoizedProps);break;case 5:Zi(t,e,n);break;case 3:case 4:var i=Ye;Ye=Cs(t.stateNode.containerInfo),Zi(t,e,n),Ye=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=Qa,Qa=16777216,Zi(t,e,n),Qa=i):Zi(t,e,n));break;default:Zi(t,e,n)}}function wd(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 Za(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];Ft=i,qd(i,t)}wd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yd(t),t=t.sibling}function Yd(t){switch(t.tag){case 0:case 11:case 15:Za(t),t.flags&2048&&Rn(9,t,t.return);break;case 3:Za(t);break;case 12:Za(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ms(t)):Za(t);break;default:Za(t)}}function ms(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];Ft=i,qd(i,t)}wd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Rn(8,e,e.return),ms(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,ms(e));break;default:ms(e)}t=t.sibling}}function qd(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:Rn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:za(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Ft=i;else t:for(n=t;Ft!==null;){i=Ft;var s=i.sibling,o=i.return;if(Vd(i),i===n){Ft=null;break t}if(s!==null){s.return=o,Ft=s;break t}Ft=o}}}var _v={getCacheForType:function(t){var e=Pt(wt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Pt(wt).controller.signal}},Uv=typeof WeakMap=="function"?WeakMap:Map,vt=0,Dt=null,ot=null,ft=0,Tt=0,Ae=null,Vn=!1,Ki=!1,Xo=!1,dn=0,Ut=0,_n=0,hi=0,Qo=0,Ee=0,Ji=0,Ka=null,de=null,Zo=!1,ps=0,Gd=0,ys=1/0,gs=null,Un=null,Zt=0,Bn=null,Fi=null,mn=0,Ko=0,Jo=null,Xd=null,Ja=0,Fo=null;function xe(){return(vt&2)!==0&&ft!==0?ft&-ft:V.T!==null?tr():lf()}function Qd(){if(Ee===0)if((ft&536870912)===0||dt){var t=Dl;Dl<<=1,(Dl&3932160)===0&&(Dl=262144),Ee=t}else Ee=536870912;return t=Te.current,t!==null&&(t.flags|=32),Ee}function me(t,e,n){(t===Dt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(ki(t,0),Nn(t,ft,Ee,!1)),ma(t,n),((vt&2)===0||t!==Dt)&&(t===Dt&&((vt&2)===0&&(hi|=n),Ut===4&&Nn(t,ft,Ee,!1)),Je(t))}function Zd(t,e,n){if((vt&6)!==0)throw Error(r(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||da(t,e),s=i?jv(t,e):Wo(t,e,!0),o=i;do{if(s===0){Ki&&!i&&Nn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!Bv(n)){s=Wo(t,e,!1),o=!1;continue}if(s===2){if(o=e,t.errorRecoveryDisabledLanes&o)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var p=t;s=Ka;var T=p.current.memoizedState.isDehydrated;if(T&&(ki(p,f).flags|=256),f=Wo(p,f,!1),f!==2){if(Xo&&!T){p.errorRecoveryDisabledLanes|=o,hi|=o,s=4;break t}o=de,de=s,o!==null&&(de===null?de=o:de.push.apply(de,o))}s=f}if(o=!1,s!==2)continue}}if(s===1){ki(t,0),Nn(t,e,0,!0);break}t:{switch(i=t,o=s,o){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Nn(i,e,Ee,!Vn);break t;case 2:de=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(s=ps+300-pe(),10<s)){if(Nn(i,e,Ee,!Vn),Cl(i,0,!0)!==0)break t;mn=e,i.timeoutHandle=Am(Kd.bind(null,i,n,de,gs,Zo,e,Ee,hi,Ji,Vn,o,"Throttled",-0,0),s);break t}Kd(i,n,de,gs,Zo,e,Ee,hi,Ji,Vn,o,null,-0,0)}}break}while(!0);Je(t)}function Kd(t,e,n,i,s,o,f,p,T,M,R,B,C,z){if(t.timeoutHandle=-1,B=e.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$e},Hd(e,o,B);var F=(o&62914560)===o?ps-pe():(o&4194048)===o?Gd-pe():0;if(F=v1(B,F),F!==null){mn=o,t.cancelPendingCommit=F(tm.bind(null,t,e,o,n,i,s,f,p,T,R,B,null,C,z)),Nn(t,o,f,!M);return}}tm(t,e,o,n,i,s,f,p,T)}function Bv(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 i=0;i<n.length;i++){var s=n[i],o=s.getSnapshot;s=s.value;try{if(!ve(o(),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 Nn(t,e,n,i){e&=~Qo,e&=~hi,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var s=e;0<s;){var o=31-ge(s),f=1<<o;i[o]=-1,s&=~f}n!==0&&ef(t,n,e)}function vs(){return(vt&6)===0?(Fa(0),!1):!0}function ko(){if(ot!==null){if(Tt===0)var t=ot.return;else t=ot,nn=ii=null,co(t),wi=null,Ra=0,t=ot;for(;t!==null;)Ed(t.alternate,t),t=t.return;ot=null}}function ki(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,t1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),mn=0,ko(),Dt=t,ot=n=tn(t.current,null),ft=e,Tt=0,Ae=null,Vn=!1,Ki=da(t,e),Xo=!1,Ji=Ee=Qo=hi=_n=Ut=0,de=Ka=null,Zo=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var s=31-ge(i),o=1<<s;e|=t[s],i&=~o}return dn=e,wl(),n}function Jd(t,e){at=null,V.H=Ha,e===Hi||e===Jl?(e=rh(),Tt=3):e===$u?(e=rh(),Tt=4):Tt=e===Co?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ae=e,ot===null&&(Ut=1,us(t,Oe(e,t.current)))}function Fd(){var t=Te.current;return t===null?!0:(ft&4194048)===ft?Ue===null:(ft&62914560)===ft||(ft&536870912)!==0?t===Ue:!1}function kd(){var t=V.H;return V.H=Ha,t===null?Ha:t}function Wd(){var t=V.A;return V.A=_v,t}function Ss(){Ut=4,Vn||(ft&4194048)!==ft&&Te.current!==null||(Ki=!0),(_n&134217727)===0&&(hi&134217727)===0||Dt===null||Nn(Dt,ft,Ee,!1)}function Wo(t,e,n){var i=vt;vt|=2;var s=kd(),o=Wd();(Dt!==t||ft!==e)&&(gs=null,ki(t,e)),e=!1;var f=Ut;t:do try{if(Tt!==0&&ot!==null){var p=ot,T=Ae;switch(Tt){case 8:ko(),f=6;break t;case 3:case 2:case 9:case 6:Te.current===null&&(e=!0);var M=Tt;if(Tt=0,Ae=null,Wi(t,p,T,M),n&&Ki){f=0;break t}break;default:M=Tt,Tt=0,Ae=null,Wi(t,p,T,M)}}Nv(),f=Ut;break}catch(R){Jd(t,R)}while(!0);return e&&t.shellSuspendCounter++,nn=ii=null,vt=i,V.H=s,V.A=o,ot===null&&(Dt=null,ft=0,wl()),f}function Nv(){for(;ot!==null;)Pd(ot)}function jv(t,e){var n=vt;vt|=2;var i=kd(),s=Wd();Dt!==t||ft!==e?(gs=null,ys=pe()+500,ki(t,e)):Ki=da(t,e);t:do try{if(Tt!==0&&ot!==null){e=ot;var o=Ae;e:switch(Tt){case 1:Tt=0,Ae=null,Wi(t,e,o,1);break;case 2:case 9:if(uh(o)){Tt=0,Ae=null,$d(e);break}e=function(){Tt!==2&&Tt!==9||Dt!==t||(Tt=7),Je(t)},o.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:uh(o)?(Tt=0,Ae=null,$d(e)):(Tt=0,Ae=null,Wi(t,e,o,7));break;case 5:var f=null;switch(ot.tag){case 26:f=ot.memoizedState;case 5:case 27:var p=ot;if(f?Lm(f):p.stateNode.complete){Tt=0,Ae=null;var T=p.sibling;if(T!==null)ot=T;else{var M=p.return;M!==null?(ot=M,Ts(M)):ot=null}break e}}Tt=0,Ae=null,Wi(t,e,o,5);break;case 6:Tt=0,Ae=null,Wi(t,e,o,6);break;case 8:ko(),Ut=6;break t;default:throw Error(r(462))}}Lv();break}catch(R){Jd(t,R)}while(!0);return nn=ii=null,V.H=i,V.A=s,vt=n,ot!==null?0:(Dt=null,ft=0,wl(),Ut)}function Lv(){for(;ot!==null&&!s0();)Pd(ot)}function Pd(t){var e=bd(t.alternate,t,dn);t.memoizedProps=t.pendingProps,e===null?Ts(t):ot=e}function $d(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=pd(n,e,e.pendingProps,e.type,void 0,ft);break;case 11:e=pd(n,e,e.pendingProps,e.type.render,e.ref,ft);break;case 5:co(e);default:Ed(n,e),e=ot=Wf(e,dn),e=bd(n,e,dn)}t.memoizedProps=t.pendingProps,e===null?Ts(t):ot=e}function Wi(t,e,n,i){nn=ii=null,co(e),wi=null,Ra=0;var s=e.return;try{if(Dv(t,s,e,n,ft)){Ut=1,us(t,Oe(n,t.current)),ot=null;return}}catch(o){if(s!==null)throw ot=s,o;Ut=1,us(t,Oe(n,t.current)),ot=null;return}e.flags&32768?(dt||i===1?t=!0:Ki||(ft&536870912)!==0?t=!1:(Vn=t=!0,(i===2||i===9||i===3||i===6)&&(i=Te.current,i!==null&&i.tag===13&&(i.flags|=16384))),Id(e,t)):Ts(e)}function Ts(t){var e=t;do{if((e.flags&32768)!==0){Id(e,Vn);return}t=e.return;var n=zv(e.alternate,e,dn);if(n!==null){ot=n;return}if(e=e.sibling,e!==null){ot=e;return}ot=e=t}while(e!==null);Ut===0&&(Ut=5)}function Id(t,e){do{var n=Ov(t.alternate,t);if(n!==null){n.flags&=32767,ot=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ot=t;return}ot=t=n}while(t!==null);Ut=6,ot=null}function tm(t,e,n,i,s,o,f,p,T){t.cancelPendingCommit=null;do bs();while(Zt!==0);if((vt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(o=e.lanes|e.childLanes,o|=Lu,y0(t,n,o,f,p,T),t===Dt&&(ot=Dt=null,ft=0),Fi=e,Bn=t,mn=n,Ko=o,Jo=s,Xd=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,qv(El,function(){return lm(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=V.T,V.T=null,s=w.p,w.p=2,f=vt,vt|=4;try{Rv(t,e,n)}finally{vt=f,w.p=s,V.T=i}}Zt=1,em(),nm(),im()}}function em(){if(Zt===1){Zt=0;var t=Bn,e=Fi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=V.T,V.T=null;var i=w.p;w.p=2;var s=vt;vt|=4;try{Nd(e,t);var o=or,f=qf(t.containerInfo),p=o.focusedElem,T=o.selectionRange;if(f!==p&&p&&p.ownerDocument&&Yf(p.ownerDocument.documentElement,p)){if(T!==null&&_u(p)){var M=T.start,R=T.end;if(R===void 0&&(R=M),"selectionStart"in p)p.selectionStart=M,p.selectionEnd=Math.min(R,p.value.length);else{var B=p.ownerDocument||document,C=B&&B.defaultView||window;if(C.getSelection){var z=C.getSelection(),F=p.textContent.length,et=Math.min(T.start,F),xt=T.end===void 0?et:Math.min(T.end,F);!z.extend&&et>xt&&(f=xt,xt=et,et=f);var x=wf(p,et),A=wf(p,xt);if(x&&A&&(z.rangeCount!==1||z.anchorNode!==x.node||z.anchorOffset!==x.offset||z.focusNode!==A.node||z.focusOffset!==A.offset)){var D=B.createRange();D.setStart(x.node,x.offset),z.removeAllRanges(),et>xt?(z.addRange(D),z.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),z.addRange(D))}}}}for(B=[],z=p;z=z.parentNode;)z.nodeType===1&&B.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<B.length;p++){var _=B[p];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}Us=!!ur,or=ur=null}finally{vt=s,w.p=i,V.T=n}}t.current=e,Zt=2}}function nm(){if(Zt===2){Zt=0;var t=Bn,e=Fi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=V.T,V.T=null;var i=w.p;w.p=2;var s=vt;vt|=4;try{Rd(t,e.alternate,e)}finally{vt=s,w.p=i,V.T=n}}Zt=3}}function im(){if(Zt===4||Zt===3){Zt=0,u0();var t=Bn,e=Fi,n=mn,i=Xd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,Fi=Bn=null,am(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Un=null),du(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(ha,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=V.T,s=w.p,w.p=2,V.T=null;try{for(var o=t.onRecoverableError,f=0;f<i.length;f++){var p=i[f];o(p.value,{componentStack:p.stack})}}finally{V.T=e,w.p=s}}(mn&3)!==0&&bs(),Je(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Fo?Ja++:(Ja=0,Fo=t):Ja=0,Fa(0)}}function am(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,za(e)))}function bs(){return em(),nm(),im(),lm()}function lm(){if(Zt!==5)return!1;var t=Bn,e=Ko;Ko=0;var n=du(mn),i=V.T,s=w.p;try{w.p=32>n?32:n,V.T=null,n=Jo,Jo=null;var o=Bn,f=mn;if(Zt=0,Fi=Bn=null,mn=0,(vt&6)!==0)throw Error(r(331));var p=vt;if(vt|=4,Yd(o.current),Ld(o,o.current,f,n),vt=p,Fa(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(ha,o)}catch{}return!0}finally{w.p=s,V.T=i,am(t,e)}}function sm(t,e,n){e=Oe(n,e),e=Mo(t.stateNode,e,2),t=Cn(t,e,2),t!==null&&(ma(t,2),Je(t))}function bt(t,e,n){if(t.tag===3)sm(t,t,n);else for(;e!==null;){if(e.tag===3){sm(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Un===null||!Un.has(i))){t=Oe(n,t),n=ud(2),i=Cn(e,n,2),i!==null&&(od(n,i,e,t),ma(i,2),Je(i));break}}e=e.return}}function Po(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new Uv;var s=new Set;i.set(e,s)}else s=i.get(e),s===void 0&&(s=new Set,i.set(e,s));s.has(n)||(Xo=!0,s.add(n),t=Hv.bind(null,t,e,n),e.then(t,t))}function Hv(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Dt===t&&(ft&n)===n&&(Ut===4||Ut===3&&(ft&62914560)===ft&&300>pe()-ps?(vt&2)===0&&ki(t,0):Qo|=n,Ji===ft&&(Ji=0)),Je(t)}function um(t,e){e===0&&(e=tf()),t=ti(t,e),t!==null&&(ma(t,e),Je(t))}function wv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),um(t,n)}function Yv(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(e),um(t,n)}function qv(t,e){return ru(t,e)}var As=null,Pi=null,$o=!1,Es=!1,Io=!1,jn=0;function Je(t){t!==Pi&&t.next===null&&(Pi===null?As=Pi=t:Pi=Pi.next=t),Es=!0,$o||($o=!0,Xv())}function Fa(t,e){if(!Io&&Es){Io=!0;do for(var n=!1,i=As;i!==null;){if(t!==0){var s=i.pendingLanes;if(s===0)var o=0;else{var f=i.suspendedLanes,p=i.pingedLanes;o=(1<<31-ge(42|t)+1)-1,o&=s&~(f&~p),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,fm(i,o))}else o=ft,o=Cl(i,i===Dt?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||da(i,o)||(n=!0,fm(i,o));i=i.next}while(n);Io=!1}}function Gv(){om()}function om(){Es=$o=!1;var t=0;jn!==0&&Iv()&&(t=jn);for(var e=pe(),n=null,i=As;i!==null;){var s=i.next,o=rm(i,e);o===0?(i.next=null,n===null?As=s:n.next=s,s===null&&(Pi=n)):(n=i,(t!==0||(o&3)!==0)&&(Es=!0)),i=s}Zt!==0&&Zt!==5||Fa(t),jn!==0&&(jn=0)}function rm(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,s=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var f=31-ge(o),p=1<<f,T=s[f];T===-1?((p&n)===0||(p&i)!==0)&&(s[f]=p0(p,e)):T<=e&&(t.expiredLanes|=p),o&=~p}if(e=Dt,n=ft,n=Cl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&cu(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||da(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&cu(i),du(n)){case 2:case 8:n=$c;break;case 32:n=El;break;case 268435456:n=Ic;break;default:n=El}return i=cm.bind(null,t),n=ru(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&cu(i),t.callbackPriority=2,t.callbackNode=null,2}function cm(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(bs()&&t.callbackNode!==n)return null;var i=ft;return i=Cl(t,t===Dt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(Zd(t,i,e),rm(t,pe()),t.callbackNode!=null&&t.callbackNode===n?cm.bind(null,t):null)}function fm(t,e){if(bs())return null;Zd(t,e,!0)}function Xv(){e1(function(){(vt&6)!==0?ru(Pc,Gv):om()})}function tr(){if(jn===0){var t=ji;t===0&&(t=xl,xl<<=1,(xl&261888)===0&&(xl=256)),jn=t}return jn}function hm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Vl(""+t)}function dm(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 Qv(t,e,n,i,s){if(e==="submit"&&n&&n.stateNode===s){var o=hm((s[oe]||null).action),f=i.submitter;f&&(e=(e=f[oe]||null)?hm(e.formAction):f.getAttribute("formAction"),e!==null&&(o=e,f=null));var p=new Nl("action","action",null,i,s);t.push({event:p,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(jn!==0){var T=f?dm(s,f):new FormData(s);To(n,{pending:!0,data:T,method:s.method,action:o},null,T)}}else typeof o=="function"&&(p.preventDefault(),T=f?dm(s,f):new FormData(s),To(n,{pending:!0,data:T,method:s.method,action:o},o,T))},currentTarget:s}]})}}for(var er=0;er<ju.length;er++){var nr=ju[er],Zv=nr.toLowerCase(),Kv=nr[0].toUpperCase()+nr.slice(1);we(Zv,"on"+Kv)}we(Qf,"onAnimationEnd"),we(Zf,"onAnimationIteration"),we(Kf,"onAnimationStart"),we("dblclick","onDoubleClick"),we("focusin","onFocus"),we("focusout","onBlur"),we(ov,"onTransitionRun"),we(rv,"onTransitionStart"),we(cv,"onTransitionCancel"),we(Jf,"onTransitionEnd"),Ai("onMouseEnter",["mouseout","mouseover"]),Ai("onMouseLeave",["mouseout","mouseover"]),Ai("onPointerEnter",["pointerout","pointerover"]),Ai("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ka="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(" "),Jv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ka));function mm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],s=i.event;i=i.listeners;t:{var o=void 0;if(e)for(var f=i.length-1;0<=f;f--){var p=i[f],T=p.instance,M=p.currentTarget;if(p=p.listener,T!==o&&s.isPropagationStopped())break t;o=p,s.currentTarget=M;try{o(s)}catch(R){Hl(R)}s.currentTarget=null,o=T}else for(f=0;f<i.length;f++){if(p=i[f],T=p.instance,M=p.currentTarget,p=p.listener,T!==o&&s.isPropagationStopped())break t;o=p,s.currentTarget=M;try{o(s)}catch(R){Hl(R)}s.currentTarget=null,o=T}}}}function rt(t,e){var n=e[mu];n===void 0&&(n=e[mu]=new Set);var i=t+"__bubble";n.has(i)||(pm(e,t,2,!1),n.add(i))}function ir(t,e,n){var i=0;e&&(i|=4),pm(n,t,i,e)}var xs="_reactListening"+Math.random().toString(36).slice(2);function ar(t){if(!t[xs]){t[xs]=!0,of.forEach(function(n){n!=="selectionchange"&&(Jv.has(n)||ir(n,!1,t),ir(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xs]||(e[xs]=!0,ir("selectionchange",!1,e))}}function pm(t,e,n,i){switch(Qm(e)){case 2:var s=b1;break;case 8:s=A1;break;default:s=Sr}n=s.bind(null,e,n,t),s=void 0,!Eu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),i?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function lr(t,e,n,i,s){var o=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var f=i.tag;if(f===3||f===4){var p=i.stateNode.containerInfo;if(p===s)break;if(f===4)for(f=i.return;f!==null;){var T=f.tag;if((T===3||T===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;p!==null;){if(f=Si(p),f===null)return;if(T=f.tag,T===5||T===6||T===26||T===27){i=o=f;continue t}p=p.parentNode}}i=i.return}Tf(function(){var M=o,R=bu(n),B=[];t:{var C=Ff.get(t);if(C!==void 0){var z=Nl,F=t;switch(t){case"keypress":if(Ul(n)===0)break t;case"keydown":case"keyup":z=Y0;break;case"focusin":F="focus",z=Cu;break;case"focusout":F="blur",z=Cu;break;case"beforeblur":case"afterblur":z=Cu;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":z=Ef;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=z0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=X0;break;case Qf:case Zf:case Kf:z=V0;break;case Jf:z=Z0;break;case"scroll":case"scrollend":z=M0;break;case"wheel":z=J0;break;case"copy":case"cut":case"paste":z=U0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Df;break;case"toggle":case"beforetoggle":z=k0}var et=(e&4)!==0,xt=!et&&(t==="scroll"||t==="scrollend"),x=et?C!==null?C+"Capture":null:C;et=[];for(var A=M,D;A!==null;){var _=A;if(D=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||D===null||x===null||(_=ga(A,x),_!=null&&et.push(Wa(A,_,D))),xt)break;A=A.return}0<et.length&&(C=new z(C,F,null,n,R),B.push({event:C,listeners:et}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",C&&n!==Tu&&(F=n.relatedTarget||n.fromElement)&&(Si(F)||F[vi]))break t;if((z||C)&&(C=R.window===R?R:(C=R.ownerDocument)?C.defaultView||C.parentWindow:window,z?(F=n.relatedTarget||n.toElement,z=M,F=F?Si(F):null,F!==null&&(xt=d(F),et=F.tag,F!==xt||et!==5&&et!==27&&et!==6)&&(F=null)):(z=null,F=M),z!==F)){if(et=Ef,_="onMouseLeave",x="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(et=Df,_="onPointerLeave",x="onPointerEnter",A="pointer"),xt=z==null?C:ya(z),D=F==null?C:ya(F),C=new et(_,A+"leave",z,n,R),C.target=xt,C.relatedTarget=D,_=null,Si(R)===M&&(et=new et(x,A+"enter",F,n,R),et.target=D,et.relatedTarget=xt,_=et),xt=_,z&&F)e:{for(et=Fv,x=z,A=F,D=0,_=x;_;_=et(_))D++;_=0;for(var tt=A;tt;tt=et(tt))_++;for(;0<D-_;)x=et(x),D--;for(;0<_-D;)A=et(A),_--;for(;D--;){if(x===A||A!==null&&x===A.alternate){et=x;break e}x=et(x),A=et(A)}et=null}else et=null;z!==null&&ym(B,C,z,et,!1),F!==null&&xt!==null&&ym(B,xt,F,et,!0)}}t:{if(C=M?ya(M):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var yt=Uf;else if(Vf(C))if(Bf)yt=lv;else{yt=iv;var P=nv}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?M&&Su(M.elementType)&&(yt=Uf):yt=av;if(yt&&(yt=yt(t,M))){_f(B,yt,n,R);break t}P&&P(t,C,M),t==="focusout"&&M&&C.type==="number"&&M.memoizedProps.value!=null&&vu(C,"number",C.value)}switch(P=M?ya(M):window,t){case"focusin":(Vf(P)||P.contentEditable==="true")&&(zi=P,Uu=M,Da=null);break;case"focusout":Da=Uu=zi=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Gf(B,n,R);break;case"selectionchange":if(uv)break;case"keydown":case"keyup":Gf(B,n,R)}var st;if(Ou)t:{switch(t){case"compositionstart":var ht="onCompositionStart";break t;case"compositionend":ht="onCompositionEnd";break t;case"compositionupdate":ht="onCompositionUpdate";break t}ht=void 0}else Ci?Of(t,n)&&(ht="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(ht="onCompositionStart");ht&&(Mf&&n.locale!=="ko"&&(Ci||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&Ci&&(st=bf()):(Tn=R,xu="value"in Tn?Tn.value:Tn.textContent,Ci=!0)),P=Ds(M,ht),0<P.length&&(ht=new xf(ht,t,null,n,R),B.push({event:ht,listeners:P}),st?ht.data=st:(st=Rf(n),st!==null&&(ht.data=st)))),(st=P0?$0(t,n):I0(t,n))&&(ht=Ds(M,"onBeforeInput"),0<ht.length&&(P=new xf("onBeforeInput","beforeinput",null,n,R),B.push({event:P,listeners:ht}),P.data=st)),Qv(B,t,M,n,R)}mm(B,e)})}function Wa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ds(t,e){for(var n=e+"Capture",i=[];t!==null;){var s=t,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=ga(t,n),s!=null&&i.unshift(Wa(t,s,o)),s=ga(t,e),s!=null&&i.push(Wa(t,s,o))),t.tag===3)return i;t=t.return}return[]}function Fv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ym(t,e,n,i,s){for(var o=e._reactName,f=[];n!==null&&n!==i;){var p=n,T=p.alternate,M=p.stateNode;if(p=p.tag,T!==null&&T===i)break;p!==5&&p!==26&&p!==27||M===null||(T=M,s?(M=ga(n,o),M!=null&&f.unshift(Wa(n,M,T))):s||(M=ga(n,o),M!=null&&f.push(Wa(n,M,T)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var kv=/\r\n?/g,Wv=/\u0000|\uFFFD/g;function gm(t){return(typeof t=="string"?t:""+t).replace(kv,`
`).replace(Wv,"")}function vm(t,e){return e=gm(e),gm(t)===e}function Et(t,e,n,i,s,o){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||xi(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&xi(t,""+i);break;case"className":Ol(t,"class",i);break;case"tabIndex":Ol(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ol(t,n,i);break;case"style":vf(t,i,o);break;case"data":if(e!=="object"){Ol(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Vl(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="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 o=="function"&&(n==="formAction"?(e!=="input"&&Et(t,e,"name",s.name,s,null),Et(t,e,"formEncType",s.formEncType,s,null),Et(t,e,"formMethod",s.formMethod,s,null),Et(t,e,"formTarget",s.formTarget,s,null)):(Et(t,e,"encType",s.encType,s,null),Et(t,e,"method",s.method,s,null),Et(t,e,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Vl(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=$e);break;case"onScroll":i!=null&&rt("scroll",t);break;case"onScrollEnd":i!=null&&rt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=Vl(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":rt("beforetoggle",t),rt("toggle",t),zl(t,"popover",i);break;case"xlinkActuate":Pe(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Pe(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Pe(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Pe(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Pe(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Pe(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Pe(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":zl(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=x0.get(n)||n,zl(t,n,i))}}function sr(t,e,n,i,s,o){switch(n){case"style":vf(t,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof i=="string"?xi(t,i):(typeof i=="number"||typeof i=="bigint")&&xi(t,""+i);break;case"onScroll":i!=null&&rt("scroll",t);break;case"onScrollEnd":i!=null&&rt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=$e);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),o=t[oe]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,s),typeof i=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,s);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):zl(t,n,i)}}}function It(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",t),rt("load",t);var i=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var f=n[o];if(f!=null)switch(o){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Et(t,e,o,f,n,null)}}s&&Et(t,e,"srcSet",n.srcSet,n,null),i&&Et(t,e,"src",n.src,n,null);return;case"input":rt("invalid",t);var p=o=f=s=null,T=null,M=null;for(i in n)if(n.hasOwnProperty(i)){var R=n[i];if(R!=null)switch(i){case"name":s=R;break;case"type":f=R;break;case"checked":T=R;break;case"defaultChecked":M=R;break;case"value":o=R;break;case"defaultValue":p=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,e));break;default:Et(t,e,i,R,n,null)}}mf(t,o,p,T,M,f,s,!1);return;case"select":rt("invalid",t),i=f=o=null;for(s in n)if(n.hasOwnProperty(s)&&(p=n[s],p!=null))switch(s){case"value":o=p;break;case"defaultValue":f=p;break;case"multiple":i=p;default:Et(t,e,s,p,n,null)}e=o,n=f,t.multiple=!!i,e!=null?Ei(t,!!i,e,!1):n!=null&&Ei(t,!!i,n,!0);return;case"textarea":rt("invalid",t),o=s=i=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":i=p;break;case"defaultValue":s=p;break;case"children":o=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:Et(t,e,f,p,n,null)}yf(t,i,s,o);return;case"option":for(T in n)n.hasOwnProperty(T)&&(i=n[T],i!=null)&&(T==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":Et(t,e,T,i,n,null));return;case"dialog":rt("beforetoggle",t),rt("toggle",t),rt("cancel",t),rt("close",t);break;case"iframe":case"object":rt("load",t);break;case"video":case"audio":for(i=0;i<ka.length;i++)rt(ka[i],t);break;case"image":rt("error",t),rt("load",t);break;case"details":rt("toggle",t);break;case"embed":case"source":case"link":rt("error",t),rt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in n)if(n.hasOwnProperty(M)&&(i=n[M],i!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Et(t,e,M,i,n,null)}return;default:if(Su(e)){for(R in n)n.hasOwnProperty(R)&&(i=n[R],i!==void 0&&sr(t,e,R,i,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(i=n[p],i!=null&&Et(t,e,p,i,n,null))}function Pv(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,f=null,p=null,T=null,M=null,R=null;for(z in n){var B=n[z];if(n.hasOwnProperty(z)&&B!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":T=B;default:i.hasOwnProperty(z)||Et(t,e,z,null,i,B)}}for(var C in i){var z=i[C];if(B=n[C],i.hasOwnProperty(C)&&(z!=null||B!=null))switch(C){case"type":o=z;break;case"name":s=z;break;case"checked":M=z;break;case"defaultChecked":R=z;break;case"value":f=z;break;case"defaultValue":p=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:z!==B&&Et(t,e,C,z,i,B)}}gu(t,f,p,T,M,R,o,s);return;case"select":z=f=p=C=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":z=T;default:i.hasOwnProperty(o)||Et(t,e,o,null,i,T)}for(s in i)if(o=i[s],T=n[s],i.hasOwnProperty(s)&&(o!=null||T!=null))switch(s){case"value":C=o;break;case"defaultValue":p=o;break;case"multiple":f=o;default:o!==T&&Et(t,e,s,o,i,T)}e=p,n=f,i=z,C!=null?Ei(t,!!n,C,!1):!!i!=!!n&&(e!=null?Ei(t,!!n,e,!0):Ei(t,!!n,n?[]:"",!1));return;case"textarea":z=C=null;for(p in n)if(s=n[p],n.hasOwnProperty(p)&&s!=null&&!i.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Et(t,e,p,null,i,s)}for(f in i)if(s=i[f],o=n[f],i.hasOwnProperty(f)&&(s!=null||o!=null))switch(f){case"value":C=s;break;case"defaultValue":z=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==o&&Et(t,e,f,s,i,o)}pf(t,C,z);return;case"option":for(var F in n)C=n[F],n.hasOwnProperty(F)&&C!=null&&!i.hasOwnProperty(F)&&(F==="selected"?t.selected=!1:Et(t,e,F,null,i,C));for(T in i)C=i[T],z=n[T],i.hasOwnProperty(T)&&C!==z&&(C!=null||z!=null)&&(T==="selected"?t.selected=C&&typeof C!="function"&&typeof C!="symbol":Et(t,e,T,C,i,z));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 et in n)C=n[et],n.hasOwnProperty(et)&&C!=null&&!i.hasOwnProperty(et)&&Et(t,e,et,null,i,C);for(M in i)if(C=i[M],z=n[M],i.hasOwnProperty(M)&&C!==z&&(C!=null||z!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,e));break;default:Et(t,e,M,C,i,z)}return;default:if(Su(e)){for(var xt in n)C=n[xt],n.hasOwnProperty(xt)&&C!==void 0&&!i.hasOwnProperty(xt)&&sr(t,e,xt,void 0,i,C);for(R in i)C=i[R],z=n[R],!i.hasOwnProperty(R)||C===z||C===void 0&&z===void 0||sr(t,e,R,C,i,z);return}}for(var x in n)C=n[x],n.hasOwnProperty(x)&&C!=null&&!i.hasOwnProperty(x)&&Et(t,e,x,null,i,C);for(B in i)C=i[B],z=n[B],!i.hasOwnProperty(B)||C===z||C==null&&z==null||Et(t,e,B,C,i,z)}function Sm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $v(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var s=n[i],o=s.transferSize,f=s.initiatorType,p=s.duration;if(o&&p&&Sm(f)){for(f=0,p=s.responseEnd,i+=1;i<n.length;i++){var T=n[i],M=T.startTime;if(M>p)break;var R=T.transferSize,B=T.initiatorType;R&&Sm(B)&&(T=T.responseEnd,f+=R*(T<p?1:(p-M)/(T-M)))}if(--i,e+=8*(o+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 ur=null,or=null;function Ms(t){return t.nodeType===9?t:t.ownerDocument}function Tm(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 bm(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 rr(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 cr=null;function Iv(){var t=window.event;return t&&t.type==="popstate"?t===cr?!1:(cr=t,!0):(cr=null,!1)}var Am=typeof setTimeout=="function"?setTimeout:void 0,t1=typeof clearTimeout=="function"?clearTimeout:void 0,Em=typeof Promise=="function"?Promise:void 0,e1=typeof queueMicrotask=="function"?queueMicrotask:typeof Em<"u"?function(t){return Em.resolve(null).then(t).catch(n1)}:Am;function n1(t){setTimeout(function(){throw t})}function Ln(t){return t==="head"}function xm(t,e){var n=e,i=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(s),ea(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Pa(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Pa(n);for(var o=n.firstChild;o;){var f=o.nextSibling,p=o.nodeName;o[pa]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=f}}else n==="body"&&Pa(t.ownerDocument.body);n=s}while(n);ea(e)}function Dm(t,e){var n=t;t=0;do{var i=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||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function fr(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":fr(n),pu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function i1(t,e,n,i){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[pa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==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(o=t.getAttribute("src"),(o!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=Be(t.nextSibling),t===null)break}return null}function a1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Be(t.nextSibling),t===null))return null;return t}function Mm(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 hr(t){return t.data==="$?"||t.data==="$~"}function dr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function l1(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}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 mr=null;function Cm(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 zm(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 Om(t,e,n){switch(e=Ms(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Pa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);pu(t)}var Ne=new Map,Rm=new Set;function Cs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var pn=w.d;w.d={f:s1,r:u1,D:o1,C:r1,L:c1,m:f1,X:d1,S:h1,M:m1};function s1(){var t=pn.f(),e=vs();return t||e}function u1(t){var e=Ti(t);e!==null&&e.tag===5&&e.type==="form"?Jh(e):pn.r(t)}var $i=typeof document>"u"?null:document;function Vm(t,e,n){var i=$i;if(i&&typeof e=="string"&&e){var s=Ce(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Rm.has(s)||(Rm.add(s),t={rel:t,crossOrigin:n,href:e},i.querySelector(s)===null&&(e=i.createElement("link"),It(e,"link",t),Jt(e),i.head.appendChild(e)))}}function o1(t){pn.D(t),Vm("dns-prefetch",t,null)}function r1(t,e){pn.C(t,e),Vm("preconnect",t,e)}function c1(t,e,n){pn.L(t,e,n);var i=$i;if(i&&t&&e){var s='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Ce(n.imageSizes)+'"]')):s+='[href="'+Ce(t)+'"]';var o=s;switch(e){case"style":o=Ii(t);break;case"script":o=ta(t)}Ne.has(o)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ne.set(o,t),i.querySelector(s)!==null||e==="style"&&i.querySelector($a(o))||e==="script"&&i.querySelector(Ia(o))||(e=i.createElement("link"),It(e,"link",t),Jt(e),i.head.appendChild(e)))}}function f1(t,e){pn.m(t,e);var n=$i;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Ce(i)+'"][href="'+Ce(t)+'"]',o=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ta(t)}if(!Ne.has(o)&&(t=v({rel:"modulepreload",href:t},e),Ne.set(o,t),n.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ia(o)))return}i=n.createElement("link"),It(i,"link",t),Jt(i),n.head.appendChild(i)}}}function h1(t,e,n){pn.S(t,e,n);var i=$i;if(i&&t){var s=bi(i).hoistableStyles,o=Ii(t);e=e||"default";var f=s.get(o);if(!f){var p={loading:0,preload:null};if(f=i.querySelector($a(o)))p.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ne.get(o))&&pr(t,n);var T=f=i.createElement("link");Jt(T),It(T,"link",t),T._p=new Promise(function(M,R){T.onload=M,T.onerror=R}),T.addEventListener("load",function(){p.loading|=1}),T.addEventListener("error",function(){p.loading|=2}),p.loading|=4,zs(f,e,i)}f={type:"stylesheet",instance:f,count:1,state:p},s.set(o,f)}}}function d1(t,e){pn.X(t,e);var n=$i;if(n&&t){var i=bi(n).hoistableScripts,s=ta(t),o=i.get(s);o||(o=n.querySelector(Ia(s)),o||(t=v({src:t,async:!0},e),(e=Ne.get(s))&&yr(t,e),o=n.createElement("script"),Jt(o),It(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function m1(t,e){pn.M(t,e);var n=$i;if(n&&t){var i=bi(n).hoistableScripts,s=ta(t),o=i.get(s);o||(o=n.querySelector(Ia(s)),o||(t=v({src:t,async:!0,type:"module"},e),(e=Ne.get(s))&&yr(t,e),o=n.createElement("script"),Jt(o),It(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(s,o))}}function _m(t,e,n,i){var s=(s=ut.current)?Cs(s):null;if(!s)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ii(n.href),n=bi(s).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Ii(n.href);var o=bi(s).hoistableStyles,f=o.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,f),(o=s.querySelector($a(t)))&&!o._p&&(f.instance=o,f.state.loading=5),Ne.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},Ne.set(t,n),o||p1(s,t,n,f.state))),e&&i===null)throw Error(r(528,""));return f}if(e&&i!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ta(n),n=bi(s).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Ii(t){return'href="'+Ce(t)+'"'}function $a(t){return'link[rel="stylesheet"]['+t+"]"}function Um(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function p1(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),It(e,"link",n),Jt(e),t.head.appendChild(e))}function ta(t){return'[src="'+Ce(t)+'"]'}function Ia(t){return"script[async]"+t}function Bm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(i)return e.instance=i,Jt(i),i;var s=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),Jt(i),It(i,"style",s),zs(i,n.precedence,t),e.instance=i;case"stylesheet":s=Ii(n.href);var o=t.querySelector($a(s));if(o)return e.state.loading|=4,e.instance=o,Jt(o),o;i=Um(n),(s=Ne.get(s))&&pr(i,s),o=(t.ownerDocument||t).createElement("link"),Jt(o);var f=o;return f._p=new Promise(function(p,T){f.onload=p,f.onerror=T}),It(o,"link",i),e.state.loading|=4,zs(o,n.precedence,t),e.instance=o;case"script":return o=ta(n.src),(s=t.querySelector(Ia(o)))?(e.instance=s,Jt(s),s):(i=n,(s=Ne.get(o))&&(i=v({},n),yr(i,s)),t=t.ownerDocument||t,s=t.createElement("script"),Jt(s),It(s,"link",i),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,zs(i,n.precedence,t));return e.instance}function zs(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,o=s,f=0;f<i.length;f++){var p=i[f];if(p.dataset.precedence===e)o=p;else if(o!==s)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function pr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function yr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Os=null;function Nm(t,e,n){if(Os===null){var i=new Map,s=Os=new Map;s.set(n,i)}else s=Os,i=s.get(n),i||(i=new Map,s.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var o=n[s];if(!(o[pa]||o[kt]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var f=o.getAttribute(e)||"";f=t+f;var p=i.get(f);p?p.push(o):i.set(f,[o])}}return i}function jm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function y1(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Lm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function g1(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Ii(i.href),o=e.querySelector($a(s));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Rs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Jt(o);return}o=e.ownerDocument||e,i=Um(i),(s=Ne.get(s))&&pr(i,s),o=o.createElement("link"),Jt(o);var f=o;f._p=new Promise(function(p,T){f.onload=p,f.onerror=T}),It(o,"link",i),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Rs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var gr=0;function v1(t,e){return t.stylesheets&&t.count===0&&_s(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&_s(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&gr===0&&(gr=62500*$v());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&_s(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>gr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function Rs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_s(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Vs=null;function _s(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Vs=new Map,e.forEach(S1,t),Vs=null,Rs.call(t))}function S1(t,e){if(!(e.state.loading&4)){var n=Vs.get(t);if(n)var i=n.get(null);else{n=new Map,Vs.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var f=s[o];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),i=f)}i&&n.set(null,i)}s=e.instance,f=s.getAttribute("data-precedence"),o=n.get(f)||i,o===i&&n.set(null,s),n.set(f,s),this.count++,i=Rs.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),o?o.parentNode.insertBefore(s,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var tl={$$typeof:H,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function T1(t,e,n,i,s,o,f,p,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=fu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fu(0),this.hiddenUpdates=fu(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Hm(t,e,n,i,s,o,f,p,T,M,R,B){return t=new T1(t,e,n,f,T,M,R,B,p),e=1,o===!0&&(e|=24),o=Se(3,null,null,e),t.current=o,o.stateNode=t,e=ku(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:e},Iu(o),t}function wm(t){return t?(t=Vi,t):Vi}function Ym(t,e,n,i,s,o){s=wm(s),i.context===null?i.context=s:i.pendingContext=s,i=Mn(e),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=Cn(t,i,e),n!==null&&(me(n,t,e),_a(n,t,e))}function qm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vr(t,e){qm(t,e),(t=t.alternate)&&qm(t,e)}function Gm(t){if(t.tag===13||t.tag===31){var e=ti(t,67108864);e!==null&&me(e,t,67108864),vr(t,67108864)}}function Xm(t){if(t.tag===13||t.tag===31){var e=xe();e=hu(e);var n=ti(t,e);n!==null&&me(n,t,e),vr(t,e)}}var Us=!0;function b1(t,e,n,i){var s=V.T;V.T=null;var o=w.p;try{w.p=2,Sr(t,e,n,i)}finally{w.p=o,V.T=s}}function A1(t,e,n,i){var s=V.T;V.T=null;var o=w.p;try{w.p=8,Sr(t,e,n,i)}finally{w.p=o,V.T=s}}function Sr(t,e,n,i){if(Us){var s=Tr(i);if(s===null)lr(t,e,i,Bs,n),Zm(t,i);else if(x1(s,t,e,n,i))i.stopPropagation();else if(Zm(t,i),e&4&&-1<E1.indexOf(t)){for(;s!==null;){var o=Ti(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var f=kn(o.pendingLanes);if(f!==0){var p=o;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var T=1<<31-ge(f);p.entanglements[1]|=T,f&=~T}Je(o),(vt&6)===0&&(ys=pe()+500,Fa(0))}}break;case 31:case 13:p=ti(o,2),p!==null&&me(p,o,2),vs(),vr(o,2)}if(o=Tr(i),o===null&&lr(t,e,i,Bs,n),o===s)break;s=o}s!==null&&i.stopPropagation()}else lr(t,e,i,null,n)}}function Tr(t){return t=bu(t),br(t)}var Bs=null;function br(t){if(Bs=null,t=Si(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=g(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 Qm(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(o0()){case Pc:return 2;case $c:return 8;case El:case r0:return 32;case Ic:return 268435456;default:return 32}default:return 32}}var Ar=!1,Hn=null,wn=null,Yn=null,el=new Map,nl=new Map,qn=[],E1="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 Zm(t,e){switch(t){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":wn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":el.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":nl.delete(e.pointerId)}}function il(t,e,n,i,s,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[s]},e!==null&&(e=Ti(e),e!==null&&Gm(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function x1(t,e,n,i,s){switch(e){case"focusin":return Hn=il(Hn,t,e,n,i,s),!0;case"dragenter":return wn=il(wn,t,e,n,i,s),!0;case"mouseover":return Yn=il(Yn,t,e,n,i,s),!0;case"pointerover":var o=s.pointerId;return el.set(o,il(el.get(o)||null,t,e,n,i,s)),!0;case"gotpointercapture":return o=s.pointerId,nl.set(o,il(nl.get(o)||null,t,e,n,i,s)),!0}return!1}function Km(t){var e=Si(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,sf(t.priority,function(){Xm(n)});return}}else if(e===31){if(e=g(n),e!==null){t.blockedOn=e,sf(t.priority,function(){Xm(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 Ns(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Tr(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Tu=i,n.target.dispatchEvent(i),Tu=null}else return e=Ti(n),e!==null&&Gm(e),t.blockedOn=n,!1;e.shift()}return!0}function Jm(t,e,n){Ns(t)&&n.delete(e)}function D1(){Ar=!1,Hn!==null&&Ns(Hn)&&(Hn=null),wn!==null&&Ns(wn)&&(wn=null),Yn!==null&&Ns(Yn)&&(Yn=null),el.forEach(Jm),nl.forEach(Jm)}function js(t,e){t.blockedOn===e&&(t.blockedOn=null,Ar||(Ar=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,D1)))}var Ls=null;function Fm(t){Ls!==t&&(Ls=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Ls===t&&(Ls=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],s=t[e+2];if(typeof i!="function"){if(br(i||n)===null)continue;break}var o=Ti(n);o!==null&&(t.splice(e,3),e-=3,To(o,{pending:!0,data:s,method:n.method,action:i},i,s))}}))}function ea(t){function e(T){return js(T,t)}Hn!==null&&js(Hn,t),wn!==null&&js(wn,t),Yn!==null&&js(Yn,t),el.forEach(e),nl.forEach(e);for(var n=0;n<qn.length;n++){var i=qn[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)Km(n),n.blockedOn===null&&qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var s=n[i],o=n[i+1],f=s[oe]||null;if(typeof o=="function")f||Fm(n);else if(f){var p=null;if(o&&o.hasAttribute("formAction")){if(s=o,f=o[oe]||null)p=f.formAction;else if(br(s)!==null)continue}else p=f.action;typeof p=="function"?n[i+1]=p:(n.splice(i,3),i-=3),Fm(n)}}}function km(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function Er(t){this._internalRoot=t}Hs.prototype.render=Er.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,i=xe();Ym(n,i,t,e,null,null)},Hs.prototype.unmount=Er.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ym(t.current,2,null,t,null,null),vs(),e[vi]=null}};function Hs(t){this._internalRoot=t}Hs.prototype.unstable_scheduleHydration=function(t){if(t){var e=lf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<qn.length&&e!==0&&e<qn[n].priority;n++);qn.splice(n,0,t),n===0&&Km(t)}};var Wm=l.version;if(Wm!=="19.2.3")throw Error(r(527,Wm,"19.2.3"));w.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=m(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var M1={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ws=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ws.isDisabled&&ws.supportsFiber)try{ha=ws.inject(M1),ye=ws}catch{}}return ll.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,i="",s=id,o=ad,f=ld;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Hm(t,1,!1,null,null,n,i,null,s,o,f,km),t[vi]=e.current,ar(t),new Er(e)},ll.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var i=!1,s="",o=id,f=ad,p=ld,T=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=Hm(t,1,!0,e,n??null,i,s,T,o,f,p,km),e.context=wm(null),n=e.current,i=xe(),i=hu(i),s=Mn(i),s.callback=null,Cn(n,s,i),n=i,e.current.lanes=n,ma(e,n),Je(e),t[vi]=e.current,ar(t),new Hs(e)},ll.version="19.2.3",ll}var sp;function j1(){if(sp)return Mr.exports;sp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Mr.exports=N1(),Mr.exports}var L1=j1();const pc=G.createContext({});function yc(a){const l=G.useRef(null);return l.current===null&&(l.current=a()),l.current}const Ay=typeof window<"u",Ey=Ay?G.useLayoutEffect:G.useEffect,eu=G.createContext(null);function gc(a,l){a.indexOf(l)===-1&&a.push(l)}function vc(a,l){const u=a.indexOf(l);u>-1&&a.splice(u,1)}const ke=(a,l,u)=>u>l?l:u<a?a:u;let Sc=()=>{};const gn={},xy=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Dy(a){return typeof a=="object"&&a!==null}const My=a=>/^0[^.\s]+$/u.test(a);function Tc(a){let l;return()=>(l===void 0&&(l=a()),l)}const He=a=>a,H1=(a,l)=>u=>l(a(u)),vl=(...a)=>a.reduce(H1),dl=(a,l,u)=>{const r=l-a;return r===0?1:(u-a)/r};class bc{constructor(){this.subscriptions=[]}add(l){return gc(this.subscriptions,l),()=>vc(this.subscriptions,l)}notify(l,u,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,u,r);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,u,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const yn=a=>a*1e3,Le=a=>a/1e3;function Cy(a,l){return l?a*(1e3/l):0}const zy=(a,l,u)=>(((1-3*u+3*l)*a+(3*u-6*l))*a+3*l)*a,w1=1e-7,Y1=12;function q1(a,l,u,r,c){let d,h,g=0;do h=l+(u-l)/2,d=zy(h,r,c)-a,d>0?u=h:l=h;while(Math.abs(d)>w1&&++g<Y1);return h}function Sl(a,l,u,r){if(a===l&&u===r)return He;const c=d=>q1(d,0,1,a,u);return d=>d===0||d===1?d:zy(c(d),l,r)}const Oy=a=>l=>l<=.5?a(2*l)/2:(2-a(2*(1-l)))/2,Ry=a=>l=>1-a(1-l),Vy=Sl(.33,1.53,.69,.99),Ac=Ry(Vy),_y=Oy(Ac),Uy=a=>(a*=2)<1?.5*Ac(a):.5*(2-Math.pow(2,-10*(a-1))),Ec=a=>1-Math.sin(Math.acos(a)),By=Ry(Ec),Ny=Oy(Ec),G1=Sl(.42,0,1,1),X1=Sl(0,0,.58,1),jy=Sl(.42,0,.58,1),Q1=a=>Array.isArray(a)&&typeof a[0]!="number",Ly=a=>Array.isArray(a)&&typeof a[0]=="number",Z1={linear:He,easeIn:G1,easeInOut:jy,easeOut:X1,circIn:Ec,circInOut:Ny,circOut:By,backIn:Ac,backInOut:_y,backOut:Vy,anticipate:Uy},K1=a=>typeof a=="string",up=a=>{if(Ly(a)){Sc(a.length===4);const[l,u,r,c]=a;return Sl(l,u,r,c)}else if(K1(a))return Z1[a];return a},Ys=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function J1(a,l){let u=new Set,r=new Set,c=!1,d=!1;const h=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function y(S){h.has(S)&&(m.schedule(S),a()),S(g)}const m={schedule:(S,v=!1,b=!1)=>{const j=b&&c?u:r;return v&&h.add(S),j.has(S)||j.add(S),S},cancel:S=>{r.delete(S),h.delete(S)},process:S=>{if(g=S,c){d=!0;return}c=!0,[u,r]=[r,u],u.forEach(y),u.clear(),c=!1,d&&(d=!1,m.process(S))}};return m}const F1=40;function Hy(a,l){let u=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,h=Ys.reduce((H,I)=>(H[I]=J1(d),H),{}),{setup:g,read:y,resolveKeyframes:m,preUpdate:S,update:v,preRender:b,render:O,postRender:j}=h,Y=()=>{const H=gn.useManualTiming?c.timestamp:performance.now();u=!1,gn.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(H-c.timestamp,F1),1)),c.timestamp=H,c.isProcessing=!0,g.process(c),y.process(c),m.process(c),S.process(c),v.process(c),b.process(c),O.process(c),j.process(c),c.isProcessing=!1,u&&l&&(r=!1,a(Y))},U=()=>{u=!0,r=!0,c.isProcessing||a(Y)};return{schedule:Ys.reduce((H,I)=>{const X=h[I];return H[I]=($,K=!1,Z=!1)=>(u||U(),X.schedule($,K,Z)),H},{}),cancel:H=>{for(let I=0;I<Ys.length;I++)h[Ys[I]].cancel(H)},state:c,steps:h}}const{schedule:zt,cancel:Zn,state:te,steps:Rr}=Hy(typeof requestAnimationFrame<"u"?requestAnimationFrame:He,!0);let Qs;function k1(){Qs=void 0}const le={now:()=>(Qs===void 0&&le.set(te.isProcessing||gn.useManualTiming?te.timestamp:performance.now()),Qs),set:a=>{Qs=a,queueMicrotask(k1)}},wy=a=>l=>typeof l=="string"&&l.startsWith(a),Yy=wy("--"),W1=wy("var(--"),xc=a=>W1(a)?P1.test(a.split("/*")[0].trim()):!1,P1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function op(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const oa={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},ml={...oa,transform:a=>ke(0,1,a)},qs={...oa,default:1},rl=a=>Math.round(a*1e5)/1e5,Dc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $1(a){return a==null}const I1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mc=(a,l)=>u=>!!(typeof u=="string"&&I1.test(u)&&u.startsWith(a)||l&&!$1(u)&&Object.prototype.hasOwnProperty.call(u,l)),qy=(a,l,u)=>r=>{if(typeof r!="string")return r;const[c,d,h,g]=r.match(Dc);return{[a]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(h),alpha:g!==void 0?parseFloat(g):1}},tS=a=>ke(0,255,a),Vr={...oa,transform:a=>Math.round(tS(a))},pi={test:Mc("rgb","red"),parse:qy("red","green","blue"),transform:({red:a,green:l,blue:u,alpha:r=1})=>"rgba("+Vr.transform(a)+", "+Vr.transform(l)+", "+Vr.transform(u)+", "+rl(ml.transform(r))+")"};function eS(a){let l="",u="",r="",c="";return a.length>5?(l=a.substring(1,3),u=a.substring(3,5),r=a.substring(5,7),c=a.substring(7,9)):(l=a.substring(1,2),u=a.substring(2,3),r=a.substring(3,4),c=a.substring(4,5),l+=l,u+=u,r+=r,c+=c),{red:parseInt(l,16),green:parseInt(u,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const Kr={test:Mc("#"),parse:eS,transform:pi.transform},Tl=a=>({test:l=>typeof l=="string"&&l.endsWith(a)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${a}`}),Xn=Tl("deg"),Fe=Tl("%"),J=Tl("px"),nS=Tl("vh"),iS=Tl("vw"),rp={...Fe,parse:a=>Fe.parse(a)/100,transform:a=>Fe.transform(a*100)},na={test:Mc("hsl","hue"),parse:qy("hue","saturation","lightness"),transform:({hue:a,saturation:l,lightness:u,alpha:r=1})=>"hsla("+Math.round(a)+", "+Fe.transform(rl(l))+", "+Fe.transform(rl(u))+", "+rl(ml.transform(r))+")"},Xt={test:a=>pi.test(a)||Kr.test(a)||na.test(a),parse:a=>pi.test(a)?pi.parse(a):na.test(a)?na.parse(a):Kr.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?pi.transform(a):na.transform(a),getAnimatableNone:a=>{const l=Xt.parse(a);return l.alpha=0,Xt.transform(l)}},aS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lS(a){return isNaN(a)&&typeof a=="string"&&(a.match(Dc)?.length||0)+(a.match(aS)?.length||0)>0}const Gy="number",Xy="color",sS="var",uS="var(",cp="${}",oS=/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 pl(a){const l=a.toString(),u=[],r={color:[],number:[],var:[]},c=[];let d=0;const g=l.replace(oS,y=>(Xt.test(y)?(r.color.push(d),c.push(Xy),u.push(Xt.parse(y))):y.startsWith(uS)?(r.var.push(d),c.push(sS),u.push(y)):(r.number.push(d),c.push(Gy),u.push(parseFloat(y))),++d,cp)).split(cp);return{values:u,split:g,indexes:r,types:c}}function Qy(a){return pl(a).values}function Zy(a){const{split:l,types:u}=pl(a),r=l.length;return c=>{let d="";for(let h=0;h<r;h++)if(d+=l[h],c[h]!==void 0){const g=u[h];g===Gy?d+=rl(c[h]):g===Xy?d+=Xt.transform(c[h]):d+=c[h]}return d}}const rS=a=>typeof a=="number"?0:Xt.test(a)?Xt.getAnimatableNone(a):a;function cS(a){const l=Qy(a);return Zy(a)(l.map(rS))}const Kn={test:lS,parse:Qy,createTransformer:Zy,getAnimatableNone:cS};function _r(a,l,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?a+(l-a)*6*u:u<1/2?l:u<2/3?a+(l-a)*(2/3-u)*6:a}function fS({hue:a,saturation:l,lightness:u,alpha:r}){a/=360,l/=100,u/=100;let c=0,d=0,h=0;if(!l)c=d=h=u;else{const g=u<.5?u*(1+l):u+l-u*l,y=2*u-g;c=_r(y,g,a+1/3),d=_r(y,g,a),h=_r(y,g,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:r}}function Fs(a,l){return u=>u>0?l:a}const Vt=(a,l,u)=>a+(l-a)*u,Ur=(a,l,u)=>{const r=a*a,c=u*(l*l-r)+r;return c<0?0:Math.sqrt(c)},hS=[Kr,pi,na],dS=a=>hS.find(l=>l.test(a));function fp(a){const l=dS(a);if(!l)return!1;let u=l.parse(a);return l===na&&(u=fS(u)),u}const hp=(a,l)=>{const u=fp(a),r=fp(l);if(!u||!r)return Fs(a,l);const c={...u};return d=>(c.red=Ur(u.red,r.red,d),c.green=Ur(u.green,r.green,d),c.blue=Ur(u.blue,r.blue,d),c.alpha=Vt(u.alpha,r.alpha,d),pi.transform(c))},Jr=new Set(["none","hidden"]);function mS(a,l){return Jr.has(a)?u=>u<=0?a:l:u=>u>=1?l:a}function pS(a,l){return u=>Vt(a,l,u)}function Cc(a){return typeof a=="number"?pS:typeof a=="string"?xc(a)?Fs:Xt.test(a)?hp:vS:Array.isArray(a)?Ky:typeof a=="object"?Xt.test(a)?hp:yS:Fs}function Ky(a,l){const u=[...a],r=u.length,c=a.map((d,h)=>Cc(d)(d,l[h]));return d=>{for(let h=0;h<r;h++)u[h]=c[h](d);return u}}function yS(a,l){const u={...a,...l},r={};for(const c in u)a[c]!==void 0&&l[c]!==void 0&&(r[c]=Cc(a[c])(a[c],l[c]));return c=>{for(const d in r)u[d]=r[d](c);return u}}function gS(a,l){const u=[],r={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=a.indexes[d][r[d]],g=a.values[h]??0;u[c]=g,r[d]++}return u}const vS=(a,l)=>{const u=Kn.createTransformer(l),r=pl(a),c=pl(l);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?Jr.has(a)&&!c.values.length||Jr.has(l)&&!r.values.length?mS(a,l):vl(Ky(gS(r,c),c.values),u):Fs(a,l)};function Jy(a,l,u){return typeof a=="number"&&typeof l=="number"&&typeof u=="number"?Vt(a,l,u):Cc(a)(a,l)}const SS=a=>{const l=({timestamp:u})=>a(u);return{start:(u=!0)=>zt.update(l,u),stop:()=>Zn(l),now:()=>te.isProcessing?te.timestamp:le.now()}},Fy=(a,l,u=10)=>{let r="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)r+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ks=2e4;function zc(a){let l=0;const u=50;let r=a.next(l);for(;!r.done&&l<ks;)l+=u,r=a.next(l);return l>=ks?1/0:l}function TS(a,l=100,u){const r=u({...a,keyframes:[0,l]}),c=Math.min(zc(r),ks);return{type:"keyframes",ease:d=>r.next(c*d).value/l,duration:Le(c)}}const bS=5;function ky(a,l,u){const r=Math.max(l-bS,0);return Cy(u-a(r),l-r)}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},Br=.001;function AS({duration:a=Bt.duration,bounce:l=Bt.bounce,velocity:u=Bt.velocity,mass:r=Bt.mass}){let c,d,h=1-l;h=ke(Bt.minDamping,Bt.maxDamping,h),a=ke(Bt.minDuration,Bt.maxDuration,Le(a)),h<1?(c=m=>{const S=m*h,v=S*a,b=S-u,O=Fr(m,h),j=Math.exp(-v);return Br-b/O*j},d=m=>{const v=m*h*a,b=v*u+u,O=Math.pow(h,2)*Math.pow(m,2)*a,j=Math.exp(-v),Y=Fr(Math.pow(m,2),h);return(-c(m)+Br>0?-1:1)*((b-O)*j)/Y}):(c=m=>{const S=Math.exp(-m*a),v=(m-u)*a+1;return-Br+S*v},d=m=>{const S=Math.exp(-m*a),v=(u-m)*(a*a);return S*v});const g=5/a,y=xS(c,d,g);if(a=yn(a),isNaN(y))return{stiffness:Bt.stiffness,damping:Bt.damping,duration:a};{const m=Math.pow(y,2)*r;return{stiffness:m,damping:h*2*Math.sqrt(r*m),duration:a}}}const ES=12;function xS(a,l,u){let r=u;for(let c=1;c<ES;c++)r=r-a(r)/l(r);return r}function Fr(a,l){return a*Math.sqrt(1-l*l)}const DS=["duration","bounce"],MS=["stiffness","damping","mass"];function dp(a,l){return l.some(u=>a[u]!==void 0)}function CS(a){let l={velocity:Bt.velocity,stiffness:Bt.stiffness,damping:Bt.damping,mass:Bt.mass,isResolvedFromDuration:!1,...a};if(!dp(a,MS)&&dp(a,DS))if(a.visualDuration){const u=a.visualDuration,r=2*Math.PI/(u*1.2),c=r*r,d=2*ke(.05,1,1-(a.bounce||0))*Math.sqrt(c);l={...l,mass:Bt.mass,stiffness:c,damping:d}}else{const u=AS(a);l={...l,...u,mass:Bt.mass},l.isResolvedFromDuration=!0}return l}function Ws(a=Bt.visualDuration,l=Bt.bounce){const u=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:l}:a;let{restSpeed:r,restDelta:c}=u;const d=u.keyframes[0],h=u.keyframes[u.keyframes.length-1],g={done:!1,value:d},{stiffness:y,damping:m,mass:S,duration:v,velocity:b,isResolvedFromDuration:O}=CS({...u,velocity:-Le(u.velocity||0)}),j=b||0,Y=m/(2*Math.sqrt(y*S)),U=h-d,L=Le(Math.sqrt(y/S)),q=Math.abs(U)<5;r||(r=q?Bt.restSpeed.granular:Bt.restSpeed.default),c||(c=q?Bt.restDelta.granular:Bt.restDelta.default);let H;if(Y<1){const X=Fr(L,Y);H=$=>{const K=Math.exp(-Y*L*$);return h-K*((j+Y*L*U)/X*Math.sin(X*$)+U*Math.cos(X*$))}}else if(Y===1)H=X=>h-Math.exp(-L*X)*(U+(j+L*U)*X);else{const X=L*Math.sqrt(Y*Y-1);H=$=>{const K=Math.exp(-Y*L*$),Z=Math.min(X*$,300);return h-K*((j+Y*L*U)*Math.sinh(Z)+X*U*Math.cosh(Z))/X}}const I={calculatedDuration:O&&v||null,next:X=>{const $=H(X);if(O)g.done=X>=v;else{let K=X===0?j:0;Y<1&&(K=X===0?yn(j):ky(H,X,$));const Z=Math.abs(K)<=r,pt=Math.abs(h-$)<=c;g.done=Z&&pt}return g.value=g.done?h:$,g},toString:()=>{const X=Math.min(zc(I),ks),$=Fy(K=>I.next(X*K).value,X,30);return X+"ms "+$},toTransition:()=>{}};return I}Ws.applyToOptions=a=>{const l=TS(a,100,Ws);return a.ease=l.ease,a.duration=yn(l.duration),a.type="keyframes",a};function kr({keyframes:a,velocity:l=0,power:u=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:g,max:y,restDelta:m=.5,restSpeed:S}){const v=a[0],b={done:!1,value:v},O=Z=>g!==void 0&&Z<g||y!==void 0&&Z>y,j=Z=>g===void 0?y:y===void 0||Math.abs(g-Z)<Math.abs(y-Z)?g:y;let Y=u*l;const U=v+Y,L=h===void 0?U:h(U);L!==U&&(Y=L-v);const q=Z=>-Y*Math.exp(-Z/r),H=Z=>L+q(Z),I=Z=>{const pt=q(Z),Rt=H(Z);b.done=Math.abs(pt)<=m,b.value=b.done?L:Rt};let X,$;const K=Z=>{O(b.value)&&(X=Z,$=Ws({keyframes:[b.value,j(b.value)],velocity:ky(H,Z,b.value),damping:c,stiffness:d,restDelta:m,restSpeed:S}))};return K(0),{calculatedDuration:null,next:Z=>{let pt=!1;return!$&&X===void 0&&(pt=!0,I(Z),K(Z)),X!==void 0&&Z>=X?$.next(Z-X):(!pt&&I(Z),b)}}}function zS(a,l,u){const r=[],c=u||gn.mix||Jy,d=a.length-1;for(let h=0;h<d;h++){let g=c(a[h],a[h+1]);if(l){const y=Array.isArray(l)?l[h]||He:l;g=vl(y,g)}r.push(g)}return r}function OS(a,l,{clamp:u=!0,ease:r,mixer:c}={}){const d=a.length;if(Sc(d===l.length),d===1)return()=>l[0];if(d===2&&l[0]===l[1])return()=>l[1];const h=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),l=[...l].reverse());const g=zS(l,r,c),y=g.length,m=S=>{if(h&&S<a[0])return l[0];let v=0;if(y>1)for(;v<a.length-2&&!(S<a[v+1]);v++);const b=dl(a[v],a[v+1],S);return g[v](b)};return u?S=>m(ke(a[0],a[d-1],S)):m}function RS(a,l){const u=a[a.length-1];for(let r=1;r<=l;r++){const c=dl(0,l,r);a.push(Vt(u,1,c))}}function VS(a){const l=[0];return RS(l,a.length-1),l}function _S(a,l){return a.map(u=>u*l)}function US(a,l){return a.map(()=>l||jy).splice(0,a.length-1)}function cl({duration:a=300,keyframes:l,times:u,ease:r="easeInOut"}){const c=Q1(r)?r.map(up):up(r),d={done:!1,value:l[0]},h=_S(u&&u.length===l.length?u:VS(l),a),g=OS(h,l,{ease:Array.isArray(c)?c:US(l,c)});return{calculatedDuration:a,next:y=>(d.value=g(y),d.done=y>=a,d)}}const BS=a=>a!==null;function Oc(a,{repeat:l,repeatType:u="loop"},r,c=1){const d=a.filter(BS),g=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!g||r===void 0?d[g]:r}const NS={decay:kr,inertia:kr,tween:cl,keyframes:cl,spring:Ws};function Wy(a){typeof a.type=="string"&&(a.type=NS[a.type])}class Rc{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 jS=a=>a/100;class Vc extends Rc{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:u}=this.options;u&&u.updatedAt!==le.now()&&this.tick(le.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;Wy(l);const{type:u=cl,repeat:r=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:g}=l;const y=u||cl;y!==cl&&typeof g[0]!="number"&&(this.mixKeyframes=vl(jS,Jy(g[0],g[1])),g=[0,100]);const m=y({...l,keyframes:g});d==="mirror"&&(this.mirroredGenerator=y({...l,keyframes:[...g].reverse(),velocity:-h})),m.calculatedDuration===null&&(m.calculatedDuration=zc(m));const{calculatedDuration:S}=m;this.calculatedDuration=S,this.resolvedDuration=S+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=m}updateTime(l){const u=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(l,u=!1){const{generator:r,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:g,calculatedDuration:y}=this;if(this.startTime===null)return r.next(0);const{delay:m=0,keyframes:S,repeat:v,repeatType:b,repeatDelay:O,type:j,onUpdate:Y,finalKeyframe:U}=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-m*(this.playbackSpeed>=0?1:-1),q=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,I=r;if(v){const Z=Math.min(this.currentTime,c)/g;let pt=Math.floor(Z),Rt=Z%1;!Rt&&Z>=1&&(Rt=1),Rt===1&&pt--,pt=Math.min(pt,v+1),pt%2&&(b==="reverse"?(Rt=1-Rt,O&&(Rt-=O/g)):b==="mirror"&&(I=h)),H=ke(0,1,Rt)*g}const X=q?{done:!1,value:S[0]}:I.next(H);d&&(X.value=d(X.value));let{done:$}=X;!q&&y!==null&&($=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return K&&j!==kr&&(X.value=Oc(S,this.options,U,this.speed)),Y&&Y(X.value),K&&this.finish(),X}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=yn(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(le.now());const u=this.playbackSpeed!==l;this.playbackSpeed=l,u&&(this.time=Le(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=SS,startTime:u}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=u??r),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(le.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function LS(a){for(let l=1;l<a.length;l++)a[l]??(a[l]=a[l-1])}const yi=a=>a*180/Math.PI,Wr=a=>{const l=yi(Math.atan2(a[1],a[0]));return Pr(l)},HS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Wr,rotateZ:Wr,skewX:a=>yi(Math.atan(a[1])),skewY:a=>yi(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Pr=a=>(a=a%360,a<0&&(a+=360),a),mp=Wr,pp=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),yp=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),wS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pp,scaleY:yp,scale:a=>(pp(a)+yp(a))/2,rotateX:a=>Pr(yi(Math.atan2(a[6],a[5]))),rotateY:a=>Pr(yi(Math.atan2(-a[2],a[0]))),rotateZ:mp,rotate:mp,skewX:a=>yi(Math.atan(a[4])),skewY:a=>yi(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function $r(a){return a.includes("scale")?1:0}function Ir(a,l){if(!a||a==="none")return $r(l);const u=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(u)r=wS,c=u;else{const g=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=HS,c=g}if(!c)return $r(l);const d=r[l],h=c[1].split(",").map(qS);return typeof d=="function"?d(h):h[d]}const YS=(a,l)=>{const{transform:u="none"}=getComputedStyle(a);return Ir(u,l)};function qS(a){return parseFloat(a.trim())}const ra=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ca=new Set(ra),gp=a=>a===oa||a===J,GS=new Set(["x","y","z"]),XS=ra.filter(a=>!GS.has(a));function QS(a){const l=[];return XS.forEach(u=>{const r=a.getValue(u);r!==void 0&&(l.push([u,r.get()]),r.set(u.startsWith("scale")?1:0))}),l}const Qn={width:({x:a},{paddingLeft:l="0",paddingRight:u="0"})=>a.max-a.min-parseFloat(l)-parseFloat(u),height:({y:a},{paddingTop:l="0",paddingBottom:u="0"})=>a.max-a.min-parseFloat(l)-parseFloat(u),top:(a,{top:l})=>parseFloat(l),left:(a,{left:l})=>parseFloat(l),bottom:({y:a},{top:l})=>parseFloat(l)+(a.max-a.min),right:({x:a},{left:l})=>parseFloat(l)+(a.max-a.min),x:(a,{transform:l})=>Ir(l,"x"),y:(a,{transform:l})=>Ir(l,"y")};Qn.translateX=Qn.x;Qn.translateY=Qn.y;const gi=new Set;let tc=!1,ec=!1,nc=!1;function Py(){if(ec){const a=Array.from(gi).filter(r=>r.needsMeasurement),l=new Set(a.map(r=>r.element)),u=new Map;l.forEach(r=>{const c=QS(r);c.length&&(u.set(r,c),r.render())}),a.forEach(r=>r.measureInitialState()),l.forEach(r=>{r.render();const c=u.get(r);c&&c.forEach(([d,h])=>{r.getValue(d)?.set(h)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ec=!1,tc=!1,gi.forEach(a=>a.complete(nc)),gi.clear()}function $y(){gi.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(ec=!0)})}function ZS(){nc=!0,$y(),Py(),nc=!1}class _c{constructor(l,u,r,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=u,this.name=r,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(gi.add(this),tc||(tc=!0,zt.read($y),zt.resolveKeyframes(Py))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:u,element:r,motionValue:c}=this;if(l[0]===null){const d=c?.get(),h=l[l.length-1];if(d!==void 0)l[0]=d;else if(r&&u){const g=r.readValue(u,h);g!=null&&(l[0]=g)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}LS(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),gi.delete(this)}cancel(){this.state==="scheduled"&&(gi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const KS=a=>a.startsWith("--");function JS(a,l,u){KS(l)?a.style.setProperty(l,u):a.style[l]=u}const FS=Tc(()=>window.ScrollTimeline!==void 0),kS={};function WS(a,l){const u=Tc(a);return()=>kS[l]??u()}const Iy=WS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ul=([a,l,u,r])=>`cubic-bezier(${a}, ${l}, ${u}, ${r})`,vp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ul([0,.65,.55,1]),circOut:ul([.55,0,1,.45]),backIn:ul([.31,.01,.66,-.59]),backOut:ul([.33,1.53,.69,.99])};function tg(a,l){if(a)return typeof a=="function"?Iy()?Fy(a,l):"ease-out":Ly(a)?ul(a):Array.isArray(a)?a.map(u=>tg(u,l)||vp.easeOut):vp[a]}function PS(a,l,u,{delay:r=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:g="easeOut",times:y}={},m=void 0){const S={[l]:u};y&&(S.offset=y);const v=tg(g,c);Array.isArray(v)&&(S.easing=v);const b={delay:r,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),a.animate(S,b)}function eg(a){return typeof a=="function"&&"applyToOptions"in a}function $S({type:a,...l}){return eg(a)&&Iy()?a.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class IS extends Rc{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:u,name:r,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:g,onComplete:y}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,Sc(typeof l.type!="string");const m=$S(l);this.animation=PS(u,r,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const S=Oc(c,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(S):JS(u,r,S),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().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){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=yn(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,observe:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&FS()?(this.animation.timeline=l,He):u(this)}}const ng={anticipate:Uy,backInOut:_y,circInOut:Ny};function tT(a){return a in ng}function eT(a){typeof a.ease=="string"&&tT(a.ease)&&(a.ease=ng[a.ease])}const Nr=10;class nT extends IS{constructor(l){eT(l),Wy(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:u,onUpdate:r,onComplete:c,element:d,...h}=this.options;if(!u)return;if(l!==void 0){u.set(l);return}const g=new Vc({...h,autoplay:!1}),y=Math.max(Nr,le.now()-this.startTime),m=ke(0,Nr,y-Nr);u.setWithVelocity(g.sample(Math.max(0,y-m)).value,g.sample(y).value,m),g.stop()}}const Sp=(a,l)=>l==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Kn.test(a)||a==="0")&&!a.startsWith("url("));function iT(a){const l=a[0];if(a.length===1)return!0;for(let u=0;u<a.length;u++)if(a[u]!==l)return!0}function aT(a,l,u,r){const c=a[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=a[a.length-1],h=Sp(c,l),g=Sp(d,l);return!h||!g?!1:iT(a)||(u==="spring"||eg(u))&&r}function ic(a){a.duration=0,a.type="keyframes"}const lT=new Set(["opacity","clipPath","filter","transform"]),sT=Tc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function uT(a){const{motionValue:l,name:u,repeatDelay:r,repeatType:c,damping:d,type:h}=a;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:m}=l.owner.getProps();return sT()&&u&&lT.has(u)&&(u!=="transform"||!m)&&!y&&!r&&c!=="mirror"&&d!==0&&h!=="inertia"}const oT=40;class rT extends Rc{constructor({autoplay:l=!0,delay:u=0,type:r="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:g,name:y,motionValue:m,element:S,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=le.now();const b={autoplay:l,delay:u,type:r,repeat:c,repeatDelay:d,repeatType:h,name:y,motionValue:m,element:S,...v},O=S?.KeyframeResolver||_c;this.keyframeResolver=new O(g,(j,Y,U)=>this.onKeyframesResolved(j,Y,b,!U),y,m,S),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,u,r,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:g,delay:y,isHandoff:m,onUpdate:S}=r;this.resolvedAt=le.now(),aT(l,d,h,g)||((gn.instantAnimations||!y)&&S?.(Oc(l,r,u)),l[0]=l[l.length-1],ic(r),r.repeat=0);const b={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>oT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...r,keyframes:l},O=!m&&uT(b)?new nT({...b,element:b.motionValue.owner.current}):new Vc(b);O.finished.then(()=>this.notifyFinished()).catch(He),this.pendingTimeline&&(this.stopTimeline=O.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=O}get finished(){return this._animation?this.animation.finished:this._finished}then(l,u){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ZS()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const cT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fT(a){const l=cT.exec(a);if(!l)return[,];const[,u,r,c]=l;return[`--${u??r}`,c]}function ig(a,l,u=1){const[r,c]=fT(a);if(!r)return;const d=window.getComputedStyle(l).getPropertyValue(r);if(d){const h=d.trim();return xy(h)?parseFloat(h):h}return xc(c)?ig(c,l,u+1):c}function Uc(a,l){return a?.[l]??a?.default??a}const hT={type:"spring",stiffness:500,damping:25,restSpeed:10},dT=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),mT={type:"keyframes",duration:.8},pT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yT=(a,{keyframes:l})=>l.length>2?mT:ca.has(a)?a.startsWith("scale")?dT(l[1]):hT:pT;function gT({when:a,delay:l,delayChildren:u,staggerChildren:r,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:g,from:y,elapsed:m,...S}){return!!Object.keys(S).length}const vT=a=>a!==null;function ST(a,{repeat:l,repeatType:u="loop"},r){const c=a.filter(vT),d=l&&u!=="loop"&&l%2===1?0:c.length-1;return c[d]}function ag(a,l,u,r=0,c=1){const d=Array.from(a).sort((m,S)=>m.sortNodePosition(S)).indexOf(l),h=a.size,g=(h-1)*r;return typeof u=="function"?u(d,h):c===1?d*r:g-d*r}const Bc=(a,l,u,r={},c,d)=>h=>{const g=Uc(r,a)||{},y=g.delay||r.delay||0;let{elapsed:m=0}=r;m=m-yn(y);const S={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:l.getVelocity(),...g,delay:-m,onUpdate:b=>{l.set(b),g.onUpdate&&g.onUpdate(b)},onComplete:()=>{h(),g.onComplete&&g.onComplete()},name:a,motionValue:l,element:d?void 0:c};gT(g)||Object.assign(S,yT(a,S)),S.duration&&(S.duration=yn(S.duration)),S.repeatDelay&&(S.repeatDelay=yn(S.repeatDelay)),S.from!==void 0&&(S.keyframes[0]=S.from);let v=!1;if((S.type===!1||S.duration===0&&!S.repeatDelay)&&(ic(S),S.delay===0&&(v=!0)),(gn.instantAnimations||gn.skipAnimations)&&(v=!0,ic(S),S.delay=0),S.allowFlatten=!g.type&&!g.ease,v&&!d&&l.get()!==void 0){const b=ST(S.keyframes,g);if(b!==void 0){zt.update(()=>{S.onUpdate(b),S.onComplete()});return}}return g.isSync?new Vc(S):new rT(S)},lg=new Set(["width","height","top","left","right","bottom",...ra]),Tp=30,TT=a=>!isNaN(parseFloat(a));class bT{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=le.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=u.owner}setCurrent(l){this.current=l,this.updatedAt=le.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 bc);const r=this.events[l].add(u);return l==="change"?()=>{r(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(u),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-r}jump(l,u=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=le.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Tp)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,Tp);return Cy(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(l){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=l(u),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ua(a,l){return new bT(a,l)}function bp(a){const l=[{},{}];return a?.values.forEach((u,r)=>{l[0][r]=u.get(),l[1][r]=u.getVelocity()}),l}function Nc(a,l,u,r){if(typeof l=="function"){const[c,d]=bp(r);l=l(u!==void 0?u:a.custom,c,d)}if(typeof l=="string"&&(l=a.variants&&a.variants[l]),typeof l=="function"){const[c,d]=bp(r);l=l(u!==void 0?u:a.custom,c,d)}return l}function sa(a,l,u){const r=a.getProps();return Nc(r,l,u!==void 0?u:r.custom,a)}const ac=a=>Array.isArray(a);function AT(a,l,u){a.hasValue(l)?a.getValue(l).set(u):a.addValue(l,ua(u))}function ET(a){return ac(a)?a[a.length-1]||0:a}function xT(a,l){const u=sa(a,l);let{transitionEnd:r={},transition:c={},...d}=u||{};d={...d,...r};for(const h in d){const g=ET(d[h]);AT(a,h,g)}}const ne=a=>!!(a&&a.getVelocity);function DT(a){return!!(ne(a)&&a.add)}function lc(a,l){const u=a.getValue("willChange");if(DT(u))return u.add(l);if(!u&&gn.WillChange){const r=new gn.WillChange("auto");a.addValue("willChange",r),r.add(l)}}function jc(a){return a.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const MT="framerAppearId",sg="data-"+jc(MT);function ug(a){return a.props[sg]}function CT({protectedKeys:a,needsAnimating:l},u){const r=a.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,r}function og(a,l,{delay:u=0,transitionOverride:r,type:c}={}){let{transition:d=a.getDefaultTransition(),transitionEnd:h,...g}=l;r&&(d=r);const y=[],m=c&&a.animationState&&a.animationState.getState()[c];for(const S in g){const v=a.getValue(S,a.latestValues[S]??null),b=g[S];if(b===void 0||m&&CT(m,S))continue;const O={delay:u,...Uc(d||{},S)},j=v.get();if(j!==void 0&&!v.isAnimating&&!Array.isArray(b)&&b===j&&!O.velocity)continue;let Y=!1;if(window.MotionHandoffAnimation){const L=ug(a);if(L){const q=window.MotionHandoffAnimation(L,S,zt);q!==null&&(O.startTime=q,Y=!0)}}lc(a,S),v.start(Bc(S,v,b,a.shouldReduceMotion&&lg.has(S)?{type:!1}:O,a,Y));const U=v.animation;U&&y.push(U)}return h&&Promise.all(y).then(()=>{zt.update(()=>{h&&xT(a,h)})}),y}function sc(a,l,u={}){const r=sa(a,l,u.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=r||{};u.transitionOverride&&(c=u.transitionOverride);const d=r?()=>Promise.all(og(a,r,u)):()=>Promise.resolve(),h=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:m=0,staggerChildren:S,staggerDirection:v}=c;return zT(a,l,y,m,S,v,u)}:()=>Promise.resolve(),{when:g}=c;if(g){const[y,m]=g==="beforeChildren"?[d,h]:[h,d];return y().then(()=>m())}else return Promise.all([d(),h(u.delay)])}function zT(a,l,u=0,r=0,c=0,d=1,h){const g=[];for(const y of a.variantChildren)y.notify("AnimationStart",l),g.push(sc(y,l,{...h,delay:u+(typeof r=="function"?0:r)+ag(a.variantChildren,y,r,c,d)}).then(()=>y.notify("AnimationComplete",l)));return Promise.all(g)}function OT(a,l,u={}){a.notify("AnimationStart",l);let r;if(Array.isArray(l)){const c=l.map(d=>sc(a,d,u));r=Promise.all(c)}else if(typeof l=="string")r=sc(a,l,u);else{const c=typeof l=="function"?sa(a,l,u.custom):l;r=Promise.all(og(a,c,u))}return r.then(()=>{a.notify("AnimationComplete",l)})}const RT={test:a=>a==="auto",parse:a=>a},rg=a=>l=>l.test(a),cg=[oa,J,Fe,Xn,iS,nS,RT],Ap=a=>cg.find(rg(a));function VT(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||My(a):!0}const _T=new Set(["brightness","contrast","saturate","opacity"]);function UT(a){const[l,u]=a.slice(0,-1).split("(");if(l==="drop-shadow")return a;const[r]=u.match(Dc)||[];if(!r)return a;const c=u.replace(r,"");let d=_T.has(l)?1:0;return r!==u&&(d*=100),l+"("+d+c+")"}const BT=/\b([a-z-]*)\(.*?\)/gu,uc={...Kn,getAnimatableNone:a=>{const l=a.match(BT);return l?l.map(UT).join(" "):a}},Ep={...oa,transform:Math.round},NT={rotate:Xn,rotateX:Xn,rotateY:Xn,rotateZ:Xn,scale:qs,scaleX:qs,scaleY:qs,scaleZ:qs,skew:Xn,skewX:Xn,skewY:Xn,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:ml,originX:rp,originY:rp,originZ:J},Lc={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,backgroundPositionX:J,backgroundPositionY:J,...NT,zIndex:Ep,fillOpacity:ml,strokeOpacity:ml,numOctaves:Ep},jT={...Lc,color:Xt,backgroundColor:Xt,outlineColor:Xt,fill:Xt,stroke:Xt,borderColor:Xt,borderTopColor:Xt,borderRightColor:Xt,borderBottomColor:Xt,borderLeftColor:Xt,filter:uc,WebkitFilter:uc},fg=a=>jT[a];function hg(a,l){let u=fg(a);return u!==uc&&(u=Kn),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const LT=new Set(["auto","none","0"]);function HT(a,l,u){let r=0,c;for(;r<a.length&&!c;){const d=a[r];typeof d=="string"&&!LT.has(d)&&pl(d).values.length&&(c=a[r]),r++}if(c&&u)for(const d of l)a[d]=hg(u,c)}class wT extends _c{constructor(l,u,r,c,d){super(l,u,r,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:u,name:r}=this;if(!u||!u.current)return;super.readKeyframes();for(let S=0;S<l.length;S++){let v=l[S];if(typeof v=="string"&&(v=v.trim(),xc(v))){const b=ig(v,u.current);b!==void 0&&(l[S]=b),S===l.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!lg.has(r)||l.length!==2)return;const[c,d]=l,h=Ap(c),g=Ap(d),y=op(c),m=op(d);if(y!==m&&Qn[r]){this.needsMeasurement=!0;return}if(h!==g)if(gp(h)&&gp(g))for(let S=0;S<l.length;S++){const v=l[S];typeof v=="string"&&(l[S]=parseFloat(v))}else Qn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,r=[];for(let c=0;c<l.length;c++)(l[c]===null||VT(l[c]))&&r.push(c);r.length&&HT(l,r,u)}measureInitialState(){const{element:l,unresolvedKeyframes:u,name:r}=this;if(!l||!l.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qn[r](l.measureViewportBox(),window.getComputedStyle(l.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&l.getValue(r,c).jump(c,!1)}measureEndState(){const{element:l,name:u,unresolvedKeyframes:r}=this;if(!l||!l.current)return;const c=l.getValue(u);c&&c.jump(this.measuredOrigin,!1);const d=r.length-1,h=r[d];r[d]=Qn[u](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,y])=>{l.getValue(g).set(y)}),this.resolveNoneKeyframes()}}function YT(a,l,u){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const c=u?.[a]??r.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a)}const dg=(a,l)=>l&&typeof a=="number"?l.transform(a):a;function mg(a){return Dy(a)&&"offsetHeight"in a}const{schedule:Hc}=Hy(queueMicrotask,!1),Xe={x:!1,y:!1};function pg(){return Xe.x||Xe.y}function qT(a){return a==="x"||a==="y"?Xe[a]?null:(Xe[a]=!0,()=>{Xe[a]=!1}):Xe.x||Xe.y?null:(Xe.x=Xe.y=!0,()=>{Xe.x=Xe.y=!1})}function yg(a,l){const u=YT(a),r=new AbortController,c={passive:!0,...l,signal:r.signal};return[u,c,()=>r.abort()]}function xp(a){return!(a.pointerType==="touch"||pg())}function GT(a,l,u={}){const[r,c,d]=yg(a,u),h=g=>{if(!xp(g))return;const{target:y}=g,m=l(y,g);if(typeof m!="function"||!y)return;const S=v=>{xp(v)&&(m(v),y.removeEventListener("pointerleave",S))};y.addEventListener("pointerleave",S,c)};return r.forEach(g=>{g.addEventListener("pointerenter",h,c)}),d}const gg=(a,l)=>l?a===l?!0:gg(a,l.parentElement):!1,wc=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,XT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vg(a){return XT.has(a.tagName)||a.isContentEditable===!0}const Zs=new WeakSet;function Dp(a){return l=>{l.key==="Enter"&&a(l)}}function jr(a,l){a.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const QT=(a,l)=>{const u=a.currentTarget;if(!u)return;const r=Dp(()=>{if(Zs.has(u))return;jr(u,"down");const c=Dp(()=>{jr(u,"up")}),d=()=>jr(u,"cancel");u.addEventListener("keyup",c,l),u.addEventListener("blur",d,l)});u.addEventListener("keydown",r,l),u.addEventListener("blur",()=>u.removeEventListener("keydown",r),l)};function Mp(a){return wc(a)&&!pg()}function ZT(a,l,u={}){const[r,c,d]=yg(a,u),h=g=>{const y=g.currentTarget;if(!Mp(g))return;Zs.add(y);const m=l(y,g),S=(O,j)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),Zs.has(y)&&Zs.delete(y),Mp(O)&&typeof m=="function"&&m(O,{success:j})},v=O=>{S(O,y===window||y===document||u.useGlobalTarget||gg(y,O.target))},b=O=>{S(O,!1)};window.addEventListener("pointerup",v,c),window.addEventListener("pointercancel",b,c)};return r.forEach(g=>{(u.useGlobalTarget?window:g).addEventListener("pointerdown",h,c),mg(g)&&(g.addEventListener("focus",m=>QT(m,c)),!vg(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),d}function Sg(a){return Dy(a)&&"ownerSVGElement"in a}function KT(a){return Sg(a)&&a.tagName==="svg"}const JT=[...cg,Xt,Kn],FT=a=>JT.find(rg(a)),Cp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ia=()=>({x:Cp(),y:Cp()}),zp=()=>({min:0,max:0}),Kt=()=>({x:zp(),y:zp()}),oc={current:null},Tg={current:!1},kT=typeof window<"u";function WT(){if(Tg.current=!0,!!kT)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),l=()=>oc.current=a.matches;a.addEventListener("change",l),l()}else oc.current=!1}const PT=new WeakMap;function nu(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function yl(a){return typeof a=="string"||Array.isArray(a)}const Yc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qc=["initial",...Yc];function iu(a){return nu(a.animate)||qc.some(l=>yl(a[l]))}function bg(a){return!!(iu(a)||a.variants)}function $T(a,l,u){for(const r in l){const c=l[r],d=u[r];if(ne(c))a.addValue(r,c);else if(ne(d))a.addValue(r,ua(c,{owner:a}));else if(d!==c)if(a.hasValue(r)){const h=a.getValue(r);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=a.getStaticValue(r);a.addValue(r,ua(h!==void 0?h:c,{owner:a}))}}for(const r in u)l[r]===void 0&&a.removeValue(r);return l}const Op=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ps={};function Ag(a){Ps=a}function IT(){return Ps}class tb{scrapeMotionValuesFromProps(l,u,r){return{}}constructor({parent:l,props:u,presenceContext:r,reducedMotionConfig:c,blockInitialAnimation:d,visualState:h},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_c,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 b=le.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,zt.render(this.render,!1,!0))};const{latestValues:y,renderState:m}=h;this.latestValues=y,this.baseTarget={...y},this.initialValues=u.initial?{...y}:{},this.renderState=m,this.parent=l,this.props=u,this.presenceContext=r,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=iu(u),this.isVariantNode=bg(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:S,...v}=this.scrapeMotionValuesFromProps(u,{},this);for(const b in v){const O=v[b];y[b]!==void 0&&ne(O)&&O.set(y[b])}}mount(l){this.current=l,PT.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,r)=>this.bindToMotionValue(r,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Tg.current||WT(),this.shouldReduceMotion=oc.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Zn(this.notifyUpdate),Zn(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const u=this.features[l];u&&(u.unmount(),u.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,u){this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)();const r=ca.has(l);r&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&zt.preRender(this.notifyUpdate),r&&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 Ps){const u=Ps[l];if(!u)continue;const{isEnabled:r,Feature:c}=u;if(!this.features[l]&&c&&r(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 r=0;r<Op.length;r++){const c=Op[r];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=$T(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 r=this.values.get(l);u!==r&&(r&&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 r=this.values.get(l);return r===void 0&&u!==void 0&&(r=ua(u===null?void 0:u,{owner:this}),this.addValue(l,r)),r}readValue(l,u){let r=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return r!=null&&(typeof r=="string"&&(xy(r)||My(r))?r=parseFloat(r):!FT(r)&&Kn.test(u)&&(r=hg(l,u)),this.setBaseTarget(l,ne(r)?r.get():r)),ne(r)?r.get():r}setBaseTarget(l,u){this.baseTarget[l]=u}getBaseTarget(l){const{initial:u}=this.props;let r;if(typeof u=="string"||typeof u=="object"){const d=Nc(this.props,u,this.presenceContext?.custom);d&&(r=d[l])}if(u&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!ne(c)?c:this.initialValues[l]!==void 0&&r===void 0?void 0:this.baseTarget[l]}on(l,u){return this.events[l]||(this.events[l]=new bc),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){Hc.render(this.render)}}class Jn{constructor(l){this.isMounted=!1,this.node=l}update(){}}class Eg extends tb{constructor(){super(...arguments),this.KeyframeResolver=wT}sortInstanceNodePosition(l,u){return l.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(l,u){const r=l.style;return r?r[u]:void 0}removeValueFromRenderState(l,{vars:u,style:r}){delete u[l],delete r[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;ne(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}function xg({top:a,left:l,right:u,bottom:r}){return{x:{min:l,max:u},y:{min:a,max:r}}}function eb({x:a,y:l}){return{top:l.min,right:a.max,bottom:l.max,left:a.min}}function nb(a,l){if(!l)return a;const u=l({x:a.left,y:a.top}),r=l({x:a.right,y:a.bottom});return{top:u.y,left:u.x,bottom:r.y,right:r.x}}function Lr(a){return a===void 0||a===1}function rc({scale:a,scaleX:l,scaleY:u}){return!Lr(a)||!Lr(l)||!Lr(u)}function mi(a){return rc(a)||Dg(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Dg(a){return Rp(a.x)||Rp(a.y)}function Rp(a){return a&&a!=="0%"}function $s(a,l,u){const r=a-u,c=l*r;return u+c}function Vp(a,l,u,r,c){return c!==void 0&&(a=$s(a,c,r)),$s(a,u,r)+l}function cc(a,l=0,u=1,r,c){a.min=Vp(a.min,l,u,r,c),a.max=Vp(a.max,l,u,r,c)}function Mg(a,{x:l,y:u}){cc(a.x,l.translate,l.scale,l.originPoint),cc(a.y,u.translate,u.scale,u.originPoint)}const _p=.999999999999,Up=1.0000000000001;function ib(a,l,u,r=!1){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:y}=d.options;y&&y.props.style&&y.props.style.display==="contents"||(r&&d.options.layoutScroll&&d.scroll&&d!==d.root&&la(a,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(l.x*=h.x.scale,l.y*=h.y.scale,Mg(a,h)),r&&mi(d.latestValues)&&la(a,d.latestValues))}l.x<Up&&l.x>_p&&(l.x=1),l.y<Up&&l.y>_p&&(l.y=1)}function aa(a,l){a.min=a.min+l,a.max=a.max+l}function Bp(a,l,u,r,c=.5){const d=Vt(a.min,a.max,c);cc(a,l,u,d,r)}function la(a,l){Bp(a.x,l.x,l.scaleX,l.scale,l.originX),Bp(a.y,l.y,l.scaleY,l.scale,l.originY)}function Cg(a,l){return xg(nb(a.getBoundingClientRect(),l))}function ab(a,l,u){const r=Cg(a,u),{scroll:c}=l;return c&&(aa(r.x,c.offset.x),aa(r.y,c.offset.y)),r}const lb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sb=ra.length;function ub(a,l,u){let r="",c=!0;for(let d=0;d<sb;d++){const h=ra[d],g=a[h];if(g===void 0)continue;let y=!0;if(typeof g=="number"?y=g===(h.startsWith("scale")?1:0):y=parseFloat(g)===0,!y||u){const m=dg(g,Lc[h]);if(!y){c=!1;const S=lb[h]||h;r+=`${S}(${m}) `}u&&(l[h]=m)}}return r=r.trim(),u?r=u(l,c?"":r):c&&(r="none"),r}function Gc(a,l,u){const{style:r,vars:c,transformOrigin:d}=a;let h=!1,g=!1;for(const y in l){const m=l[y];if(ca.has(y)){h=!0;continue}else if(Yy(y)){c[y]=m;continue}else{const S=dg(m,Lc[y]);y.startsWith("origin")?(g=!0,d[y]=S):r[y]=S}}if(l.transform||(h||u?r.transform=ub(l,a.transform,u):r.transform&&(r.transform="none")),g){const{originX:y="50%",originY:m="50%",originZ:S=0}=d;r.transformOrigin=`${y} ${m} ${S}`}}function zg(a,{style:l,vars:u},r,c){const d=a.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,r);for(h in u)d.setProperty(h,u[h])}function Np(a,l){return l.max===l.min?0:a/(l.max-l.min)*100}const sl={correct:(a,l)=>{if(!l.target)return a;if(typeof a=="string")if(J.test(a))a=parseFloat(a);else return a;const u=Np(a,l.target.x),r=Np(a,l.target.y);return`${u}% ${r}%`}},ob={correct:(a,{treeScale:l,projectionDelta:u})=>{const r=a,c=Kn.parse(a);if(c.length>5)return r;const d=Kn.createTransformer(a),h=typeof c[0]!="number"?1:0,g=u.x.scale*l.x,y=u.y.scale*l.y;c[0+h]/=g,c[1+h]/=y;const m=Vt(g,y,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},fc={borderRadius:{...sl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sl,borderTopRightRadius:sl,borderBottomLeftRadius:sl,borderBottomRightRadius:sl,boxShadow:ob};function Og(a,{layout:l,layoutId:u}){return ca.has(a)||a.startsWith("origin")||(l||u!==void 0)&&(!!fc[a]||a==="opacity")}function Xc(a,l,u){const r=a.style,c=l?.style,d={};if(!r)return d;for(const h in r)(ne(r[h])||c&&ne(c[h])||Og(h,a)||u?.getValue(h)?.liveStyle!==void 0)&&(d[h]=r[h]);return d}function rb(a){return window.getComputedStyle(a)}class cb extends Eg{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(l,u){if(ca.has(u))return this.projection?.isProjecting?$r(u):YS(l,u);{const r=rb(l),c=(Yy(u)?r.getPropertyValue(u):r[u])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:u}){return Cg(l,u)}build(l,u,r){Gc(l,u,r.transformTemplate)}scrapeMotionValuesFromProps(l,u,r){return Xc(l,u,r)}}const fb={offset:"stroke-dashoffset",array:"stroke-dasharray"},hb={offset:"strokeDashoffset",array:"strokeDasharray"};function db(a,l,u=1,r=0,c=!0){a.pathLength=1;const d=c?fb:hb;a[d.offset]=J.transform(-r);const h=J.transform(l),g=J.transform(u);a[d.array]=`${h} ${g}`}const mb=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Rg(a,{attrX:l,attrY:u,attrScale:r,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...g},y,m,S){if(Gc(a,g,m),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:v,style:b}=a;v.transform&&(b.transform=v.transform,delete v.transform),(b.transform||v.transformOrigin)&&(b.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),b.transform&&(b.transformBox=S?.transformBox??"fill-box",delete v.transformBox);for(const O of mb)v[O]!==void 0&&(b[O]=v[O],delete v[O]);l!==void 0&&(v.x=l),u!==void 0&&(v.y=u),r!==void 0&&(v.scale=r),c!==void 0&&db(v,c,d,h,!1)}const Vg=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"]),_g=a=>typeof a=="string"&&a.toLowerCase()==="svg";function pb(a,l,u,r){zg(a,l,void 0,r);for(const c in l.attrs)a.setAttribute(Vg.has(c)?c:jc(c),l.attrs[c])}function Ug(a,l,u){const r=Xc(a,l,u);for(const c in a)if(ne(a[c])||ne(l[c])){const d=ra.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[d]=a[c]}return r}class yb extends Eg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Kt}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(ca.has(u)){const r=fg(u);return r&&r.default||0}return u=Vg.has(u)?u:jc(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,r){return Ug(l,u,r)}build(l,u,r){Rg(l,u,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(l,u,r,c){pb(l,u,r,c)}mount(l){this.isSVGTag=_g(l.tagName),super.mount(l)}}const gb=qc.length;function Bg(a){if(!a)return;if(!a.isControllingVariants){const u=a.parent?Bg(a.parent)||{}:{};return a.props.initial!==void 0&&(u.initial=a.props.initial),u}const l={};for(let u=0;u<gb;u++){const r=qc[u],c=a.props[r];(yl(c)||c===!1)&&(l[r]=c)}return l}function Ng(a,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==a.length)return!1;for(let r=0;r<u;r++)if(l[r]!==a[r])return!1;return!0}const vb=[...Yc].reverse(),Sb=Yc.length;function Tb(a){return l=>Promise.all(l.map(({animation:u,options:r})=>OT(a,u,r)))}function bb(a){let l=Tb(a),u=jp(),r=!0;const c=y=>(m,S)=>{const v=sa(a,S,y==="exit"?a.presenceContext?.custom:void 0);if(v){const{transition:b,transitionEnd:O,...j}=v;m={...m,...j,...O}}return m};function d(y){l=y(a)}function h(y){const{props:m}=a,S=Bg(a.parent)||{},v=[],b=new Set;let O={},j=1/0;for(let U=0;U<Sb;U++){const L=vb[U],q=u[L],H=m[L]!==void 0?m[L]:S[L],I=yl(H),X=L===y?q.isActive:null;X===!1&&(j=U);let $=H===S[L]&&H!==m[L]&&I;if($&&r&&a.manuallyAnimateOnMount&&($=!1),q.protectedKeys={...O},!q.isActive&&X===null||!H&&!q.prevProp||nu(H)||typeof H=="boolean")continue;const K=Ab(q.prevProp,H);let Z=K||L===y&&q.isActive&&!$&&I||U>j&&I,pt=!1;const Rt=Array.isArray(H)?H:[H];let Ht=Rt.reduce(c(L),{});X===!1&&(Ht={});const{prevResolvedValues:Qt={}}=q,We={...Qt,...Ht},De=w=>{Z=!0,b.has(w)&&(pt=!0,b.delete(w)),q.needsAnimating[w]=!0;const W=a.getValue(w);W&&(W.liveStyle=!1)};for(const w in We){const W=Ht[w],ct=Qt[w];if(O.hasOwnProperty(w))continue;let mt=!1;ac(W)&&ac(ct)?mt=!Ng(W,ct):mt=W!==ct,mt?W!=null?De(w):b.add(w):W!==void 0&&b.has(w)?De(w):q.protectedKeys[w]=!0}q.prevProp=H,q.prevResolvedValues=Ht,q.isActive&&(O={...O,...Ht}),r&&a.blockInitialAnimation&&(Z=!1);const ue=$&&K;Z&&(!ue||pt)&&v.push(...Rt.map(w=>{const W={type:L};if(typeof w=="string"&&r&&!ue&&a.manuallyAnimateOnMount&&a.parent){const{parent:ct}=a,mt=sa(ct,w);if(ct.enteringChildren&&mt){const{delayChildren:E}=mt.transition||{};W.delay=ag(ct.enteringChildren,a,E)}}return{animation:w,options:W}}))}if(b.size){const U={};if(typeof m.initial!="boolean"){const L=sa(a,Array.isArray(m.initial)?m.initial[0]:m.initial);L&&L.transition&&(U.transition=L.transition)}b.forEach(L=>{const q=a.getBaseTarget(L),H=a.getValue(L);H&&(H.liveStyle=!0),U[L]=q??null}),v.push({animation:U})}let Y=!!v.length;return r&&(m.initial===!1||m.initial===m.animate)&&!a.manuallyAnimateOnMount&&(Y=!1),r=!1,Y?l(v):Promise.resolve()}function g(y,m){if(u[y].isActive===m)return Promise.resolve();a.variantChildren?.forEach(v=>v.animationState?.setActive(y,m)),u[y].isActive=m;const S=h(y);for(const v in u)u[v].protectedKeys={};return S}return{animateChanges:h,setActive:g,setAnimateFunction:d,getState:()=>u,reset:()=>{u=jp()}}}function Ab(a,l){return typeof l=="string"?l!==a:Array.isArray(l)?!Ng(l,a):!1}function di(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jp(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}const jg=1e-4,Eb=1-jg,xb=1+jg,Lg=.01,Db=0-Lg,Mb=0+Lg;function se(a){return a.max-a.min}function Cb(a,l,u){return Math.abs(a-l)<=u}function Lp(a,l,u,r=.5){a.origin=r,a.originPoint=Vt(l.min,l.max,a.origin),a.scale=se(u)/se(l),a.translate=Vt(u.min,u.max,a.origin)-a.originPoint,(a.scale>=Eb&&a.scale<=xb||isNaN(a.scale))&&(a.scale=1),(a.translate>=Db&&a.translate<=Mb||isNaN(a.translate))&&(a.translate=0)}function fl(a,l,u,r){Lp(a.x,l.x,u.x,r?r.originX:void 0),Lp(a.y,l.y,u.y,r?r.originY:void 0)}function Hp(a,l,u){a.min=u.min+l.min,a.max=a.min+se(l)}function zb(a,l,u){Hp(a.x,l.x,u.x),Hp(a.y,l.y,u.y)}function wp(a,l,u){a.min=l.min-u.min,a.max=a.min+se(l)}function Is(a,l,u){wp(a.x,l.x,u.x),wp(a.y,l.y,u.y)}function Yp(a,l,u,r,c){return a-=l,a=$s(a,1/u,r),c!==void 0&&(a=$s(a,1/c,r)),a}function Ob(a,l=0,u=1,r=.5,c,d=a,h=a){if(Fe.test(l)&&(l=parseFloat(l),l=Vt(h.min,h.max,l/100)-h.min),typeof l!="number")return;let g=Vt(d.min,d.max,r);a===d&&(g-=l),a.min=Yp(a.min,l,u,g,c),a.max=Yp(a.max,l,u,g,c)}function qp(a,l,[u,r,c],d,h){Ob(a,l[u],l[r],l[c],l.scale,d,h)}const Rb=["x","scaleX","originX"],Vb=["y","scaleY","originY"];function Gp(a,l,u,r){qp(a.x,l,Rb,u?u.x:void 0,r?r.x:void 0),qp(a.y,l,Vb,u?u.y:void 0,r?r.y:void 0)}function Xp(a,l){a.min=l.min,a.max=l.max}function Ge(a,l){Xp(a.x,l.x),Xp(a.y,l.y)}function Qp(a,l){a.translate=l.translate,a.scale=l.scale,a.originPoint=l.originPoint,a.origin=l.origin}function Zp(a){return a.translate===0&&a.scale===1}function Hg(a){return Zp(a.x)&&Zp(a.y)}function Kp(a,l){return a.min===l.min&&a.max===l.max}function _b(a,l){return Kp(a.x,l.x)&&Kp(a.y,l.y)}function Jp(a,l){return Math.round(a.min)===Math.round(l.min)&&Math.round(a.max)===Math.round(l.max)}function wg(a,l){return Jp(a.x,l.x)&&Jp(a.y,l.y)}function Fp(a){return se(a.x)/se(a.y)}function kp(a,l){return a.translate===l.translate&&a.scale===l.scale&&a.originPoint===l.originPoint}function je(a){return[a("x"),a("y")]}function Ub(a,l,u){let r="";const c=a.x.translate/l.x,d=a.y.translate/l.y,h=u?.z||0;if((c||d||h)&&(r=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(r+=`scale(${1/l.x}, ${1/l.y}) `),u){const{transformPerspective:m,rotate:S,rotateX:v,rotateY:b,skewX:O,skewY:j}=u;m&&(r=`perspective(${m}px) ${r}`),S&&(r+=`rotate(${S}deg) `),v&&(r+=`rotateX(${v}deg) `),b&&(r+=`rotateY(${b}deg) `),O&&(r+=`skewX(${O}deg) `),j&&(r+=`skewY(${j}deg) `)}const g=a.x.scale*l.x,y=a.y.scale*l.y;return(g!==1||y!==1)&&(r+=`scale(${g}, ${y})`),r||"none"}const Yg=["TopLeft","TopRight","BottomLeft","BottomRight"],Bb=Yg.length,Wp=a=>typeof a=="string"?parseFloat(a):a,Pp=a=>typeof a=="number"||J.test(a);function Nb(a,l,u,r,c,d){c?(a.opacity=Vt(0,u.opacity??1,jb(r)),a.opacityExit=Vt(l.opacity??1,0,Lb(r))):d&&(a.opacity=Vt(l.opacity??1,u.opacity??1,r));for(let h=0;h<Bb;h++){const g=`border${Yg[h]}Radius`;let y=$p(l,g),m=$p(u,g);if(y===void 0&&m===void 0)continue;y||(y=0),m||(m=0),y===0||m===0||Pp(y)===Pp(m)?(a[g]=Math.max(Vt(Wp(y),Wp(m),r),0),(Fe.test(m)||Fe.test(y))&&(a[g]+="%")):a[g]=m}(l.rotate||u.rotate)&&(a.rotate=Vt(l.rotate||0,u.rotate||0,r))}function $p(a,l){return a[l]!==void 0?a[l]:a.borderRadius}const jb=qg(0,.5,By),Lb=qg(.5,.95,He);function qg(a,l,u){return r=>r<a?0:r>l?1:u(dl(a,l,r))}function Hb(a,l){const u=le.now(),r=({timestamp:c})=>{const d=c-u;d>=l&&(Zn(r),a(d-l))};return zt.setup(r,!0),()=>Zn(r)}function gl(a,l,u,r={passive:!0}){return a.addEventListener(l,u,r),()=>a.removeEventListener(l,u)}function Ks(a){return ne(a)?a.get():a}function wb(a,l,u){const r=ne(a)?a:ua(a);return r.start(Bc("",r,l,u)),r.animation}const Yb=(a,l)=>a.depth-l.depth;class qb{constructor(){this.children=[],this.isDirty=!1}add(l){gc(this.children,l),this.isDirty=!0}remove(l){vc(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(Yb),this.isDirty=!1,this.children.forEach(l)}}class Gb{constructor(){this.members=[]}add(l){gc(this.members,l),l.scheduleRender()}remove(l){if(vc(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(l){const u=this.members.findIndex(c=>l===c);if(u===0)return!1;let r;for(let c=u;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){r=d;break}}return r?(this.promote(r),!0):!1}promote(l,u){const r=this.lead;if(l!==r&&(this.prevLead=r,this.lead=l,l.show(),r)){r.instance&&r.scheduleRender(),l.scheduleRender(),l.resumeFrom=r,u&&(l.resumeFrom.preserveOpacity=!0),r.snapshot&&(l.snapshot=r.snapshot,l.snapshot.latestValues=r.animationValues||r.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0);const{crossfade:c}=l.options;c===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:u,resumingFrom:r}=l;u.onExitComplete&&u.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Js={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Hr=["","X","Y","Z"],Xb=1e3;let Qb=0;function wr(a,l,u,r){const{latestValues:c}=l;c[a]&&(u[a]=c[a],l.setStaticValue(a,0),r&&(r[a]=0))}function Gg(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:l}=a.options;if(!l)return;const u=ug(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(u,"transform",zt,!(c||d))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&Gg(r)}function Xg({attachResizeListener:a,defaultParent:l,measureScroll:u,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(h={},g=l?.()){this.id=Qb++,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(Jb),this.nodes.forEach(Pb),this.nodes.forEach($b),this.nodes.forEach(Fb)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new qb)}addEventListener(h,g){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new bc),this.eventHandlers.get(h).add(g)}notifyListeners(h,...g){const y=this.eventHandlers.get(h);y&&y.notify(...g)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Sg(h)&&!KT(h),this.instance=h;const{layoutId:g,layout:y,visualElement:m}=this.options;if(m&&!m.current&&m.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||g)&&(this.isLayoutDirty=!0),a){let S,v=0;const b=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{v=window.innerWidth}),a(h,()=>{const O=window.innerWidth;O!==v&&(v=O,this.root.updateBlockedByResize=!0,S&&S(),S=Hb(b,250),Js.hasAnimatedSinceResize&&(Js.hasAnimatedSinceResize=!1,this.nodes.forEach(ey)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&m&&(g||y)&&this.addEventListener("didUpdate",({delta:S,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:O})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||m.getDefaultTransition()||iA,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:U}=m.getProps(),L=!this.targetLayout||!wg(this.targetLayout,O),q=!v&&b;if(this.options.layoutRoot||this.resumeFrom||q||v&&(L||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...Uc(j,"layout"),onPlay:Y,onComplete:U};(m.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(S,q)}else v||ey(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=O})}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(),Zn(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(Ib),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&&Gg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let S=0;S<this.path.length;S++){const v=this.path[S];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:g,layout:y}=this.options;if(g===void 0&&!y)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ip);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Wb),this.nodes.forEach(Zb),this.nodes.forEach(Kb)):this.nodes.forEach(ty),this.clearAllSnapshots();const g=le.now();te.delta=ke(0,1e3/60,g-te.timestamp),te.timestamp=g,te.isProcessing=!0,Rr.update.process(te),Rr.preRender.process(te),Rr.render.process(te),te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(kb),this.sharedNodes.forEach(tA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!se(this.snapshot.measuredBox.x)&&!se(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(g=!1),g&&this.instance){const y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:y,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!Hg(this.projectionDelta),y=this.getTransformTemplate(),m=y?y(this.latestValues,""):void 0,S=m!==this.prevTransformTemplateValue;h&&this.instance&&(g||mi(this.latestValues)||S)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const g=this.measurePageBox();let y=this.removeElementScroll(g);return h&&(y=this.removeTransform(y)),aA(y),{animationId:this.root.animationId,measuredBox:g,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return Kt();const g=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(lA))){const{scroll:m}=this.root;m&&(aa(g.x,m.offset.x),aa(g.y,m.offset.y))}return g}removeElementScroll(h){const g=Kt();if(Ge(g,h),this.scroll?.wasRoot)return g;for(let y=0;y<this.path.length;y++){const m=this.path[y],{scroll:S,options:v}=m;m!==this.root&&S&&v.layoutScroll&&(S.wasRoot&&Ge(g,h),aa(g.x,S.offset.x),aa(g.y,S.offset.y))}return g}applyTransform(h,g=!1){const y=Kt();Ge(y,h);for(let m=0;m<this.path.length;m++){const S=this.path[m];!g&&S.options.layoutScroll&&S.scroll&&S!==S.root&&la(y,{x:-S.scroll.offset.x,y:-S.scroll.offset.y}),mi(S.latestValues)&&la(y,S.latestValues)}return mi(this.latestValues)&&la(y,this.latestValues),y}removeTransform(h){const g=Kt();Ge(g,h);for(let y=0;y<this.path.length;y++){const m=this.path[y];if(!m.instance||!mi(m.latestValues))continue;rc(m.latestValues)&&m.updateSnapshot();const S=Kt(),v=m.measurePageBox();Ge(S,v),Gp(g,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,S)}return mi(this.latestValues)&&Gp(g,this.latestValues),g}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!==te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==g;if(!(h||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:S,layoutId:v}=this.options;if(!this.layout||!(S||v))return;this.resolvedRelativeTargetAt=te.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(),zb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ge(this.target,this.layout.layoutBox),Mg(this.target,this.targetDelta)):Ge(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||rc(this.parent.latestValues)||Dg(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,g,y){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Kt(),this.relativeTargetOrigin=Kt(),Is(this.relativeTargetOrigin,g,y),Ge(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),g=!!this.resumingFrom||this!==h;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===te.timestamp&&(y=!1),y)return;const{layout:m,layoutId:S}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||S))return;Ge(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;ib(this.layoutCorrected,this.treeScale,this.path,g),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Kt());const{target:O}=h;if(!O){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qp(this.prevProjectionDelta.x,this.projectionDelta.x),Qp(this.prevProjectionDelta.y,this.projectionDelta.y)),fl(this.projectionDelta,this.layoutCorrected,O,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!kp(this.projectionDelta.x,this.prevProjectionDelta.x)||!kp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",O))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ia(),this.projectionDelta=ia(),this.projectionDeltaWithTransform=ia()}setAnimationOrigin(h,g=!1){const y=this.snapshot,m=y?y.latestValues:{},S={...this.latestValues},v=ia();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const b=Kt(),O=y?y.source:void 0,j=this.layout?this.layout.source:void 0,Y=O!==j,U=this.getStack(),L=!U||U.members.length<=1,q=!!(Y&&!L&&this.options.crossfade===!0&&!this.path.some(nA));this.animationProgress=0;let H;this.mixTargetDelta=I=>{const X=I/1e3;ny(v.x,h.x,X),ny(v.y,h.y,X),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Is(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),eA(this.relativeTarget,this.relativeTargetOrigin,b,X),H&&_b(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=Kt()),Ge(H,this.relativeTarget)),Y&&(this.animationValues=S,Nb(S,m,this.latestValues,X,q,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=X},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Zn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{Js.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ua(0)),this.currentAnimation=wb(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),h.onUpdate&&h.onUpdate(g)},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(Xb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:g,target:y,layout:m,latestValues:S}=h;if(!(!g||!y||!m)){if(this!==h&&this.layout&&m&&Qg(this.options.animationType,this.layout.layoutBox,m.layoutBox)){y=this.target||Kt();const v=se(this.layout.layoutBox.x);y.x.min=h.target.x.min,y.x.max=y.x.min+v;const b=se(this.layout.layoutBox.y);y.y.min=h.target.y.min,y.y.max=y.y.min+b}Ge(g,y),la(g,S),fl(this.projectionDeltaWithTransform,this.layoutCorrected,g,S)}}registerSharedNode(h,g){this.sharedNodes.has(h)||this.sharedNodes.set(h,new Gb),this.sharedNodes.get(h).add(g);const m=g.options.initialPromotionConfig;g.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(g):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){const{layoutId:h}=this.options;return h?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:h}=this.options;return h?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:g,preserveFollowOpacity:y}={}){const m=this.getStack();m&&m.promote(this,y),h&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let g=!1;const{latestValues:y}=h;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(g=!0),!g)return;const m={};y.z&&wr("z",h,m,this.animationValues);for(let S=0;S<Hr.length;S++)wr(`rotate${Hr[S]}`,h,m,this.animationValues),wr(`skew${Hr[S]}`,h,m,this.animationValues);h.render();for(const S in m)h.setStaticValue(S,m[S]),this.animationValues&&(this.animationValues[S]=m[S]);h.scheduleRender()}applyProjectionStyles(h,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=Ks(g?.pointerEvents)||"",h.transform=y?y(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Ks(g?.pointerEvents)||""),this.hasProjected&&!mi(this.latestValues)&&(h.transform=y?y({},""):"none",this.hasProjected=!1);return}h.visibility="";const S=m.animationValues||m.latestValues;this.applyTransformsToTarget();let v=Ub(this.projectionDeltaWithTransform,this.treeScale,S);y&&(v=y(S,v)),h.transform=v;const{x:b,y:O}=this.projectionDelta;h.transformOrigin=`${b.origin*100}% ${O.origin*100}% 0`,m.animationValues?h.opacity=m===this?S.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:h.opacity=m===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const j in fc){if(S[j]===void 0)continue;const{correct:Y,applyTo:U,isCSSVariable:L}=fc[j],q=v==="none"?S[j]:Y(S[j],m);if(U){const H=U.length;for(let I=0;I<H;I++)h[U[I]]=q}else L?this.options.visualElement.renderState.vars[j]=q:h[j]=q}this.options.layoutId&&(h.pointerEvents=m===this?Ks(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Ip),this.root.sharedNodes.clear()}}}function Zb(a){a.updateLayout()}function Kb(a){const l=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&l&&a.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:r}=a.layout,{animationType:c}=a.options,d=l.source!==a.layout.source;c==="size"?je(S=>{const v=d?l.measuredBox[S]:l.layoutBox[S],b=se(v);v.min=u[S].min,v.max=v.min+b}):Qg(c,l.layoutBox,u)&&je(S=>{const v=d?l.measuredBox[S]:l.layoutBox[S],b=se(u[S]);v.max=v.min+b,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[S].max=a.relativeTarget[S].min+b)});const h=ia();fl(h,u,l.layoutBox);const g=ia();d?fl(g,a.applyTransform(r,!0),l.measuredBox):fl(g,u,l.layoutBox);const y=!Hg(h);let m=!1;if(!a.resumeFrom){const S=a.getClosestProjectingParent();if(S&&!S.resumeFrom){const{snapshot:v,layout:b}=S;if(v&&b){const O=Kt();Is(O,l.layoutBox,v.layoutBox);const j=Kt();Is(j,u,b.layoutBox),wg(O,j)||(m=!0),S.options.layoutRoot&&(a.relativeTarget=j,a.relativeTargetOrigin=O,a.relativeParent=S)}}}a.notifyListeners("didUpdate",{layout:u,snapshot:l,delta:g,layoutDelta:h,hasLayoutChanged:y,hasRelativeLayoutChanged:m})}else if(a.isLead()){const{onExitComplete:u}=a.options;u&&u()}a.options.transition=void 0}function Jb(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function Fb(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function kb(a){a.clearSnapshot()}function Ip(a){a.clearMeasurements()}function ty(a){a.isLayoutDirty=!1}function Wb(a){const{visualElement:l}=a.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),a.resetTransform()}function ey(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function Pb(a){a.resolveTargetDelta()}function $b(a){a.calcProjection()}function Ib(a){a.resetSkewAndRotation()}function tA(a){a.removeLeadSnapshot()}function ny(a,l,u){a.translate=Vt(l.translate,0,u),a.scale=Vt(l.scale,1,u),a.origin=l.origin,a.originPoint=l.originPoint}function iy(a,l,u,r){a.min=Vt(l.min,u.min,r),a.max=Vt(l.max,u.max,r)}function eA(a,l,u,r){iy(a.x,l.x,u.x,r),iy(a.y,l.y,u.y,r)}function nA(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const iA={duration:.45,ease:[.4,0,.1,1]},ay=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),ly=ay("applewebkit/")&&!ay("chrome/")?Math.round:He;function sy(a){a.min=ly(a.min),a.max=ly(a.max)}function aA(a){sy(a.x),sy(a.y)}function Qg(a,l,u){return a==="position"||a==="preserve-aspect"&&!Cb(Fp(l),Fp(u),.2)}function lA(a){return a!==a.root&&a.scroll?.wasRoot}const sA=Xg({attachResizeListener:(a,l)=>gl(a,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Yr={current:void 0},Zg=Xg({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Yr.current){const a=new sA({});a.mount(window),a.setOptions({layoutScroll:!0}),Yr.current=a}return Yr.current},resetTransform:(a,l)=>{a.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Qc=G.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function uy(a,l){if(typeof a=="function")return a(l);a!=null&&(a.current=l)}function uA(...a){return l=>{let u=!1;const r=a.map(c=>{const d=uy(c,l);return!u&&typeof d=="function"&&(u=!0),d});if(u)return()=>{for(let c=0;c<r.length;c++){const d=r[c];typeof d=="function"?d():uy(a[c],null)}}}}function oA(...a){return G.useCallback(uA(...a),a)}class rA extends G.Component{getSnapshotBeforeUpdate(l){const u=this.props.childRef.current;if(u&&l.isPresent&&!this.props.isPresent){const r=u.offsetParent,c=mg(r)&&r.offsetWidth||0,d=this.props.sizeRef.current;d.height=u.offsetHeight||0,d.width=u.offsetWidth||0,d.top=u.offsetTop,d.left=u.offsetLeft,d.right=c-d.width-d.left}return null}componentDidUpdate(){}render(){return this.props.children}}function cA({children:a,isPresent:l,anchorX:u,root:r}){const c=G.useId(),d=G.useRef(null),h=G.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=G.useContext(Qc),y=a.props?.ref??a?.ref,m=oA(d,y);return G.useInsertionEffect(()=>{const{width:S,height:v,top:b,left:O,right:j}=h.current;if(l||!d.current||!S||!v)return;const Y=u==="left"?`left: ${O}`:`right: ${j}`;d.current.dataset.motionPopId=c;const U=document.createElement("style");g&&(U.nonce=g);const L=r??document.head;return L.appendChild(U),U.sheet&&U.sheet.insertRule(`
[data-motion-pop-id="${c}"] {
position: absolute !important;
width: ${S}px !important;
height: ${v}px !important;
${Y}px !important;
top: ${b}px !important;
}
`),()=>{L.contains(U)&&L.removeChild(U)}},[l]),lt.jsx(rA,{isPresent:l,childRef:d,sizeRef:h,children:G.cloneElement(a,{ref:m})})}const fA=({children:a,initial:l,isPresent:u,onExitComplete:r,custom:c,presenceAffectsLayout:d,mode:h,anchorX:g,root:y})=>{const m=yc(hA),S=G.useId();let v=!0,b=G.useMemo(()=>(v=!1,{id:S,initial:l,isPresent:u,custom:c,onExitComplete:O=>{m.set(O,!0);for(const j of m.values())if(!j)return;r&&r()},register:O=>(m.set(O,!1),()=>m.delete(O))}),[u,m,r]);return d&&v&&(b={...b}),G.useMemo(()=>{m.forEach((O,j)=>m.set(j,!1))},[u]),G.useEffect(()=>{!u&&!m.size&&r&&r()},[u]),h==="popLayout"&&(a=lt.jsx(cA,{isPresent:u,anchorX:g,root:y,children:a})),lt.jsx(eu.Provider,{value:b,children:a})};function hA(){return new Map}function Kg(a=!0){const l=G.useContext(eu);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:r,register:c}=l,d=G.useId();G.useEffect(()=>{if(a)return c(d)},[a]);const h=G.useCallback(()=>a&&r&&r(d),[d,r,a]);return!u&&r?[!1,h]:[!0]}const Gs=a=>a.key||"";function oy(a){const l=[];return G.Children.forEach(a,u=>{G.isValidElement(u)&&l.push(u)}),l}const Zc=({children:a,custom:l,initial:u=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:g="left",root:y})=>{const[m,S]=Kg(h),v=G.useMemo(()=>oy(a),[a]),b=h&&!m?[]:v.map(Gs),O=G.useRef(!0),j=G.useRef(v),Y=yc(()=>new Map),U=G.useRef(new Set),[L,q]=G.useState(v),[H,I]=G.useState(v);Ey(()=>{O.current=!1,j.current=v;for(let K=0;K<H.length;K++){const Z=Gs(H[K]);b.includes(Z)?(Y.delete(Z),U.current.delete(Z)):Y.get(Z)!==!0&&Y.set(Z,!1)}},[H,b.length,b.join("-")]);const X=[];if(v!==L){let K=[...v];for(let Z=0;Z<H.length;Z++){const pt=H[Z],Rt=Gs(pt);b.includes(Rt)||(K.splice(Z,0,pt),X.push(pt))}return d==="wait"&&X.length&&(K=X),I(oy(K)),q(v),null}const{forceRender:$}=G.useContext(pc);return lt.jsx(lt.Fragment,{children:H.map(K=>{const Z=Gs(K),pt=h&&!m?!1:v===H||b.includes(Z),Rt=()=>{if(U.current.has(Z))return;if(U.current.add(Z),Y.has(Z))Y.set(Z,!0);else return;let Ht=!0;Y.forEach(Qt=>{Qt||(Ht=!1)}),Ht&&($?.(),I(j.current),h&&S?.(),r&&r())};return lt.jsx(fA,{isPresent:pt,initial:!O.current||u?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:y,onExitComplete:pt?void 0:Rt,anchorX:g,children:K},Z)})})},Jg=G.createContext({strict:!1}),ry={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let cy=!1;function dA(){if(cy)return;const a={};for(const l in ry)a[l]={isEnabled:u=>ry[l].some(r=>!!u[r])};Ag(a),cy=!0}function Fg(){return dA(),IT()}function mA(a){const l=Fg();for(const u in a)l[u]={...l[u],...a[u]};Ag(l)}const pA=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","ignoreStrict","viewport"]);function tu(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||pA.has(a)}let kg=a=>!tu(a);function yA(a){typeof a=="function"&&(kg=l=>l.startsWith("on")?!tu(l):a(l))}try{yA(require("@emotion/is-prop-valid").default)}catch{}function gA(a,l,u){const r={};for(const c in a)c==="values"&&typeof a.values=="object"||(kg(c)||u===!0&&tu(c)||!l&&!tu(c)||a.draggable&&c.startsWith("onDrag"))&&(r[c]=a[c]);return r}const au=G.createContext({});function vA(a,l){if(iu(a)){const{initial:u,animate:r}=a;return{initial:u===!1||yl(u)?u:void 0,animate:yl(r)?r:void 0}}return a.inherit!==!1?l:{}}function SA(a){const{initial:l,animate:u}=vA(a,G.useContext(au));return G.useMemo(()=>({initial:l,animate:u}),[fy(l),fy(u)])}function fy(a){return Array.isArray(a)?a.join(" "):a}const Kc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wg(a,l,u){for(const r in l)!ne(l[r])&&!Og(r,u)&&(a[r]=l[r])}function TA({transformTemplate:a},l){return G.useMemo(()=>{const u=Kc();return Gc(u,l,a),Object.assign({},u.vars,u.style)},[l])}function bA(a,l){const u=a.style||{},r={};return Wg(r,u,a),Object.assign(r,TA(a,l)),r}function AA(a,l){const u={},r=bA(a,l);return a.drag&&a.dragListener!==!1&&(u.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(u.tabIndex=0),u.style=r,u}const Pg=()=>({...Kc(),attrs:{}});function EA(a,l,u,r){const c=G.useMemo(()=>{const d=Pg();return Rg(d,l,_g(r),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[l]);if(a.style){const d={};Wg(d,a.style,a),c.style={...d,...c.style}}return c}const xA=["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 Jc(a){return typeof a!="string"||a.includes("-")?!1:!!(xA.indexOf(a)>-1||/[A-Z]/u.test(a))}function DA(a,l,u,{latestValues:r},c,d=!1,h){const y=(h??Jc(a)?EA:AA)(l,r,c,a),m=gA(l,typeof a=="string",d),S=a!==G.Fragment?{...m,...y,ref:u}:{},{children:v}=l,b=G.useMemo(()=>ne(v)?v.get():v,[v]);return G.createElement(a,{...S,children:b})}function MA({scrapeMotionValuesFromProps:a,createRenderState:l},u,r,c){return{latestValues:CA(u,r,c,a),renderState:l()}}function CA(a,l,u,r){const c={},d=r(a,{});for(const b in d)c[b]=Ks(d[b]);let{initial:h,animate:g}=a;const y=iu(a),m=bg(a);l&&m&&!y&&a.inherit!==!1&&(h===void 0&&(h=l.initial),g===void 0&&(g=l.animate));let S=u?u.initial===!1:!1;S=S||h===!1;const v=S?g:h;if(v&&typeof v!="boolean"&&!nu(v)){const b=Array.isArray(v)?v:[v];for(let O=0;O<b.length;O++){const j=Nc(a,b[O]);if(j){const{transitionEnd:Y,transition:U,...L}=j;for(const q in L){let H=L[q];if(Array.isArray(H)){const I=S?H.length-1:0;H=H[I]}H!==null&&(c[q]=H)}for(const q in Y)c[q]=Y[q]}}}return c}const $g=a=>(l,u)=>{const r=G.useContext(au),c=G.useContext(eu),d=()=>MA(a,l,r,c);return u?d():yc(d)},zA=$g({scrapeMotionValuesFromProps:Xc,createRenderState:Kc}),OA=$g({scrapeMotionValuesFromProps:Ug,createRenderState:Pg}),RA=Symbol.for("motionComponentSymbol");function VA(a,l,u){const r=G.useRef(u);G.useInsertionEffect(()=>{r.current=u});const c=G.useRef(null);return G.useCallback(d=>{d&&a.onMount?.(d),l&&(d?l.mount(d):l.unmount());const h=r.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])}const Ig=G.createContext({});function ol(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function _A(a,l,u,r,c,d){const{visualElement:h}=G.useContext(au),g=G.useContext(Jg),y=G.useContext(eu),m=G.useContext(Qc).reducedMotion,S=G.useRef(null);r=r||g.renderer,!S.current&&r&&(S.current=r(a,{visualState:l,parent:h,props:u,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:m,isSVG:d}));const v=S.current,b=G.useContext(Ig);v&&!v.projection&&c&&(v.type==="html"||v.type==="svg")&&UA(S.current,u,c,b);const O=G.useRef(!1);G.useInsertionEffect(()=>{v&&O.current&&v.update(u,y)});const j=u[sg],Y=G.useRef(!!j&&!window.MotionHandoffIsComplete?.(j)&&window.MotionHasOptimisedAnimation?.(j));return Ey(()=>{v&&(O.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),Y.current&&v.animationState&&v.animationState.animateChanges())}),G.useEffect(()=>{v&&(!Y.current&&v.animationState&&v.animationState.animateChanges(),Y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(j)}),Y.current=!1),v.enteringChildren=void 0)}),v}function UA(a,l,u,r){const{layoutId:c,layout:d,drag:h,dragConstraints:g,layoutScroll:y,layoutRoot:m,layoutCrossfade:S}=l;a.projection=new u(a.latestValues,l["data-framer-portal-id"]?void 0:t0(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||g&&ol(g),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:r,crossfade:S,layoutScroll:y,layoutRoot:m})}function t0(a){if(a)return a.options.allowProjection!==!1?a.projection:t0(a.parent)}function qr(a,{forwardMotionProps:l=!1,type:u}={},r,c){r&&mA(r);const d=u?u==="svg":Jc(a),h=d?OA:zA;function g(m,S){let v;const b={...G.useContext(Qc),...m,layoutId:BA(m)},{isStatic:O}=b,j=SA(m),Y=h(m,O);if(!O&&Ay){NA();const U=jA(b);v=U.MeasureLayout,j.visualElement=_A(a,Y,b,c,U.ProjectionNode,d)}return lt.jsxs(au.Provider,{value:j,children:[v&&j.visualElement?lt.jsx(v,{visualElement:j.visualElement,...b}):null,DA(a,m,VA(Y,j.visualElement,S),Y,O,l,d)]})}g.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=G.forwardRef(g);return y[RA]=a,y}function BA({layoutId:a}){const l=G.useContext(pc).id;return l&&a!==void 0?l+"-"+a:a}function NA(a,l){G.useContext(Jg).strict}function jA(a){const l=Fg(),{drag:u,layout:r}=l;if(!u&&!r)return{};const c={...u,...r};return{MeasureLayout:u?.isEnabled(a)||r?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function LA(a,l){if(typeof Proxy>"u")return qr;const u=new Map,r=(d,h)=>qr(d,h,a,l),c=(d,h)=>r(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?r:(u.has(h)||u.set(h,qr(h,void 0,a,l)),u.get(h))})}const HA=(a,l)=>l.isSVG??Jc(a)?new yb(l):new cb(l,{allowProjection:a!==G.Fragment});class wA extends Jn{constructor(l){super(l),l.animationState||(l.animationState=bb(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();nu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:u}=this.node.prevProps||{};l!==u&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let YA=0;class qA extends Jn{constructor(){super(...arguments),this.id=YA++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:u}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===r)return;const c=this.node.animationState.setActive("exit",!l);u&&!l&&c.then(()=>{u(this.id)})}mount(){const{register:l,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const GA={animation:{Feature:wA},exit:{Feature:qA}};function bl(a){return{point:{x:a.pageX,y:a.pageY}}}const XA=a=>l=>wc(l)&&a(l,bl(l));function hl(a,l,u,r){return gl(a,l,XA(u),r)}const e0=({current:a})=>a?a.ownerDocument.defaultView:null,hy=(a,l)=>Math.abs(a-l);function QA(a,l){const u=hy(a.x,l.x),r=hy(a.y,l.y);return Math.sqrt(u**2+r**2)}const dy=new Set(["auto","scroll"]);class n0{constructor(l,u,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:g}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=O=>{this.handleScroll(O.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=Xr(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,Y=QA(O.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!Y)return;const{point:U}=O,{timestamp:L}=te;this.history.push({...U,timestamp:L});const{onStart:q,onMove:H}=this.handlers;j||(q&&q(this.lastMoveEvent,O),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,O)},this.handlePointerMove=(O,j)=>{this.lastMoveEvent=O,this.lastMoveEventInfo=Gr(j,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(O,j)=>{this.end();const{onEnd:Y,onSessionEnd:U,resumeAnimation:L}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&L&&L(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=Xr(O.type==="pointercancel"?this.lastMoveEventInfo:Gr(j,this.transformPagePoint),this.history);this.startEvent&&Y&&Y(O,q),U&&U(O,q)},!wc(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=r,this.distanceThreshold=h,this.contextWindow=c||window;const y=bl(l),m=Gr(y,this.transformPagePoint),{point:S}=m,{timestamp:v}=te;this.history=[{...S,timestamp:v}];const{onSessionStart:b}=u;b&&b(l,Xr(m,this.history)),this.removeListeners=vl(hl(this.contextWindow,"pointermove",this.handlePointerMove),hl(this.contextWindow,"pointerup",this.handlePointerUp),hl(this.contextWindow,"pointercancel",this.handlePointerUp)),g&&this.startScrollTracking(g)}startScrollTracking(l){let u=l.parentElement;for(;u;){const r=getComputedStyle(u);(dy.has(r.overflowX)||dy.has(r.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),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 r=l===window,c=r?{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||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(l,c),zt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Zn(this.updatePoint)}}function Gr(a,l){return l?{point:l(a.point)}:a}function my(a,l){return{x:a.x-l.x,y:a.y-l.y}}function Xr({point:a},l){return{point:a,delta:my(a,i0(l)),offset:my(a,ZA(l)),velocity:KA(l,.1)}}function ZA(a){return a[0]}function i0(a){return a[a.length-1]}function KA(a,l){if(a.length<2)return{x:0,y:0};let u=a.length-1,r=null;const c=i0(a);for(;u>=0&&(r=a[u],!(c.timestamp-r.timestamp>yn(l)));)u--;if(!r)return{x:0,y:0};const d=Le(c.timestamp-r.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-r.x)/d,y:(c.y-r.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function JA(a,{min:l,max:u},r){return l!==void 0&&a<l?a=r?Vt(l,a,r.min):Math.max(a,l):u!==void 0&&a>u&&(a=r?Vt(u,a,r.max):Math.min(a,u)),a}function py(a,l,u){return{min:l!==void 0?a.min+l:void 0,max:u!==void 0?a.max+u-(a.max-a.min):void 0}}function FA(a,{top:l,left:u,bottom:r,right:c}){return{x:py(a.x,u,c),y:py(a.y,l,r)}}function yy(a,l){let u=l.min-a.min,r=l.max-a.max;return l.max-l.min<a.max-a.min&&([u,r]=[r,u]),{min:u,max:r}}function kA(a,l){return{x:yy(a.x,l.x),y:yy(a.y,l.y)}}function WA(a,l){let u=.5;const r=se(a),c=se(l);return c>r?u=dl(l.min,l.max-r,a.min):r>c&&(u=dl(a.min,a.max-c,l.min)),ke(0,1,u)}function PA(a,l){const u={};return l.min!==void 0&&(u.min=l.min-a.min),l.max!==void 0&&(u.max=l.max-a.min),u}const hc=.35;function $A(a=hc){return a===!1?a=0:a===!0&&(a=hc),{x:gy(a,"left","right"),y:gy(a,"top","bottom")}}function gy(a,l,u){return{min:vy(a,l),max:vy(a,u)}}function vy(a,l){return typeof a=="number"?a:a[l]||0}const IA=new WeakMap;class t2{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:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=v=>{u?(this.stopAnimation(),this.snapToCursor(bl(v).point)):this.pauseAnimation()},h=(v,b)=>{this.stopAnimation();const{drag:O,dragPropagation:j,onDragStart:Y}=this.getProps();if(O&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qT(O),!this.openDragLock))return;this.latestPointerEvent=v,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),je(L=>{let q=this.getAxisMotionValue(L).get()||0;if(Fe.test(q)){const{projection:H}=this.visualElement;if(H&&H.layout){const I=H.layout.layoutBox[L];I&&(q=se(I)*(parseFloat(q)/100))}}this.originPoint[L]=q}),Y&&zt.postRender(()=>Y(v,b)),lc(this.visualElement,"transform");const{animationState:U}=this.visualElement;U&&U.setActive("whileDrag",!0)},g=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:O,dragDirectionLock:j,onDirectionLock:Y,onDrag:U}=this.getProps();if(!O&&!this.openDragLock)return;const{offset:L}=b;if(j&&this.currentDirection===null){this.currentDirection=e2(L),this.currentDirection!==null&&Y&&Y(this.currentDirection);return}this.updateAxis("x",b.point,L),this.updateAxis("y",b.point,L),this.visualElement.render(),U&&U(v,b)},y=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b,this.stop(v,b),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>je(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:S}=this.getProps();this.panSession=new n0(l,{onSessionStart:d,onStart:h,onMove:g,onSessionEnd:y,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:S,distanceThreshold:r,contextWindow:e0(this.visualElement),element:this.visualElement.current})}stop(l,u){const r=l||this.latestPointerEvent,c=u||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!r)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:g}=this.getProps();g&&zt.postRender(()=>g(r,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:u}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}updateAxis(l,u,r){const{drag:c}=this.getProps();if(!r||!Xs(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+r[l];this.constraints&&this.constraints[l]&&(h=JA(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:u}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&ol(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&r?this.constraints=FA(r.layoutBox,l):this.constraints=!1,this.elastic=$A(u),c!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&je(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=PA(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!ol(l))return!1;const r=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=ab(r,c.root,this.visualElement.getTransformPagePoint());let h=kA(c.layout.layoutBox,d);if(u){const g=u(eb(h));this.hasMutatedConstraints=!!g,g&&(h=xg(g))}return h}startAnimation(l){const{drag:u,dragMomentum:r,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:g}=this.getProps(),y=this.constraints||{},m=je(S=>{if(!Xs(S,u,this.currentDirection))return;let v=y&&y[S]||{};h&&(v={min:0,max:0});const b=c?200:1e6,O=c?40:1e7,j={type:"inertia",velocity:r?l[S]:0,bounceStiffness:b,bounceDamping:O,timeConstant:750,restDelta:1,restSpeed:10,...d,...v};return this.startAxisValueAnimation(S,j)});return Promise.all(m).then(g)}startAxisValueAnimation(l,u){const r=this.getAxisMotionValue(l);return lc(this.visualElement,l),r.start(Bc(l,r,0,u,this.visualElement,!1))}stopAnimation(){je(l=>this.getAxisMotionValue(l).stop())}pauseAnimation(){je(l=>this.getAxisMotionValue(l).animation?.pause())}getAnimationState(l){return this.getAxisMotionValue(l).animation?.state}getAxisMotionValue(l){const u=`_drag${l.toUpperCase()}`,r=this.visualElement.getProps(),c=r[u];return c||this.visualElement.getValue(l,(r.initial?r.initial[l]:void 0)||0)}snapToCursor(l){je(u=>{const{drag:r}=this.getProps();if(!Xs(u,r,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:h,max:g}=c.layout.layoutBox[u],y=d.get()||0;d.set(l[u]-Vt(h,g,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:r}=this.visualElement;if(!ol(u)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};je(h=>{const g=this.getAxisMotionValue(h);if(g&&this.constraints!==!1){const y=g.get();c[h]=WA({min:y,max:y},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),je(h=>{if(!Xs(h,l,null))return;const g=this.getAxisMotionValue(h),{min:y,max:m}=this.constraints[h];g.set(Vt(y,m,c[h]))})}addListeners(){if(!this.visualElement.current)return;IA.set(this.visualElement,this);const l=this.visualElement.current,u=hl(l,"pointerdown",y=>{const{drag:m,dragListener:S=!0}=this.getProps();m&&S&&!vg(y.target)&&this.start(y)}),r=()=>{const{dragConstraints:y}=this.getProps();ol(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",r);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),zt.read(r);const h=gl(window,"resize",()=>this.scalePositionWithinConstraints()),g=c.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:m})=>{this.isDragging&&m&&(je(S=>{const v=this.getAxisMotionValue(S);v&&(this.originPoint[S]+=y[S].translate,v.set(v.get()+y[S].translate))}),this.visualElement.render())}));return()=>{h(),u(),d(),g&&g()}}getProps(){const l=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=hc,dragMomentum:g=!0}=l;return{...l,drag:u,dragDirectionLock:r,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:g}}}function Xs(a,l,u){return(l===!0||l===a)&&(u===null||u===a)}function e2(a,l=10){let u=null;return Math.abs(a.y)>l?u="y":Math.abs(a.x)>l&&(u="x"),u}class n2 extends Jn{constructor(l){super(l),this.removeGroupControls=He,this.removeListeners=He,this.controls=new t2(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()}}const Sy=a=>(l,u)=>{a&&zt.postRender(()=>a(l,u))};class i2 extends Jn{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(l){this.session=new n0(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:e0(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:Sy(l),onStart:Sy(u),onMove:r,onEnd:(d,h)=>{delete this.session,c&&zt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=hl(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 Qr=!1;class a2 extends G.Component{componentDidMount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:r,layoutId:c}=this.props,{projection:d}=l;d&&(u.group&&u.group.add(d),r&&r.register&&c&&r.register(d),Qr&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),Js.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:u,visualElement:r,drag:c,isPresent:d}=this.props,{projection:h}=r;return h&&(h.isPresent=d,Qr=!0,c||l.layoutDependency!==u||u===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||zt.postRender(()=>{const g=h.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Hc.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:r}=this.props,{projection:c}=l;Qr=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function a0(a){const[l,u]=Kg(),r=G.useContext(pc);return lt.jsx(a2,{...a,layoutGroup:r,switchLayoutGroup:G.useContext(Ig),isPresent:l,safeToRemove:u})}const l2={pan:{Feature:i2},drag:{Feature:n2,ProjectionNode:Zg,MeasureLayout:a0}};function Ty(a,l,u){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=r[c];d&&zt.postRender(()=>d(l,bl(l)))}class s2 extends Jn{mount(){const{current:l}=this.node;l&&(this.unmount=GT(l,(u,r)=>(Ty(this.node,r,"Start"),c=>Ty(this.node,c,"End"))))}unmount(){}}class u2 extends Jn{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=vl(gl(this.node.current,"focus",()=>this.onFocus()),gl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function by(a,l,u){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=r[c];d&&zt.postRender(()=>d(l,bl(l)))}class o2 extends Jn{mount(){const{current:l}=this.node;l&&(this.unmount=ZT(l,(u,r)=>(by(this.node,r,"Start"),(c,{success:d})=>by(this.node,c,d?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const dc=new WeakMap,Zr=new WeakMap,r2=a=>{const l=dc.get(a.target);l&&l(a)},c2=a=>{a.forEach(r2)};function f2({root:a,...l}){const u=a||document;Zr.has(u)||Zr.set(u,{});const r=Zr.get(u),c=JSON.stringify(l);return r[c]||(r[c]=new IntersectionObserver(c2,{root:a,...l})),r[c]}function h2(a,l,u){const r=f2(l);return dc.set(a,u),r.observe(a),()=>{dc.delete(a),r.unobserve(a)}}const d2={some:0,all:1};class m2 extends Jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:u,margin:r,amount:c="some",once:d}=l,h={root:u?u.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:d2[c]},g=y=>{const{isIntersecting:m}=y;if(this.isInView===m||(this.isInView=m,d&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:S,onViewportLeave:v}=this.node.getProps(),b=m?S:v;b&&b(y)};return h2(this.node.current,h,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(p2(l,u))&&this.startObserver()}unmount(){}}function p2({viewport:a={}},{viewport:l={}}={}){return u=>a[u]!==l[u]}const y2={inView:{Feature:m2},tap:{Feature:o2},focus:{Feature:u2},hover:{Feature:s2}},g2={layout:{ProjectionNode:Zg,MeasureLayout:a0}},v2={...GA,...y2,...l2,...g2},Fc=LA(v2,HA),S2=()=>{const[a,l]=G.useState([{id:1,label:"1-12 y/o",top:78},{id:2,label:"13-19 y/o",top:192},{id:3,label:"20-59 y/o",top:308},{id:4,label:"60-99 y/o",top:424}]),[u,r]=G.useState(3),[c,d]=G.useState(null),h=a.find(v=>v.id===u),g=(v,b)=>{v.dataTransfer.setData("text/plain",b.toString()),d(b)},y=v=>{v.preventDefault()},m=(v,b)=>{v.preventDefault();const O=parseInt(v.dataTransfer.getData("text/plain"));if(O===b)return;const j=a.findIndex(X=>X.id===O),Y=a.findIndex(X=>X.id===b),U=[...a],[L]=U.splice(j,1);U.splice(Y,0,L);const q=78,H=114,I=U.map((X,$)=>({...X,top:q+$*H}));l(I),d(null),b===u?r(O):O===u&&r(b)},S=()=>{d(null)};return lt.jsx("div",{className:"flex-1 h-full relative",children:lt.jsxs("div",{className:"relative h-full",children:[lt.jsx("img",{src:"/assets/img/leftrope.png",className:"z-100 absolute",alt:"rope"}),a.map(v=>lt.jsx("div",{className:`absolute left-8 text-xl cursor-pointer transition-colors ${v.id===u?"text-yellow-400 font-bold scale-110":"text-red-500 hover:text-red-400"}`,style:{top:`${v.top}px`},onClick:()=>r(v.id),draggable:"true",onDragStart:b=>g(b,v.id),onDragOver:y,onDrop:b=>m(b,v.id),onDragEnd:S,children:v.label},v.id)),lt.jsx(Zc,{children:h&<.jsx(Fc.img,{src:"/assets/img/woodpiece.png",className:"absolute left-0",initial:{y:h.top-352,opacity:0},animate:{y:h.top+35,opacity:1},exit:{opacity:0},transition:{type:"spring",stiffness:300,damping:20,duration:.5},alt:"wood piece"})}),lt.jsx("img",{src:"/assets/img/leftbutton.png",className:"w-full bottom-10 absolute"})]})})},T2=()=>{const[a,l]=G.useState([{id:1,label:"1D",top:78},{id:2,label:"2D",top:192},{id:3,label:"3D",top:308},{id:4,label:"4D",top:424}]),[u,r]=G.useState(1),[c,d]=G.useState(null),h=a.find(v=>v.id===u),g=(v,b)=>{v.dataTransfer.setData("text/plain",b.toString()),d(b)},y=v=>{v.preventDefault()},m=(v,b)=>{v.preventDefault();const O=parseInt(v.dataTransfer.getData("text/plain"));if(O===b)return;const j=a.findIndex(X=>X.id===O),Y=a.findIndex(X=>X.id===b),U=[...a],[L]=U.splice(j,1);U.splice(Y,0,L);const q=78,H=114,I=U.map((X,$)=>({...X,top:q+$*H}));l(I),d(null),b===u?r(O):O===u&&r(b)},S=()=>{d(null)};return lt.jsx("div",{className:"flex-1 h-full relative",children:lt.jsxs("div",{className:"relative h-full",children:[lt.jsx("img",{src:"/assets/img/leftrope.png",className:"z-100 absolute right-0",alt:"rope"}),a.map(v=>lt.jsx("div",{className:`absolute right-8 text-xl cursor-pointer transition-colors text-right ${v.id===u?"text-yellow-400 font-bold scale-110":"text-red-500 hover:text-red-400"}`,style:{top:`${v.top}px`},onClick:()=>r(v.id),draggable:"true",onDragStart:b=>g(b,v.id),onDragOver:y,onDrop:b=>m(b,v.id),onDragEnd:S,children:v.label},v.id)),lt.jsx(Zc,{children:h&<.jsx(Fc.img,{src:"/assets/img/rightwoodpiece.png",className:"absolute right-0",initial:{y:h.top-352,opacity:0},animate:{y:h.top+35,opacity:1},exit:{opacity:0},transition:{type:"spring",stiffness:300,damping:20,duration:.5},alt:"wood piece"})}),lt.jsx("img",{src:"/assets/img/rightbutton.png",className:"w-full bottom-10 absolute"})]})})},b2=()=>lt.jsx("div",{className:"flex-12 p-6",children:lt.jsx("img",{src:"/assets/img/bigimage.png",className:"w-full text-center"})}),A2=()=>{const a=["37%","39%","52%","69%","68%"],[l,u]=G.useState([{id:1,label:"Classical",sectionIndex:0},{id:2,label:"Digital",sectionIndex:1},{id:3,label:"Photographic",sectionIndex:2},{id:4,label:"Mixed",sectionIndex:3}]),[r,c]=G.useState(3),[d,h]=G.useState(0),g=G.useRef(null),y=l.find(U=>U.id===r);G.useEffect(()=>{const U=()=>{g.current&&h(g.current.offsetWidth)};return U(),window.addEventListener("resize",U),()=>window.removeEventListener("resize",U)},[]);const m=U=>d*parseInt(U)/100,S=U=>{const L=m(a[U]),q=m(a[U+1]);return(L+q)/2},v=(U,L)=>{U.dataTransfer.setData("text/plain",L.toString())},b=U=>{U.preventDefault()},O=(U,L)=>{U.preventDefault();const q=parseInt(U.dataTransfer.getData("text/plain"));if(q===L)return;const H=l.find($=>$.id===q),I=l.find($=>$.id===L),X=l.map($=>$.id===q?{...$,sectionIndex:I.sectionIndex}:$.id===L?{...$,sectionIndex:H.sectionIndex}:$);X.sort(($,K)=>$.sectionIndex-K.sectionIndex),u(X),L===r?c(q):q===r&&c(L)},j=U=>S(U),Y=U=>{const L=j(U.sectionIndex),H=U.label.length*10;return L+H/2+10};return lt.jsxs("div",{className:"relative",ref:g,children:[d>0&&y&<.jsx(Zc,{children:lt.jsx(Fc.img,{src:"/assets/img/topwoodpiece.png",className:"absolute z-0",style:{top:"0px",left:`${Y(y)}px`,transform:"translateX(-50%)"},initial:{y:-100,opacity:0},animate:{y:0,opacity:1},exit:{opacity:0,y:-50,transition:{duration:.2}},transition:{type:"spring",stiffness:300,damping:20,duration:.5},alt:"wood piece"},r)}),lt.jsx("div",{className:"relative",children:lt.jsx("img",{src:"/assets/img/toprope.png",className:"w-full absolute z-10 top-2",alt:"top rope"})}),d>0&&l.map(U=>{const L=j(U.sectionIndex);return lt.jsx("div",{className:`absolute top-12 text-xl cursor-pointer transition-all duration-300 whitespace-nowrap z-20 ${U.id===r?"text-yellow-400 font-bold scale-110":"text-red-500 hover:text-red-400"}`,style:{left:`${L}px`,transform:"translateX(-50%)"},onClick:()=>c(U.id),draggable:"true",onDragStart:q=>v(q,U.id),onDragOver:b,onDrop:q=>O(q,U.id),onDragEnd:()=>{},children:U.label},U.id)})]})};function E2(){return lt.jsxs("div",{className:"relative bg-black text-red-500 w-full h-screen overflow-hidden",children:[lt.jsx("div",{className:"absolute top-0 left-0 right-0 z-0 h-20",children:lt.jsx(A2,{})}),lt.jsx("div",{className:"absolute top-0 left-0 bottom-0 z-20 w-1/5",children:lt.jsx(S2,{})}),lt.jsx("div",{className:"absolute top-0 right-0 bottom-0 z-20 w-1/5",children:lt.jsx(T2,{})}),lt.jsx("div",{className:"absolute top-40 left-1/5 right-1/5 bottom-0 z-10 overflow-auto",children:lt.jsx(b2,{})})]})}L1.createRoot(document.getElementById("root")).render(lt.jsx(G.StrictMode,{children:lt.jsx(E2,{})}));