PageSourceSearch

https://movie-palace-drab.vercel.app/assets/index-DhBNjJYE.js

js movie-palace-drab.vercel.app collected 2026-10-03 07:20:29 UTC 388,083 bytes, 61 lines download raw bytes

vendor: 4,563 bytes, lines 1-17
1(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function s(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(u){if(u.ep)return;u.ep=!0;const d=s(u);fetch(u.href,d)}})();function _b(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Iu={exports:{}},bl={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Dp;function Mb(){if(Dp)return bl;Dp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,u,d){var f=null;if(d!==void 0&&(f=""+d),u.key!==void 0&&(f=""+u.key),"key"in u){d={};for(var h in u)h!=="key"&&(d[h]=u[h])}else d=u;return u=d.ref,{$$typeof:n,type:r,key:f,ref:u!==void 0?u:null,props:d}}return bl.Fragment=i,bl.jsx=s,bl.jsxs=s,bl}var Cp;function Rb(){return Cp||(Cp=1,Iu.exports=Mb()),Iu.exports}var V=Rb(),tc={exports:{}},rt={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Op;function wb(){if(Op)return rt;Op=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.iterator;function x(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,D={};function j(A,X,J){this.props=A,this.context=X,this.refs=D,this.updater=J||E}j.prototype.isReactComponent={},j.prototype.setState=function(A,X){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,X,"setState")},j.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=j.prototype;function C(A,X,J){this.props=A,this.context=X,this.refs=D,this.updater=J||E}var O=C.prototype=new R;O.constructor=C,_(O,j.prototype),O.isPureReactComponent=!0;var Y=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;function Z(A,X,J,$,et,mt){return J=mt.ref,{$$typeof:n,type:A,key:X,ref:J!==void 0?J:null,props:mt}}function K(A,X){return Z(A.type,X,void 0,void 0,void 0,A.props)}function tt(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ot(A){var X={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(J){return X[J]})}var vt=/\/+/g;function _t(A,X){return typeof A=="object"&&A!==null&&A.key!=null?ot(""+A.key):X.toString(36)}function oe(){}function _e(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(oe,oe):(A.status="pending",A.then(function(X){A.status==="pending"&&(A.status="fulfilled",A.value=X)},function(X){A.status==="pending"&&(A.status="rejected",A.reason=X)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function Yt(A,X,J,$,et){var mt=typeof A;(mt==="undefined"||mt==="boolean")&&(A=null);var st=!1;if(A===null)st=!0;else switch(mt){case"bigint":case"string":case"number":st=!0;break;case"object":switch(A.$$typeof){case n:case i:st=!0;break;case g:return st=A._init,Yt(st(A._payload),X,J,$,et)}}if(st)return et=et(A),st=$===""?"."+_t(A,0):$,Y(et)?(J="",st!=null&&(J=st.replace(vt,"$&/")+"/"),Yt(et,X,J,"",function(An){return An})):et!=null&&(tt(et)&&(et=K(et,J+(et.key==null||A&&A.key===et.key?"":(""+et.ke
vendor: 6,681 bytes, lines 17-25
17y).replace(vt,"$&/")+"/")+st)),X.push(et)),1;st=0;var pe=$===""?".":$+":";if(Y(A))for(var Dt=0;Dt<A.length;Dt++)$=A[Dt],mt=pe+_t($,Dt),st+=Yt($,X,J,mt,et);else if(Dt=x(A),typeof Dt=="function")for(A=Dt.call(A),Dt=0;!($=A.next()).done;)$=$.value,mt=pe+_t($,Dt++),st+=Yt($,X,J,mt,et);else if(mt==="object"){if(typeof A.then=="function")return Yt(_e(A),X,J,$,et);throw X=String(A),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return st}function H(A,X,J){if(A==null)return A;var $=[],et=0;return Yt(A,$,"","",function(mt){return X.call(J,mt,et++)}),$}function Q(A){if(A._status===-1){var X=A._result;X=X(),X.then(function(J){(A._status===0||A._status===-1)&&(A._status=1,A._result=J)},function(J){(A._status===0||A._status===-1)&&(A._status=2,A._result=J)}),A._status===-1&&(A._status=0,A._result=X)}if(A._status===1)return A._result.default;throw A._result}var F=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)};function yt(){}return rt.Children={map:H,forEach:function(A,X,J){H(A,function(){X.apply(this,arguments)},J)},count:function(A){var X=0;return H(A,function(){X++}),X},toArray:function(A){return H(A,function(X){return X})||[]},only:function(A){if(!tt(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},rt.Component=j,rt.Fragment=s,rt.Profiler=u,rt.PureComponent=C,rt.StrictMode=r,rt.Suspense=p,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,rt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return B.H.useMemoCache(A)}},rt.cache=function(A){return function(){return A.apply(null,arguments)}},rt.cloneElement=function(A,X,J){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var $=_({},A.props),et=A.key,mt=void 0;if(X!=null)for(st in X.ref!==void 0&&(mt=void 0),X.key!==void 0&&(et=""+X.key),X)!P.call(X,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&X.ref===void 0||($[st]=X[st]);var st=arguments.length-2;if(st===1)$.children=J;else if(1<st){for(var pe=Array(st),Dt=0;Dt<st;Dt++)pe[Dt]=arguments[Dt+2];$.children=pe}return Z(A.type,et,void 0,void 0,mt,$)},rt.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},rt.createElement=function(A,X,J){var $,et={},mt=null;if(X!=null)for($ in X.key!==void 0&&(mt=""+X.key),X)P.call(X,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(et[$]=X[$]);var st=arguments.length-2;if(st===1)et.children=J;else if(1<st){for(var pe=Array(st),Dt=0;Dt<st;Dt++)pe[Dt]=arguments[Dt+2];et.children=pe}if(A&&A.defaultProps)for($ in st=A.defaultProps,st)et[$]===void 0&&(et[$]=st[$]);return Z(A,mt,void 0,void 0,null,et)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(A){return{$$typeof:h,render:A}},rt.isValidElement=tt,rt.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:Q}},rt.memo=function(A,X){return{$$typeof:m,type:A,compare:X===void 0?null:X}},rt.startTransition=function(A){var X=B.T,J={};B.T=J;try{var $=A(),et=B.S;et!==null&&et(J,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(yt,F)}catch(mt){F(mt)}finally{B.T=X}},rt.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},rt.use=function(A){return B.H.use(A)},rt.useActionState=function(A,X,J){return B.H.useActionState(A,X,J)},rt.useCallback=function(A,X){return B.H.useCallback(A,X)},rt.useContext=function(A){return B.H.useContext(A)},rt.useDebugValue=function(){},rt.useDeferredValue=function(A,X){return B.H.useDeferredValue(A,X)},rt.useEffect=function(A,X,J){var $=B.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return $.useEffect(A,X)},rt.useId=function(){return B.H.useId()},rt.useImperativeHandle=function(A,X,J){return B.H.useImperativeHandle(A,X,J)},rt.useInsertionEffect=function(A,X){return B.H.useInsertionEffect(A,X)},rt.useLayoutEffect=function(A,X){return B.H.useLayoutEffect(A,X)},rt.useMemo=function(A,X){return B.H.useMemo(A,X)},rt.useOptimistic=function(A,X){return B.H.useOptimistic(A,X)},rt.useReducer=function(A,X,J){return B.H.useReducer(A,X,J)},rt.useRef=function(A){return B.H.useRef(A)},rt.useState=function(A){return B.H.useState(A)},rt.useSyncExternalStore=function(A,X,J){return B.H.useSyncExternalStore(A,X,J)},rt.useTransition=function(){return B.H.useTransition()},rt.version="19.1.0",rt}var Np;function Pc(){return Np||(Np=1,tc.exports=wb()),tc.exports}var S=Pc();const wt=_b(S);var ec={exports:{}},xl={},nc={exports:{}},ac={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var zp;function Db(){return zp||(zp=1,function(n){function i(H,Q){var F=H.length;H.push(Q);t:for(;0<F;){var yt=F-1>>>1,A=H[yt];if(0<u(A,Q))H[yt]=Q,H[F]=A,F=yt;else break t}}function s(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var Q=H[0],F=H.pop();if(F!==Q){H[0]=F;t:for(var yt=0,A=H.length,X=A>>>1;yt<X;){var J=2*(yt+1)-1,$=H[J],et=J+1,mt=H[et];if(0>u($,F))et<A&&0>u(mt,$)?(H[yt]=mt,H[et]=F,yt=et):(H[yt]=$,H[J]=F,yt=J);else if(et<A&&0>u(mt,F))H[yt]=mt,H[et]=F,yt=et;else break t}}return Q}function u(H,Q){var F=H.sortIndex-Q.sortIndex;return F!==0?F:H.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var p=[],m=[],g=1,b=null,x=3,E=!1,_=!1,D=!1,j=!1,R=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function Y(H){for(var Q=s(m);Q!==null;){if(Q.callback===null)r(m);else if(Q.startTime<=H)r(m),Q.sortIndex=Q.expirationTime,i(p,Q);else break;Q=s(m)}}function B(H){if(D=!1,Y(H),!_)if(s(p)!==null)_=!0,P||(P=!0,_t());else{var Q=s(m);Q!==null&&Yt(B,Q.startTime-H)}}var P=!1,Z=-1,K=5,tt=-1;function ot(){return j?!0:!(n.unstable_now()-tt<K)}
vendor: 6,455 bytes, lines 25-41
25function vt(){if(j=!1,P){var H=n.unstable_now();tt=H;var Q=!0;try{t:{_=!1,D&&(D=!1,C(Z),Z=-1),E=!0;var F=x;try{e:{for(Y(H),b=s(p);b!==null&&!(b.expirationTime>H&&ot());){var yt=b.callback;if(typeof yt=="function"){b.callback=null,x=b.priorityLevel;var A=yt(b.expirationTime<=H);if(H=n.unstable_now(),typeof A=="function"){b.callback=A,Y(H),Q=!0;break e}b===s(p)&&r(p),Y(H)}else r(p);b=s(p)}if(b!==null)Q=!0;else{var X=s(m);X!==null&&Yt(B,X.startTime-H),Q=!1}}break t}finally{b=null,x=F,E=!1}Q=void 0}}finally{Q?_t():P=!1}}}var _t;if(typeof O=="function")_t=function(){O(vt)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,_e=oe.port2;oe.port1.onmessage=vt,_t=function(){_e.postMessage(null)}}else _t=function(){R(vt,0)};function Yt(H,Q){Z=R(function(){H(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(H){switch(x){case 1:case 2:case 3:var Q=3;break;default:Q=x}var F=x;x=Q;try{return H()}finally{x=F}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(H,Q){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var F=x;x=H;try{return Q()}finally{x=F}},n.unstable_scheduleCallback=function(H,Q,F){var yt=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?yt+F:yt):F=yt,H){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=F+A,H={id:g++,callback:Q,priorityLevel:H,startTime:F,expirationTime:A,sortIndex:-1},F>yt?(H.sortIndex=F,i(m,H),s(p)===null&&H===s(m)&&(D?(C(Z),Z=-1):D=!0,Yt(B,F-yt))):(H.sortIndex=A,i(p,H),_||E||(_=!0,P||(P=!0,_t()))),H},n.unstable_shouldYield=ot,n.unstable_wrapCallback=function(H){var Q=x;return function(){var F=x;x=Q;try{return H.apply(this,arguments)}finally{x=F}}}}(ac)),ac}var Vp;function Cb(){return Vp||(Vp=1,nc.exports=Db()),nc.exports}var ic={exports:{}},ae={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var jp;function Ob(){if(jp)return ae;jp=1;var n=Pc();function i(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(p,m,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:p,containerInfo:m,implementation:g}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ae.createPortal=function(p,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(p,m,null,g)},ae.flushSync=function(p){var m=f.T,g=r.p;try{if(f.T=null,r.p=2,p)return p()}finally{f.T=m,r.p=g,r.d.f()}},ae.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},ae.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ae.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var g=m.as,b=h(g,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:E}):g==="script"&&r.d.X(p,{crossOrigin:b,integrity:x,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ae.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=h(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},ae.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,b=h(g,m.crossOrigin);r.d.L(p,g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ae.preloadModule=function(p,m){if(typeof p=="string")if(m){var g=h(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},ae.requestFormReset=function(p){r.d.r(p)},ae.unstable_batchedUpdates=function(p,m){return p(m)},ae.useFormState=function(p,m,g){return f.H.useFormState(p,m,g)},ae.useFormStatus=function(){return f.H.useHostTransitionStatus()},ae.version="19.1.0",ae}var Lp;function Nb(){if(Lp)return ic.exports;Lp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),ic.exports=Ob(),ic.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var Up;function zb(){if(Up)return xl;Up=1;
vendor: 19,639 bytes, lines 41-48
41var n=Cb(),i=Pc(),s=Nb();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}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 u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function f(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 h(t){if(d(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return h(o),t;if(c===l)return h(o),e;c=c.sibling}throw Error(r(188))}if(a.return!==l.return)a=o,l=c;else{for(var y=!1,v=o.child;v;){if(v===a){y=!0,a=o,l=c;break}if(v===l){y=!0,l=o,a=c;break}v=v.sibling}if(!y){for(v=c.child;v;){if(v===a){y=!0,a=c,l=o;break}if(v===l){y=!0,l=c,a=o;break}v=v.sibling}if(!y)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function m(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=m(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),O=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),tt=Symbol.for("react.activity"),ot=Symbol.for("react.memo_cache_sentinel"),vt=Symbol.iterator;function _t(t){return t===null||typeof t!="object"?null:(t=vt&&t[vt]||t["@@iterator"],typeof t=="function"?t:null)}var oe=Symbol.for("react.client.reference");function _e(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===oe?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case j:return"Profiler";case D:return"StrictMode";case B:return"Suspense";case P:return"SuspenseList";case tt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case O:return(t.displayName||"Context")+".Provider";case C:return(t._context.displayName||"Context")+".Consumer";case Y:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return e=t.displayName||null,e!==null?e:_e(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return _e(t(e))}catch{}}return null}var Yt=Array.isArray,H=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},yt=[],A=-1;function X(t){return{current:t}}function J(t){0>A||(t.current=yt[A],yt[A]=null,A--)}function $(t,e){A++,yt[A]=t.current,t.current=e}var et=X(null),mt=X(null),st=X(null),pe=X(null);function Dt(t,e){switch($(st,e),$(mt,t),$(et,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?ap(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ap(e),t=ip(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}J(et),$(et,t)}function An(){J(et),J(mt),J(st)}function Ur(t){t.memoizedState!==null&&$(pe,t);var e=et.current,a=ip(e,t.type);e!==a&&($(mt,t),$(et,a))}function Zl(t){mt.current===t&&(J(et),J(mt)),pe.current===t&&(J(pe),ml._currentValue=F)}var Br=Object.prototype.hasOwnProperty,Hr=n.unstable_scheduleCallback,qr=n.unstable_cancelCallback,av=n.unstable_shouldYield,iv=n.unstable_requestPaint,Xe=n.unstable_now,lv=n.unstable_getCurrentPriorityLevel,Uf=n.unstable_ImmediatePriority,Bf=n.unstable_UserBlockingPriority,$l=n.unstable_NormalPriority,sv=n.unstable_LowPriority,Hf=n.unstable_IdlePriority,rv=n.log,ov=n.unstable_setDisableYieldValue,Si=null,ye=null;function _n(t){if(typeof rv=="function"&&ov(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(Si,t)}catch{}}var ge=Math.clz32?Math.clz32:fv,uv=Math.log,cv=Math.LN2;function fv(t){return t>>>=0,t===0?32:31-(uv(t)/cv|0)|0}var Jl=256,Fl=4194304;function In(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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;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 Wl(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var o=0,c=t.suspendedLanes,y=t.pingedLanes;t=t.warmLanes;var v=l&134217727;return v!==0?(l=v&~c,l!==0?o=In(l):(y&=v,y!==0?o=In(y):a||(a=v&~t,a!==0&&(o=In(a))))):(v=l&~c,v!==0?o=In(v):y!==0?o=In(y):a||(a=l&~t,a!==0&&(o=In(a)))),o===0?0:e!==0&&e!==o&&(e&c)===0&&(c=o&-o,a=e&-e,c>=a||c===32&&(a&4194048)!==0)?e:o}function Ei(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function dv(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 qf(){var t=Jl;return Jl<<=1,(Jl&4194048)===0&&(Jl=256),t}function Yf(){var t=Fl;return Fl<<=1,(Fl&62914560)===0&&(Fl=4194304),t}function Yr(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Ai(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function hv(t,e,a,l,o,c){var y=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var v=t.entanglements,T=t.expirationTimes,z=t.hiddenUpdates;for(a=y&~a;0<a;){var q=31-ge(a),G=1<<q;v[q]=0,T[q]=-1;var L=z[q];if(L!==null)for(z[q]=null,q=0;q<L.length;q++){var U=L[q];U!==null&&(U.lane&=-536870913)}a&=~G}l!==0&&kf(t,l,0),c!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=c&~(y&~e))}function kf(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ge(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&4194090}function Gf(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-ge(a),o=1<<l;o&e|t[l]&e&&(t[l]|=e),a&=~o}}function kr(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 Gr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Xf(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:Ep(t.type))}function mv(t,e){var a=Q.p;try{return Q.p=t,e()}finally{Q.p=a}}var Mn=Math.random().toString(36).slice(2),ee="__reactFiber$"+Mn,ue="__reactProps$"+Mn,_a="__reactContainer$"+Mn,Xr="__reactEvents$"+Mn,pv="__reactListeners$"+Mn,yv="__reactHandles$"+Mn,Kf="__reactResources$"+Mn,_i="__reactMarker$"+Mn;function Kr(t){delete t[ee],delete t[ue],delete t[Xr],delete t[pv],delete t[yv]}function Ma(t){var e=t[ee];if(e)return e;for(var a=t.parentNode;a;){if(e=a[_a]||a[ee]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=op(t);t!==null;){if(a=t[ee])return a;t=op(t)}return e}t=a,a=t.parentNode}return null}function Ra(t){if(t=t[ee]||t[_a]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Mi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function wa(t){var e=t[Kf];return e||(e=t[Kf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[_i]=!0}var Qf=new Set,Pf={};function ta(t,e){Da(t,e),Da(t+"Capture",e)}function Da(t,e){for(Pf[t]=e,t=0;t<e.length;t++)Qf.add(e[t])}var gv=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]*$"),Zf={},$f={};function vv(t){return Br.call($f,t)?!0:Br.call(Zf,t)?!1:gv.test(t)?$f[t]=!0:(Zf[t]=!0,!1)}function Il(t,e,a){if(vv(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function ts(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function en(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}var Qr,Jf;function Ca(t){if(Qr===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);Qr=e&&e[1]||"",Jf=-1<a.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+Qr+t+Jf}var Pr=!1;function Zr(t,e){if(!t||Pr)return"";Pr=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(U){var L=U}Reflect.construct(t,[],G)}else{try{G.call()}catch(U){L=U}t.call(G.prototype)}}else{try{throw Error()}catch(U){L=U}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(U){if(U&&L&&typeof U.stack=="string")return[U.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),y=c[0],v=c[1];if(y&&v){var T=y.split(`
44`),z=v.split(`
45`);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===z.length)for(l=T.length-1,o=z.length-1;1<=l&&0<=o&&T[l]!==z[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==z[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==z[o]){var q=`
46`+T[l].replace(" at new "," at ");return t.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",t.displayName)),q}while(1<=l&&0<=o);break}}}finally{Pr=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Ca(a):""}function bv(t){switch(t.tag){case 26:case 27:case 5:return Ca(t.type);case 16:return Ca("Lazy");case 13:return Ca("Suspense");case 19:return Ca("SuspenseList");case 0:case 15:return Zr(t.type,!1);case 11:return Zr(t.type.render,!1);case 1:return Zr(t.type,!0);case 31:return Ca("Activity");default:return""}}function Ff(t){try{var e="";do e+=bv(t),t=t.return;while(t);return e}catch(a){return`
47Error generating stack: `+a.message+`
48`+a.stack}}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 Wf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function xv(t){var e=Wf(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),l=""+t[e];if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(y){l=""+y,c.call(this,y)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function es(t){t._valueTracker||(t._valueTracker=xv(t))}function If(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=Wf(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function ns(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 Tv=/[\n"\\]/g;function Re(t){return t.replace(Tv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $r(t,e,a,l,o,c,y,v){t.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.type=y:t.removeAttribute("type"),e!=null?y==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Me(e)):t.value!==""+Me(e)&&(t.value=""+Me(e)):y!=="submit"&&y!=="reset"||t.removeAttribute("value"),e!=null?Jr(t,y,Me(e)):a!=null?Jr(t,y,Me(a)):l!=null&&t.removeAttribute("value"),o==null&&c!=null&&(t.defaultChecked=!!c),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Me(v):t.removeAttribute("name")}function td(t,e,a,l,o,c,y,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||e!=null))return;a=a!=null?""+Me(a):"",e=e!=null?""+Me(e):a,v||e===t.value||(t.value=e),t.defaultValue=e}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=v?t.checked:!!l,t.defaultChecked=!!l,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.name=y)}function Jr(t,e,a){e==="number"&&ns(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Oa(t,e,a,l){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&l&&(t[a].defaultSelected=!0)}else{for(a=""+Me(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,l&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function ed(t,e,a){if(e!=null&&(e=""+Me(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Me(a):""}function nd(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(Yt(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=Me(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l)}function Na(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var Sv=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 ad(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||Sv.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function id(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var o in e)l=e[o],e.hasOwnProperty(o)&&a[o]!==l&&ad(t,o,l)}else for(var c in e)e.hasOwnProperty(c)&&ad(t,c,e[c])}function Fr(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 Ev=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
48-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"]]),Av=/^[\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 as(t){return Av.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Wr=null;function Ir(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var za=null,Va=null;function ld(t){var e=Ra(t);if(e&&(t=e.stateNode)){var a=t[ue]||null;t:switch(t=e.stateNode,e.type){case"input":if($r(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Re(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var o=l[ue]||null;if(!o)throw Error(r(90));$r(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&If(l)}break t;case"textarea":ed(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Oa(t,!!a.multiple,e,!1)}}}var to=!1;function sd(t,e,a){if(to)return t(e,a);to=!0;try{var l=t(e);return l}finally{if(to=!1,(za!==null||Va!==null)&&(ks(),za&&(e=za,t=Va,Va=za=null,ld(e),t)))for(e=0;e<t.length;e++)ld(t[e])}}function Ri(t,e){var a=t.stateNode;if(a===null)return null;var l=a[ue]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eo=!1;if(nn)try{var wi={};Object.defineProperty(wi,"passive",{get:function(){eo=!0}}),window.addEventListener("test",wi,wi),window.removeEventListener("test",wi,wi)}catch{eo=!1}var Rn=null,no=null,is=null;function rd(){if(is)return is;var t,e=no,a=e.length,l,o="value"in Rn?Rn.value:Rn.textContent,c=o.length;for(t=0;t<a&&e[t]===o[t];t++);var y=a-t;for(l=1;l<=y&&e[a-l]===o[c-l];l++);return is=o.slice(t,1<l?1-l:void 0)}function ls(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 ss(){return!0}function od(){return!1}function ce(t){function e(a,l,o,c,y){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=y,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(a=t[v],this[v]=a?a(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ss:od,this.isPropagationStopped=od,this}return g(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ss)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ss)},persist:function(){},isPersistent:ss}),e}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rs=ce(ea),Di=g({},ea,{view:0,detail:0}),_v=ce(Di),ao,io,Ci,os=g({},Di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:so,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!==Ci&&(Ci&&t.type==="mousemove"?(ao=t.screenX-Ci.screenX,io=t.screenY-Ci.screenY):io=ao=0,Ci=t),ao)},movementY:function(t){return"movementY"in t?t.movementY:io}}),ud=ce(os),Mv=g({},os,{dataTransfer:0}),Rv=ce(Mv),wv=g({},Di,{relatedTarget:0}),lo=ce(wv),Dv=g({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),Cv=ce(Dv),Ov=g({},ea,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Nv=ce(Ov),zv=g({},ea,{data:0}),cd=ce(zv),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Lv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Lv[t])?!!e[t]:!1}function so(){return Uv}var Bv=g({},Di,{key:function(t){if(t.key){var e=Vv[t.key]||t.key;if(e!=="Unidentified")return e}
vendor: 4,948 bytes, line 48
48return t.type==="keypress"?(t=ls(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?jv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:so,charCode:function(t){return t.type==="keypress"?ls(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ls(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Hv=ce(Bv),qv=g({},os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fd=ce(qv),Yv=g({},Di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:so}),kv=ce(Yv),Gv=g({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xv=ce(Gv),Kv=g({},os,{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}),Qv=ce(Kv),Pv=g({},ea,{newState:0,oldState:0}),Zv=ce(Pv),$v=[9,13,27,32],ro=nn&&"CompositionEvent"in window,Oi=null;nn&&"documentMode"in document&&(Oi=document.documentMode);var Jv=nn&&"TextEvent"in window&&!Oi,dd=nn&&(!ro||Oi&&8<Oi&&11>=Oi),hd=" ",md=!1;function pd(t,e){switch(t){case"keyup":return $v.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ja=!1;function Fv(t,e){switch(t){case"compositionend":return yd(e);case"keypress":return e.which!==32?null:(md=!0,hd);case"textInput":return t=e.data,t===hd&&md?null:t;default:return null}}function Wv(t,e){if(ja)return t==="compositionend"||!ro&&pd(t,e)?(t=rd(),is=no=Rn=null,ja=!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 dd&&e.locale!=="ko"?null:e.data;default:return null}}var Iv={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 gd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Iv[t.type]:e==="textarea"}function vd(t,e,a,l){za?Va?Va.push(l):Va=[l]:za=l,e=Zs(e,"onChange"),0<e.length&&(a=new rs("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Ni=null,zi=null;function t1(t){Wm(t,0)}function us(t){var e=Mi(t);if(If(e))return t}function bd(t,e){if(t==="change")return e}var xd=!1;if(nn){var oo;if(nn){var uo="oninput"in document;if(!uo){var Td=document.createElement("div");Td.setAttribute("oninput","return;"),uo=typeof Td.oninput=="function"}oo=uo}else oo=!1;xd=oo&&(!document.documentMode||9<document.documentMode)}function Sd(){Ni&&(Ni.detachEvent("onpropertychange",Ed),zi=Ni=null)}function Ed(t){if(t.propertyName==="value"&&us(zi)){var e=[];vd(e,zi,t,Ir(t)),sd(t1,e)}}function e1(t,e,a){t==="focusin"?(Sd(),Ni=e,zi=a,Ni.attachEvent("onpropertychange",Ed)):t==="focusout"&&Sd()}function n1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return us(zi)}function a1(t,e){if(t==="click")return us(e)}function i1(t,e){if(t==="input"||t==="change")return us(e)}function l1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ve=typeof Object.is=="function"?Object.is:l1;function Vi(t,e){if(ve(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Br.call(e,o)||!ve(t[o],e[o]))return!1}return!0}function Ad(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function _d(t,e){var a=Ad(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Ad(a)}}function Md(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Md(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Rd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ns(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=ns(t.document)}return e}function co(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 s1=nn&&"documentMode"in document&&11>=document.documentMode,La=null,fo=null,ji=null,ho=!1;function wd(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;
vendor: 139,794 bytes, lines 48-49
48ho||La==null||La!==ns(l)||(l=La,"selectionStart"in l&&co(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ji&&Vi(ji,l)||(ji=l,l=Zs(fo,"onSelect"),0<l.length&&(e=new rs("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=La)))}function na(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Ua={animationend:na("Animation","AnimationEnd"),animationiteration:na("Animation","AnimationIteration"),animationstart:na("Animation","AnimationStart"),transitionrun:na("Transition","TransitionRun"),transitionstart:na("Transition","TransitionStart"),transitioncancel:na("Transition","TransitionCancel"),transitionend:na("Transition","TransitionEnd")},mo={},Dd={};nn&&(Dd=document.createElement("div").style,"AnimationEvent"in window||(delete Ua.animationend.animation,delete Ua.animationiteration.animation,delete Ua.animationstart.animation),"TransitionEvent"in window||delete Ua.transitionend.transition);function aa(t){if(mo[t])return mo[t];if(!Ua[t])return t;var e=Ua[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Dd)return mo[t]=e[a];return t}var Cd=aa("animationend"),Od=aa("animationiteration"),Nd=aa("animationstart"),r1=aa("transitionrun"),o1=aa("transitionstart"),u1=aa("transitioncancel"),zd=aa("transitionend"),Vd=new Map,po="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(" ");po.push("scrollEnd");function Be(t,e){Vd.set(t,e),ta(e,[t])}var jd=new WeakMap;function we(t,e){if(typeof t=="object"&&t!==null){var a=jd.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Ff(e)},jd.set(t,e),e)}return{value:t,source:e,stack:Ff(e)}}var De=[],Ba=0,yo=0;function cs(){for(var t=Ba,e=yo=Ba=0;e<t;){var a=De[e];De[e++]=null;var l=De[e];De[e++]=null;var o=De[e];De[e++]=null;var c=De[e];if(De[e++]=null,l!==null&&o!==null){var y=l.pending;y===null?o.next=o:(o.next=y.next,y.next=o),l.pending=o}c!==0&&Ld(a,o,c)}}function fs(t,e,a,l){De[Ba++]=t,De[Ba++]=e,De[Ba++]=a,De[Ba++]=l,yo|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function go(t,e,a,l){return fs(t,e,a,l),ds(t)}function Ha(t,e){return fs(t,null,null,e),ds(t)}function Ld(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var o=!1,c=t.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(o=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,o&&e!==null&&(o=31-ge(a),t=c.hiddenUpdates,l=t[o],l===null?t[o]=[e]:l.push(e),e.lane=a|536870912),c):null}function ds(t){if(50<sl)throw sl=0,Eu=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var qa={};function c1(t,e,a,l){this.tag=t,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function be(t,e,a,l){return new c1(t,e,a,l)}function vo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function an(t,e){var a=t.alternate;return a===null?(a=be(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Ud(t,e){t.flags&=65011714;var a=t.alternate;return a===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=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function hs(t,e,a,l,o,c){var y=0;if(l=t,typeof t=="function")vo(t)&&(y=1);else if(typeof t=="string")y=db(t,a,et.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case tt:return t=be(31,a,e,o),t.elementType=tt,t.lanes=c,t;case _:return ia(a.children,o,c,e);case D:y=8,o|=24;break;case j:return t=be(12,a,e,o|2),t.elementType=j,t.lanes=c,t;case B:return t=be(13,a,e,o),t.elementType=B,t.lanes=c,t;case P:return t=be(19,a,e,o),t.elementType=P,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case R:case O:y=10;break t;case C:y=9;break t;case Y:y=11;break t;case Z:y=14;break t;case K:y=16,l=null;break t}y=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=be(y,a,e,o),e.elementType=t,e.type=l,e.lanes=c,e}function ia(t,e,a,l){return t=be(7,t,l,e),t.lanes=a,t}function bo(t,e,a){return t=be(6,t,null,e),t.lanes=a,t}function xo(t,e,a){return e=be(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ya=[],ka=0,ms=null,ps=0,Ce=[],Oe=0,la=null,ln=1,sn="";function sa(t,e){Ya[ka++]=ps,Ya[ka++]=ms,ms=t,ps=e}function Bd(t,e,a){Ce[Oe++]=ln,Ce[Oe++]=sn,Ce[Oe++]=la,la=t;var l=ln;t=sn;var o=32-ge(l)-1;l&=~(1<<o),a+=1;var c=32-ge(e)+o;if(30<c){var y=o-o%5;c=(l&(1<<y)-1).toString(32),l>>=y,o-=y,ln=1<<32-ge(e)+o|a<<o|l,sn=c+t}else ln=1<<c|a<<o|l,sn=t}function To(t){t.return!==null&&(sa(t,1),Bd(t,1,0))}function So(t){for(;t===ms;)ms=Ya[--ka],Ya[ka]=null,ps=Ya[--ka],Ya[ka]=null;for(;t===la;)la=Ce[--Oe],Ce[Oe]=null,sn=Ce[--Oe],Ce[Oe]=null,ln=Ce[--Oe],Ce[Oe]=null}var le=null,jt=null,gt=!1,ra=null,Ke=!1,Eo=Error(r(519));function oa(t){var e=Error(r(418,""));throw Bi(we(e,t)),Eo}function Hd(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[ee]=t,e[ue]=l,a){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(a=0;a<ol.length;a++)dt(ol[a],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),td(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),es(e);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),nd(e,l.value,l.defaultValue,l.children),es(e)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||np(e.textContent,a)?(l.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),l.onScroll!=null&&dt("scroll",e),l.onScrollEnd!=null&&dt("scrollend",e),l.onClick!=null&&(e.onclick=$s),e=!0):e=!1,e||oa(t)}function qd(t){for(le=t.return;le;)switch(le.tag){case 5:case 13:Ke=!1;return;case 27:case 3:Ke=!0;return;default:le=le.return}}function Li(t){if(t!==le)return!1;if(!gt)return qd(t),gt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Hu(t.type,t.memoizedProps)),a=!a),a&&jt&&oa(t),qd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(a=t.data,a==="/$"){if(e===0){jt=qe(t.nextSibling);break t}e--}else a!=="$"&&a!=="$!"&&a!=="$?"||e++;t=t.nextSibling}jt=null}}else e===27?(e=jt,Gn(t.type)?(t=Gu,Gu=null,jt=t):jt=e):jt=le?qe(t.stateNode.nextSibling):null;return!0}function Ui(){jt=le=null,gt=!1}function Yd(){var t=ra;return t!==null&&(he===null?he=t:he.push.apply(he,t),ra=null),t}function Bi(t){ra===null?ra=[t]:ra.push(t)}var Ao=X(null),ua=null,rn=null;function wn(t,e,a){$(Ao,e._currentValue),e._currentValue=a}function on(t){t._currentValue=Ao.current,J(Ao)}function _o(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function Mo(t,e,a,l){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){var y=o.child;c=c.firstContext;t:for(;c!==null;){var v=c;c=o;for(var T=0;T<e.length;T++)if(v.context===e[T]){c.lanes|=a,v=c.alternate,v!==null&&(v.lanes|=a),_o(c.return,a,t),l||(y=null);break t}c=v.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(r(341));y.lanes|=a,c=y.alternate,c!==null&&(c.lanes|=a),_o(y,a,t),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===t){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function Hi(t,e,a,l){t=null;for(var o=e,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var y=o.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var v=o.type;ve(o.pendingProps.value,y.value)||(t!==null?t.push(v):t=[v])}}else if(o===pe.current){if(y=o.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(ml):t=[ml])}o=o.return}t!==null&&Mo(e,t,a,l),e.flags|=262144}function ys(t){for(t=t.firstContext;t!==null;){if(!ve(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ca(t){ua=t,rn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ne(t){return kd(ua,t)}function gs(t,e){return ua===null&&ca(t),kd(t,e)}function kd(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},rn===null){if(t===null)throw Error(r(308));rn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else rn=rn.next=e;return a}var f1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},d1=n.unstable_scheduleCallback,h1=n.unstable_NormalPriority,Kt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ro(){return{controller:new f1,data:new Map,refCount:0}}function qi(t){t.refCount--,t.refCount===0&&d1(h1,function(){t.controller.abort()})}var Yi=null,wo=0,Ga=0,Xa=null;function m1(t,e){if(Yi===null){var a=Yi=[];wo=0,Ga=Cu(),Xa={status:"pending",value:void 0,then:function(l){a.push(l)}}}return wo++,e.then(Gd,Gd),e}function Gd(){if(--wo===0&&Yi!==null){Xa!==null&&(Xa.status="fulfilled");var t=Yi;Yi=null,Ga=0,Xa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function p1(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var Xd=H.S;H.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&m1(t,e),Xd!==null&&Xd(t,e)};var fa=X(null);function Do(){var t=fa.current;return t!==null?t:Rt.pooledCache}function vs(t,e){e===null?$(fa,fa.current):$(fa,e.pool)}function Kd(){var t=Do();return t===null?null:{parent:Kt._currentValue,pool:t}}var ki=Error(r(460)),Qd=Error(r(474)),bs=Error(r(542)),Co={then:function(){}};function Pd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function xs(){}function Zd(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(xs,xs),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Jd(t),t;default:if(typeof e.status=="string")e.then(xs,xs);else{if(t=Rt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=l}},function(l){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Jd(t),t}throw Gi=e,ki}}var Gi=null;function $d(){if(Gi===null)throw Error(r(459));var t=Gi;return Gi=null,t}function Jd(t){if(t===ki||t===bs)throw Error(r(483))}var Dn=!1;function Oo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function No(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function On(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var o=l.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),l.pending=e,e=ds(t),Ld(t,null,a),e}return fs(t,l,e,a),ds(t)}function Xi(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Gf(t,a)}}function zo(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=y:c=c.next=y,a=a.next}while(a!==null);c===null?o=c=e:c=c.next=e}else o=c=e;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Vo=!1;function Ki(){if(Vo){var t=Xa;if(t!==null)throw t}}function Qi(t,e,a,l){Vo=!1;var o=t.updateQueue;Dn=!1;var c=o.firstBaseUpdate,y=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,z=T.next;T.next=null,y===null?c=z:y.next=z,y=T;var q=t.alternate;q!==null&&(q=q.updateQueue,v=q.lastBaseUpdate,v!==y&&(v===null?q.firstBaseUpdate=z:v.next=z,q.lastBaseUpdate=T))}if(c!==null){var G=o.baseState;y=0,q=z=T=null,v=c;do{var L=v.lane&-536870913,U=L!==v.lane;if(U?(ht&L)===L:(l&L)===L){L!==0&&L===Ga&&(Vo=!0),q!==null&&(q=q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var it=t,nt=v;L=e;var Et=a;switch(nt.tag){case 1:if(it=nt.payload,typeof it=="function"){G=it.call(Et,G,L);break t}G=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=nt.payload,L=typeof it=="function"?it.call(Et,G,L):it,L==null)break t;G=g({},G,L);break t;case 2:Dn=!0}}L=v.callback,L!==null&&(t.flags|=64,U&&(t.flags|=8192),U=o.callbacks,U===null?o.callbacks=[L]:U.push(L))}else U={lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},q===null?(z=q=U,T=G):q=q.next=U,y|=L;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;U=v,v=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);q===null&&(T=G),o.baseState=T,o.firstBaseUpdate=z,o.lastBaseUpdate=q,c===null&&(o.shared.lanes=0),Hn|=y,t.lanes=y,t.memoizedState=G}}function Fd(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Wd(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Fd(a[t],e)}var Ka=X(null),Ts=X(0);function Id(t,e){t=pn,$(Ts,t),$(Ka,e),pn=t|e.baseLanes}function jo(){$(Ts,pn),$(Ka,Ka.current)}function Lo(){pn=Ts.current,J(Ka),J(Ts)}var Nn=0,ut=null,Tt=null,kt=null,Ss=!1,Qa=!1,da=!1,Es=0,Pi=0,Pa=null,y1=0;function Bt(){throw Error(r(321))}function Uo(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!ve(t[a],e[a]))return!1;return!0}function Bo(t,e,a,l,o,c){return Nn=c,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,H.H=t===null||t.memoizedState===null?Lh:Uh,da=!1,c=a(l,o),da=!1,Qa&&(c=eh(e,a,l,o)),th(t),c}function th(t){H.H=Ds;var e=Tt!==null&&Tt.next!==null;if(Nn=0,kt=Tt=ut=null,Ss=!1,Pi=0,Pa=null,e)throw Error(r(300));t===null||Zt||(t=t.dependencies,t!==null&&ys(t)&&(Zt=!0))}function eh(t,e,a,l){ut=t;var o=0;do{if(Qa&&(Pa=null),Pi=0,Qa=!1,25<=o)throw Error(r(301));if(o+=1,kt=Tt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}H.H=E1,c=e(a,l)}while(Qa);return c}function g1(){var t=H.H,e=t.useState()[0];return e=typeof e.then=="function"?Zi(e):e,t=t.useState()[0],(Tt!==null?Tt.memoizedState:null)!==t&&(ut.flags|=1024),e}function Ho(){var t=Es!==0;return Es=0,t}function qo(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Yo(t){if(Ss){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ss=!1}Nn=0,kt=Tt=ut=null,Qa=!1,Pi=Es=0,Pa=null}function fe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?ut.memoizedState=kt=t:kt=kt.next=t,kt}function Gt(){if(Tt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Tt.next;var e=kt===null?ut.memoizedState:kt.next;if(e!==null)kt=e,Tt=t;else{if(t===null)throw ut.alternate===null?Error(r(467)):Error(r(310));Tt=t,t={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},kt===null?ut.memoizedState=kt=t:kt=kt.next=t}return kt}function ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zi(t){var e=Pi;return Pi+=1,Pa===null&&(Pa=[]),t=Zd(Pa,t,e),e=ut,(kt===null?e.memoizedState:kt.next)===null&&(e=e.alternate,H.H=e===null||e.memoizedState===null?Lh:Uh),t}function As(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Zi(t);if(t.$$typeof===O)return ne(t)}throw Error(r(438,String(t)))}function Go(t){var e=null,a=ut.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=ut.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=ko(),ut.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=ot;return e.index++,a}function un(t,e){return typeof e=="function"?e(t):e}function _s(t){var e=Gt();return Xo(e,Tt,t)}function Xo(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var o=t.baseQueue,c=l.pending;if(c!==null){if(o!==null){var y=o.next;o.next=c.next,c.next=y}e.baseQueue=o=c,l.pending=null}if(c=t.baseState,o===null)t.memoizedState=c;else{e=o.next;var v=y=null,T=null,z=e,q=!1;do{var G=z.lane&-536870913;if(G!==z.lane?(ht&G)===G:(Nn&G)===G){var L=z.revertLane;if(L===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),G===Ga&&(q=!0);else if((Nn&L)===L){z=z.next,L===Ga&&(q=!0);continue}else G={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(v=T=G,y=c):T=T.next=G,ut.lanes|=L,Hn|=L;G=z.action,da&&a(c,G),c=z.hasEagerState?z.eagerState:a(c,G)}else L={lane:G,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(v=T=L,y=c):T=T.next=L,ut.lanes|=G,Hn|=G;z=z.next}while(z!==null&&z!==e);if(T===null?y=c:T.next=v,!ve(c,t.memoizedState)&&(Zt=!0,q&&(a=Xa,a!==null)))throw a;t.memoizedState=c,t.baseState=y,t.baseQueue=T,l.lastRenderedState=c}return o===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Ko(t){var e=Gt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,o=a.pending,c=e.memoizedState;if(o!==null){a.pending=null;var y=o=o.next;do c=t(c,y.action),y=y.next;while(y!==o);ve(c,e.memoizedState)||(Zt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),a.lastRenderedState=c}return[c,l]}function nh(t,e,a){var l=ut,o=Gt(),c=gt;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=e();var y=!ve((Tt||o).memoizedState,a);y&&(o.memoizedState=a,Zt=!0),o=o.queue;var v=lh.bind(null,l,o,t);if($i(2048,8,v,[t]),o.getSnapshot!==e||y||kt!==null&&kt.memoizedState.tag&1){if(l.flags|=2048,Za(9,Ms(),ih.bind(null,l,o,a,e),null),Rt===null)throw Error(r(349));c||(Nn&124)!==0||ah(l,e,a)}return a}function ah(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=ut.updateQueue,e===null?(e=ko(),ut.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function ih(t,e,a,l){e.value=a,e.getSnapshot=l,sh(e)&&rh(t)}function lh(t,e,a){return a(function(){sh(e)&&rh(t)})}function sh(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!ve(t,a)}catch{return!0}}function rh(t){var e=Ha(t,2);e!==null&&Ae(e,t,2)}function Qo(t){var e=fe();if(typeof t=="function"){var a=t;if(t=a(),da){_n(!0);try{a()}finally{_n(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function oh(t,e,a,l){return t.baseState=a,Xo(t,Tt,typeof l=="function"?l:un)}function v1(t,e,a,l,o){if(ws(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){c.listeners.push(y)}};H.T!==null?a(!0):c.isTransition=!1,l(c),a=e.pending,a===null?(c.next=e.pending=c,uh(e,c)):(c.next=a.next,e.pending=a.next=c)}}function uh(t,e){var a=e.action,l=e.payload,o=t.state;if(e.isTransition){var c=H.T,y={};H.T=y;try{var v=a(o,l),T=H.S;T!==null&&T(y,v),ch(t,e,v)}catch(z){Po(t,e,z)}finally{H.T=c}}else try{c=a(o,l),ch(t,e,c)}catch(z){Po(t,e,z)}}function ch(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){fh(t,e,l)},function(l){return Po(t,e,l)}):fh(t,e,a)}function fh(t,e,a){e.status="fulfilled",e.value=a,dh(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,uh(t,a)))}function Po(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,dh(e),e=e.next;while(e!==l)}t.action=null}function dh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function hh(t,e){return e}function mh(t,e){if(gt){var a=Rt.formState;if(a!==null){t:{var l=ut;if(gt){if(jt){e:{for(var o=jt,c=Ke;o.nodeType!==8;){if(!c){o=null;break e}if(o=qe(o.nextSibling),o===null){o=null;break e}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){jt=qe(o.nextSibling),l=o.data==="F!";break t}}oa(l)}l=!1}l&&(e=a[0])}}return a=fe(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hh,lastRenderedState:e},a.queue=l,a=zh.bind(null,ut,l),l.dispatch=a,l=Qo(!1),c=Wo.bind(null,ut,!1,l.queue),l=fe(),o={state:e,dispatch:null,action:t,pending:null},l.queue=o,a=v1.bind(null,ut,o,c,a),o.dispatch=a,l.memoizedState=t,[e,a,!1]}function ph(t){var e=Gt();return yh(e,Tt,t)}function yh(t,e,a){if(e=Xo(t,e,hh)[0],t=_s(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Zi(e)}catch(y){throw y===ki?bs:y}else l=e;e=Gt();var o=e.queue,c=o.dispatch;return a!==e.memoizedState&&(ut.flags|=2048,Za(9,Ms(),b1.bind(null,o,a),null)),[l,c,t]}function b1(t,e){t.action=e}function gh(t){var e=Gt(),a=Tt;if(a!==null)return yh(e,a,t);Gt(),e=e.memoizedState,a=Gt();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function Za(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=ut.updateQueue,e===null&&(e=ko(),ut.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function Ms(){return{destroy:void 0,resource:void 0}}function vh(){return Gt().memoizedState}function Rs(t,e,a,l){var o=fe();l=l===void 0?null:l,ut.flags|=t,o.memoizedState=Za(1|e,Ms(),a,l)}function $i(t,e,a,l){var o=Gt();l=l===void 0?null:l;var c=o.memoizedState.inst;Tt!==null&&l!==null&&Uo(l,Tt.memoizedState.deps)?o.memoizedState=Za(e,c,a,l):(ut.flags|=t,o.memoizedState=Za(1|e,c,a,l))}function bh(t,e){Rs(8390656,8,t,e)}function xh(t,e){$i(2048,8,t,e)}function Th(t,e){return $i(4,2,t,e)}function Sh(t,e){return $i(4,4,t,e)}function Eh(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Ah(t,e,a){a=a!=null?a.concat([t]):null,$i(4,4,Eh.bind(null,e,t),a)}function Zo(){}function _h(t,e){var a=Gt();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&Uo(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function Mh(t,e){var a=Gt();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&Uo(e,l[1]))return l[0];if(l=t(),da){_n(!0);try{t()}finally{_n(!1)}}return a.memoizedState=[l,e],l}function $o(t,e,a){return a===void 0||(Nn&1073741824)!==0?t.memoizedState=e:(t.memoizedState=a,t=Dm(),ut.lanes|=t,Hn|=t,a)}function Rh(t,e,a,l){return ve(a,e)?a:Ka.current!==null?(t=$o(t,a,l),ve(t,e)||(Zt=!0),t):(Nn&42)===0?(Zt=!0,t.memoizedState=a):(t=Dm(),ut.lanes|=t,Hn|=t,e)}function wh(t,e,a,l,o){var c=Q.p;Q.p=c!==0&&8>c?c:8;var y=H.T,v={};H.T=v,Wo(t,!1,e,a);try{var T=o(),z=H.S;if(z!==null&&z(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=p1(T,l);Ji(t,e,q,Ee(t))}else Ji(t,e,l,Ee(t))}catch(G){Ji(t,e,{then:function(){},status:"rejected",reason:G},Ee())}finally{Q.p=c,H.T=y}}function x1(){}function Jo(t,e,a,l){if(t.tag!==5)throw Error(r(476));var o=Dh(t).queue;wh(t,o,e,F,a===null?x1:function(){return Ch(t),a(l)})}function Dh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:F},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ch(t){var e=Dh(t).next.queue;Ji(t,e,{},Ee())}function Fo(){return ne(ml)}function Oh(){return Gt().memoizedState}function Nh(){return Gt().memoizedState}function T1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Ee();t=Cn(a);var l=On(e,t,a);l!==null&&(Ae(l,e,a),Xi(l,e,a)),e={cache:Ro()},t.payload=e;return}e=e.return}}function S1(t,e,a){var l=Ee();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},ws(t)?Vh(e,a):(a=go(t,e,a,l),a!==null&&(Ae(a,t,l),jh(a,e,l)))}function zh(t,e,a){var l=Ee();Ji(t,e,a,l)}function Ji(t,e,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(ws(t))Vh(e,o);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var y=e.lastRenderedState,v=c(y,a);if(o.hasEagerState=!0,o.eagerState=v,ve(v,y))return fs(t,e,o,0),Rt===null&&cs(),!1}catch{}finally{}if(a=go(t,e,o,l),a!==null)return Ae(a,t,l),jh(a,e,l),!0}return!1}function Wo(t,e,a,l){if(l={lane:2,revertLane:Cu(),action:l,hasEagerState:!1,eagerState:null,next:null},ws(t)){if(e)throw Error(r(479))}else e=go(t,a,l,2),e!==null&&Ae(e,t,2)}function ws(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function Vh(t,e){Qa=Ss=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function jh(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Gf(t,a)}}var Ds={readContext:ne,use:As,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt},Lh={readContext:ne,use:As,useCallback:function(t,e){return fe().memoizedState=[t,e===void 0?null:e],t},useContext:ne,useEffect:bh,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Rs(4194308,4,Eh.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Rs(4194308,4,t,e)},useInsertionEffect:function(t,e){Rs(4,2,t,e)},useMemo:function(t,e){var a=fe();e=e===void 0?null:e;var l=t();if(da){_n(!0);try{t()}finally{_n(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=fe();if(a!==void 0){var o=a(e);if(da){_n(!0);try{a(e)}finally{_n(!1)}}}else o=e;return l.memoizedState=l.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},l.queue=t,t=t.dispatch=S1.bind(null,ut,t),[l.memoizedState,t]},useRef:function(t){var e=fe();return t={current:t},e.memoizedState=t},useState:function(t){t=Qo(t);var e=t.queue,a=zh.bind(null,ut,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Zo,useDeferredValue:function(t,e){var a=fe();return $o(a,t,e)},useTransition:function(){var t=Qo(!1);return t=wh.bind(null,ut,t.queue,!0,!1),fe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=ut,o=fe();if(gt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Rt===null)throw Error(r(349));(ht&124)!==0||ah(l,e,a)}o.memoizedState=a;var c={value:a,getSnapshot:e};return o.queue=c,bh(lh.bind(null,l,c,t),[t]),l.flags|=2048,Za(9,Ms(),ih.bind(null,l,c,a,e),null),a},useId:function(){var t=fe(),e=Rt.identifierPrefix;if(gt){var a=sn,l=ln;a=(l&~(1<<32-ge(l)-1)).toString(32)+a,e="«"+e+"R"+a,a=Es++,0<a&&(e+="H"+a.toString(32)),e+="»"}else a=y1++,e="«"+e+"r"+a.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:Fo,useFormState:mh,useActionState:mh,useOptimistic:function(t){var e=fe();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Wo.bind(null,ut,!0,a),a.dispatch=e,[t,e]},useMemoCache:Go,useCacheRefresh:function(){return fe().memoizedState=T1.bind(null,ut)}},Uh={readContext:ne,use:As,useCallback:_h,useContext:ne,useEffect:xh,useImperativeHandle:Ah,useInsertionEffect:Th,useLayoutEffect:Sh,useMemo:Mh,useReducer:_s,useRef:vh,useState:function(){return _s(un)},useDebugValue:Zo,useDeferredValue:function(t,e){var a=Gt();return Rh(a,Tt.memoizedState,t,e)},useTransition:function(){var t=_s(un)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Zi(t),e]},useSyncExternalStore:nh,useId:Oh,useHostTransitionStatus:Fo,useFormState:ph,useActionState:ph,useOptimistic:function(t,e){var a=Gt();return oh(a,Tt,t,e)},useMemoCache:Go,useCacheRefresh:Nh},E1={readContext:ne,use:As,useCallback:_h,useContext:ne,useEffect:xh,useImperativeHandle:Ah,useInsertionEffect:Th,useLayoutEffect:Sh,useMemo:Mh,useReducer:Ko,useRef:vh,useState:function(){return Ko(un)},useDebugValue:Zo,useDeferredValue:function(t,e){var a=Gt();return Tt===null?$o(a,t,e):Rh(a,Tt.memoizedState,t,e)},useTransition:function(){var t=Ko(un)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Zi(t),e]},useSyncExternalStore:nh,useId:Oh,useHostTransitionStatus:Fo,useFormState:gh,useActionState:gh,useOptimistic:function(t,e){var a=Gt();return Tt!==null?oh(a,Tt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Go,useCacheRefresh:Nh},$a=null,Fi=0;function Cs(t){var e=Fi;return Fi+=1,$a===null&&($a=[]),Zd($a,t,e)}function Wi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Os(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 Bh(t){var e=t._init;return e(t._payload)}function Hh(t){function e(w,M){if(t){var N=w.deletions;N===null?(w.deletions=[M],w.flags|=16):N.push(M)}}function a(w,M){if(!t)return null;for(;M!==null;)e(w,M),M=M.sibling;return null}function l(w){for(var M=new Map;w!==null;)w.key!==null?M.set(w.key,w):M.set(w.index,w),w=w.sibling;return M}function o(w,M){return w=an(w,M),w.index=0,w.sibling=null,w}function c(w,M,N){return w.index=N,t?(N=w.alternate,N!==null?(N=N.index,N<M?(w.flags|=67108866,M):N):(w.flags|=67108866,M)):(w.flags|=1048576,M)}function y(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function v(w,M,N,k){return M===null||M.tag!==6?(M=bo(N,w.mode,k),M.return=w,M):(M=o(M,N),M.return=w,M)}function T(w,M,N,k){var W=N.type;return W===_?q(w,M,N.props.children,k,N.key):M!==null&&(M.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&Bh(W)===M.type)?(M=o(M,N.props),Wi(M,N),M.return=w,M):(M=hs(N.type,N.key,N.props,null,w.mode,k),Wi(M,N),M.return=w,M)}function z(w,M,N,k){return M===null||M.tag!==4||M.stateNode.containerInfo!==N.containerInfo||M.stateNode.implementation!==N.implementation?(M=xo(N,w.mode,k),M.return=w,M):(M=o(M,N.children||[]),M.return=w,M)}function q(w,M,N,k,W){return M===null||M.tag!==7?(M=ia(N,w.mode,k,W),M.return=w,M):(M=o(M,N),M.return=w,M)}function G(w,M,N){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=bo(""+M,w.mode,N),M.return=w,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return N=hs(M.type,M.key,M.props,null,w.mode,N),Wi(N,M),N.return=w,N;case E:return M=xo(M,w.mode,N),M.return=w,M;case K:var k=M._init;return M=k(M._payload),G(w,M,N)}if(Yt(M)||_t(M))return M=ia(M,w.mode,N,null),M.return=w,M;if(typeof M.then=="function")return G(w,Cs(M),N);if(M.$$typeof===O)return G(w,gs(w,M),N);Os(w,M)}return null}function L(w,M,N,k){var W=M!==null?M.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return W!==null?null:v(w,M,""+N,k);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case x:return N.key===W?T(w,M,N,k):null;case E:return N.key===W?z(w,M,N,k):null;case K:return W=N._init,N=W(N._payload),L(w,M,N,k)}if(Yt(N)||_t(N))return W!==null?null:q(w,M,N,k,null);if(typeof N.then=="function")return L(w,M,Cs(N),k);if(N.$$typeof===O)return L(w,M,gs(w,N),k);Os(w,N)}return null}function U(w,M,N,k,W){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return w=w.get(N)||null,v(M,w,""+k,W);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case x:return w=w.get(k.key===null?N:k.key)||null,T(M,w,k,W);case E:return w=w.get(k.key===null?N:k.key)||null,z(M,w,k,W);case K:var ct=k._init;return k=ct(k._payload),U(w,M,N,k,W)}if(Yt(k)||_t(k))return w=w.get(N)||null,q(M,w,k,W,null);if(typeof k.then=="function")return U(w,M,N,Cs(k),W);if(k.$$typeof===O)return U(w,M,N,gs(M,k),W);Os(M,k)}return null}function it(w,M,N,k){for(var W=null,ct=null,I=M,at=M=0,Jt=null;I!==null&&at<N.length;at++){I.index>at?(Jt=I,I=null):Jt=I.sibling;var pt=L(w,I,N[at],k);if(pt===null){I===null&&(I=Jt);break}t&&I&&pt.alternate===null&&e(w,I),M=c(pt,M,at),ct===null?W=pt:ct.sibling=pt,ct=pt,I=Jt}if(at===N.length)return a(w,I),gt&&sa(w,at),W;if(I===null){for(;at<N.length;at++)I=G(w,N[at],k),I!==null&&(M=c(I,M,at),ct===null?W=I:ct.sibling=I,ct=I);return gt&&sa(w,at),W}for(I=l(I);at<N.length;at++)Jt=U(I,w,at,N[at],k),Jt!==null&&(t&&Jt.alternate!==null&&I.delete(Jt.key===null?at:Jt.key),M=c(Jt,M,at),ct===null?W=Jt:ct.sibling=Jt,ct=Jt);return t&&I.forEach(function(Zn){return e(w,Zn)}),gt&&sa(w,at),W}function nt(w,M,N,k){if(N==null)throw Error(r(151));for(var W=null,ct=null,I=M,at=M=0,Jt=null,pt=N.next();I!==null&&!pt.done;at++,pt=N.next()){I.index>at?(Jt=I,I=null):Jt=I.sibling;var Zn=L(w,I,pt.value,k);if(Zn===null){I===null&&(I=Jt);break}t&&I&&Zn.alternate===null&&e(w,I),M=c(Zn,M,at),ct===null?W=Zn:ct.sibling=Zn,ct=Zn,I=Jt}if(pt.done)return a(w,I),gt&&sa(w,at),W;if(I===null){for(;!pt.done;at++,pt=N.next())pt=G(w,pt.value,k),pt!==null&&(M=c(pt,M,at),ct===null?W=pt:ct.sibling=pt,ct=pt);return gt&&sa(w,at),W}for(I=l(I);!pt.done;at++,pt=N.next())pt=U(I,w,at,pt.value,k),pt!==null&&(t&&pt.alternate!==null&&I.delete(pt.key===null?at:pt.key),M=c(pt,M,at),ct===null?W=pt:ct.sibling=pt,ct=pt);return t&&I.forEach(function(Ab){return e(w,Ab)}),gt&&sa(w,at),W}function Et(w,M,N,k){if(typeof N=="object"&&N!==null&&N.type===_&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case x:t:{for(var W=N.key;M!==null;){if(M.key===W){if(W=N.type,W===_){if(M.tag===7){a(w,M.sibling),k=o(M,N.props.children),k.return=w,w=k;break t}}else if(M.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&Bh(W)===M.type){a(w,M.sibling),k=o(M,N.props),Wi(k,N),k.return=w,w=k;break t}a(w,M);break}else e(w,M);M=M.sibling}N.type===_?(k=ia(N.props.children,w.mode,k,N.key),k.return=w,w=k):(k=hs(N.type,N.key,N.props,null,w.mode,k),Wi(k,N),k.return=w,w=k)}return y(w);case E:t:{for(W=N.key;M!==null;){if(M.key===W)if(M.tag===4&&M.stateNode.containerInfo===N.containerInfo&&M.stateNode.implementation===N.implementation){a(w,M.sibling),k=o(M,N.children||[]),k.return=w,w=k;break t}else{a(w,M);break}else e(w,M);M=M.sibling}k=xo(N,w.mode,k),k.return=w,w=k}return y(w);case K:return W=N._init,N=W(N._payload),Et(w,M,N,k)}if(Yt(N))return it(w,M,N,k);if(_t(N)){if(W=_t(N),typeof W!="function")throw Error(r(150));return N=W.call(N),nt(w,M,N,k)}if(typeof N.then=="function")return Et(w,M,Cs(N),k);if(N.$$typeof===O)return Et(w,M,gs(w,N),k);Os(w,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,M!==null&&M.tag===6?(a(w,M.sibling),k=o(M,N),k.return=w,w=k):(a(w,M),k=bo(N,w.mode,k),k.return=w,w=k),y(w)):a(w,M)}return function(w,M,N,k){try{Fi=0;var W=Et(w,M,N,k);return $a=null,W}catch(I){if(I===ki||I===bs)throw I;var ct=be(29,I,null,w.mode);return ct.lanes=k,ct.return=w,ct}finally{}}}var Ja=Hh(!0),qh=Hh(!1),Ne=X(null),Qe=null;function zn(t){var e=t.alternate;$(Qt,Qt.current&1),$(Ne,t),Qe===null&&(e===null||Ka.current!==null||e.memoizedState!==null)&&(Qe=t)}function Yh(t){if(t.tag===22){if($(Qt,Qt.current),$(Ne,t),Qe===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Qe=t)}}else Vn()}function Vn(){$(Qt,Qt.current),$(Ne,Ne.current)}function cn(t){J(Ne),Qe===t&&(Qe=null),J(Qt)}var Qt=X(0);function Ns(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||ku(a)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){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}function Io(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:g({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var tu={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=Ee(),o=Cn(l);o.payload=e,a!=null&&(o.callback=a),e=On(t,o,l),e!==null&&(Ae(e,t,l),Xi(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=Ee(),o=Cn(l);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=On(t,o,l),e!==null&&(Ae(e,t,l),Xi(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Ee(),l=Cn(a);l.tag=2,e!=null&&(l.callback=e),e=On(t,l,a),e!==null&&(Ae(e,t,a),Xi(e,t,a))}};function kh(t,e,a,l,o,c,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,y):e.prototype&&e.prototype.isPureReactComponent?!Vi(a,l)||!Vi(o,c):!0}function Gh(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&tu.enqueueReplaceState(e,e.state,null)}function ha(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=g({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}var zs=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)};function Xh(t){zs(t)}function Kh(t){console.error(t)}function Qh(t){zs(t)}function Vs(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Ph(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function eu(t,e,a){return a=Cn(a),a.tag=3,a.payload={element:null},a.callback=function(){Vs(t,e)},a}function Zh(t){return t=Cn(t),t.tag=3,t}function $h(t,e,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;t.payload=function(){return o(c)},t.callback=function(){Ph(e,a,l)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(t.callback=function(){Ph(e,a,l),typeof o!="function"&&(qn===null?qn=new Set([this]):qn.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function A1(t,e,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Hi(e,a,o,!0),a=Ne.current,a!==null){switch(a.tag){case 13:return Qe===null?_u():a.alternate===null&&Lt===0&&(Lt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===Co?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),Ru(t,l,o)),!1;case 22:return a.flags|=65536,l===Co?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),Ru(t,l,o)),!1}throw Error(r(435,a.tag))}return Ru(t,l,o),_u(),!1}if(gt)return e=Ne.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,l!==Eo&&(t=Error(r(422),{cause:l}),Bi(we(t,a)))):(l!==Eo&&(e=Error(r(423),{cause:l}),Bi(we(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,l=we(l,a),o=eu(t.stateNode,l,o),zo(t,o),Lt!==4&&(Lt=2)),!1;var c=Error(r(520),{cause:l});if(c=we(c,a),ll===null?ll=[c]:ll.push(c),Lt!==4&&(Lt=2),e===null)return!0;l=we(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=eu(a.stateNode,l,t),zo(a,t),!1;case 1:if(e=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(qn===null||!qn.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Zh(o),$h(o,t,a,l),zo(a,o),!1}a=a.return}while(a!==null);return!1}var Jh=Error(r(461)),Zt=!1;function Ft(t,e,a,l){e.child=t===null?qh(e,null,a,l):Ja(e,t.child,a,l)}function Fh(t,e,a,l,o){a=a.render;var c=e.ref;if("ref"in l){var y={};for(var v in l)v!=="ref"&&(y[v]=l[v])}else y=l;return ca(e),l=Bo(t,e,a,y,c,o),v=Ho(),t!==null&&!Zt?(qo(t,e,o),fn(t,e,o)):(gt&&v&&To(e),e.flags|=1,Ft(t,e,l,o),e.child)}function Wh(t,e,a,l,o){if(t===null){var c=a.type;return typeof c=="function"&&!vo(c)&&c.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=c,Ih(t,e,c,l,o)):(t=hs(a.type,null,l,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!uu(t,o)){var y=c.memoizedProps;if(a=a.compare,a=a!==null?a:Vi,a(y,l)&&t.ref===e.ref)return fn(t,e,o)}return e.flags|=1,t=an(c,l),t.ref=e.ref,t.return=e,e.child=t}function Ih(t,e,a,l,o){if(t!==null){var c=t.memoizedProps;if(Vi(c,l)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=l=c,uu(t,o))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,fn(t,e,o)}return nu(t,e,a,l,o)}function tm(t,e,a){var l=e.pendingProps,o=l.children,c=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((e.flags&128)!==0){if(l=c!==null?c.baseLanes|a:a,t!==null){for(o=e.child=t.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;e.childLanes=c&~l}else e.childLanes=0,e.child=null;return em(t,e,l,a)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&vs(e,c!==null?c.cachePool:null),c!==null?Id(e,c):jo(),Yh(e);else return e.lanes=e.childLanes=536870912,em(t,e,c!==null?c.baseLanes|a:a,a)}else c!==null?(vs(e,c.cachePool),Id(e,c),Vn(),e.memoizedState=null):(t!==null&&vs(e,null),jo(),Vn());return Ft(t,e,o,a),e.child}function em(t,e,a,l){var o=Do();return o=o===null?null:{parent:Kt._currentValue,pool:o},e.memoizedState={baseLanes:a,cachePool:o},t!==null&&vs(e,null),jo(),Yh(e),t!==null&&Hi(t,e,l,!0),null}function js(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function nu(t,e,a,l,o){return ca(e),a=Bo(t,e,a,l,void 0,o),l=Ho(),t!==null&&!Zt?(qo(t,e,o),fn(t,e,o)):(gt&&l&&To(e),e.flags|=1,Ft(t,e,a,o),e.child)}function nm(t,e,a,l,o,c){return ca(e),e.updateQueue=null,a=eh(e,l,a,o),th(t),l=Ho(),t!==null&&!Zt?(qo(t,e,c),fn(t,e,c)):(gt&&l&&To(e),e.flags|=1,Ft(t,e,a,c),e.child)}function am(t,e,a,l,o){if(ca(e),e.stateNode===null){var c=qa,y=a.contextType;typeof y=="object"&&y!==null&&(c=ne(y)),c=new a(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=tu,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},Oo(e),y=a.contextType,c.context=typeof y=="object"&&y!==null?ne(y):qa,c.state=e.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Io(e,a,y,l),c.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(y=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),y!==c.state&&tu.enqueueReplaceState(c,c.state,null),Qi(e,l,c,o),Ki(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var v=e.memoizedProps,T=ha(a,v);c.props=T;var z=c.context,q=a.contextType;y=qa,typeof q=="object"&&q!==null&&(y=ne(q));var G=a.getDerivedStateFromProps;q=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||z!==y)&&Gh(e,c,l,y),Dn=!1;var L=e.memoizedState;c.state=L,Qi(e,l,c,o),Ki(),z=e.memoizedState,v||L!==z||Dn?(typeof G=="function"&&(Io(e,a,G,l),z=e.memoizedState),(T=Dn||kh(e,a,T,l,L,z,y))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=z),c.props=l,c.state=z,c.context=y,l=T):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,No(t,e),y=e.memoizedProps,q=ha(a,y),c.props=q,G=e.pendingProps,L=c.context,z=a.contextType,T=qa,typeof z=="object"&&z!==null&&(T=ne(z)),v=a.getDerivedStateFromProps,(z=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y!==G||L!==T)&&Gh(e,c,l,T),Dn=!1,L=e.memoizedState,c.state=L,Qi(e,l,c,o),Ki();var U=e.memoizedState;y!==G||L!==U||Dn||t!==null&&t.dependencies!==null&&ys(t.dependencies)?(typeof v=="function"&&(Io(e,a,v,l),U=e.memoizedState),(q=Dn||kh(e,a,q,l,L,U,T)||t!==null&&t.dependencies!==null&&ys(t.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,U,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,U,T)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||y===t.memoizedProps&&L===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&L===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=U),c.props=l,c.state=U,c.context=T,l=q):(typeof c.componentDidUpdate!="function"||y===t.memoizedProps&&L===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&L===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,js(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Ja(e,t.child,null,o),e.child=Ja(e,null,a,o)):Ft(t,e,a,o),e.memoizedState=c.state,t=e.child):t=fn(t,e,o),t}function im(t,e,a,l){return Ui(),e.flags|=256,Ft(t,e,a,l),e.child}var au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function iu(t){return{baseLanes:t,cachePool:Kd()}}function lu(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=ze),t}function lm(t,e,a){var l=e.pendingProps,o=!1,c=(e.flags&128)!==0,y;if((y=c)||(y=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),y&&(o=!0,e.flags&=-129),y=(e.flags&32)!==0,e.flags&=-33,t===null){if(gt){if(o?zn(e):Vn(),gt){var v=jt,T;if(T=v){t:{for(T=v,v=Ke;T.nodeType!==8;){if(!v){v=null;break t}if(T=qe(T.nextSibling),T===null){v=null;break t}}v=T}v!==null?(e.memoizedState={dehydrated:v,treeContext:la!==null?{id:ln,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},T=be(18,null,null,0),T.stateNode=v,T.return=e,e.child=T,le=e,jt=null,T=!0):T=!1}T||oa(e)}if(v=e.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return ku(v)?e.lanes=32:e.lanes=536870912,null;cn(e)}return v=l.children,l=l.fallback,o?(Vn(),o=e.mode,v=Ls({mode:"hidden",children:v},o),l=ia(l,o,a,null),v.return=e,l.return=e,v.sibling=l,e.child=v,o=e.child,o.memoizedState=iu(a),o.childLanes=lu(t,y,a),e.memoizedState=au,l):(zn(e),su(e,v))}if(T=t.memoizedState,T!==null&&(v=T.dehydrated,v!==null)){if(c)e.flags&256?(zn(e),e.flags&=-257,e=ru(t,e,a)):e.memoizedState!==null?(Vn(),e.child=t.child,e.flags|=128,e=null):(Vn(),o=l.fallback,v=e.mode,l=Ls({mode:"visible",children:l.children},v),o=ia(o,v,a,null),o.flags|=2,l.return=e,o.return=e,l.sibling=o,e.child=l,Ja(e,t.child,null,a),l=e.child,l.memoizedState=iu(a),l.childLanes=lu(t,y,a),e.memoizedState=au,e=o);else if(zn(e),ku(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var z=y.dgst;y=z,l=Error(r(419)),l.stack="",l.digest=y,Bi({value:l,source:null,stack:null}),e=ru(t,e,a)}else if(Zt||Hi(t,e,a,!1),y=(a&t.childLanes)!==0,Zt||y){if(y=Rt,y!==null&&(l=a&-a,l=(l&42)!==0?1:kr(l),l=(l&(y.suspendedLanes|a))!==0?0:l,l!==0&&l!==T.retryLane))throw T.retryLane=l,Ha(t,l),Ae(y,t,l),Jh;v.data==="$?"||_u(),e=ru(t,e,a)}else v.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,jt=qe(v.nextSibling),le=e,gt=!0,ra=null,Ke=!1,t!==null&&(Ce[Oe++]=ln,Ce[Oe++]=sn,Ce[Oe++]=la,ln=t.id,sn=t.overflow,la=e),e=su(e,l.children),e.flags|=4096);return e}return o?(Vn(),o=l.fallback,v=e.mode,T=t.child,z=T.sibling,l=an(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,z!==null?o=an(z,o):(o=ia(o,v,a,null),o.flags|=2),o.return=e,l.return=e,l.sibling=o,e.child=l,l=o,o=e.child,v=t.child.memoizedState,v===null?v=iu(a):(T=v.cachePool,T!==null?(z=Kt._currentValue,T=T.parent!==z?{parent:z,pool:z}:T):T=Kd(),v={baseLanes:v.baseLanes|a,cachePool:T}),o.memoizedState=v,o.childLanes=lu(t,y,a),e.memoizedState=au,l):(zn(e),a=t.child,t=a.sibling,a=an(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(y=e.deletions,y===null?(e.deletions=[t],e.flags|=16):y.push(t)),e.child=a,e.memoizedState=null,a)}function su(t,e){return e=Ls({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ls(t,e){return t=be(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function ru(t,e,a){return Ja(e,t.child,null,a),t=su(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function sm(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),_o(t.return,e,a)}function ou(t,e,a,l,o){var c=t.memoizedState;c===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=o)}function rm(t,e,a){var l=e.pendingProps,o=l.revealOrder,c=l.tail;if(Ft(t,e,l.children,a),l=Qt.current,(l&2)!==0)l=l&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&sm(t,a,e);else if(t.tag===19)sm(t,a,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}l&=1}switch($(Qt,l),o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&Ns(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),ou(e,!1,o,a,c);break;case"backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&Ns(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}ou(e,!0,a,null,c);break;case"together":ou(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function fn(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Hn|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Hi(t,e,a,!1),(a&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,a=an(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=an(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function uu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ys(t)))}function _1(t,e,a){switch(e.tag){case 3:Dt(e,e.stateNode.containerInfo),wn(e,Kt,t.memoizedState.cache),Ui();break;case 27:case 5:Ur(e);break;case 4:Dt(e,e.stateNode.containerInfo);break;case 10:wn(e,e.type,e.memoizedProps.value);break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(zn(e),e.flags|=128,null):(a&e.child.childLanes)!==0?lm(t,e,a):(zn(e),t=fn(t,e,a),t!==null?t.sibling:null);zn(e);break;case 19:var o=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Hi(t,e,a,!1),l=(a&e.childLanes)!==0),o){if(l)return rm(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$(Qt,Qt.current),l)break;return null;case 22:case 23:return e.lanes=0,tm(t,e,a);case 24:wn(e,Kt,t.memoizedState.cache)}return fn(t,e,a)}function om(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!uu(t,a)&&(e.flags&128)===0)return Zt=!1,_1(t,e,a);Zt=(t.flags&131072)!==0}else Zt=!1,gt&&(e.flags&1048576)!==0&&Bd(e,ps,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var l=e.elementType,o=l._init;if(l=o(l._payload),e.type=l,typeof l=="function")vo(l)?(t=ha(l,t),e.tag=1,e=am(null,e,l,t,a)):(e.tag=0,e=nu(null,e,l,t,a));else{if(l!=null){if(o=l.$$typeof,o===Y){e.tag=11,e=Fh(null,e,l,t,a);break t}else if(o===Z){e.tag=14,e=Wh(null,e,l,t,a);break t}}throw e=_e(l)||l,Error(r(306,e,""))}}return e;case 0:return nu(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,o=ha(l,e.pendingProps),am(t,e,l,o,a);case 3:t:{if(Dt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var c=e.memoizedState;o=c.element,No(t,e),Qi(e,l,null,a);var y=e.memoizedState;if(l=y.cache,wn(e,Kt,l),l!==c.cache&&Mo(e,[Kt],a,!0),Ki(),l=y.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:y.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=im(t,e,l,a);break t}else if(l!==o){o=we(Error(r(424)),e),Bi(o),e=im(t,e,l,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(jt=qe(t.firstChild),le=e,gt=!0,ra=null,Ke=!0,a=qh(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ui(),l===o){e=fn(t,e,a);break t}Ft(t,e,l,a)}e=e.child}return e;case 26:return js(t,e),t===null?(a=dp(e.type,null,e.pendingProps,null))?e.memoizedState=a:gt||(a=e.type,t=e.pendingProps,l=Js(st.current).createElement(a),l[ee]=e,l[ue]=t,It(l,a,t),Pt(l),e.stateNode=l):e.memoizedState=dp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ur(e),t===null&&gt&&(l=e.stateNode=up(e.type,e.pendingProps,st.current),le=e,Ke=!0,o=jt,Gn(e.type)?(Gu=o,jt=qe(l.firstChild)):jt=o),Ft(t,e,e.pendingProps.children,a),js(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&gt&&((o=l=jt)&&(l=I1(l,e.type,e.pendingProps,Ke),l!==null?(e.stateNode=l,le=e,jt=qe(l.firstChild),Ke=!1,o=!0):o=!1),o||oa(e)),Ur(e),o=e.type,c=e.pendingProps,y=t!==null?t.memoizedProps:null,l=c.children,Hu(o,c)?l=null:y!==null&&Hu(o,y)&&(e.flags|=32),e.memoizedState!==null&&(o=Bo(t,e,g1,null,null,a),ml._currentValue=o),js(t,e),Ft(t,e,l,a),e.child;case 6:return t===null&&gt&&((t=a=jt)&&(a=tb(a,e.pendingProps,Ke),a!==null?(e.stateNode=a,le=e,jt=null,t=!0):t=!1),t||oa(e)),null;case 13:return lm(t,e,a);case 4:return Dt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ja(e,null,l,a):Ft(t,e,l,a),e.child;case 11:return Fh(t,e,e.type,e.pendingProps,a);case 7:return Ft(t,e,e.pendingProps,a),e.child;case 8:return Ft(t,e,e.pendingProps.children,a),e.child;case 12:return Ft(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,wn(e,e.type,l.value),Ft(t,e,l.children,a),e.child;case 9:return o=e.type._context,l=e.pendingProps.children,ca(e),o=ne(o),l=l(o),e.flags|=1,Ft(t,e,l,a),e.child;case 14:return Wh(t,e,e.type,e.pendingProps,a);case 15:return Ih(t,e,e.type,e.pendingProps,a);case 19:return rm(t,e,a);case 31:return l=e.pendingProps,a=e.mode,l={mode:l.mode,children:l.children},t===null?(a=Ls(l,a),a.ref=e.ref,e.child=a,a.return=e,e=a):(a=an(t.child,l),a.ref=e.ref,e.child=a,a.return=e,e=a),e;case 22:return tm(t,e,a);case 24:return ca(e),l=ne(Kt),t===null?(o=Do(),o===null&&(o=Rt,c=Ro(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),e.memoizedState={parent:l,cache:o},Oo(e),wn(e,Kt,o)):((t.lanes&a)!==0&&(No(t,e),Qi(e,null,null,a),Ki()),o=t.memoizedState,c=e.memoizedState,o.parent!==l?(o={parent:l,cache:l},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),wn(e,Kt,l)):(l=c.cache,wn(e,Kt,l),l!==o.cache&&Mo(e,[Kt],a,!0))),Ft(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function dn(t){t.flags|=4}function um(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!gp(e)){if(e=Ne.current,e!==null&&((ht&4194048)===ht?Qe!==null:(ht&62914560)!==ht&&(ht&536870912)===0||e!==Qe))throw Gi=Co,Qd;t.flags|=8192}}function Us(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Yf():536870912,t.lanes|=e,ti|=e)}function Ii(t,e){if(!gt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ot(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function M1(t,e,a){var l=e.pendingProps;switch(So(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(e),null;case 1:return Ot(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),on(Kt),An(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Li(e)?dn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Yd())),Ot(e),null;case 26:return a=e.memoizedState,t===null?(dn(e),a!==null?(Ot(e),um(e,a)):(Ot(e),e.flags&=-16777217)):a?a!==t.memoizedState?(dn(e),Ot(e),um(e,a)):(Ot(e),e.flags&=-16777217):(t.memoizedProps!==l&&dn(e),Ot(e),e.flags&=-16777217),null;case 27:Zl(e),a=st.current;var o=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==l&&dn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Ot(e),null}t=et.current,Li(e)?Hd(e):(t=up(o,l,a),e.stateNode=t,dn(e))}return Ot(e),null;case 5:if(Zl(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&dn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Ot(e),null}if(t=et.current,Li(e))Hd(e);else{switch(o=Js(st.current),t){case 1:t=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:t=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":t=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":t=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}t[ee]=e,t[ue]=l;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=t;t:switch(It(t,a,l),a){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&dn(e)}}return Ot(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&dn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=st.current,Li(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,o=le,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}t[ee]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||np(t.nodeValue,a)),t||oa(e)}else t=Js(t).createTextNode(l),t[ee]=e,e.stateNode=t}return Ot(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Li(e),l!==null&&l.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[ee]=e}else Ui(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ot(e),o=!1}else o=Yd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(cn(e),e):(cn(e),null)}if(cn(e),(e.flags&128)!==0)return e.lanes=a,e;if(a=l!==null,t=t!==null&&t.memoizedState!==null,a){l=e.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var c=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)}return a!==t&&a&&(e.child.flags|=8192),Us(e,e.updateQueue),Ot(e),null;case 4:return An(),t===null&&Vu(e.stateNode.containerInfo),Ot(e),null;case 10:return on(e.type),Ot(e),null;case 19:if(J(Qt),o=e.memoizedState,o===null)return Ot(e),null;if(l=(e.flags&128)!==0,c=o.rendering,c===null)if(l)Ii(o,!1);else{if(Lt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Ns(t),c!==null){for(e.flags|=128,Ii(o,!1),t=c.updateQueue,e.updateQueue=t,Us(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Ud(a,t),a=a.sibling;return $(Qt,Qt.current&1|2),e.child}t=t.sibling}o.tail!==null&&Xe()>qs&&(e.flags|=128,l=!0,Ii(o,!1),e.lanes=4194304)}else{if(!l)if(t=Ns(c),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,Us(e,t),Ii(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!gt)return Ot(e),null}else 2*Xe()-o.renderingStartTime>qs&&a!==536870912&&(e.flags|=128,l=!0,Ii(o,!1),e.lanes=4194304);o.isBackwards?(c.sibling=e.child,e.child=c):(t=o.last,t!==null?t.sibling=c:e.child=c,o.last=c)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Xe(),e.sibling=null,t=Qt.current,$(Qt,l?t&1|2:t&1),e):(Ot(e),null);case 22:case 23:return cn(e),Lo(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Ot(e),e.subtreeFlags&6&&(e.flags|=8192)):Ot(e),a=e.updateQueue,a!==null&&Us(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&J(fa),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),on(Kt),Ot(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function R1(t,e){switch(So(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return on(Kt),An(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Zl(e),null;case 13:if(cn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Ui()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return J(Qt),null;case 4:return An(),null;case 10:return on(e.type),null;case 22:case 23:return cn(e),Lo(),t!==null&&J(fa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return on(Kt),null;case 25:return null;default:return null}}function cm(t,e){switch(So(e),e.tag){case 3:on(Kt),An();break;case 26:case 27:case 5:Zl(e);break;case 4:An();break;case 13:cn(e);break;case 19:J(Qt);break;case 10:on(e.type);break;case 22:case 23:cn(e),Lo(),t!==null&&J(fa);break;case 24:on(Kt)}}function tl(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&t)===t){l=void 0;var c=a.create,y=a.inst;l=c(),y.destroy=l}a=a.next}while(a!==o)}}catch(v){Mt(e,e.return,v)}}function jn(t,e,a){try{var l=e.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&t)===t){var y=l.inst,v=y.destroy;if(v!==void 0){y.destroy=void 0,o=e;var T=a,z=v;try{z()}catch(q){Mt(o,T,q)}}}l=l.next}while(l!==c)}}catch(q){Mt(e,e.return,q)}}function fm(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{Wd(e,a)}catch(l){Mt(t,t.return,l)}}}function dm(t,e,a){a.props=ha(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Mt(t,e,l)}}function el(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(o){Mt(t,e,o)}}function Pe(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Mt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Mt(t,e,o)}else a.current=null}function hm(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Mt(t,t.return,o)}}function cu(t,e,a){try{var l=t.stateNode;Z1(l,t.type,a,e),l[ue]=e}catch(o){Mt(t,t.return,o)}}function mm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Gn(t.type)||t.tag===4}function fu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||mm(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&&Gn(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 du(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=$s));else if(l!==4&&(l===27&&Gn(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(du(t,e,a),t=t.sibling;t!==null;)du(t,e,a),t=t.sibling}function Bs(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&Gn(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Bs(t,e,a),t=t.sibling;t!==null;)Bs(t,e,a),t=t.sibling}function pm(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);It(e,l,a),e[ee]=t,e[ue]=a}catch(c){Mt(t,t.return,c)}}var hn=!1,Ht=!1,hu=!1,ym=typeof WeakSet=="function"?WeakSet:Set,$t=null;function w1(t,e){if(t=t.containerInfo,Uu=nr,t=Rd(t),co(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var y=0,v=-1,T=-1,z=0,q=0,G=t,L=null;e:for(;;){for(var U;G!==a||o!==0&&G.nodeType!==3||(v=y+o),G!==c||l!==0&&G.nodeType!==3||(T=y+l),G.nodeType===3&&(y+=G.nodeValue.length),(U=G.firstChild)!==null;)L=G,G=U;for(;;){if(G===t)break e;if(L===a&&++z===o&&(v=y),L===c&&++q===l&&(T=y),(U=G.nextSibling)!==null)break;G=L,L=G.parentNode}G=U}a=v===-1||T===-1?null:{start:v,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(Bu={focusedElem:t,selectionRange:a},nr=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,c=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,a=e,o=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var it=ha(a.type,o,a.elementType===a.type);t=l.getSnapshotBeforeUpdate(it,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(nt){Mt(a,a.return,nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Yu(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Yu(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,$t=t;break}$t=e.return}}function gm(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ln(t,a),l&4&&tl(5,a);break;case 1:if(Ln(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(y){Mt(a,a.return,y)}else{var o=ha(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(y){Mt(a,a.return,y)}}l&64&&fm(a),l&512&&el(a,a.return);break;case 3:if(Ln(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{Wd(t,e)}catch(y){Mt(a,a.return,y)}}break;case 27:e===null&&l&4&&pm(a);case 26:case 5:Ln(t,a),e===null&&l&4&&hm(a),l&512&&el(a,a.return);break;case 12:Ln(t,a);break;case 13:Ln(t,a),l&4&&xm(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=U1.bind(null,a),eb(t,a))));break;case 22:if(l=a.memoizedState!==null||hn,!l){e=e!==null&&e.memoizedState!==null||Ht,o=hn;var c=Ht;hn=l,(Ht=e)&&!c?Un(t,a,(a.subtreeFlags&8772)!==0):Ln(t,a),hn=o,Ht=c}break;case 30:break;default:Ln(t,a)}}function vm(t){var e=t.alternate;e!==null&&(t.alternate=null,vm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Kr(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 Ct=null,de=!1;function mn(t,e,a){for(a=a.child;a!==null;)bm(t,e,a),a=a.sibling}function bm(t,e,a){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(Si,a)}catch{}switch(a.tag){case 26:Ht||Pe(a,e),mn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ht||Pe(a,e);var l=Ct,o=de;Gn(a.type)&&(Ct=a.stateNode,de=!1),mn(t,e,a),cl(a.stateNode),Ct=l,de=o;break;case 5:Ht||Pe(a,e);case 6:if(l=Ct,o=de,Ct=null,mn(t,e,a),Ct=l,de=o,Ct!==null)if(de)try{(Ct.nodeType===9?Ct.body:Ct.nodeName==="HTML"?Ct.ownerDocument.body:Ct).removeChild(a.stateNode)}catch(c){Mt(a,e,c)}else try{Ct.removeChild(a.stateNode)}catch(c){Mt(a,e,c)}break;case 18:Ct!==null&&(de?(t=Ct,rp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),vl(t)):rp(Ct,a.stateNode));break;case 4:l=Ct,o=de,Ct=a.stateNode.containerInfo,de=!0,mn(t,e,a),Ct=l,de=o;break;case 0:case 11:case 14:case 15:Ht||jn(2,a,e),Ht||jn(4,a,e),mn(t,e,a);break;case 1:Ht||(Pe(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&dm(a,e,l)),mn(t,e,a);break;case 21:mn(t,e,a);break;case 22:Ht=(l=Ht)||a.memoizedState!==null,mn(t,e,a),Ht=l;break;default:mn(t,e,a)}}function xm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vl(t)}catch(a){Mt(e,e.return,a)}}function D1(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ym),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ym),e;default:throw Error(r(435,t.tag))}}function mu(t,e){var a=D1(t);e.forEach(function(l){var o=B1.bind(null,t,l);a.has(l)||(a.add(l),l.then(o,o))})}function xe(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],c=t,y=e,v=y;t:for(;v!==null;){switch(v.tag){case 27:if(Gn(v.type)){Ct=v.stateNode,de=!1;break t}break;case 5:Ct=v.stateNode,de=!1;break t;case 3:case 4:Ct=v.stateNode.containerInfo,de=!0;break t}v=v.return}if(Ct===null)throw Error(r(160));bm(c,y,o),Ct=null,de=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Tm(e,t),e=e.sibling}var He=null;function Tm(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),Te(t),l&4&&(jn(3,t,t.return),tl(3,t),jn(5,t,t.return));break;case 1:xe(e,t),Te(t),l&512&&(Ht||a===null||Pe(a,a.return)),l&64&&hn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=He;if(xe(e,t),Te(t),l&512&&(Ht||a===null||Pe(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[_i]||c[ee]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),It(c,l,a),c[ee]=t,Pt(c),l=c;break t;case"link":var y=pp("link","href",o).get(l+(a.href||""));if(y){for(var v=0;v<y.length;v++)if(c=y[v],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(v,1);break e}}c=o.createElement(l),It(c,l,a),o.head.appendChild(c);break;case"meta":if(y=pp("meta","content",o).get(l+(a.content||""))){for(v=0;v<y.length;v++)if(c=y[v],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(v,1);break e}}c=o.createElement(l),It(c,l,a),o.head.appendChild(c);break;default:throw Error(r(468,l))}c[ee]=t,Pt(c),l=c}t.stateNode=l}else yp(o,t.type,t.stateNode);else t.stateNode=mp(o,l,t.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?yp(o,t.type,t.stateNode):mp(o,l,t.memoizedProps)):l===null&&t.stateNode!==null&&cu(t,t.memoizedProps,a.memoizedProps)}break;case 27:xe(e,t),Te(t),l&512&&(Ht||a===null||Pe(a,a.return)),a!==null&&l&4&&cu(t,t.memoizedProps,a.memoizedProps);break;case 5:if(xe(e,t),Te(t),l&512&&(Ht||a===null||Pe(a,a.return)),t.flags&32){o=t.stateNode;try{Na(o,"")}catch(U){Mt(t,t.return,U)}}l&4&&t.stateNode!=null&&(o=t.memoizedProps,cu(t,o,a!==null?a.memoizedProps:o)),l&1024&&(hu=!0);break;case 6:if(xe(e,t),Te(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(U){Mt(t,t.return,U)}}break;case 3:if(Is=null,o=He,He=Fs(e.containerInfo),xe(e,t),He=o,Te(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{vl(e.containerInfo)}catch(U){Mt(t,t.return,U)}hu&&(hu=!1,Sm(t));break;case 4:l=He,He=Fs(t.stateNode.containerInfo),xe(e,t),Te(t),He=l;break;case 12:xe(e,t),Te(t);break;case 13:xe(e,t),Te(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xu=Xe()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,mu(t,l)));break;case 22:o=t.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,z=hn,q=Ht;if(hn=z||o,Ht=q||T,xe(e,t),Ht=q,hn=z,Te(t),l&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||T||hn||Ht||ma(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){T=a=e;try{if(c=T.stateNode,o)y=c.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{v=T.stateNode;var G=T.memoizedProps.style,L=G!=null&&G.hasOwnProperty("display")?G.display:null;v.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(U){Mt(T,T.return,U)}}}else if(e.tag===6){if(a===null){T=e;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(U){Mt(T,T.return,U)}}}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;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,mu(t,a))));break;case 19:xe(e,t),Te(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,mu(t,l)));break;case 30:break;case 21:break;default:xe(e,t),Te(t)}}function Te(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(mm(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,c=fu(t);Bs(t,c,o);break;case 5:var y=a.stateNode;a.flags&32&&(Na(y,""),a.flags&=-33);var v=fu(t);Bs(t,v,y);break;case 3:case 4:var T=a.stateNode.containerInfo,z=fu(t);du(t,z,T);break;default:throw Error(r(161))}}catch(q){Mt(t,t.return,q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Sm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Sm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ln(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)gm(t,e.alternate,e),e=e.sibling}function ma(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:jn(4,e,e.return),ma(e);break;case 1:Pe(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&dm(e,e.return,a),ma(e);break;case 27:cl(e.stateNode);case 26:case 5:Pe(e,e.return),ma(e);break;case 22:e.memoizedState===null&&ma(e);break;case 30:ma(e);break;default:ma(e)}t=t.sibling}}function Un(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,o=t,c=e,y=c.flags;switch(c.tag){case 0:case 11:case 15:Un(o,c,a),tl(4,c);break;case 1:if(Un(o,c,a),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Mt(l,l.return,z)}if(l=c,o=l.updateQueue,o!==null){var v=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Fd(T[o],v)}catch(z){Mt(l,l.return,z)}}a&&y&64&&fm(c),el(c,c.return);break;case 27:pm(c);case 26:case 5:Un(o,c,a),a&&l===null&&y&4&&hm(c),el(c,c.return);break;case 12:Un(o,c,a);break;case 13:Un(o,c,a),a&&y&4&&xm(o,c);break;case 22:c.memoizedState===null&&Un(o,c,a),el(c,c.return);break;case 30:break;default:Un(o,c,a)}e=e.sibling}}function pu(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&qi(a))}function yu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qi(t))}function Ze(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Em(t,e,a,l),e=e.sibling}function Em(t,e,a,l){var o=e.flags;switch(e.tag){case 0:case 11:case 15:Ze(t,e,a,l),o&2048&&tl(9,e);break;case 1:Ze(t,e,a,l);break;case 3:Ze(t,e,a,l),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qi(t)));break;case 12:if(o&2048){Ze(t,e,a,l),t=e.stateNode;try{var c=e.memoizedProps,y=c.id,v=c.onPostCommit;typeof v=="function"&&v(y,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Mt(e,e.return,T)}}else Ze(t,e,a,l);break;case 13:Ze(t,e,a,l);break;case 23:break;case 22:c=e.stateNode,y=e.alternate,e.memoizedState!==null?c._visibility&2?Ze(t,e,a,l):nl(t,e):c._visibility&2?Ze(t,e,a,l):(c._visibility|=2,Fa(t,e,a,l,(e.subtreeFlags&10256)!==0)),o&2048&&pu(y,e);break;case 24:Ze(t,e,a,l),o&2048&&yu(e.alternate,e);break;default:Ze(t,e,a,l)}}function Fa(t,e,a,l,o){for(o=o&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var c=t,y=e,v=a,T=l,z=y.flags;switch(y.tag){case 0:case 11:case 15:Fa(c,y,v,T,o),tl(8,y);break;case 23:break;case 22:var q=y.stateNode;y.memoizedState!==null?q._visibility&2?Fa(c,y,v,T,o):nl(c,y):(q._visibility|=2,Fa(c,y,v,T,o)),o&&z&2048&&pu(y.alternate,y);break;case 24:Fa(c,y,v,T,o),o&&z&2048&&yu(y.alternate,y);break;default:Fa(c,y,v,T,o)}e=e.sibling}}function nl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,o=l.flags;switch(l.tag){case 22:nl(a,l),o&2048&&pu(l.alternate,l);break;case 24:nl(a,l),o&2048&&yu(l.alternate,l);break;default:nl(a,l)}e=e.sibling}}var al=8192;function Wa(t){if(t.subtreeFlags&al)for(t=t.child;t!==null;)Am(t),t=t.sibling}function Am(t){switch(t.tag){case 26:Wa(t),t.flags&al&&t.memoizedState!==null&&mb(He,t.memoizedState,t.memoizedProps);break;case 5:Wa(t);break;case 3:case 4:var e=He;He=Fs(t.stateNode.containerInfo),Wa(t),He=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=al,al=16777216,Wa(t),al=e):Wa(t));break;default:Wa(t)}}function _m(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 il(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];$t=l,Rm(l,t)}_m(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mm(t),t=t.sibling}function Mm(t){switch(t.tag){case 0:case 11:case 15:il(t),t.flags&2048&&jn(9,t,t.return);break;case 3:il(t);break;case 12:il(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Hs(t)):il(t);break;default:il(t)}}function Hs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];$t=l,Rm(l,t)}_m(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:jn(8,e,e.return),Hs(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Hs(e));break;default:Hs(e)}t=t.sibling}}function Rm(t,e){for(;$t!==null;){var a=$t;switch(a.tag){case 0:case 11:case 15:jn(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:qi(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,$t=l;else t:for(a=t;$t!==null;){l=$t;var o=l.sibling,c=l.return;if(vm(l),l===a){$t=null;break t}if(o!==null){o.return=c,$t=o;break t}$t=c}}}var C1={getCacheForType:function(t){var e=ne(Kt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a}},O1=typeof WeakMap=="function"?WeakMap:Map,bt=0,Rt=null,ft=null,ht=0,xt=0,Se=null,Bn=!1,Ia=!1,gu=!1,pn=0,Lt=0,Hn=0,pa=0,vu=0,ze=0,ti=0,ll=null,he=null,bu=!1,xu=0,qs=1/0,Ys=null,qn=null,Wt=0,Yn=null,ei=null,ni=0,Tu=0,Su=null,wm=null,sl=0,Eu=null;function Ee(){if((bt&2)!==0&&ht!==0)return ht&-ht;if(H.T!==null){var t=Ga;return t!==0?t:Cu()}return Xf()}function Dm(){ze===0&&(ze=(ht&536870912)===0||gt?qf():536870912);var t=Ne.current;return t!==null&&(t.flags|=32),ze}function Ae(t,e,a){(t===Rt&&(xt===2||xt===9)||t.cancelPendingCommit!==null)&&(ai(t,0),kn(t,ht,ze,!1)),Ai(t,a),((bt&2)===0||t!==Rt)&&(t===Rt&&((bt&2)===0&&(pa|=a),Lt===4&&kn(t,ht,ze,!1)),$e(t))}function Cm(t,e,a){if((bt&6)!==0)throw Error(r(327));var l=!a&&(e&124)===0&&(e&t.expiredLanes)===0||Ei(t,e),o=l?V1(t,e):Mu(t,e,!0),c=l;do{if(o===0){Ia&&!l&&kn(t,e,0,!1);break}else{if(a=t.current.alternate,c&&!N1(a)){o=Mu(t,e,!1),c=!1;continue}if(o===2){if(c=e,t.errorRecoveryDisabledLanes&c)var y=0;else y=t.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){e=y;t:{var v=t;o=ll;var T=v.current.memoizedState.isDehydrated;if(T&&(ai(v,y).flags|=256),y=Mu(v,y,!1),y!==2){if(gu&&!T){v.errorRecoveryDisabledLanes|=c,pa|=c,o=4;break t}c=he,he=o,c!==null&&(he===null?he=c:he.push.apply(he,c))}o=y}if(c=!1,o!==2)continue}}if(o===1){ai(t,0),kn(t,e,0,!0);break}t:{switch(l=t,c=o,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:kn(l,e,ze,!Bn);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=xu+300-Xe(),10<o)){if(kn(l,e,ze,!Bn),Wl(l,0,!0)!==0)break t;l.timeoutHandle=lp(Om.bind(null,l,a,he,Ys,bu,e,ze,pa,ti,Bn,c,2,-0,0),o);break t}Om(l,a,he,Ys,bu,e,ze,pa,ti,Bn,c,0,-0,0)}}break}while(!0);$e(t)}function Om(t,e,a,l,o,c,y,v,T,z,q,G,L,U){if(t.timeoutHandle=-1,G=e.subtreeFlags,(G&8192||(G&16785408)===16785408)&&(hl={stylesheets:null,count:0,unsuspend:hb},Am(e),G=pb(),G!==null)){t.cancelPendingCommit=G(Bm.bind(null,t,e,c,a,l,o,y,v,T,q,1,L,U)),kn(t,c,y,!z);return}Bm(t,e,c,a,l,o,y,v,T)}function N1(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],c=o.getSnapshot;o=o.value;try{if(!ve(c(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;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 kn(t,e,a,l){e&=~vu,e&=~pa,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var o=e;0<o;){var c=31-ge(o),y=1<<c;l[c]=-1,o&=~y}a!==0&&kf(t,a,e)}function ks(){return(bt&6)===0?(rl(0),!1):!0}function Au(){if(ft!==null){if(xt===0)var t=ft.return;else t=ft,rn=ua=null,Yo(t),$a=null,Fi=0,t=ft;for(;t!==null;)cm(t.alternate,t),t=t.return;ft=null}}function ai(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,J1(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Au(),Rt=t,ft=a=an(t.current,null),ht=e,xt=0,Se=null,Bn=!1,Ia=Ei(t,e),gu=!1,ti=ze=vu=pa=Hn=Lt=0,he=ll=null,bu=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var o=31-ge(l),c=1<<o;e|=t[o],l&=~c}return pn=e,cs(),a}function Nm(t,e){ut=null,H.H=Ds,e===ki||e===bs?(e=$d(),xt=3):e===Qd?(e=$d(),xt=4):xt=e===Jh?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,ft===null&&(Lt=1,Vs(t,we(e,t.current)))}function zm(){var t=H.H;return H.H=Ds,t===null?Ds:t}function Vm(){var t=H.A;return H.A=C1,t}function _u(){Lt=4,Bn||(ht&4194048)!==ht&&Ne.current!==null||(Ia=!0),(Hn&134217727)===0&&(pa&134217727)===0||Rt===null||kn(Rt,ht,ze,!1)}function Mu(t,e,a){var l=bt;bt|=2;var o=zm(),c=Vm();(Rt!==t||ht!==e)&&(Ys=null,ai(t,e)),e=!1;var y=Lt;t:do try{if(xt!==0&&ft!==null){var v=ft,T=Se;switch(xt){case 8:Au(),y=6;break t;case 3:case 2:case 9:case 6:Ne.current===null&&(e=!0);var z=xt;if(xt=0,Se=null,ii(t,v,T,z),a&&Ia){y=0;break t}break;default:z=xt,xt=0,Se=null,ii(t,v,T,z)}}z1(),y=Lt;break}catch(q){Nm(t,q)}while(!0);return e&&t.shellSuspendCounter++,rn=ua=null,bt=l,H.H=o,H.A=c,ft===null&&(Rt=null,ht=0,cs()),y}function z1(){for(;ft!==null;)jm(ft)}function V1(t,e){var a=bt;bt|=2;var l=zm(),o=Vm();Rt!==t||ht!==e?(Ys=null,qs=Xe()+500,ai(t,e)):Ia=Ei(t,e);t:do try{if(xt!==0&&ft!==null){e=ft;var c=Se;e:switch(xt){case 1:xt=0,Se=null,ii(t,e,c,1);break;case 2:case 9:if(Pd(c)){xt=0,Se=null,Lm(e);break}e=function(){xt!==2&&xt!==9||Rt!==t||(xt=7),$e(t)},c.then(e,e);break t;case 3:xt=7;break t;case 4:xt=5;break t;case 7:Pd(c)?(xt=0,Se=null,Lm(e)):(xt=0,Se=null,ii(t,e,c,7));break;case 5:var y=null;switch(ft.tag){case 26:y=ft.memoizedState;case 5:case 27:var v=ft;if(!y||gp(y)){xt=0,Se=null;var T=v.sibling;if(T!==null)ft=T;else{var z=v.return;z!==null?(ft=z,Gs(z)):ft=null}break e}}xt=0,Se=null,ii(t,e,c,5);break;case 6:xt=0,Se=null,ii(t,e,c,6);break;case 8:Au(),Lt=6;break t;default:throw Error(r(462))}}j1();break}catch(q){Nm(t,q)}while(!0);return rn=ua=null,H.H=l,H.A=o,bt=a,ft!==null?0:(Rt=null,ht=0,cs(),Lt)}function j1(){for(;ft!==null&&!av();)jm(ft)}function jm(t){var e=om(t.alternate,t,pn);t.memoizedProps=t.pendingProps,e===null?Gs(t):ft=e}function Lm(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=nm(a,e,e.pendingProps,e.type,void 0,ht);break;case 11:e=nm(a,e,e.pendingProps,e.type.render,e.ref,ht);break;case 5:Yo(e);default:cm(a,e),e=ft=Ud(e,pn),e=om(a,e,pn)}t.memoizedProps=t.pendingProps,e===null?Gs(t):ft=e}function ii(t,e,a,l){rn=ua=null,Yo(e),$a=null,Fi=0;var o=e.return;try{if(A1(t,o,e,a,ht)){Lt=1,Vs(t,we(a,t.current)),ft=null;return}}catch(c){if(o!==null)throw ft=o,c;Lt=1,Vs(t,we(a,t.current)),ft=null;return}e.flags&32768?(gt||l===1?t=!0:Ia||(ht&536870912)!==0?t=!1:(Bn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ne.current,l!==null&&l.tag===13&&(l.flags|=16384))),Um(e,t)):Gs(e)}function Gs(t){var e=t;do{if((e.flags&32768)!==0){Um(e,Bn);return}t=e.return;var a=M1(e.alternate,e,pn);if(a!==null){ft=a;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Lt===0&&(Lt=5)}function Um(t,e){do{var a=R1(t.alternate,t);if(a!==null){a.flags&=32767,ft=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=a}while(t!==null);Lt=6,ft=null}function Bm(t,e,a,l,o,c,y,v,T){t.cancelPendingCommit=null;do Xs();while(Wt!==0);if((bt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=yo,hv(t,a,c,y,v,T),t===Rt&&(ft=Rt=null,ht=0),ei=e,Yn=t,ni=a,Tu=c,Su=o,wm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,H1($l,function(){return Gm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,o=Q.p,Q.p=2,y=bt,bt|=4;try{w1(t,e,a)}finally{bt=y,Q.p=o,H.T=l}}Wt=1,Hm(),qm(),Ym()}}function Hm(){if(Wt===1){Wt=0;var t=Yn,e=ei,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=H.T,H.T=null;var l=Q.p;Q.p=2;var o=bt;bt|=4;try{Tm(e,t);var c=Bu,y=Rd(t.containerInfo),v=c.focusedElem,T=c.selectionRange;if(y!==v&&v&&v.ownerDocument&&Md(v.ownerDocument.documentElement,v)){if(T!==null&&co(v)){var z=T.start,q=T.end;if(q===void 0&&(q=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(q,v.value.length);else{var G=v.ownerDocument||document,L=G&&G.defaultView||window;if(L.getSelection){var U=L.getSelection(),it=v.textContent.length,nt=Math.min(T.start,it),Et=T.end===void 0?nt:Math.min(T.end,it);!U.extend&&nt>Et&&(y=Et,Et=nt,nt=y);var w=_d(v,nt),M=_d(v,Et);if(w&&M&&(U.rangeCount!==1||U.anchorNode!==w.node||U.anchorOffset!==w.offset||U.focusNode!==M.node||U.focusOffset!==M.offset)){var N=G.createRange();N.setStart(w.node,w.offset),U.removeAllRanges(),nt>Et?(U.addRange(N),U.extend(M.node,M.offset)):(N.setEnd(M.node,M.offset),U.addRange(N))}}}}for(G=[],U=v;U=U.parentNode;)U.nodeType===1&&G.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<G.length;v++){var k=G[v];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}nr=!!Uu,Bu=Uu=null}finally{bt=o,Q.p=l,H.T=a}}t.current=e,Wt=2}}function qm(){if(Wt===2){Wt=0;var t=Yn,e=ei,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=H.T,H.T=null;var l=Q.p;Q.p=2;var o=bt;bt|=4;try{gm(t,e.alternate,e)}finally{bt=o,Q.p=l,H.T=a}}Wt=3}}function Ym(){if(Wt===4||Wt===3){Wt=0,iv();var t=Yn,e=ei,a=ni,l=wm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,ei=Yn=null,km(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(qn=null),Gr(a),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(Si,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=H.T,o=Q.p,Q.p=2,H.T=null;try{for(var c=t.onRecoverableError,y=0;y<l.length;y++){var v=l[y];c(v.value,{componentStack:v.stack})}}finally{H.T=e,Q.p=o}}(ni&3)!==0&&Xs(),$e(t),o=t.pendingLanes,(a&4194090)!==0&&(o&42)!==0?t===Eu?sl++:(sl=0,Eu=t):sl=0,rl(0)}}function km(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,qi(e)))}function Xs(t){return Hm(),qm(),Ym(),Gm()}function Gm(){if(Wt!==5)return!1;var t=Yn,e=Tu;Tu=0;var a=Gr(ni),l=H.T,o=Q.p;try{Q.p=32>a?32:a,H.T=null,a=Su,Su=null;var c=Yn,y=ni;if(Wt=0,ei=Yn=null,ni=0,(bt&6)!==0)throw Error(r(331));var v=bt;if(bt|=4,Mm(c.current),Em(c,c.current,y,a),bt=v,rl(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(Si,c)}catch{}return!0}finally{Q.p=o,H.T=l,km(t,e)}}function Xm(t,e,a){e=we(a,e),e=eu(t.stateNode,e,2),t=On(t,e,2),t!==null&&(Ai(t,2),$e(t))}function Mt(t,e,a){if(t.tag===3)Xm(t,t,a);else for(;e!==null;){if(e.tag===3){Xm(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(qn===null||!qn.has(l))){t=we(a,t),a=Zh(2),l=On(e,a,2),l!==null&&($h(a,l,e,t),Ai(l,2),$e(l));break}}e=e.return}}function Ru(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new O1;var o=new Set;l.set(e,o)}else o=l.get(e),o===void 0&&(o=new Set,l.set(e,o));o.has(a)||(gu=!0,o.add(a),t=L1.bind(null,t,e,a),e.then(t,t))}function L1(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Rt===t&&(ht&a)===a&&(Lt===4||Lt===3&&(ht&62914560)===ht&&300>Xe()-xu?(bt&2)===0&&ai(t,0):vu|=a,ti===ht&&(ti=0)),$e(t)}function Km(t,e){e===0&&(e=Yf()),t=Ha(t,e),t!==null&&(Ai(t,e),$e(t))}function U1(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Km(t,a)}function B1(t,e){var a=0;switch(t.tag){case 13:var l=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),Km(t,a)}function H1(t,e){return Hr(t,e)}var Ks=null,li=null,wu=!1,Qs=!1,Du=!1,ya=0;function $e(t){t!==li&&t.next===null&&(li===null?Ks=li=t:li=li.next=t),Qs=!0,wu||(wu=!0,Y1())}function rl(t,e){if(!Du&&Qs){Du=!0;do for(var a=!1,l=Ks;l!==null;){if(t!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var y=l.suspendedLanes,v=l.pingedLanes;c=(1<<31-ge(42|t)+1)-1,c&=o&~(y&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,$m(l,c))}else c=ht,c=Wl(l,l===Rt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Ei(l,c)||(a=!0,$m(l,c));l=l.next}while(a);Du=!1}}function q1(){Qm()}function Qm(){Qs=wu=!1;var t=0;ya!==0&&($1()&&(t=ya),ya=0);for(var e=Xe(),a=null,l=Ks;l!==null;){var o=l.next,c=Pm(l,e);c===0?(l.next=null,a===null?Ks=o:a.next=o,o===null&&(li=a)):(a=l,(t!==0||(c&3)!==0)&&(Qs=!0)),l=o}rl(t)}function Pm(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,o=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var y=31-ge(c),v=1<<y,T=o[y];T===-1?((v&a)===0||(v&l)!==0)&&(o[y]=dv(v,e)):T<=e&&(t.expiredLanes|=v),c&=~v}if(e=Rt,a=ht,a=Wl(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(xt===2||xt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&qr(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Ei(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&qr(l),Gr(a)){case 2:case 8:a=Bf;break;case 32:a=$l;break;case 268435456:a=Hf;break;default:a=$l}return l=Zm.bind(null,t),a=Hr(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&qr(l),t.callbackPriority=2,t.callbackNode=null,2}function Zm(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Xs()&&t.callbackNode!==a)return null;var l=ht;return l=Wl(t,t===Rt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Cm(t,l,e),Pm(t,Xe()),t.callbackNode!=null&&t.callbackNode===a?Zm.bind(null,t):null)}function $m(t,e){if(Xs())return null;Cm(t,e,!0)}function Y1(){F1(function(){(bt&6)!==0?Hr(Uf,q1):Qm()})}function Cu(){return ya===0&&(ya=qf()),ya}function Jm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:as(""+t)}function Fm(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function k1(t,e,a,l,o){if(e==="submit"&&a&&a.stateNode===o){var c=Jm((o[ue]||null).action),y=l.submitter;y&&(e=(e=y[ue]||null)?Jm(e.formAction):y.getAttribute("formAction"),e!==null&&(c=e,y=null));var v=new rs("action","action",null,l,o);t.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ya!==0){var T=y?Fm(o,y):new FormData(o);Jo(a,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(v.preventDefault(),T=y?Fm(o,y):new FormData(o),Jo(a,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var Ou=0;Ou<po.length;Ou++){var Nu=po[Ou],G1=Nu.toLowerCase(),X1=Nu[0].toUpperCase()+Nu.slice(1);Be(G1,"on"+X1)}Be(Cd,"onAnimationEnd"),Be(Od,"onAnimationIteration"),Be(Nd,"onAnimationStart"),Be("dblclick","onDoubleClick"),Be("focusin","onFocus"),Be("focusout","onBlur"),Be(r1,"onTransitionRun"),Be(o1,"onTransitionStart"),Be(u1,"onTransitionCancel"),Be(zd,"onTransitionEnd"),Da("onMouseEnter",["mouseout","mouseover"]),Da("onMouseLeave",["mouseout","mouseover"]),Da("onPointerEnter",["pointerout","pointerover"]),Da("onPointerLeave",["pointerout","pointerover"]),ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ol="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(" "),K1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ol));function Wm(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],o=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var y=l.length-1;0<=y;y--){var v=l[y],T=v.instance,z=v.currentTarget;if(v=v.listener,T!==c&&o.isPropagationStopped())break t;c=v,o.currentTarget=z;try{c(o)}catch(q){zs(q)}o.currentTarget=null,c=T}else for(y=0;y<l.length;y++){if(v=l[y],T=v.instance,z=v.currentTarget,v=v.listener,T!==c&&o.isPropagationStopped())break t;c=v,o.currentTarget=z;try{c(o)}catch(q){zs(q)}o.currentTarget=null,c=T}}}}function dt(t,e){var a=e[Xr];a===void 0&&(a=e[Xr]=new Set);var l=t+"__bubble";a.has(l)||(Im(e,t,2,!1),a.add(l))}function zu(t,e,a){var l=0;e&&(l|=4),Im(a,t,l,e)}var Ps="_reactListening"+Math.random().toString(36).slice(2);function Vu(t){if(!t[Ps]){t[Ps]=!0,Qf.forEach(function(a){a!=="selectionchange"&&(K1.has(a)||zu(a,!1,t),zu(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ps]||(e[Ps]=!0,zu("selectionchange",!1,e))}}function Im(t,e,a,l){switch(Ep(e)){case 2:var o=vb;break;case 8:o=bb;break;default:o=Zu}a=o.bind(null,e,a,t),o=void 0,!eo||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),l?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function ju(t,e,a,l,o){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var v=l.stateNode.containerInfo;if(v===o)break;if(y===4)for(y=l.return;y!==null;){var T=y.tag;if((T===3||T===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;v!==null;){if(y=Ma(v),y===null)return;if(T=y.tag,T===5||T===6||T===26||T===27){l=c=y;continue t}v=v.parentNode}}l=l.return}sd(function(){var z=c,q=Ir(a),G=[];t:{var L=Vd.get(t);if(L!==void 0){var U=rs,it=t;switch(t){case"keypress":if(ls(a)===0)break t;case"keydown":case"keyup":U=Hv;break;case"focusin":it="focus",U=lo;break;case"focusout":it="blur",U=lo;break;case"beforeblur":case"afterblur":U=lo;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Rv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=kv;break;case Cd:case Od:case Nd:U=Cv;break;case zd:U=Xv;break;case"scroll":case"scrollend":U=_v;break;case"wheel":U=Qv;break;case"copy":case"cut":case"paste":U=Nv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=fd;break;case"toggle":case"beforetoggle":U=Zv}var nt=(e&4)!==0,Et=!nt&&(t==="scroll"||t==="scrollend"),w=nt?L!==null?L+"Capture":null:L;nt=[];for(var M=z,N;M!==null;){var k=M;if(N=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||N===null||w===null||(k=Ri(M,w),k!=null&&nt.push(ul(M,k,N))),Et)break;M=M.return}0<nt.length&&(L=new U(L,it,null,a,q),G.push({event:L,listeners:nt}))}}if((e&7)===0){t:{if(L=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",L&&a!==Wr&&(it=a.relatedTarget||a.fromElement)&&(Ma(it)||it[_a]))break t;if((U||L)&&(L=q.window===q?q:(L=q.ownerDocument)?L.defaultView||L.parentWindow:window,U?(it=a.relatedTarget||a.toElement,U=z,it=it?Ma(it):null,it!==null&&(Et=d(it),nt=it.tag,it!==Et||nt!==5&&nt!==27&&nt!==6)&&(it=null)):(U=null,it=z),U!==it)){if(nt=ud,k="onMouseLeave",w="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(nt=fd,k="onPointerLeave",w="onPointerEnter",M="pointer"),Et=U==null?L:Mi(U),N=it==null?L:Mi(it),L=new nt(k,M+"leave",U,a,q),L.target=Et,L.relatedTarget=N,k=null,Ma(q)===z&&(nt=new nt(w,M+"enter",it,a,q),nt.target=N,nt.relatedTarget=Et,k=nt),Et=k,U&&it)e:{for(nt=U,w=it,M=0,N=nt;N;N=si(N))M++;for(N=0,k=w;k;k=si(k))N++;for(;0<M-N;)nt=si(nt),M--;for(;0<N-M;)w=si(w),N--;for(;M--;){if(nt===w||w!==null&&nt===w.alternate)break e;nt=si(nt),w=si(w)}nt=null}else nt=null;U!==null&&tp(G,L,U,nt,!1),it!==null&&Et!==null&&tp(G,Et,it,nt,!0)}}t:{if(L=z?Mi(z):window,U=L.nodeName&&L.nodeName.toLowerCase(),U==="select"||U==="input"&&L.type==="file")var W=bd;else if(gd(L))if(xd)W=i1;else{W=n1;var ct=e1}else U=L.nodeName,!U||U.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?z&&Fr(z.elementType)&&(W=bd):W=a1;if(W&&(W=W(t,z))){vd(G,W,a,q);break t}ct&&ct(t,L,z),t==="focusout"&&z&&L.type==="number"&&z.memoizedProps.value!=null&&Jr(L,"number",L.value)}switch(ct=z?Mi(z):window,t){case"focusin":(gd(ct)||ct.contentEditable==="true")&&(La=ct,fo=z,ji=null);break;case"focusout":ji=fo=La=null;break;case"mousedown":ho=!0;break;case"contextmenu":case"mouseup":case"dragend":ho=!1,wd(G,a,q);break;case"selectionchange":if(s1)break;case"keydown":case"keyup":wd(G,a,q)}var I;if(ro)t:{switch(t){case"compositionstart":var at="onCompositionStart";break t;case"compositionend":at="onCompositionEnd";break t;case"compositionupdate":at="onCompositionUpdate";break t}at=void 0}else ja?pd(t,a)&&(at="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(at="onCompositionStart");at&&(dd&&a.locale!=="ko"&&(ja||at!=="onCompositionStart"?at==="onCompositionEnd"&&ja&&(I=rd()):(Rn=q,no="value"in Rn?Rn.value:Rn.textContent,ja=!0)),ct=Zs(z,at),0<ct.length&&(at=new cd(at,t,null,a,q),G.push({event:at,listeners:ct}),I?at.data=I:(I=yd(a),I!==null&&(at.data=I)))),(I=Jv?Fv(t,a):Wv(t,a))&&(at=Zs(z,"onBeforeInput"),0<at.length&&(ct=new cd("onBeforeInput","beforeinput",null,a,q),G.push({event:ct,listeners:at}),ct.data=I)),k1(G,t,z,a,q)}Wm(G,e)})}function ul(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Zs(t,e){for(var a=e+"Capture",l=[];t!==null;){var o=t,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Ri(t,a),o!=null&&l.unshift(ul(t,o,c)),o=Ri(t,e),o!=null&&l.push(ul(t,o,c))),t.tag===3)return l;t=t.return}return[]}function si(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function tp(t,e,a,l,o){for(var c=e._reactName,y=[];a!==null&&a!==l;){var v=a,T=v.alternate,z=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==27||z===null||(T=z,o?(z=Ri(a,c),z!=null&&y.unshift(ul(a,z,T))):o||(z=Ri(a,c),z!=null&&y.push(ul(a,z,T)))),a=a.return}y.length!==0&&t.push({event:e,listeners:y})}var Q1=/\r\n?/g,P1=/\u0000|\uFFFD/g;function ep(t){return(typeof t=="string"?t:""+t).replace(Q1,`
49`).replace(P1,"")}function np(t,e){return e=ep(e),ep(t)===e}function $s(){}function St(t,e,a,l,o,c){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Na(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Na(t,""+l);break;case"className":ts(t,"class",l);break;case"tabIndex":ts(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ts(t,a,l);break;case"style":id(t,l,c);break;case"data":if(e!=="object"){ts(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=as(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"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 c=="function"&&(a==="formAction"?(e!=="input"&&St(t,e,"name",o.name,o,null),St(t,e,"formEncType",o.formEncType,o,null),St(t,e,"formMethod",o.formMethod,o,null),St(t,e,"formTarget",o.formTarget,o,null)):(St(t,e,"encType",o.encType,o,null),St(t,e,"method",o.method,o,null),St(t,e,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=as(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=$s);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=as(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":dt("beforetoggle",t),dt("toggle",t),Il(t,"popover",l);break;case"xlinkActuate":en(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":en(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":en(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":en(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":en(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":en(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":en(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":en(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":en(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Il(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ev.get(a)||a,Il(t,a,l))}}function Lu(t,e,a,l,o,c){switch(a){case"style":id(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?Na(t,l):(typeof l=="number"||typeof l=="bigint")&&Na(t,""+l);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=$s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Pf.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),c=t[ue]||null,c=c!=null?c[a]:null,typeof c=="function"&&t.removeEventListener(e,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,o);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):Il(t,a,l)}}}function It(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var l=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var y=a[c];if(y!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:St(t,e,c,y,a,null)}}o&&St(t,e,"srcSet",a.srcSet,a,null),l&&St(t,e,"src",a.src,a,null);return;case"input":dt("invalid",t);var v=c=y=o=null,T=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var q=a[l];if(q!=null)switch(l){case"name":o=q;break;case"type":y=q;break;case"checked":T=q;break;case"defaultChecked":z=q;break;case"value":c=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,e));break;default:St(t,e,l,q,a,null)}}td(t,c,v,T,z,y,o,!1),es(t);return;case"select":dt("invalid",t),l=y=c=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":y=v;break;case"multiple":l=v;default:St(t,e,o,v,a,null)}e=c,a=y,t.multiple=!!l,e!=null?Oa(t,!!l,e,!1):a!=null&&Oa(t,!!l,a,!0);return;case"textarea":dt("invalid",t),c=o=l=null;for(y in a)if(a.hasOwnProperty(y)&&(v=a[y],v!=null))switch(y){case"value":l=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:St(t,e,y,v,a,null)}nd(t,l,o,c),es(t);return;case"option":for(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:St(t,e,T,l,a,null)}return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(l=0;l<ol.length;l++)dt(ol[l],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("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(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:St(t,e,z,l,a,null)}return;default:if(Fr(e)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&Lu(t,e,q,l,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null&&St(t,e,v,l,a,null))}function Z1(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,y=null,v=null,T=null,z=null,q=null;for(U in a){var G=a[U];if(a.hasOwnProperty(U)&&G!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":T=G;default:l.hasOwnProperty(U)||St(t,e,U,null,l,G)}}for(var L in l){var U=l[L];if(G=a[L],l.hasOwnProperty(L)&&(U!=null||G!=null))switch(L){case"type":c=U;break;case"name":o=U;break;case"checked":z=U;break;case"defaultChecked":q=U;break;case"value":y=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,e));break;default:U!==G&&St(t,e,L,U,l,G)}}$r(t,y,v,T,z,q,c,o);return;case"select":U=y=v=L=null;for(c in a)if(T=a[c],a.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":U=T;default:l.hasOwnProperty(c)||St(t,e,c,null,l,T)}for(o in l)if(c=l[o],T=a[o],l.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":L=c;break;case"defaultValue":v=c;break;case"multiple":y=c;default:c!==T&&St(t,e,o,c,l,T)}e=v,a=y,l=U,L!=null?Oa(t,!!a,L,!1):!!l!=!!a&&(e!=null?Oa(t,!!a,e,!0):Oa(t,!!a,a?[]:"",!1));return;case"textarea":U=L=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:St(t,e,v,null,l,o)}for(y in l)if(o=l[y],c=a[y],l.hasOwnProperty(y)&&(o!=null||c!=null))switch(y){case"value":L=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==c&&St(t,e,y,o,l,c)}ed(t,L,U);return;case"option":for(var it in a)if(L=a[it],a.hasOwnProperty(it)&&L!=null&&!l.hasOwnProperty(it))switch(it){case"selected":t.selected=!1;break;default:St(t,e,it,null,l,L)}for(T in l)if(L=l[T],U=a[T],l.hasOwnProperty(T)&&L!==U&&(L!=null||U!=null))switch(T){case"selected":t.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:St(t,e,T,L,l,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nt in a)L=a[nt],a.hasOwnProperty(nt)&&L!=null&&!l.hasOwnProperty(nt)&&St(t,e,nt,null,l,L);for(z in l)if(L=l[z],U=a[z],l.hasOwnProperty(z)&&L!==U&&(L!=null||U!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,e));break;default:St(t,e,z,L,l,U)}return;default:if(Fr(e)){for(var Et in a)L=a[Et],a.hasOwnProperty(Et)&&L!==void 0&&!l.hasOwnProperty(Et)&&Lu(t,e,Et,void 0,l,L);for(q in l)L=l[q],U=a[q],!l.hasOwnProperty(q)||L===U||L===void 0&&U===void 0||Lu(t,e,q,L,l,U);return}}for(var w in a)L=a[w],a.hasOwnProperty(w)&&L!=null&&!l.hasOwnProperty(w)&&St(t,e,w,null,l,L);for(G in l)L=l[G],U=a[G],!l.hasOwnProperty(G)||L===U||L==null&&U==null||St(t,e,G,L,l,U)}var Uu=null,Bu=null;function Js(t){return t.nodeType===9?t:t.ownerDocument}function ap(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 ip(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 Hu(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 qu=null;function $1(){var t=window.event;return t&&t.type==="popstate"?t===qu?!1:(qu=t,!0):(qu=null,!1)}var lp=typeof setTimeout=="function"?setTimeout:void 0,J1=typeof clearTimeout=="function"?clearTimeout:void 0,sp=typeof Promise=="function"?Promise:void 0,F1=typeof queueMicrotask=="function"?queueMicrotask:typeof sp<"u"?function(t){return sp.resolve(null).then(t).catch(W1)}:lp;function W1(t){setTimeout(function(){throw t})}function Gn(t){return t==="head"}function rp(t,e){var a=e,l=0,o=0;do{var c=a.nextSibling;if(t.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<l&&8>l){a=l;var y=t.ownerDocument;if(a&1&&cl(y.documentElement),a&2&&cl(y.body),a&4)for(a=y.head,cl(a),y=a.firstChild;y;){var v=y.nextSibling,T=y.nodeName;y[_i]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&y.rel.toLowerCase()==="stylesheet"||a.removeChild(y),y=v}}if(o===0){t.removeChild(c),vl(e);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=c}while(a);vl(e)}function Yu(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Yu(a),Kr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function I1(t,e,a,l){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[_i])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=qe(t.nextSibling),t===null)break}return null}function tb(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=qe(t.nextSibling),t===null))return null;return t}function ku(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function eb(t,e){var a=t.ownerDocument;if(t.data!=="$?"||a.readyState==="complete")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function qe(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==="F!"||e==="F")break;if(e==="/$")return null}}return t}var Gu=null;function op(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(e===0)return t;e--}else a==="/$"&&e++}t=t.previousSibling}return null}function up(t,e,a){switch(e=Js(a),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 cl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Kr(t)}var Ve=new Map,cp=new Set;function Fs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=Q.d;Q.d={f:nb,r:ab,D:ib,C:lb,L:sb,m:rb,X:ub,S:ob,M:cb};function nb(){var t=yn.f(),e=ks();return t||e}function ab(t){var e=Ra(t);e!==null&&e.tag===5&&e.type==="form"?Ch(e):yn.r(t)}var ri=typeof document>"u"?null:document;function fp(t,e,a){var l=ri;if(l&&typeof e=="string"&&e){var o=Re(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),cp.has(o)||(cp.add(o),t={rel:t,crossOrigin:a,href:e},l.querySelector(o)===null&&(e=l.createElement("link"),It(e,"link",t),Pt(e),l.head.appendChild(e)))}}function ib(t){yn.D(t),fp("dns-prefetch",t,null)}function lb(t,e){yn.C(t,e),fp("preconnect",t,e)}function sb(t,e,a){yn.L(t,e,a);var l=ri;if(l&&t&&e){var o='link[rel="preload"][as="'+Re(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Re(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Re(a.imageSizes)+'"]')):o+='[href="'+Re(t)+'"]';var c=o;switch(e){case"style":c=oi(t);break;case"script":c=ui(t)}Ve.has(c)||(t=g({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Ve.set(c,t),l.querySelector(o)!==null||e==="style"&&l.querySelector(fl(c))||e==="script"&&l.querySelector(dl(c))||(e=l.createElement("link"),It(e,"link",t),Pt(e),l.head.appendChild(e)))}}function rb(t,e){yn.m(t,e);var a=ri;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+Re(l)+'"][href="'+Re(t)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ui(t)}if(!Ve.has(c)&&(t=g({rel:"modulepreload",href:t},e),Ve.set(c,t),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(dl(c)))return}l=a.createElement("link"),It(l,"link",t),Pt(l),a.head.appendChild(l)}}}function ob(t,e,a){yn.S(t,e,a);var l=ri;if(l&&t){var o=wa(l).hoistableStyles,c=oi(t);e=e||"default";var y=o.get(c);if(!y){var v={loading:0,preload:null};if(y=l.querySelector(fl(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Ve.get(c))&&Xu(t,a);var T=y=l.createElement("link");Pt(T),It(T,"link",t),T._p=new Promise(function(z,q){T.onload=z,T.onerror=q}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ws(y,e,l)}y={type:"stylesheet",instance:y,count:1,state:v},o.set(c,y)}}}function ub(t,e){yn.X(t,e);var a=ri;if(a&&t){var l=wa(a).hoistableScripts,o=ui(t),c=l.get(o);c||(c=a.querySelector(dl(o)),c||(t=g({src:t,async:!0},e),(e=Ve.get(o))&&Ku(t,e),c=a.createElement("script"),Pt(c),It(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function cb(t,e){yn.M(t,e);var a=ri;if(a&&t){var l=wa(a).hoistableScripts,o=ui(t),c=l.get(o);c||(c=a.querySelector(dl(o)),c||(t=g({src:t,async:!0,type:"module"},e),(e=Ve.get(o))&&Ku(t,e),c=a.createElement("script"),Pt(c),It(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function dp(t,e,a,l){var o=(o=st.current)?Fs(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=oi(a.href),a=wa(o).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=oi(a.href);var c=wa(o).hoistableStyles,y=c.get(t);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,y),(c=o.querySelector(fl(t)))&&!c._p&&(y.instance=c,y.state.loading=5),Ve.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ve.set(t,a),c||fb(o,t,a,y.state))),e&&l===null)throw Error(r(528,""));return y}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ui(a),a=wa(o).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function oi(t){return'href="'+Re(t)+'"'}function fl(t){return'link[rel="stylesheet"]['+t+"]"}function hp(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function fb(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),It(e,"link",a),Pt(e),t.head.appendChild(e))}function ui(t){return'[src="'+Re(t)+'"]'}function dl(t){return"script[async]"+t}function mp(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Re(a.href)+'"]');if(l)return e.instance=l,Pt(l),l;var o=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Pt(l),It(l,"style",o),Ws(l,a.precedence,t),e.instance=l;case"stylesheet":o=oi(a.href);var c=t.querySelector(fl(o));if(c)return e.state.loading|=4,e.instance=c,Pt(c),c;l=hp(a),(o=Ve.get(o))&&Xu(l,o),c=(t.ownerDocument||t).createElement("link"),Pt(c);var y=c;return y._p=new Promise(function(v,T){y.onload=v,y.onerror=T}),It(c,"link",l),e.state.loading|=4,Ws(c,a.precedence,t),e.instance=c;case"script":return c=ui(a.src),(o=t.querySelector(dl(c)))?(e.instance=o,Pt(o),o):(l=a,(o=Ve.get(c))&&(l=g({},a),Ku(l,o)),t=t.ownerDocument||t,o=t.createElement("script"),Pt(o),It(o,"link",l),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Ws(l,a.precedence,t));return e.instance}function Ws(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,y=0;y<l.length;y++){var v=l[y];if(v.dataset.precedence===e)c=v;else if(c!==o)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Xu(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ku(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Is=null;function pp(t,e,a){if(Is===null){var l=new Map,o=Is=new Map;o.set(a,l)}else o=Is,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var c=a[o];if(!(c[_i]||c[ee]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var y=c.getAttribute(e)||"";y=t+y;var v=l.get(y);v?v.push(c):l.set(y,[c])}}return l}function yp(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function db(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function gp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var hl=null;function hb(){}function mb(t,e,a){if(hl===null)throw Error(r(475));var l=hl;if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var o=oi(a.href),c=t.querySelector(fl(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=tr.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=c,Pt(c);return}c=t.ownerDocument||t,a=hp(a),(o=Ve.get(o))&&Xu(a,o),c=c.createElement("link"),Pt(c);var y=c;y._p=new Promise(function(v,T){y.onload=v,y.onerror=T}),It(c,"link",a),e.instance=c}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=tr.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}function pb(){if(hl===null)throw Error(r(475));var t=hl;return t.stylesheets&&t.count===0&&Qu(t,t.stylesheets),0<t.count?function(e){var a=setTimeout(function(){if(t.stylesheets&&Qu(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(a)}}:null}function tr(){if(this.count--,this.count===0){if(this.stylesheets)Qu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var er=null;function Qu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,er=new Map,e.forEach(yb,t),er=null,tr.call(t))}function yb(t,e){if(!(e.state.loading&4)){var a=er.get(t);if(a)var l=a.get(null);else{a=new Map,er.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var y=o[c];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),l=y)}l&&a.set(null,l)}o=e.instance,y=o.getAttribute("data-precedence"),c=a.get(y)||l,c===l&&a.set(null,o),a.set(y,o),this.count++,l=tr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var ml={$$typeof:O,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function gb(t,e,a,l,o,c,y,v){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=Yr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yr(0),this.hiddenUpdates=Yr(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function vp(t,e,a,l,o,c,y,v,T,z,q,G){return t=new gb(t,e,a,y,v,T,z,G),e=1,c===!0&&(e|=24),c=be(3,null,null,e),t.current=c,c.stateNode=t,e=Ro(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:e},Oo(c),t}function bp(t){return t?(t=qa,t):qa}function xp(t,e,a,l,o,c){o=bp(o),l.context===null?l.context=o:l.pendingContext=o,l=Cn(e),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=On(t,l,e),a!==null&&(Ae(a,t,e),Xi(a,t,e))}function Tp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Pu(t,e){Tp(t,e),(t=t.alternate)&&Tp(t,e)}function Sp(t){if(t.tag===13){var e=Ha(t,67108864);e!==null&&Ae(e,t,67108864),Pu(t,67108864)}}var nr=!0;function vb(t,e,a,l){var o=H.T;H.T=null;var c=Q.p;try{Q.p=2,Zu(t,e,a,l)}finally{Q.p=c,H.T=o}}function bb(t,e,a,l){var o=H.T;H.T=null;var c=Q.p;try{Q.p=8,Zu(t,e,a,l)}finally{Q.p=c,H.T=o}}function Zu(t,e,a,l){if(nr){var o=$u(l);if(o===null)ju(t,e,l,ar,a),Ap(t,l);else if(Tb(o,t,e,a,l))l.stopPropagation();else if(Ap(t,l),e&4&&-1<xb.indexOf(t)){for(;o!==null;){var c=Ra(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var y=In(c.pendingLanes);if(y!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;y;){var T=1<<31-ge(y);v.entanglements[1]|=T,y&=~T}$e(c),(bt&6)===0&&(qs=Xe()+500,rl(0))}}break;case 13:v=Ha(c,2),v!==null&&Ae(v,c,2),ks(),Pu(c,2)}if(c=$u(l),c===null&&ju(t,e,l,ar,a),c===o)break;o=c}o!==null&&l.stopPropagation()}else ju(t,e,l,null,a)}}function $u(t){return t=Ir(t),Ju(t)}var ar=null;function Ju(t){if(ar=null,t=Ma(t),t!==null){var e=d(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=f(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return ar=t,null}function Ep(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(lv()){case Uf:return 2;case Bf:return 8;case $l:case sv:return 32;case Hf:return 268435456;default:return 32}default:return 32}}var Fu=!1,Xn=null,Kn=null,Qn=null,pl=new Map,yl=new Map,Pn=[],xb="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 Ap(t,e){switch(t){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":pl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":yl.delete(e.pointerId)}}function gl(t,e,a,l,o,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},e!==null&&(e=Ra(e),e!==null&&Sp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function Tb(t,e,a,l,o){switch(e){case"focusin":return Xn=gl(Xn,t,e,a,l,o),!0;case"dragenter":return Kn=gl(Kn,t,e,a,l,o),!0;case"mouseover":return Qn=gl(Qn,t,e,a,l,o),!0;case"pointerover":var c=o.pointerId;return pl.set(c,gl(pl.get(c)||null,t,e,a,l,o)),!0;case"gotpointercapture":return c=o.pointerId,yl.set(c,gl(yl.get(c)||null,t,e,a,l,o)),!0}return!1}function _p(t){var e=Ma(t.target);if(e!==null){var a=d(e);if(a!==null){if(e=a.tag,e===13){if(e=f(a),e!==null){t.blockedOn=e,mv(t.priority,function(){if(a.tag===13){var l=Ee();l=kr(l);var o=Ha(a,l);o!==null&&Ae(o,a,l),Pu(a,l)}});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ir(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=$u(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);Wr=l,a.target.dispatchEvent(l),Wr=null}else return e=Ra(a),e!==null&&Sp(e),t.blockedOn=a,!1;e.shift()}return!0}function Mp(t,e,a){ir(t)&&a.delete(e)}function Sb(){Fu=!1,Xn!==null&&ir(Xn)&&(Xn=null),Kn!==null&&ir(Kn)&&(Kn=null),Qn!==null&&ir(Qn)&&(Qn=null),pl.forEach(Mp),yl.forEach(Mp)}function lr(t,e){t.blockedOn===e&&(t.blockedOn=null,Fu||(Fu=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Sb)))}var sr=null;function Rp(t){sr!==t&&(sr=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){sr===t&&(sr=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],o=t[e+2];if(typeof l!="function"){if(Ju(l||a)===null)continue;break}var c=Ra(a);c!==null&&(t.splice(e,3),e-=3,Jo(c,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function vl(t){function e(T){return lr(T,t)}Xn!==null&&lr(Xn,t),Kn!==null&&lr(Kn,t),Qn!==null&&lr(Qn,t),pl.forEach(e),yl.forEach(e);for(var a=0;a<Pn.length;a++){var l=Pn[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Pn.length&&(a=Pn[0],a.blockedOn===null);)_p(a),a.blockedOn===null&&Pn.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],c=a[l+1],y=o[ue]||null;if(typeof c=="function")y||Rp(a);else if(y){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,y=c[ue]||null)v=y.formAction;else if(Ju(o)!==null)continue}else v=y.action;typeof v=="function"?a[l+1]=v:(a.splice(l,3),l-=3),Rp(a)}}}function Wu(t){this._internalRoot=t}rr.prototype.render=Wu.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=Ee();xp(a,l,t,e,null,null)},rr.prototype.unmount=Wu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;xp(t.current,2,null,t,null,null),ks(),e[_a]=null}};function rr(t){this._internalRoot=t}rr.prototype.unstable_scheduleHydration=function(t){if(t){var e=Xf();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Pn.length&&e!==0&&e<Pn[a].priority;a++);Pn.splice(a,0,t),a===0&&_p(t)}};var wp=i.version;if(wp!=="19.1.0")throw Error(r(527,wp,"19.1.0"));Q.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=p(e),t=t!==null?m(t):null,t=t===null?null:t.stateNode,t};var Eb={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var or=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!or.isDisabled&&or.supportsFiber)try{Si=or.inject(Eb),ye=or}catch{}}return xl.createRoot=function(t,e){if(!u(t))throw Error(r(299));var a=!1,l="",o=Xh,c=Kh,y=Qh,v=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(y=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(v=e.unstable_transitionCallbacks)),e=vp(t,1,!1,null,null,a,l,o,c,y,v,null),t[_a]=e.current,Vu(t),new Wu(e)},xl.hydrateRoot=function(t,e,a){if(!u(t))throw Error(r(299));var l=!1,o="",c=Xh,y=Kh,v=Qh,T=null,z=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(T=a.unstable_transitionCallbacks),a.formState!==void 0&&(z=a.formState)),e=vp(t,1,!0,e,a??null,l,o,c,y,v,T,z),e.context=bp(null),a=e.current,l=Ee(),l=kr(l),o=Cn(l),o.callback=null,On(a,o,l),a=l,e.current.lanes=a,Ai(e,a),$e(e),t[_a]=e.current,Vu(t),new rr(e)},xl.version="19.1.0",xl}var Bp;function Vb(){if(Bp)return ec.exports;Bp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),ec.exports=zb(),ec.exports}var jb=Vb(),Tl={},Hp;
49function Lb(){if(Hp)return Tl;Hp=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.parse=f,Tl.serialize=m;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,i=/^[\u0021-\u003A\u003C-\u007E]*$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,d=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function f(x,E){const _=new d,D=x.length;if(D<2)return _;const j=(E==null?void 0:E.decode)||g;let R=0;do{const C=x.indexOf("=",R);if(C===-1)break;const O=x.indexOf(";",R),Y=O===-1?D:O;if(C>Y){R=x.lastIndexOf(";",C-1)+1;continue}const B=h(x,R,C),P=p(x,C,B),Z=x.slice(B,P);if(_[Z]===void 0){let K=h(x,C+1,Y),tt=p(x,Y,K);const ot=j(x.slice(K,tt));_[Z]=ot}R=Y+1}while(R<D);return _}function h(x,E,_){do{const D=x.charCodeAt(E);if(D!==32&&D!==9)return E}while(++E<_);return _}function p(x,E,_){for(;E>_;){const D=x.charCodeAt(--E);if(D!==32&&D!==9)return E+1}return _}function m(x,E,_){const D=(_==null?void 0:_.encode)||encodeURIComponent;if(!n.test(x))throw new TypeError(`argument name is invalid: ${x}`);const j=D(E);if(!i.test(j))throw new TypeError(`argument val is invalid: ${E}`);let R=x+"="+j;if(!_)return R;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);R+="; Max-Age="+_.maxAge}if(_.domain){if(!s.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);R+="; Domain="+_.domain}if(_.path){if(!r.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);R+="; Path="+_.path}if(_.expires){if(!b(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invali
49d: ${_.expires}`);R+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(R+="; HttpOnly"),_.secure&&(R+="; Secure"),_.partitioned&&(R+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return R}function g(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function b(x){return u.call(x)==="[object Date]"}return Tl}Lb();var qp="popstate";function Ub(n={}){function i(r,u){let{pathname:d,search:f,hash:h}=r.location;return xc("",{pathname:d,search:f,hash:h},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function s(r,u){return typeof u=="string"?u:Cl(u)}return Hb(i,s,null,n)}function zt(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function Ge(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Bb(){return Math.random().toString(36).substring(2,10)}function Yp(n,i){return{usr:n.state,key:n.key,idx:i}}function xc(n,i,s=null,r){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?gi(i):i,state:s,key:i&&i.key||r||Bb()}}function Cl({pathname:n="/",search:i="",hash:s=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function gi(n){let i={};if(n){let s=n.indexOf("#");s>=0&&(i.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(i.search=n.substring(r),n=n.substring(0,r)),n&&(i.pathname=n)}return i}function Hb(n,i,s,r={}){let{window:u=document.defaultView,v5Compat:d=!1}=r,f=u.history,h="POP",p=null,m=g();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function g(){return(f.state||{idx:null}).idx}function b(){h="POP";let j=g(),R=j==null?null:j-m;m=j,p&&p({action:h,location:D.location,delta:R})}function x(j,R){h="PUSH";let C=xc(D.location,j,R);m=g()+1;let O=Yp(C,m),Y=D.createHref(C);try{f.pushState(O,"",Y)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;u.location.assign(Y)}d&&p&&p({action:h,location:D.location,delta:1})}function E(j,R){h="REPLACE";let C=xc(D.location,j,R);m=g();let O=Yp(C,m),Y=D.createHref(C);f.replaceState(O,"",Y),d&&p&&p({action:h,location:D.location,delta:0})}function _(j){return qb(j)}let D={get action(){return h},get location(){return n(u,f)},listen(j){if(p)throw new Error("A history only accepts one active listener");return u.addEventListener(qp,b),p=j,()=>{u.removeEventListener(qp,b),p=null}},createHref(j){return i(u,j)},createURL:_,encodeLocation(j){let R=_(j);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:x,replace:E,go(j){return f.go(j)}};return D}function qb(n,i=!1){let s="http://localhost";
49typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),zt(s,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:Cl(n);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function i0(n,i,s="/"){return Yb(n,i,s,!1)}function Yb(n,i,s,r){let u=typeof i=="string"?gi(i):i,d=bn(u.pathname||"/",s);if(d==null)return null;let f=l0(n);kb(f);let h=null;for(let p=0;h==null&&p<f.length;++p){let m=Ib(d);h=Fb(f[p],m,r)}return h}function l0(n,i=[],s=[],r=""){let u=(d,f,h)=>{let p={relativePath:h===void 0?d.path||"":h,caseSensitive:d.caseSensitive===!0,childrenIndex:f,route:d};p.relativePath.startsWith("/")&&(zt(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length));let m=gn([r,p.relativePath]),g=s.concat(p);d.children&&d.children.length>0&&(zt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),l0(d.children,i,g,m)),!(d.path==null&&!d.index)&&i.push({path:m,score:$b(m,d.index),routesMeta:g})};return n.forEach((d,f)=>{var h;if(d.path===""||!((h=d.path)!=null&&h.includes("?")))u(d,f);else for(let p of s0(d.path))u(d,f,p)}),i}function s0(n){let i=n.split("/");if(i.length===0)return[];let[s,...r]=i,u=s.endsWith("?"),d=s.replace(/\?$/,"");if(r.length===0)return u?[d,""]:[d];let f=s0(r.join("/")),h=[];return h.push(...f.map(p=>p===""?d:[d,p].join("/"))),u&&h.push(...f),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function kb(n){n.sort((i,s)=>i.score!==s.score?s.score-i.score:Jb(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var Gb=/^:[\w-]+$/,Xb=3,Kb=2,Qb=1,Pb=10,Zb=-2,kp=n=>n==="*";function $b(n,i){let s=n.split("/"),r=s.length;return s.some(kp)&&(r+=Zb),i&&(r+=Kb),s.filter(u=>!kp(u)).reduce((u,d)=>u+(Gb.test(d)?Xb:d===""?Qb:Pb),r)}function Jb(n,i){return n.length===i.length&&n.slice(0,-1).every((r,u)=>r===i[u])?n[n.length-1]-i[i.length-1]:0}function Fb(n,i,s=!1){let{routesMeta:r}=n,u={},d="/",f=[];for(let h=0;h<r.length;++h){let p=r[h],m=h===r.length-1,g=d==="/"?i:i.slice(d.length)||"/",b=Tr({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},g),x=p.route;if(!b&&m&&s&&!r[r.length-1].route.index&&(b=Tr({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},g)),!b)return null;
49Object.assign(u,b.params),f.push({params:u,pathname:gn([d,b.pathname]),pathnameBase:ax(gn([d,b.pathnameBase])),route:x}),b.pathnameBase!=="/"&&(d=gn([d,b.pathnameBase]))}return f}function Tr(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,r]=Wb(n.path,n.caseSensitive,n.end),u=i.match(s);if(!u)return null;let d=u[0],f=d.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:r.reduce((m,{paramName:g,isOptional:b},x)=>{if(g==="*"){let _=h[x]||"";f=d.slice(0,d.length-_.length).replace(/(.)\/+$/,"$1")}const E=h[x];return b&&!E?m[g]=void 0:m[g]=(E||"").replace(/%2F/g,"/"),m},{}),pathname:d,pathnameBase:f,pattern:n}}function Wb(n,i=!1,s=!0){Ge(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,p)=>(r.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),r]}function Ib(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Ge(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function bn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}function tx(n,i="/"){let{pathname:s,search:r="",hash:u=""}=typeof n=="string"?gi(n):n;return{pathname:s?s.startsWith("/")?s:ex(s,i):i,search:ix(r),hash:lx(u)}}function ex(n,i){let s=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?s.length>1&&s.pop():u!=="."&&s.push(u)}),s.length>1?s.join("/"):"/"}function lc(n,i,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nx(n){return n.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function r0(n){let i=nx(n);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function o0(n,i,s,r=!1){let u;typeof n=="string"?u=gi(n):(u={...n},zt(!u.pathname||!u.pathname.includes("?"),lc("?","pathname","search",u)),zt(!u.pathname||!u.pathname.includes("#"),lc("#","pathname","hash",u)),zt(!u.search||!u.search.includes("#"),lc("#","search","hash",u)));let d=n===""||u.pathname==="",f=d?"/":u.pathname,h;if(f==null)h=s;else{let b=i.length-1;if(!r&&f.startsWith("..")){let x=f.split("/");for(;x[0]==="..";)x.shift(),b-=1;u.pathname=x.join("/")}h=b>=0?i[b]:"/"}let p=tx(u,h),m=f&&f!=="/"&&f.endsWith("/"),g=(d||f===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}var gn=n=>n.join("/").replace(/\/\/+/g,"/"),ax=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),ix=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,lx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function sx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var u0=["POST","PUT","PATCH","DELETE"];new Set(u0);var rx=["GET",...u0];new Set(rx);var vi=S.createContext(null);vi.displayName="DataRouter";var Rr=S.createContext(null);Rr.displayName="DataRouterState";var c0=S.createContext({isTransitioning:!1});c0.displayName="ViewTransition";var ox=S.createContext(new Map);ox.displayName="Fetchers";var ux=S.createContext(null);ux.displayName="Await";var Ie=S.createContext(null);Ie.displayName="Navigation";var Hl=S.createContext(null);Hl.displayName="Location";var tn=S.createContext({outlet:null,matches:[],isDataRoute:!1});tn.displayName="Route";var Zc=S.createContext(null);Zc.displayName="RouteError";function cx(n,{relative:i}={}){zt(ql(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=S.useContext(Ie),{hash:u,pathname:d,search:f}=Yl(n,{relative:i}),h=d;return s!=="/"&&(h=d==="/"?s:gn([s,d])),r.createHref({pathname:h,search:f,hash:u})}function ql(){return S.useContext(Hl)!=null}function En(){return zt(ql(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Hl).location}var f0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function d0(n){S.useContext(Ie).static||S.useLayoutEffect(n)}function $c(){let{isDataRoute:n}=S.useContext(tn);return n?Ax():fx()}function fx(){zt(ql(),"useNavigate() may be used only in the context of a <Router> component.");let n=S.useContext(vi),{basename:i,navigator:s}=S.useContext(Ie),{matches:r}=S.useContext(tn),{pathname:u}=En(),d=JSON.stringify(r0(r)),f=S.useRef(!1);return d0(()=>{f.current=!0}),S.useCallback((p,m={})=>
49{if(Ge(f.current,f0),!f.current)return;if(typeof p=="number"){s.go(p);return}let g=o0(p,JSON.parse(d),u,m.relative==="path");n==null&&i!=="/"&&(g.pathname=g.pathname==="/"?i:gn([i,g.pathname])),(m.replace?s.replace:s.push)(g,m.state,m)},[i,s,d,u,n])}S.createContext(null);function dx(){let{matches:n}=S.useContext(tn),i=n[n.length-1];return i?i.params:{}}function Yl(n,{relative:i}={}){let{matches:s}=S.useContext(tn),{pathname:r}=En(),u=JSON.stringify(r0(s));return S.useMemo(()=>o0(n,JSON.parse(u),r,i==="path"),[n,u,r,i])}function hx(n,i){return h0(n,i)}function h0(n,i,s,r){var R;zt(ql(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=S.useContext(Ie),{matches:d}=S.useContext(tn),f=d[d.length-1],h=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",g=f&&f.route;{let C=g&&g.path||"";m0(p,!g||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
51Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let b=En(),x;if(i){let C=typeof i=="string"?gi(i):i;zt(m==="/"||((R=C.pathname)==null?void 0:R.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${C.pathname}" was given in the \`location\` prop.`),x=C}else x=b;let E=x.pathname||"/",_=E;if(m!=="/"){let C=m.replace(/^\//,"").split("/");_="/"+E.replace(/^\//,"").split("/").slice(C.length).join("/")}let D=i0(n,{pathname:_});Ge(g||D!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Ge(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let j=vx(D&&D.map(C=>Object.assign({},C,{params:Object.assign({},h,C.params),pathname:gn([m,u.encodeLocation?u.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?m:gn([m,u.encodeLocation?u.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),d,s,r);return i&&j?S.createElement(Hl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},j):j}function mx(){let n=Ex(),i=sx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:d},"ErrorBoundary")," or"," ",S.createElement("code",{style:d},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},i),s?S.createElement("pre",{style:u},s):null,f)}var px=S.createElement(mx,null),yx=class extends S.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){console.error("React Router caught the following error during render",n,i)}render(){return this.state.error!==void 0?S.createElement(tn.Provider,{value:this.props.routeContext},S.createElement(Zc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function gx({routeContext:n,match:i,children:s}){let r=S.useContext(vi);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),S.createElement(tn.Provider,{value:n},s)}function vx(n,i=[],s=null,r=null){if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(i.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let u=n,d=s==null?void 0:s.errors;if(d!=null){let p=u.findIndex(m=>m.route.id&&(d==null?void 0:d[m.route.id])!==void 0);zt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),u=u.slice(0,Math.min(u.length,p+1))}let f=!1,h=-1;if(s)for(let p=0;p<u.length;p++){let m=u[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=p),m.route.id){let{loaderData:g,errors:b}
51=s,x=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||x){f=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((p,m,g)=>{let b,x=!1,E=null,_=null;s&&(b=d&&m.route.id?d[m.route.id]:void 0,E=m.route.errorElement||px,f&&(h<0&&g===0?(m0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,_=null):h===g&&(x=!0,_=m.route.hydrateFallbackElement||null)));let D=i.concat(u.slice(0,g+1)),j=()=>{let R;return b?R=E:x?R=_:m.route.Component?R=S.createElement(m.route.Component,null):m.route.element?R=m.route.element:R=p,S.createElement(gx,{match:m,routeContext:{outlet:p,matches:D,isDataRoute:s!=null},children:R})};return s&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?S.createElement(yx,{location:s.location,revalidation:s.revalidation,component:E,error:b,children:j(),routeContext:{outlet:null,matches:D,isDataRoute:!0}}):j()},null)}function Jc(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function bx(n){let i=S.useContext(vi);return zt(i,Jc(n)),i}function xx(n){let i=S.useContext(Rr);return zt(i,Jc(n)),i}function Tx(n){let i=S.useContext(tn);return zt(i,Jc(n)),i}function Fc(n){let i=Tx(n),s=i.matches[i.matches.length-1];return zt(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function Sx(){return Fc("useRouteId")}function Ex(){var r;let n=S.useContext(Zc),i=xx("useRouteError"),s=Fc("useRouteError");return n!==void 0?n:(r=i.errors)==null?void 0:r[s]}function Ax(){let{router:n}=bx("useNavigate"),i=Fc("useNavigate"),s=S.useRef(!1);return d0(()=>{s.current=!0}),S.useCallback(async(u,d={})=>{Ge(s.current,f0),s.current&&(typeof u=="number"?n.navigate(u):await n.navigate(u,{fromRouteId:i,...d}))},[n,i])}var Gp={};function m0(n,i,s){!i&&!Gp[n]&&(Gp[n]=!0,Ge(!1,s))}S.memo(_x);function _x({routes:n,future:i,state:s}){return h0(n,void 0,s,i)}function mr(n){zt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Mx({basename:n="/",children:i=null,location:s,navigationType:r="POP",navigator:u,static:d=!1}){zt(!ql(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:f,navigator:u,static:d,future:{}}),[f,u,d]);typeof s=="string"&&(s=gi(s));let{pathname:p="/",search:m="",hash:g="",state:b=null,key:x="default"}=s,E=S.useMemo(()=>{let _=bn(p,f);return _==null?null:{location:{pathname:_,search:m,hash:g,state:b,key:x},navigationType:r}},[f,p,m,g,b,x,r]);return Ge(E!=null,`<Router basename="${f}"> is not able to match the URL "${p}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:S.createElement(Ie.Provider,{value:h},S.createElement(Hl.Provider,{children:i,value:E}))}function Rx({children:n,location:i}){return hx(Tc(n),i)}function Tc(n,i=[]){let s=[];return S.Children.forEach(n,(r,u)=>{if(!S.isValidElement(r))return;let d=[...i,u];if(r.type===S.Fragment){s.push.apply(s,Tc(r.props.children,d));return}zt(r.type===mr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),zt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let f={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(f.children=Tc(r.props.children,d)),s.push(f)}),s}var pr="get",yr="application/x-www-form-urlencoded";function wr(n){return n!=null&&typeof n.tagName=="string"}function wx(n){return wr(n)&&n.tagName.toLowerCase()==="button"}function Dx(n){return wr(n)&&n.tagName.toLowerCase()==="form"}function Cx(n){return wr(n)&&n.tagName.toLowerCase()==="input"}function Ox(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Nx(n,i){return n.button===0&&(!i||i==="_self")&&!Ox(n)}function Sc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((i,s)=>{let r=n[s];return i.concat(Array.isArray(r)?r.map(u=>[s,u]):[[s,r]])},[]))}function zx(n,i){let s=Sc(n);
51return i&&i.forEach((r,u)=>{s.has(u)||i.getAll(u).forEach(d=>{s.append(u,d)})}),s}var ur=null;function Vx(){if(ur===null)try{new FormData(document.createElement("form"),0),ur=!1}catch{ur=!0}return ur}var jx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sc(n){return n!=null&&!jx.has(n)?(Ge(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yr}"`),null):n}function Lx(n,i){let s,r,u,d,f;if(Dx(n)){let h=n.getAttribute("action");r=h?bn(h,i):null,s=n.getAttribute("method")||pr,u=sc(n.getAttribute("enctype"))||yr,d=new FormData(n)}else if(wx(n)||Cx(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||h.getAttribute("action");if(r=p?bn(p,i):null,s=n.getAttribute("formmethod")||h.getAttribute("method")||pr,u=sc(n.getAttribute("formenctype"))||sc(h.getAttribute("enctype"))||yr,d=new FormData(h,n),!Vx()){let{name:m,type:g,value:b}=n;if(g==="image"){let x=m?`${m}.`:"";d.append(`${x}x`,"0"),d.append(`${x}y`,"0")}else m&&d.append(m,b)}}else{if(wr(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=pr,r=null,u=yr,f=n}return d&&u==="text/plain"&&(f=d,d=void 0),{action:r,method:s.toLowerCase(),encType:u,formData:d,body:f}}function Wc(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}async function Ux(n,i){if(n.id in i)return i[n.id];try{let s=await import(n.module);return i[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Bx(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function Hx(n,i,s){let r=await Promise.all(n.map(async u=>{let d=i.routes[u.route.id];if(d){let f=await Ux(d,s);return f.links?f.links():[]}return[]}));return Gx(r.flat(1).filter(Bx).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Xp(n,i,s,r,u,d){let f=(p,m)=>s[m]?p.route.id!==s[m].route.id:!0,h=(p,m)=>{var g;return s[m].pathname!==p.pathname||((g=s[m].route.path)==null?void 0:g.endsWith("*"))&&s[m].params["*"]!==p.params["*"]};return d==="assets"?i.filter((p,m)=>f(p,m)||h(p,m)):d==="data"?i.filter((p,m)=>{var b;let g=r.routes[p.route.id];if(!g||!g.hasLoader)return!1;if(f(p,m)||h(p,m))return!0;if(p.route.shouldRevalidate){let x=p.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((b=s[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function qx(n,i,{includeHydrateFallback:s}={}){return Yx(n.map(r=>{let u=i.routes[r.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),s&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function Yx(n){return[...new Set(n)]}function kx(n){let i={},s=Object.keys(n).sort();for(let r of s)i[r]=n[r];return i}function Gx(n,i){let s=new Set;return new Set(i),n.reduce((r,u)=>{let d=JSON.stringify(kx(u));return s.has(d)||(s.add(d),r.push({key:d,link:u})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Xx=new Set([100,101,204,205]);function Kx(n,i){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s.pathname==="/"?s.pathname="_root.data":i&&bn(s.pathname,i)==="/"?s.pathname=`${i.replace(/\/$/,"")}/_root.data`:s.pathname=`${s.pathname.replace(/\/$/,"")}.data`,s}function p0(){let n=S.useContext(vi);return Wc(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Qx(){let n=S.useContext(Rr);return Wc(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Ic=S.createContext(void 0);Ic.displayName="FrameworkContext";function y0(){let n=S.useContext(Ic);return Wc(n,"You must render this element inside a <HydratedRouter> element"),n}function Px(n,i){let s=S.useContext(Ic),[r,u]=S.useState(!1),[d,f]=S.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:m,onMouseLeave:g,onTouchStart:b}=i,x=S.useRef(null);S.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let D=R=>{R.forEach(C=>{f(C.isIntersecting)})},j=new IntersectionObserver(D,{threshold:.5});return x.current&&j.observe(x.current),()=>{j.disconnect()}}},[n]),S.useEffect(()=>{if(r){let D=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(D)}}},[r]);let E=()=>{u(!0)},_=()=>{u(!1),f(!1)};return s?n!=="intent"?[d,x,{}]:[d,x,{onFocus:Sl(h,E),onBlur:Sl(p,_),onMouseEnter:Sl(m,E),onMouseLeave:Sl(g,_),onTouchStart:Sl(b,E)}]:[!1,x,{}]}function Sl(n,i){return s=>{n&&n(s),s.defaultPrevented||i(s)}}function Zx({page:n,...i}){let{router:s}=p0(),r=S.useMemo(()=>i0(s.routes,n,s.basename),[s.routes,n,s.basename]);return r?S.createElement(Jx,{page:n,matches:r,...i}):null}function $x(n){let{manifest:i,routeModules:s}=y0(),[r,u]=S.useState([]);return S.useEffect(()=>{let d=!1;return Hx(n,i,s).then(f=>{d||u(f)}),()=>{d=!0}},[n,i,s]),r}function Jx({page:n,matches:i,...s}){let r=En(),{manifest:u,routeModules:d}=y0(),{basename:f}=p0(),{loaderData:h,matches:p}=Qx(),m=S.useMemo(()=>Xp(n,i,p,u,r,"data"),[n,i,p,u,r]),g=S.useMemo(()=>Xp(n,i,p,u,r,"assets"),[n,i,p,u,r]),b=S.useMemo(()=>
51{if(n===r.pathname+r.search+r.hash)return[];let _=new Set,D=!1;if(i.forEach(R=>{var O;let C=u.routes[R.route.id];!C||!C.hasLoader||(!m.some(Y=>Y.route.id===R.route.id)&&R.route.id in h&&((O=d[R.route.id])!=null&&O.shouldRevalidate)||C.hasClientLoader?D=!0:_.add(R.route.id))}),_.size===0)return[];let j=Kx(n,f);return D&&_.size>0&&j.searchParams.set("_routes",i.filter(R=>_.has(R.route.id)).map(R=>R.route.id).join(",")),[j.pathname+j.search]},[f,h,r,u,m,i,n,d]),x=S.useMemo(()=>qx(g,u),[g,u]),E=$x(g);return S.createElement(S.Fragment,null,b.map(_=>S.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...s})),x.map(_=>S.createElement("link",{key:_,rel:"modulepreload",href:_,...s})),E.map(({key:_,link:D})=>S.createElement("link",{key:_,...D})))}function Fx(...n){return i=>{n.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var g0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{g0&&(window.__reactRouterVersion="7.6.2")}catch{}function Wx({basename:n,children:i,window:s}){let r=S.useRef();r.current==null&&(r.current=Ub({window:s,v5Compat:!0}));let u=r.current,[d,f]=S.useState({action:u.action,location:u.location}),h=S.useCallback(p=>{S.startTransition(()=>f(p))},[f]);return S.useLayoutEffect(()=>u.listen(h),[u,h]),S.createElement(Mx,{basename:n,children:i,location:d.location,navigationType:d.action,navigator:u})}var v0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vn=S.forwardRef(function({onClick:i,discover:s="render",prefetch:r="none",relative:u,reloadDocument:d,replace:f,state:h,target:p,to:m,preventScrollReset:g,viewTransition:b,...x},E){let{basename:_}=S.useContext(Ie),D=typeof m=="string"&&v0.test(m),j,R=!1;if(typeof m=="string"&&D&&(j=m,g0))try{let tt=new URL(window.location.href),ot=m.startsWith("//")?new URL(tt.protocol+m):new URL(m),vt=bn(ot.pathname,_);ot.origin===tt.origin&&vt!=null?m=vt+ot.search+ot.hash:R=!0}catch{Ge(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=cx(m,{relative:u}),[O,Y,B]=Px(r,x),P=nT(m,{replace:f,state:h,target:p,preventScrollReset:g,relative:u,viewTransition:b});function Z(tt){i&&i(tt),tt.defaultPrevented||P(tt)}let K=S.createElement("a",{...x,...B,href:j||C,onClick:R||d?i:Z,ref:Fx(E,Y),target:p,"data-discover":!D&&s==="render"?"true":void 0});return O&&!D?S.createElement(S.Fragment,null,K,S.createElement(Zx,{page:C})):K});vn.displayName="Link";var Ix=S.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:r="",end:u=!1,style:d,to:f,viewTransition:h,children:p,...m},g){let b=Yl(f,{relative:m.relative}),x=En(),E=S.useContext(Rr),{navigator:_,basename:D}=S.useContext(Ie),j=E!=null&&rT(b)&&h===!0,R=_.encodeLocation?_.encodeLocation(b).pathname:b.pathname,C=x.pathname,O=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;s||(C=C.toLowerCase(),O=O?O.toLowerCase():null,R=R.toLowerCase()),O&&D&&(O=bn(O,D)||O);const Y=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let B=C===R||!u&&C.startsWith(R)&&C.charAt(Y)==="/",P=O!=null&&(O===R||!u&&O.startsWith(R)&&O.charAt(R.length)==="/"),Z={isActive:B,isPending:P,isTransitioning:j},K=B?i:void 0,tt;typeof r=="function"?tt=r(Z):tt=[r,B?"active":null,P?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let ot=typeof d=="function"?d(Z):d;return S.createElement(vn,{...m,"aria-current":K,className:tt,ref:g,style:ot,to:f,viewTransition:h},typeof p=="function"?p(Z):p)});Ix.displayName="NavLink";var tT=S.forwardRef(({discover:n="render",fetcherKey:i,navigate:s,reloadDocument:r,replace:u,state:d,method:f=pr,action:h,onSubmit:p,relative:m,preventScrollReset:g,viewTransition:b,...x},E)=>{let _=lT(),D=sT(h,{relative:m}),j=f.toLowerCase()==="get"?"get":"post",R=typeof h=="string"&&v0.test(h),C=O=>{if(p&&p(O),O.defaultPrevented)return;O.preventDefault();let Y=O.nativeEvent.submitter,B=(Y==null?void 0:Y.getAttribute("formmethod"))||f;_(Y||O.currentTarget,{fetcherKey:i,method:B,navigate:s,replace:u,state:d,relative:m,preventScrollReset:g,viewTransition:b})};return S.createElement("form",{ref:E,method:j,action:D,onSubmit:r?p:C,...x,"data-discover":!R&&n==="render"?"true":void 0})});tT.displayName="Form";function eT(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function b0(n){let i=S.useContext(vi);return zt(i,eT(n)),i}function nT(n,{target:i,replace:s,state:r,preventScrollReset:u,relative:d,viewTransition:f}={}){let h=$c(),p=En(),m=Yl(n,{relative:d});return S.useCallback(g=>{if(Nx(g,i)){g.preventDefault();let b=s!==void 0?s:Cl(p)===Cl(m);h(n,{replace:b,state:r,preventScrollReset:u,relative:d,viewTransition:f})}},[p,h,m,s,r,i,n,u,d,f])}function tf(n){Ge(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=S.useRef(Sc(n)),s=S.useRef(!1),r=En(),u=S.useMemo(()=>zx(r.search,s.current?null:i.current),[r.search]),d=$c(),f=S.useCallback((h,p)=>{const m=Sc(typeof h=="function"?h(u):h);s.current=!0,d("?"+m,p)},[d,u]);return[u,f]}var aT=0,iT=()=>`__${String(++aT)}__`;function lT(){let{router:n}=b0("useSubmit"),{basename:i}=S.useContext(Ie),s=Sx();return S.useCallback(async(r,u={})=>{let{action:d,method:f,encType:h,formData:p,body:m}=Lx(r,i);if(u.navigate===!1){let g=u.fetcherKey||iT();await n.fetch(g,s,u.action||d,{preventScrollReset:u.preventScrollReset,formData:p,body:m,formMethod:u.method||f,formEncType:u.encType||h,flushSync:u.flushSync})}else await n.navigate(u.action||d,{preventScrollReset:u.preventScrollReset,formData:p,body:m,formMethod:u.method||f,formEncType:u.encType||h,replace:u.replace,state:u.state,fromRouteId:s,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,i,s])}function sT(n,{relative:i}={}){let{basename:s}=S.useContext(Ie),r=S.useContext(tn);zt(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),d={...Yl(n||".",{relative:i})},f=En();if(n==null){d.search=f.search;let h=new URLSearchParams(d.search),p=h.getAll("index");if(p.some(g=>g==="")){h.delete("index"),p.filter(b=>b).forEach(b=>h.append("index",b));let g=h.toString();d.search=g?`?${g}`:""}}return(!n||n===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(d.pathname=d.pathname==="/"?s:gn([s,d.pathname])),Cl(d)}function rT(n,i={}){let s=S.useContext(c0);zt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=b0("useViewTransitionState"),u=Yl(n,{relative:i.relative});if(!s.isTransitioning)return!1;let d=bn(s.currentLocation.pathname,r)||s.currentLocation.pathname,f=bn(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Tr(u.pathname,f)!=null||Tr(u.pathname,d)!=null}[...Xx];const ef=S.createContext({});function nf(n){const i=S.useRef(null);return i.current===null&&(i.current=n()),i.current}const af=typeof window<"u",x0=af?S.useLayoutEffect:S.useEffect,Dr=S.createContext(null);function lf(n,i){n.indexOf(i)===-1&&n.push(i)}function sf(n,i){const s=n.indexOf(i);s>-1&&n.splice(s,1)}const xn=(n,i,s)=>s>i?i:s<n?n:s;let rf=()=>{};const Tn={},T0=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function S0(n){return typeof n=="object"&&n!==null}const E0=n=>/^0[^.\s]+$/u.test(n);function of(n){let i;return()=>(i===void 0&&(i=n()),i)}const Ue=n=>n,oT=(n,i)=>s=>i(n(s)),kl=(...n)=>n.reduce(oT),Ol=(n,i,s)=>{const r=i-n;return r===0?1:(s-n)/r};class uf{constructor(){this.subscriptions=[]}add(i){return lf(this.subscriptions,i),()=>sf(this.subscriptions,i)}notify(i,s,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](i,s,r);else for(let d=0;d<u;d++){const f=this.subscriptions[d];f&&f(i,s,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Je=n=>n*1e3,Fe=n=>n/1e3;function A0(n,i){return i?n*(1e3/i):0}const _0=(n,i,s)=>(((1-3*s+3*i)*n+(3*s-6*i))*n+3*i)*n,uT=1e-7,cT=12;function fT(n,i,s,r,u){let d,f,h=0;do f=i+(s-i)/2,d=_0(f,r,u)-n,d>
vendor: 22,033 bytes, line 51
510?s=f:i=f;while(Math.abs(d)>uT&&++h<cT);return f}function Gl(n,i,s,r){if(n===i&&s===r)return Ue;const u=d=>fT(d,0,1,n,s);return d=>d===0||d===1?d:_0(u(d),i,r)}const M0=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,R0=n=>i=>1-n(1-i),w0=Gl(.33,1.53,.69,.99),cf=R0(w0),D0=M0(cf),C0=n=>(n*=2)<1?.5*cf(n):.5*(2-Math.pow(2,-10*(n-1))),ff=n=>1-Math.sin(Math.acos(n)),O0=R0(ff),N0=M0(ff),dT=Gl(.42,0,1,1),hT=Gl(0,0,.58,1),z0=Gl(.42,0,.58,1),mT=n=>Array.isArray(n)&&typeof n[0]!="number",V0=n=>Array.isArray(n)&&typeof n[0]=="number",pT={linear:Ue,easeIn:dT,easeInOut:z0,easeOut:hT,circIn:ff,circInOut:N0,circOut:O0,backIn:cf,backInOut:D0,backOut:w0,anticipate:C0},yT=n=>typeof n=="string",Kp=n=>{if(V0(n)){rf(n.length===4);const[i,s,r,u]=n;return Gl(i,s,r,u)}else if(yT(n))return pT[n];return n},cr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Qp={value:null};function gT(n,i){let s=new Set,r=new Set,u=!1,d=!1;const f=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1},p=0;function m(b){f.has(b)&&(g.schedule(b),n()),p++,b(h)}const g={schedule:(b,x=!1,E=!1)=>{const D=E&&u?s:r;return x&&f.add(b),D.has(b)||D.add(b),b},cancel:b=>{r.delete(b),f.delete(b)},process:b=>{if(h=b,u){d=!0;return}u=!0,[s,r]=[r,s],s.forEach(m),i&&Qp.value&&Qp.value.frameloop[i].push(p),p=0,s.clear(),u=!1,d&&(d=!1,g.process(b))}};return g}const vT=40;function j0(n,i){let s=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=cr.reduce((O,Y)=>(O[Y]=gT(d,i?Y:void 0),O),{}),{setup:h,read:p,resolveKeyframes:m,preUpdate:g,update:b,preRender:x,render:E,postRender:_}=f,D=()=>{const O=Tn.useManualTiming?u.timestamp:performance.now();s=!1,Tn.useManualTiming||(u.delta=r?1e3/60:Math.max(Math.min(O-u.timestamp,vT),1)),u.timestamp=O,u.isProcessing=!0,h.process(u),p.process(u),m.process(u),g.process(u),b.process(u),x.process(u),E.process(u),_.process(u),u.isProcessing=!1,s&&i&&(r=!1,n(D))},j=()=>{s=!0,r=!0,u.isProcessing||n(D)};return{schedule:cr.reduce((O,Y)=>{const B=f[Y];return O[Y]=(P,Z=!1,K=!1)=>(s||j(),B.schedule(P,Z,K)),O},{}),cancel:O=>{for(let Y=0;Y<cr.length;Y++)f[cr[Y]].cancel(O)},state:u,steps:f}}const{schedule:Vt,cancel:Jn,state:te,steps:rc}=j0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ue,!0);let gr;function bT(){gr=void 0}const me={now:()=>(gr===void 0&&me.set(te.isProcessing||Tn.useManualTiming?te.timestamp:performance.now()),gr),set:n=>{gr=n,queueMicrotask(bT)}},L0=n=>i=>typeof i=="string"&&i.startsWith(n),df=L0("--"),xT=L0("var(--"),hf=n=>xT(n)?TT.test(n.split("/*")[0].trim()):!1,TT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Nl={...bi,transform:n=>xn(0,1,n)},fr={...bi,default:1},_l=n=>Math.round(n*1e5)/1e5,mf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ST(n){return n==null}const ET=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pf=(n,i)=>s=>!!(typeof s=="string"&&ET.test(s)&&s.startsWith(n)||i&&!ST(s)&&Object.prototype.hasOwnProperty.call(s,i)),U0=(n,i,s)=>r=>{if(typeof r!="string")return r;const[u,d,f,h]=r.match(mf);return{[n]:parseFloat(u),[i]:parseFloat(d),[s]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},AT=n=>xn(0,255,n),oc={...bi,transform:n=>Math.round(AT(n))},ba={test:pf("rgb","red"),parse:U0("red","green","blue"),transform:({red:n,green:i,blue:s,alpha:r=1})=>"rgba("+oc.transform(n)+", "+oc.transform(i)+", "+oc.transform(s)+", "+_l(Nl.transform(r))+")"};function _T(n){let i="",s="",r="",u="";return n.length>5?(i=n.substring(1,3),s=n.substring(3,5),r=n.substring(5,7),u=n.substring(7,9)):(i=n.substring(1,2),s=n.substring(2,3),r=n.substring(3,4),u=n.substring(4,5),i+=i,s+=s,r+=r,u+=u),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const Ec={test:pf("#"),parse:_T,transform:ba.transform},Xl=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),$n=Xl("deg"),We=Xl("%"),lt=Xl("px"),MT=Xl("vh"),RT=Xl("vw"),Pp={...We,parse:n=>We.parse(n)/100,transform:n=>We.transform(n*100)},ci={test:pf("hsl","hue"),parse:U0("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:s,alpha:r=1})=>"hsla("+Math.round(n)+", "+We.transform(_l(i))+", "+We.transform(_l(s))+", "+_l(Nl.transform(r))+")"},Xt={test:n=>ba.test(n)||Ec.test(n)||ci.test(n),parse:n=>ba.test(n)?ba.parse(n):ci.test(n)?ci.parse(n):Ec.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?ba.transform(n):ci.transform(n),getAnimatableNone:n=>{const i=Xt.parse(n);return i.alpha=0,Xt.transform(i)}},wT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function DT(n){var i,s;return isNaN(n)&&typeof n=="string"&&(((i=n.match(mf))==null?void 0:i.length)||0)+(((s=n.match(wT))==null?void 0:s.length)||0)>0}const B0="number",H0="color",CT="var",OT="var(",Zp="${}",NT=/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 zl(n){const i=n.toString(),s=[],r={color:[],number:[],var:[]},u=[];let d=0;const h=i.replace(NT,p=>(Xt.test(p)?(r.color.push(d),u.push(H0),s.push(Xt.parse(p))):p.startsWith(OT)?(r.var.push(d),u.push(CT),s.push(p)):(r.number.push(d),u.push(B0),s.push(parseFloat(p))),++d,Zp)).split(Zp);return{values:s,split:h,indexes:r,types:u}}function q0(n){return zl(n).values}function Y0(n){const{split:i,types:s}=zl(n),r=i.length;return u=>{let d="";for(let f=0;f<r;f++)if(d+=i[f],u[f]!==void 0){const h=s[f];h===B0?d+=_l(u[f]):h===H0?d+=Xt.transform(u[f]):d+=u[f]}return d}}const zT=n=>typeof n=="number"?0:Xt.test(n)?Xt.getAnimatableNone(n):n;function VT(n){const i=q0(n);return Y0(n)(i.map(zT))}const Fn={test:DT,parse:q0,createTransformer:Y0,getAnimatableNone:VT};function uc(n,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(i-n)*6*s:s<1/2?i:s<2/3?n+(i-n)*(2/3-s)*6:n}function jT({hue:n,saturation:i,lightness:s,alpha:r}){n/=360,i/=100,s/=100;let u=0,d=0,f=0;if(!i)u=d=f=s;else{const h=s<.5?s*(1+i):s+i-s*i,p=2*s-h;u=uc(p,h,n+1/3),d=uc(p,h,n),f=uc(p,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:r}}function Sr(n,i){return s=>s>0?i:n}const Nt=(n,i,s)=>n+(i-n)*s,cc=(n,i,s)=>{const r=n*n,u=s*(i*i-r)+r;return u<0?0:Math.sqrt(u)},LT=[Ec,ba,ci],UT=n=>LT.find(i=>i.test(n));function $p(n){const i=UT(n);if(!i)return!1;let s=i.parse(n);return i===ci&&(s=jT(s)),s}const Jp=(n,i)=>{const s=$p(n),r=$p(i);if(!s||!r)return Sr(n,i);const u={...s};return d=>(u.red=cc(s.red,r.red,d),u.green=cc(s.green,r.green,d),u.blue=cc(s.blue,r.blue,d),u.alpha=Nt(s.alpha,r.alpha,d),ba.transform(u))},Ac=new Set(["none","hidden"]);function BT(n,i){return Ac.has(n)?s=>s<=0?n:i:s=>s>=1?i:n}function HT(n,i){return s=>Nt(n,i,s)}function yf(n){return typeof n=="number"?HT:typeof n=="string"?hf(n)?Sr:Xt.test(n)?Jp:kT:Array.isArray(n)?k0:typeof n=="object"?Xt.test(n)?Jp:qT:Sr}function k0(n,i){const s=[...n],r=s.length,u=n.map((d,f)=>yf(d)(d,i[f]));return d=>{for(let f=0;f<r;f++)s[f]=u[f](d);return s}}function qT(n,i){const s={...n,...i},r={};for(const u in s)n[u]!==void 0&&i[u]!==void 0&&(r[u]=yf(n[u])(n[u],i[u]));return u=>{for(const d in r)s[d]=r[d](u);return s}}function YT(n,i){const s=[],r={color:0,var:0,number:0};for(let u=0;u<i.values.length;u++){const d=i.types[u],f=n.indexes[d][r[d]],h=n.values[f]??0;s[u]=h,r[d]++}return s}const kT=(n,i)=>{const s=Fn.createTransformer(i),r=zl(n),u=zl(i);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?Ac.has(n)&&!u.values.length||Ac.has(i)&&!r.values.length?BT(n,i):kl(k0(YT(r,u),u.values),s):Sr(n,i)};function G0(n,i,s){return typeof n=="number"&&typeof i=="number"&&typeof s=="number"?Nt(n,i,s):yf(n)(n,i)}const GT=n=>{const i=({timestamp:s})=>n(s);return{start:(s=!0)=>Vt.update(i,s),stop:()=>Jn(i),now:()=>te.isProcessing?te.timestamp:me.now()}},X0=(n,i,s=10)=>{let r="";const u=Math.max(Math.round(i/s),2);for(let d=0;d<u;d++)r+=Math.round(n(d/(u-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Er=2e4;function gf(n){let i=0;const s=50;let r=n.next(i);for(;!r.done&&i<Er;)i+=s,r=n.next(i);return i>=Er?1/0:i}function XT(n,i=100,s){const r=s({...n,keyframes:[0,i]}),u=Math.min(gf(r),Er);return{type:"keyframes",ease:d=>r.next(u*d).value/i,duration:Fe(u)}}const KT=5;function K0(n,i,s){const r=Math.max(i-KT,0);return A0(s-n(r),i-r)}const Ut={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},fc=.001;function QT({duration:n=Ut.duration,bounce:i=Ut.bounce,velocity:s=Ut.velocity,mass:r=Ut.mass}){let u,d,f=1-i;f=xn(Ut.minDamping,Ut.maxDamping,f),n=xn(Ut.minDuration,Ut.maxDuration,Fe(n)),f<1?(u=m=>{const g=m*f,b=g*n,x=g-s,E=_c(m,f),_=Math.exp(-b);return fc-x/E*_},d=m=>{const b=m*f*n,x=b*s+s,E=Math.pow(f,2)*Math.pow(m,2)*n,_=Math.exp(-b),D=_c(Math.pow(m,2),f);return(-u(m)+fc>0?-1:1)*((x-E)*_)/D}):(u=m=>{const g=Math.exp(-m*n),b=(m-s)*n+1;return-fc+g*b},d=m=>{const g=Math.exp(-m*n),b=(s-m)*(n*n);return g*b});const h=5/n,p=ZT(u,d,h);if(n=Je(n),isNaN(p))return{stiffness:Ut.stiffness,damping:Ut.damping,duration:n};{const m=Math.pow(p,2)*r;return{stiffness:m,damping:f*2*Math.sqrt(r*m),duration:n}}}const PT=12;function ZT(n,i,s){let r=s;for(let u=1;u<PT;u++)r=r-n(r)/i(r);return r}function _c(n,i){return n*Math.sqrt(1-i*i)}const $T=["duration","bounce"],JT=["stiffness","damping","mass"];function Fp(n,i){return i.some(s=>n[s]!==void 0)}function FT(n){let i={velocity:Ut.velocity,stiffness:Ut.stiffness,damping:Ut.damping,mass:Ut.mass,isResolvedFromDuration:!1,...n};if(!Fp(n,JT)&&Fp(n,$T))if(n.visualDuration){const s=n.visualDuration,r=2*Math.PI/(s*1.2),u=r*r,d=2*xn(.05,1,1-(n.bounce||0))*Math.sqrt(u);i={...i,mass:Ut.mass,stiffness:u,damping:d}}else{const s=QT(n);i={...i,...s,mass:Ut.mass},i.isResolvedFromDuration=!0}return i}function Ar(n=Ut.visualDuration,i=Ut.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:r,restDelta:u}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],h={done:!1,value:d},{stiffness:p,damping:m,mass:g,duration:b,velocity:x,isResolvedFromDuration:E}=FT({...s,velocity:-Fe(s.velocity||0)}),_=x||0,D=m/(2*Math.sqrt(p*g)),j=f-d,R=Fe(Math.sqrt(p/g)),C=Math.abs(j)<5;r||(r=C?Ut.restSpeed.granular:Ut.restSpeed.default),u||(u=C?Ut.restDelta.granular:Ut.restDelta.default);let O;if(D<1){const B=_c(R,D);O=P=>{const Z=Math.exp(-D*R*P);return f-Z*((_+D*R*j)/B*Math.sin(B*P)+j*Math.cos(B*P))}}else if(D===1)O=B=>f-Math.exp(-R*B)*(j+(_+R*j)*B);else{const B=R*Math.sqrt(D*D-1);O=P=>{const Z=Math.exp(-D*R*P),K=Math.min(B*P,300);return f-Z*((_+D*R*j)*Math.sinh(K)+B*j*Math.cosh(K))/B}}const Y={calculatedDuration:E&&b||null,next:B=>{const P=O(B);if(E)h.done=B>=b;else{let Z=B===0?_:0;D<1&&(Z=B===0?Je(_):K0(O,B,P));const K=Math.abs(Z)<=r,tt=Math.abs(f-P)<=u;h.done=K&&tt}return h.value=h.done?f:P,h},toString:()=>{const B=Math.min(gf(Y),Er),P=X0(Z=>Y.next(B*Z).value,B,30);return B+"ms "+P},toTransition:()=>{}};return Y}Ar.applyToOptions=n=>{const i=XT(n,100,Ar);return n.ease=i.ease,n.duration=Je(i.duration),n.type="keyframes",n};function Mc({keyframes:n,velocity:i=0,power:s=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:d=500,modifyTarget:f,min:h,max:p,restDelta:m=.5,restSpeed:g}){const b=n[0],x={done:!1,value:b},E=K=>h!==void 0&&K<h||p!==void 0&&K>p,_=K=>h===void 0?p:p===void 0||Math.abs(h-K)<Math.abs(p-K)?h:p;let D=s*i;const j=b+D,R=f===void 0?j:f(j);R!==j&&(D=R-b);const C=K=>-D*Math.exp(-K/r),O=K=>R+C(K),Y=K=>{const tt=C(K),ot=O(K);x.done=Math.abs(tt)<=m,x.value=x.done?R:ot};let B,P;const Z=K=>{E(x.value)&&(B=K,P=Ar({keyframes:[x.value,_(x.value)],velocity:K0(O,K,x.value),damping:u,stiffness:d,restDelta:m,restSpeed:g}))};return Z(0),{calculatedDuration:null,next:K=>{let tt=!1;return!P&&B===void 0&&(tt=!0,Y(K),Z(K)),B!==void 0&&K>=B?P.next(K-B):(!tt&&Y(K),x)}}}function WT(n,i,s){const r=[],u=s||Tn.mix||G0,d=n.length-1;for(let f=0;f<d;f++){let h=u(n[f],n[f+1]);if(i){const p=Array.isArray(i)?i[f]||Ue:i;h=kl(p,h)}r.push(h)}return r}function IT(n,i,{clamp:s=!0,ease:r,mixer:u}={}){const d=n.length;if(rf(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),i=[...i].reverse());const h=WT(i,r,u),p=h.length,m=g=>{if(f&&g<n[0])return i[0];let b=0;if(p>1)for(;b<n.length-2&&!(g<n[b+1]);b++);const x=Ol(n[b],n[b+1],g);return h[b](x)};return s?g=>m(xn(n[0],n[d-1],g)):m}function tS(n,i){const s=n[n.length-1];for(let r=1;r<=i;r++){const u=Ol(0,i,r);n.push(Nt(s,1,u))}}function eS(n){const i=[0];return tS(i,n.length-1),i}function nS(n,i){return n.map(s=>s*i)}function aS(n,i){return n.map(()=>i||z0).splice(0,n.length-1)}function Ml({duration:n=300,keyframes:i,times:s,ease:r="easeInOut"}){const u=mT(r)?r.map(Kp):Kp(r),d={done:!1,value:i[0]},f=nS(s&&s.length===i.length?s:eS(i),n),h=IT(f,i,{ease:Array.isArray(u)?u:aS(i,u)});return{calculatedDuration:n,next:p=>(d.value=h(p),d.done=p>=n,d)}}const iS=n=>n!==null;function vf(n,{repeat:i,repeatType:s="loop"},r,u=1){const d=n.filter(iS),h=u<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!h||r===void 0?d[h]:r}const lS={decay:Mc,inertia:Mc,tween:Ml,keyframes:Ml,spring:Ar};function Q0(n){typeof n.type=="string"&&(n.type=lS[n.type])}class bf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const sS=n=>n/100;class xf extends bf{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,u;const{motionValue:s}=this.options;s&&s.updatedAt!==me.now()&&this.tick(me.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(r=this.options).onStop)==null||u.call(r))},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Q0(i);const{type:s=Ml,repeat:r=0,repeatDelay:u=0,repeatType:d,velocity:f=0}=i;let{keyframes:h}=i;const p=s||Ml;p!==Ml&&typeof h[0]!="number"&&(this.mixKeyframes=kl(sS,G0(h[0],h[1])),h=[0,100]);const m=p({...i,keyframes:h});d==="mirror"&&(this.mirroredGenerator=p({...i,keyframes:[...h].reverse(),velocity:-f})),m.calculatedDuration===null&&(m.calculatedDuration=gf(m));const{calculatedDuration:g}=m;this.calculatedDuration=g,this.resolvedDuration=g+u,this.totalDuration=this.resolvedDuration*(r+1)-u,this.generator=m}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:r,totalDuration:u,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:p}=this;if(this.startTime===null)return r.next(0);const{delay:m=0,keyframes:g,repeat:b,repeatType:x,repeatDelay:E,type:_,onUpdate:D,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-u/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const R=this.currentTime-m*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?R<0:R>u;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let O=this.currentTime,Y=r;if(b){const K=Math.min(this.currentTime,u)/h;let tt=Math.floor(K),ot=K%1;!ot&&K>=1&&(ot=1),ot===1&&tt--,tt=Math.min(tt,b+1),!!(tt%2)&&(x==="reverse"?(ot=1-ot,E&&(ot-=E/h)):x==="mirror"&&(Y=f)),O=xn(0,1,ot)*h}const B=C?{done:!1,value:g[0]}:Y.next(O);d&&(B.value=d(B.value));let{done:P}=B;!C&&p!==null&&(P=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const Z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return Z&&_!==Mc&&(B.value=vf(g,this.options,j,this.speed)),D&&D(B.value),Z&&this.finish(),B}then(i,s){return this.finished.then(i,s)}get duration(){return Fe(this.calculatedDuration)}get time(){return Fe(this.currentTime)}set time(i){var s;i=Je(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(me.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=Fe(this.currentTime))}play(){var u,d;if(this.isStopped)return;const{driver:i=GT,startTime:s}=this.options;this.driver||(this.driver=i(f=>this.tick(f))),(d=(u=this.options).onPlay)==null||d.call(u);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=s??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(me.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var i,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(i=this.options).onComplete)==null||s.call(i)}cancel(){var i,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(i=this.options).onCancel)==null||s.call(i)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),i.observe(this)}}function rS(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const xa=n=>n*180/Math.PI,Rc=n=>{const i=xa(Math.atan2(n[1],n[0]));return wc(i)},oS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Rc,rotateZ:Rc,skewX:n=>xa(Math.atan(n[1])),skewY:n=>xa(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},wc=n=>(n=n%360,n<0&&(n+=360),n),Wp=Rc,Ip=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),ty=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),uS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ip,scaleY:ty,scale:n=>(Ip(n)+ty(n))/2,rotateX:n=>wc(xa(Math.atan2(n[6],n[5]))),rotateY:n=>wc(xa(Math.atan2(-n[2],n[0]))),rotateZ:Wp,rotate:Wp,skewX:n=>xa(Math.atan(n[4])),skewY:n=>xa(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Dc(n){return n.includes("scale")?1:0}function Cc(n,i){if(!n||n==="none")return Dc(i);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,u;if(s)r=uS,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=oS,u=h}if(!u)return Dc(i);const d=r[i],f=u[1].split(",").map(fS);return typeof d=="function"?d(f):f[d]}const cS=(n,i)=>{const{transform:s="none"}=getComputedStyle(n);return Cc(s,i)};function fS(n){return parseFloat(n.trim())}const xi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ti=new Set(xi),ey=n=>n===bi||n===lt,dS=new Set(["x","y","z"]),hS=xi.filter(n=>!dS.has(n));function mS(n){const i=[];return hS.forEach(s=>{const r=n.getValue(s);r!==void 0&&(i.push([s,r.get()]),r.set(s.startsWith("scale")?1:0))}),i}const Ta={width:({x:n},{paddingLeft:i="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(i)-parseFloat(s),height:({y:n},{paddingTop:i="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(i)-parseFloat(s),top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:(n,{transform:i})=>Cc(i,"x"),y:(n,{transform:i})=>Cc(i,"y")};Ta.translateX=Ta.x;Ta.translateY=Ta.y;const Sa=new Set;let Oc=!1,Nc=!1,zc=!1;function P0(){if(Nc){const n=Array.from(Sa).filter(r=>r.needsMeasurement),i=new Set(n.map(r=>r.element)),s=new Map;i.forEach(r=>{const u=mS(r);u.length&&(s.set(r,u),r.render())}),n.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const u=s.get(r);u&&u.forEach(([d,f])=>{var h;(h=r.getValue(d))==null||h.set(f)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Nc=!1,Oc=!1,Sa.forEach(n=>n.complete(zc)),Sa.clear()}function Z0(){Sa.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Nc=!0)})}function pS(){zc=!0,Z0(),P0(),zc=!1}class Tf{constructor(i,s,r,u,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=r,this.motionValue=u,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Sa.add(this),Oc||(Oc=!0,Vt.read(Z0),Vt.resolveKeyframes(P0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:r,motionValue:u}=this;if(i[0]===null){const d=u==null?void 0:u.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(r&&s){const h=r.readValue(s,f);h!=null&&(i[0]=h)}i[0]===void 0&&(i[0]=f),u&&d===void 0&&u.set(i[0])}rS(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Sa.delete(this)}cancel(){this.state==="scheduled"&&(Sa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const yS=n=>n.startsWith("--");function gS(n,i,s){yS(i)?n.style.setProperty(i,s):n.style[i]=s}const vS=of(()=>window.ScrollTimeline!==void 0),bS={};function xS(n,i){const s=of(n);return()=>bS[i]??s()}const $0=xS(()=>{try{document.createElement("div").animate({opacity:0}
51,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Al=([n,i,s,r])=>`cubic-bezier(${n}, ${i}, ${s}, ${r})`,ny={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Al([0,.65,.55,1]),circOut:Al([.55,0,1,.45]),backIn:Al([.31,.01,.66,-.59]),backOut:Al([.33,1.53,.69,.99])};function J0(n,i){if(n)return typeof n=="function"?$0()?X0(n,i):"ease-out":V0(n)?Al(n):Array.isArray(n)?n.map(s=>J0(s,i)||ny.easeOut):ny[n]}function TS(n,i,s,{delay:r=0,duration:u=300,repeat:d=0,repeatType:f="loop",ease:h="easeOut",times:p}={},m=void 0){const g={[i]:s};p&&(g.offset=p);const b=J0(h,u);Array.isArray(b)&&(g.easing=b);const x={delay:r,duration:u,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return m&&(x.pseudoElement=m),n.animate(g,x)}function F0(n){return typeof n=="function"&&"applyToOptions"in n}function SS({type:n,...i}){return F0(n)&&$0()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class ES extends bf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:s,name:r,keyframes:u,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:h,onComplete:p}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,rf(typeof i.type!="string");const m=SS(i);this.animation=TS(s,r,u,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const g=vf(u,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(g):gS(s,r,g),this.animation.cancel()}p==null||p(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var i,s;(s=(i=this.animation).finish)==null||s.call(i)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,s;this.isPseudoElement||(s=(i=this.animation).commitStyles)==null||s.call(i)}get duration(){var s,r;const i=((r=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:r.call(s).duration)||0;return Fe(Number(i))}get time(){return Fe(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=Je(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&vS()?(this.animation.timeline=i,Ue):s(this)}}const W0={anticipate:C0,backInOut:D0,circInOut:N0};function AS(n){return n in W0}function _S(n){typeof n.ease=="string"&&AS(n.ease)&&(n.ease=W0[n.ease])}const ay=10;class MS extends ES{constructor(i){_S(i),Q0(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:r,onComplete:u,element:d,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const h=new xf({...f,autoplay:!1}),p=Je(this.finishedTime??this.time);s.setWithVelocity(h.sample(p-ay).value,h.sample(p).value,ay),h.stop()}}const iy=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Fn.test(n)||n==="0")&&!n.startsWith("url("));function RS(n){const i=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==i)return!0}function wS(n,i,s,r){const u=n[0];if(u===null)return!1;if(i==="display"||i==="visibility")return!0;const d=n[n.length-1],f=iy(u,i),h=iy(d,i);return!f||!h?!1:RS(n)||(s==="spring"||F0(s))&&r}function Sf(n){return S0(n)&&"offsetHeight"in n}const DS=new Set(["opacity","clipPath","filter","transform"]),CS=of(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function OS(n){var m;const{motionValue:i,name:s,repeatDelay:r,repeatType:u,damping:d,type:f}=n;if(!Sf((m=i==null?void 0:i.owner)==null?void 0:m.current))return!1;const{onUpdate:h,transformTemplate:p}=i.owner.getProps();return CS()&&s&&DS.has(s)&&(s!=="transform"||!p)&&!h&&!r&&u!=="mirror"&&d!==0&&f!=="inertia"}const NS=40;class zS extends bf{constructor({autoplay:i=!0,delay:s=0,type:r="keyframes",repeat:u=0,repeatDelay:d=0,repeatType:f="loop",keyframes:h,name:p,motionValue:m,element:g,...b}){var _;super(),this.stop=()=>{var D,j;this._animation&&(this._animation.stop(),(D=this.stopTimeline)==null||D.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=me.now();const x={autoplay:i,delay:s,type:r,repeat:u,repeatDelay:d,repeatType:f,name:p,motionValue:m,element:g,...b},E=(g==null?void 0:g.KeyframeResolver)||Tf;this.keyframeResolver=new E(h,(D,j,R)=>this.onKeyframesResolved(D,j,x,!R),p,m,g),(_=this.keyframeResolver)==null||_.scheduleResolve()}onKeyframesResolved(i,s,r,u){this.keyframeResolver=void 0;const{name:d,type:f,velocity:h,delay:p,isHandoff:m,onUpdate:g}=r;this.resolvedAt=me.now(),wS(i,d,f,h)||((Tn.instantAnimations||!p)&&(g==null||g(vf(i,r,s))),i[0]=i[i.length-1],r.duration=0,r.repeat=0);const x={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>NS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...r,keyframes:i},E=!m&&OS(x)?new MS({...x,element:x.motionValue.owner.current}):new xf(x);E.finished.then(()=>this.notifyFinished()).catch(Ue),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){var i;return this._animation||((i=this.keyframeResolver)==null||i.resume(),pS()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var i;this._animation&&this.animation.cancel(),(i=this.keyframeResolver)==null||i.cancel()}}const VS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jS(n){const i=VS.exec(n);if(!i)return[,];const[,s,r,u]=i;return[`--${s??r}`,u]}function I0(n,i,s=1){const[r,u]=jS(n);if(!r)return;const d=window.getComputedStyle(i).getPropertyValue(r);if(d){const f=d.trim();return T0(f)?parseFloat(f):f}return hf(u)?I0(u,i,s+1):u}function Ef(n,i){return(n==null?void 0:n[i])??(n==null?void 0:n.default)??n}const tg=new Set(["width","height","top","left","right","bottom",...xi]),LS={test:n=>n==="auto",parse:n=>n},eg=n=>i=>i.test(n),ng=[bi,lt,We,$n,RT,MT,LS],ly=n=>ng.find(eg(n));function US(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||E0(n):!0}const BS=new Set(["brightness","contrast","saturate","opacity"]);function HS(n){const[i,s]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[r]=s.match(mf)||[];if(!r)return n;const u=s.replace(r,"");let d=BS.has(i)?1:0;return r!==s&&(d*=100),i+"("+d+u+")"}const qS=/\b([a-z-]*)\(.*?\)/gu,Vc={...Fn,getAnimatableNone:n=>{const i=n.match(qS);return i?i.map(HS).join(" "):n}},sy={...bi,transform:Math.round},YS={rotate:$n,rotateX:$n,rotateY:$n,rotateZ:$n,scale:fr,scaleX:fr,scaleY:fr,scaleZ:fr,skew:$n,skewX:$n,skewY:$n,distance:lt,translateX:lt,translateY:lt,translateZ:lt,x:lt,y:lt,z:lt,perspective:lt,transformPerspective:lt,opacity:Nl,originX:Pp,originY:Pp,originZ:lt},Af={borderWidth:lt,borderTopWidth:lt,borderRightWidth:lt,borderBottomWidth:lt,borderLeftWidth:lt,borderRadius:lt,radiu
vendor: 2,390 bytes, line 51
51s:lt,borderTopLeftRadius:lt,borderTopRightRadius:lt,borderBottomRightRadius:lt,borderBottomLeftRadius:lt,width:lt,maxWidth:lt,height:lt,maxHeight:lt,top:lt,right:lt,bottom:lt,left:lt,padding:lt,paddingTop:lt,paddingRight:lt,paddingBottom:lt,paddingLeft:lt,margin:lt,marginTop:lt,marginRight:lt,marginBottom:lt,marginLeft:lt,backgroundPositionX:lt,backgroundPositionY:lt,...YS,zIndex:sy,fillOpacity:Nl,strokeOpacity:Nl,numOctaves:sy},kS={...Af,color:Xt,backgroundColor:Xt,outlineColor:Xt,fill:Xt,stroke:Xt,borderColor:Xt,borderTopColor:Xt,borderRightColor:Xt,borderBottomColor:Xt,borderLeftColor:Xt,filter:Vc,WebkitFilter:Vc},ag=n=>kS[n];function ig(n,i){let s=ag(n);return s!==Vc&&(s=Fn),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const GS=new Set(["auto","none","0"]);function XS(n,i,s){let r=0,u;for(;r<n.length&&!u;){const d=n[r];typeof d=="string"&&!GS.has(d)&&zl(d).values.length&&(u=n[r]),r++}if(u&&s)for(const d of i)n[d]=ig(s,u)}class KS extends Tf{constructor(i,s,r,u,d){super(i,s,r,u,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:r}=this;if(!s||!s.current)return;super.readKeyframes();for(let p=0;p<i.length;p++){let m=i[p];if(typeof m=="string"&&(m=m.trim(),hf(m))){const g=I0(m,s.current);g!==void 0&&(i[p]=g),p===i.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!tg.has(r)||i.length!==2)return;const[u,d]=i,f=ly(u),h=ly(d);if(f!==h)if(ey(f)&&ey(h))for(let p=0;p<i.length;p++){const m=i[p];typeof m=="string"&&(i[p]=parseFloat(m))}else Ta[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,r=[];for(let u=0;u<i.length;u++)(i[u]===null||US(i[u]))&&r.push(u);r.length&&XS(i,r,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ta[r](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&i.getValue(r,u).jump(u,!1)}measureEndState(){var h;const{element:i,name:s,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const u=i.getValue(s);u&&u.jump(this.measuredOrigin,!1);const d=r.length-1,f=r[d];r[d]=Ta[s](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEac
51h(([p,m])=>{i.getValue(p).set(m)}),this.resolveNoneKeyframes()}}function QS(n,i,s){if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const u=(s==null?void 0:s[n])??r.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n)}const lg=(n,i)=>i&&typeof n=="number"?i.transform(n):n,ry=30,PS=n=>!isNaN(parseFloat(n));class ZS{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,u=!0)=>{var f,h;const d=me.now();if(this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const p of this.dependents)p.dirty();u&&((h=this.events.renderRequest)==null||h.notify(this.current))},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=me.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=PS(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new uf);const r=this.events[i].add(s);return i==="change"?()=>{r(),Vt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i,s=!0){!s||!this.passiveEffect?this.updateAndNotify(i,s):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,s,r){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var i;(i=this.events.change)==null||i.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=me.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>ry)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,ry);return A0(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var i,s;(i=this.dependents)==null||i.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pi(n,i){return new ZS(n,i)}const{schedule:_f}=j0(queueMicrotask,!1),Ye={x:!1,y:!1};function sg(){return Ye.x||Ye.y}function $S(n){return n==="x"||n==="y"?Ye[n]?null:(Ye[n]=!0,()=>{Ye[n]=!1}):Ye.x||Ye.y?null:(Ye.x=Ye.y=!0,()=>{Ye.x=Ye.y=!1})}function rg(n,i){const s=QS(n),r=new AbortController,u={passive:!0,...i,signal:r.signal};return[s,u,()=>r.abort()]}function oy(n){return!(n.pointerType==="touch"||sg())}function JS(n,i,s={}){const[r,u,d]=rg(n,s),f=h=>{if(!oy(h))return;const{target:p}=h,m=i(p,h);if(typeof m!="function"||!p)return;const g=b=>{oy(b)&&(m(b),p.removeEventListener("pointerleave",g))};p.addEventListener("pointerleave",g,u)};return r.forEach(h=>{h.addEventListener("pointerenter",f,u)}),d}const og=(n,i)=>i?n===i?!0:og(n,i.parentElement):!1,Mf=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,FS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WS(n){return FS.has(n.tagName)||n.tabIndex!==-1}const vr=new WeakSet;function uy(n){return i=>{i.key==="Enter"&&n(i)}}function dc(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const IS=(n,i)=>{const s=n.currentTarget;if(!s)return;const r=uy(()=>
vendor: 4,176 bytes, lines 51-59
51{if(vr.has(s))return;dc(s,"down");const u=uy(()=>{dc(s,"up")}),d=()=>dc(s,"cancel");s.addEventListener("keyup",u,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",r,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",r),i)};function cy(n){return Mf(n)&&!sg()}function t2(n,i,s={}){const[r,u,d]=rg(n,s),f=h=>{const p=h.currentTarget;if(!cy(h))return;vr.add(p);const m=i(p,h),g=(E,_)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",x),vr.has(p)&&vr.delete(p),cy(E)&&typeof m=="function"&&m(E,{success:_})},b=E=>{g(E,p===window||p===document||s.useGlobalTarget||og(p,E.target))},x=E=>{g(E,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",x,u)};return r.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",f,u),Sf(h)&&(h.addEventListener("focus",m=>IS(m,u)),!WS(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),d}function ug(n){return S0(n)&&"ownerSVGElement"in n}function e2(n){return ug(n)&&n.tagName==="svg"}const ie=n=>!!(n&&n.getVelocity),n2=[...ng,Xt,Fn],a2=n=>n2.find(eg(n)),Rf=S.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class i2 extends S.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const r=s.offsetParent,u=Sf(r)&&r.offsetWidth||0,d=this.props.sizeRef.current;d.height=s.offsetHeight||0,d.width=s.offsetWidth||0,d.top=s.offsetTop,d.left=s.offsetLeft,d.right=u-d.width-d.left}return null}componentDidUpdate(){}render(){return this.props.children}}function l2({children:n,isPresent:i,anchorX:s}){const r=S.useId(),u=S.useRef(null),d=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:f}=S.useContext(Rf);return S.useInsertionEffect(()=>{const{width:h,height:p,top:m,left:g,right:b}=d.current;if(i||!u.current||!h||!p)return;const x=s==="left"?`left: ${g}`:`right: ${b}`;u.current.dataset.motionPopId=r;const E=document.createElement("style");return f&&(E.nonce=f),document.head.appendChild(E),E.sheet&&E.sheet.insertRule(`
52          [data-motion-pop-id="${r}"] {
53            position: absolute !important;
54            width: ${h}px !important;
55            height: ${p}px !important;
56            ${x}px !important;
57            top: ${m}px !important;
58          }
59        `),()=>{document.head.contains(E)&&document.head.removeChild(E)}},[i]),V.jsx(i2,{isPresent:i,childRef:u,sizeRef:d,children:S.cloneElement(n,{ref:u})})}const s2=({children:n,initial:i,isPresent:s,onExitComplete:r,custom:u,presenceAffectsLayout:d,mode:f,anchorX:h})=>{const p=nf(r2),m=S.useId();let g=!0,b=S.useMemo(()=>(g=!1,{id:m,initial:i,isPresent:s,custom:u,onExitComplete:x=>{p.set(x,!0);for(const E of p.values())if(!E)return;r&&r()},register:x=>(p.set(x,!1),()=>p.delete(x))}),[s,p,r]);return d&&g&&(b={...b}),S.useMemo(()=>{p.forEach((x,E)=>p.set(E,!1))},[s]),S.useEffect(()=>{!s&&!p.size&&r&&r()},[s]),f==="popLayout"&&(n=V.jsx(l2,{isPresent:s,anchorX:h,children:n})),V.jsx(Dr.Provider,{value:b,children:n})};function r2(){return new Map}function cg(n=!0){const i=S.useContext(Dr);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:r,register:u}=i,d=S.useId();S.useEffect(()=>{if(n)return u(d)},[n]);const f=S.useCallback(()=>n&&r&&r(d),[d,r,n]);return!s&&r?[!1,f]:[!0]}const dr=n=>n.key||"";function fy(n){const i=[];return S.Children.forEach(n,s=>{S.isValidElement(s)&&i.push(s)}),i}const Cr=({children:n,custom:i,initial:s=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:d="sync",propagate:f=!1,anchorX:h="left"})=>{const[p,m]=cg(f),g=S.useMemo(()=>fy(n),[n]),b=f&&!p?[]:g.map(dr),x=S.useRef(!0),E=S.useRef(g),_=nf(()=>new Map),[D,j]=S.useState(g),[R,C]=S.useState(g);x0(()=>{x.current=!1,E.current=g;for(let B=0;B<R.length;B++){const P=dr(R[B]);b.includes(P)?_.delete(P):_.get(P)!==!0&&_.set(P,!1)}},[R,b.length,b.join("-")]);const O=[];if(g!==D){let B=[...g];for(let P=0;P<R.length;P++){const Z=R[P],K=dr(Z);b.includes(K)||(B.splice(P,0,Z),O.push(Z))}return d==="wait"&&O.length&&(B=O),C(fy(B)),j(g),null}const{forceRender:Y}=S.useContext(ef);return V.jsx(V.Fragment,{children:R.map(B=>{const P=dr(B),Z=f&&!p?!1:g===R||b.includes(P),K=()=>
vendor: 4,491 bytes, line 59
59{if(_.has(P))_.set(P,!0);else return;let tt=!0;_.forEach(ot=>{ot||(tt=!1)}),tt&&(Y==null||Y(),C(E.current),f&&(m==null||m()),r&&r())};return V.jsx(s2,{isPresent:Z,initial:!x.current||s?void 0:!1,custom:i,presenceAffectsLayout:u,mode:d,onExitComplete:Z?void 0:K,anchorX:h,children:B},P)})})},fg=S.createContext({strict:!1}),dy={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"]},yi={};for(const n in dy)yi[n]={isEnabled:i=>dy[n].some(s=>!!i[s])};function o2(n){for(const i in n)yi[i]={...yi[i],...n[i]}}const u2=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 _r(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||u2.has(n)}let dg=n=>!_r(n);function c2(n){typeof n=="function"&&(dg=i=>i.startsWith("on")?!_r(i):n(i))}try{c2(require("@emotion/is-prop-valid").default)}catch{}function f2(n,i,s){const r={};for(const u in n)u==="values"&&typeof n.values=="object"||(dg(u)||s===!0&&_r(u)||!i&&!_r(u)||n.draggable&&u.startsWith("onDrag"))&&(r[u]=n[u]);return r}function d2(n){if(typeof Proxy>"u")return n;const i=new Map,s=(...r)=>n(...r);return new Proxy(s,{get:(r,u)=>u==="create"?n:(i.has(u)||i.set(u,n(u)),i.get(u))})}const Or=S.createContext({});function Nr(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Vl(n){return typeof n=="string"||Array.isArray(n)}const wf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Df=["initial",...wf];function zr(n){return Nr(n.animate)||Df.some(i=>Vl(n[i]))}function hg(n){return!!(zr(n)||n.variants)}function h2(n,i){if(zr(n)){const{initial:s,animate:r}=n;return{initial:s===!1||Vl(s)?s:void 0,animate:Vl(r)?r:void 0}}return n.inherit!==!1?i:{}}function m2(n){const{initial:i,animate:s}=h2(n,S.useContext(Or));return S.useMemo(()=>({initial:i,animate:s}),[hy(i),hy(s)])}function hy(n){return Array.isArray(n)?n.join(" "):n}const p2=Symbol.for("motionComponentSymbol");function fi(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function y2(n,i,s){return S.useCallback(r=>{r&&n.onMount&&n.onMount(r),i&&(r?i.mount(r):i.unmount()),s&&(typeof s=="function"?s(r):fi(s)&&(s.current=r))},[i])}const Cf=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),g2="framerAppearId",mg="data-"+Cf(g2),pg=S.createContext({});function v2(n,i,s,r,u){var D,j;const{visualElement:d}=S.useContext(Or),f=S.useContext(fg),h=S.useContext(Dr),p=S.useContext(Rf).reducedMotion,m=S.useRef(null);r=r||f.renderer,!m.current&&r&&(m.current=r(n,{visualState:i,parent:d,props:s,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:p}));const g=m.current,b=S.useContext(pg);g&&!g.projection&&u&&(g.type==="html"||g.type==="svg")&&b2(m.current,s,u,b);const x=S.useRef(!1);S.useInsertionEffect(()=>{g&&x.current&&g.update(s,h)});const E=s[mg],_=S.useRef(!!E&&!((D=window.MotionHandoffIsComplete)!=null&&D.call(window,E))&&((j=window.MotionHasOptimisedAnimation)==null?void 0:j.call(window,E)));return x0(()=>{g&&(x.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),_f.render(g.render),_.current&&g.animationState&&g.animationState.animateChanges())}),S.useEffect(()=>{g&&(!_.current&&g.animationState&&g.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)==null||R.call(window,E)}),_.current=!1))}),g}function b2(n,i,s,r){const{layoutId:u,layout:d,drag:f,dragConstraints:h,layoutScroll:p,layoutRoot:m,layoutCrossfade:g}=i;n.projection=new s(n.latestValues,i["data-framer-portal-id"]?void 0:yg(n.parent)),n.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!f||h&&fi(h),visualElement:n,animationType:typeof d=="str
59ing"?d:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:p,layoutRoot:m})}function yg(n){if(n)return n.options.allowProjection!==!1?n.projection:yg(n.parent)}function x2({preloadedFeatures:n,createVisualElement:i,useRender:s,useVisualState:r,Component:u}){n&&o2(n);function d(h,p){let m;const g={...S.useContext(Rf),...h,layoutId:T2(h)},{isStatic:b}=g,x=m2(h),E=r(h,b);if(!b&&af){S2();const _=E2(g);m=_.MeasureLayout,x.visualElement=v2(u,E,g,i,_.ProjectionNode)}return V.jsxs(Or.Provider,{value:x,children:[m&&x.visualElement?V.jsx(m,{visualElement:x.visualElement,...g}):null,s(u,h,y2(E,x.visualElement,p),E,b,x.visualElement)]})}d.displayName=`motion.${typeof u=="string"?u:`create(${u.displayName??u.name??""})`}`;const f=S.forwardRef(d);return f[p2]=u,f}function T2({layoutId:n}){const i=S.useContext(ef).id;return i&&n!==void 0?i+"-"+n:n}function S2(n,i){S.useContext(fg).strict}function E2(n){const{drag:i,layout:s}=yi;if(!i&&!s)return{};const r={...i,...s};return{MeasureLayout:i!=null&&i.isEnabled(n)||s!=null&&s.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const jl={};function A2(n){for(const i in n)jl[i]=n[i],df(i)&&(jl[i].isCSSVariable=!0)}function gg(n,{layout:i,layoutId:s}){return Ti.has(n)||n.startsWith("origin")||(i||s!==void 0)&&(!!jl[n]||n==="opacity")}const _2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},M2=xi.length;function R2(n,i,s){let r="",u=!0;for(let d=0;d<M2;d++){const f=xi[d],h=n[f];if(h===void 0)continue;let p=!0;if(typeof h=="number"?p=h===(f.startsWith("scale")?1:0):p=parseFloat(h)===0,!p||s){const m=lg(h,Af[f]);if(!p){u=!1;const g=_2[f]||f;r+=`${g}(${m}) `}s&&(i[f]=m)}}return r=r.trim(),s?r=s(i,u?"":r):u&&(r="none"),r}function Of(n,i,s){const{style:r,vars:u,transformOrigin:d}=n;let f=!1,h=!1;for(const p in i){const m=i[p];if(Ti.has(p)){f=!0;continue}else if(df(p)){u[p]=m;continue}else{const g=lg(m,Af[p]);p.startsWith("origin")?(h=!0,d[p]=g):r[p]=g}}if(i.transform||(f||s?r.transform=R2(i,n.transform,s):r.transform&&(r.transform="none")),h){const{originX:p="50%",originY:m="50%",originZ:g=0}=d;r.transformOrigin=`${p} ${m} ${g}`}}const Nf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vg(n,i,s){for(const r in i)!ie(i[r])&&!gg(r,s)&&(n[r]=i[r])}function w2({transformTemplate:n},i){return S.useMemo(()=>{const s=Nf();return Of(s,i,n),Object.assign({},s.vars,s.style)},[i])}function D2(n,i){const s=n.style||{},r={};return vg(r,s,n),Object.assign(r,w2(n,i)),r}function C2(n,i){const s={},r=D2(n,i);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=r,s}const O2={offset:"stroke-dashoffset",array:"stroke-dasharray"},N2={offset:"strokeDashoffset",array:"strokeDasharray"};function z2(n,i,s=1,r=0,u=!0){n.pathLength=1;const d=u?O2:N2;n[d.offset]=lt.transform(-r);const f=lt.transform(i),h=lt.transform(s);n[d.array]=`${f} ${h}`}function bg(n,{attrX:i,attrY:s,attrScale:r,pathLength:u,pathSpacing:d=1,pathOffset:f=0,...h},p,m,g){if(Of(n,h,m),p){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:x}=n;b.transform&&(x.transform=b.transform,delete b.transform),(x.transform||b.transformOrigin)&&(x.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),x.transform&&(x.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete b.transformBox),i!==void 0&&(b.x=i),s!==void 0&&(b.y=s),r!==void 0&&(b.scale=r),u!==void 0&&z2(b,u,d,f,!1)}const xg=()=>({...Nf(),attrs:{}}),Tg=n=>typeof n=="string"&&n.toLowerCase()==="svg";function V2(n,i,s,r){const u=S.useMemo(()=>{const d=xg();return bg(d,i,Tg(r),n.transformTemplate,n.style),{...d.attrs,style:{...d.style}}},[i]);if(n.style){const d={};vg(d,n.style,n),u.style={...d,...u.style}}return u}const j2=["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"];
vendor: 32,129 bytes, line 59
59function zf(n){return typeof n!="string"||n.includes("-")?!1:!!(j2.indexOf(n)>-1||/[A-Z]/u.test(n))}function L2(n=!1){return(s,r,u,{latestValues:d},f)=>{const p=(zf(s)?V2:C2)(r,d,f,s),m=f2(r,typeof s=="string",n),g=s!==S.Fragment?{...m,...p,ref:u}:{},{children:b}=r,x=S.useMemo(()=>ie(b)?b.get():b,[b]);return S.createElement(s,{...g,children:x})}}function my(n){const i=[{},{}];return n==null||n.values.forEach((s,r)=>{i[0][r]=s.get(),i[1][r]=s.getVelocity()}),i}function Vf(n,i,s,r){if(typeof i=="function"){const[u,d]=my(r);i=i(s!==void 0?s:n.custom,u,d)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[u,d]=my(r);i=i(s!==void 0?s:n.custom,u,d)}return i}function br(n){return ie(n)?n.get():n}function U2({scrapeMotionValuesFromProps:n,createRenderState:i},s,r,u){return{latestValues:B2(s,r,u,n),renderState:i()}}const Sg=n=>(i,s)=>{const r=S.useContext(Or),u=S.useContext(Dr),d=()=>U2(n,i,r,u);return s?d():nf(d)};function B2(n,i,s,r){const u={},d=r(n,{});for(const x in d)u[x]=br(d[x]);let{initial:f,animate:h}=n;const p=zr(n),m=hg(n);i&&m&&!p&&n.inherit!==!1&&(f===void 0&&(f=i.initial),h===void 0&&(h=i.animate));let g=s?s.initial===!1:!1;g=g||f===!1;const b=g?h:f;if(b&&typeof b!="boolean"&&!Nr(b)){const x=Array.isArray(b)?b:[b];for(let E=0;E<x.length;E++){const _=Vf(n,x[E]);if(_){const{transitionEnd:D,transition:j,...R}=_;for(const C in R){let O=R[C];if(Array.isArray(O)){const Y=g?O.length-1:0;O=O[Y]}O!==null&&(u[C]=O)}for(const C in D)u[C]=D[C]}}}return u}function jf(n,i,s){var d;const{style:r}=n,u={};for(const f in r)(ie(r[f])||i.style&&ie(i.style[f])||gg(f,n)||((d=s==null?void 0:s.getValue(f))==null?void 0:d.liveStyle)!==void 0)&&(u[f]=r[f]);return u}const H2={useVisualState:Sg({scrapeMotionValuesFromProps:jf,createRenderState:Nf})};function Eg(n,i,s){const r=jf(n,i,s);for(const u in n)if(ie(n[u])||ie(i[u])){const d=xi.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[d]=n[u]}return r}const q2={useVisualState:Sg({scrapeMotionValuesFromProps:Eg,createRenderState:xg})};function Y2(n,i){return function(r,{forwardMotionProps:u}={forwardMotionProps:!1}){const f={...zf(r)?q2:H2,preloadedFeatures:n,useRender:L2(u),createVisualElement:i,Component:r};return x2(f)}}function Ll(n,i,s){const r=n.getProps();return Vf(r,i,s!==void 0?s:r.custom,n)}const jc=n=>Array.isArray(n);function k2(n,i,s){n.hasValue(i)?n.getValue(i).set(s):n.addValue(i,pi(s))}function G2(n){return jc(n)?n[n.length-1]||0:n}function X2(n,i){const s=Ll(n,i);let{transitionEnd:r={},transition:u={},...d}=s||{};d={...d,...r};for(const f in d){const h=G2(d[f]);k2(n,f,h)}}function K2(n){return!!(ie(n)&&n.add)}function Lc(n,i){const s=n.getValue("willChange");if(K2(s))return s.add(i);if(!s&&Tn.WillChange){const r=new Tn.WillChange("auto");n.addValue("willChange",r),r.add(i)}}function Ag(n){return n.props[mg]}const Q2=n=>n!==null;function P2(n,{repeat:i,repeatType:s="loop"},r){const u=n.filter(Q2),d=i&&s!=="loop"&&i%2===1?0:u.length-1;return u[d]}const Z2={type:"spring",stiffness:500,damping:25,restSpeed:10},$2=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),J2={type:"keyframes",duration:.8},F2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W2=(n,{keyframes:i})=>i.length>2?J2:Ti.has(n)?n.startsWith("scale")?$2(i[1]):Z2:F2;function I2({when:n,delay:i,delayChildren:s,staggerChildren:r,staggerDirection:u,repeat:d,repeatType:f,repeatDelay:h,from:p,elapsed:m,...g}){return!!Object.keys(g).length}const Lf=(n,i,s,r={},u,d)=>f=>{const h=Ef(r,n)||{},p=h.delay||r.delay||0;let{elapsed:m=0}=r;m=m-Je(p);const g={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...h,delay:-m,onUpdate:x=>{i.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{f(),h.onComplete&&h.onComplete()},name:n,motionValue:i,element:d?void 0:u};I2(h)||Object.assign(g,W2(n,g)),g.duration&&(g.duration=Je(g.duration)),g.repeatDelay&&(g.repeatDelay=Je(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let b=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(b=!0)),(Tn.instantAnimations||Tn.skipAnimations)&&(b=!0,g.duration=0,g.delay=0),g.allowFlatten=!h.type&&!h.ease,b&&!d&&i.get()!==void 0){const x=P2(g.keyframes,h);if(x!==void 0){Vt.update(()=>{g.onUpdate(x),g.onComplete()});return}}return h.isSync?new xf(g):new zS(g)};function tE({protectedKeys:n,needsAnimating:i},s){const r=n.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,r}function _g(n,i,{delay:s=0,transitionOverride:r,type:u}={}){let{transition:d=n.getDefaultTransition(),transitionEnd:f,...h}=i;r&&(d=r);const p=[],m=u&&n.animationState&&n.animationState.getState()[u];for(const g in h){const b=n.getValue(g,n.latestValues[g]??null),x=h[g];if(x===void 0||m&&tE(m,g))continue;const E={delay:s,...Ef(d||{},g)},_=b.get();if(_!==void 0&&!b.isAnimating&&!Array.isArray(x)&&x===_&&!E.velocity)continue;let D=!1;if(window.MotionHandoffAnimation){const R=Ag(n);if(R){const C=window.MotionHandoffAnimation(R,g,Vt);C!==null&&(E.startTime=C,D=!0)}}Lc(n,g),b.start(Lf(g,b,x,n.shouldReduceMotion&&tg.has(g)?{type:!1}:E,n,D));const j=b.animation;j&&p.push(j)}return f&&Promise.all(p).then(()=>{Vt.update(()=>{f&&X2(n,f)})}),p}function Uc(n,i,s={}){var p;const r=Ll(n,i,s.type==="exit"?(p=n.presenceContext)==null?void 0:p.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(u=s.transitionOverride);const d=r?()=>Promise.all(_g(n,r,s)):()=>Promise.resolve(),f=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:b,staggerDirection:x}=u;return eE(n,i,g+m,b,x,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[m,g]=h==="beforeChildren"?[d,f]:[f,d];return m().then(()=>g())}else return Promise.all([d(),f(s.delay)])}function eE(n,i,s=0,r=0,u=1,d){const f=[],h=(n.variantChildren.size-1)*r,p=u===1?(m=0)=>m*r:(m=0)=>h-m*r;return Array.from(n.variantChildren).sort(nE).forEach((m,g)=>{m.notify("AnimationStart",i),f.push(Uc(m,i,{...d,delay:s+p(g)}).then(()=>m.notify("AnimationComplete",i)))}),Promise.all(f)}function nE(n,i){return n.sortNodePosition(i)}function aE(n,i,s={}){n.notify("AnimationStart",i);let r;if(Array.isArray(i)){const u=i.map(d=>Uc(n,d,s));r=Promise.all(u)}else if(typeof i=="string")r=Uc(n,i,s);else{const u=typeof i=="function"?Ll(n,i,s.custom):i;r=Promise.all(_g(n,u,s))}return r.then(()=>{n.notify("AnimationComplete",i)})}function Mg(n,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==n.length)return!1;for(let r=0;r<s;r++)if(i[r]!==n[r])return!1;return!0}const iE=Df.length;function Rg(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?Rg(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const i={};for(let s=0;s<iE;s++){const r=Df[s],u=n.props[r];(Vl(u)||u===!1)&&(i[r]=u)}return i}const lE=[...wf].reverse(),sE=wf.length;function rE(n){return i=>Promise.all(i.map(({animation:s,options:r})=>aE(n,s,r)))}function oE(n){let i=rE(n),s=py(),r=!0;const u=p=>(m,g)=>{var x;const b=Ll(n,g,p==="exit"?(x=n.presenceContext)==null?void 0:x.custom:void 0);if(b){const{transition:E,transitionEnd:_,...D}=b;m={...m,...D,..._}}return m};function d(p){i=p(n)}function f(p){const{props:m}=n,g=Rg(n.parent)||{},b=[],x=new Set;let E={},_=1/0;for(let j=0;j<sE;j++){const R=lE[j],C=s[R],O=m[R]!==void 0?m[R]:g[R],Y=Vl(O),B=R===p?C.isActive:null;B===!1&&(_=j);let P=O===g[R]&&O!==m[R]&&Y;if(P&&r&&n.manuallyAnimateOnMount&&(P=!1),C.protectedKeys={...E},!C.isActive&&B===null||!O&&!C.prevProp||Nr(O)||typeof O=="boolean")continue;const Z=uE(C.prevProp,O);let K=Z||R===p&&C.isActive&&!P&&Y||j>_&&Y,tt=!1;const ot=Array.isArray(O)?O:[O];let vt=ot.reduce(u(R),{});B===!1&&(vt={});const{prevResolvedValues:_t={}}=C,oe={..._t,...vt},_e=Q=>{K=!0,x.has(Q)&&(tt=!0,x.delete(Q)),C.needsAnimating[Q]=!0;const F=n.getValue(Q);F&&(F.liveStyle=!1)};for(const Q in oe){const F=vt[Q],yt=_t[Q];if(E.hasOwnProperty(Q))continue;let A=!1;jc(F)&&jc(yt)?A=!Mg(F,yt):A=F!==yt,A?F!=null?_e(Q):x.add(Q):F!==void 0&&x.has(Q)?_e(Q):C.protectedKeys[Q]=!0}C.prevProp=O,C.prevResolvedValues=vt,C.isActive&&(E={...E,...vt}),r&&n.blockInitialAnimation&&(K=!1),K&&(!(P&&Z)||tt)&&b.push(...ot.map(Q=>({animation:Q,options:{type:R}})))}if(x.size){const j={};if(typeof m.initial!="boolean"){const R=Ll(n,Array.isArray(m.initial)?m.initial[0]:m.initial);R&&R.transition&&(j.transition=R.transition)}x.forEach(R=>{const C=n.getBaseTarget(R),O=n.getValue(R);O&&(O.liveStyle=!0),j[R]=C??null}),b.push({animation:j})}let D=!!b.length;return r&&(m.initial===!1||m.initial===m.animate)&&!n.manuallyAnimateOnMount&&(D=!1),r=!1,D?i(b):Promise.resolve()}function h(p,m){var b;if(s[p].isActive===m)return Promise.resolve();(b=n.variantChildren)==null||b.forEach(x=>{var E;return(E=x.animationState)==null?void 0:E.setActive(p,m)}),s[p].isActive=m;const g=f(p);for(const x in s)s[x].protectedKeys={};return g}return{animateChanges:f,setActive:h,setAnimateFunction:d,getState:()=>s,reset:()=>{s=py(),r=!0}}}function uE(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!Mg(i,n):!1}function ga(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function py(){return{animate:ga(!0),whileInView:ga(),whileHover:ga(),whileTap:ga(),whileDrag:ga(),whileFocus:ga(),exit:ga()}}class Wn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class cE extends Wn{constructor(i){super(i),i.animationState||(i.animationState=oE(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Nr(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)==null||i.call(this)}}let fE=0;class dE extends Wn{constructor(){super(...arguments),this.id=fE++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const u=this.node.animationState.setActive("exit",!i);s&&!i&&u.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const hE={animation:{Feature:cE},exit:{Feature:dE}};function Ul(n,i,s,r={passive:!0}){return n.addEventListener(i,s,r),()=>n.removeEventListener(i,s)}function Kl(n){return{point:{x:n.pageX,y:n.pageY}}}const mE=n=>i=>Mf(i)&&n(i,Kl(i));function Rl(n,i,s,r){return Ul(n,i,mE(s),r)}function wg({top:n,left:i,right:s,bottom:r}){return{x:{min:i,max:s},y:{min:n,max:r}}}function pE({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function yE(n,i){if(!i)return n;const s=i({x:n.left,y:n.top}),r=i({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:r.y,right:r.x}}const Dg=1e-4,gE=1-Dg,vE=1+Dg,Cg=.01,bE=0-Cg,xE=0+Cg;function se(n){return n.max-n.min}function TE(n,i,s){return Math.abs(n-i)<=s}function yy(n,i,s,r=.5){n.origin=r,n.originPoint=Nt(i.min,i.max,n.origin),n.scale=se(s)/se(i),n.translate=Nt(s.min,s.max,n.origin)-n.originPoint,(n.scale>=gE&&n.scale<=vE||isNaN(n.scale))&&(n.scale=1),(n.translate>=bE&&n.translate<=xE||isNaN(n.translate))&&(n.translate=0)}function wl(n,i,s,r){yy(n.x,i.x,s.x,r?r.originX:void 0),yy(n.y,i.y,s.y,r?r.originY:void 0)}function gy(n,i,s){n.min=s.min+i.min,n.max=n.min+se(i)}function SE(n,i,s){gy(n.x,i.x,s.x),gy(n.y,i.y,s.y)}function vy(n,i,s){n.min=i.min-s.min,n.max=n.min+se(i)}function Dl(n,i,s){vy(n.x,i.x,s.x),vy(n.y,i.y,s.y)}const by=()=>({translate:0,scale:1,origin:0,originPoint:0}),di=()=>({x:by(),y:by()}),xy=()=>({min:0,max:0}),qt=()=>({x:xy(),y:xy()});function Le(n){return[n("x"),n("y")]}function hc(n){return n===void 0||n===1}function Bc({scale:n,scaleX:i,scaleY:s}){return!hc(n)||!hc(i)||!hc(s)}function va(n){return Bc(n)||Og(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Og(n){return Ty(n.x)||Ty(n.y)}function Ty(n){return n&&n!=="0%"}function Mr(n,i,s){const r=n-s,u=i*r;return s+u}function Sy(n,i,s,r,u){return u!==void 0&&(n=Mr(n,u,r)),Mr(n,s,r)+i}function Hc(n,i=0,s=1,r,u){n.min=Sy(n.min,i,s,r,u),n.max=Sy(n.max,i,s,r,u)}function Ng(n,{x:i,y:s}){Hc(n.x,i.translate,i.scale,i.originPoint),Hc(n.y,s.translate,s.scale,s.originPoint)}const Ey=.999999999999,Ay=1.0000000000001;function EE(n,i,s,r=!1){const u=s.length;if(!u)return;i.x=i.y=1;let d,f;for(let h=0;h<u;h++){d=s[h],f=d.projectionDelta;const{visualElement:p}=d.options;p&&p.props.style&&p.props.style.display==="contents"||(r&&d.options.layoutScroll&&d.scroll&&d!==d.root&&mi(n,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,Ng(n,f)),r&&va(d.latestValues)&&mi(n,d.latestValues))}i.x<Ay&&i.x>Ey&&(i.x=1),i.y<Ay&&i.y>Ey&&(i.y=1)}function hi(n,i){n.min=n.min+i,n.max=n.max+i}function _y(n,i,s,r,u=.5){const d=Nt(n.min,n.max,u);Hc(n,i,s,d,r)}function mi(n,i){_y(n.x,i.x,i.scaleX,i.scale,i.originX),_y(n.y,i.y,i.scaleY,i.scale,i.originY)}function zg(n,i){return wg(yE(n.getBoundingClientRect(),i))}function AE(n,i,s){const r=zg(n,s),{scroll:u}=i;return u&&(hi(r.x,u.offset.x),hi(r.y,u.offset.y)),r}const Vg=({current:n})=>n?n.ownerDocument.defaultView:null,My=(n,i)=>Math.abs(n-i);function _E(n,i){const s=My(n.x,i.x),r=My(n.y,i.y);return Math.sqrt(s**2+r**2)}class jg{constructor(i,s,{transformPagePoint:r,contextWindow:u,dragSnapToOrigin:d=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=pc(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,E=_E(b.offset,{x:0,y:0})>=3;if(!x&&!E)return;const{point:_}=b,{timestamp:D}=te;this.history.push({..._,timestamp:D});const{onStart:j,onMove:R}=this.handlers;x||(j&&j(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,b)},this.handlePointerMove=(b,x)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=mc(x,this.transformPagePoint),Vt.update(this.updatePoint,!0)},this.handlePointerUp=(b,x)=>{this.end();const{onEnd:E,onSessionEnd:_,resumeAnimation:D}=this.handlers;if(this.dragSnapToOrigin&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=pc(b.type==="pointercancel"?this.lastMoveEventInfo:mc(x,this.transformPagePoint),this.history);this.startEvent&&E&&E(b,j),_&&_(b,j)},!Mf(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=r,this.contextWindow=u||window;const f=Kl(i),h=mc(f,this.transformPagePoint),{point:p}=h,{timestamp:m}=te;this.history=[{...p,timestamp:m}];const{onSessionStart:g}=s;g&&g(i,pc(h,this.history)),this.removeListeners=kl(Rl(this.contextWindow,"pointermove",this.handlePointerMove),Rl(this.contextWindow,"pointerup",this.handlePointerUp),Rl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),Jn(this.updatePoint)}}function mc(n,i){return i?{point:i(n.point)}:n}function Ry(n,i){return{x:n.x-i.x,y:n.y-i.y}}function pc({point:n},i){return{point:n,delta:Ry(n,Lg(i)),offset:Ry(n,ME(i)),velocity:RE(i,.1)}}function ME(n){return n[0]}function Lg(n){return n[n.length-1]}function RE(n,i){if(n.length<2)return{x:0,y:0};let s=n.length-1,r=null;const u=Lg(n);for(;s>=0&&(r=n[s],!(u.timestamp-r.timestamp>Je(i)));)s--;if(!r)return{x:0,y:0};const d=Fe(u.timestamp-r.timestamp);if(d===0)return{x:0,y:0};const f={x:(u.x-r.x)/d,y:(u.y-r.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function wE(n,{min:i,max:s},r){return i!==void 0&&n<i?n=r?Nt(i,n,r.min):Math.max(n,i):s!==void 0&&n>s&&(n=r?Nt(s,n,r.max):Math.min(n,s)),n}function wy(n,i,s){return{min:i!==void 0?n.min+i:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function DE(n,{top:i,left:s,bottom:r,right:u}){return{x:wy(n.x,s,u),y:wy(n.y,i,r)}}function Dy(n,i){let s=i.min-n.min,r=i.max-n.max;return i.max-i.min<n.max-n.min&&([s,r]=[r,s]),{min:s,max:r}}function CE(n,i){return{x:Dy(n.x,i.x),y:Dy(n.y,i.y)}}function OE(n,i){let s=.5;const r=se(n),u=se(i);return u>r?s=Ol(i.min,i.max-r,n.min):r>u&&(s=Ol(n.min,n.max-u,i.min)),xn(0,1,s)}function NE(n,i){const s={};return i.min!==void 0&&(s.min=i.min-n.min),i.max!==void 0&&(s.max=i.max-n.min),s}const qc=.35;function zE(n=qc){return n===!1?n=0:n===!0&&(n=qc),{x:Cy(n,"left","right"),y:Cy(n,"top","bottom")}}function Cy(n,i,s){return{min:Oy(n,i),max:Oy(n,s)}}function Oy(n,i){return typeof n=="number"?n:n[i]||0}const VE=new WeakMap;class jE{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qt(),this.visualElement=i}start(i,{snapToCursor:s=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const u=g=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Kl(g).point)},d=(g,b)=>{const{drag:x,dragPropagation:E,onDragStart:_}=this.getProps();if(x&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$S(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Le(j=>{let R=this.getAxisMotionValue(j).get()||0;if(We.test(R)){const{projection:C}=this.visualElement;if(C&&C.layout){const O=C.layout.layoutBox[j];O&&(R=se(O)*(parseFloat(R)/100))}}this.originPoint[j]=R}),_&&Vt.postRender(()=>_(g,b)),Lc(this.visualElement,"transform");const{animationState:D}=this.visualElement;D&&D.setActive("whileDrag",!0)},f=(g,b)=>{const{dragPropagation:x,dragDirectionLock:E,onDirectionLock:_,onDrag:D}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:j}=b;if(E&&this.currentDirection===null){this.currentDirection=LE(j),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",b.point,j),this.updateAxis("y",b.point,j),this.visualElement.render(),D&&D(g,b)},h=(g,b)=>this.stop(g,b),p=()=>Le(g=>{var b;return this.getAnimationState(g)==="paused"&&((b=this.getAxisMotionValue(g).animation)==null?void 0:b.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new jg(i,{onSessionStart:u,onStart:d,onMove:f,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Vg(this.visualElement)})}stop(i,s){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&Vt.postRender(()=>d(i,s))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,r){const{drag:u}=this.getProps();if(!r||!hr(i,u,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(f=wE(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:i,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,u=this.constraints;i&&fi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=DE(r.layoutBox,i):this.constraints=!1,this.elastic=zE(s),u!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Le(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=NE(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!fi(i))return!1;const r=i.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const d=AE(r,u.root,this.visualElement.getTransformPagePoint());let f=CE(u.layout.layoutBox,d);if(s){const h=s(pE(f));this.hasMutatedConstraints=!!h,h&&(f=wg(h))}return f}startAnimation(i){const{drag:s,dragMomentum:r,dragElastic:u,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),p=this.constraints||{},m=Le(g=>{if(!hr(g,s,this.currentDirection))return;let b=p&&p[g]||{};f&&(b={min:0,max:0});const x=u?200:1e6,E=u?40:1e7,_={type:"inertia",velocity:r?i[g]:0,bounceStiffness:x,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(g,_)});return Promise.all(m).then(h)}startAxisValueAnimation(i,s){const r=this.getAxisMotionValue(i);return Lc(this.visualElement,i),r.start(Lf(i,r,0,s,this.visualElement,!1))}stopAnimation(){Le(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){Le(i=>{var s;return(s=this.getAxisMotionValue(i).animation)==null?void 0:s.pause()})}getAnimationState(i){var s;return(s=this.getAxisMotionValue(i).animation)==null?void 0:s.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),u=r[s];return u||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){Le(s=>{const{drag:r}=this.getProps();if(!hr(s,r,this.currentDirection))return;const{projection:u}=this.visualElement,d=this.getAxisMotionValue(s);if(u&&u.layout){const{min:f,max:h}=u.layout.layoutBox[s];d.set(i[s]-Nt(f,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:r}=this.visualElement;if(!fi(s)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Le(f=>{const h=this.getAxisMotionValue(f);if(h&&this.constraints!==!1){const p=h.get();u[f]=OE({min:p,max:p},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Le(f=>{if(!hr(f,i,null))return;const h=this.getAxisMotionValue(f),{min:p,max:m}=this.constraints[f];h.set(Nt(p,m,u[f]))})}addListeners(){if(!this.visualElement.current)return;VE.set(this.visualElement,this);const i=this.visualElement.current,s=Rl(i,"pointerdown",p=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(p)}),r=()=>{const{dragConstraints:p}=this.getProps();fi(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,d=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Vt.read(r);const f=Ul(window,"resize",()=>this.scalePositionWithinConstraints()),h=u.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(Le(g=>{const b=this.getAxisMotionValue(g);b&&(this.originPoint[g]+=p[g].translate,b.set(b.get()+p[g].translate))}),this.visualElement.render())});return()=>{f(),s(),d(),h&&h()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:d=!1,dragElastic:f=qc,dragMomentum:h=!0}=i;return{...i,drag:s,dragDirectionLock:r,dragPropagation:u,dragConstraints:d,dragElastic:f,dragMomentum:h}}}function hr(n,i,s){return(i===!0||i===n)&&(s===null||s===n)}function LE(n,i=10){let s=null;return Math.abs(n.y)>i?s="y":Math.abs(n.x)>i&&(s="x"),s}class UE extends Wn{constructor(i){super(i),this.removeGroupControls=Ue,this.removeListeners=Ue,this.controls=new jE(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ny=n=>(i,s)=>{n&&Vt.postRender(()=>n(i,s))};class BE extends Wn{constructor(){super(...arguments),this.removePointerDownListener=Ue}onPointerDown(i){this.session=new jg(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vg(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:Ny(i),onStart:Ny(s),onMove:r,onEnd:(d,f)=>{delete this.session,u&&Vt.postRender(()=>u(d,f))}}}mount(){this.removePointerDownListener=Rl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zy(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const El={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(lt.test(n))n=parseFloat(n);else return n;const s=zy(n,i.target.x),r=zy(n,i.target.y);return`${s}% ${r}%`}},HE={correct:(n,{treeScale:i,projectionDelta:s})=>{const r=n,u=Fn.parse(n);if(u.length>5)return r;const d=Fn.createTransformer(n),f=typeof u[0]!="number"?1:0,h=s.x.scale*i.x,p=s.y.scale*i.y;u[0+f]/=h,u[1+f]/=p;const m=Nt(h,p,.5);return typeof u[2+f]=="number"&&(u[2+f]/=m),typeof u[3+f]=="number"&&(u[3+f]/=m),d(u)}};class qE extends S.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r,layoutId:u}=this.props,{projection:d}=i;A2(YE),d&&(s.group&&s.group.add(d),r&&r.register&&u&&r.register(d),d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),xr.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:r,drag:u,isPresent:d}=this.props,{projection:f}=r;return f&&(f.isPresent=d,u||i.layoutDependency!==s||s===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||Vt.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),_f.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:r}=this.props,{projection:u}=i;u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Ug(n){const[i,s]=cg(),r=S.useContext(ef);return V.jsx(qE,{...n,layoutGroup:r,switchLayoutGroup:S.useContext(pg),isPresent:i,safeToRemove:s})}const YE={borderRadius:{...El,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:El,borderTopRightRadius:El,borderBottomLeftRadius:El,borderBottomRightRadius:El,boxShadow:HE};function kE(n,i,s){const r=ie(n)?n:pi(n);return r.start(Lf("",r,i,s)),r.animation}const GE=(n,i)=>n.depth-i.depth;class XE{constructor(){this.children=[],this.isDirty=!1}add(i){lf(this.children,i),this.isDirty=!0}remove(i){sf(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(GE),this.isDirty=!1,this.children.forEach(i)}}function KE(n,i){const s=me.now(),r=({timestamp:u})=>{const d=u-s;d>=i&&(Jn(r),n(d-i))};return Vt.setup(r,!0),()=>Jn(r)}const Bg=["TopLeft","TopRight","BottomLeft","BottomRight"],QE=Bg.length,Vy=n=>typeof n=="string"?parseFloat(n):n,jy=n=>typeof n=="number"||lt.test(n);function PE(n,i,s,r,u,d){u?(n.opacity=Nt(0,s.opacity??1,ZE(r)),n.opacityExit=Nt(i.opacity??1,0,$E(r))):d&&(n.opacity=Nt(i.opacity??1,s.opacity??1,r));for(let f=0;f<QE;f++){const h=`border${Bg[f]}Radius`;let p=Ly(i,h),m=Ly(s,h);if(p===void 0&&m===void 0)continue;p||(p=0),m||(m=0),p===0||m===0||jy(p)===jy(m)?(n[h]=Math.max(Nt(Vy(p),Vy(m),r),0),(We.test(m)||We.test(p))&&(n[h]+="%")):n[h]=m}(i.rotate||s.rotate)&&(n.rotate=Nt(i.rotate||0,s.rotate||0,r))}function Ly(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const ZE=Hg(0,.5,O0),$E=Hg(.5,.95,Ue);function Hg(n,i,s){return r=>r<n?0:r>i?1:s(Ol(n,i,r))}function Uy(n,i){n.min=i.min,n.max=i.max}function je(n,i){Uy(n.x,i.x),Uy(n.y,i.y)}function By(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}function Hy(n,i,s,r,u){return n-=i,n=Mr(n,1/s,r),u!==void 0&&(n=Mr(n,1/u,r)),n}function JE(n,i=0,s=1,r=.5,u,d=n,f=n){if(We.test(i)&&(i=parseFloat(i),i=Nt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let h=Nt(d.min,d.max,r);n===d&&(h-=i),n.min=Hy(n.min,i,s,h,u),n.max=Hy(n.max,i,s,h,u)}function qy(n,i,[s,r,u],d,f){JE(n,i[s],i[r],i[u],i.scale,d,f)}const FE=["x","scaleX","originX"],WE=["y","scaleY","originY"];function Yy(n,i,s,r){qy(n.x,i,FE,s?s.x:void 0,r?r.x:void 0),qy(n.y,i,WE,s?s.y:void 0,r?r.y:void 0)}function ky(n){return n.translate===0&&n.scale===1}function qg(n){return ky(n.x)&&ky(n.y)}function Gy(n,i){return n.min===i.min&&n.max===i.max}function IE(n,i){return Gy(n.x,i.x)&&Gy(n.y,i.y)}function Xy(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function Yg(n,i){return Xy(n.x,i.x)&&Xy(n.y,i.y)}function Ky(n){return se(n.x)/se(n.y)}function Qy(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}class tA{constructor(){this.members=[]}add(i){lf(this.members,i),i.scheduleRender()}remove(i){if(sf(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(u=>i===u);if(s===0)return!1;let r;for(let u=s;u>=0;u--){const d=this.members[u];if(d.isPresent!==!1){r=d;break}}return r?(this.promote(r),!0):!1}promote(i,s){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender(),i.resumeFrom=r,s&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:u}=i.options;u===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:r}=i;s.onExitComplete&&s.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function eA(n,i,s){let r="";const u=n.x.translate/i.x,d=n.y.translate/i.y,f=(s==null?void 0:s.z)||0;if((u||d||f)&&(r=`translate3d(${u}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:m,rotate:g,rotateX:b,rotateY:x,skewX:E,skewY:_}=s;m&&(r=`perspective(${m}px) ${r}`),g&&(r+=`rotate(${g}deg) `),b&&(r+=`rotateX(${b}deg) `),x&&(r+=`rotateY(${x}deg) `),E&&(r+=`skewX(${E}deg) `),_&&(r+=`skewY(${_}deg) `)}const h=n.x.scale*i.x,p=n.y.scale*i.y;return(h!==1||p!==1)&&(r+=`scale(${h}, ${p})`),r||"none"}const yc=["","X","Y","Z"],nA={visibility:"hidden"},aA=1e3;let iA=0;function gc(n,i,s,r){const{latestValues:u}=i;u[n]&&(s[n]=u[n],i.setStaticValue(n,0),r&&(r[n]=0))}function kg(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const s=Ag(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Vt,!(u||d))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&kg(r)}function Gg({attachResizeListener:n,defaultParent:i,measureScroll:s,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(f={},h=i==null?void 0:i()){this.id=iA++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 4,110 bytes, line 59
59{this.projectionUpdateScheduled=!1,this.nodes.forEach(rA),this.nodes.forEach(dA),this.nodes.forEach(hA),this.nodes.forEach(oA)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new XE)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new uf),this.eventHandlers.get(f).add(h)}notifyListeners(f,...h){const p=this.eventHandlers.get(f);p&&p.notify(...h)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=ug(f)&&!e2(f),this.instance=f;const{layoutId:h,layout:p,visualElement:m}=this.options;if(m&&!m.current&&m.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||h)&&(this.isLayoutDirty=!0),n){let g;const b=()=>this.root.updateBlockedByResize=!1;n(f,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=KE(b,250),xr.hasAnimatedSinceResize&&(xr.hasAnimatedSinceResize=!1,this.nodes.forEach(Zy))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&m&&(h||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:b,hasRelativeLayoutChanged:x,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||m.getDefaultTransition()||vA,{onLayoutAnimationStart:D,onLayoutAnimationComplete:j}=m.getProps(),R=!this.targetLayout||!Yg(this.targetLayout,E),C=!b&&x;if(this.options.layoutRoot||this.resumeFrom||C||b&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...Ef(_,"layout"),onPlay:D,onComplete:j};(m.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(g,C)}else b||Zy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Jn(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(mA),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const b=this.path[g];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:p}=this.options;if(h===void 0&&!p)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Py);return}this.isUpdating||this.nodes.forEach(cA),this.isUpdating=!1,this.nodes.forEach(fA),this.nodes.forEach(lA),this.nodes.forEach(sA),this.clearAllSnapshots();const h=me.now();te.delta=xn(0,1e3/60,h-te.timestamp),te.timestamp=h,te.isProcessing=!0,rc.update.process(te),rc.preRender.process(te),rc.render.process(te),te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_f.read(this.scheduleUpdate))}
vendor: 29,282 bytes, line 59
59clearAllSnapshots(){this.nodes.forEach(uA),this.sharedNodes.forEach(pA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Vt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Vt.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 p=0;p<this.path.length;p++)this.path[p].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(h=!1),h&&this.instance){const p=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:p,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!u)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!qg(this.projectionDelta),p=this.getTransformTemplate(),m=p?p(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;f&&this.instance&&(h||va(this.latestValues)||g)&&(u(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const h=this.measurePageBox();let p=this.removeElementScroll(h);return f&&(p=this.removeTransform(p)),bA(p),{animationId:this.root.animationId,measuredBox:h,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:f}=this.options;if(!f)return qt();const h=f.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(xA))){const{scroll:g}=this.root;g&&(hi(h.x,g.offset.x),hi(h.y,g.offset.y))}return h}removeElementScroll(f){var p;const h=qt();if(je(h,f),(p=this.scroll)!=null&&p.wasRoot)return h;for(let m=0;m<this.path.length;m++){const g=this.path[m],{scroll:b,options:x}=g;g!==this.root&&b&&x.layoutScroll&&(b.wasRoot&&je(h,f),hi(h.x,b.offset.x),hi(h.y,b.offset.y))}return h}applyTransform(f,h=!1){const p=qt();je(p,f);for(let m=0;m<this.path.length;m++){const g=this.path[m];!h&&g.options.layoutScroll&&g.scroll&&g!==g.root&&mi(p,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),va(g.latestValues)&&mi(p,g.latestValues)}return va(this.latestValues)&&mi(p,this.latestValues),p}removeTransform(f){const h=qt();je(h,f);for(let p=0;p<this.path.length;p++){const m=this.path[p];if(!m.instance||!va(m.latestValues))continue;Bc(m.latestValues)&&m.updateSnapshot();const g=qt(),b=m.measurePageBox();je(g,b),Yy(h,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,g)}return va(this.latestValues)&&Yy(h,this.latestValues),h}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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(f=!1){var x;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(f||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:b}=this.options;if(!(!this.layout||!(g||b))){if(this.resolvedRelativeTargetAt=te.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),Dl(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),SE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):je(this.target,this.layout.layoutBox),Ng(this.target,this.targetDelta)):je(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),Dl(this.relativeTargetOrigin,this.target,E.target),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Bc(this.parent.latestValues)||Og(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var _;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let p=!0;if((this.isProjectionDirty||(_=this.parent)!=null&&_.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===te.timestamp&&(p=!1),p)return;const{layout:m,layoutId:g}=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||g))return;je(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,x=this.treeScale.y;EE(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=qt());const{target:E}=f;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(By(this.prevProjectionDelta.x,this.projectionDelta.x),By(this.prevProjectionDelta.y,this.projectionDelta.y)),wl(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==x||!Qy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),f){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=di(),this.projectionDelta=di(),this.projectionDeltaWithTransform=di()}setAnimationOrigin(f,h=!1){const p=this.snapshot,m=p?p.latestValues:{},g={...this.latestValues},b=di();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const x=qt(),E=p?p.source:void 0,_=this.layout?this.layout.source:void 0,D=E!==_,j=this.getStack(),R=!j||j.members.length<=1,C=!!(D&&!R&&this.options.crossfade===!0&&!this.path.some(gA));this.animationProgress=0;let O;this.mixTargetDelta=Y=>{const B=Y/1e3;$y(b.x,f.x,B),$y(b.y,f.y,B),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dl(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yA(this.relativeTarget,this.relativeTargetOrigin,x,B),O&&IE(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=qt()),je(O,this.relativeTarget)),D&&(this.animationValues=g,PE(g,m,this.latestValues,B,C,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=B},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var h,p,m;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(m=(p=this.resumingFrom)==null?void 0:p.currentAnimation)==null||m.stop(),this.pendingAnimation&&(Jn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vt.update(()=>{xr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pi(0)),this.currentAnimation=kE(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(aA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:h,target:p,layout:m,latestValues:g}=f;if(!(!h||!p||!m)){if(this!==f&&this.layout&&m&&Xg(this.options.animationType,this.layout.layoutBox,m.layoutBox)){p=this.target||qt();const b=se(this.layout.layoutBox.x);p.x.min=f.target.x.min,p.x.max=p.x.min+b;const x=se(this.layout.layoutBox.y);p.y.min=f.target.y.min,p.y.max=p.y.min+x}je(h,p),mi(h,g),wl(this.projectionDeltaWithTransform,this.layoutCorrected,h,g)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new tA),this.sharedNodes.get(f).add(h);const m=h.options.initialPromotionConfig;h.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(h):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var h;const{layoutId:f}=this.options;return f?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:f}=this.options;return f?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:h,preserveFollowOpacity:p}={}){const m=this.getStack();m&&m.promote(this,p),f&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let h=!1;const{latestValues:p}=f;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(h=!0),!h)return;const m={};p.z&&gc("z",f,m,this.animationValues);for(let g=0;g<yc.length;g++)gc(`rotate${yc[g]}`,f,m,this.animationValues),gc(`skew${yc[g]}`,f,m,this.animationValues);f.render();for(const g in m)f.setStaticValue(g,m[g]),this.animationValues&&(this.animationValues[g]=m[g]);f.scheduleRender()}getProjectionStyles(f){if(!this.instance||this.isSVG)return;if(!this.isVisible)return nA;const h={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=br(f==null?void 0:f.pointerEvents)||"",h.transform=p?p(this.latestValues,""):"none",h;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=br(f==null?void 0:f.pointerEvents)||""),this.hasProjected&&!va(this.latestValues)&&(E.transform=p?p({},""):"none",this.hasProjected=!1),E}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),h.transform=eA(this.projectionDeltaWithTransform,this.treeScale,g),p&&(h.transform=p(g,h.transform));const{x:b,y:x}=this.projectionDelta;h.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,m.animationValues?h.opacity=m===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:h.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const E in jl){if(g[E]===void 0)continue;const{correct:_,applyTo:D,isCSSVariable:j}=jl[E],R=h.transform==="none"?g[E]:_(g[E],m);if(D){const C=D.length;for(let O=0;O<C;O++)h[D[O]]=R}else j?this.options.visualElement.renderState.vars[E]=R:h[E]=R}return this.options.layoutId&&(h.pointerEvents=m===this?br(f==null?void 0:f.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var h;return(h=f.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(Py),this.root.sharedNodes.clear()}}}function lA(n){n.updateLayout()}function sA(n){var s;const i=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=n.layout,{animationType:d}=n.options,f=i.source!==n.layout.source;d==="size"?Le(b=>{const x=f?i.measuredBox[b]:i.layoutBox[b],E=se(x);x.min=r[b].min,x.max=x.min+E}):Xg(d,i.layoutBox,r)&&Le(b=>{const x=f?i.measuredBox[b]:i.layoutBox[b],E=se(r[b]);x.max=x.min+E,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[b].max=n.relativeTarget[b].min+E)});const h=di();wl(h,r,i.layoutBox);const p=di();f?wl(p,n.applyTransform(u,!0),i.measuredBox):wl(p,r,i.layoutBox);const m=!qg(h);let g=!1;if(!n.resumeFrom){const b=n.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:x,layout:E}=b;if(x&&E){const _=qt();Dl(_,i.layoutBox,x.layoutBox);const D=qt();Dl(D,r,E.layoutBox),Yg(_,D)||(g=!0),b.options.layoutRoot&&(n.relativeTarget=D,n.relativeTargetOrigin=_,n.relativeParent=b)}}}n.notifyListeners("didUpdate",{layout:r,snapshot:i,delta:p,layoutDelta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g})}else if(n.isLead()){const{onExitComplete:r}=n.options;r&&r()}n.options.transition=void 0}function rA(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function oA(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function uA(n){n.clearSnapshot()}function Py(n){n.clearMeasurements()}function cA(n){n.isLayoutDirty=!1}function fA(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function Zy(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function dA(n){n.resolveTargetDelta()}function hA(n){n.calcProjection()}function mA(n){n.resetSkewAndRotation()}function pA(n){n.removeLeadSnapshot()}function $y(n,i,s){n.translate=Nt(i.translate,0,s),n.scale=Nt(i.scale,1,s),n.origin=i.origin,n.originPoint=i.originPoint}function Jy(n,i,s,r){n.min=Nt(i.min,s.min,r),n.max=Nt(i.max,s.max,r)}function yA(n,i,s,r){Jy(n.x,i.x,s.x,r),Jy(n.y,i.y,s.y,r)}function gA(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const vA={duration:.45,ease:[.4,0,.1,1]},Fy=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Wy=Fy("applewebkit/")&&!Fy("chrome/")?Math.round:Ue;function Iy(n){n.min=Wy(n.min),n.max=Wy(n.max)}function bA(n){Iy(n.x),Iy(n.y)}function Xg(n,i,s){return n==="position"||n==="preserve-aspect"&&!TE(Ky(i),Ky(s),.2)}function xA(n){var i;return n!==n.root&&((i=n.scroll)==null?void 0:i.wasRoot)}const TA=Gg({attachResizeListener:(n,i)=>Ul(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vc={current:void 0},Kg=Gg({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!vc.current){const n=new TA({});n.mount(window),n.setOptions({layoutScroll:!0}),vc.current=n}return vc.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),SA={pan:{Feature:BE},drag:{Feature:UE,ProjectionNode:Kg,MeasureLayout:Ug}};function t0(n,i,s){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,d=r[u];d&&Vt.postRender(()=>d(i,Kl(i)))}class EA extends Wn{mount(){const{current:i}=this.node;i&&(this.unmount=JS(i,(s,r)=>(t0(this.node,r,"Start"),u=>t0(this.node,u,"End"))))}unmount(){}}class AA extends Wn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=kl(Ul(this.node.current,"focus",()=>this.onFocus()),Ul(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function e0(n,i,s){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),d=r[u];d&&Vt.postRender(()=>d(i,Kl(i)))}class _A extends Wn{mount(){const{current:i}=this.node;i&&(this.unmount=t2(i,(s,r)=>(e0(this.node,r,"Start"),(u,{success:d})=>e0(this.node,u,d?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Yc=new WeakMap,bc=new WeakMap,MA=n=>{const i=Yc.get(n.target);i&&i(n)},RA=n=>{n.forEach(MA)};function wA({root:n,...i}){const s=n||document;bc.has(s)||bc.set(s,{});const r=bc.get(s),u=JSON.stringify(i);return r[u]||(r[u]=new IntersectionObserver(RA,{root:n,...i})),r[u]}function DA(n,i,s){const r=wA(i);return Yc.set(n,s),r.observe(n),()=>{Yc.delete(n),r.unobserve(n)}}const CA={some:0,all:1};class OA extends Wn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:u="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:CA[u]},h=p=>{const{isIntersecting:m}=p;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:g,onViewportLeave:b}=this.node.getProps(),x=m?g:b;x&&x(p)};return DA(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(NA(i,s))&&this.startObserver()}unmount(){}}function NA({viewport:n={}},{viewport:i={}}={}){return s=>n[s]!==i[s]}const zA={inView:{Feature:OA},tap:{Feature:_A},focus:{Feature:AA},hover:{Feature:EA}},VA={layout:{ProjectionNode:Kg,MeasureLayout:Ug}},kc={current:null},Qg={current:!1};function jA(){if(Qg.current=!0,!!af)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>kc.current=n.matches;n.addListener(i),i()}else kc.current=!1}const LA=new WeakMap;function UA(n,i,s){for(const r in i){const u=i[r],d=s[r];if(ie(u))n.addValue(r,u);else if(ie(d))n.addValue(r,pi(u,{owner:n}));else if(d!==u)if(n.hasValue(r)){const f=n.getValue(r);f.liveStyle===!0?f.jump(u):f.hasAnimated||f.set(u)}else{const f=n.getStaticValue(r);n.addValue(r,pi(f!==void 0?f:u,{owner:n}))}}for(const r in s)i[r]===void 0&&n.removeValue(r);return i}const n0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class BA{scrapeMotionValuesFromProps(i,s,r){return{}}constructor({parent:i,props:s,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:d,visualState:f},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Tf,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 x=me.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Vt.render(this.render,!1,!0))};const{latestValues:p,renderState:m}=f;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=m,this.parent=i,this.props=s,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=u,this.options=h,this.blockInitialAnimation=!!d,this.isControllingVariants=zr(s),this.isVariantNode=hg(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:g,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const x in b){const E=b[x];p[x]!==void 0&&ie(E)&&E.set(p[x],!1)}}mount(i){this.current=i,LA.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,r)=>this.bindToMotionValue(r,s)),Qg.current||jA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Jn(this.notifyUpdate),Jn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const r=Ti.has(i);r&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",h=>{this.latestValues[i]=h,this.props.onUpdate&&Vt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),d=s.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{u(),d(),f&&f(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in yi){const s=yi[i];if(!s)continue;const{isEnabled:r,Feature:u}=s;if(!this.features[i]&&u&&r(this.props)&&(this.features[i]=new u(this)),this.features[i]){const d=this.features[i];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):qt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let r=0;r<n0.length;r++){const u=n0[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const d="on"+u,f=i[d];f&&(this.propEventSubscriptions[u]=this.on(u,f))}this.prevMotionValues=UA(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const r=this.values.get(i);s!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&s!==void 0&&(r=pi(s===null?void 0:s,{owner:this}),this.addValue(i,r)),r}readValue(i,s){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(T0(r)||E0(r))?r=parseFloat(r):!a2(r)&&Fn.test(s)&&(r=ig(i,s)),this.setBaseTarget(i,ie(r)?r.get():r)),ie(r)?r.get():r}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var d;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const f=Vf(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(r=f[i])}if(s&&r!==void 0)return r;const u=this.getBaseTargetFromProps(this.props,i);return u!==void 0&&!ie(u)?u:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new uf),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}}class Pg extends BA{constructor(){super(...arguments),this.KeyframeResolver=KS}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:r}){delete s[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;ie(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function Zg(n,{style:i,vars:s},r,u){Object.assign(n.style,i,u&&u.getProjectionStyles(r));for(const d in s)n.style.setProperty(d,s[d])}function HA(n){return window.getComputedStyle(n)}class qA extends Pg{constructor(){super(...arguments),this.type="html",this.renderInstance=Zg}readValueFromInstance(i,s){var r;if(Ti.has(s))return(r=this.projection)!=null&&r.isProjecting?Dc(s):cS(i,s);{const u=HA(i),d=(df(s)?u.getPropertyValue(s):u[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return zg(i,s)}build(i,s,r){Of(i,s,r.transformTemplate)}scrapeMotionValuesFromProps(i,s,r){return jf(i,s,r)}}const $g=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"]);function YA(n,i,s,r){Zg(n,i,void 0,r);for(const u in i.attrs)n.setAttribute($g.has(u)?u:Cf(u),i.attrs[u])}class kA extends Pg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ti.has(s)){const r=ag(s);return r&&r.default||0}return s=$g.has(s)?s:Cf(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,r){return Eg(i,s,r)}build(i,s,r){bg(i,s,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,s,r,u){YA(i,s,r,u)}mount(i){this.isSVGTag=Tg(i.tagName),super.mount(i)}}const GA=(n,i)=>zf(n)?new kA(i):new qA(i,{allowProjection:n!==S.Fragment}),XA=Y2({...hE,...zA,...SA,...VA},GA),ke=d2(XA);function KA({movies:n}){const[i,s]=S.useState(0);if(S.useEffect(()=>{if(n.length===0)return;const u=setInterval(()=>{s(d=>(d+1)%n.length)},5e3);return()=>clearInterval(u)},[n]),n.length===0)return null;const r=n[i];return V.jsx("div",{className:"relative w-full h-[60vh] overflow-hidden bg-black",children:V.jsx(Cr,{mode:"wait",children:V.jsx(ke.div,{initial:{opacity:0}
59,animate:{opacity:1},exit:{opacity:0},transition:{duration:1},className:"absolute top-0 left-0 w-full h-full",style:{backgroundImage:`url(https://image.tmdb.org/t/p/original${r.backdrop_path})`,backgroundSize:"cover",backgroundPosition:"center"},children:V.jsxs(vn,{to:`/movie/${r.id}`,className:"absolute inset-0 flex flex-col justify-center p-8 text-white bg-black/50",children:[V.jsx("h1",{className:"text-3xl font-bold mb-4 drop-shadow-md",children:r.title}),V.jsx("p",{className:"max-w-xl text-sm drop-shadow-md",children:r.overview})]})},r.id)})})}function QA({id:n,title:i,poster:s,overview:r}){const u=$c(),[d,f]=S.useState(!1),h=S.useRef(null),p=()=>{h.current=setTimeout(()=>f(!0),2e3)},m=()=>{clearTimeout(h.current),f(!1)},g=`https://www.youtube.com/results?search_query=trailer+${encodeURIComponent(i)}`;return V.jsxs("div",{className:"bg-zinc-900 w-full rounded-xl overflow-hidden shadow-lg hover:scale-105 transition-transform duration-300 cursor-pointer border border-zinc-800",onClick:()=>u(`/movie/${n}`),children:[V.jsxs("figure",{className:"relative group",onMouseEnter:p,onMouseLeave:m,children:[V.jsx("img",{src:s,alt:`Poster for ${i}`,className:"w-full h-auto transition duration-300 group-hover:brightness-50"}),V.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:V.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-white drop-shadow-md",fill:"currentColor",viewBox:"0 0 24 24",children:V.jsx("path",{d:"M8 5v14l11-7z"})})}),d&&V.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"absolute inset-0 flex items-center justify-center bg-black text-white text-lg font-semibold opacity-100 transition-opacity duration-300",children:"🔗 Watch Trailer"})]}),V.jsxs("div",{className:"p-4 text-white space-y-2",children:[V.jsx("h2",{className:"text-xl font-bold truncate",children:i}),V.jsx("p",{className:"text-white/70 text-sm line-clamp-3",children:r}),V.jsx("div",{className:"pt-2",children:V.jsx("button",{className:"w-full bg-red-600 text-white px-4 py-2 rounded-md font-semibold hover:bg-red-700 transition duration-200 shadow-md",children:"▶ Watch Now"})})]})]})}const PA="/photos/movie-icon.webp";function ZA({message:n="No movies found"}){return V.jsxs(ke.div,{initial:{opacity:0}
59,animate:{opacity:1},className:"flex flex-col items-center justify-center h-96 bg-black text-center space-y-6",children:[V.jsxs("div",{className:"relative w-24 h-24",children:[V.jsx("div",{className:"absolute inset-0 border-4 border-red-600 border-t-transparent rounded-full animate-spin"}),V.jsx("div",{className:"absolute inset-0 border-4 border-red-600 rounded-full opacity-50 blur-md"})]}),V.jsx("h2",{className:"text-2xl font-semibold text-white opacity-90 tracking-wide",children:"Coming Soon"}),V.jsx("p",{className:"text-white/60 text-sm max-w-md mx-auto px-4",children:n||"More movies will appear here soon. Check back later!"})]})}function $A({movies:n,page:i,setPage:s,totalPages:r,loading:u,progress:d,error:f}){return V.jsx(V.Fragment,{children:V.jsxs("div",{className:"relative w-full min-h-screen px-6 py-10 bg-black",children:[u&&V.jsx(ke.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 z-50 flex items-center justify-center bg-black text-white",children:V.jsxs("div",{className:"flex flex-col items-center -translate-y-20 space-y-4",children:[V.jsx("img",{src:PA,className:"w-24 mb-2",alt:"Movie Logo"}),V.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-t-4 border-red-600 border-opacity-50"}),V.jsxs("div",{className:"text-red-600 text-xl font-semibold mt-2",children:[d,"%"]})]})},"loader"),f&&V.jsx(ke.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0},className:"text-center text-red-400 font-semibold",children:"Something went wrong fetching your movies."},"error"),!u&&!f&&n.length===0&&V.jsx(ZA,{message:"No movies found. Please check back later or try a different search!"}),!u&&!f&&V.jsxs(V.Fragment,{children:[V.jsx(ke.div,{initial:{opacity:0}
59,animate:{opacity:1},transition:{duration:.6},className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6 px-6 py-10",children:n==null?void 0:n.map(h=>V.jsx(QA,{id:h.id,title:h.title,poster:`https://image.tmdb.org/t/p/w500${h.poster_path}`,overview:h.overview},h.id))},"grid"),V.jsx("div",{className:"flex justify-center mt-8",children:V.jsxs("div",{className:"join shadow-md rounded-full overflow-hidden border border-zinc-800",children:[V.jsxs("button",{className:`join-item btn bg-black text-white border-none px-4 py-2 
60                                    ${i<=1?"opacity-50 cursor-not-allowed":"hover:outline hover:outline-2 hover:outline-red-500"} `,disabled:i<=1,onClick:()=>s(i-1),children:[V.jsx("i",{className:"fa-solid fa-chevron-left"})," Prev"]}),V.jsxs("button",{className:"join-item btn border-none bg-red-600 text-white font-medium pointer-events-none",children:["Page ",i]}),V.jsxs("button",{className:`join-item btn bg-black text-white border-none px-4 py-2 ${i>=r?"opacity-50 cursor-not-allowed":"hover:outline hover:outline-2 hover:outline-red-500"}`,disabled:i>=r,onClick:()=>s(i+1),children:["Next ",V.jsx("i",{className:"fa-solid fa-chevron-right"})]})]})})]})]})})}function Jg(n){var i,s,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(s=Jg(n[i]))&&(r&&(r+=" "),r+=s)}else for(s in n)n[s]&&(r&&(r+=" "),r+=s);return r}function Ea(){for(var n,i,s=0,r="",u=arguments.length;s<u;s++)(n=arguments[s])&&(i=Jg(n))&&(r&&(r+=" "),r+=i);return r}function JA(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",i.firstChild?i.insertBefore(s,i.firstChild):i.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}JA(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
60.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
60}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
61`);var Ql=n=>typeof n=="number"&&!isNaN(n),Aa=n=>typeof n=="string",Sn=n=>typeof n=="function",FA=n=>Aa(n)||Ql(n),Gc=n=>Aa(n)||Sn(n)?n:null,WA=(n,i)=>n===!1||Ql(n)&&n>0?n:i,Xc=n=>S.isValidElement(n)||Aa(n)||Sn(n)||Ql(n);function IA(n,i,s=300){let{scrollHeight:r,style:u}=n;requestAnimationFrame(()=>{u.minHeight="initial",u.height=r+"px",u.transition=`all ${s}ms`,requestAnimationFrame(()=>{u.height="0",u.padding="0",u.margin="0",setTimeout(i,s)})})}function t_({enter:n,exit:i,appendPosition:s=!1,collapse:r=!0,collapseDuration:u=300}){return function({children:d,position:f,preventExitTransition:h,done:p,nodeRef:m,isIn:g,playToast:b}){let x=s?`${n}--${f}`:n,E=s?`${i}--${f}`:i,_=S.useRef(0);return S.useLayoutEffect(()=>{let D=m.current,j=x.split(" "),R=C=>{C.target===m.current&&(b(),D.removeEventListener("animationend",R),D.removeEventListener("animationcancel",R),_.current===0&&C.type!=="animationcancel"&&D.classList.remove(...j))};D.classList.add(...j),D.addEventListener("animationend",R),D.addEventListener("animationcancel",R)},[]),S.useEffect(()=>{let D=m.current,j=()=>{D.removeEventListener("animationend",j),r?IA(D,p,u):p()};g||(h?j():(_.current=1,D.className+=` ${E}`,D.addEventListener("animationend",j)))},[g]),wt.createElement(wt.Fragment,null,d)}}function a0(n,i){return{content:Fg(n.content,n.props),containerId:n.props.containerId,id:n.props.toastId,theme:n.props.theme,type:n.props.type,data:n.props.data||{},isLoading:n.props.isLoading,icon:n.props.icon,reason:n.removalReason,status:i}}function Fg(n,i,s=!1){return S.isValidElement(n)&&!Aa(n.type)?S.cloneElement(n,{closeToast:i.closeToast,toastProps:i,data:i.data,isPaused:s}):Sn(n)?n({closeToast:i.closeToast,toastProps:i,data:i.data,isPaused:s}):n}function e_({closeToast:n,theme:i,ariaLabel:s="close"}){return wt.createElement("button",{className:`Toastify__close-button Toastify__close-button--${i}`,type:"button",onClick:r=>{r.stopPropagation(),n(!0)},"aria-label":s},wt.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},wt.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function n_({delay:n,isRunning:i,closeToast:s,type:r="default",hide:u,className:d,controlledProgress:f,progress:h,rtl:p,isIn:m,theme:g}){let b=u||f&&h===0,x={animationDuration:`${n}ms`,animationPlayState:i?"running":"paused"};f&&(x.transform=`scaleX(${h})`);let E=Ea("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":p}),_=Sn(d)?d({rtl:p,type:r,defaultClassName:E}):Ea(E,d),D={[f&&h>=1?"onTransitionEnd":"onAnimationEnd"]:f&&h<1?null:()=>{m&&s()}};return wt.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},wt.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${r}`}),wt.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:_,style:x,...D}))}var a_=1,Wg=()=>`${a_++}`;function i_(n,i,s){let r=1,u=0,d=[],f=[],h=i,p=new Map,m=new Set,g=C=>(m.add(C),()=>m.delete(C)),b=()=>{f=Array.from(p.values()),m.forEach(C=>C())},x=({containerId:C,toastId:O,updateId:Y})=>{let B=C?C!==n:n!==1,P=p.has(O)&&Y==null;return B||P},E=(C,O)=>{p.forEach(Y=>{var B;(O==null||O===Y.props.toastId)&&((B=Y.toggle)==null||B.call(Y,C))})},_=C=>{var O,Y;(Y=(O=C.props)==null?void 0:O.onClose)==null||Y.call(O,C.removalReason),C.isActive=!1},D=C=>
vendor: 10,033 bytes, line 61
61{if(C==null)p.forEach(_);else{let O=p.get(C);O&&_(O)}b()},j=()=>{u-=d.length,d=[]},R=C=>{var O,Y;let{toastId:B,updateId:P}=C.props,Z=P==null;C.staleId&&p.delete(C.staleId),C.isActive=!0,p.set(B,C),b(),s(a0(C,Z?"added":"updated")),Z&&((Y=(O=C.props).onOpen)==null||Y.call(O))};return{id:n,props:h,observe:g,toggle:E,removeToast:D,toasts:p,clearQueue:j,buildToast:(C,O)=>{if(x(O))return;let{toastId:Y,updateId:B,data:P,staleId:Z,delay:K}=O,tt=B==null;tt&&u++;let ot={...h,style:h.toastStyle,key:r++,...Object.fromEntries(Object.entries(O).filter(([_t,oe])=>oe!=null)),toastId:Y,updateId:B,data:P,isIn:!1,className:Gc(O.className||h.toastClassName),progressClassName:Gc(O.progressClassName||h.progressClassName),autoClose:O.isLoading?!1:WA(O.autoClose,h.autoClose),closeToast(_t){p.get(Y).removalReason=_t,D(Y)},deleteToast(){let _t=p.get(Y);if(_t!=null){if(s(a0(_t,"removed")),p.delete(Y),u--,u<0&&(u=0),d.length>0){R(d.shift());return}b()}}};ot.closeButton=h.closeButton,O.closeButton===!1||Xc(O.closeButton)?ot.closeButton=O.closeButton:O.closeButton===!0&&(ot.closeButton=Xc(h.closeButton)?h.closeButton:!0);let vt={content:C,props:ot,staleId:Z};h.limit&&h.limit>0&&u>h.limit&&tt?d.push(vt):Ql(K)?setTimeout(()=>{R(vt)},K):R(vt)},setProps(C){h=C},setToggle:(C,O)=>{let Y=p.get(C);Y&&(Y.toggle=O)},isToastActive:C=>{var O;return(O=p.get(C))==null?void 0:O.isActive},getSnapshot:()=>f}}var re=new Map,Bl=[],Kc=new Set,l_=n=>Kc.forEach(i=>i(n)),Ig=()=>re.size>0;function s_(){Bl.forEach(n=>ev(n.content,n.options)),Bl=[]}var r_=(n,{containerId:i})=>{var s;return(s=re.get(i||1))==null?void 0:s.toasts.get(n)};function tv(n,i){var s;if(i)return!!((s=re.get(i))!=null&&s.isToastActive(n));let r=!1;return re.forEach(u=>{u.isToastActive(n)&&(r=!0)}),r}function o_(n){if(!Ig()){Bl=Bl.filter(i=>n!=null&&i.options.toastId!==n);return}if(n==null||FA(n))re.forEach(i=>{i.removeToast(n)});else if(n&&("containerId"in n||"id"in n)){let i=re.get(n.containerId);i?i.removeToast(n.id):re.forEach(s=>{s.removeToast(n.id)})}}var u_=(n={})=>{re.forEach(i=>{i.props.limit&&(!n.containerId||i.id===n.containerId)&&i.clearQueue()})};function ev(n,i){Xc(n)&&(Ig()||Bl.push({content:n,options:i}),re.forEach(s=>{s.buildToast(n,i)}))}function c_(n){var i;(i=re.get(n.containerId||1))==null||i.setToggle(n.id,n.fn)}function nv(n,i){re.forEach(s=>{(i==null||!(i!=null&&i.containerId)||(i==null?void 0:i.containerId)===s.id)&&s.toggle(n,i==null?void 0:i.id)})}function f_(n){let i=n.containerId||1;return{subscribe(s){let r=i_(i,n,l_);re.set(i,r);let u=r.observe(s);return s_(),()=>{u(),re.delete(i)}},setProps(s){var r;(r=re.get(i))==null||r.setProps(s)},getSnapshot(){var s;return(s=re.get(i))==null?void 0:s.getSnapshot()}}}function d_(n){return Kc.add(n),()=>{Kc.delete(n)}}function h_(n){return n&&(Aa(n.toastId)||Ql(n.toastId))?n.toastId:Wg()}function Pl(n,i){return ev(n,i),i.toastId}function Vr(n,i){return{...i,type:i&&i.type||n,toastId:h_(i)}}function jr(n){return(i,s)=>Pl(i,Vr(n,s))}function At(n,i){return Pl(n,Vr("default",i))}At.loading=(n,i)=>Pl(n,Vr("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...i}));function m_(n,{pending:i,error:s,success:r},u){let d;i&&(d=Aa(i)?At.loading(i,u):At.loading(i.render,{...u,...i}));let f={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(m,g,b)=>{if(g==null){At.dismiss(d);return}let x={type:m,...f,...u,data:b},E=Aa(g)?{render:g}:g;return d?At.update(d,{...x,...E}):At(E.render,{...x,...E}),b},p=Sn(n)?n():n;return p.then(m=>h("success",r,m)).catch(m=>h("error",s,m)),p}At.promise=m_;At.success=jr("success");At.info=jr("info");At.error=jr("error");At.warning=jr("warning");At.warn=At.warning;At.dark=(n,i)=>Pl(n,Vr("default",{theme:"dark",...i}));function p_(n){o_(n)}At.dismiss=p_;At.clearWaitingQueue=u_;At.isActive=tv;At.update=(n,i={})=>{let s=r_(n,i);if(s){let{props:r,content:u}=s,d={delay:100,...r,...i,toastId:i.toastId||n,updateId:Wg()};d.toastId!==n&&(d.staleId=n);let f=d.render||u;delete d.render,Pl(f,d)}};At.done=n=>{At.update(n,{progress:1})};At.onChange=d_;At.play=n=>nv(!0,n);At.pause=n=>nv(!1,n);function y_(n){var i;let{subscribe:s,getSnapshot:r,setProps:u}=S.useRef(f_(n)).current;u(n);let d=(i=S.useSyncExternalStore(s,r,r))==null?void 0:i.slice();function f(h){if(!d)return[];let p=new Map;return n.newestOnTop&&d.reverse(),d.forEach(m=>{let{position:g}=m.props;p.has(g)||p.set(g,[]),p.get(g).push(m)}),Array.from(p,m=>h(m[0],m[1]))}return{getToastToRender:f,isToastActive:tv,count:d==null?void 0:d.length}}function g_(n){let[i,s]=S.useState(!1),[r,u]=S.useState(!1),d=S.useRef(null),f=S.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:h,pauseOnHover:p,closeToast:m,onClick:g,closeOnClick:b}=n;c_({id:n.toastId,containerId:n.containerId,fn:s}),S.useEffect(()=>{if(n.pauseOnFocusLoss)return x(),()=>{E()}},[n.pauseOnFocusLoss]);function x(){document.hasFocus()||R(),window.addEventListener("focus",j),window.addEventListener("blur",R)}function E(){window.removeEventListener("focus",j),window.removeEventListener("blur",R)}function _(Z){if(n.draggable===!0||n.draggable===Z.pointerType){C();let K=d.current;f.canCloseOnClick=!0,f.canDrag=!0,K.style.transition="none",n.draggableDirection==="x"?(f.start=Z.clientX,f.removalDistance=K.offsetWidth*(n.draggablePercent/100)):(f.start=Z.clientY,f.removalDistance=K.offsetHeight*(n.draggablePercent===80?n.draggablePercent*1.5:n.draggablePercent)/100)}}function D(Z){let{top:K,bottom:tt,left:ot,right:vt}=d.current.getBoundingClientRect();Z.nativeEvent.type!=="touchend"&&n.pauseOnHover&&Z.clientX>=ot&&Z.clientX<=vt&&Z.clientY>=K&&Z.clientY<=tt?R():j()}function j(){s(!0)}function R(){s(!1)}function C(){f.didMove=!1,document.addEventListener("pointermove",Y),document.addEventListener("pointerup",B)}function O(){document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",B)}function Y(Z){let K=d.current;if(f.canDrag&&K){f.didMove=!0,i&&R(),n.draggableDirection==="x"?f.delta=Z.clientX-f.start:f.delta=Z.clientY-f.start,f.start!==Z.clientX&&(f.canCloseOnClick=!1);let tt=n.draggableDirection==="x"?`${f.delta}px, var(--y)`:`0, calc(${f.delta}px + var(--y))`;K.style.transform=`translate3d(${tt},0)`,K.style.opacity=`${1-Math.abs(f.delta/f.removalDistance)}`}}function B(){O();let Z=d.current;if(f.canDrag&&f.didMove&&Z){if(f.canDrag=!1,Math.abs(f.delta)>f.removalDistance){u(!0),n.closeToast(!0),n.collapseAll();return}Z.style.transition="transform 0.2s, opacity 0.2s",Z.style.removeProperty("transform"),Z.style.removeProperty("opacity")}}let P={onPointerDown:_,onPointerUp:D};return h&&p&&(P.onMouseEnter=R,n.stacked||(P.onMouseLeave=j)),b&&(P.onClick=Z=>{g&&g(Z),f.canCloseOnClick&&m(!0)}),{playToast:j,pauseToast:R,isRunning:i,preventExitTransition:r,toastRef:d,eventHandlers:P}}var v_=typeof window<"u"?S.useLayoutEffect:S.useEffect,Lr=({theme:n,type:i,isLoading:s,...r})=>wt.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:n==="colored"?"currentColor":`var(--toastify-icon-color-${i})`,...r});function b_(n){return wt.createElement(Lr,{...n},wt.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function x_(n){return wt.createElement(Lr,{...n},wt.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function T_(n){return wt.createElement(Lr,{...n},wt.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function S_(n){return wt.createElement(Lr,{...n},wt.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function E_(){return wt.createElement("div",{className:"Toastify__spinner"})}var Qc={info:x_,warning:b_,success:T_,error:S_,spinner:E_},A_=n=>n in Qc;function __({theme:n,type:i,isLoading:s,icon:r}){let u=null,d={theme:n,type:i};return r===!1||(Sn(r)?u=r({...d,isLoading:s}):S.isValidElement(r)?u=S.cloneElement(r,d):s?u=Qc.spinner():A_(i)&&(u=Qc[i](d))),u}var M_=n=>{let{isRunning:i,preventExitTransition:s,toastRef:r,eventHandlers:u,playToast:d}=g_(n),{closeButton:f,children:h,autoClose:p,onClick:m,type:g,hideProgressBar:b,closeToast:x,transition:E,position:_,className:D,style:j,progressClassName:R,updateId:C,role:O,progress:Y,rtl:B,toastId:P,deleteToast:Z,isIn:K,isLoading:tt,closeOnClick:ot,theme:vt,ariaLabel:_t}=n,oe=Ea("Toastify__toast",`Toastify__toast-theme--${vt}`,`Toastify__toast--${g}`,{"Toastify__toast--rtl":B},{"Toastify__toast--close-on-click":ot}),_e=Sn(D)?D({rtl:B,position:_,type:g,defaultClassName:oe}):Ea(oe,D),Yt=__(n),H=!!Y||!p,Q={closeToast:x,type:g,theme:vt},F=null;return f===!1||(Sn(f)?F=f(Q):S.isValidElement(f)?F=S.cloneElement(f,Q):F=e_(Q)),wt.createElement(E,{isIn:K,done:Z,position:_,preventExitTransition:s,nodeRef:r,playToast:d},wt.createElement("div",{id:P,tabIndex:0,onClick:m,"data-in":K,className:_e,...u,style:j,ref:r,...K&&{role:O,"aria-label":_t}},Yt!=null&&wt.createElement("div",{className:Ea("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter"
61:!tt})},Yt),Fg(h,n,!i),F,!n.customProgressBar&&wt.createElement(n_,{...C&&!H?{key:`p-${C}`}:{},rtl:B,theme:vt,delay:p,isRunning:i,isIn:K,closeToast:x,hide:b,type:g,className:R,controlledProgress:H,progress:Y||0})))},R_=(n,i=!1)=>({enter:`Toastify--animate Toastify__${n}-enter`,exit:`Toastify--animate Toastify__${n}-exit`,appendPosition:i}),w_=t_(R_("bounce",!0)),D_={position:"top-right",transition:w_,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:n=>n.altKey&&n.code==="KeyT"};function C_(n){let i={...D_,...n},s=n.stacked,[r,u]=S.useState(!0),d=S.useRef(null),{getToastToRender:f,isToastActive:h,count:p}=y_(i),{className:m,style:g,rtl:b,containerId:x,hotKeys:E}=i;function _(j){let R=Ea("Toastify__toast-container",`Toastify__toast-container--${j}`,{"Toastify__toast-container--rtl":b});return Sn(m)?m({position:j,rtl:b,defaultClassName:R}):Ea(R,Gc(m))}function D(){s&&(u(!0),At.play())}return v_(()=>{var j;if(s){let R=d.current.querySelectorAll('[data-in="true"]'),C=12,O=(j=i.position)==null?void 0:j.includes("top"),Y=0,B=0;Array.from(R).reverse().forEach((P,Z)=>{let K=P;K.classList.add("Toastify__toast--stacked"),Z>0&&(K.dataset.collapsed=`${r}`),K.dataset.pos||(K.dataset.pos=O?"top":"bot");let tt=Y*(r?.2:1)+(r?0:C*Z);K.style.setProperty("--y",`${O?tt:tt*-1}px`),K.style.setProperty("--g",`${C}`),K.style.setProperty("--s",`${1-(r?B:0)}`),Y+=K.offsetHeight,B+=.025})}},[r,p,s]),S.useEffect(()=>{function j(R){var C;let O=d.current;E(R)&&((C=O.querySelector('[tabIndex="0"]'))==null||C.focus(),u(!1),At.pause()),R.key==="Escape"&&(document.activeElement===O||O!=null&&O.contains(document.activeElement))&&(u(!0),At.play())}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[E]),wt.createElement("section",{ref:d,className:"Toastify",id:x,onMouseEnter:()=>{s&&(u(!1),At.pause())},onMouseLeave:D,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":i["aria-label"]},f((j,R)=>{let C=R.length?{...g}:{...g,pointerEvents:"none"};return wt.createElement("div",{tabIndex:-1,className:_(j),"data-stacked":s,style:C,key:`c-${j}`},R.map(({content:O,props:Y})=>wt.createElement(M_,{...Y,stacked:s,collapseAll:D,isIn:h(Y.toastId,Y.containerId),key:`t-${Y.key}`},O)))}))}function O_({setMyList:n,myList:i}){var R,C,O;const{id:s}=dx(),[r,u]=S.useState(!1),[d,f]=S.useState(!1),[h,p]=S.useState(null),m="/trailers/top_gun_maverick.mp4",g="/trailers/"+s+"_trailer.mp4",[b,x]=S.useState(g),E=S.useRef(null);S.useEffect(()=>{async function Y(){const P=`https://api.themoviedb.org/3/movie/${s}?api_key=6b3e018d07a42e39065208f94be35ed3`;try{const K=await(await fetch(P)).json();p(K)}catch(Z){console.error("Failed to fetch movie detail:",Z)}}Y()},[s]);const _=S.useMemo(()=>h?i.some(Y=>Y.id===h.id):!1,[h,i]);S.useEffect(()=>{if(r&&E.current){const B=E.current.play();B!==void 0&&B.catch(()=>{})}const Y=setTimeout(()=>u(!0),2500);return()=>clearTimeout(Y)},[r]);function D(){x(m)}function j(){if(!h)return;const Y=i.some(B=>B.id===h.id);n(B=>{const P=_?B.filter(Z=>Z.id!==h.id):[...B,h];return localStorage.setItem("myList",JSON.stringify(P)),P}),At[Y?"warn":"success"](Y?`Removed ${h.title} from My List`:`Added ${h.title} to My List`,{position:"top-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,icon:Y?"❌":"✅"})}return h?V.jsxs("div",{className:"relative w-full h-screen text-white",children:[!r&&!d&&V.jsx("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black",children:V.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-t-4 border-white border-opacity-50"})}),V.jsx(Cr,{mode:"wait",children:r?V.jsx(ke.video,{ref:E,src:b,autoPlay:!0,playsInline:!0,loop:!0,onError:D,className:"absolute inset-0 w-full h-full object-cover",initial:{opacity:0}
61,animate:{opacity:1},exit:{opacity:0},transition:{duration:.8}},"video"):V.jsx(ke.img,{src:`https://image.tmdb.org/t/p/original${h.backdrop_path}`,alt:"Backdrop",onLoad:()=>f(!0),className:"absolute inset-0 w-full h-full object-cover brightness-75",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.8}},"thumbnail")}),V.jsx("div",{className:"absolute inset-0 bg-black/30 flex items-center pl-12 pr-6",children:V.jsxs("div",{className:"max-w-xl space-y-6",children:[V.jsx("h1",{className:"text-5xl font-bold",children:h.title}),V.jsxs("div",{className:"text-sm text-gray-300 space-x-4",children:[V.jsx("span",{children:(R=h.release_date)==null?void 0:R.slice(0,4)}),V.jsxs("span",{children:[h.vote_average.toFixed(1)," ★"]}),V.jsx("span",{children:(O=(C=h.genres)==null?void 0:C[0])==null?void 0:O.name})]}),V.jsxs("p",{className:"text-gray-200",children:[h.overview," ",V.jsx(vn,{to:"/",className:"underline hover:text-white",children:"[home]"})]}),V.jsxs("div",{className:"flex space-x-4 mt-4",children:[V.jsx(vn,{to:`https://id2.idlixvip.asia/search/${encodeURIComponent(h.title.replace(/\s+/g,"+"))}`,target:"_blank",rel:"noopener noreferrer",className:"bg-white text-black px-6 py-2 rounded-md font-semibold hover:bg-gray-300",children:"▶ Play"}),V.jsx("button",{className:`px-6 py-2 rounded-md font-semibold transition duration-200 ${_?"bg-blue-700 hover:bg-blue-600":"bg-gray-700 hover:bg-gray-600"}`,onClick:j,children:_?"✓ Added":"+ My List"})]})]})}),V.jsx(C_,{position:"top-center",autoClose:2e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!1,draggable:!1,pauseOnHover:!1,theme:"dark",toastClassName:"bg-gray-900 text-white border border-gray-700 text-center",bodyClassName:"text-sm"})]}):V.jsx("div",{className:"w-full h-screen flex items-center justify-center bg-black text-white",children:V.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-t-4 border-white border-opacity-50"})})}function N_({myList:n}){const[i,s]=tf(),r=parseInt(i.get("page")||"1"),u=i.get("query")||"",d=12,f=g=>{const b={};u&&(b.query=u),b.page=g,s(b)},h=u.length>0?n.filter(g=>{var b;return(b=g.title)==null?void 0:b.toLowerCase().includes(u.toLowerCase())}):n,p=Math.ceil(h.length/d),m=h.slice((r-1)*d,r*d);return V.jsx("div",{className:"bg-black min-h-screen text-white mt-5",children:V.jsxs("div",{className:"container mx-auto px-6",children:[V.jsx(Cr,{mode:"wait",children:V.jsx(ke.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4",children:m.length>0?m.map(g=>V.jsx(vn,{to:`/movie/${g.id}`,className:"relative group transform hover:scale-105 transition",children:V.jsx("img",{src:`https://image.tmdb.org/t/p/w500${g.poster_path}`,alt:g.title,className:"rounded-lg shadow-md border border-transparent group-hover:border-red-500 group-hover:ring-2 group-hover:ring-red-500"})},g.id)):V.jsx("p",{className:"text-white/70 col-span-full",children:"Your list is empty."})},r)}),h.length>d&&V.jsx("div",{className:"flex justify-center mt-8",children:V.jsxs("div",{className:"join shadow-md rounded-full overflow-hidden border border-zinc-800",children:[V.jsxs("button",{className:`join-item btn bg-black text-white border-none ${r<=1?"opacity-50 cursor-not-allowed":"hover:outline hover:outline-2 hover:outline-red-500"}`,disabled:r<=1,onClick:()=>f(r-1),children:[V.jsx("i",{className:"fa-solid fa-chevron-left"})," Prev"]}),V.jsxs("button",{className:"join-item btn bg-red-600 text-white border-none pointer-events-none",children:["Page ",r]}),V.jsxs("button",{className:`join-item btn bg-black text-white border-none ${r>=p?"opacity-50 cursor-not-allowed":"hover:outline hover:outline-2 hover:outline-red-500"}`,disabled:r>=p,onClick:()=>f(r+1),children:["Next ",V.jsx("i",{className:"fa-solid fa-chevron-right"})]})]})})]})})}function z_({setMovies:n,setLoading:i}){const[s,r]=tf(),u=s.get("query")||"",d=p=>{const m=p.target.value;r(m?{query:m}:{})},f=()=>r({});async function h(){i(!0);const p="6b3e018d07a42e39065208f94be35ed3",m=u?`https://api.themoviedb.org/3/search/movie?api_key=${p}&query=${u}&include_adult=false`:`https://api.themoviedb.org/3/movie/popular?api_key=${p}&include_adult=false`;try{const g=await fetch(m),{results:b}=await g.json();n(b)}catch(g){console.log(g)}finally{i(!1)}}return S.useEffect(()=>{i(!0);const p=setTimeout(()=>h(),1e3);return()=>clearTimeout(p)},[u]),V.jsx("nav",{className:"bg-black text-white shadow-md",children:V.jsxs("div",{className:"container mx-auto px-6 flex justify-between items-center w-full h-16",children:[V.jsxs("div",{className:"flex items-center gap-3",children:[V.jsx(vn,{to:"/",onClick:f,className:"font-bold text-xl tracking-wide hover:text-red-500 transition-colors",children:V.jsx("img",{src:"https://img.icons8.com/ios-filled/50/ffffff/movie-projector.png",alt:"Movie Icon",className:"w-8 h-8"})}),V.jsx(vn,{to:"/",onClick:f,className:"font-bold text-xl tracking-wide hover:text-red-500 transition-colors",children:"Movie Palace"})]}),V.jsxs("div",{className:"flex items-center gap-6",children:[V.jsx(vn,{to:"/my-list",className:"text-sm font-medium hover:text-red-500 transition-colors",children:"My List"}),V.jsx("input",{type:"text",placeholder:"Search",value:u,onChange:d,className:"bg-zinc-900 text-white placeholder-white/50 border border-zinc-700 rounded-md px-4 py-2 w-24 md:w-56 focus:outline-none focus:ring-2 focus:ring-red-500"}),V.jsxs("div",{className:"dropdown dropdown-end relative",children:[V.jsx("div",{tabIndex:0,role:"button",className:"btn btn-ghost btn-circle avatar",children:V.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden border border-zinc-700",children:V.jsx("img",{alt:"User avatar",src:"https://img.daisyui.com/images/stock/photo-153452874
611775-53994a69daeb.webp"})})}),V.jsxs("ul",{tabIndex:0,className:"menu menu-sm dropdown-content bg-zinc-900 text-white rounded-box z-10 mt-3 w-52 p-2 shadow-xl border border-zinc-800",children:[V.jsx("li",{children:V.jsxs("a",{className:"hover:bg-zinc-800 rounded-md flex justify-between",children:["Profile",V.jsx("span",{className:"badge bg-red-600 text-white",children:"New"})]})}),V.jsx("li",{children:V.jsx("a",{className:"hover:bg-zinc-800 rounded-md",children:"Settings"})}),V.jsx("li",{children:V.jsx("a",{className:"hover:bg-zinc-800 rounded-md",children:"Logout"})})]})]})]})]})})}function V_(){return V.jsx("footer",{className:"bg-black text-white border-t border-zinc-800 py-10 mt-16",children:V.jsxs("div",{className:"container mx-auto px-6 flex flex-col sm:flex-row sm:justify-between sm:items-start gap-10",children:[V.jsxs("aside",{className:"flex-1 space-y-2",children:[V.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[V.jsx("img",{src:"https://img.icons8.com/ios-filled/50/ffffff/movie-projector.png",alt:"Movie Icon",className:"w-8 h-8"}),V.jsx("a",{className:"font-bold text-xl tracking-wide hover:text-red-500 transition-colors",children:"Movie Palace"})]}),V.jsxs("p",{className:"text-white/70 text-sm leading-relaxed",children:["Obie Industries Ltd. ",V.jsx("br",{}),"Providing reliable movies since 1992"]})]}),V.jsxs("nav",{className:"flex flex-col space-y-2",children:[V.jsx("h6",{className:"text-white font-semibold mb-1 uppercase tracking-wide text-sm",children:"Services"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Branding"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Design"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Marketing"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Advertisement"})]}),V.jsxs("nav",{className:"flex flex-col space-y-2",children:[V.jsx("h6",{className:"text-white font-semibold mb-1 uppercase tracking-wide text-sm",children:"Company"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"About us"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Contact"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Jobs"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Press kit"})]}),V.jsxs("nav",{className:"flex flex-col space-y-2",children:[V.jsx("h6",{className:"text-white font-semibold mb-1 uppercase tracking-wide text-sm",children:"Legal"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Terms of use"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Privacy policy"}),V.jsx("a",{className:"text-white/70 hover:text-white cursor-pointer transition",children:"Cookie policy"})]})]})})}function j_(){const[n,i]=S.useState([]),[s,r]=S.useState(!1),[u,d]=S.useState(0),[f,h]=S.useState(!1),[p,m]=S.useState([]),[g,b]=S.useState(1),[x,E]=S.useState(1),_=En(),D=_.pathname.startsWith("/movie/"),j=_.pathname.startsWith("/my-list"),[R]=tf(),C=!!R.get("query");async function O(Y=1){r(!0);try{const P=await(await fetch(`https://api.themoviedb.org/3/discover/movie?api_key=6b3e018d07a42e39065208f94be35ed3&page=${Y}&include_adult=false`)).json();console.log(P),i(P.results||[]),E(P.total_pages)}catch{h(!0)}finally{r(!1)}}return S.useEffect(()=>{if(r(!0),_.pathname==="/"||D||j||n.length==0){const Y=setTimeout(()=>{O(g)},1e3);return()=>clearTimeout(Y)}},[_.pathname,n.length,g]),S.useEffect(()=>{const Y=localStorage.getItem("myList");Y&&m(JSON.parse(Y))},[]),S.useEffect(()=>{if(!s){d(100);return}d(0);const Y=setInterval(()=>{d(B=>B<90?B+1:B)},30);return()=>clearInterval(Y)},[s]),V.jsxs(V.Fragment,{children:[!D&&V.jsx(z_,{setMovies:i,setLoading:r}),V.jsx(Cr,{mode:"wait",children:V.jsxs(Rx,{location:_,children:[V.jsx(mr,{path:"/",element:V.jsxs(ke.div,{initial:{opacity:0,y:20}
61,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4},children:[!C&&V.jsx(KA,{movies:n}),V.jsxs("div",{className:"px-8 pt-16 pb-8 text-center bg-black from-black via-black/60 to-transparent",children:[V.jsx("h2",{className:"text-4xl font-extrabold text-white tracking-[0.2em] uppercase drop-shadow-lg",children:C?"Search Results":"Now Playing"}),V.jsx("div",{className:"w-24 h-1 mx-auto mt-2 mb-4 bg-red-600 opacity-80 rounded-full"}),V.jsx("p",{className:"text-white/70 mt-2 text-sm font-light max-w-md mx-auto tracking-wide drop-shadow-sm",children:C?`Results for “${R.get("query")}”`:"Browse our top movies currently in theaters — discover the best picks for your next cinematic experience."})]}),V.jsx($A,{movies:n,page:g,setPage:b,totalPages:x,loading:s,progress:u,error:f})]},_.pathname)}),V.jsx(mr,{path:"/movie/:id",element:V.jsx(ke.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0},transition:{duration:.5},children:V.jsx(O_,{setMyList:m,myList:p})},_.pathname)}),V.jsx(mr,{path:"/my-list",element:V.jsx(ke.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4},children:V.jsx(N_,{myList:p})},_.pathname)})]})}),!D&&V.jsx(V_,{})]})}jb.createRoot(document.getElementById("root")).render(V.jsx(S.StrictMode,{children:V.jsx(Wx,{children:V.jsx(j_,{})})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.