Files
SAE-BUT2-backend/public/assets/index-F5-D1tpH.js
T
2025-11-29 01:48:20 +01:00

62 lines
295 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const d of s)if(d.type==="childList")for(const v of d.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&o(v)}).observe(document,{childList:!0,subtree:!0});function f(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerPolicy&&(d.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?d.credentials="include":s.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(s){if(s.ep)return;s.ep=!0;const d=f(s);fetch(s.href,d)}})();var Vo={exports:{}},Gu={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var am;function my(){if(am)return Gu;am=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function f(o,s,d){var v=null;if(d!==void 0&&(v=""+d),s.key!==void 0&&(v=""+s.key),"key"in s){d={};for(var g in s)g!=="key"&&(d[g]=s[g])}else d=s;return s=d.ref,{$$typeof:i,type:o,key:v,ref:s!==void 0?s:null,props:d}}return Gu.Fragment=r,Gu.jsx=f,Gu.jsxs=f,Gu}var nm;function vy(){return nm||(nm=1,Vo.exports=my()),Vo.exports}var T=vy(),Zo={exports:{}},me={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var um;function yy(){if(um)return me;um=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),N=Symbol.iterator;function B(S){return S===null||typeof S!="object"?null:(S=N&&S[N]||S["@@iterator"],typeof S=="function"?S:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,J={};function Q(S,L,Z){this.props=S,this.context=L,this.refs=J,this.updater=Z||G}Q.prototype.isReactComponent={},Q.prototype.setState=function(S,L){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,L,"setState")},Q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=Q.prototype;function ne(S,L,Z){this.props=S,this.context=L,this.refs=J,this.updater=Z||G}var Ce=ne.prototype=new I;Ce.constructor=ne,k(Ce,Q.prototype),Ce.isPureReactComponent=!0;var se=Array.isArray;function j(){}var W={H:null,A:null,T:null,S:null},pe=Object.prototype.hasOwnProperty;function he(S,L,Z){var P=Z.ref;return{$$typeof:i,type:S,key:L,ref:P!==void 0?P:null,props:Z}}function Be(S,L){return he(S.type,L,S.props)}function ke(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function et(S){var L={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Z){return L[Z]})}var Oe=/\/+/g;function Ne(S,L){return typeof S=="object"&&S!==null&&S.key!=null?et(""+S.key):L.toString(36)}function Fe(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(j,j):(S.status="pending",S.then(function(L){S.status==="pending"&&(S.status="fulfilled",S.value=L)},function(L){S.status==="pending"&&(S.status="rejected",S.reason=L)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function D(S,L,Z,P,de){var ve=typeof S;(ve==="undefined"||ve==="boolean")&&(S=null);var je=!1;if(S===null)je=!0;else switch(ve){case"bigint":case"string":case"number":je=!0;break;case"object":switch(S.$$typeof){case i:case r:je=!0;break;case x:return je=S._init,D(je(S._payload),L,Z,P,de)}}if(je)return de=de(S),je=P===""?"."+Ne(S,0):P,se(de)?(Z="",je!=null&&(Z=je.replace(Oe,"$&/")+"/"),D(de,L,Z,"",function(tt){return tt})):de!=null&&(ke(de)&&(de=Be(de,Z+(de.key==null||S&&S.key===de.key?"":(""+de.key).replace(Oe,"$&/")+"/")+je)),L.push(de)),1;je=0;var yt=P===""?".":P+":";if(se(S))for(var Ie=0;Ie<S.length;Ie++)P=S[Ie],ve=yt+Ne(P,Ie),je+=D(P,L,Z,ve,de);else if(Ie=B(S),typeof Ie=="function")for(S=Ie.call(S),Ie=0;!(P=S.next()).done;)P=P.value,ve=yt+Ne(P,Ie++),je+=D(P,L,Z,ve,de);else if(ve==="object"){if(typeof S.then=="function")return D(Fe(S),L,Z,P,de);throw L=String(S),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return je}function V(S,L,Z){if(S==null)return S;var P=[],de=0;return D(S,P,"","",function(ve){return L.call(Z,ve,de++)}),P}function te(S){if(S._status===-1){var L=S._result;L=L(),L.then(function(Z){(S._status===0||S._status===-1)&&(S._status=1,S._result=Z)},function(Z){(S._status===0||S._status===-1)&&(S._status=2,S._result=Z)}),S._status===-1&&(S._status=0,S._result=L)}if(S._status===1)return S._result.default;throw S._result}var Se=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ye={map:V,forEach:function(S,L,Z){V(S,function(){L.apply(this,arguments)},Z)},count:function(S){var L=0;return V(S,function(){L++}),L},toArray:function(S){return V(S,function(L){return L})||[]},only:function(S){if(!ke(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return me.Activity=E,me.Children=ye,me.Component=Q,me.Fragment=f,me.Profiler=s,me.PureComponent=ne,me.StrictMode=o,me.Suspense=y,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,me.__COMPILER_RUNTIME={__proto__:null,c:function(S){return W.H.useMemoCache(S)}},me.cache=function(S){return function(){return S.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(S,L,Z){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var P=k({},S.props),de=S.key;if(L!=null)for(ve in L.key!==void 0&&(de=""+L.key),L)!pe.call(L,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&L.ref===void 0||(P[ve]=L[ve]);var ve=arguments.length-2;if(ve===1)P.children=Z;else if(1<ve){for(var je=Array(ve),yt=0;yt<ve;yt++)je[yt]=arguments[yt+2];P.children=je}return he(S.type,de,P)},me.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},me.createElement=function(S,L,Z){var P,de={},ve=null;if(L!=null)for(P in L.key!==void 0&&(ve=""+L.key),L)pe.call(L,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(de[P]=L[P]);var je=arguments.length-2;if(je===1)de.children=Z;else if(1<je){for(var yt=Array(je),Ie=0;Ie<je;Ie++)yt[Ie]=arguments[Ie+2];de.children=yt}if(S&&S.defaultProps)for(P in je=S.defaultProps,je)de[P]===void 0&&(de[P]=je[P]);return he(S,ve,de)},me.createRef=function(){return{current:null}},me.forwardRef=function(S){return{$$typeof:g,render:S}},me.isValidElement=ke,me.lazy=function(S){return{$$typeof:x,_payload:{_status:-1,_result:S},_init:te}},me.memo=function(S,L){return{$$typeof:m,type:S,compare:L===void 0?null:L}},me.startTransition=function(S){var L=W.T,Z={};W.T=Z;try{var P=S(),de=W.S;de!==null&&de(Z,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(j,Se)}catch(ve){Se(ve)}finally{L!==null&&Z.types!==null&&(L.types=Z.types),W.T=L}},me.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},me.use=function(S){return W.H.use(S)},me.useActionState=function(S,L,Z){return W.H.useActionState(S,L,Z)},me.useCallback=function(S,L){return W.H.useCallback(S,L)},me.useContext=function(S){return W.H.useContext(S)},me.useDebugValue=function(){},me.useDeferredValue=function(S,L){return W.H.useDeferredValue(S,L)},me.useEffect=function(S,L){return W.H.useEffect(S,L)},me.useEffectEvent=function(S){return W.H.useEffectEvent(S)},me.useId=function(){return W.H.useId()},me.useImperativeHandle=function(S,L,Z){return W.H.useImperativeHandle(S,L,Z)},me.useInsertionEffect=function(S,L){return W.H.useInsertionEffect(S,L)},me.useLayoutEffect=function(S,L){return W.H.useLayoutEffect(S,L)},me.useMemo=function(S,L){return W.H.useMemo(S,L)},me.useOptimistic=function(S,L){return W.H.useOptimistic(S,L)},me.useReducer=function(S,L,Z){return W.H.useReducer(S,L,Z)},me.useRef=function(S){return W.H.useRef(S)},me.useState=function(S){return W.H.useState(S)},me.useSyncExternalStore=function(S,L,Z){return W.H.useSyncExternalStore(S,L,Z)},me.useTransition=function(){return W.H.useTransition()},me.version="19.2.0",me}var im;function uf(){return im||(im=1,Zo.exports=yy()),Zo.exports}var C=uf(),Qo={exports:{}},Xu={},Ko={exports:{}},Jo={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var rm;function gy(){return rm||(rm=1,(function(i){function r(D,V){var te=D.length;D.push(V);e:for(;0<te;){var Se=te-1>>>1,ye=D[Se];if(0<s(ye,V))D[Se]=V,D[te]=ye,te=Se;else break e}}function f(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var V=D[0],te=D.pop();if(te!==V){D[0]=te;e:for(var Se=0,ye=D.length,S=ye>>>1;Se<S;){var L=2*(Se+1)-1,Z=D[L],P=L+1,de=D[P];if(0>s(Z,te))P<ye&&0>s(de,Z)?(D[Se]=de,D[P]=te,Se=P):(D[Se]=Z,D[L]=te,Se=L);else if(P<ye&&0>s(de,te))D[Se]=de,D[P]=te,Se=P;else break e}}return V}function s(D,V){var te=D.sortIndex-V.sortIndex;return te!==0?te:D.id-V.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var v=Date,g=v.now();i.unstable_now=function(){return v.now()-g}}var y=[],m=[],x=1,E=null,N=3,B=!1,G=!1,k=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,ne=typeof setImmediate<"u"?setImmediate:null;function Ce(D){for(var V=f(m);V!==null;){if(V.callback===null)o(m);else if(V.startTime<=D)o(m),V.sortIndex=V.expirationTime,r(y,V);else break;V=f(m)}}function se(D){if(k=!1,Ce(D),!G)if(f(y)!==null)G=!0,j||(j=!0,et());else{var V=f(m);V!==null&&Fe(se,V.startTime-D)}}var j=!1,W=-1,pe=5,he=-1;function Be(){return J?!0:!(i.unstable_now()-he<pe)}function ke(){if(J=!1,j){var D=i.unstable_now();he=D;var V=!0;try{e:{G=!1,k&&(k=!1,I(W),W=-1),B=!0;var te=N;try{t:{for(Ce(D),E=f(y);E!==null&&!(E.expirationTime>D&&Be());){var Se=E.callback;if(typeof Se=="function"){E.callback=null,N=E.priorityLevel;var ye=Se(E.expirationTime<=D);if(D=i.unstable_now(),typeof ye=="function"){E.callback=ye,Ce(D),V=!0;break t}E===f(y)&&o(y),Ce(D)}else o(y);E=f(y)}if(E!==null)V=!0;else{var S=f(m);S!==null&&Fe(se,S.startTime-D),V=!1}}break e}finally{E=null,N=te,B=!1}V=void 0}}finally{V?et():j=!1}}}var et;if(typeof ne=="function")et=function(){ne(ke)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,Ne=Oe.port2;Oe.port1.onmessage=ke,et=function(){Ne.postMessage(null)}}else et=function(){Q(ke,0)};function Fe(D,V){W=Q(function(){D(i.unstable_now())},V)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return N},i.unstable_next=function(D){switch(N){case 1:case 2:case 3:var V=3;break;default:V=N}var te=N;N=V;try{return D()}finally{N=te}},i.unstable_requestPaint=function(){J=!0},i.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var te=N;N=D;try{return V()}finally{N=te}},i.unstable_scheduleCallback=function(D,V,te){var Se=i.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Se+te:Se):te=Se,D){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=te+ye,D={id:x++,callback:V,priorityLevel:D,startTime:te,expirationTime:ye,sortIndex:-1},te>Se?(D.sortIndex=te,r(m,D),f(y)===null&&D===f(m)&&(k?(I(W),W=-1):k=!0,Fe(se,te-Se))):(D.sortIndex=ye,r(y,D),G||B||(G=!0,j||(j=!0,et()))),D},i.unstable_shouldYield=Be,i.unstable_wrapCallback=function(D){var V=N;return function(){var te=N;N=V;try{return D.apply(this,arguments)}finally{N=te}}}})(Jo)),Jo}var cm;function py(){return cm||(cm=1,Ko.exports=gy()),Ko.exports}var $o={exports:{}},zt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var om;function by(){if(om)return zt;om=1;var i=uf();function r(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={d:{f,r:function(){throw Error(r(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},s=Symbol.for("react.portal");function d(y,m,x){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:E==null?null:""+E,children:y,containerInfo:m,implementation:x}}var v=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,zt.createPortal=function(y,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return d(y,m,null,x)},zt.flushSync=function(y){var m=v.T,x=o.p;try{if(v.T=null,o.p=2,y)return y()}finally{v.T=m,o.p=x,o.d.f()}},zt.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(y,m))},zt.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},zt.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var x=m.as,E=g(x,m.crossOrigin),N=typeof m.integrity=="string"?m.integrity:void 0,B=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?o.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:E,integrity:N,fetchPriority:B}):x==="script"&&o.d.X(y,{crossOrigin:E,integrity:N,fetchPriority:B,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},zt.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=g(m.as,m.crossOrigin);o.d.M(y,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(y)},zt.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,E=g(x,m.crossOrigin);o.d.L(y,x,{crossOrigin:E,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})}},zt.preloadModule=function(y,m){if(typeof y=="string")if(m){var x=g(m.as,m.crossOrigin);o.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(y)},zt.requestFormReset=function(y){o.d.r(y)},zt.unstable_batchedUpdates=function(y,m){return y(m)},zt.useFormState=function(y,m,x){return v.H.useFormState(y,m,x)},zt.useFormStatus=function(){return v.H.useHostTransitionStatus()},zt.version="19.2.0",zt}var fm;function Sy(){if(fm)return $o.exports;fm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),$o.exports=by(),$o.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sm;function Ey(){if(sm)return Xu;sm=1;var i=py(),r=uf(),f=Sy();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(o(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return y(n),e;if(u===a)return y(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,h=n.child;h;){if(h===l){c=!0,l=n,a=u;break}if(h===a){c=!0,a=n,l=u;break}h=h.sibling}if(!c){for(h=u.child;h;){if(h===l){c=!0,l=u,a=n;break}if(h===a){c=!0,a=u,l=n;break}h=h.sibling}if(!c)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,N=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),Ce=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),pe=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Be=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function et(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var Oe=Symbol.for("react.client.reference");function Ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case Q:return"Profiler";case J:return"StrictMode";case se:return"Suspense";case j:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case G:return"Portal";case ne:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case Ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case pe:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}var Fe=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},Se=[],ye=-1;function S(e){return{current:e}}function L(e){0>ye||(e.current=Se[ye],Se[ye]=null,ye--)}function Z(e,t){ye++,Se[ye]=e.current,e.current=t}var P=S(null),de=S(null),ve=S(null),je=S(null);function yt(e,t){switch(Z(ve,t),Z(de,e),Z(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mh(t),e=Ch(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(P),Z(P,e)}function Ie(){L(P),L(de),L(ve)}function tt(e){e.memoizedState!==null&&Z(je,e);var t=P.current,l=Ch(t,e.type);t!==l&&(Z(de,e),Z(P,l))}function fl(e){de.current===e&&(L(P),L(de)),je.current===e&&(L(je),Hu._currentValue=te)}var an,ei;function Mt(e){if(an===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);an=t&&t[1]||"",ei=-1<l.stack.indexOf(`
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+an+e+ei}var Jn=!1;function $n(e,t){if(!e||Jn)return"";Jn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(w){var O=w}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(w){O=w}e.call(Y.prototype)}}else{try{throw Error()}catch(w){O=w}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(w){if(w&&O&&typeof w.stack=="string")return[w.stack,O.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],h=u[1];if(c&&h){var p=c.split(`
`),A=h.split(`
`);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===A.length)for(a=p.length-1,n=A.length-1;1<=a&&0<=n&&p[a]!==A[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==A[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==A[n]){var H=`
`+p[a].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=a&&0<=n);break}}}finally{Jn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Mt(l):""}function ti(e,t){switch(e.tag){case 26:case 27:case 5:return Mt(e.type);case 16:return Mt("Lazy");case 13:return e.child!==t&&t!==null?Mt("Suspense Fallback"):Mt("Suspense");case 19:return Mt("SuspenseList");case 0:case 15:return $n(e.type,!1);case 11:return $n(e.type.render,!1);case 1:return $n(e.type,!0);case 31:return Mt("Activity");default:return""}}function li(e){try{var t="",l=null;do t+=ti(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var kn=Object.prototype.hasOwnProperty,Fn=i.unstable_scheduleCallback,Wn=i.unstable_cancelCallback,Ol=i.unstable_shouldYield,Na=i.unstable_requestPaint,_t=i.unstable_now,Pn=i.unstable_getCurrentPriorityLevel,Kt=i.unstable_ImmediatePriority,Jt=i.unstable_UserBlockingPriority,ja=i.unstable_NormalPriority,jr=i.unstable_LowPriority,nn=i.unstable_IdlePriority,Ur=i.log,sl=i.unstable_setDisableYieldValue,Il=null,Tt=null;function dl(e){if(typeof Ur=="function"&&sl(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(Il,e)}catch{}}var Ct=Math.clz32?Math.clz32:ni,ai=Math.log,un=Math.LN2;function ni(e){return e>>>=0,e===0?32:31-(ai(e)/un|0)|0}var ea=256,rn=262144,Ua=4194304;function Nl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function wa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~u,a!==0?n=Nl(a):(c&=h,c!==0?n=Nl(c):l||(l=h&~e,l!==0&&(n=Nl(l))))):(h=a&~u,h!==0?n=Nl(h):c!==0?n=Nl(c):l||(l=a&~e,l!==0&&(n=Nl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function _l(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function cn(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 ui(){var e=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),e}function In(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function b(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function M(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,p=e.expirationTimes,A=e.hiddenUpdates;for(l=c&~l;0<l;){var H=31-Ct(l),Y=1<<H;h[H]=0,p[H]=-1;var O=A[H];if(O!==null)for(A[H]=null,H=0;H<O.length;H++){var w=O[H];w!==null&&(w.lane&=-536870913)}l&=~Y}a!==0&&U(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function U(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function X(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ct(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function K(e,t){var l=t&-t;return l=(l&42)!==0?1:ue(l),(l&(e.suspendedLanes|t))!==0?0:l}function ue(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ie(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function le(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Fh(e.type))}function re(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var ce=Math.random().toString(36).slice(2),$="__reactFiber$"+ce,F="__reactProps$"+ce,Ee="__reactContainer$"+ce,Ge="__reactEvents$"+ce,ct="__reactListeners$"+ce,gt="__reactHandles$"+ce,Ke="__reactResources$"+ce,He="__reactMarker$"+ce;function hl(e){delete e[$],delete e[F],delete e[Ge],delete e[ct],delete e[gt]}function $t(e){var t=e[$];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ee]||l[$]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Uh(e);e!==null;){if(l=e[$])return l;e=Uh(e)}return t}e=l,l=e.parentNode}return null}function Rt(e){if(e=e[$]||e[Ee]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Tl(e){var t=e[Ke];return t||(t=e[Ke]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[He]=!0}var xl=new Set,Ba={};function kt(e,t){_e(e,t),_e(e+"Capture",t)}function _e(e,t){for(Ba[e]=t,e=0;e<t.length;e++)xl.add(t[e])}var mt=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]*$"),jl={},zl={};function nt(e){return kn.call(zl,e)?!0:kn.call(jl,e)?!1:mt.test(e)?zl[e]=!0:(jl[e]=!0,!1)}function Ul(e,t,l){if(nt(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ha(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function ml(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rv(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wr(e){if(!e._valueTracker){var t=pf(e)?"checked":"value";e._valueTracker=rv(e,t,""+e[t])}}function bf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=pf(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ii(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var cv=/[\n"\\]/g;function Wt(e){return e.replace(cv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Br(e,t,l,a,n,u,c,h){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Hr(e,c,Ft(t)):l!=null?Hr(e,c,Ft(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Ft(h):e.removeAttribute("name")}function Sf(e,t,l,a,n,u,c,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){wr(e);return}l=l!=null?""+Ft(l):"",t=t!=null?""+Ft(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),wr(e)}function Hr(e,t,l){t==="number"&&ii(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function on(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ft(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Ef(e,t,l){if(t!=null&&(t=""+Ft(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ft(l):""}function _f(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Fe(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ft(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),wr(e)}function fn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var ov=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 Tf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||ov.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function xf(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Tf(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Tf(e,u,t[u])}function Lr(e){if(e.indexOf("-")===-1)return!1;switch(e){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 fv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),sv=/^[\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 ri(e){return sv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function wl(){}var qr=null;function Yr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,dn=null;function zf(e){var t=Rt(e);if(t&&(e=t.stateNode)){var l=e[F]||null;e:switch(e=t.stateNode,t.type){case"input":if(Br(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Wt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[F]||null;if(!n)throw Error(o(90));Br(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&bf(a)}break e;case"textarea":Ef(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&on(e,!!l.multiple,t,!1)}}}var Gr=!1;function Mf(e,t,l){if(Gr)return e(t,l);Gr=!0;try{var a=e(t);return a}finally{if(Gr=!1,(sn!==null||dn!==null)&&($i(),sn&&(t=sn,e=dn,dn=sn=null,zf(t),e)))for(t=0;t<e.length;t++)zf(e[t])}}function eu(e,t){var l=e.stateNode;if(l===null)return null;var a=l[F]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Bl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xr=!1;if(Bl)try{var tu={};Object.defineProperty(tu,"passive",{get:function(){Xr=!0}}),window.addEventListener("test",tu,tu),window.removeEventListener("test",tu,tu)}catch{Xr=!1}var ta=null,Vr=null,ci=null;function Cf(){if(ci)return ci;var e,t=Vr,l=t.length,a,n="value"in ta?ta.value:ta.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return ci=n.slice(e,1<a?1-a:void 0)}function oi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fi(){return!0}function Rf(){return!1}function Dt(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?fi:Rf,this.isPropagationStopped=Rf,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=fi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=fi)},persist:function(){},isPersistent:fi}),t}var La={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},si=Dt(La),lu=E({},La,{view:0,detail:0}),dv=Dt(lu),Zr,Qr,au,di=E({},lu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==au&&(au&&e.type==="mousemove"?(Zr=e.screenX-au.screenX,Qr=e.screenY-au.screenY):Qr=Zr=0,au=e),Zr)},movementY:function(e){return"movementY"in e?e.movementY:Qr}}),Af=Dt(di),hv=E({},di,{dataTransfer:0}),mv=Dt(hv),vv=E({},lu,{relatedTarget:0}),Kr=Dt(vv),yv=E({},La,{animationName:0,elapsedTime:0,pseudoElement:0}),gv=Dt(yv),pv=E({},La,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bv=Dt(pv),Sv=E({},La,{data:0}),Df=Dt(Sv),Ev={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_v={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"},Tv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tv[e])?!!t[e]:!1}function Jr(){return xv}var zv=E({},lu,{key:function(e){if(e.key){var t=Ev[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_v[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jr,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mv=Dt(zv),Cv=E({},di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=Dt(Cv),Rv=E({},lu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jr}),Av=Dt(Rv),Dv=E({},La,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ov=Dt(Dv),Nv=E({},di,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jv=Dt(Nv),Uv=E({},La,{newState:0,oldState:0}),wv=Dt(Uv),Bv=[9,13,27,32],$r=Bl&&"CompositionEvent"in window,nu=null;Bl&&"documentMode"in document&&(nu=document.documentMode);var Hv=Bl&&"TextEvent"in window&&!nu,Nf=Bl&&(!$r||nu&&8<nu&&11>=nu),jf=" ",Uf=!1;function wf(e,t){switch(e){case"keyup":return Bv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hn=!1;function Lv(e,t){switch(e){case"compositionend":return Bf(t);case"keypress":return t.which!==32?null:(Uf=!0,jf);case"textInput":return e=t.data,e===jf&&Uf?null:e;default:return null}}function qv(e,t){if(hn)return e==="compositionend"||!$r&&wf(e,t)?(e=Cf(),ci=Vr=ta=null,hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nf&&t.locale!=="ko"?null:t.data;default:return null}}var Yv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Yv[e.type]:t==="textarea"}function Lf(e,t,l,a){sn?dn?dn.push(a):dn=[a]:sn=a,t=tr(t,"onChange"),0<t.length&&(l=new si("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var uu=null,iu=null;function Gv(e){Sh(e,0)}function hi(e){var t=xt(e);if(bf(t))return e}function qf(e,t){if(e==="change")return t}var Yf=!1;if(Bl){var kr;if(Bl){var Fr="oninput"in document;if(!Fr){var Gf=document.createElement("div");Gf.setAttribute("oninput","return;"),Fr=typeof Gf.oninput=="function"}kr=Fr}else kr=!1;Yf=kr&&(!document.documentMode||9<document.documentMode)}function Xf(){uu&&(uu.detachEvent("onpropertychange",Vf),iu=uu=null)}function Vf(e){if(e.propertyName==="value"&&hi(iu)){var t=[];Lf(t,iu,e,Yr(e)),Mf(Gv,t)}}function Xv(e,t,l){e==="focusin"?(Xf(),uu=t,iu=l,uu.attachEvent("onpropertychange",Vf)):e==="focusout"&&Xf()}function Vv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hi(iu)}function Zv(e,t){if(e==="click")return hi(t)}function Qv(e,t){if(e==="input"||e==="change")return hi(t)}function Kv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:Kv;function ru(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!kn.call(t,n)||!Lt(e[n],t[n]))return!1}return!0}function Zf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qf(e,t){var l=Zf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Zf(l)}}function Kf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ii(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ii(e.document)}return t}function Wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Jv=Bl&&"documentMode"in document&&11>=document.documentMode,mn=null,Pr=null,cu=null,Ir=!1;function $f(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ir||mn==null||mn!==ii(a)||(a=mn,"selectionStart"in a&&Wr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),cu&&ru(cu,a)||(cu=a,a=tr(Pr,"onSelect"),0<a.length&&(t=new si("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=mn)))}function qa(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var vn={animationend:qa("Animation","AnimationEnd"),animationiteration:qa("Animation","AnimationIteration"),animationstart:qa("Animation","AnimationStart"),transitionrun:qa("Transition","TransitionRun"),transitionstart:qa("Transition","TransitionStart"),transitioncancel:qa("Transition","TransitionCancel"),transitionend:qa("Transition","TransitionEnd")},ec={},kf={};Bl&&(kf=document.createElement("div").style,"AnimationEvent"in window||(delete vn.animationend.animation,delete vn.animationiteration.animation,delete vn.animationstart.animation),"TransitionEvent"in window||delete vn.transitionend.transition);function Ya(e){if(ec[e])return ec[e];if(!vn[e])return e;var t=vn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in kf)return ec[e]=t[l];return e}var Ff=Ya("animationend"),Wf=Ya("animationiteration"),Pf=Ya("animationstart"),$v=Ya("transitionrun"),kv=Ya("transitionstart"),Fv=Ya("transitioncancel"),If=Ya("transitionend"),es=new Map,tc="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(" ");tc.push("scrollEnd");function vl(e,t){es.set(e,t),kt(t,[e])}var mi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Pt=[],yn=0,lc=0;function vi(){for(var e=yn,t=lc=yn=0;t<e;){var l=Pt[t];Pt[t++]=null;var a=Pt[t];Pt[t++]=null;var n=Pt[t];Pt[t++]=null;var u=Pt[t];if(Pt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&ts(l,n,u)}}function yi(e,t,l,a){Pt[yn++]=e,Pt[yn++]=t,Pt[yn++]=l,Pt[yn++]=a,lc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ac(e,t,l,a){return yi(e,t,l,a),gi(e)}function Ga(e,t){return yi(e,null,null,t),gi(e)}function ts(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-Ct(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function gi(e){if(50<Du)throw Du=0,ho=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var gn={};function Wv(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qt(e,t,l,a){return new Wv(e,t,l,a)}function nc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hl(e,t){var l=e.alternate;return l===null?(l=qt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function ls(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pi(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")nc(e)&&(c=1);else if(typeof e=="string")c=ly(e,l,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=qt(31,l,t,n),e.elementType=he,e.lanes=u,e;case k:return Xa(l.children,n,u,t);case J:c=8,n|=24;break;case Q:return e=qt(12,l,t,n|2),e.elementType=Q,e.lanes=u,e;case se:return e=qt(13,l,t,n),e.elementType=se,e.lanes=u,e;case j:return e=qt(19,l,t,n),e.elementType=j,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:c=10;break e;case I:c=9;break e;case Ce:c=11;break e;case W:c=14;break e;case pe:c=16,a=null;break e}c=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=qt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Xa(e,t,l,a){return e=qt(7,e,a,t),e.lanes=l,e}function uc(e,t,l){return e=qt(6,e,null,t),e.lanes=l,e}function as(e){var t=qt(18,null,null,0);return t.stateNode=e,t}function ic(e,t,l){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ns=new WeakMap;function It(e,t){if(typeof e=="object"&&e!==null){var l=ns.get(e);return l!==void 0?l:(t={value:e,source:t,stack:li(t)},ns.set(e,t),t)}return{value:e,source:t,stack:li(t)}}var pn=[],bn=0,bi=null,ou=0,el=[],tl=0,la=null,Ml=1,Cl="";function Ll(e,t){pn[bn++]=ou,pn[bn++]=bi,bi=e,ou=t}function us(e,t,l){el[tl++]=Ml,el[tl++]=Cl,el[tl++]=la,la=e;var a=Ml;e=Cl;var n=32-Ct(a)-1;a&=~(1<<n),l+=1;var u=32-Ct(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Ml=1<<32-Ct(t)+n|l<<n|a,Cl=u+e}else Ml=1<<u|l<<n|a,Cl=e}function rc(e){e.return!==null&&(Ll(e,1),us(e,1,0))}function cc(e){for(;e===bi;)bi=pn[--bn],pn[bn]=null,ou=pn[--bn],pn[bn]=null;for(;e===la;)la=el[--tl],el[tl]=null,Cl=el[--tl],el[tl]=null,Ml=el[--tl],el[tl]=null}function is(e,t){el[tl++]=Ml,el[tl++]=Cl,el[tl++]=la,Ml=t.id,Cl=t.overflow,la=e}var pt=null,Je=null,De=!1,aa=null,ll=!1,oc=Error(o(519));function na(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fu(It(t,e)),oc}function rs(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[$]=e,t[F]=a,l){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(l=0;l<Nu.length;l++)ze(Nu[l],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":ze("invalid",t),Sf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ze("invalid",t);break;case"textarea":ze("invalid",t),_f(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||xh(t.textContent,l)?(a.popover!=null&&(ze("beforetoggle",t),ze("toggle",t)),a.onScroll!=null&&ze("scroll",t),a.onScrollEnd!=null&&ze("scrollend",t),a.onClick!=null&&(t.onclick=wl),t=!0):t=!1,t||na(e,!0)}function cs(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 31:case 13:ll=!1;return;case 27:case 3:ll=!0;return;default:pt=pt.return}}function Sn(e){if(e!==pt)return!1;if(!De)return cs(e),De=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ro(e.type,e.memoizedProps)),l=!l),l&&Je&&na(e),cs(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Je=jh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Je=jh(e)}else t===27?(t=Je,pa(e.type)?(e=jo,jo=null,Je=e):Je=t):Je=pt?nl(e.stateNode.nextSibling):null;return!0}function Va(){Je=pt=null,De=!1}function fc(){var e=aa;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),aa=null),e}function fu(e){aa===null?aa=[e]:aa.push(e)}var sc=S(null),Za=null,ql=null;function ua(e,t,l){Z(sc,t._currentValue),t._currentValue=l}function Yl(e){e._currentValue=sc.current,L(sc)}function dc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function hc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var h=u;u=n;for(var p=0;p<t.length;p++)if(h.context===t[p]){u.lanes|=l,h=u.alternate,h!==null&&(h.lanes|=l),dc(u.return,l,e),a||(c=null);break e}u=h.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(o(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),dc(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function En(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var h=n.type;Lt(n.pendingProps.value,c.value)||(e!==null?e.push(h):e=[h])}}else if(n===je.current){if(c=n.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Hu):e=[Hu])}n=n.return}e!==null&&hc(t,e,l,a),t.flags|=262144}function Si(e){for(e=e.firstContext;e!==null;){if(!Lt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qa(e){Za=e,ql=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bt(e){return os(Za,e)}function Ei(e,t){return Za===null&&Qa(e),os(e,t)}function os(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ql===null){if(e===null)throw Error(o(308));ql=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ql=ql.next=t;return l}var Pv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Iv=i.unstable_scheduleCallback,e0=i.unstable_NormalPriority,ot={$$typeof:ne,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mc(){return{controller:new Pv,data:new Map,refCount:0}}function su(e){e.refCount--,e.refCount===0&&Iv(e0,function(){e.controller.abort()})}var du=null,vc=0,_n=0,Tn=null;function t0(e,t){if(du===null){var l=du=[];vc=0,_n=bo(),Tn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return vc++,t.then(fs,fs),t}function fs(){if(--vc===0&&du!==null){Tn!==null&&(Tn.status="fulfilled");var e=du;du=null,_n=0,Tn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function l0(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ss=D.S;D.S=function(e,t){$d=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&t0(e,t),ss!==null&&ss(e,t)};var Ka=S(null);function yc(){var e=Ka.current;return e!==null?e:Qe.pooledCache}function _i(e,t){t===null?Z(Ka,Ka.current):Z(Ka,t.pool)}function ds(){var e=yc();return e===null?null:{parent:ot._currentValue,pool:e}}var xn=Error(o(460)),gc=Error(o(474)),Ti=Error(o(542)),xi={then:function(){}};function hs(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ms(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(wl,wl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ys(e),e;default:if(typeof t.status=="string")t.then(wl,wl);else{if(e=Qe,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ys(e),e}throw $a=t,xn}}function Ja(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?($a=l,xn):l}}var $a=null;function vs(){if($a===null)throw Error(o(459));var e=$a;return $a=null,e}function ys(e){if(e===xn||e===Ti)throw Error(o(483))}var zn=null,hu=0;function zi(e){var t=hu;return hu+=1,zn===null&&(zn=[]),ms(zn,e,t)}function mu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Mi(e,t){throw t.$$typeof===N?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function gs(e){function t(z,_){if(e){var R=z.deletions;R===null?(z.deletions=[_],z.flags|=16):R.push(_)}}function l(z,_){if(!e)return null;for(;_!==null;)t(z,_),_=_.sibling;return null}function a(z){for(var _=new Map;z!==null;)z.key!==null?_.set(z.key,z):_.set(z.index,z),z=z.sibling;return _}function n(z,_){return z=Hl(z,_),z.index=0,z.sibling=null,z}function u(z,_,R){return z.index=R,e?(R=z.alternate,R!==null?(R=R.index,R<_?(z.flags|=67108866,_):R):(z.flags|=67108866,_)):(z.flags|=1048576,_)}function c(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function h(z,_,R,q){return _===null||_.tag!==6?(_=uc(R,z.mode,q),_.return=z,_):(_=n(_,R),_.return=z,_)}function p(z,_,R,q){var oe=R.type;return oe===k?H(z,_,R.props.children,q,R.key):_!==null&&(_.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===pe&&Ja(oe)===_.type)?(_=n(_,R.props),mu(_,R),_.return=z,_):(_=pi(R.type,R.key,R.props,null,z.mode,q),mu(_,R),_.return=z,_)}function A(z,_,R,q){return _===null||_.tag!==4||_.stateNode.containerInfo!==R.containerInfo||_.stateNode.implementation!==R.implementation?(_=ic(R,z.mode,q),_.return=z,_):(_=n(_,R.children||[]),_.return=z,_)}function H(z,_,R,q,oe){return _===null||_.tag!==7?(_=Xa(R,z.mode,q,oe),_.return=z,_):(_=n(_,R),_.return=z,_)}function Y(z,_,R){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=uc(""+_,z.mode,R),_.return=z,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case B:return R=pi(_.type,_.key,_.props,null,z.mode,R),mu(R,_),R.return=z,R;case G:return _=ic(_,z.mode,R),_.return=z,_;case pe:return _=Ja(_),Y(z,_,R)}if(Fe(_)||et(_))return _=Xa(_,z.mode,R,null),_.return=z,_;if(typeof _.then=="function")return Y(z,zi(_),R);if(_.$$typeof===ne)return Y(z,Ei(z,_),R);Mi(z,_)}return null}function O(z,_,R,q){var oe=_!==null?_.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return oe!==null?null:h(z,_,""+R,q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case B:return R.key===oe?p(z,_,R,q):null;case G:return R.key===oe?A(z,_,R,q):null;case pe:return R=Ja(R),O(z,_,R,q)}if(Fe(R)||et(R))return oe!==null?null:H(z,_,R,q,null);if(typeof R.then=="function")return O(z,_,zi(R),q);if(R.$$typeof===ne)return O(z,_,Ei(z,R),q);Mi(z,R)}return null}function w(z,_,R,q,oe){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return z=z.get(R)||null,h(_,z,""+q,oe);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case B:return z=z.get(q.key===null?R:q.key)||null,p(_,z,q,oe);case G:return z=z.get(q.key===null?R:q.key)||null,A(_,z,q,oe);case pe:return q=Ja(q),w(z,_,R,q,oe)}if(Fe(q)||et(q))return z=z.get(R)||null,H(_,z,q,oe,null);if(typeof q.then=="function")return w(z,_,R,zi(q),oe);if(q.$$typeof===ne)return w(z,_,R,Ei(_,q),oe);Mi(_,q)}return null}function ee(z,_,R,q){for(var oe=null,Ue=null,ae=_,be=_=0,Ae=null;ae!==null&&be<R.length;be++){ae.index>be?(Ae=ae,ae=null):Ae=ae.sibling;var we=O(z,ae,R[be],q);if(we===null){ae===null&&(ae=Ae);break}e&&ae&&we.alternate===null&&t(z,ae),_=u(we,_,be),Ue===null?oe=we:Ue.sibling=we,Ue=we,ae=Ae}if(be===R.length)return l(z,ae),De&&Ll(z,be),oe;if(ae===null){for(;be<R.length;be++)ae=Y(z,R[be],q),ae!==null&&(_=u(ae,_,be),Ue===null?oe=ae:Ue.sibling=ae,Ue=ae);return De&&Ll(z,be),oe}for(ae=a(ae);be<R.length;be++)Ae=w(ae,z,be,R[be],q),Ae!==null&&(e&&Ae.alternate!==null&&ae.delete(Ae.key===null?be:Ae.key),_=u(Ae,_,be),Ue===null?oe=Ae:Ue.sibling=Ae,Ue=Ae);return e&&ae.forEach(function(Ta){return t(z,Ta)}),De&&Ll(z,be),oe}function fe(z,_,R,q){if(R==null)throw Error(o(151));for(var oe=null,Ue=null,ae=_,be=_=0,Ae=null,we=R.next();ae!==null&&!we.done;be++,we=R.next()){ae.index>be?(Ae=ae,ae=null):Ae=ae.sibling;var Ta=O(z,ae,we.value,q);if(Ta===null){ae===null&&(ae=Ae);break}e&&ae&&Ta.alternate===null&&t(z,ae),_=u(Ta,_,be),Ue===null?oe=Ta:Ue.sibling=Ta,Ue=Ta,ae=Ae}if(we.done)return l(z,ae),De&&Ll(z,be),oe;if(ae===null){for(;!we.done;be++,we=R.next())we=Y(z,we.value,q),we!==null&&(_=u(we,_,be),Ue===null?oe=we:Ue.sibling=we,Ue=we);return De&&Ll(z,be),oe}for(ae=a(ae);!we.done;be++,we=R.next())we=w(ae,z,be,we.value,q),we!==null&&(e&&we.alternate!==null&&ae.delete(we.key===null?be:we.key),_=u(we,_,be),Ue===null?oe=we:Ue.sibling=we,Ue=we);return e&&ae.forEach(function(hy){return t(z,hy)}),De&&Ll(z,be),oe}function Ze(z,_,R,q){if(typeof R=="object"&&R!==null&&R.type===k&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case B:e:{for(var oe=R.key;_!==null;){if(_.key===oe){if(oe=R.type,oe===k){if(_.tag===7){l(z,_.sibling),q=n(_,R.props.children),q.return=z,z=q;break e}}else if(_.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===pe&&Ja(oe)===_.type){l(z,_.sibling),q=n(_,R.props),mu(q,R),q.return=z,z=q;break e}l(z,_);break}else t(z,_);_=_.sibling}R.type===k?(q=Xa(R.props.children,z.mode,q,R.key),q.return=z,z=q):(q=pi(R.type,R.key,R.props,null,z.mode,q),mu(q,R),q.return=z,z=q)}return c(z);case G:e:{for(oe=R.key;_!==null;){if(_.key===oe)if(_.tag===4&&_.stateNode.containerInfo===R.containerInfo&&_.stateNode.implementation===R.implementation){l(z,_.sibling),q=n(_,R.children||[]),q.return=z,z=q;break e}else{l(z,_);break}else t(z,_);_=_.sibling}q=ic(R,z.mode,q),q.return=z,z=q}return c(z);case pe:return R=Ja(R),Ze(z,_,R,q)}if(Fe(R))return ee(z,_,R,q);if(et(R)){if(oe=et(R),typeof oe!="function")throw Error(o(150));return R=oe.call(R),fe(z,_,R,q)}if(typeof R.then=="function")return Ze(z,_,zi(R),q);if(R.$$typeof===ne)return Ze(z,_,Ei(z,R),q);Mi(z,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,_!==null&&_.tag===6?(l(z,_.sibling),q=n(_,R),q.return=z,z=q):(l(z,_),q=uc(R,z.mode,q),q.return=z,z=q),c(z)):l(z,_)}return function(z,_,R,q){try{hu=0;var oe=Ze(z,_,R,q);return zn=null,oe}catch(ae){if(ae===xn||ae===Ti)throw ae;var Ue=qt(29,ae,null,z.mode);return Ue.lanes=q,Ue.return=z,Ue}finally{}}}var ka=gs(!0),ps=gs(!1),ia=!1;function pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ca(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Le&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=gi(e),ts(e,null,l),t}return yi(e,a,t,l),gi(e)}function vu(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,X(e,l)}}function Sc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Ec=!1;function yu(){if(Ec){var e=Tn;if(e!==null)throw e}}function gu(e,t,l,a){Ec=!1;var n=e.updateQueue;ia=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var p=h,A=p.next;p.next=null,c===null?u=A:c.next=A,c=p;var H=e.alternate;H!==null&&(H=H.updateQueue,h=H.lastBaseUpdate,h!==c&&(h===null?H.firstBaseUpdate=A:h.next=A,H.lastBaseUpdate=p))}if(u!==null){var Y=n.baseState;c=0,H=A=p=null,h=u;do{var O=h.lane&-536870913,w=O!==h.lane;if(w?(Re&O)===O:(a&O)===O){O!==0&&O===_n&&(Ec=!0),H!==null&&(H=H.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var ee=e,fe=h;O=t;var Ze=l;switch(fe.tag){case 1:if(ee=fe.payload,typeof ee=="function"){Y=ee.call(Ze,Y,O);break e}Y=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=fe.payload,O=typeof ee=="function"?ee.call(Ze,Y,O):ee,O==null)break e;Y=E({},Y,O);break e;case 2:ia=!0}}O=h.callback,O!==null&&(e.flags|=64,w&&(e.flags|=8192),w=n.callbacks,w===null?n.callbacks=[O]:w.push(O))}else w={lane:O,tag:h.tag,payload:h.payload,callback:h.callback,next:null},H===null?(A=H=w,p=Y):H=H.next=w,c|=O;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;w=h,h=w.next,w.next=null,n.lastBaseUpdate=w,n.shared.pending=null}}while(!0);H===null&&(p=Y),n.baseState=p,n.firstBaseUpdate=A,n.lastBaseUpdate=H,u===null&&(n.shared.lanes=0),ha|=c,e.lanes=c,e.memoizedState=Y}}function bs(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Ss(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)bs(l[e],t)}var Mn=S(null),Ci=S(0);function Es(e,t){e=kl,Z(Ci,e),Z(Mn,t),kl=e|t.baseLanes}function _c(){Z(Ci,kl),Z(Mn,Mn.current)}function Tc(){kl=Ci.current,L(Mn),L(Ci)}var Yt=S(null),al=null;function oa(e){var t=e.alternate;Z(ut,ut.current&1),Z(Yt,e),al===null&&(t===null||Mn.current!==null||t.memoizedState!==null)&&(al=e)}function xc(e){Z(ut,ut.current),Z(Yt,e),al===null&&(al=e)}function _s(e){e.tag===22?(Z(ut,ut.current),Z(Yt,e),al===null&&(al=e)):fa()}function fa(){Z(ut,ut.current),Z(Yt,Yt.current)}function Gt(e){L(Yt),al===e&&(al=null),L(ut)}var ut=S(0);function Ri(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Oo(l)||No(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gl=0,ge=null,Xe=null,ft=null,Ai=!1,Cn=!1,Fa=!1,Di=0,pu=0,Rn=null,a0=0;function lt(){throw Error(o(321))}function zc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Lt(e[l],t[l]))return!1;return!0}function Mc(e,t,l,a,n,u){return Gl=u,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?ud:Gc,Fa=!1,u=l(a,n),Fa=!1,Cn&&(u=xs(t,l,a,n)),Ts(e),u}function Ts(e){D.H=Eu;var t=Xe!==null&&Xe.next!==null;if(Gl=0,ft=Xe=ge=null,Ai=!1,pu=0,Rn=null,t)throw Error(o(300));e===null||st||(e=e.dependencies,e!==null&&Si(e)&&(st=!0))}function xs(e,t,l,a){ge=e;var n=0;do{if(Cn&&(Rn=null),pu=0,Cn=!1,25<=n)throw Error(o(301));if(n+=1,ft=Xe=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=id,u=t(l,a)}while(Cn);return u}function n0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?bu(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(ge.flags|=1024),t}function Cc(){var e=Di!==0;return Di=0,e}function Rc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ac(e){if(Ai){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ai=!1}Gl=0,ft=Xe=ge=null,Cn=!1,pu=Di=0,Rn=null}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?ge.memoizedState=ft=e:ft=ft.next=e,ft}function it(){if(Xe===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=ft===null?ge.memoizedState:ft.next;if(t!==null)ft=t,Xe=e;else{if(e===null)throw ge.alternate===null?Error(o(467)):Error(o(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},ft===null?ge.memoizedState=ft=e:ft=ft.next=e}return ft}function Oi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bu(e){var t=pu;return pu+=1,Rn===null&&(Rn=[]),e=ms(Rn,e,t),t=ge,(ft===null?t.memoizedState:ft.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?ud:Gc),e}function Ni(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bu(e);if(e.$$typeof===ne)return bt(e)}throw Error(o(438,String(e)))}function Dc(e){var t=null,l=ge.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ge.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Oi(),ge.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Be;return t.index++,l}function Xl(e,t){return typeof t=="function"?t(e):t}function ji(e){var t=it();return Oc(t,Xe,e)}function Oc(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var h=c=null,p=null,A=t,H=!1;do{var Y=A.lane&-536870913;if(Y!==A.lane?(Re&Y)===Y:(Gl&Y)===Y){var O=A.revertLane;if(O===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),Y===_n&&(H=!0);else if((Gl&O)===O){A=A.next,O===_n&&(H=!0);continue}else Y={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},p===null?(h=p=Y,c=u):p=p.next=Y,ge.lanes|=O,ha|=O;Y=A.action,Fa&&l(u,Y),u=A.hasEagerState?A.eagerState:l(u,Y)}else O={lane:Y,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},p===null?(h=p=O,c=u):p=p.next=O,ge.lanes|=Y,ha|=Y;A=A.next}while(A!==null&&A!==t);if(p===null?c=u:p.next=h,!Lt(u,e.memoizedState)&&(st=!0,H&&(l=Tn,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Nc(e){var t=it(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);Lt(u,t.memoizedState)||(st=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function zs(e,t,l){var a=ge,n=it(),u=De;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var c=!Lt((Xe||n).memoizedState,l);if(c&&(n.memoizedState=l,st=!0),n=n.queue,wc(Rs.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||ft!==null&&ft.memoizedState.tag&1){if(a.flags|=2048,An(9,{destroy:void 0},Cs.bind(null,a,n,l,t),null),Qe===null)throw Error(o(349));u||(Gl&127)!==0||Ms(a,t,l)}return l}function Ms(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ge.updateQueue,t===null?(t=Oi(),ge.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Cs(e,t,l,a){t.value=l,t.getSnapshot=a,As(t)&&Ds(e)}function Rs(e,t,l){return l(function(){As(t)&&Ds(e)})}function As(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Lt(e,l)}catch{return!0}}function Ds(e){var t=Ga(e,2);t!==null&&wt(t,e,2)}function jc(e){var t=At();if(typeof e=="function"){var l=e;if(e=l(),Fa){dl(!0);try{l()}finally{dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:e},t}function Os(e,t,l,a){return e.baseState=l,Oc(e,Xe,typeof a=="function"?a:Xl)}function u0(e,t,l,a,n){if(Bi(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Ns(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Ns(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=D.T,c={};D.T=c;try{var h=l(n,a),p=D.S;p!==null&&p(c,h),js(e,t,h)}catch(A){Uc(e,t,A)}finally{u!==null&&c.types!==null&&(u.types=c.types),D.T=u}}else try{u=l(n,a),js(e,t,u)}catch(A){Uc(e,t,A)}}function js(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Us(e,t,a)},function(a){return Uc(e,t,a)}):Us(e,t,l)}function Us(e,t,l){t.status="fulfilled",t.value=l,ws(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ns(e,l)))}function Uc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,ws(t),t=t.next;while(t!==a)}e.action=null}function ws(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bs(e,t){return t}function Hs(e,t){if(De){var l=Qe.formState;if(l!==null){e:{var a=ge;if(De){if(Je){t:{for(var n=Je,u=ll;n.nodeType!==8;){if(!u){n=null;break t}if(n=nl(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Je=nl(n.nextSibling),a=n.data==="F!";break e}}na(a)}a=!1}a&&(t=l[0])}}return l=At(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:t},l.queue=a,l=ld.bind(null,ge,a),a.dispatch=l,a=jc(!1),u=Yc.bind(null,ge,!1,a.queue),a=At(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=u0.bind(null,ge,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ls(e){var t=it();return qs(t,Xe,e)}function qs(e,t,l){if(t=Oc(e,t,Bs)[0],e=ji(Xl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=bu(t)}catch(c){throw c===xn?Ti:c}else a=t;t=it();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ge.flags|=2048,An(9,{destroy:void 0},i0.bind(null,n,l),null)),[a,u,e]}function i0(e,t){e.action=t}function Ys(e){var t=it(),l=Xe;if(l!==null)return qs(t,l,e);it(),t=t.memoizedState,l=it();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function An(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Oi(),ge.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Gs(){return it().memoizedState}function Ui(e,t,l,a){var n=At();ge.flags|=e,n.memoizedState=An(1|t,{destroy:void 0},l,a===void 0?null:a)}function wi(e,t,l,a){var n=it();a=a===void 0?null:a;var u=n.memoizedState.inst;Xe!==null&&a!==null&&zc(a,Xe.memoizedState.deps)?n.memoizedState=An(t,u,l,a):(ge.flags|=e,n.memoizedState=An(1|t,u,l,a))}function Xs(e,t){Ui(8390656,8,e,t)}function wc(e,t){wi(2048,8,e,t)}function r0(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=Oi(),ge.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Vs(e){var t=it().memoizedState;return r0({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Zs(e,t){return wi(4,2,e,t)}function Qs(e,t){return wi(4,4,e,t)}function Ks(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Js(e,t,l){l=l!=null?l.concat([e]):null,wi(4,4,Ks.bind(null,t,e),l)}function Bc(){}function $s(e,t){var l=it();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&zc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function ks(e,t){var l=it();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&zc(t,a[1]))return a[0];if(a=e(),Fa){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a}function Hc(e,t,l){return l===void 0||(Gl&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Fd(),ge.lanes|=e,ha|=e,l)}function Fs(e,t,l,a){return Lt(l,t)?l:Mn.current!==null?(e=Hc(e,l,a),Lt(e,t)||(st=!0),e):(Gl&42)===0||(Gl&1073741824)!==0&&(Re&261930)===0?(st=!0,e.memoizedState=l):(e=Fd(),ge.lanes|=e,ha|=e,t)}function Ws(e,t,l,a,n){var u=V.p;V.p=u!==0&&8>u?u:8;var c=D.T,h={};D.T=h,Yc(e,!1,t,l);try{var p=n(),A=D.S;if(A!==null&&A(h,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var H=l0(p,a);Su(e,t,H,Zt(e))}else Su(e,t,a,Zt(e))}catch(Y){Su(e,t,{then:function(){},status:"rejected",reason:Y},Zt())}finally{V.p=u,c!==null&&h.types!==null&&(c.types=h.types),D.T=c}}function c0(){}function Lc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=Ps(e).queue;Ws(e,n,t,te,l===null?c0:function(){return Is(e),l(a)})}function Ps(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:te},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Is(e){var t=Ps(e);t.next===null&&(t=e.alternate.memoizedState),Su(e,t.next.queue,{},Zt())}function qc(){return bt(Hu)}function ed(){return it().memoizedState}function td(){return it().memoizedState}function o0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Zt();e=ra(l);var a=ca(t,e,l);a!==null&&(wt(a,t,l),vu(a,t,l)),t={cache:mc()},e.payload=t;return}t=t.return}}function f0(e,t,l){var a=Zt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bi(e)?ad(t,l):(l=ac(e,t,l,a),l!==null&&(wt(l,e,a),nd(l,t,a)))}function ld(e,t,l){var a=Zt();Su(e,t,l,a)}function Su(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Bi(e))ad(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,h=u(c,l);if(n.hasEagerState=!0,n.eagerState=h,Lt(h,c))return yi(e,t,n,0),Qe===null&&vi(),!1}catch{}finally{}if(l=ac(e,t,n,a),l!==null)return wt(l,e,a),nd(l,t,a),!0}return!1}function Yc(e,t,l,a){if(a={lane:2,revertLane:bo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bi(e)){if(t)throw Error(o(479))}else t=ac(e,l,a,2),t!==null&&wt(t,e,2)}function Bi(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function ad(e,t){Cn=Ai=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function nd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,X(e,l)}}var Eu={readContext:bt,use:Ni,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};Eu.useEffectEvent=lt;var ud={readContext:bt,use:Ni,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:bt,useEffect:Xs,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ui(4194308,4,Ks.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){Ui(4,2,e,t)},useMemo:function(e,t){var l=At();t=t===void 0?null:t;var a=e();if(Fa){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=At();if(l!==void 0){var n=l(t);if(Fa){dl(!0);try{l(t)}finally{dl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=f0.bind(null,ge,e),[a.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:function(e){e=jc(e);var t=e.queue,l=ld.bind(null,ge,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Bc,useDeferredValue:function(e,t){var l=At();return Hc(l,e,t)},useTransition:function(){var e=jc(!1);return e=Ws.bind(null,ge,e.queue,!0,!1),At().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ge,n=At();if(De){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Qe===null)throw Error(o(349));(Re&127)!==0||Ms(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,Xs(Rs.bind(null,a,u,e),[e]),a.flags|=2048,An(9,{destroy:void 0},Cs.bind(null,a,u,l,t),null),l},useId:function(){var e=At(),t=Qe.identifierPrefix;if(De){var l=Cl,a=Ml;l=(a&~(1<<32-Ct(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Di++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=a0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qc,useFormState:Hs,useActionState:Hs,useOptimistic:function(e){var t=At();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Yc.bind(null,ge,!0,l),l.dispatch=t,[e,t]},useMemoCache:Dc,useCacheRefresh:function(){return At().memoizedState=o0.bind(null,ge)},useEffectEvent:function(e){var t=At(),l={impl:e};return t.memoizedState=l,function(){if((Le&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Gc={readContext:bt,use:Ni,useCallback:$s,useContext:bt,useEffect:wc,useImperativeHandle:Js,useInsertionEffect:Zs,useLayoutEffect:Qs,useMemo:ks,useReducer:ji,useRef:Gs,useState:function(){return ji(Xl)},useDebugValue:Bc,useDeferredValue:function(e,t){var l=it();return Fs(l,Xe.memoizedState,e,t)},useTransition:function(){var e=ji(Xl)[0],t=it().memoizedState;return[typeof e=="boolean"?e:bu(e),t]},useSyncExternalStore:zs,useId:ed,useHostTransitionStatus:qc,useFormState:Ls,useActionState:Ls,useOptimistic:function(e,t){var l=it();return Os(l,Xe,e,t)},useMemoCache:Dc,useCacheRefresh:td};Gc.useEffectEvent=Vs;var id={readContext:bt,use:Ni,useCallback:$s,useContext:bt,useEffect:wc,useImperativeHandle:Js,useInsertionEffect:Zs,useLayoutEffect:Qs,useMemo:ks,useReducer:Nc,useRef:Gs,useState:function(){return Nc(Xl)},useDebugValue:Bc,useDeferredValue:function(e,t){var l=it();return Xe===null?Hc(l,e,t):Fs(l,Xe.memoizedState,e,t)},useTransition:function(){var e=Nc(Xl)[0],t=it().memoizedState;return[typeof e=="boolean"?e:bu(e),t]},useSyncExternalStore:zs,useId:ed,useHostTransitionStatus:qc,useFormState:Ys,useActionState:Ys,useOptimistic:function(e,t){var l=it();return Xe!==null?Os(l,Xe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Dc,useCacheRefresh:td};id.useEffectEvent=Vs;function Xc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:E({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Vc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Zt(),n=ra(a);n.payload=t,l!=null&&(n.callback=l),t=ca(e,n,a),t!==null&&(wt(t,e,a),vu(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Zt(),n=ra(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ca(e,n,a),t!==null&&(wt(t,e,a),vu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Zt(),a=ra(l);a.tag=2,t!=null&&(a.callback=t),t=ca(e,a,l),t!==null&&(wt(t,e,l),vu(t,e,l))}};function rd(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!ru(l,a)||!ru(n,u):!0}function cd(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Vc.enqueueReplaceState(t,t.state,null)}function Wa(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=E({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function od(e){mi(e)}function fd(e){console.error(e)}function sd(e){mi(e)}function Hi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function dd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Zc(e,t,l){return l=ra(l),l.tag=3,l.payload={element:null},l.callback=function(){Hi(e,t)},l}function hd(e){return e=ra(e),e.tag=3,e}function md(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){dd(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){dd(t,l,a),typeof n!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function s0(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&En(t,l,n,!0),l=Yt.current,l!==null){switch(l.tag){case 31:case 13:return al===null?ki():l.alternate===null&&at===0&&(at=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===xi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),yo(e,a,n)),!1;case 22:return l.flags|=65536,a===xi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),yo(e,a,n)),!1}throw Error(o(435,l.tag))}return yo(e,a,n),ki(),!1}if(De)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==oc&&(e=Error(o(422),{cause:a}),fu(It(e,l)))):(a!==oc&&(t=Error(o(423),{cause:a}),fu(It(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=It(a,l),n=Zc(e.stateNode,a,n),Sc(e,n),at!==4&&(at=2)),!1;var u=Error(o(520),{cause:a});if(u=It(u,l),Au===null?Au=[u]:Au.push(u),at!==4&&(at=2),t===null)return!0;a=It(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Zc(l.stateNode,a,e),Sc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ma===null||!ma.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=hd(n),md(n,e,l,a),Sc(l,n),!1}l=l.return}while(l!==null);return!1}var Qc=Error(o(461)),st=!1;function St(e,t,l,a){t.child=e===null?ps(t,null,l,a):ka(t,e.child,l,a)}function vd(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var h in a)h!=="ref"&&(c[h]=a[h])}else c=a;return Qa(t),a=Mc(e,t,l,c,u,n),h=Cc(),e!==null&&!st?(Rc(e,t,n),Vl(e,t,n)):(De&&h&&rc(t),t.flags|=1,St(e,t,a,n),t.child)}function yd(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!nc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,gd(e,t,u,a,n)):(e=pi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Ic(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:ru,l(c,a)&&e.ref===t.ref)return Vl(e,t,n)}return t.flags|=1,e=Hl(u,a),e.ref=t.ref,e.return=t,t.child=e}function gd(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(ru(u,a)&&e.ref===t.ref)if(st=!1,t.pendingProps=a=u,Ic(e,n))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Vl(e,t,n)}return Kc(e,t,l,a,n)}function pd(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return bd(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_i(t,u!==null?u.cachePool:null),u!==null?Es(t,u):_c(),_s(t);else return a=t.lanes=536870912,bd(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(_i(t,u.cachePool),Es(t,u),fa(),t.memoizedState=null):(e!==null&&_i(t,null),_c(),fa());return St(e,t,n,l),t.child}function _u(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bd(e,t,l,a,n){var u=yc();return u=u===null?null:{parent:ot._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&_i(t,null),_c(),_s(t),e!==null&&En(e,t,a,!0),t.childLanes=n,null}function Li(e,t){return t=Yi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Sd(e,t,l){return ka(t,e.child,null,l),e=Li(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function d0(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(a.mode==="hidden")return e=Li(t,a),t.lanes=536870912,_u(null,e);if(xc(t),(e=Je)?(e=Nh(e,ll),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:la!==null?{id:Ml,overflow:Cl}:null,retryLane:536870912,hydrationErrors:null},l=as(e),l.return=t,t.child=l,pt=t,Je=null)):e=null,e===null)throw na(t);return t.lanes=536870912,null}return Li(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(xc(t),n)if(t.flags&256)t.flags&=-257,t=Sd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(st||En(e,t,l,!1),n=(l&e.childLanes)!==0,st||n){if(a=Qe,a!==null&&(c=K(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Ga(e,c),wt(a,e,c),Qc;ki(),t=Sd(e,t,l)}else e=u.treeContext,Je=nl(c.nextSibling),pt=t,De=!0,aa=null,ll=!1,e!==null&&is(t,e),t=Li(t,a),t.flags|=4096;return t}return e=Hl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Kc(e,t,l,a,n){return Qa(t),l=Mc(e,t,l,a,void 0,n),a=Cc(),e!==null&&!st?(Rc(e,t,n),Vl(e,t,n)):(De&&a&&rc(t),t.flags|=1,St(e,t,l,n),t.child)}function Ed(e,t,l,a,n,u){return Qa(t),t.updateQueue=null,l=xs(t,a,l,n),Ts(e),a=Cc(),e!==null&&!st?(Rc(e,t,u),Vl(e,t,u)):(De&&a&&rc(t),t.flags|=1,St(e,t,l,u),t.child)}function _d(e,t,l,a,n){if(Qa(t),t.stateNode===null){var u=gn,c=l.contextType;typeof c=="object"&&c!==null&&(u=bt(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Vc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},pc(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?bt(c):gn,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Xc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Vc.enqueueReplaceState(u,u.state,null),gu(t,a,u,n),yu(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var h=t.memoizedProps,p=Wa(l,h);u.props=p;var A=u.context,H=l.contextType;c=gn,typeof H=="object"&&H!==null&&(c=bt(H));var Y=l.getDerivedStateFromProps;H=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,H||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||A!==c)&&cd(t,u,a,c),ia=!1;var O=t.memoizedState;u.state=O,gu(t,a,u,n),yu(),A=t.memoizedState,h||O!==A||ia?(typeof Y=="function"&&(Xc(t,l,Y,a),A=t.memoizedState),(p=ia||rd(t,l,p,a,O,A,c))?(H||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=c,a=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,bc(e,t),c=t.memoizedProps,H=Wa(l,c),u.props=H,Y=t.pendingProps,O=u.context,A=l.contextType,p=gn,typeof A=="object"&&A!==null&&(p=bt(A)),h=l.getDerivedStateFromProps,(A=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==Y||O!==p)&&cd(t,u,a,p),ia=!1,O=t.memoizedState,u.state=O,gu(t,a,u,n),yu();var w=t.memoizedState;c!==Y||O!==w||ia||e!==null&&e.dependencies!==null&&Si(e.dependencies)?(typeof h=="function"&&(Xc(t,l,h,a),w=t.memoizedState),(H=ia||rd(t,l,H,a,O,w,p)||e!==null&&e.dependencies!==null&&Si(e.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,w,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,w,p)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=w),u.props=a,u.state=w,u.context=p,a=H):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,qi(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=ka(t,e.child,null,n),t.child=ka(t,null,l,n)):St(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Vl(e,t,n),e}function Td(e,t,l,a){return Va(),t.flags|=256,St(e,t,l,a),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $c(e){return{baseLanes:e,cachePool:ds()}}function kc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function xd(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(ut.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(n?oa(t):fa(),(e=Je)?(e=Nh(e,ll),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:la!==null?{id:Ml,overflow:Cl}:null,retryLane:536870912,hydrationErrors:null},l=as(e),l.return=t,t.child=l,pt=t,Je=null)):e=null,e===null)throw na(t);return No(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(fa(),n=t.mode,h=Yi({mode:"hidden",children:h},n),a=Xa(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=$c(l),a.childLanes=kc(e,c,l),t.memoizedState=Jc,_u(null,a)):(oa(t),Fc(t,h))}var p=e.memoizedState;if(p!==null&&(h=p.dehydrated,h!==null)){if(u)t.flags&256?(oa(t),t.flags&=-257,t=Wc(e,t,l)):t.memoizedState!==null?(fa(),t.child=e.child,t.flags|=128,t=null):(fa(),h=a.fallback,n=t.mode,a=Yi({mode:"visible",children:a.children},n),h=Xa(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,ka(t,e.child,null,l),a=t.child,a.memoizedState=$c(l),a.childLanes=kc(e,c,l),t.memoizedState=Jc,t=_u(null,a));else if(oa(t),No(h)){if(c=h.nextSibling&&h.nextSibling.dataset,c)var A=c.dgst;c=A,a=Error(o(419)),a.stack="",a.digest=c,fu({value:a,source:null,stack:null}),t=Wc(e,t,l)}else if(st||En(e,t,l,!1),c=(l&e.childLanes)!==0,st||c){if(c=Qe,c!==null&&(a=K(c,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Ga(e,a),wt(c,e,a),Qc;Oo(h)||ki(),t=Wc(e,t,l)}else Oo(h)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Je=nl(h.nextSibling),pt=t,De=!0,aa=null,ll=!1,e!==null&&is(t,e),t=Fc(t,a.children),t.flags|=4096);return t}return n?(fa(),h=a.fallback,n=t.mode,p=e.child,A=p.sibling,a=Hl(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,A!==null?h=Hl(A,h):(h=Xa(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,_u(null,a),a=t.child,h=e.child.memoizedState,h===null?h=$c(l):(n=h.cachePool,n!==null?(p=ot._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=ds(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=kc(e,c,l),t.memoizedState=Jc,_u(e.child,a)):(oa(t),l=e.child,e=l.sibling,l=Hl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Fc(e,t){return t=Yi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yi(e,t){return e=qt(22,e,null,t),e.lanes=0,e}function Wc(e,t,l){return ka(t,e.child,null,l),e=Fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),dc(e.return,t,l)}function Pc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Md(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=ut.current,h=(c&2)!==0;if(h?(c=c&1|2,t.flags|=128):c&=1,Z(ut,c),St(e,t,a,l),a=De?ou:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zd(e,l,t);else if(e.tag===19)zd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Ri(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Pc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Ri(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Pc(t,!0,l,null,u,a);break;case"together":Pc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Vl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ha|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(En(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Hl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Hl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ic(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Si(e)))}function h0(e,t,l){switch(t.tag){case 3:yt(t,t.stateNode.containerInfo),ua(t,ot,e.memoizedState.cache),Va();break;case 27:case 5:tt(t);break;case 4:yt(t,t.stateNode.containerInfo);break;case 10:ua(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(oa(t),t.flags|=128,null):(l&t.child.childLanes)!==0?xd(e,t,l):(oa(t),e=Vl(e,t,l),e!==null?e.sibling:null);oa(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(En(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Md(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Z(ut,ut.current),a)break;return null;case 22:return t.lanes=0,pd(e,t,l,t.pendingProps);case 24:ua(t,ot,e.memoizedState.cache)}return Vl(e,t,l)}function Cd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!Ic(e,l)&&(t.flags&128)===0)return st=!1,h0(e,t,l);st=(e.flags&131072)!==0}else st=!1,De&&(t.flags&1048576)!==0&&us(t,ou,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ja(t.elementType),t.type=e,typeof e=="function")nc(e)?(a=Wa(e,a),t.tag=1,t=_d(null,t,e,a,l)):(t.tag=0,t=Kc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Ce){t.tag=11,t=vd(null,t,e,a,l);break e}else if(n===W){t.tag=14,t=yd(null,t,e,a,l);break e}}throw t=Ne(e)||e,Error(o(306,t,""))}}return t;case 0:return Kc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Wa(a,t.pendingProps),_d(e,t,a,n,l);case 3:e:{if(yt(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,bc(e,t),gu(t,a,null,l);var c=t.memoizedState;if(a=c.cache,ua(t,ot,a),a!==u.cache&&hc(t,[ot],l,!0),yu(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Td(e,t,a,l);break e}else if(a!==n){n=It(Error(o(424)),t),fu(n),t=Td(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Je=nl(e.firstChild),pt=t,De=!0,aa=null,ll=!0,l=ps(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Va(),a===n){t=Vl(e,t,l);break e}St(e,t,a,l)}t=t.child}return t;case 26:return qi(e,t),e===null?(l=Lh(t.type,null,t.pendingProps,null))?t.memoizedState=l:De||(l=t.type,e=t.pendingProps,a=lr(ve.current).createElement(l),a[$]=t,a[F]=e,Et(a,l,e),We(a),t.stateNode=a):t.memoizedState=Lh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return tt(t),e===null&&De&&(a=t.stateNode=wh(t.type,t.pendingProps,ve.current),pt=t,ll=!0,n=Je,pa(t.type)?(jo=n,Je=nl(a.firstChild)):Je=n),St(e,t,t.pendingProps.children,l),qi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((n=a=Je)&&(a=V0(a,t.type,t.pendingProps,ll),a!==null?(t.stateNode=a,pt=t,Je=nl(a.firstChild),ll=!1,n=!0):n=!1),n||na(t)),tt(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,Ro(n,u)?a=null:c!==null&&Ro(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Mc(e,t,n0,null,null,l),Hu._currentValue=n),qi(e,t),St(e,t,a,l),t.child;case 6:return e===null&&De&&((e=l=Je)&&(l=Z0(l,t.pendingProps,ll),l!==null?(t.stateNode=l,pt=t,Je=null,e=!0):e=!1),e||na(t)),null;case 13:return xd(e,t,l);case 4:return yt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ka(t,null,a,l):St(e,t,a,l),t.child;case 11:return vd(e,t,t.type,t.pendingProps,l);case 7:return St(e,t,t.pendingProps,l),t.child;case 8:return St(e,t,t.pendingProps.children,l),t.child;case 12:return St(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ua(t,t.type,a.value),St(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Qa(t),n=bt(n),a=a(n),t.flags|=1,St(e,t,a,l),t.child;case 14:return yd(e,t,t.type,t.pendingProps,l);case 15:return gd(e,t,t.type,t.pendingProps,l);case 19:return Md(e,t,l);case 31:return d0(e,t,l);case 22:return pd(e,t,l,t.pendingProps);case 24:return Qa(t),a=bt(ot),e===null?(n=yc(),n===null&&(n=Qe,u=mc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},pc(t),ua(t,ot,n)):((e.lanes&l)!==0&&(bc(e,t),gu(t,null,null,l),yu()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ua(t,ot,a)):(a=u.cache,ua(t,ot,a),a!==n.cache&&hc(t,[ot],l,!0))),St(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Zl(e){e.flags|=4}function eo(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(eh())e.flags|=8192;else throw $a=xi,gc}else e.flags&=-16777217}function Rd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Vh(t))if(eh())e.flags|=8192;else throw $a=xi,gc}function Gi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ui():536870912,e.lanes|=t,jn|=t)}function Tu(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function $e(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function m0(e,t,l){var a=t.pendingProps;switch(cc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(t),null;case 1:return $e(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Yl(ot),Ie(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Sn(t)?Zl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fc())),$e(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Zl(t),u!==null?($e(t),Rd(t,u)):($e(t),eo(t,n,null,a,l))):u?u!==e.memoizedState?(Zl(t),$e(t),Rd(t,u)):($e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Zl(t),$e(t),eo(t,n,e,a,l)),null;case 27:if(fl(t),l=ve.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return $e(t),null}e=P.current,Sn(t)?rs(t):(e=wh(n,a,l),t.stateNode=e,Zl(t))}return $e(t),null;case 5:if(fl(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Zl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return $e(t),null}if(u=P.current,Sn(t))rs(t);else{var c=lr(ve.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[$]=t,u[F]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Et(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Zl(t)}}return $e(t),eo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Zl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ve.current,Sn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=pt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[$]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||xh(e.nodeValue,l)),e||na(t,!0)}else e=lr(e).createTextNode(a),e[$]=t,t.stateNode=e}return $e(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Sn(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[$]=t}else Va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;$e(t),e=!1}else l=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return $e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Sn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[$]=t}else Va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;$e(t),n=!1}else n=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Gi(t,t.updateQueue),$e(t),null);case 4:return Ie(),e===null&&To(t.stateNode.containerInfo),$e(t),null;case 10:return Yl(t.type),$e(t),null;case 19:if(L(ut),a=t.memoizedState,a===null)return $e(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Tu(a,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ri(e),u!==null){for(t.flags|=128,Tu(a,!1),e=u.updateQueue,t.updateQueue=e,Gi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)ls(l,e),l=l.sibling;return Z(ut,ut.current&1|2),De&&Ll(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&_t()>Ki&&(t.flags|=128,n=!0,Tu(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ri(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Gi(t,e),Tu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!De)return $e(t),null}else 2*_t()-a.renderingStartTime>Ki&&l!==536870912&&(t.flags|=128,n=!0,Tu(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=_t(),e.sibling=null,l=ut.current,Z(ut,n?l&1|2:l&1),De&&Ll(t,a.treeForkCount),e):($e(t),null);case 22:case 23:return Gt(t),Tc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),l=t.updateQueue,l!==null&&Gi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&L(Ka),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Yl(ot),$e(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function v0(e,t){switch(cc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yl(ot),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fl(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(o(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(ut),null;case 4:return Ie(),null;case 10:return Yl(t.type),null;case 22:case 23:return Gt(t),Tc(),e!==null&&L(Ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yl(ot),null;case 25:return null;default:return null}}function Ad(e,t){switch(cc(t),t.tag){case 3:Yl(ot),Ie();break;case 26:case 27:case 5:fl(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:L(ut);break;case 10:Yl(t.type);break;case 22:case 23:Gt(t),Tc(),e!==null&&L(Ka);break;case 24:Yl(ot)}}function xu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(h){Ye(t,t.return,h)}}function sa(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,h=c.destroy;if(h!==void 0){c.destroy=void 0,n=t;var p=l,A=h;try{A()}catch(H){Ye(n,p,H)}}}a=a.next}while(a!==u)}}catch(H){Ye(t,t.return,H)}}function Dd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ss(t,l)}catch(a){Ye(e,e.return,a)}}}function Od(e,t,l){l.props=Wa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ye(e,t,a)}}function zu(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ye(e,t,n)}}function Rl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ye(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ye(e,t,n)}else l.current=null}function Nd(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ye(e,e.return,n)}}function to(e,t,l){try{var a=e.stateNode;H0(a,e.type,l,t),a[F]=t}catch(n){Ye(e,e.return,n)}}function jd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pa(e.type)||e.tag===4}function lo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&pa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ao(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=wl));else if(a!==4&&(a===27&&pa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ao(e,t,l),e=e.sibling;e!==null;)ao(e,t,l),e=e.sibling}function Xi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&pa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Xi(e,t,l),e=e.sibling;e!==null;)Xi(e,t,l),e=e.sibling}function Ud(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Et(t,a,l),t[$]=e,t[F]=l}catch(u){Ye(e,e.return,u)}}var Ql=!1,dt=!1,no=!1,wd=typeof WeakSet=="function"?WeakSet:Set,vt=null;function y0(e,t){if(e=e.containerInfo,Mo=or,e=Jf(e),Wr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,h=-1,p=-1,A=0,H=0,Y=e,O=null;t:for(;;){for(var w;Y!==l||n!==0&&Y.nodeType!==3||(h=c+n),Y!==u||a!==0&&Y.nodeType!==3||(p=c+a),Y.nodeType===3&&(c+=Y.nodeValue.length),(w=Y.firstChild)!==null;)O=Y,Y=w;for(;;){if(Y===e)break t;if(O===l&&++A===n&&(h=c),O===u&&++H===a&&(p=c),(w=Y.nextSibling)!==null)break;Y=O,O=Y.parentNode}Y=w}l=h===-1||p===-1?null:{start:h,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Co={focusedElem:e,selectionRange:l},or=!1,vt=t;vt!==null;)if(t=vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,vt=e;else for(;vt!==null;){switch(t=vt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var ee=Wa(l.type,n);e=a.getSnapshotBeforeUpdate(ee,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Ye(l,l.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Do(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Do(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,vt=e;break}vt=t.return}}function Bd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Jl(e,l),a&4&&xu(5,l);break;case 1:if(Jl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Ye(l,l.return,c)}else{var n=Wa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ye(l,l.return,c)}}a&64&&Dd(l),a&512&&zu(l,l.return);break;case 3:if(Jl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Ss(e,t)}catch(c){Ye(l,l.return,c)}}break;case 27:t===null&&a&4&&Ud(l);case 26:case 5:Jl(e,l),t===null&&a&4&&Nd(l),a&512&&zu(l,l.return);break;case 12:Jl(e,l);break;case 31:Jl(e,l),a&4&&qd(e,l);break;case 13:Jl(e,l),a&4&&Yd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=z0.bind(null,l),Q0(e,l))));break;case 22:if(a=l.memoizedState!==null||Ql,!a){t=t!==null&&t.memoizedState!==null||dt,n=Ql;var u=dt;Ql=a,(dt=t)&&!u?$l(e,l,(l.subtreeFlags&8772)!==0):Jl(e,l),Ql=n,dt=u}break;case 30:break;default:Jl(e,l)}}function Hd(e){var t=e.alternate;t!==null&&(e.alternate=null,Hd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&hl(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pe=null,Ot=!1;function Kl(e,t,l){for(l=l.child;l!==null;)Ld(e,t,l),l=l.sibling}function Ld(e,t,l){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(Il,l)}catch{}switch(l.tag){case 26:dt||Rl(l,t),Kl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:dt||Rl(l,t);var a=Pe,n=Ot;pa(l.type)&&(Pe=l.stateNode,Ot=!1),Kl(e,t,l),Uu(l.stateNode),Pe=a,Ot=n;break;case 5:dt||Rl(l,t);case 6:if(a=Pe,n=Ot,Pe=null,Kl(e,t,l),Pe=a,Ot=n,Pe!==null)if(Ot)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(l.stateNode)}catch(u){Ye(l,t,u)}else try{Pe.removeChild(l.stateNode)}catch(u){Ye(l,t,u)}break;case 18:Pe!==null&&(Ot?(e=Pe,Dh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Gn(e)):Dh(Pe,l.stateNode));break;case 4:a=Pe,n=Ot,Pe=l.stateNode.containerInfo,Ot=!0,Kl(e,t,l),Pe=a,Ot=n;break;case 0:case 11:case 14:case 15:sa(2,l,t),dt||sa(4,l,t),Kl(e,t,l);break;case 1:dt||(Rl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Od(l,t,a)),Kl(e,t,l);break;case 21:Kl(e,t,l);break;case 22:dt=(a=dt)||l.memoizedState!==null,Kl(e,t,l),dt=a;break;default:Kl(e,t,l)}}function qd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gn(e)}catch(l){Ye(t,t.return,l)}}}function Yd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gn(e)}catch(l){Ye(t,t.return,l)}}function g0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wd),t;default:throw Error(o(435,e.tag))}}function Vi(e,t){var l=g0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=M0.bind(null,e,a);a.then(n,n)}})}function Nt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,h=c;e:for(;h!==null;){switch(h.tag){case 27:if(pa(h.type)){Pe=h.stateNode,Ot=!1;break e}break;case 5:Pe=h.stateNode,Ot=!1;break e;case 3:case 4:Pe=h.stateNode.containerInfo,Ot=!0;break e}h=h.return}if(Pe===null)throw Error(o(160));Ld(u,c,n),Pe=null,Ot=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Gd(t,e),t=t.sibling}var yl=null;function Gd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nt(t,e),jt(e),a&4&&(sa(3,e,e.return),xu(3,e),sa(5,e,e.return));break;case 1:Nt(t,e),jt(e),a&512&&(dt||l===null||Rl(l,l.return)),a&64&&Ql&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=yl;if(Nt(t,e),jt(e),a&512&&(dt||l===null||Rl(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[He]||u[$]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Et(u,a,l),u[$]=e,We(u),a=u;break e;case"link":var c=Gh("link","href",n).get(a+(l.href||""));if(c){for(var h=0;h<c.length;h++)if(u=c[h],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(h,1);break t}}u=n.createElement(a),Et(u,a,l),n.head.appendChild(u);break;case"meta":if(c=Gh("meta","content",n).get(a+(l.content||""))){for(h=0;h<c.length;h++)if(u=c[h],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(h,1);break t}}u=n.createElement(a),Et(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[$]=e,We(u),a=u}e.stateNode=a}else Xh(n,e.type,e.stateNode);else e.stateNode=Yh(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Xh(n,e.type,e.stateNode):Yh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&to(e,e.memoizedProps,l.memoizedProps)}break;case 27:Nt(t,e),jt(e),a&512&&(dt||l===null||Rl(l,l.return)),l!==null&&a&4&&to(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Nt(t,e),jt(e),a&512&&(dt||l===null||Rl(l,l.return)),e.flags&32){n=e.stateNode;try{fn(n,"")}catch(ee){Ye(e,e.return,ee)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,to(e,n,l!==null?l.memoizedProps:n)),a&1024&&(no=!0);break;case 6:if(Nt(t,e),jt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(ee){Ye(e,e.return,ee)}}break;case 3:if(ur=null,n=yl,yl=ar(t.containerInfo),Nt(t,e),yl=n,jt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Gn(t.containerInfo)}catch(ee){Ye(e,e.return,ee)}no&&(no=!1,Xd(e));break;case 4:a=yl,yl=ar(e.stateNode.containerInfo),Nt(t,e),jt(e),yl=a;break;case 12:Nt(t,e),jt(e);break;case 31:Nt(t,e),jt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vi(e,a)));break;case 13:Nt(t,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qi=_t()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vi(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,A=Ql,H=dt;if(Ql=A||n,dt=H||p,Nt(t,e),dt=H,Ql=A,jt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||Ql||dt||Pa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{h=p.stateNode;var Y=p.memoizedProps.style,O=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;h.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(ee){Ye(p,p.return,ee)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(ee){Ye(p,p.return,ee)}}}else if(t.tag===18){if(l===null){p=t;try{var w=p.stateNode;n?Oh(w,!0):Oh(p.stateNode,!1)}catch(ee){Ye(p,p.return,ee)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Vi(e,l))));break;case 19:Nt(t,e),jt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vi(e,a)));break;case 30:break;case 21:break;default:Nt(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(jd(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=lo(e);Xi(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(fn(c,""),l.flags&=-33);var h=lo(e);Xi(e,h,c);break;case 3:case 4:var p=l.stateNode.containerInfo,A=lo(e);ao(e,A,p);break;default:throw Error(o(161))}}catch(H){Ye(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Xd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Bd(e,t.alternate,t),t=t.sibling}function Pa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:sa(4,t,t.return),Pa(t);break;case 1:Rl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Od(t,t.return,l),Pa(t);break;case 27:Uu(t.stateNode);case 26:case 5:Rl(t,t.return),Pa(t);break;case 22:t.memoizedState===null&&Pa(t);break;case 30:Pa(t);break;default:Pa(t)}e=e.sibling}}function $l(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:$l(n,u,l),xu(4,u);break;case 1:if($l(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){Ye(a,a.return,A)}if(a=u,n=a.updateQueue,n!==null){var h=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)bs(p[n],h)}catch(A){Ye(a,a.return,A)}}l&&c&64&&Dd(u),zu(u,u.return);break;case 27:Ud(u);case 26:case 5:$l(n,u,l),l&&a===null&&c&4&&Nd(u),zu(u,u.return);break;case 12:$l(n,u,l);break;case 31:$l(n,u,l),l&&c&4&&qd(n,u);break;case 13:$l(n,u,l),l&&c&4&&Yd(n,u);break;case 22:u.memoizedState===null&&$l(n,u,l),zu(u,u.return);break;case 30:break;default:$l(n,u,l)}t=t.sibling}}function uo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&su(l))}function io(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&su(e))}function gl(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vd(e,t,l,a),t=t.sibling}function Vd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:gl(e,t,l,a),n&2048&&xu(9,t);break;case 1:gl(e,t,l,a);break;case 3:gl(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&su(e)));break;case 12:if(n&2048){gl(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,h=u.onPostCommit;typeof h=="function"&&h(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){Ye(t,t.return,p)}}else gl(e,t,l,a);break;case 31:gl(e,t,l,a);break;case 13:gl(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?gl(e,t,l,a):Mu(e,t):u._visibility&2?gl(e,t,l,a):(u._visibility|=2,Dn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&uo(c,t);break;case 24:gl(e,t,l,a),n&2048&&io(t.alternate,t);break;default:gl(e,t,l,a)}}function Dn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,h=l,p=a,A=c.flags;switch(c.tag){case 0:case 11:case 15:Dn(u,c,h,p,n),xu(8,c);break;case 23:break;case 22:var H=c.stateNode;c.memoizedState!==null?H._visibility&2?Dn(u,c,h,p,n):Mu(u,c):(H._visibility|=2,Dn(u,c,h,p,n)),n&&A&2048&&uo(c.alternate,c);break;case 24:Dn(u,c,h,p,n),n&&A&2048&&io(c.alternate,c);break;default:Dn(u,c,h,p,n)}t=t.sibling}}function Mu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Mu(l,a),n&2048&&uo(a.alternate,a);break;case 24:Mu(l,a),n&2048&&io(a.alternate,a);break;default:Mu(l,a)}t=t.sibling}}var Cu=8192;function On(e,t,l){if(e.subtreeFlags&Cu)for(e=e.child;e!==null;)Zd(e,t,l),e=e.sibling}function Zd(e,t,l){switch(e.tag){case 26:On(e,t,l),e.flags&Cu&&e.memoizedState!==null&&ay(l,yl,e.memoizedState,e.memoizedProps);break;case 5:On(e,t,l);break;case 3:case 4:var a=yl;yl=ar(e.stateNode.containerInfo),On(e,t,l),yl=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Cu,Cu=16777216,On(e,t,l),Cu=a):On(e,t,l));break;default:On(e,t,l)}}function Qd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ru(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];vt=a,Jd(a,e)}Qd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kd(e),e=e.sibling}function Kd(e){switch(e.tag){case 0:case 11:case 15:Ru(e),e.flags&2048&&sa(9,e,e.return);break;case 3:Ru(e);break;case 12:Ru(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zi(e)):Ru(e);break;default:Ru(e)}}function Zi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];vt=a,Jd(a,e)}Qd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:sa(8,t,t.return),Zi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Zi(t));break;default:Zi(t)}e=e.sibling}}function Jd(e,t){for(;vt!==null;){var l=vt;switch(l.tag){case 0:case 11:case 15:sa(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:su(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,vt=a;else e:for(l=e;vt!==null;){a=vt;var n=a.sibling,u=a.return;if(Hd(a),a===l){vt=null;break e}if(n!==null){n.return=u,vt=n;break e}vt=u}}}var p0={getCacheForType:function(e){var t=bt(ot),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return bt(ot).controller.signal}},b0=typeof WeakMap=="function"?WeakMap:Map,Le=0,Qe=null,xe=null,Re=0,qe=0,Xt=null,da=!1,Nn=!1,ro=!1,kl=0,at=0,ha=0,Ia=0,co=0,Vt=0,jn=0,Au=null,Ut=null,oo=!1,Qi=0,$d=0,Ki=1/0,Ji=null,ma=null,ht=0,va=null,Un=null,Fl=0,fo=0,so=null,kd=null,Du=0,ho=null;function Zt(){return(Le&2)!==0&&Re!==0?Re&-Re:D.T!==null?bo():le()}function Fd(){if(Vt===0)if((Re&536870912)===0||De){var e=rn;rn<<=1,(rn&3932160)===0&&(rn=262144),Vt=e}else Vt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Vt}function wt(e,t,l){(e===Qe&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(wn(e,0),ya(e,Re,Vt,!1)),b(e,l),((Le&2)===0||e!==Qe)&&(e===Qe&&((Le&2)===0&&(Ia|=l),at===4&&ya(e,Re,Vt,!1)),Al(e))}function Wd(e,t,l){if((Le&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||_l(e,t),n=a?_0(e,t):vo(e,t,!0),u=a;do{if(n===0){Nn&&!a&&ya(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!S0(l)){n=vo(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var h=e;n=Au;var p=h.current.memoizedState.isDehydrated;if(p&&(wn(h,c).flags|=256),c=vo(h,c,!1),c!==2){if(ro&&!p){h.errorRecoveryDisabledLanes|=u,Ia|=u,n=4;break e}u=Ut,Ut=n,u!==null&&(Ut===null?Ut=u:Ut.push.apply(Ut,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){wn(e,0),ya(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ya(a,t,Vt,!da);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Qi+300-_t(),10<n)){if(ya(a,t,Vt,!da),wa(a,0,!0)!==0)break e;Fl=t,a.timeoutHandle=Rh(Pd.bind(null,a,l,Ut,Ji,oo,t,Vt,Ia,jn,da,u,"Throttled",-0,0),n);break e}Pd(a,l,Ut,Ji,oo,t,Vt,Ia,jn,da,u,null,-0,0)}}break}while(!0);Al(e)}function Pd(e,t,l,a,n,u,c,h,p,A,H,Y,O,w){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wl},Zd(t,u,Y);var ee=(u&62914560)===u?Qi-_t():(u&4194048)===u?$d-_t():0;if(ee=ny(Y,ee),ee!==null){Fl=u,e.cancelPendingCommit=ee(ih.bind(null,e,t,u,l,a,n,c,h,p,H,Y,null,O,w)),ya(e,u,c,!A);return}}ih(e,t,u,l,a,n,c,h,p)}function S0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!Lt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ya(e,t,l,a){t&=~co,t&=~Ia,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-Ct(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&U(e,l,t)}function $i(){return(Le&6)===0?(Ou(0),!1):!0}function mo(){if(xe!==null){if(qe===0)var e=xe.return;else e=xe,ql=Za=null,Ac(e),zn=null,hu=0,e=xe;for(;e!==null;)Ad(e.alternate,e),e=e.return;xe=null}}function wn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Y0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Fl=0,mo(),Qe=e,xe=l=Hl(e.current,null),Re=t,qe=0,Xt=null,da=!1,Nn=_l(e,t),ro=!1,jn=Vt=co=Ia=ha=at=0,Ut=Au=null,oo=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Ct(a),u=1<<n;t|=e[n],a&=~u}return kl=t,vi(),l}function Id(e,t){ge=null,D.H=Eu,t===xn||t===Ti?(t=vs(),qe=3):t===gc?(t=vs(),qe=4):qe=t===Qc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Xt=t,xe===null&&(at=1,Hi(e,It(t,e.current)))}function eh(){var e=Yt.current;return e===null?!0:(Re&4194048)===Re?al===null:(Re&62914560)===Re||(Re&536870912)!==0?e===al:!1}function th(){var e=D.H;return D.H=Eu,e===null?Eu:e}function lh(){var e=D.A;return D.A=p0,e}function ki(){at=4,da||(Re&4194048)!==Re&&Yt.current!==null||(Nn=!0),(ha&134217727)===0&&(Ia&134217727)===0||Qe===null||ya(Qe,Re,Vt,!1)}function vo(e,t,l){var a=Le;Le|=2;var n=th(),u=lh();(Qe!==e||Re!==t)&&(Ji=null,wn(e,t)),t=!1;var c=at;e:do try{if(qe!==0&&xe!==null){var h=xe,p=Xt;switch(qe){case 8:mo(),c=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var A=qe;if(qe=0,Xt=null,Bn(e,h,p,A),l&&Nn){c=0;break e}break;default:A=qe,qe=0,Xt=null,Bn(e,h,p,A)}}E0(),c=at;break}catch(H){Id(e,H)}while(!0);return t&&e.shellSuspendCounter++,ql=Za=null,Le=a,D.H=n,D.A=u,xe===null&&(Qe=null,Re=0,vi()),c}function E0(){for(;xe!==null;)ah(xe)}function _0(e,t){var l=Le;Le|=2;var a=th(),n=lh();Qe!==e||Re!==t?(Ji=null,Ki=_t()+500,wn(e,t)):Nn=_l(e,t);e:do try{if(qe!==0&&xe!==null){t=xe;var u=Xt;t:switch(qe){case 1:qe=0,Xt=null,Bn(e,t,u,1);break;case 2:case 9:if(hs(u)){qe=0,Xt=null,nh(t);break}t=function(){qe!==2&&qe!==9||Qe!==e||(qe=7),Al(e)},u.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:hs(u)?(qe=0,Xt=null,nh(t)):(qe=0,Xt=null,Bn(e,t,u,7));break;case 5:var c=null;switch(xe.tag){case 26:c=xe.memoizedState;case 5:case 27:var h=xe;if(c?Vh(c):h.stateNode.complete){qe=0,Xt=null;var p=h.sibling;if(p!==null)xe=p;else{var A=h.return;A!==null?(xe=A,Fi(A)):xe=null}break t}}qe=0,Xt=null,Bn(e,t,u,5);break;case 6:qe=0,Xt=null,Bn(e,t,u,6);break;case 8:mo(),at=6;break e;default:throw Error(o(462))}}T0();break}catch(H){Id(e,H)}while(!0);return ql=Za=null,D.H=a,D.A=n,Le=l,xe!==null?0:(Qe=null,Re=0,vi(),at)}function T0(){for(;xe!==null&&!Ol();)ah(xe)}function ah(e){var t=Cd(e.alternate,e,kl);e.memoizedProps=e.pendingProps,t===null?Fi(e):xe=t}function nh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ed(l,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=Ed(l,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Ac(t);default:Ad(l,t),t=xe=ls(t,kl),t=Cd(l,t,kl)}e.memoizedProps=e.pendingProps,t===null?Fi(e):xe=t}function Bn(e,t,l,a){ql=Za=null,Ac(t),zn=null,hu=0;var n=t.return;try{if(s0(e,n,t,l,Re)){at=1,Hi(e,It(l,e.current)),xe=null;return}}catch(u){if(n!==null)throw xe=n,u;at=1,Hi(e,It(l,e.current)),xe=null;return}t.flags&32768?(De||a===1?e=!0:Nn||(Re&536870912)!==0?e=!1:(da=e=!0,(a===2||a===9||a===3||a===6)&&(a=Yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),uh(t,e)):Fi(t)}function Fi(e){var t=e;do{if((t.flags&32768)!==0){uh(t,da);return}e=t.return;var l=m0(t.alternate,t,kl);if(l!==null){xe=l;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);at===0&&(at=5)}function uh(e,t){do{var l=v0(e.alternate,e);if(l!==null){l.flags&=32767,xe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=l}while(e!==null);at=6,xe=null}function ih(e,t,l,a,n,u,c,h,p){e.cancelPendingCommit=null;do Wi();while(ht!==0);if((Le&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=lc,M(e,l,u,c,h,p),e===Qe&&(xe=Qe=null,Re=0),Un=t,va=e,Fl=l,fo=u,so=n,kd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,C0(ja,function(){return sh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=V.p,V.p=2,c=Le,Le|=4;try{y0(e,t,l)}finally{Le=c,V.p=n,D.T=a}}ht=1,rh(),ch(),oh()}}function rh(){if(ht===1){ht=0;var e=va,t=Un,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Le;Le|=4;try{Gd(t,e);var u=Co,c=Jf(e.containerInfo),h=u.focusedElem,p=u.selectionRange;if(c!==h&&h&&h.ownerDocument&&Kf(h.ownerDocument.documentElement,h)){if(p!==null&&Wr(h)){var A=p.start,H=p.end;if(H===void 0&&(H=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(H,h.value.length);else{var Y=h.ownerDocument||document,O=Y&&Y.defaultView||window;if(O.getSelection){var w=O.getSelection(),ee=h.textContent.length,fe=Math.min(p.start,ee),Ze=p.end===void 0?fe:Math.min(p.end,ee);!w.extend&&fe>Ze&&(c=Ze,Ze=fe,fe=c);var z=Qf(h,fe),_=Qf(h,Ze);if(z&&_&&(w.rangeCount!==1||w.anchorNode!==z.node||w.anchorOffset!==z.offset||w.focusNode!==_.node||w.focusOffset!==_.offset)){var R=Y.createRange();R.setStart(z.node,z.offset),w.removeAllRanges(),fe>Ze?(w.addRange(R),w.extend(_.node,_.offset)):(R.setEnd(_.node,_.offset),w.addRange(R))}}}}for(Y=[],w=h;w=w.parentNode;)w.nodeType===1&&Y.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<Y.length;h++){var q=Y[h];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}or=!!Mo,Co=Mo=null}finally{Le=n,V.p=a,D.T=l}}e.current=t,ht=2}}function ch(){if(ht===2){ht=0;var e=va,t=Un,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Le;Le|=4;try{Bd(e,t.alternate,t)}finally{Le=n,V.p=a,D.T=l}}ht=3}}function oh(){if(ht===4||ht===3){ht=0,Na();var e=va,t=Un,l=Fl,a=kd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,Un=va=null,fh(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ma=null),ie(l),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(Il,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=V.p,V.p=2,D.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var h=a[c];u(h.value,{componentStack:h.stack})}}finally{D.T=t,V.p=n}}(Fl&3)!==0&&Wi(),Al(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===ho?Du++:(Du=0,ho=e):Du=0,Ou(0)}}function fh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,su(t)))}function Wi(){return rh(),ch(),oh(),sh()}function sh(){if(ht!==5)return!1;var e=va,t=fo;fo=0;var l=ie(Fl),a=D.T,n=V.p;try{V.p=32>l?32:l,D.T=null,l=so,so=null;var u=va,c=Fl;if(ht=0,Un=va=null,Fl=0,(Le&6)!==0)throw Error(o(331));var h=Le;if(Le|=4,Kd(u.current),Vd(u,u.current,c,l),Le=h,Ou(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(Il,u)}catch{}return!0}finally{V.p=n,D.T=a,fh(e,t)}}function dh(e,t,l){t=It(l,t),t=Zc(e.stateNode,t,2),e=ca(e,t,2),e!==null&&(b(e,2),Al(e))}function Ye(e,t,l){if(e.tag===3)dh(e,e,l);else for(;t!==null;){if(t.tag===3){dh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ma===null||!ma.has(a))){e=It(l,e),l=hd(2),a=ca(t,l,2),a!==null&&(md(l,a,t,e),b(a,2),Al(a));break}}t=t.return}}function yo(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new b0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(ro=!0,n.add(l),e=x0.bind(null,e,t,l),t.then(e,e))}function x0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Qe===e&&(Re&l)===l&&(at===4||at===3&&(Re&62914560)===Re&&300>_t()-Qi?(Le&2)===0&&wn(e,0):co|=l,jn===Re&&(jn=0)),Al(e)}function hh(e,t){t===0&&(t=ui()),e=Ga(e,t),e!==null&&(b(e,t),Al(e))}function z0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),hh(e,l)}function M0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),hh(e,l)}function C0(e,t){return Fn(e,t)}var Pi=null,Hn=null,go=!1,Ii=!1,po=!1,ga=0;function Al(e){e!==Hn&&e.next===null&&(Hn===null?Pi=Hn=e:Hn=Hn.next=e),Ii=!0,go||(go=!0,A0())}function Ou(e,t){if(!po&&Ii){po=!0;do for(var l=!1,a=Pi;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,h=a.pingedLanes;u=(1<<31-Ct(42|e)+1)-1,u&=n&~(c&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,gh(a,u))}else u=Re,u=wa(a,a===Qe?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||_l(a,u)||(l=!0,gh(a,u));a=a.next}while(l);po=!1}}function R0(){mh()}function mh(){Ii=go=!1;var e=0;ga!==0&&q0()&&(e=ga);for(var t=_t(),l=null,a=Pi;a!==null;){var n=a.next,u=vh(a,t);u===0?(a.next=null,l===null?Pi=n:l.next=n,n===null&&(Hn=l)):(l=a,(e!==0||(u&3)!==0)&&(Ii=!0)),a=n}ht!==0&&ht!==5||Ou(e),ga!==0&&(ga=0)}function vh(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-Ct(u),h=1<<c,p=n[c];p===-1?((h&l)===0||(h&a)!==0)&&(n[c]=cn(h,t)):p<=t&&(e.expiredLanes|=h),u&=~h}if(t=Qe,l=Re,l=wa(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Wn(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||_l(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Wn(a),ie(l)){case 2:case 8:l=Jt;break;case 32:l=ja;break;case 268435456:l=nn;break;default:l=ja}return a=yh.bind(null,e),l=Fn(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Wn(a),e.callbackPriority=2,e.callbackNode=null,2}function yh(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Wi()&&e.callbackNode!==l)return null;var a=Re;return a=wa(e,e===Qe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Wd(e,a,t),vh(e,_t()),e.callbackNode!=null&&e.callbackNode===l?yh.bind(null,e):null)}function gh(e,t){if(Wi())return null;Wd(e,t,!0)}function A0(){G0(function(){(Le&6)!==0?Fn(Kt,R0):mh()})}function bo(){if(ga===0){var e=_n;e===0&&(e=ea,ea<<=1,(ea&261888)===0&&(ea=256)),ga=e}return ga}function ph(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ri(""+e)}function bh(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function D0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=ph((n[F]||null).action),c=a.submitter;c&&(t=(t=c[F]||null)?ph(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var h=new si("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ga!==0){var p=c?bh(n,c):new FormData(n);Lc(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(h.preventDefault(),p=c?bh(n,c):new FormData(n),Lc(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var So=0;So<tc.length;So++){var Eo=tc[So],O0=Eo.toLowerCase(),N0=Eo[0].toUpperCase()+Eo.slice(1);vl(O0,"on"+N0)}vl(Ff,"onAnimationEnd"),vl(Wf,"onAnimationIteration"),vl(Pf,"onAnimationStart"),vl("dblclick","onDoubleClick"),vl("focusin","onFocus"),vl("focusout","onBlur"),vl($v,"onTransitionRun"),vl(kv,"onTransitionStart"),vl(Fv,"onTransitionCancel"),vl(If,"onTransitionEnd"),_e("onMouseEnter",["mouseout","mouseover"]),_e("onMouseLeave",["mouseout","mouseover"]),_e("onPointerEnter",["pointerout","pointerover"]),_e("onPointerLeave",["pointerout","pointerover"]),kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nu="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(" "),j0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nu));function Sh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var h=a[c],p=h.instance,A=h.currentTarget;if(h=h.listener,p!==u&&n.isPropagationStopped())break e;u=h,n.currentTarget=A;try{u(n)}catch(H){mi(H)}n.currentTarget=null,u=p}else for(c=0;c<a.length;c++){if(h=a[c],p=h.instance,A=h.currentTarget,h=h.listener,p!==u&&n.isPropagationStopped())break e;u=h,n.currentTarget=A;try{u(n)}catch(H){mi(H)}n.currentTarget=null,u=p}}}}function ze(e,t){var l=t[Ge];l===void 0&&(l=t[Ge]=new Set);var a=e+"__bubble";l.has(a)||(Eh(t,e,2,!1),l.add(a))}function _o(e,t,l){var a=0;t&&(a|=4),Eh(l,e,a,t)}var er="_reactListening"+Math.random().toString(36).slice(2);function To(e){if(!e[er]){e[er]=!0,xl.forEach(function(l){l!=="selectionchange"&&(j0.has(l)||_o(l,!1,e),_o(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[er]||(t[er]=!0,_o("selectionchange",!1,t))}}function Eh(e,t,l,a){switch(Fh(t)){case 2:var n=ry;break;case 8:n=cy;break;default:n=Lo}l=n.bind(null,t,l,e),n=void 0,!Xr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function xo(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var h=a.stateNode.containerInfo;if(h===n)break;if(c===4)for(c=a.return;c!==null;){var p=c.tag;if((p===3||p===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;h!==null;){if(c=$t(h),c===null)return;if(p=c.tag,p===5||p===6||p===26||p===27){a=u=c;continue e}h=h.parentNode}}a=a.return}Mf(function(){var A=u,H=Yr(l),Y=[];e:{var O=es.get(e);if(O!==void 0){var w=si,ee=e;switch(e){case"keypress":if(oi(l)===0)break e;case"keydown":case"keyup":w=Mv;break;case"focusin":ee="focus",w=Kr;break;case"focusout":ee="blur",w=Kr;break;case"beforeblur":case"afterblur":w=Kr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=Af;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=mv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Av;break;case Ff:case Wf:case Pf:w=gv;break;case If:w=Ov;break;case"scroll":case"scrollend":w=dv;break;case"wheel":w=jv;break;case"copy":case"cut":case"paste":w=bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Of;break;case"toggle":case"beforetoggle":w=wv}var fe=(t&4)!==0,Ze=!fe&&(e==="scroll"||e==="scrollend"),z=fe?O!==null?O+"Capture":null:O;fe=[];for(var _=A,R;_!==null;){var q=_;if(R=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||R===null||z===null||(q=eu(_,z),q!=null&&fe.push(ju(_,q,R))),Ze)break;_=_.return}0<fe.length&&(O=new w(O,ee,null,l,H),Y.push({event:O,listeners:fe}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",O&&l!==qr&&(ee=l.relatedTarget||l.fromElement)&&($t(ee)||ee[Ee]))break e;if((w||O)&&(O=H.window===H?H:(O=H.ownerDocument)?O.defaultView||O.parentWindow:window,w?(ee=l.relatedTarget||l.toElement,w=A,ee=ee?$t(ee):null,ee!==null&&(Ze=d(ee),fe=ee.tag,ee!==Ze||fe!==5&&fe!==27&&fe!==6)&&(ee=null)):(w=null,ee=A),w!==ee)){if(fe=Af,q="onMouseLeave",z="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(fe=Of,q="onPointerLeave",z="onPointerEnter",_="pointer"),Ze=w==null?O:xt(w),R=ee==null?O:xt(ee),O=new fe(q,_+"leave",w,l,H),O.target=Ze,O.relatedTarget=R,q=null,$t(H)===A&&(fe=new fe(z,_+"enter",ee,l,H),fe.target=R,fe.relatedTarget=Ze,q=fe),Ze=q,w&&ee)t:{for(fe=U0,z=w,_=ee,R=0,q=z;q;q=fe(q))R++;q=0;for(var oe=_;oe;oe=fe(oe))q++;for(;0<R-q;)z=fe(z),R--;for(;0<q-R;)_=fe(_),q--;for(;R--;){if(z===_||_!==null&&z===_.alternate){fe=z;break t}z=fe(z),_=fe(_)}fe=null}else fe=null;w!==null&&_h(Y,O,w,fe,!1),ee!==null&&Ze!==null&&_h(Y,Ze,ee,fe,!0)}}e:{if(O=A?xt(A):window,w=O.nodeName&&O.nodeName.toLowerCase(),w==="select"||w==="input"&&O.type==="file")var Ue=qf;else if(Hf(O))if(Yf)Ue=Qv;else{Ue=Vv;var ae=Xv}else w=O.nodeName,!w||w.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?A&&Lr(A.elementType)&&(Ue=qf):Ue=Zv;if(Ue&&(Ue=Ue(e,A))){Lf(Y,Ue,l,H);break e}ae&&ae(e,O,A),e==="focusout"&&A&&O.type==="number"&&A.memoizedProps.value!=null&&Hr(O,"number",O.value)}switch(ae=A?xt(A):window,e){case"focusin":(Hf(ae)||ae.contentEditable==="true")&&(mn=ae,Pr=A,cu=null);break;case"focusout":cu=Pr=mn=null;break;case"mousedown":Ir=!0;break;case"contextmenu":case"mouseup":case"dragend":Ir=!1,$f(Y,l,H);break;case"selectionchange":if(Jv)break;case"keydown":case"keyup":$f(Y,l,H)}var be;if($r)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else hn?wf(e,l)&&(Ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ae="onCompositionStart");Ae&&(Nf&&l.locale!=="ko"&&(hn||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&hn&&(be=Cf()):(ta=H,Vr="value"in ta?ta.value:ta.textContent,hn=!0)),ae=tr(A,Ae),0<ae.length&&(Ae=new Df(Ae,e,null,l,H),Y.push({event:Ae,listeners:ae}),be?Ae.data=be:(be=Bf(l),be!==null&&(Ae.data=be)))),(be=Hv?Lv(e,l):qv(e,l))&&(Ae=tr(A,"onBeforeInput"),0<Ae.length&&(ae=new Df("onBeforeInput","beforeinput",null,l,H),Y.push({event:ae,listeners:Ae}),ae.data=be)),D0(Y,e,A,l,H)}Sh(Y,t)})}function ju(e,t,l){return{instance:e,listener:t,currentTarget:l}}function tr(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=eu(e,l),n!=null&&a.unshift(ju(e,n,u)),n=eu(e,t),n!=null&&a.push(ju(e,n,u))),e.tag===3)return a;e=e.return}return[]}function U0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _h(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var h=l,p=h.alternate,A=h.stateNode;if(h=h.tag,p!==null&&p===a)break;h!==5&&h!==26&&h!==27||A===null||(p=A,n?(A=eu(l,u),A!=null&&c.unshift(ju(l,A,p))):n||(A=eu(l,u),A!=null&&c.push(ju(l,A,p)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var w0=/\r\n?/g,B0=/\u0000|\uFFFD/g;function Th(e){return(typeof e=="string"?e:""+e).replace(w0,`
`).replace(B0,"")}function xh(e,t){return t=Th(t),Th(e)===t}function Ve(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||fn(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&fn(e,""+a);break;case"className":Ha(e,"class",a);break;case"tabIndex":Ha(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ha(e,l,a);break;case"style":xf(e,a,u);break;case"data":if(t!=="object"){Ha(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ri(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 u=="function"&&(l==="formAction"?(t!=="input"&&Ve(e,t,"name",n.name,n,null),Ve(e,t,"formEncType",n.formEncType,n,null),Ve(e,t,"formMethod",n.formMethod,n,null),Ve(e,t,"formTarget",n.formTarget,n,null)):(Ve(e,t,"encType",n.encType,n,null),Ve(e,t,"method",n.method,n,null),Ve(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ri(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=wl);break;case"onScroll":a!=null&&ze("scroll",e);break;case"onScrollEnd":a!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=ri(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ze("beforetoggle",e),ze("toggle",e),Ul(e,"popover",a);break;case"xlinkActuate":ml(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ml(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ml(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ml(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ml(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ml(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ml(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ml(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ml(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ul(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=fv.get(l)||l,Ul(e,l,a))}}function zo(e,t,l,a,n,u){switch(l){case"style":xf(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?fn(e,a):(typeof a=="number"||typeof a=="bigint")&&fn(e,""+a);break;case"onScroll":a!=null&&ze("scroll",e);break;case"onScrollEnd":a!=null&&ze("scrollend",e);break;case"onClick":a!=null&&(e.onclick=wl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ba.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[F]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Ul(e,l,a)}}}function Et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ve(e,t,u,c,l,null)}}n&&Ve(e,t,"srcSet",l.srcSet,l,null),a&&Ve(e,t,"src",l.src,l,null);return;case"input":ze("invalid",e);var h=u=c=n=null,p=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var H=l[a];if(H!=null)switch(a){case"name":n=H;break;case"type":c=H;break;case"checked":p=H;break;case"defaultChecked":A=H;break;case"value":u=H;break;case"defaultValue":h=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,t));break;default:Ve(e,t,a,H,l,null)}}Sf(e,u,h,p,A,c,n,!1);return;case"select":ze("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":u=h;break;case"defaultValue":c=h;break;case"multiple":a=h;default:Ve(e,t,n,h,l,null)}t=u,l=c,e.multiple=!!a,t!=null?on(e,!!a,t,!1):l!=null&&on(e,!!a,l,!0);return;case"textarea":ze("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(h=l[c],h!=null))switch(c){case"value":a=h;break;case"defaultValue":n=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(o(91));break;default:Ve(e,t,c,h,l,null)}_f(e,a,n,u);return;case"option":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ve(e,t,p,a,l,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(a=0;a<Nu.length;a++)ze(Nu[a],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ve(e,t,A,a,l,null)}return;default:if(Lr(t)){for(H in l)l.hasOwnProperty(H)&&(a=l[H],a!==void 0&&zo(e,t,H,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Ve(e,t,h,a,l,null))}function H0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,h=null,p=null,A=null,H=null;for(w in l){var Y=l[w];if(l.hasOwnProperty(w)&&Y!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":p=Y;default:a.hasOwnProperty(w)||Ve(e,t,w,null,a,Y)}}for(var O in a){var w=a[O];if(Y=l[O],a.hasOwnProperty(O)&&(w!=null||Y!=null))switch(O){case"type":u=w;break;case"name":n=w;break;case"checked":A=w;break;case"defaultChecked":H=w;break;case"value":c=w;break;case"defaultValue":h=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,t));break;default:w!==Y&&Ve(e,t,O,w,a,Y)}}Br(e,c,h,p,A,H,u,n);return;case"select":w=c=h=O=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":w=p;default:a.hasOwnProperty(u)||Ve(e,t,u,null,a,p)}for(n in a)if(u=a[n],p=l[n],a.hasOwnProperty(n)&&(u!=null||p!=null))switch(n){case"value":O=u;break;case"defaultValue":h=u;break;case"multiple":c=u;default:u!==p&&Ve(e,t,n,u,a,p)}t=h,l=c,a=w,O!=null?on(e,!!l,O,!1):!!a!=!!l&&(t!=null?on(e,!!l,t,!0):on(e,!!l,l?[]:"",!1));return;case"textarea":w=O=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Ve(e,t,h,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":O=n;break;case"defaultValue":w=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&Ve(e,t,c,n,a,u)}Ef(e,O,w);return;case"option":for(var ee in l)if(O=l[ee],l.hasOwnProperty(ee)&&O!=null&&!a.hasOwnProperty(ee))switch(ee){case"selected":e.selected=!1;break;default:Ve(e,t,ee,null,a,O)}for(p in a)if(O=a[p],w=l[p],a.hasOwnProperty(p)&&O!==w&&(O!=null||w!=null))switch(p){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ve(e,t,p,O,a,w)}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 fe in l)O=l[fe],l.hasOwnProperty(fe)&&O!=null&&!a.hasOwnProperty(fe)&&Ve(e,t,fe,null,a,O);for(A in a)if(O=a[A],w=l[A],a.hasOwnProperty(A)&&O!==w&&(O!=null||w!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:Ve(e,t,A,O,a,w)}return;default:if(Lr(t)){for(var Ze in l)O=l[Ze],l.hasOwnProperty(Ze)&&O!==void 0&&!a.hasOwnProperty(Ze)&&zo(e,t,Ze,void 0,a,O);for(H in a)O=a[H],w=l[H],!a.hasOwnProperty(H)||O===w||O===void 0&&w===void 0||zo(e,t,H,O,a,w);return}}for(var z in l)O=l[z],l.hasOwnProperty(z)&&O!=null&&!a.hasOwnProperty(z)&&Ve(e,t,z,null,a,O);for(Y in a)O=a[Y],w=l[Y],!a.hasOwnProperty(Y)||O===w||O==null&&w==null||Ve(e,t,Y,O,a,w)}function zh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function L0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,h=n.duration;if(u&&h&&zh(c)){for(c=0,h=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],A=p.startTime;if(A>h)break;var H=p.transferSize,Y=p.initiatorType;H&&zh(Y)&&(p=p.responseEnd,c+=H*(p<h?1:(h-A)/(p-A)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mo=null,Co=null;function lr(e){return e.nodeType===9?e:e.ownerDocument}function Mh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ch(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ro(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ao=null;function q0(){var e=window.event;return e&&e.type==="popstate"?e===Ao?!1:(Ao=e,!0):(Ao=null,!1)}var Rh=typeof setTimeout=="function"?setTimeout:void 0,Y0=typeof clearTimeout=="function"?clearTimeout:void 0,Ah=typeof Promise=="function"?Promise:void 0,G0=typeof queueMicrotask=="function"?queueMicrotask:typeof Ah<"u"?function(e){return Ah.resolve(null).then(e).catch(X0)}:Rh;function X0(e){setTimeout(function(){throw e})}function pa(e){return e==="head"}function Dh(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Gn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Uu(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Uu(l);for(var u=l.firstChild;u;){var c=u.nextSibling,h=u.nodeName;u[He]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Uu(e.ownerDocument.body);l=n}while(l);Gn(t)}function Oh(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Do(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Do(l),hl(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function V0(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[He])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=nl(e.nextSibling),e===null)break}return null}function Z0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=nl(e.nextSibling),e===null))return null;return e}function Nh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=nl(e.nextSibling),e===null))return null;return e}function Oo(e){return e.data==="$?"||e.data==="$~"}function No(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Q0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function nl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var jo=null;function jh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return nl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Uh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function wh(e,t,l){switch(t=lr(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Uu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);hl(e)}var ul=new Map,Bh=new Set;function ar(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Wl=V.d;V.d={f:K0,r:J0,D:$0,C:k0,L:F0,m:W0,X:I0,S:P0,M:ey};function K0(){var e=Wl.f(),t=$i();return e||t}function J0(e){var t=Rt(e);t!==null&&t.tag===5&&t.type==="form"?Is(t):Wl.r(e)}var Ln=typeof document>"u"?null:document;function Hh(e,t,l){var a=Ln;if(a&&typeof t=="string"&&t){var n=Wt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Bh.has(n)||(Bh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Et(t,"link",e),We(t),a.head.appendChild(t)))}}function $0(e){Wl.D(e),Hh("dns-prefetch",e,null)}function k0(e,t){Wl.C(e,t),Hh("preconnect",e,t)}function F0(e,t,l){Wl.L(e,t,l);var a=Ln;if(a&&e&&t){var n='link[rel="preload"][as="'+Wt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Wt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Wt(l.imageSizes)+'"]')):n+='[href="'+Wt(e)+'"]';var u=n;switch(t){case"style":u=qn(e);break;case"script":u=Yn(e)}ul.has(u)||(e=E({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),ul.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(wu(u))||t==="script"&&a.querySelector(Bu(u))||(t=a.createElement("link"),Et(t,"link",e),We(t),a.head.appendChild(t)))}}function W0(e,t){Wl.m(e,t);var l=Ln;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Wt(a)+'"][href="'+Wt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Yn(e)}if(!ul.has(u)&&(e=E({rel:"modulepreload",href:e},t),ul.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Bu(u)))return}a=l.createElement("link"),Et(a,"link",e),We(a),l.head.appendChild(a)}}}function P0(e,t,l){Wl.S(e,t,l);var a=Ln;if(a&&e){var n=Tl(a).hoistableStyles,u=qn(e);t=t||"default";var c=n.get(u);if(!c){var h={loading:0,preload:null};if(c=a.querySelector(wu(u)))h.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},l),(l=ul.get(u))&&Uo(e,l);var p=c=a.createElement("link");We(p),Et(p,"link",e),p._p=new Promise(function(A,H){p.onload=A,p.onerror=H}),p.addEventListener("load",function(){h.loading|=1}),p.addEventListener("error",function(){h.loading|=2}),h.loading|=4,nr(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:h},n.set(u,c)}}}function I0(e,t){Wl.X(e,t);var l=Ln;if(l&&e){var a=Tl(l).hoistableScripts,n=Yn(e),u=a.get(n);u||(u=l.querySelector(Bu(n)),u||(e=E({src:e,async:!0},t),(t=ul.get(n))&&wo(e,t),u=l.createElement("script"),We(u),Et(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ey(e,t){Wl.M(e,t);var l=Ln;if(l&&e){var a=Tl(l).hoistableScripts,n=Yn(e),u=a.get(n);u||(u=l.querySelector(Bu(n)),u||(e=E({src:e,async:!0,type:"module"},t),(t=ul.get(n))&&wo(e,t),u=l.createElement("script"),We(u),Et(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Lh(e,t,l,a){var n=(n=ve.current)?ar(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=qn(l.href),l=Tl(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=qn(l.href);var u=Tl(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(wu(e)))&&!u._p&&(c.instance=u,c.state.loading=5),ul.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ul.set(e,l),u||ty(n,e,l,c.state))),t&&a===null)throw Error(o(528,""));return c}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yn(l),l=Tl(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function qn(e){return'href="'+Wt(e)+'"'}function wu(e){return'link[rel="stylesheet"]['+e+"]"}function qh(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function ty(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Et(t,"link",l),We(t),e.head.appendChild(t))}function Yn(e){return'[src="'+Wt(e)+'"]'}function Bu(e){return"script[async]"+e}function Yh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Wt(l.href)+'"]');if(a)return t.instance=a,We(a),a;var n=E({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),We(a),Et(a,"style",n),nr(a,l.precedence,e),t.instance=a;case"stylesheet":n=qn(l.href);var u=e.querySelector(wu(n));if(u)return t.state.loading|=4,t.instance=u,We(u),u;a=qh(l),(n=ul.get(n))&&Uo(a,n),u=(e.ownerDocument||e).createElement("link"),We(u);var c=u;return c._p=new Promise(function(h,p){c.onload=h,c.onerror=p}),Et(u,"link",a),t.state.loading|=4,nr(u,l.precedence,e),t.instance=u;case"script":return u=Yn(l.src),(n=e.querySelector(Bu(u)))?(t.instance=n,We(n),n):(a=l,(n=ul.get(u))&&(a=E({},l),wo(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),Et(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,nr(a,l.precedence,e));return t.instance}function nr(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var h=a[c];if(h.dataset.precedence===t)u=h;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Uo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function wo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ur=null;function Gh(e,t,l){if(ur===null){var a=new Map,n=ur=new Map;n.set(l,a)}else n=ur,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[He]||u[$]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var h=a.get(c);h?h.push(u):a.set(c,[u])}}return a}function Xh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ly(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Vh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ay(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=qn(a.href),u=t.querySelector(wu(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ir.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,We(u);return}u=t.ownerDocument||t,a=qh(a),(n=ul.get(n))&&Uo(a,n),u=u.createElement("link"),We(u);var c=u;c._p=new Promise(function(h,p){c.onload=h,c.onerror=p}),Et(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ir.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Bo=0;function ny(e,t){return e.stylesheets&&e.count===0&&cr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&cr(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Bo===0&&(Bo=62500*L0());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cr(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Bo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ir(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rr=null;function cr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rr=new Map,t.forEach(uy,e),rr=null,ir.call(e))}function uy(e,t){if(!(t.state.loading&4)){var l=rr.get(e);if(l)var a=l.get(null);else{l=new Map,rr.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=ir.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Hu={$$typeof:ne,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function iy(e,t,l,a,n,u,c,h,p){this.tag=1,this.containerInfo=e,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=In(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=In(0),this.hiddenUpdates=In(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function Zh(e,t,l,a,n,u,c,h,p,A,H,Y){return e=new iy(e,t,l,c,p,A,H,Y,h),t=1,u===!0&&(t|=24),u=qt(3,null,null,t),e.current=u,u.stateNode=e,t=mc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},pc(u),e}function Qh(e){return e?(e=gn,e):gn}function Kh(e,t,l,a,n,u){n=Qh(n),a.context===null?a.context=n:a.pendingContext=n,a=ra(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=ca(e,a,t),l!==null&&(wt(l,e,t),vu(l,e,t))}function Jh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ho(e,t){Jh(e,t),(e=e.alternate)&&Jh(e,t)}function $h(e){if(e.tag===13||e.tag===31){var t=Ga(e,67108864);t!==null&&wt(t,e,67108864),Ho(e,67108864)}}function kh(e){if(e.tag===13||e.tag===31){var t=Zt();t=ue(t);var l=Ga(e,t);l!==null&&wt(l,e,t),Ho(e,t)}}var or=!0;function ry(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=2,Lo(e,t,l,a)}finally{V.p=u,D.T=n}}function cy(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=8,Lo(e,t,l,a)}finally{V.p=u,D.T=n}}function Lo(e,t,l,a){if(or){var n=qo(a);if(n===null)xo(e,t,a,fr,l),Wh(e,a);else if(fy(n,e,t,l,a))a.stopPropagation();else if(Wh(e,a),t&4&&-1<oy.indexOf(e)){for(;n!==null;){var u=Rt(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Nl(u.pendingLanes);if(c!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;c;){var p=1<<31-Ct(c);h.entanglements[1]|=p,c&=~p}Al(u),(Le&6)===0&&(Ki=_t()+500,Ou(0))}}break;case 31:case 13:h=Ga(u,2),h!==null&&wt(h,u,2),$i(),Ho(u,2)}if(u=qo(a),u===null&&xo(e,t,a,fr,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else xo(e,t,a,null,l)}}function qo(e){return e=Yr(e),Yo(e)}var fr=null;function Yo(e){if(fr=null,e=$t(e),e!==null){var t=d(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===31){if(e=g(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fr=e,null}function Fh(e){switch(e){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(Pn()){case Kt:return 2;case Jt:return 8;case ja:case jr:return 32;case nn:return 268435456;default:return 32}default:return 32}}var Go=!1,ba=null,Sa=null,Ea=null,Lu=new Map,qu=new Map,_a=[],oy="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 Wh(e,t){switch(e){case"focusin":case"focusout":ba=null;break;case"dragenter":case"dragleave":Sa=null;break;case"mouseover":case"mouseout":Ea=null;break;case"pointerover":case"pointerout":Lu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qu.delete(t.pointerId)}}function Yu(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=Rt(t),t!==null&&$h(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function fy(e,t,l,a,n){switch(t){case"focusin":return ba=Yu(ba,e,t,l,a,n),!0;case"dragenter":return Sa=Yu(Sa,e,t,l,a,n),!0;case"mouseover":return Ea=Yu(Ea,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Lu.set(u,Yu(Lu.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,qu.set(u,Yu(qu.get(u)||null,e,t,l,a,n)),!0}return!1}function Ph(e){var t=$t(e.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,re(e.priority,function(){kh(l)});return}}else if(t===31){if(t=g(l),t!==null){e.blockedOn=t,re(e.priority,function(){kh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=qo(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);qr=a,l.target.dispatchEvent(a),qr=null}else return t=Rt(l),t!==null&&$h(t),e.blockedOn=l,!1;t.shift()}return!0}function Ih(e,t,l){sr(e)&&l.delete(t)}function sy(){Go=!1,ba!==null&&sr(ba)&&(ba=null),Sa!==null&&sr(Sa)&&(Sa=null),Ea!==null&&sr(Ea)&&(Ea=null),Lu.forEach(Ih),qu.forEach(Ih)}function dr(e,t){e.blockedOn===t&&(e.blockedOn=null,Go||(Go=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,sy)))}var hr=null;function em(e){hr!==e&&(hr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){hr===e&&(hr=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Yo(a||l)===null)continue;break}var u=Rt(l);u!==null&&(e.splice(t,3),t-=3,Lc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Gn(e){function t(p){return dr(p,e)}ba!==null&&dr(ba,e),Sa!==null&&dr(Sa,e),Ea!==null&&dr(Ea,e),Lu.forEach(t),qu.forEach(t);for(var l=0;l<_a.length;l++){var a=_a[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_a.length&&(l=_a[0],l.blockedOn===null);)Ph(l),l.blockedOn===null&&_a.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[F]||null;if(typeof u=="function")c||em(l);else if(c){var h=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[F]||null)h=c.formAction;else if(Yo(n)!==null)continue}else h=c.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),em(l)}}}function tm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Xo(e){this._internalRoot=e}mr.prototype.render=Xo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=Zt();Kh(l,a,e,t,null,null)},mr.prototype.unmount=Xo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kh(e.current,2,null,e,null,null),$i(),t[Ee]=null}};function mr(e){this._internalRoot=e}mr.prototype.unstable_scheduleHydration=function(e){if(e){var t=le();e={blockedOn:null,target:e,priority:t};for(var l=0;l<_a.length&&t!==0&&t<_a[l].priority;l++);_a.splice(l,0,e),l===0&&Ph(e)}};var lm=r.version;if(lm!=="19.2.0")throw Error(o(527,lm,"19.2.0"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var dy={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vr.isDisabled&&vr.supportsFiber)try{Il=vr.inject(dy),Tt=vr}catch{}}return Xu.createRoot=function(e,t){if(!s(e))throw Error(o(299));var l=!1,a="",n=od,u=fd,c=sd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Zh(e,1,!1,null,null,l,a,null,n,u,c,tm),e[Ee]=t.current,To(e),new Xo(t)},Xu.hydrateRoot=function(e,t,l){if(!s(e))throw Error(o(299));var a=!1,n="",u=od,c=fd,h=sd,p=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=Zh(e,1,!0,t,l??null,a,n,p,u,c,h,tm),t.context=Qh(null),l=t.current,a=Zt(),a=ue(a),n=ra(a),n.callback=null,ca(l,n,a),l=a,t.current.lanes=l,b(t,l),Al(t),e[Ee]=t.current,To(e),new mr(t)},Xu.version="19.2.0",Xu}var dm;function _y(){if(dm)return Qo.exports;dm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Qo.exports=Ey(),Qo.exports}var Ty=_y();/**
* react-router v7.9.4
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var Bm=i=>{throw TypeError(i)},xy=(i,r,f)=>r.has(i)||Bm("Cannot "+f),ko=(i,r,f)=>(xy(i,r,"read from private field"),f?f.call(i):r.get(i)),zy=(i,r,f)=>r.has(i)?Bm("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,f),hm="popstate";function My(i={}){function r(o,s){let{pathname:d,search:v,hash:g}=o.location;return ku("",{pathname:d,search:v,hash:g},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function f(o,s){return typeof s=="string"?s:Aa(s)}return Ry(r,f,null,i)}function Te(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function rt(i,r){if(!i){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Cy(){return Math.random().toString(36).substring(2,10)}function mm(i,r){return{usr:i.state,key:i.key,idx:r}}function ku(i,r,f=null,o){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof r=="string"?Da(r):r,state:f,key:r&&r.key||o||Cy()}}function Aa({pathname:i="/",search:r="",hash:f=""}){return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),f&&f!=="#"&&(i+=f.charAt(0)==="#"?f:"#"+f),i}function Da(i){let r={};if(i){let f=i.indexOf("#");f>=0&&(r.hash=i.substring(f),i=i.substring(0,f));let o=i.indexOf("?");o>=0&&(r.search=i.substring(o),i=i.substring(0,o)),i&&(r.pathname=i)}return r}function Ry(i,r,f,o={}){let{window:s=document.defaultView,v5Compat:d=!1}=o,v=s.history,g="POP",y=null,m=x();m==null&&(m=0,v.replaceState({...v.state,idx:m},""));function x(){return(v.state||{idx:null}).idx}function E(){g="POP";let J=x(),Q=J==null?null:J-m;m=J,y&&y({action:g,location:k.location,delta:Q})}function N(J,Q){g="PUSH";let I=ku(k.location,J,Q);m=x()+1;let ne=mm(I,m),Ce=k.createHref(I);try{v.pushState(ne,"",Ce)}catch(se){if(se instanceof DOMException&&se.name==="DataCloneError")throw se;s.location.assign(Ce)}d&&y&&y({action:g,location:k.location,delta:1})}function B(J,Q){g="REPLACE";let I=ku(k.location,J,Q);m=x();let ne=mm(I,m),Ce=k.createHref(I);v.replaceState(ne,"",Ce),d&&y&&y({action:g,location:k.location,delta:0})}function G(J){return Hm(J)}let k={get action(){return g},get location(){return i(s,v)},listen(J){if(y)throw new Error("A history only accepts one active listener");return s.addEventListener(hm,E),y=J,()=>{s.removeEventListener(hm,E),y=null}},createHref(J){return r(s,J)},createURL:G,encodeLocation(J){let Q=G(J);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:N,replace:B,go(J){return v.go(J)}};return k}function Hm(i,r=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),Te(f,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Aa(i);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=f+o),new URL(o,f)}var $u,vm=class{constructor(i){if(zy(this,$u,new Map),i)for(let[r,f]of i)this.set(r,f)}get(i){if(ko(this,$u).has(i))return ko(this,$u).get(i);if(i.defaultValue!==void 0)return i.defaultValue;throw new Error("No value found for context")}set(i,r){ko(this,$u).set(i,r)}};$u=new WeakMap;var Ay=new Set(["lazy","caseSensitive","path","id","index","children"]);function Dy(i){return Ay.has(i)}var Oy=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Ny(i){return Oy.has(i)}function jy(i){return i.index===!0}function Fu(i,r,f=[],o={},s=!1){return i.map((d,v)=>{let g=[...f,String(v)],y=typeof d.id=="string"?d.id:g.join("-");if(Te(d.index!==!0||!d.children,"Cannot specify children on an index route"),Te(s||!o[y],`Found a route id collision on id "${y}". Route id's must be globally unique within Data Router usages`),jy(d)){let m={...d,...r(d),id:y};return o[y]=m,m}else{let m={...d,...r(d),id:y,children:void 0};return o[y]=m,d.children&&(m.children=Fu(d.children,r,g,o,s)),m}})}function Ma(i,r,f="/"){return Sr(i,r,f,!1)}function Sr(i,r,f,o){let s=typeof r=="string"?Da(r):r,d=ol(s.pathname||"/",f);if(d==null)return null;let v=Lm(i);wy(v);let g=null;for(let y=0;g==null&&y<v.length;++y){let m=Ky(d);g=Zy(v[y],m,o)}return g}function Uy(i,r){let{route:f,pathname:o,params:s}=i;return{id:f.id,pathname:o,params:s,data:r[f.id],loaderData:r[f.id],handle:f.handle}}function Lm(i,r=[],f=[],o="",s=!1){let d=(v,g,y=s,m)=>{let x={relativePath:m===void 0?v.path||"":m,caseSensitive:v.caseSensitive===!0,childrenIndex:g,route:v};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(o)&&y)return;Te(x.relativePath.startsWith(o),`Absolute route path "${x.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(o.length)}let E=Dl([o,x.relativePath]),N=f.concat(x);v.children&&v.children.length>0&&(Te(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),Lm(v.children,r,N,E,y)),!(v.path==null&&!v.index)&&r.push({path:E,score:Xy(E,v.index),routesMeta:N})};return i.forEach((v,g)=>{if(v.path===""||!v.path?.includes("?"))d(v,g);else for(let y of qm(v.path))d(v,g,!0,y)}),r}function qm(i){let r=i.split("/");if(r.length===0)return[];let[f,...o]=r,s=f.endsWith("?"),d=f.replace(/\?$/,"");if(o.length===0)return s?[d,""]:[d];let v=qm(o.join("/")),g=[];return g.push(...v.map(y=>y===""?d:[d,y].join("/"))),s&&g.push(...v),g.map(y=>i.startsWith("/")&&y===""?"/":y)}function wy(i){i.sort((r,f)=>r.score!==f.score?f.score-r.score:Vy(r.routesMeta.map(o=>o.childrenIndex),f.routesMeta.map(o=>o.childrenIndex)))}var By=/^:[\w-]+$/,Hy=3,Ly=2,qy=1,Yy=10,Gy=-2,ym=i=>i==="*";function Xy(i,r){let f=i.split("/"),o=f.length;return f.some(ym)&&(o+=Gy),r&&(o+=Ly),f.filter(s=>!ym(s)).reduce((s,d)=>s+(By.test(d)?Hy:d===""?qy:Yy),o)}function Vy(i,r){return i.length===r.length&&i.slice(0,-1).every((o,s)=>o===r[s])?i[i.length-1]-r[r.length-1]:0}function Zy(i,r,f=!1){let{routesMeta:o}=i,s={},d="/",v=[];for(let g=0;g<o.length;++g){let y=o[g],m=g===o.length-1,x=d==="/"?r:r.slice(d.length)||"/",E=xr({path:y.relativePath,caseSensitive:y.caseSensitive,end:m},x),N=y.route;if(!E&&m&&f&&!o[o.length-1].route.index&&(E=xr({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!E)return null;Object.assign(s,E.params),v.push({params:s,pathname:Dl([d,E.pathname]),pathnameBase:Fy(Dl([d,E.pathnameBase])),route:N}),E.pathnameBase!=="/"&&(d=Dl([d,E.pathnameBase]))}return v}function xr(i,r){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,o]=Qy(i.path,i.caseSensitive,i.end),s=r.match(f);if(!s)return null;let d=s[0],v=d.replace(/(.)\/+$/,"$1"),g=s.slice(1);return{params:o.reduce((m,{paramName:x,isOptional:E},N)=>{if(x==="*"){let G=g[N]||"";v=d.slice(0,d.length-G.length).replace(/(.)\/+$/,"$1")}const B=g[N];return E&&!B?m[x]=void 0:m[x]=(B||"").replace(/%2F/g,"/"),m},{}),pathname:d,pathnameBase:v,pattern:i}}function Qy(i,r=!1,f=!0){rt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],s="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,g,y)=>(o.push({paramName:g,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),s+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?s+="\\/*$":i!==""&&i!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,r?void 0:"i"),o]}function Ky(i){try{return i.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return rt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),i}}function ol(i,r){if(r==="/")return i;if(!i.toLowerCase().startsWith(r.toLowerCase()))return null;let f=r.endsWith("/")?r.length-1:r.length,o=i.charAt(f);return o&&o!=="/"?null:i.slice(f)||"/"}function Jy({basename:i,pathname:r}){return r==="/"?i:Dl([i,r])}function $y(i,r="/"){let{pathname:f,search:o="",hash:s=""}=typeof i=="string"?Da(i):i;return{pathname:f?f.startsWith("/")?f:ky(f,r):r,search:Wy(o),hash:Py(s)}}function ky(i,r){let f=r.replace(/\/+$/,"").split("/");return i.split("/").forEach(s=>{s===".."?f.length>1&&f.pop():s!=="."&&f.push(s)}),f.length>1?f.join("/"):"/"}function Fo(i,r,f,o){return`Cannot include a '${i}' character in a manually specified \`to.${r}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ym(i){return i.filter((r,f)=>f===0||r.route.path&&r.route.path.length>0)}function Rr(i){let r=Ym(i);return r.map((f,o)=>o===r.length-1?f.pathname:f.pathnameBase)}function Ar(i,r,f,o=!1){let s;typeof i=="string"?s=Da(i):(s={...i},Te(!s.pathname||!s.pathname.includes("?"),Fo("?","pathname","search",s)),Te(!s.pathname||!s.pathname.includes("#"),Fo("#","pathname","hash",s)),Te(!s.search||!s.search.includes("#"),Fo("#","search","hash",s)));let d=i===""||s.pathname==="",v=d?"/":s.pathname,g;if(v==null)g=f;else{let E=r.length-1;if(!o&&v.startsWith("..")){let N=v.split("/");for(;N[0]==="..";)N.shift(),E-=1;s.pathname=N.join("/")}g=E>=0?r[E]:"/"}let y=$y(s,g),m=v&&v!=="/"&&v.endsWith("/"),x=(d||v===".")&&f.endsWith("/");return!y.pathname.endsWith("/")&&(m||x)&&(y.pathname+="/"),y}var Dl=i=>i.join("/").replace(/\/\/+/g,"/"),Fy=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Wy=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Py=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,zr=class{constructor(i,r,f,o=!1){this.status=i,this.statusText=r||"",this.internal=o,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Wu(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var Gm=["POST","PUT","PATCH","DELETE"],Iy=new Set(Gm),eg=["GET",...Gm],tg=new Set(eg),lg=new Set([301,302,303,307,308]),ag=new Set([307,308]),Wo={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ng={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Vu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ug=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rf=i=>ug.test(i),ig=i=>({hasErrorBoundary:!!i.hasErrorBoundary}),Xm="remix-router-transitions",Vm=Symbol("ResetLoaderData");function rg(i){const r=i.window?i.window:typeof window<"u"?window:void 0,f=typeof r<"u"&&typeof r.document<"u"&&typeof r.document.createElement<"u";Te(i.routes.length>0,"You must provide a non-empty routes array to createRouter");let o=i.hydrationRouteProperties||[],s=i.mapRouteProperties||ig,d={},v=Fu(i.routes,s,void 0,d),g,y=i.basename||"/";y.startsWith("/")||(y=`/${y}`);let m=i.dataStrategy||dg,x={...i.future},E=null,N=new Set,B=null,G=null,k=null,J=i.hydrationData!=null,Q=Ma(v,i.history.location,y),I=!1,ne=null,Ce;if(Q==null&&!i.patchRoutesOnNavigation){let b=cl(404,{pathname:i.history.location.pathname}),{matches:M,route:U}=yr(v);Ce=!0,Q=M,ne={[U.id]:b}}else if(Q&&!i.hydrationData&&_l(Q,v,i.history.location.pathname).active&&(Q=null),Q)if(Q.some(b=>b.route.lazy))Ce=!1;else if(!Q.some(b=>cf(b.route)))Ce=!0;else{let b=i.hydrationData?i.hydrationData.loaderData:null,M=i.hydrationData?i.hydrationData.errors:null;if(M){let U=Q.findIndex(X=>M[X.route.id]!==void 0);Ce=Q.slice(0,U+1).every(X=>!lf(X.route,b,M))}else Ce=Q.every(U=>!lf(U.route,b,M))}else{Ce=!1,Q=[];let b=_l(null,v,i.history.location.pathname);b.active&&b.matches&&(I=!0,Q=b.matches)}let se,j={historyAction:i.history.action,location:i.history.location,matches:Q,initialized:Ce,navigation:Wo,restoreScrollPosition:i.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:i.hydrationData&&i.hydrationData.loaderData||{},actionData:i.hydrationData&&i.hydrationData.actionData||null,errors:i.hydrationData&&i.hydrationData.errors||ne,fetchers:new Map,blockers:new Map},W="POP",pe=!1,he,Be=!1,ke=new Map,et=null,Oe=!1,Ne=!1,Fe=new Set,D=new Map,V=0,te=-1,Se=new Map,ye=new Set,S=new Map,L=new Map,Z=new Set,P=new Map,de,ve=null;function je(){if(E=i.history.listen(({action:b,location:M,delta:U})=>{if(de){de(),de=void 0;return}rt(P.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=ni({currentLocation:j.location,nextLocation:M,historyAction:b});if(X&&U!=null){let K=new Promise(ue=>{de=ue});i.history.go(U*-1),un(X,{state:"blocked",location:M,proceed(){un(X,{state:"proceeding",proceed:void 0,reset:void 0,location:M}),K.then(()=>i.history.go(U))},reset(){let ue=new Map(j.blockers);ue.set(X,Vu),tt({blockers:ue})}});return}return Mt(b,M)}),f){Cg(r,ke);let b=()=>Rg(r,ke);r.addEventListener("pagehide",b),et=()=>r.removeEventListener("pagehide",b)}return j.initialized||Mt("POP",j.location,{initialHydration:!0}),se}function yt(){E&&E(),et&&et(),N.clear(),he&&he.abort(),j.fetchers.forEach((b,M)=>nn(M)),j.blockers.forEach((b,M)=>ai(M))}function Ie(b){return N.add(b),()=>N.delete(b)}function tt(b,M={}){b.matches&&(b.matches=b.matches.map(K=>{let ue=d[K.route.id],ie=K.route;return ie.element!==ue.element||ie.errorElement!==ue.errorElement||ie.hydrateFallbackElement!==ue.hydrateFallbackElement?{...K,route:ue}:K})),j={...j,...b};let U=[],X=[];j.fetchers.forEach((K,ue)=>{K.state==="idle"&&(Z.has(ue)?U.push(ue):X.push(ue))}),Z.forEach(K=>{!j.fetchers.has(K)&&!D.has(K)&&U.push(K)}),[...N].forEach(K=>K(j,{deletedFetchers:U,viewTransitionOpts:M.viewTransitionOpts,flushSync:M.flushSync===!0})),U.forEach(K=>nn(K)),X.forEach(K=>j.fetchers.delete(K))}function fl(b,M,{flushSync:U}={}){let X=j.actionData!=null&&j.navigation.formMethod!=null&&Ht(j.navigation.formMethod)&&j.navigation.state==="loading"&&b.state?._isRedirect!==!0,K;M.actionData?Object.keys(M.actionData).length>0?K=M.actionData:K=null:X?K=j.actionData:K=null;let ue=M.loaderData?Mm(j.loaderData,M.loaderData,M.matches||[],M.errors):j.loaderData,ie=j.blockers;ie.size>0&&(ie=new Map(ie),ie.forEach(($,F)=>ie.set(F,Vu)));let le=Oe?!1:wa(b,M.matches||j.matches),re=pe===!0||j.navigation.formMethod!=null&&Ht(j.navigation.formMethod)&&b.state?._isRedirect!==!0;g&&(v=g,g=void 0),Oe||W==="POP"||(W==="PUSH"?i.history.push(b,b.state):W==="REPLACE"&&i.history.replace(b,b.state));let ce;if(W==="POP"){let $=ke.get(j.location.pathname);$&&$.has(b.pathname)?ce={currentLocation:j.location,nextLocation:b}:ke.has(b.pathname)&&(ce={currentLocation:b,nextLocation:j.location})}else if(Be){let $=ke.get(j.location.pathname);$?$.add(b.pathname):($=new Set([b.pathname]),ke.set(j.location.pathname,$)),ce={currentLocation:j.location,nextLocation:b}}tt({...M,actionData:K,loaderData:ue,historyAction:W,location:b,initialized:!0,navigation:Wo,revalidation:"idle",restoreScrollPosition:le,preventScrollReset:re,blockers:ie},{viewTransitionOpts:ce,flushSync:U===!0}),W="POP",pe=!1,Be=!1,Oe=!1,Ne=!1,ve?.resolve(),ve=null}async function an(b,M){if(typeof b=="number"){i.history.go(b);return}let U=tf(j.location,j.matches,y,b,M?.fromRouteId,M?.relative),{path:X,submission:K,error:ue}=gm(!1,U,M),ie=j.location,le=ku(j.location,X,M&&M.state);le={...le,...i.history.encodeLocation(le)};let re=M&&M.replace!=null?M.replace:void 0,ce="PUSH";re===!0?ce="REPLACE":re===!1||K!=null&&Ht(K.formMethod)&&K.formAction===j.location.pathname+j.location.search&&(ce="REPLACE");let $=M&&"preventScrollReset"in M?M.preventScrollReset===!0:void 0,F=(M&&M.flushSync)===!0,Ee=ni({currentLocation:ie,nextLocation:le,historyAction:ce});if(Ee){un(Ee,{state:"blocked",location:le,proceed(){un(Ee,{state:"proceeding",proceed:void 0,reset:void 0,location:le}),an(b,M)},reset(){let Ge=new Map(j.blockers);Ge.set(Ee,Vu),tt({blockers:Ge})}});return}await Mt(ce,le,{submission:K,pendingError:ue,preventScrollReset:$,replace:M&&M.replace,enableViewTransition:M&&M.viewTransition,flushSync:F})}function ei(){ve||(ve=Ag()),Pn(),tt({revalidation:"loading"});let b=ve.promise;return j.navigation.state==="submitting"?b:j.navigation.state==="idle"?(Mt(j.historyAction,j.location,{startUninterruptedRevalidation:!0}),b):(Mt(W||j.historyAction,j.navigation.location,{overrideNavigation:j.navigation,enableViewTransition:Be===!0}),b)}async function Mt(b,M,U){he&&he.abort(),he=null,W=b,Oe=(U&&U.startUninterruptedRevalidation)===!0,Nl(j.location,j.matches),pe=(U&&U.preventScrollReset)===!0,Be=(U&&U.enableViewTransition)===!0;let X=g||v,K=U&&U.overrideNavigation,ue=U?.initialHydration&&j.matches&&j.matches.length>0&&!I?j.matches:Ma(X,M,y),ie=(U&&U.flushSync)===!0;if(ue&&j.initialized&&!Ne&&Sg(j.location,M)&&!(U&&U.submission&&Ht(U.submission.formMethod))){fl(M,{matches:ue},{flushSync:ie});return}let le=_l(ue,X,M.pathname);if(le.active&&le.matches&&(ue=le.matches),!ue){let{error:gt,notFoundMatches:Ke,route:He}=ea(M.pathname);fl(M,{matches:Ke,loaderData:{},errors:{[He.id]:gt}},{flushSync:ie});return}he=new AbortController;let re=Vn(i.history,M,he.signal,U&&U.submission),ce=i.getContext?await i.getContext():new vm,$;if(U&&U.pendingError)$=[Ca(ue).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&Ht(U.submission.formMethod)){let gt=await Jn(re,M,U.submission,ue,ce,le.active,U&&U.initialHydration===!0,{replace:U.replace,flushSync:ie});if(gt.shortCircuited)return;if(gt.pendingActionResult){let[Ke,He]=gt.pendingActionResult;if(Qt(He)&&Wu(He.error)&&He.error.status===404){he=null,fl(M,{matches:gt.matches,loaderData:{},errors:{[Ke]:He.error}});return}}ue=gt.matches||ue,$=gt.pendingActionResult,K=Po(M,U.submission),ie=!1,le.active=!1,re=Vn(i.history,re.url,re.signal)}let{shortCircuited:F,matches:Ee,loaderData:Ge,errors:ct}=await $n(re,M,ue,ce,le.active,K,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,ie,$);F||(he=null,fl(M,{matches:Ee||ue,...Cm($),loaderData:Ge,errors:ct}))}async function Jn(b,M,U,X,K,ue,ie,le={}){Pn();let re=zg(M,U);if(tt({navigation:re},{flushSync:le.flushSync===!0}),ue){let F=await cn(X,M.pathname,b.signal);if(F.type==="aborted")return{shortCircuited:!0};if(F.type==="error"){if(F.partialMatches.length===0){let{matches:Ge,route:ct}=yr(v);return{matches:Ge,pendingActionResult:[ct.id,{type:"error",error:F.error}]}}let Ee=Ca(F.partialMatches).route.id;return{matches:F.partialMatches,pendingActionResult:[Ee,{type:"error",error:F.error}]}}else if(F.matches)X=F.matches;else{let{notFoundMatches:Ee,error:Ge,route:ct}=ea(M.pathname);return{matches:Ee,pendingActionResult:[ct.id,{type:"error",error:Ge}]}}}let ce,$=Er(X,M);if(!$.route.action&&!$.route.lazy)ce={type:"error",error:cl(405,{method:b.method,pathname:M.pathname,routeId:$.route.id})};else{let F=Qn(s,d,b,X,$,ie?[]:o,K),Ee=await Na(b,F,K,null);if(ce=Ee[$.route.id],!ce){for(let Ge of X)if(Ee[Ge.route.id]){ce=Ee[Ge.route.id];break}}if(b.signal.aborted)return{shortCircuited:!0}}if(tn(ce)){let F;return le&&le.replace!=null?F=le.replace:F=Tm(ce.response.headers.get("Location"),new URL(b.url),y)===j.location.pathname+j.location.search,await Ol(b,ce,!0,{submission:U,replace:F}),{shortCircuited:!0}}if(Qt(ce)){let F=Ca(X,$.route.id);return(le&&le.replace)!==!0&&(W="PUSH"),{matches:X,pendingActionResult:[F.route.id,ce,$.route.id]}}return{matches:X,pendingActionResult:[$.route.id,ce]}}async function $n(b,M,U,X,K,ue,ie,le,re,ce,$,F){let Ee=ue||Po(M,ie),Ge=ie||le||Am(Ee),ct=!Oe&&!ce;if(K){if(ct){let mt=ti(F);tt({navigation:Ee,...mt!==void 0?{actionData:mt}:{}},{flushSync:$})}let _e=await cn(U,M.pathname,b.signal);if(_e.type==="aborted")return{shortCircuited:!0};if(_e.type==="error"){if(_e.partialMatches.length===0){let{matches:jl,route:zl}=yr(v);return{matches:jl,loaderData:{},errors:{[zl.id]:_e.error}}}let mt=Ca(_e.partialMatches).route.id;return{matches:_e.partialMatches,loaderData:{},errors:{[mt]:_e.error}}}else if(_e.matches)U=_e.matches;else{let{error:mt,notFoundMatches:jl,route:zl}=ea(M.pathname);return{matches:jl,loaderData:{},errors:{[zl.id]:mt}}}}let gt=g||v,{dsMatches:Ke,revalidatingFetchers:He}=pm(b,X,s,d,i.history,j,U,Ge,M,ce?[]:o,ce===!0,Ne,Fe,Z,S,ye,gt,y,i.patchRoutesOnNavigation!=null,F);if(te=++V,!i.dataStrategy&&!Ke.some(_e=>_e.shouldLoad)&&!Ke.some(_e=>_e.route.middleware&&_e.route.middleware.length>0)&&He.length===0){let _e=Tt();return fl(M,{matches:U,loaderData:{},errors:F&&Qt(F[1])?{[F[0]]:F[1].error}:null,...Cm(F),..._e?{fetchers:new Map(j.fetchers)}:{}},{flushSync:$}),{shortCircuited:!0}}if(ct){let _e={};if(!K){_e.navigation=Ee;let mt=ti(F);mt!==void 0&&(_e.actionData=mt)}He.length>0&&(_e.fetchers=li(He)),tt(_e,{flushSync:$})}He.forEach(_e=>{sl(_e.key),_e.controller&&D.set(_e.key,_e.controller)});let hl=()=>He.forEach(_e=>sl(_e.key));he&&he.signal.addEventListener("abort",hl);let{loaderResults:$t,fetcherResults:Rt}=await _t(Ke,He,b,X);if(b.signal.aborted)return{shortCircuited:!0};he&&he.signal.removeEventListener("abort",hl),He.forEach(_e=>D.delete(_e.key));let xt=gr($t);if(xt)return await Ol(b,xt.result,!0,{replace:re}),{shortCircuited:!0};if(xt=gr(Rt),xt)return ye.add(xt.key),await Ol(b,xt.result,!0,{replace:re}),{shortCircuited:!0};let{loaderData:Tl,errors:We}=zm(j,U,$t,F,He,Rt);ce&&j.errors&&(We={...j.errors,...We});let xl=Tt(),Ba=dl(te),kt=xl||Ba||He.length>0;return{matches:U,loaderData:Tl,errors:We,...kt?{fetchers:new Map(j.fetchers)}:{}}}function ti(b){if(b&&!Qt(b[1]))return{[b[0]]:b[1].data};if(j.actionData)return Object.keys(j.actionData).length===0?null:j.actionData}function li(b){return b.forEach(M=>{let U=j.fetchers.get(M.key),X=Zu(void 0,U?U.data:void 0);j.fetchers.set(M.key,X)}),new Map(j.fetchers)}async function kn(b,M,U,X){sl(b);let K=(X&&X.flushSync)===!0,ue=g||v,ie=tf(j.location,j.matches,y,U,M,X?.relative),le=Ma(ue,ie,y),re=_l(le,ue,ie);if(re.active&&re.matches&&(le=re.matches),!le){Jt(b,M,cl(404,{pathname:ie}),{flushSync:K});return}let{path:ce,submission:$,error:F}=gm(!0,ie,X);if(F){Jt(b,M,F,{flushSync:K});return}let Ee=i.getContext?await i.getContext():new vm,Ge=(X&&X.preventScrollReset)===!0;if($&&Ht($.formMethod)){await Fn(b,M,ce,le,Ee,re.active,K,Ge,$);return}S.set(b,{routeId:M,path:ce}),await Wn(b,M,ce,le,Ee,re.active,K,Ge,$)}async function Fn(b,M,U,X,K,ue,ie,le,re){Pn(),S.delete(b);let ce=j.fetchers.get(b);Kt(b,Mg(re,ce),{flushSync:ie});let $=new AbortController,F=Vn(i.history,U,$.signal,re);if(ue){let nt=await cn(X,new URL(F.url).pathname,F.signal,b);if(nt.type==="aborted")return;if(nt.type==="error"){Jt(b,M,nt.error,{flushSync:ie});return}else if(nt.matches)X=nt.matches;else{Jt(b,M,cl(404,{pathname:U}),{flushSync:ie});return}}let Ee=Er(X,U);if(!Ee.route.action&&!Ee.route.lazy){let nt=cl(405,{method:re.formMethod,pathname:U,routeId:M});Jt(b,M,nt,{flushSync:ie});return}D.set(b,$);let Ge=V,ct=Qn(s,d,F,X,Ee,o,K),Ke=(await Na(F,ct,K,b))[Ee.route.id];if(F.signal.aborted){D.get(b)===$&&D.delete(b);return}if(Z.has(b)){if(tn(Ke)||Qt(Ke)){Kt(b,Pl(void 0));return}}else{if(tn(Ke))if(D.delete(b),te>Ge){Kt(b,Pl(void 0));return}else return ye.add(b),Kt(b,Zu(re)),Ol(F,Ke,!1,{fetcherSubmission:re,preventScrollReset:le});if(Qt(Ke)){Jt(b,M,Ke.error);return}}let He=j.navigation.location||j.location,hl=Vn(i.history,He,$.signal),$t=g||v,Rt=j.navigation.state!=="idle"?Ma($t,j.navigation.location,y):j.matches;Te(Rt,"Didn't find any matches after fetcher action");let xt=++V;Se.set(b,xt);let Tl=Zu(re,Ke.data);j.fetchers.set(b,Tl);let{dsMatches:We,revalidatingFetchers:xl}=pm(hl,K,s,d,i.history,j,Rt,re,He,o,!1,Ne,Fe,Z,S,ye,$t,y,i.patchRoutesOnNavigation!=null,[Ee.route.id,Ke]);xl.filter(nt=>nt.key!==b).forEach(nt=>{let Ul=nt.key,Ha=j.fetchers.get(Ul),ml=Zu(void 0,Ha?Ha.data:void 0);j.fetchers.set(Ul,ml),sl(Ul),nt.controller&&D.set(Ul,nt.controller)}),tt({fetchers:new Map(j.fetchers)});let Ba=()=>xl.forEach(nt=>sl(nt.key));$.signal.addEventListener("abort",Ba);let{loaderResults:kt,fetcherResults:_e}=await _t(We,xl,hl,K);if($.signal.aborted)return;if($.signal.removeEventListener("abort",Ba),Se.delete(b),D.delete(b),xl.forEach(nt=>D.delete(nt.key)),j.fetchers.has(b)){let nt=Pl(Ke.data);j.fetchers.set(b,nt)}let mt=gr(kt);if(mt)return Ol(hl,mt.result,!1,{preventScrollReset:le});if(mt=gr(_e),mt)return ye.add(mt.key),Ol(hl,mt.result,!1,{preventScrollReset:le});let{loaderData:jl,errors:zl}=zm(j,Rt,kt,void 0,xl,_e);dl(xt),j.navigation.state==="loading"&&xt>te?(Te(W,"Expected pending action"),he&&he.abort(),fl(j.navigation.location,{matches:Rt,loaderData:jl,errors:zl,fetchers:new Map(j.fetchers)})):(tt({errors:zl,loaderData:Mm(j.loaderData,jl,Rt,zl),fetchers:new Map(j.fetchers)}),Ne=!1)}async function Wn(b,M,U,X,K,ue,ie,le,re){let ce=j.fetchers.get(b);Kt(b,Zu(re,ce?ce.data:void 0),{flushSync:ie});let $=new AbortController,F=Vn(i.history,U,$.signal);if(ue){let He=await cn(X,new URL(F.url).pathname,F.signal,b);if(He.type==="aborted")return;if(He.type==="error"){Jt(b,M,He.error,{flushSync:ie});return}else if(He.matches)X=He.matches;else{Jt(b,M,cl(404,{pathname:U}),{flushSync:ie});return}}let Ee=Er(X,U);D.set(b,$);let Ge=V,ct=Qn(s,d,F,X,Ee,o,K),Ke=(await Na(F,ct,K,b))[Ee.route.id];if(D.get(b)===$&&D.delete(b),!F.signal.aborted){if(Z.has(b)){Kt(b,Pl(void 0));return}if(tn(Ke))if(te>Ge){Kt(b,Pl(void 0));return}else{ye.add(b),await Ol(F,Ke,!1,{preventScrollReset:le});return}if(Qt(Ke)){Jt(b,M,Ke.error);return}Kt(b,Pl(Ke.data))}}async function Ol(b,M,U,{submission:X,fetcherSubmission:K,preventScrollReset:ue,replace:ie}={}){M.response.headers.has("X-Remix-Revalidate")&&(Ne=!0);let le=M.response.headers.get("Location");Te(le,"Expected a Location header on the redirect Response"),le=Tm(le,new URL(b.url),y);let re=ku(j.location,le,{_isRedirect:!0});if(f){let ct=!1;if(M.response.headers.has("X-Remix-Reload-Document"))ct=!0;else if(rf(le)){const gt=Hm(le,!0);ct=gt.origin!==r.location.origin||ol(gt.pathname,y)==null}if(ct){ie?r.location.replace(le):r.location.assign(le);return}}he=null;let ce=ie===!0||M.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:$,formAction:F,formEncType:Ee}=j.navigation;!X&&!K&&$&&F&&Ee&&(X=Am(j.navigation));let Ge=X||K;if(ag.has(M.response.status)&&Ge&&Ht(Ge.formMethod))await Mt(ce,re,{submission:{...Ge,formAction:le},preventScrollReset:ue||pe,enableViewTransition:U?Be:void 0});else{let ct=Po(re,X);await Mt(ce,re,{overrideNavigation:ct,fetcherSubmission:K,preventScrollReset:ue||pe,enableViewTransition:U?Be:void 0})}}async function Na(b,M,U,X){let K,ue={};try{K=await mg(m,b,M,X,U,!1)}catch(ie){return M.filter(le=>le.shouldLoad).forEach(le=>{ue[le.route.id]={type:"error",error:ie}}),ue}if(b.signal.aborted)return ue;for(let[ie,le]of Object.entries(K))if(Tg(le)){let re=le.result;ue[ie]={type:"redirect",response:pg(re,b,ie,M,y)}}else ue[ie]=await gg(le);return ue}async function _t(b,M,U,X){let K=Na(U,b,X,null),ue=Promise.all(M.map(async re=>{if(re.matches&&re.match&&re.request&&re.controller){let $=(await Na(re.request,re.matches,X,re.key))[re.match.route.id];return{[re.key]:$}}else return Promise.resolve({[re.key]:{type:"error",error:cl(404,{pathname:re.path})}})})),ie=await K,le=(await ue).reduce((re,ce)=>Object.assign(re,ce),{});return{loaderResults:ie,fetcherResults:le}}function Pn(){Ne=!0,S.forEach((b,M)=>{D.has(M)&&Fe.add(M),sl(M)})}function Kt(b,M,U={}){j.fetchers.set(b,M),tt({fetchers:new Map(j.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function Jt(b,M,U,X={}){let K=Ca(j.matches,M);nn(b),tt({errors:{[K.route.id]:U},fetchers:new Map(j.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function ja(b){return L.set(b,(L.get(b)||0)+1),Z.has(b)&&Z.delete(b),j.fetchers.get(b)||ng}function jr(b,M){sl(b,M?.reason),Kt(b,Pl(null))}function nn(b){let M=j.fetchers.get(b);D.has(b)&&!(M&&M.state==="loading"&&Se.has(b))&&sl(b),S.delete(b),Se.delete(b),ye.delete(b),Z.delete(b),Fe.delete(b),j.fetchers.delete(b)}function Ur(b){let M=(L.get(b)||0)-1;M<=0?(L.delete(b),Z.add(b)):L.set(b,M),tt({fetchers:new Map(j.fetchers)})}function sl(b,M){let U=D.get(b);U&&(U.abort(M),D.delete(b))}function Il(b){for(let M of b){let U=ja(M),X=Pl(U.data);j.fetchers.set(M,X)}}function Tt(){let b=[],M=!1;for(let U of ye){let X=j.fetchers.get(U);Te(X,`Expected fetcher: ${U}`),X.state==="loading"&&(ye.delete(U),b.push(U),M=!0)}return Il(b),M}function dl(b){let M=[];for(let[U,X]of Se)if(X<b){let K=j.fetchers.get(U);Te(K,`Expected fetcher: ${U}`),K.state==="loading"&&(sl(U),Se.delete(U),M.push(U))}return Il(M),M.length>0}function Ct(b,M){let U=j.blockers.get(b)||Vu;return P.get(b)!==M&&P.set(b,M),U}function ai(b){j.blockers.delete(b),P.delete(b)}function un(b,M){let U=j.blockers.get(b)||Vu;Te(U.state==="unblocked"&&M.state==="blocked"||U.state==="blocked"&&M.state==="blocked"||U.state==="blocked"&&M.state==="proceeding"||U.state==="blocked"&&M.state==="unblocked"||U.state==="proceeding"&&M.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${M.state}`);let X=new Map(j.blockers);X.set(b,M),tt({blockers:X})}function ni({currentLocation:b,nextLocation:M,historyAction:U}){if(P.size===0)return;P.size>1&&rt(!1,"A router only supports one blocker at a time");let X=Array.from(P.entries()),[K,ue]=X[X.length-1],ie=j.blockers.get(K);if(!(ie&&ie.state==="proceeding")&&ue({currentLocation:b,nextLocation:M,historyAction:U}))return K}function ea(b){let M=cl(404,{pathname:b}),U=g||v,{matches:X,route:K}=yr(U);return{notFoundMatches:X,route:K,error:M}}function rn(b,M,U){if(B=b,k=M,G=U||null,!J&&j.navigation===Wo){J=!0;let X=wa(j.location,j.matches);X!=null&&tt({restoreScrollPosition:X})}return()=>{B=null,k=null,G=null}}function Ua(b,M){return G&&G(b,M.map(X=>Uy(X,j.loaderData)))||b.key}function Nl(b,M){if(B&&k){let U=Ua(b,M);B[U]=k()}}function wa(b,M){if(B){let U=Ua(b,M),X=B[U];if(typeof X=="number")return X}return null}function _l(b,M,U){if(i.patchRoutesOnNavigation)if(b){if(Object.keys(b[0].params).length>0)return{active:!0,matches:Sr(M,U,y,!0)}}else return{active:!0,matches:Sr(M,U,y,!0)||[]};return{active:!1,matches:null}}async function cn(b,M,U,X){if(!i.patchRoutesOnNavigation)return{type:"success",matches:b};let K=b;for(;;){let ue=g==null,ie=g||v,le=d;try{await i.patchRoutesOnNavigation({signal:U,path:M,matches:K,fetcherKey:X,patch:($,F)=>{U.aborted||bm($,F,ie,le,s,!1)}})}catch($){return{type:"error",error:$,partialMatches:K}}finally{ue&&!U.aborted&&(v=[...v])}if(U.aborted)return{type:"aborted"};let re=Ma(ie,M,y);if(re)return{type:"success",matches:re};let ce=Sr(ie,M,y,!0);if(!ce||K.length===ce.length&&K.every(($,F)=>$.route.id===ce[F].route.id))return{type:"success",matches:null};K=ce}}function ui(b){d={},g=Fu(b,s,void 0,d)}function In(b,M,U=!1){let X=g==null;bm(b,M,g||v,d,s,U),X&&(v=[...v],tt({}))}return se={get basename(){return y},get future(){return x},get state(){return j},get routes(){return v},get window(){return r},initialize:je,subscribe:Ie,enableScrollRestoration:rn,navigate:an,fetch:kn,revalidate:ei,createHref:b=>i.history.createHref(b),encodeLocation:b=>i.history.encodeLocation(b),getFetcher:ja,resetFetcher:jr,deleteFetcher:Ur,dispose:yt,getBlocker:Ct,deleteBlocker:ai,patchRoutes:In,_internalFetchControllers:D,_internalSetRoutes:ui,_internalSetStateDoNotUseOrYouWillBreakYourApp(b){tt(b)}},se}function cg(i){return i!=null&&("formData"in i&&i.formData!=null||"body"in i&&i.body!==void 0)}function tf(i,r,f,o,s,d){let v,g;if(s){v=[];for(let m of r)if(v.push(m),m.route.id===s){g=m;break}}else v=r,g=r[r.length-1];let y=Ar(o||".",Rr(v),ol(i.pathname,f)||i.pathname,d==="path");if(o==null&&(y.search=i.search,y.hash=i.hash),(o==null||o===""||o===".")&&g){let m=of(y.search);if(g.route.index&&!m)y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index";else if(!g.route.index&&m){let x=new URLSearchParams(y.search),E=x.getAll("index");x.delete("index"),E.filter(B=>B).forEach(B=>x.append("index",B));let N=x.toString();y.search=N?`?${N}`:""}}return f!=="/"&&(y.pathname=Jy({basename:f,pathname:y.pathname})),Aa(y)}function gm(i,r,f){if(!f||!cg(f))return{path:r};if(f.formMethod&&!xg(f.formMethod))return{path:r,error:cl(405,{method:f.formMethod})};let o=()=>({path:r,error:cl(400,{type:"invalid-body"})}),d=(f.formMethod||"get").toUpperCase(),v=km(r);if(f.body!==void 0){if(f.formEncType==="text/plain"){if(!Ht(d))return o();let E=typeof f.body=="string"?f.body:f.body instanceof FormData||f.body instanceof URLSearchParams?Array.from(f.body.entries()).reduce((N,[B,G])=>`${N}${B}=${G}
`,""):String(f.body);return{path:r,submission:{formMethod:d,formAction:v,formEncType:f.formEncType,formData:void 0,json:void 0,text:E}}}else if(f.formEncType==="application/json"){if(!Ht(d))return o();try{let E=typeof f.body=="string"?JSON.parse(f.body):f.body;return{path:r,submission:{formMethod:d,formAction:v,formEncType:f.formEncType,formData:void 0,json:E,text:void 0}}}catch{return o()}}}Te(typeof FormData=="function","FormData is not available in this environment");let g,y;if(f.formData)g=nf(f.formData),y=f.formData;else if(f.body instanceof FormData)g=nf(f.body),y=f.body;else if(f.body instanceof URLSearchParams)g=f.body,y=xm(g);else if(f.body==null)g=new URLSearchParams,y=new FormData;else try{g=new URLSearchParams(f.body),y=xm(g)}catch{return o()}let m={formMethod:d,formAction:v,formEncType:f&&f.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(Ht(m.formMethod))return{path:r,submission:m};let x=Da(r);return i&&x.search&&of(x.search)&&g.append("index",""),x.search=`?${g}`,{path:Aa(x),submission:m}}function pm(i,r,f,o,s,d,v,g,y,m,x,E,N,B,G,k,J,Q,I,ne){let Ce=ne?Qt(ne[1])?ne[1].error:ne[1].data:void 0,se=s.createURL(d.location),j=s.createURL(y),W;if(x&&d.errors){let Oe=Object.keys(d.errors)[0];W=v.findIndex(Ne=>Ne.route.id===Oe)}else if(ne&&Qt(ne[1])){let Oe=ne[0];W=v.findIndex(Ne=>Ne.route.id===Oe)-1}let pe=ne?ne[1].statusCode:void 0,he=pe&&pe>=400,Be={currentUrl:se,currentParams:d.matches[0]?.params||{},nextUrl:j,nextParams:v[0].params,...g,actionResult:Ce,actionStatus:pe},ke=v.map((Oe,Ne)=>{let{route:Fe}=Oe,D=null;if(W!=null&&Ne>W?D=!1:Fe.lazy?D=!0:cf(Fe)?x?D=lf(Fe,d.loaderData,d.errors):og(d.loaderData,d.matches[Ne],Oe)&&(D=!0):D=!1,D!==null)return af(f,o,i,Oe,m,r,D);let V=he?!1:E||se.pathname+se.search===j.pathname+j.search||se.search!==j.search||fg(d.matches[Ne],Oe),te={...Be,defaultShouldRevalidate:V},Se=Mr(Oe,te);return af(f,o,i,Oe,m,r,Se,te)}),et=[];return G.forEach((Oe,Ne)=>{if(x||!v.some(L=>L.route.id===Oe.routeId)||B.has(Ne))return;let Fe=d.fetchers.get(Ne),D=Fe&&Fe.state!=="idle"&&Fe.data===void 0,V=Ma(J,Oe.path,Q);if(!V){if(I&&D)return;et.push({key:Ne,routeId:Oe.routeId,path:Oe.path,matches:null,match:null,request:null,controller:null});return}if(k.has(Ne))return;let te=Er(V,Oe.path),Se=new AbortController,ye=Vn(s,Oe.path,Se.signal),S=null;if(N.has(Ne))N.delete(Ne),S=Qn(f,o,ye,V,te,m,r);else if(D)E&&(S=Qn(f,o,ye,V,te,m,r));else{let L={...Be,defaultShouldRevalidate:he?!1:E};Mr(te,L)&&(S=Qn(f,o,ye,V,te,m,r,L))}S&&et.push({key:Ne,routeId:Oe.routeId,path:Oe.path,matches:S,match:te,request:ye,controller:Se})}),{dsMatches:ke,revalidatingFetchers:et}}function cf(i){return i.loader!=null||i.middleware!=null&&i.middleware.length>0}function lf(i,r,f){if(i.lazy)return!0;if(!cf(i))return!1;let o=r!=null&&i.id in r,s=f!=null&&f[i.id]!==void 0;return!o&&s?!1:typeof i.loader=="function"&&i.loader.hydrate===!0?!0:!o&&!s}function og(i,r,f){let o=!r||f.route.id!==r.route.id,s=!i.hasOwnProperty(f.route.id);return o||s}function fg(i,r){let f=i.route.path;return i.pathname!==r.pathname||f!=null&&f.endsWith("*")&&i.params["*"]!==r.params["*"]}function Mr(i,r){if(i.route.shouldRevalidate){let f=i.route.shouldRevalidate(r);if(typeof f=="boolean")return f}return r.defaultShouldRevalidate}function bm(i,r,f,o,s,d){let v;if(i){let m=o[i];Te(m,`No route found to patch children into: routeId = ${i}`),m.children||(m.children=[]),v=m.children}else v=f;let g=[],y=[];if(r.forEach(m=>{let x=v.find(E=>Zm(m,E));x?y.push({existingRoute:x,newRoute:m}):g.push(m)}),g.length>0){let m=Fu(g,s,[i||"_","patch",String(v?.length||"0")],o);v.push(...m)}if(d&&y.length>0)for(let m=0;m<y.length;m++){let{existingRoute:x,newRoute:E}=y[m],N=x,[B]=Fu([E],s,[],{},!0);Object.assign(N,{element:B.element?B.element:N.element,errorElement:B.errorElement?B.errorElement:N.errorElement,hydrateFallbackElement:B.hydrateFallbackElement?B.hydrateFallbackElement:N.hydrateFallbackElement})}}function Zm(i,r){return"id"in i&&"id"in r&&i.id===r.id?!0:i.index===r.index&&i.path===r.path&&i.caseSensitive===r.caseSensitive?(!i.children||i.children.length===0)&&(!r.children||r.children.length===0)?!0:i.children.every((f,o)=>r.children?.some(s=>Zm(f,s))):!1}var Sm=new WeakMap,Qm=({key:i,route:r,manifest:f,mapRouteProperties:o})=>{let s=f[r.id];if(Te(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let d=s.lazy[i];if(!d)return;let v=Sm.get(s);v||(v={},Sm.set(s,v));let g=v[i];if(g)return g;let y=(async()=>{let m=Dy(i),E=s[i]!==void 0&&i!=="hasErrorBoundary";if(m)rt(!m,"Route property "+i+" is not a supported lazy route property. This property will be ignored."),v[i]=Promise.resolve();else if(E)rt(!1,`Route "${s.id}" has a static property "${i}" defined. The lazy property will be ignored.`);else{let N=await d();N!=null&&(Object.assign(s,{[i]:N}),Object.assign(s,o(s)))}typeof s.lazy=="object"&&(s.lazy[i]=void 0,Object.values(s.lazy).every(N=>N===void 0)&&(s.lazy=void 0))})();return v[i]=y,y},Em=new WeakMap;function sg(i,r,f,o,s){let d=f[i.id];if(Te(d,"No route found in manifest"),!i.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof i.lazy=="function"){let x=Em.get(d);if(x)return{lazyRoutePromise:x,lazyHandlerPromise:x};let E=(async()=>{Te(typeof i.lazy=="function","No lazy route function found");let N=await i.lazy(),B={};for(let G in N){let k=N[G];if(k===void 0)continue;let J=Ny(G),I=d[G]!==void 0&&G!=="hasErrorBoundary";J?rt(!J,"Route property "+G+" is not a supported property to be returned from a lazy route function. This property will be ignored."):I?rt(!I,`Route "${d.id}" has a static property "${G}" defined but its lazy function is also returning a value for this property. The lazy route property "${G}" will be ignored.`):B[G]=k}Object.assign(d,B),Object.assign(d,{...o(d),lazy:void 0})})();return Em.set(d,E),E.catch(()=>{}),{lazyRoutePromise:E,lazyHandlerPromise:E}}let v=Object.keys(i.lazy),g=[],y;for(let x of v){if(s&&s.includes(x))continue;let E=Qm({key:x,route:i,manifest:f,mapRouteProperties:o});E&&(g.push(E),x===r&&(y=E))}let m=g.length>0?Promise.all(g).then(()=>{}):void 0;return m?.catch(()=>{}),y?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:y}}async function _m(i){let r=i.matches.filter(s=>s.shouldLoad),f={};return(await Promise.all(r.map(s=>s.resolve()))).forEach((s,d)=>{f[r[d].route.id]=s}),f}async function dg(i){return i.matches.some(r=>r.route.middleware)?Km(i,()=>_m(i)):_m(i)}function Km(i,r){return hg(i,r,o=>o,Eg,f);function f(o,s,d){if(d)return Promise.resolve(Object.assign(d.value,{[s]:{type:"error",result:o}}));{let{matches:v}=i,g=Math.min(Math.max(v.findIndex(m=>m.route.id===s),0),Math.max(v.findIndex(m=>m.unstable_shouldCallHandler()),0)),y=Ca(v,v[g].route.id).route.id;return Promise.resolve({[y]:{type:"error",result:o}})}}}async function hg(i,r,f,o,s){let{matches:d,request:v,params:g,context:y}=i,m=d.flatMap(E=>E.route.middleware?E.route.middleware.map(N=>[E.route.id,N]):[]);return await Jm({request:v,params:g,context:y},m,r,f,o,s)}async function Jm(i,r,f,o,s,d,v=0){let{request:g}=i;if(g.signal.aborted)throw g.signal.reason??new Error(`Request aborted: ${g.method} ${g.url}`);let y=r[v];if(!y)return await f();let[m,x]=y,E,N=async()=>{if(E)throw new Error("You may only call `next()` once per middleware");try{return E={value:await Jm(i,r,f,o,s,d,v+1)},E.value}catch(B){return E={value:await d(B,m,E)},E.value}};try{let B=await x(i,N),G=B!=null?o(B):void 0;return s(G)?G:E?G??E.value:(E={value:await N()},E.value)}catch(B){return await d(B,m,E)}}function $m(i,r,f,o,s){let d=Qm({key:"middleware",route:o.route,manifest:r,mapRouteProperties:i}),v=sg(o.route,Ht(f.method)?"action":"loader",r,i,s);return{middleware:d,route:v.lazyRoutePromise,handler:v.lazyHandlerPromise}}function af(i,r,f,o,s,d,v,g=null){let y=!1,m=$m(i,r,f,o,s);return{...o,_lazyPromises:m,shouldLoad:v,unstable_shouldRevalidateArgs:g,unstable_shouldCallHandler(x){return y=!0,g?typeof x=="boolean"?Mr(o,{...g,defaultShouldRevalidate:x}):Mr(o,g):v},resolve(x){let{lazy:E,loader:N,middleware:B}=o.route,G=y||v||x&&!Ht(f.method)&&(E||N),k=B&&B.length>0&&!N&&!E;return G&&!k?vg({request:f,match:o,lazyHandlerPromise:m?.handler,lazyRoutePromise:m?.route,handlerOverride:x,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function Qn(i,r,f,o,s,d,v,g=null){return o.map(y=>y.route.id!==s.route.id?{...y,shouldLoad:!1,unstable_shouldRevalidateArgs:g,unstable_shouldCallHandler:()=>!1,_lazyPromises:$m(i,r,f,y,d),resolve:()=>Promise.resolve({type:"data",result:void 0})}:af(i,r,f,y,d,v,!0,g))}async function mg(i,r,f,o,s,d){f.some(m=>m._lazyPromises?.middleware)&&await Promise.all(f.map(m=>m._lazyPromises?.middleware));let v={request:r,params:f[0].params,context:s,matches:f},y=await i({...v,fetcherKey:o,runClientMiddleware:m=>{let x=v;return Km(x,()=>m({...x,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(f.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return y}async function vg({request:i,match:r,lazyHandlerPromise:f,lazyRoutePromise:o,handlerOverride:s,scopedContext:d}){let v,g,y=Ht(i.method),m=y?"action":"loader",x=E=>{let N,B=new Promise((J,Q)=>N=Q);g=()=>N(),i.signal.addEventListener("abort",g);let G=J=>typeof E!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${m}" [routeId: ${r.route.id}]`)):E({request:i,params:r.params,context:d},...J!==void 0?[J]:[]),k=(async()=>{try{return{type:"data",result:await(s?s(Q=>G(Q)):G())}}catch(J){return{type:"error",result:J}}})();return Promise.race([k,B])};try{let E=y?r.route.action:r.route.loader;if(f||o)if(E){let N,[B]=await Promise.all([x(E).catch(G=>{N=G}),f,o]);if(N!==void 0)throw N;v=B}else{await f;let N=y?r.route.action:r.route.loader;if(N)[v]=await Promise.all([x(N),o]);else if(m==="action"){let B=new URL(i.url),G=B.pathname+B.search;throw cl(405,{method:i.method,pathname:G,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(E)v=await x(E);else{let N=new URL(i.url),B=N.pathname+N.search;throw cl(404,{pathname:B})}}catch(E){return{type:"error",result:E}}finally{g&&i.signal.removeEventListener("abort",g)}return v}async function yg(i){let r=i.headers.get("Content-Type");return r&&/\bapplication\/json\b/.test(r)?i.body==null?null:i.json():i.text()}async function gg(i){let{result:r,type:f}=i;if(Fm(r)){let o;try{o=await yg(r)}catch(s){return{type:"error",error:s}}return f==="error"?{type:"error",error:new zr(r.status,r.statusText,o),statusCode:r.status,headers:r.headers}:{type:"data",data:o,statusCode:r.status,headers:r.headers}}return f==="error"?Rm(r)?r.data instanceof Error?{type:"error",error:r.data,statusCode:r.init?.status,headers:r.init?.headers?new Headers(r.init.headers):void 0}:{type:"error",error:new zr(r.init?.status||500,void 0,r.data),statusCode:Wu(r)?r.status:void 0,headers:r.init?.headers?new Headers(r.init.headers):void 0}:{type:"error",error:r,statusCode:Wu(r)?r.status:void 0}:Rm(r)?{type:"data",data:r.data,statusCode:r.init?.status,headers:r.init?.headers?new Headers(r.init.headers):void 0}:{type:"data",data:r}}function pg(i,r,f,o,s){let d=i.headers.get("Location");if(Te(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!rf(d)){let v=o.slice(0,o.findIndex(g=>g.route.id===f)+1);d=tf(new URL(r.url),v,s,d),i.headers.set("Location",d)}return i}function Tm(i,r,f){if(rf(i)){let o=i,s=o.startsWith("//")?new URL(r.protocol+o):new URL(o),d=ol(s.pathname,f)!=null;if(s.origin===r.origin&&d)return s.pathname+s.search+s.hash}return i}function Vn(i,r,f,o){let s=i.createURL(km(r)).toString(),d={signal:f};if(o&&Ht(o.formMethod)){let{formMethod:v,formEncType:g}=o;d.method=v.toUpperCase(),g==="application/json"?(d.headers=new Headers({"Content-Type":g}),d.body=JSON.stringify(o.json)):g==="text/plain"?d.body=o.text:g==="application/x-www-form-urlencoded"&&o.formData?d.body=nf(o.formData):d.body=o.formData}return new Request(s,d)}function nf(i){let r=new URLSearchParams;for(let[f,o]of i.entries())r.append(f,typeof o=="string"?o:o.name);return r}function xm(i){let r=new FormData;for(let[f,o]of i.entries())r.append(f,o);return r}function bg(i,r,f,o=!1,s=!1){let d={},v=null,g,y=!1,m={},x=f&&Qt(f[1])?f[1].error:void 0;return i.forEach(E=>{if(!(E.route.id in r))return;let N=E.route.id,B=r[N];if(Te(!tn(B),"Cannot handle redirect results in processLoaderData"),Qt(B)){let G=B.error;if(x!==void 0&&(G=x,x=void 0),v=v||{},s)v[N]=G;else{let k=Ca(i,N);v[k.route.id]==null&&(v[k.route.id]=G)}o||(d[N]=Vm),y||(y=!0,g=Wu(B.error)?B.error.status:500),B.headers&&(m[N]=B.headers)}else d[N]=B.data,B.statusCode&&B.statusCode!==200&&!y&&(g=B.statusCode),B.headers&&(m[N]=B.headers)}),x!==void 0&&f&&(v={[f[0]]:x},f[2]&&(d[f[2]]=void 0)),{loaderData:d,errors:v,statusCode:g||200,loaderHeaders:m}}function zm(i,r,f,o,s,d){let{loaderData:v,errors:g}=bg(r,f,o);return s.filter(y=>!y.matches||y.matches.some(m=>m.shouldLoad)).forEach(y=>{let{key:m,match:x,controller:E}=y;if(E&&E.signal.aborted)return;let N=d[m];if(Te(N,"Did not find corresponding fetcher result"),Qt(N)){let B=Ca(i.matches,x?.route.id);g&&g[B.route.id]||(g={...g,[B.route.id]:N.error}),i.fetchers.delete(m)}else if(tn(N))Te(!1,"Unhandled fetcher revalidation redirect");else{let B=Pl(N.data);i.fetchers.set(m,B)}}),{loaderData:v,errors:g}}function Mm(i,r,f,o){let s=Object.entries(r).filter(([,d])=>d!==Vm).reduce((d,[v,g])=>(d[v]=g,d),{});for(let d of f){let v=d.route.id;if(!r.hasOwnProperty(v)&&i.hasOwnProperty(v)&&d.route.loader&&(s[v]=i[v]),o&&o.hasOwnProperty(v))break}return s}function Cm(i){return i?Qt(i[1])?{actionData:{}}:{actionData:{[i[0]]:i[1].data}}:{}}function Ca(i,r){return(r?i.slice(0,i.findIndex(o=>o.route.id===r)+1):[...i]).reverse().find(o=>o.route.hasErrorBoundary===!0)||i[0]}function yr(i){let r=i.length===1?i[0]:i.find(f=>f.index||!f.path||f.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:r}],route:r}}function cl(i,{pathname:r,routeId:f,method:o,type:s,message:d}={}){let v="Unknown Server Error",g="Unknown @remix-run/router error";return i===400?(v="Bad Request",o&&r&&f?g=`You made a ${o} request to "${r}" but did not provide a \`loader\` for route "${f}", so there is no way to handle the request.`:s==="invalid-body"&&(g="Unable to encode submission body")):i===403?(v="Forbidden",g=`Route "${f}" does not match URL "${r}"`):i===404?(v="Not Found",g=`No route matches URL "${r}"`):i===405&&(v="Method Not Allowed",o&&r&&f?g=`You made a ${o.toUpperCase()} request to "${r}" but did not provide an \`action\` for route "${f}", so there is no way to handle the request.`:o&&(g=`Invalid request method "${o.toUpperCase()}"`)),new zr(i||500,v,new Error(g),!0)}function gr(i){let r=Object.entries(i);for(let f=r.length-1;f>=0;f--){let[o,s]=r[f];if(tn(s))return{key:o,result:s}}}function km(i){let r=typeof i=="string"?Da(i):i;return Aa({...r,hash:""})}function Sg(i,r){return i.pathname!==r.pathname||i.search!==r.search?!1:i.hash===""?r.hash!=="":i.hash===r.hash?!0:r.hash!==""}function Eg(i){return i!=null&&typeof i=="object"&&Object.entries(i).every(([r,f])=>typeof r=="string"&&_g(f))}function _g(i){return i!=null&&typeof i=="object"&&"type"in i&&"result"in i&&(i.type==="data"||i.type==="error")}function Tg(i){return Fm(i.result)&&lg.has(i.result.status)}function Qt(i){return i.type==="error"}function tn(i){return(i&&i.type)==="redirect"}function Rm(i){return typeof i=="object"&&i!=null&&"type"in i&&"data"in i&&"init"in i&&i.type==="DataWithResponseInit"}function Fm(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.headers=="object"&&typeof i.body<"u"}function xg(i){return tg.has(i.toUpperCase())}function Ht(i){return Iy.has(i.toUpperCase())}function of(i){return new URLSearchParams(i).getAll("index").some(r=>r==="")}function Er(i,r){let f=typeof r=="string"?Da(r).search:r.search;if(i[i.length-1].route.index&&of(f||""))return i[i.length-1];let o=Ym(i);return o[o.length-1]}function Am(i){let{formMethod:r,formAction:f,formEncType:o,text:s,formData:d,json:v}=i;if(!(!r||!f||!o)){if(s!=null)return{formMethod:r,formAction:f,formEncType:o,formData:void 0,json:void 0,text:s};if(d!=null)return{formMethod:r,formAction:f,formEncType:o,formData:d,json:void 0,text:void 0};if(v!==void 0)return{formMethod:r,formAction:f,formEncType:o,formData:void 0,json:v,text:void 0}}}function Po(i,r){return r?{state:"loading",location:i,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:"loading",location:i,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zg(i,r){return{state:"submitting",location:i,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function Zu(i,r){return i?{state:"loading",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:r}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}function Mg(i,r){return{state:"submitting",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:r?r.data:void 0}}function Pl(i){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function Cg(i,r){try{let f=i.sessionStorage.getItem(Xm);if(f){let o=JSON.parse(f);for(let[s,d]of Object.entries(o||{}))d&&Array.isArray(d)&&r.set(s,new Set(d||[]))}}catch{}}function Rg(i,r){if(r.size>0){let f={};for(let[o,s]of r)f[o]=[...s];try{i.sessionStorage.setItem(Xm,JSON.stringify(f))}catch(o){rt(!1,`Failed to save applied view transitions in sessionStorage (${o}).`)}}}function Ag(){let i,r,f=new Promise((o,s)=>{i=async d=>{o(d);try{await f}catch{}},r=async d=>{s(d);try{await f}catch{}}});return{promise:f,resolve:i,reject:r}}var ln=C.createContext(null);ln.displayName="DataRouter";var Pu=C.createContext(null);Pu.displayName="DataRouterState";C.createContext(!1);var ff=C.createContext({isTransitioning:!1});ff.displayName="ViewTransition";var Wm=C.createContext(new Map);Wm.displayName="Fetchers";var Dg=C.createContext(null);Dg.displayName="Await";var Sl=C.createContext(null);Sl.displayName="Navigation";var Dr=C.createContext(null);Dr.displayName="Location";var El=C.createContext({outlet:null,matches:[],isDataRoute:!1});El.displayName="Route";var sf=C.createContext(null);sf.displayName="RouteError";function Og(i,{relative:r}={}){Te(Kn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:o}=C.useContext(Sl),{hash:s,pathname:d,search:v}=Iu(i,{relative:r}),g=d;return f!=="/"&&(g=d==="/"?f:Dl([f,d])),o.createHref({pathname:g,search:v,hash:s})}function Kn(){return C.useContext(Dr)!=null}function Oa(){return Te(Kn(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Dr).location}var Pm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Im(i){C.useContext(Sl).static||C.useLayoutEffect(i)}function Or(){let{isDataRoute:i}=C.useContext(El);return i?Kg():Ng()}function Ng(){Te(Kn(),"useNavigate() may be used only in the context of a <Router> component.");let i=C.useContext(ln),{basename:r,navigator:f}=C.useContext(Sl),{matches:o}=C.useContext(El),{pathname:s}=Oa(),d=JSON.stringify(Rr(o)),v=C.useRef(!1);return Im(()=>{v.current=!0}),C.useCallback((y,m={})=>{if(rt(v.current,Pm),!v.current)return;if(typeof y=="number"){f.go(y);return}let x=Ar(y,JSON.parse(d),s,m.relative==="path");i==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Dl([r,x.pathname])),(m.replace?f.replace:f.push)(x,m.state,m)},[r,f,d,s,i])}var jg=C.createContext(null);function Ug(i){let r=C.useContext(El).outlet;return C.useMemo(()=>r&&C.createElement(jg.Provider,{value:i},r),[r,i])}function Iu(i,{relative:r}={}){let{matches:f}=C.useContext(El),{pathname:o}=Oa(),s=JSON.stringify(Rr(f));return C.useMemo(()=>Ar(i,JSON.parse(s),o,r==="path"),[i,s,o,r])}function wg(i,r,f,o,s){Te(Kn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=C.useContext(Sl),{matches:v}=C.useContext(El),g=v[v.length-1],y=g?g.params:{},m=g?g.pathname:"/",x=g?g.pathnameBase:"/",E=g&&g.route;{let I=E&&E.path||"";ev(m,!E||I.endsWith("*")||I.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${I}">) 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.
Please change the parent <Route path="${I}"> to <Route path="${I==="/"?"*":`${I}/*`}">.`)}let N=Oa(),B;B=N;let G=B.pathname||"/",k=G;if(x!=="/"){let I=x.replace(/^\//,"").split("/");k="/"+G.replace(/^\//,"").split("/").slice(I.length).join("/")}let J=Ma(i,{pathname:k});return rt(E||J!=null,`No routes matched location "${B.pathname}${B.search}${B.hash}" `),rt(J==null||J[J.length-1].route.element!==void 0||J[J.length-1].route.Component!==void 0||J[J.length-1].route.lazy!==void 0,`Matched leaf route at location "${B.pathname}${B.search}${B.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.`),Yg(J&&J.map(I=>Object.assign({},I,{params:Object.assign({},y,I.params),pathname:Dl([x,d.encodeLocation?d.encodeLocation(I.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?x:Dl([x,d.encodeLocation?d.encodeLocation(I.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathnameBase])})),v,f,o,s)}function Bg(){let i=Qg(),r=Wu(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},d={padding:"2px 4px",backgroundColor:o},v=null;return console.error("Error handled by React Router default ErrorBoundary:",i),v=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:d},"ErrorBoundary")," or"," ",C.createElement("code",{style:d},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},r),f?C.createElement("pre",{style:s},f):null,v)}var Hg=C.createElement(Bg,null),Lg=class extends C.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){this.props.unstable_onError?this.props.unstable_onError(i,r):console.error("React Router caught the following error during render",i)}render(){return this.state.error!==void 0?C.createElement(El.Provider,{value:this.props.routeContext},C.createElement(sf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qg({routeContext:i,match:r,children:f}){let o=C.useContext(ln);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),C.createElement(El.Provider,{value:i},f)}function Yg(i,r=[],f=null,o=null,s=null){if(i==null){if(!f)return null;if(f.errors)i=f.matches;else if(r.length===0&&!f.initialized&&f.matches.length>0)i=f.matches;else return null}let d=i,v=f?.errors;if(v!=null){let m=d.findIndex(x=>x.route.id&&v?.[x.route.id]!==void 0);Te(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),d=d.slice(0,Math.min(d.length,m+1))}let g=!1,y=-1;if(f)for(let m=0;m<d.length;m++){let x=d[m];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(y=m),x.route.id){let{loaderData:E,errors:N}=f,B=x.route.loader&&!E.hasOwnProperty(x.route.id)&&(!N||N[x.route.id]===void 0);if(x.route.lazy||B){g=!0,y>=0?d=d.slice(0,y+1):d=[d[0]];break}}}return d.reduceRight((m,x,E)=>{let N,B=!1,G=null,k=null;f&&(N=v&&x.route.id?v[x.route.id]:void 0,G=x.route.errorElement||Hg,g&&(y<0&&E===0?(ev("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,k=null):y===E&&(B=!0,k=x.route.hydrateFallbackElement||null)));let J=r.concat(d.slice(0,E+1)),Q=()=>{let I;return N?I=G:B?I=k:x.route.Component?I=C.createElement(x.route.Component,null):x.route.element?I=x.route.element:I=m,C.createElement(qg,{match:x,routeContext:{outlet:m,matches:J,isDataRoute:f!=null},children:I})};return f&&(x.route.ErrorBoundary||x.route.errorElement||E===0)?C.createElement(Lg,{location:f.location,revalidation:f.revalidation,component:G,error:N,children:Q(),routeContext:{outlet:null,matches:J,isDataRoute:!0},unstable_onError:o}):Q()},null)}function df(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gg(i){let r=C.useContext(ln);return Te(r,df(i)),r}function Xg(i){let r=C.useContext(Pu);return Te(r,df(i)),r}function Vg(i){let r=C.useContext(El);return Te(r,df(i)),r}function hf(i){let r=Vg(i),f=r.matches[r.matches.length-1];return Te(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function Zg(){return hf("useRouteId")}function Qg(){let i=C.useContext(sf),r=Xg("useRouteError"),f=hf("useRouteError");return i!==void 0?i:r.errors?.[f]}function Kg(){let{router:i}=Gg("useNavigate"),r=hf("useNavigate"),f=C.useRef(!1);return Im(()=>{f.current=!0}),C.useCallback(async(s,d={})=>{rt(f.current,Pm),f.current&&(typeof s=="number"?i.navigate(s):await i.navigate(s,{fromRouteId:r,...d}))},[i,r])}var Dm={};function ev(i,r,f){!r&&!Dm[i]&&(Dm[i]=!0,rt(!1,f))}var Om={};function Nm(i,r){!i&&!Om[r]&&(Om[r]=!0,console.warn(r))}function Jg(i){let r={hasErrorBoundary:i.hasErrorBoundary||i.ErrorBoundary!=null||i.errorElement!=null};return i.Component&&(i.element&&rt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(r,{element:C.createElement(i.Component),Component:void 0})),i.HydrateFallback&&(i.hydrateFallbackElement&&rt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(r,{hydrateFallbackElement:C.createElement(i.HydrateFallback),HydrateFallback:void 0})),i.ErrorBoundary&&(i.errorElement&&rt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(r,{errorElement:C.createElement(i.ErrorBoundary),ErrorBoundary:void 0})),r}var $g=["HydrateFallback","hydrateFallbackElement"],kg=class{constructor(){this.status="pending",this.promise=new Promise((i,r)=>{this.resolve=f=>{this.status==="pending"&&(this.status="resolved",i(f))},this.reject=f=>{this.status==="pending"&&(this.status="rejected",r(f))}})}};function Fg({router:i,flushSync:r,unstable_onError:f}){let[o,s]=C.useState(i.state),[d,v]=C.useState(),[g,y]=C.useState({isTransitioning:!1}),[m,x]=C.useState(),[E,N]=C.useState(),[B,G]=C.useState(),k=C.useRef(new Map),J=C.useCallback(se=>{s(j=>(se.errors&&f&&Object.entries(se.errors).forEach(([W,pe])=>{j.errors?.[W]!==pe&&f(pe)}),se))},[f]),Q=C.useCallback((se,{deletedFetchers:j,flushSync:W,viewTransitionOpts:pe})=>{se.fetchers.forEach((Be,ke)=>{Be.data!==void 0&&k.current.set(ke,Be.data)}),j.forEach(Be=>k.current.delete(Be)),Nm(W===!1||r!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let he=i.window!=null&&i.window.document!=null&&typeof i.window.document.startViewTransition=="function";if(Nm(pe==null||he,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!pe||!he){r&&W?r(()=>J(se)):C.startTransition(()=>J(se));return}if(r&&W){r(()=>{E&&(m&&m.resolve(),E.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:pe.currentLocation,nextLocation:pe.nextLocation})});let Be=i.window.document.startViewTransition(()=>{r(()=>J(se))});Be.finished.finally(()=>{r(()=>{x(void 0),N(void 0),v(void 0),y({isTransitioning:!1})})}),r(()=>N(Be));return}E?(m&&m.resolve(),E.skipTransition(),G({state:se,currentLocation:pe.currentLocation,nextLocation:pe.nextLocation})):(v(se),y({isTransitioning:!0,flushSync:!1,currentLocation:pe.currentLocation,nextLocation:pe.nextLocation}))},[i.window,r,E,m,J]);C.useLayoutEffect(()=>i.subscribe(Q),[i,Q]),C.useEffect(()=>{g.isTransitioning&&!g.flushSync&&x(new kg)},[g]),C.useEffect(()=>{if(m&&d&&i.window){let se=d,j=m.promise,W=i.window.document.startViewTransition(async()=>{C.startTransition(()=>J(se)),await j});W.finished.finally(()=>{x(void 0),N(void 0),v(void 0),y({isTransitioning:!1})}),N(W)}},[d,m,i.window,J]),C.useEffect(()=>{m&&d&&o.location.key===d.location.key&&m.resolve()},[m,E,o.location,d]),C.useEffect(()=>{!g.isTransitioning&&B&&(v(B.state),y({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}),G(void 0))},[g.isTransitioning,B]);let I=C.useMemo(()=>({createHref:i.createHref,encodeLocation:i.encodeLocation,go:se=>i.navigate(se),push:(se,j,W)=>i.navigate(se,{state:j,preventScrollReset:W?.preventScrollReset}),replace:(se,j,W)=>i.navigate(se,{replace:!0,state:j,preventScrollReset:W?.preventScrollReset})}),[i]),ne=i.basename||"/",Ce=C.useMemo(()=>({router:i,navigator:I,static:!1,basename:ne,unstable_onError:f}),[i,I,ne,f]);return C.createElement(C.Fragment,null,C.createElement(ln.Provider,{value:Ce},C.createElement(Pu.Provider,{value:o},C.createElement(Wm.Provider,{value:k.current},C.createElement(ff.Provider,{value:g},C.createElement(tp,{basename:ne,location:o.location,navigationType:o.historyAction,navigator:I},C.createElement(Wg,{routes:i.routes,future:i.future,state:o,unstable_onError:f})))))),null)}var Wg=C.memo(Pg);function Pg({routes:i,future:r,state:f,unstable_onError:o}){return wg(i,void 0,f,o,r)}function Ig({to:i,replace:r,state:f,relative:o}){Te(Kn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=C.useContext(Sl);rt(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=C.useContext(El),{pathname:v}=Oa(),g=Or(),y=Ar(i,Rr(d),v,o==="path"),m=JSON.stringify(y);return C.useEffect(()=>{g(JSON.parse(m),{replace:r,state:f,relative:o})},[g,m,o,r,f]),null}function ep(i){return Ug(i.context)}function tp({basename:i="/",children:r=null,location:f,navigationType:o="POP",navigator:s,static:d=!1}){Te(!Kn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=i.replace(/^\/*/,"/"),g=C.useMemo(()=>({basename:v,navigator:s,static:d,future:{}}),[v,s,d]);typeof f=="string"&&(f=Da(f));let{pathname:y="/",search:m="",hash:x="",state:E=null,key:N="default"}=f,B=C.useMemo(()=>{let G=ol(y,v);return G==null?null:{location:{pathname:G,search:m,hash:x,state:E,key:N},navigationType:o}},[v,y,m,x,E,N,o]);return rt(B!=null,`<Router basename="${v}"> is not able to match the URL "${y}${m}${x}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:C.createElement(Sl.Provider,{value:g},C.createElement(Dr.Provider,{children:r,value:B}))}var _r="get",Tr="application/x-www-form-urlencoded";function Nr(i){return i!=null&&typeof i.tagName=="string"}function lp(i){return Nr(i)&&i.tagName.toLowerCase()==="button"}function ap(i){return Nr(i)&&i.tagName.toLowerCase()==="form"}function np(i){return Nr(i)&&i.tagName.toLowerCase()==="input"}function up(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function ip(i,r){return i.button===0&&(!r||r==="_self")&&!up(i)}var pr=null;function rp(){if(pr===null)try{new FormData(document.createElement("form"),0),pr=!1}catch{pr=!0}return pr}var cp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Io(i){return i!=null&&!cp.has(i)?(rt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tr}"`),null):i}function op(i,r){let f,o,s,d,v;if(ap(i)){let g=i.getAttribute("action");o=g?ol(g,r):null,f=i.getAttribute("method")||_r,s=Io(i.getAttribute("enctype"))||Tr,d=new FormData(i)}else if(lp(i)||np(i)&&(i.type==="submit"||i.type==="image")){let g=i.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=i.getAttribute("formaction")||g.getAttribute("action");if(o=y?ol(y,r):null,f=i.getAttribute("formmethod")||g.getAttribute("method")||_r,s=Io(i.getAttribute("formenctype"))||Io(g.getAttribute("enctype"))||Tr,d=new FormData(g,i),!rp()){let{name:m,type:x,value:E}=i;if(x==="image"){let N=m?`${m}.`:"";d.append(`${N}x`,"0"),d.append(`${N}y`,"0")}else m&&d.append(m,E)}}else{if(Nr(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=_r,o=null,s=Tr,v=i}return d&&s==="text/plain"&&(v=d,d=void 0),{action:o,method:f.toLowerCase(),encType:s,formData:d,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mf(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function fp(i,r,f){let o=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o.pathname==="/"?o.pathname=`_root.${f}`:r&&ol(o.pathname,r)==="/"?o.pathname=`${r.replace(/\/$/,"")}/_root.${f}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${f}`,o}async function sp(i,r){if(i.id in r)return r[i.id];try{let f=await import(i.module);return r[i.id]=f,f}catch(f){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function dp(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function hp(i,r,f){let o=await Promise.all(i.map(async s=>{let d=r.routes[s.route.id];if(d){let v=await sp(d,f);return v.links?v.links():[]}return[]}));return gp(o.flat(1).filter(dp).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function jm(i,r,f,o,s,d){let v=(y,m)=>f[m]?y.route.id!==f[m].route.id:!0,g=(y,m)=>f[m].pathname!==y.pathname||f[m].route.path?.endsWith("*")&&f[m].params["*"]!==y.params["*"];return d==="assets"?r.filter((y,m)=>v(y,m)||g(y,m)):d==="data"?r.filter((y,m)=>{let x=o.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(v(y,m)||g(y,m))return!0;if(y.route.shouldRevalidate){let E=y.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:f[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function mp(i,r,{includeHydrateFallback:f}={}){return vp(i.map(o=>{let s=r.routes[o.route.id];if(!s)return[];let d=[s.module];return s.clientActionModule&&(d=d.concat(s.clientActionModule)),s.clientLoaderModule&&(d=d.concat(s.clientLoaderModule)),f&&s.hydrateFallbackModule&&(d=d.concat(s.hydrateFallbackModule)),s.imports&&(d=d.concat(s.imports)),d}).flat(1))}function vp(i){return[...new Set(i)]}function yp(i){let r={},f=Object.keys(i).sort();for(let o of f)r[o]=i[o];return r}function gp(i,r){let f=new Set;return new Set(r),i.reduce((o,s)=>{let d=JSON.stringify(yp(s));return f.has(d)||(f.add(d),o.push({key:d,link:s})),o},[])}function tv(){let i=C.useContext(ln);return mf(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function pp(){let i=C.useContext(Pu);return mf(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var vf=C.createContext(void 0);vf.displayName="FrameworkContext";function lv(){let i=C.useContext(vf);return mf(i,"You must render this element inside a <HydratedRouter> element"),i}function bp(i,r){let f=C.useContext(vf),[o,s]=C.useState(!1),[d,v]=C.useState(!1),{onFocus:g,onBlur:y,onMouseEnter:m,onMouseLeave:x,onTouchStart:E}=r,N=C.useRef(null);C.useEffect(()=>{if(i==="render"&&v(!0),i==="viewport"){let k=Q=>{Q.forEach(I=>{v(I.isIntersecting)})},J=new IntersectionObserver(k,{threshold:.5});return N.current&&J.observe(N.current),()=>{J.disconnect()}}},[i]),C.useEffect(()=>{if(o){let k=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(k)}}},[o]);let B=()=>{s(!0)},G=()=>{s(!1),v(!1)};return f?i!=="intent"?[d,N,{}]:[d,N,{onFocus:Qu(g,B),onBlur:Qu(y,G),onMouseEnter:Qu(m,B),onMouseLeave:Qu(x,G),onTouchStart:Qu(E,B)}]:[!1,N,{}]}function Qu(i,r){return f=>{i&&i(f),f.defaultPrevented||r(f)}}function Sp({page:i,...r}){let{router:f}=tv(),o=C.useMemo(()=>Ma(f.routes,i,f.basename),[f.routes,i,f.basename]);return o?C.createElement(_p,{page:i,matches:o,...r}):null}function Ep(i){let{manifest:r,routeModules:f}=lv(),[o,s]=C.useState([]);return C.useEffect(()=>{let d=!1;return hp(i,r,f).then(v=>{d||s(v)}),()=>{d=!0}},[i,r,f]),o}function _p({page:i,matches:r,...f}){let o=Oa(),{manifest:s,routeModules:d}=lv(),{basename:v}=tv(),{loaderData:g,matches:y}=pp(),m=C.useMemo(()=>jm(i,r,y,s,o,"data"),[i,r,y,s,o]),x=C.useMemo(()=>jm(i,r,y,s,o,"assets"),[i,r,y,s,o]),E=C.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let G=new Set,k=!1;if(r.forEach(Q=>{let I=s.routes[Q.route.id];!I||!I.hasLoader||(!m.some(ne=>ne.route.id===Q.route.id)&&Q.route.id in g&&d[Q.route.id]?.shouldRevalidate||I.hasClientLoader?k=!0:G.add(Q.route.id))}),G.size===0)return[];let J=fp(i,v,"data");return k&&G.size>0&&J.searchParams.set("_routes",r.filter(Q=>G.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[J.pathname+J.search]},[v,g,o,s,m,r,i,d]),N=C.useMemo(()=>mp(x,s),[x,s]),B=Ep(x);return C.createElement(C.Fragment,null,E.map(G=>C.createElement("link",{key:G,rel:"prefetch",as:"fetch",href:G,...f})),N.map(G=>C.createElement("link",{key:G,rel:"modulepreload",href:G,...f})),B.map(({key:G,link:k})=>C.createElement("link",{key:G,nonce:f.nonce,...k})))}function Tp(...i){return r=>{i.forEach(f=>{typeof f=="function"?f(r):f!=null&&(f.current=r)})}}var av=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{av&&(window.__reactRouterVersion="7.9.4")}catch{}function xp(i,r){return rg({basename:r?.basename,getContext:r?.getContext,future:r?.future,history:My({window:r?.window}),hydrationData:zp(),routes:i,mapRouteProperties:Jg,hydrationRouteProperties:$g,dataStrategy:r?.dataStrategy,patchRoutesOnNavigation:r?.patchRoutesOnNavigation,window:r?.window}).initialize()}function zp(){let i=window?.__staticRouterHydrationData;return i&&i.errors&&(i={...i,errors:Mp(i.errors)}),i}function Mp(i){if(!i)return null;let r=Object.entries(i),f={};for(let[o,s]of r)if(s&&s.__type==="RouteErrorResponse")f[o]=new zr(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let d=window[s.__subType];if(typeof d=="function")try{let v=new d(s.message);v.stack="",f[o]=v}catch{}}if(f[o]==null){let d=new Error(s.message);d.stack="",f[o]=d}}else f[o]=s;return f}var nv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ra=C.forwardRef(function({onClick:r,discover:f="render",prefetch:o="none",relative:s,reloadDocument:d,replace:v,state:g,target:y,to:m,preventScrollReset:x,viewTransition:E,...N},B){let{basename:G}=C.useContext(Sl),k=typeof m=="string"&&nv.test(m),J,Q=!1;if(typeof m=="string"&&k&&(J=m,av))try{let he=new URL(window.location.href),Be=m.startsWith("//")?new URL(he.protocol+m):new URL(m),ke=ol(Be.pathname,G);Be.origin===he.origin&&ke!=null?m=ke+Be.search+Be.hash:Q=!0}catch{rt(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let I=Og(m,{relative:s}),[ne,Ce,se]=bp(o,N),j=Ap(m,{replace:v,state:g,target:y,preventScrollReset:x,relative:s,viewTransition:E});function W(he){r&&r(he),he.defaultPrevented||j(he)}let pe=C.createElement("a",{...N,...se,href:J||I,onClick:Q||d?r:W,ref:Tp(B,Ce),target:y,"data-discover":!k&&f==="render"?"true":void 0});return ne&&!k?C.createElement(C.Fragment,null,pe,C.createElement(Sp,{page:I})):pe});Ra.displayName="Link";var za=C.forwardRef(function({"aria-current":r="page",caseSensitive:f=!1,className:o="",end:s=!1,style:d,to:v,viewTransition:g,children:y,...m},x){let E=Iu(v,{relative:m.relative}),N=Oa(),B=C.useContext(Pu),{navigator:G,basename:k}=C.useContext(Sl),J=B!=null&&Up(E)&&g===!0,Q=G.encodeLocation?G.encodeLocation(E).pathname:E.pathname,I=N.pathname,ne=B&&B.navigation&&B.navigation.location?B.navigation.location.pathname:null;f||(I=I.toLowerCase(),ne=ne?ne.toLowerCase():null,Q=Q.toLowerCase()),ne&&k&&(ne=ol(ne,k)||ne);const Ce=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let se=I===Q||!s&&I.startsWith(Q)&&I.charAt(Ce)==="/",j=ne!=null&&(ne===Q||!s&&ne.startsWith(Q)&&ne.charAt(Q.length)==="/"),W={isActive:se,isPending:j,isTransitioning:J},pe=se?r:void 0,he;typeof o=="function"?he=o(W):he=[o,se?"active":null,j?"pending":null,J?"transitioning":null].filter(Boolean).join(" ");let Be=typeof d=="function"?d(W):d;return C.createElement(Ra,{...m,"aria-current":pe,className:he,ref:x,style:Be,to:v,viewTransition:g},typeof y=="function"?y(W):y)});za.displayName="NavLink";var Cp=C.forwardRef(({discover:i="render",fetcherKey:r,navigate:f,reloadDocument:o,replace:s,state:d,method:v=_r,action:g,onSubmit:y,relative:m,preventScrollReset:x,viewTransition:E,...N},B)=>{let G=Np(),k=jp(g,{relative:m}),J=v.toLowerCase()==="get"?"get":"post",Q=typeof g=="string"&&nv.test(g),I=ne=>{if(y&&y(ne),ne.defaultPrevented)return;ne.preventDefault();let Ce=ne.nativeEvent.submitter,se=Ce?.getAttribute("formmethod")||v;G(Ce||ne.currentTarget,{fetcherKey:r,method:se,navigate:f,replace:s,state:d,relative:m,preventScrollReset:x,viewTransition:E})};return C.createElement("form",{ref:B,method:J,action:k,onSubmit:o?y:I,...N,"data-discover":!Q&&i==="render"?"true":void 0})});Cp.displayName="Form";function Rp(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uv(i){let r=C.useContext(ln);return Te(r,Rp(i)),r}function Ap(i,{target:r,replace:f,state:o,preventScrollReset:s,relative:d,viewTransition:v}={}){let g=Or(),y=Oa(),m=Iu(i,{relative:d});return C.useCallback(x=>{if(ip(x,r)){x.preventDefault();let E=f!==void 0?f:Aa(y)===Aa(m);g(i,{replace:E,state:o,preventScrollReset:s,relative:d,viewTransition:v})}},[y,g,m,f,o,r,i,s,d,v])}var Dp=0,Op=()=>`__${String(++Dp)}__`;function Np(){let{router:i}=uv("useSubmit"),{basename:r}=C.useContext(Sl),f=Zg();return C.useCallback(async(o,s={})=>{let{action:d,method:v,encType:g,formData:y,body:m}=op(o,r);if(s.navigate===!1){let x=s.fetcherKey||Op();await i.fetch(x,f,s.action||d,{preventScrollReset:s.preventScrollReset,formData:y,body:m,formMethod:s.method||v,formEncType:s.encType||g,flushSync:s.flushSync})}else await i.navigate(s.action||d,{preventScrollReset:s.preventScrollReset,formData:y,body:m,formMethod:s.method||v,formEncType:s.encType||g,replace:s.replace,state:s.state,fromRouteId:f,flushSync:s.flushSync,viewTransition:s.viewTransition})},[i,r,f])}function jp(i,{relative:r}={}){let{basename:f}=C.useContext(Sl),o=C.useContext(El);Te(o,"useFormAction must be used inside a RouteContext");let[s]=o.matches.slice(-1),d={...Iu(i||".",{relative:r})},v=Oa();if(i==null){d.search=v.search;let g=new URLSearchParams(d.search),y=g.getAll("index");if(y.some(x=>x==="")){g.delete("index"),y.filter(E=>E).forEach(E=>g.append("index",E));let x=g.toString();d.search=x?`?${x}`:""}}return(!i||i===".")&&s.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(d.pathname=d.pathname==="/"?f:Dl([f,d.pathname])),Aa(d)}function Up(i,{relative:r}={}){let f=C.useContext(ff);Te(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=uv("useViewTransitionState"),s=Iu(i,{relative:r});if(!f.isTransitioning)return!1;let d=ol(f.currentLocation.pathname,o)||f.currentLocation.pathname,v=ol(f.nextLocation.pathname,o)||f.nextLocation.pathname;return xr(s.pathname,v)!=null||xr(s.pathname,d)!=null}const wp="_footer_ilvdx_1",Bp="_footerContent_ilvdx_9",Hp="_link_ilvdx_16",Ku={footer:wp,footerContent:Bp,link:Hp};function Lp(){return T.jsx("footer",{className:`${Ku.footer} glassCard`,children:T.jsxs("div",{className:Ku.footerContent,children:[T.jsx(Ra,{to:"",className:Ku.link,children:"Contact"}),T.jsx(Ra,{to:"",className:Ku.link,children:"RGPD"}),T.jsx(Ra,{to:"",className:Ku.link,children:"Mentions légales"})]})})}const qp="_headerContainer_1unhr_1",Yp="_header_1unhr_1",Gp="_activeHeaderContent_1unhr_20",Xp="_inactiveHeaderContent_1unhr_28",Vp="_inactiveMobileMenu_1unhr_38",Zp="_activeMobileMenu_1unhr_45",Qp="_headerLeftContent_1unhr_57",Kp="_headerRightContent_1unhr_65",Jp="_logo_1unhr_71",$p="_logoLink_1unhr_77",kp="_link_1unhr_87",Fp="_activeLink_1unhr_100",Wp="_bellBtn_1unhr_112",Pp="_profileLink_1unhr_112",Ip="_activeBellBtn_1unhr_141",e1="_notificationDiv_1unhr_174",t1="_activeNotificationDiv_1unhr_185",l1="_notification_1unhr_174",a1="_notificationBadge_1unhr_199",n1="_closeBtn_1unhr_209",u1="_burgerBtn_1unhr_227",i1="_burgerBar_1unhr_238",r1="_activeBurgerBtn_1unhr_246",c1="_navLinks_1unhr_257",Me={headerContainer:qp,header:Yp,activeHeaderContent:Gp,inactiveHeaderContent:Xp,inactiveMobileMenu:Vp,activeMobileMenu:Zp,headerLeftContent:Qp,headerRightContent:Kp,logo:Jp,logoLink:$p,link:kp,activeLink:Fp,bellBtn:Wp,profileLink:Pp,activeBellBtn:Ip,notificationDiv:e1,activeNotificationDiv:t1,notification:l1,notificationBadge:a1,closeBtn:n1,burgerBtn:u1,burgerBar:i1,activeBurgerBtn:r1,navLinks:c1};async function o1(){try{return(await(await fetch("http://localhost:8000/api/users/1/notifications",{method:"GET",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json"}})).json()).data}catch(i){return console.error("Erreur :",i),null}}function f1(){const[i,r]=C.useState(!1),[f,o]=C.useState(!0),[s,d]=C.useState(!1),[v,g]=C.useState([]),y=C.useRef(null);return C.useEffect(()=>{async function m(){const E=await o1();g(E||[])}m();const x=E=>{y.current&&!y.current.contains(E.target)&&!E.target.closest(`.${Me.bellBtn}`)&&r(!1)};return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[]),T.jsxs("div",{className:Me.headerContainer,children:[T.jsxs("header",{className:`${Me.header} glassCard`,children:[T.jsxs("nav",{className:`${s?Me.inactiveHeaderContent:Me.activeHeaderContent}`,children:[T.jsxs("div",{className:Me.headerLeftContent,children:[T.jsx(za,{className:Me.logoLink,to:"/",children:T.jsx("img",{src:"logo.png",alt:"logo",className:Me.logo})}),T.jsxs("div",{className:Me.navLinks,children:[T.jsx(za,{to:"/",className:({isActive:m})=>m?Me.activeLink:Me.link,children:"Accueil"}),T.jsx(za,{to:"/events",className:({isActive:m})=>m?Me.activeLink:Me.link,children:"Evènements"}),T.jsx(za,{to:"/volunteers",className:({isActive:m})=>m?Me.activeLink:Me.link,children:"Bénévoles"})]})]}),T.jsxs("div",{className:Me.headerRightContent,children:[T.jsxs("button",{className:`${Me.bellBtn} ${i?Me.activeBellBtn:""}`,onClick:()=>{r(!i),o(!1)},children:[T.jsx("svg",{width:"auto",height:"30",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("path",{d:"M34.325 52.5C33.8855 53.2577 33.2546 53.8866 32.4956 54.3238C31.7365 54.761 30.8759 54.9911 30 54.9911C29.1241 54.9911 28.2635 54.761 27.5044 54.3238C26.7454 53.8866 26.1145 53.2577 25.675 52.5M45 20C45 16.0218 43.4196 12.2064 40.6066 9.3934C37.7936 6.58035 33.9782 5 30 5C26.0218 5 22.2064 6.58035 19.3934 9.3934C16.5804 12.2064 15 16.0218 15 20C15 37.5 7.5 42.5 7.5 42.5H52.5C52.5 42.5 45 37.5 45 20Z",stroke:"currentStroke"})}),f&&T.jsx("span",{className:Me.notificationBadge})]}),T.jsx(Ra,{to:"",className:Me.profileLink,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"30px",viewBox:"0 -960 960 960",width:"auto",fill:"currentFill",children:T.jsx("path",{d:"M480-492.31q-57.75 0-98.87-41.12Q340-574.56 340-632.31q0-57.75 41.13-98.87 41.12-41.13 98.87-41.13 57.75 0 98.87 41.13Q620-690.06 620-632.31q0 57.75-41.13 98.88-41.12 41.12-98.87 41.12ZM180-187.69v-88.93q0-29.38 15.96-54.42 15.96-25.04 42.66-38.5 59.3-29.07 119.65-43.61 60.35-14.54 121.73-14.54t121.73 14.54q60.35 14.54 119.65 43.61 26.7 13.46 42.66 38.5Q780-306 780-276.62v88.93H180Z"})})})]})]}),T.jsxs("nav",{className:`${s?Me.activeMobileMenu:Me.inactiveMobileMenu}`,children:[T.jsx(za,{to:"/",className:({isActive:m})=>m?Me.activeLink:Me.link,children:"Accueil"}),T.jsx(za,{to:"/events",className:({isActive:m})=>m?Me.activeLink:Me.link,children:"Evènements"}),T.jsx(za,{to:"/volunteers",className:({isActive:m})=>m?Me.activeLink:Me.link,children:"Bénévoles"})]}),T.jsxs("button",{className:`${Me.burgerBtn} ${s?Me.activeBurgerBtn:""}`,onClick:()=>d(!s),children:[T.jsx("div",{className:Me.burgerBar}),T.jsx("div",{className:Me.burgerBar}),T.jsx("div",{className:Me.burgerBar})]})]}),T.jsx("div",{ref:y,className:`${Me.notificationDiv} glassCard ${i?Me.activeNotificationDiv:""}`,children:v.length===0?T.jsx("p",{children:"Vous n'avez aucune notification !"}):v.map((m,x)=>T.jsxs("div",{className:Me.notification,children:[T.jsx("p",{children:m.content}),T.jsx("button",{className:Me.closeBtn,onClick:()=>g(E=>E.filter((N,B)=>B!==x)),children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"20px",children:T.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})})})]},x))})]})}const s1="_circle_1wtd6_16",pl={"background-container":"_background-container_1wtd6_2",circle:s1,"circle-1":"_circle-1_1wtd6_23","circle-2":"_circle-2_1wtd6_31","circle-3":"_circle-3_1wtd6_39","circle-4":"_circle-4_1wtd6_47","circle-5":"_circle-5_1wtd6_55"},yf=({children:i,className:r})=>{const f=C.useRef([]),o=()=>{const s=Math.floor(Math.random()*100)-30,d=Math.floor(Math.random()*100)-30;return{x:s,y:d}};return C.useEffect(()=>{f.current.forEach(s=>{if(s){const{x:d,y:v}=o();s.style.setProperty("--random-x",`${d}px`),s.style.setProperty("--random-y",`${v}px`)}})},[]),T.jsxs("div",{className:`${pl["background-container"]} ${r||""}`,children:[T.jsx("div",{ref:s=>f.current[0]=s,className:`${pl.circle} ${pl["circle-1"]}`,style:{"--random-x":"0px","--random-y":"0px"}}),T.jsx("div",{ref:s=>f.current[1]=s,className:`${pl.circle} ${pl["circle-2"]}`,style:{"--random-x":"0px","--random-y":"0px"}}),T.jsx("div",{ref:s=>f.current[2]=s,className:`${pl.circle} ${pl["circle-3"]}`,style:{"--random-x":"0px","--random-y":"0px"}}),T.jsx("div",{ref:s=>f.current[3]=s,className:`${pl.circle} ${pl["circle-4"]}`,style:{"--random-x":"0px","--random-y":"0px"}}),T.jsx("div",{ref:s=>f.current[4]=s,className:`${pl.circle} ${pl["circle-5"]}`,style:{"--random-x":"0px","--random-y":"0px"}}),i]})},gf=C.createContext(null);function d1(){const{user:i,loading:r}=C.useContext(gf);return r?T.jsx("p",{children:"Loading"}):i?T.jsx("div",{children:T.jsx(yf,{children:T.jsxs("div",{className:"content",children:[T.jsx(f1,{}),T.jsx(ep,{}),T.jsx(Lp,{})]})})}):T.jsx(Ig,{to:"/login"})}function h1(){return T.jsx("div",{})}const m1="_container_da4po_1",v1={container:m1},y1="_logButton_aljej_21",g1="_formgroup_aljej_27",ef={logButton:y1,formgroup:g1},p1="_btn_ibuap_1",b1="_primary_ibuap_12",S1="_danger_ibuap_17",E1="_transparent_ibuap_22",Ju={btn:p1,primary:b1,danger:S1,transparent:E1,default:"_default_ibuap_26"},Cr=({children:i,variant:r="primary",onClick:f})=>{let o;return r==="primary"?o=Ju.primary:r==="danger"?o=Ju.danger:r==="transparent"?o=Ju.transparent:o=Ju.default,T.jsx("div",{className:`${Ju.btn} ${o}`,onClick:f,children:i})},_1="_input_1h2ji_1",T1="_rounded_1h2ji_25",x1="_square_1h2ji_29",br={input:_1,rounded:T1,square:x1},Zn=({placeholder:i,onChange:r,value:f,borderStyle:o,...s})=>{let d=br.square;return o==="square"&&(d=br.square),o==="rounded"&&(d=br.rounded),T.jsx("input",{className:`${br.input} ${d}`,onChange:r,placeholder:i,value:f,...s})};function z1({className:i}){const[r,f]=C.useState(""),[o,s]=C.useState(""),[d,v]=C.useState(!1);let g=Or();const{login:y}=C.useContext(gf);async function m(E){E.preventDefault(),await y(r,o),g("/")}const x=()=>{v(!d)};return T.jsxs("div",{className:`${i} glassCard`,children:[T.jsx("div",{className:ef.formgroup,children:T.jsx(Zn,{type:"email",value:r,placeholder:"Adresse mail",onChange:E=>f(E.target.value),style:{width:"100%"}})}),T.jsx("div",{className:ef.formgroup,children:T.jsxs("div",{style:{position:"relative",width:"100%"},children:[T.jsx(Zn,{type:d?"text":"password",value:o,placeholder:"Mot de passe",onChange:E=>s(E.target.value),style:{width:"100%"}}),T.jsx("button",{type:"button",onClick:x,style:{position:"absolute",width:"30px",right:"10px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"16px"},children:d?"👁️":"🔒"})]})}),T.jsx("div",{className:ef.logButton,children:T.jsx(Cr,{onClick:m,variant:"default",children:" Se connecter "})})]})}function Um(){return T.jsx(yf,{children:T.jsx("div",{className:v1.container,children:T.jsx(z1,{})})})}const M1="_container_2h80q_1",C1="_logButton_2h80q_15",R1="_formGroup_2h80q_22",Xn={container:M1,logButton:C1,formGroup:R1};async function iv(){const i=await fetch("http://127.0.0.1/sanctum/csrf-cookie",{method:"GET",credentials:"include"});if(!i.ok&&i.status!==204)throw new Error(`Error : ${i.status}`);const o=`; ${document.cookie}`.split("; XSRF-TOKEN=");if(o.length===2)return decodeURIComponent(o.pop().split(";").shift());throw new Error("Error: Invalid XSRF-TOKEN")}async function A1(i,r,f,o){const s=await iv();try{const d=await fetch("http://127.0.0.1/api/users/register",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-XSRF-TOKEN":s,Accept:"application/json"},body:JSON.stringify({email:i,password:r,name:f,lastname:o})});if(console.log("Code HTTP :",d.status),!d.ok)throw new Error(`Erreur HTTP ${d.status}`);const v=await d.json();return{status:d.status,data:v}}catch(d){return d}}function D1(){const i=Or(),[r,f]=C.useState(""),[o,s]=C.useState(""),[d,v]=C.useState(""),[g,y]=C.useState(""),[m,x]=C.useState(!1);async function E(N){N.preventDefault();const B=await A1(r,o,d,g);if(!B||B.status!==200)throw new Error("Register error");i("/login")}return T.jsx(yf,{children:T.jsx("div",{className:Xn.container,children:T.jsxs("div",{className:"glassCard",children:[T.jsx("h1",{children:"Créer un compte"}),T.jsx("div",{className:Xn.formGroup,children:T.jsx(Zn,{value:d,placeholder:"Prénom",onChange:N=>v(N.target.value),style:{width:"100%"}})}),T.jsx("div",{className:Xn.formGroup,children:T.jsx(Zn,{value:g,placeholder:"Nom",onChange:N=>y(N.target.value),style:{width:"100%"}})}),T.jsx("div",{className:Xn.formGroup,children:T.jsx(Zn,{type:"email",value:r,placeholder:"Adresse mail",onChange:N=>f(N.target.value),style:{width:"100%"}})}),T.jsx("div",{className:Xn.formGroup,children:T.jsxs("div",{style:{position:"relative",width:"100%"},children:[T.jsx(Zn,{type:m?"text":"password",value:o,placeholder:"Mot de passe",onChange:N=>s(N.target.value),style:{width:"100%"}}),T.jsx("button",{type:"button",onClick:()=>x(!m),style:{position:"absolute",width:"30px",right:"10px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"16px"},children:m?"👁️":"🔒"})]})}),T.jsxs("div",{className:Xn.logButton,children:[T.jsx(Cr,{variant:"transparent",onClick:()=>i("/login"),children:"Vous avez déjà un compte ?"}),T.jsx(Cr,{variant:"default",onClick:E,children:" Se connecter "})]})]})})})}const O1="_container_btx5m_1",N1="_profileboard_btx5m_8",j1="_mainContent_btx5m_17",U1="_basicInfo_btx5m_25",w1="_expandedContent_btx5m_29",B1="_profilePictureContainer_btx5m_36",H1="_profilePicture_btx5m_36",L1="_textInfo_btx5m_49",q1="_contactInfo_btx5m_55",Y1="_expandButton_btx5m_63",G1="_voirPlus_btx5m_79",il={container:O1,profileboard:N1,mainContent:j1,basicInfo:U1,expandedContent:w1,profilePictureContainer:B1,profilePicture:H1,textInfo:L1,contactInfo:q1,expandButton:Y1,voirPlus:G1};function X1({name:i,role:r,since:f,email:o,phone:s,photo:d}){const[v,g]=C.useState(!1),y=()=>{g(!v)};return T.jsx("div",{className:`${il.profileboard} glassCard`,children:T.jsxs("div",{className:il.mainContent,children:[v?T.jsxs("div",{className:il.expandedContent,children:[T.jsx("div",{className:il.profilePictureContainer,children:T.jsx("img",{src:d,alt:`${i}'s profile`,className:il.profilePicture})}),T.jsxs("div",{className:il.textInfo,children:[T.jsxs("div",{className:il.basicInfo,children:[T.jsx("h2",{children:i}),T.jsxs("p",{children:[T.jsx("strong",{children:"Rôle :"})," ",r]}),T.jsxs("p",{children:[T.jsx("strong",{children:"Membre depuis :"})," ",f]})]}),T.jsxs("div",{className:il.contactInfo,children:[T.jsxs("p",{children:[T.jsx("strong",{children:"Email :"})," ",o]}),T.jsxs("p",{children:[T.jsx("strong",{children:"Téléphone :"})," ",s]})]})]})]}):T.jsxs("div",{className:il.basicInfo,children:[T.jsx("h2",{children:i}),T.jsxs("p",{children:[T.jsx("strong",{children:"Rôle :"})," ",r]}),T.jsxs("p",{children:[T.jsx("strong",{children:"Membre depuis :"})," ",f]})]}),T.jsx("button",{className:`${il.expandButton} glassCard`,onClick:y,children:v?"▲":"▼"}),v&&T.jsx("div",{className:"voirPlus",children:T.jsx("a",{href:"#",className:il.voirPlus,children:"VOIR PLUS"})})]})})}function V1(){const i=[{name:"LEBLOND Malo",role:"Président",since:"2019",email:"malo.leblond@example.com",phone:"08 67 87 32 21",photo:"../src/assets/react.svg"},{name:"DUPONT Jean",role:"Bénévole",since:"2020",email:"jean.dupont@example.com",phone:"06 12 34 56 78",photo:"../src/assets/react.svg"},{name:"MARTIN Sophie",role:"Bénévole",since:"2021",email:"sophie.martin@example.com",phone:"06 87 65 43 21",photo:"../src/assets/react.svg"},{name:"MARTIN Sophie",role:"Bénévole",since:"2021",email:"sophie.martin@example.com",phone:"06 87 65 43 21",photo:"../src/assets/react.svg"}];return T.jsx("div",{className:il.container,children:i.map((r,f)=>T.jsx(X1,{name:r.name,role:r.role,since:r.since,email:r.email,phone:r.phone,photo:r.photo},f))})}const Z1="_container_y8pga_1",Q1="_profileboard_y8pga_7",K1="_contentWrapper_y8pga_14",J1="_profilePictureContainer_y8pga_21",$1="_profilePicture_y8pga_21",k1="_description_y8pga_34",F1="_topDescription_y8pga_40",W1="_infoBlock_y8pga_47",P1="_event_y8pga_54",I1="_eventTasks_y8pga_61",e2="_expanded_y8pga_69",rl={container:Z1,profileboard:Q1,contentWrapper:K1,profilePictureContainer:J1,profilePicture:$1,description:k1,topDescription:F1,infoBlock:W1,event:P1,eventTasks:I1,expanded:e2};function en({title:i,date:r,tasks:f}){const[o,s]=C.useState(!1),d=()=>{s(!o)};return T.jsxs("div",{className:`${rl.event} glassCard`,children:[T.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[T.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[T.jsx("h3",{children:i}),T.jsx("p",{style:{fontSize:"0.8rem",color:"#666",margin:"0 0 0 0"},children:r})]}),T.jsx("button",{onClick:d,style:{background:"none",border:"none",cursor:"pointer",fontSize:"1.2rem"},children:o?"▼":"▶"})]}),T.jsx("ul",{className:`${rl.eventTasks} ${o?rl.expanded:""}`,children:f.map((v,g)=>T.jsxs("li",{children:["-- ",v]},g))})]})}function t2(){return T.jsx("div",{className:rl.container,children:T.jsx("div",{className:`${rl.profileboard} glassCard`,children:T.jsxs("div",{className:rl.contentWrapper,children:[T.jsx("div",{className:rl.profilePictureContainer,children:T.jsx("img",{src:"../src/assets/react.svg",alt:"Photo de profil",className:rl.profilePicture})}),T.jsxs("div",{className:rl.description,children:[T.jsx("h2",{children:"LEBLOND Malo"}),T.jsxs("div",{className:rl.topDescription,children:[T.jsxs("div",{className:rl.infoBlock,children:[T.jsxs("p",{children:[T.jsx("strong",{children:"Role :"})," Président"]}),T.jsxs("p",{children:[T.jsx("strong",{children:"Membre depuis :"})," 2019"]})]}),T.jsxs("div",{className:rl.infoBlock,children:[T.jsxs("p",{children:[T.jsx("strong",{children:"Mail :"})," mailpro@gmail.com"]}),T.jsxs("p",{children:[T.jsx("strong",{children:"Téléphone :"})," 08 67 87 32 21"]})]}),T.jsx("button",{href:"/../UpdateProfile.jsx",children:"M"})]}),T.jsx("h2",{children:"Vos Événements :"}),T.jsx(en,{title:"Titre event 1",date:"04/11/2025",tasks:["Votre tâche 1","Votre tâche 2","Votre tâche 3"]}),T.jsx(en,{title:"Titre event 2",date:"04/11/2025",tasks:["Votre tâche 1","Votre tâche 2","Votre tâche 3"]}),T.jsx(en,{title:"Titre event 3",date:"04/11/2025",tasks:["Votre tâche 1","Votre tâche 2","Votre tâche 3"]}),T.jsx(en,{title:"Titre event 4",date:"04/11/2025",tasks:["Votre tâche 1","Votre tâche 2","Votre tâche 3"]}),T.jsx(en,{title:"Titre event 5",date:"04/11/2025",tasks:["Votre tâche 1","Votre tâche 2","Votre tâche 3"]}),T.jsx(en,{title:"Titre event 6",date:"04/11/2025",tasks:["Votre tâche 1","Votre tâche 2","Votre tâche 3"]}),T.jsx(en,{title:"Titre event 7",date:"04/11/2025",tasks:["Votre tâche 1","Votre tâche 2","Votre tâche 3"]})]})]})})})}const l2="_eventContainer_6zkeh_1",a2="_eventContainerTop_6zkeh_8",n2="_eventContainerBottom_6zkeh_12",u2="_moreLink_6zkeh_18",i2="_eventImageDiv_6zkeh_22",r2="_eventImage_6zkeh_22",c2="_eventContent_6zkeh_40",o2="_eventTitle_6zkeh_44",f2="_eventButtons_6zkeh_53",s2="_moreButton_6zkeh_69",d2="_moreButtonClicked_6zkeh_93",h2="_eventMenuOpen_6zkeh_98",m2="_eventMenuClose_6zkeh_102",v2="_eventInfos_6zkeh_132",Bt={eventContainer:l2,eventContainerTop:a2,eventContainerBottom:n2,moreLink:u2,eventImageDiv:i2,eventImage:r2,eventContent:c2,eventTitle:o2,eventButtons:f2,moreButton:s2,moreButtonClicked:d2,eventMenuOpen:h2,eventMenuClose:m2,eventInfos:v2};function y2({event:i}){const[r,f]=C.useState(!1),[o,s]=C.useState({width:null,height:null});return C.useEffect(()=>{function d(){s({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",d),d(),()=>window.removeEventListener("resize",d)},[]),T.jsxs("div",{className:`${Bt.eventContainer} glassCard`,children:[T.jsxs("div",{className:Bt.eventContainerTop,children:[T.jsxs("div",{className:Bt.eventContent,children:[T.jsx("div",{className:`${Bt.eventImageDiv}`,children:i.image==null?T.jsx("img",{src:"empty.png",className:Bt.eventImage,alt:"Pas de photo de l'événement"}):T.jsx("img",{src:i.image+".png",alt:"Photo de l'événement"})}),T.jsxs("div",{className:Bt.eventInfos,children:[T.jsx("p",{className:Bt.eventTitle,children:i.name}),T.jsx("p",{children:i.description}),T.jsx("div",{className:r?Bt.eventMenuOpen:Bt.eventMenuClose,children:T.jsxs("ul",{children:[i.tasks.slice(0,5).map((d,v)=>T.jsxs("li",{children:[" - ",d.name]},v)),i.tasks.length>5?T.jsx("li",{children:"..."}):null]})})]})]}),o.width>768?T.jsx("div",{className:Bt.eventButtons,children:T.jsx("button",{className:`${Bt.moreButton} ${r?Bt.moreButtonClicked:""}`,onClick:()=>{f(!r)},children:">"})}):null]}),T.jsx("div",{className:Bt.eventContainerBottom,children:o.width<=768||r?T.jsx(Ra,{to:"/event/"+i.id,className:Bt.moreLink,children:T.jsx(Cr,{children:"En savoir plus →"})}):null})]})}const g2="_eventsContainer_18j6d_1",p2="_eventsList_18j6d_6",b2="_eventsButtons_18j6d_12",S2="_filterContainer_18j6d_26",E2="_filterMenu_18j6d_32",_2="_createButton_18j6d_37",T2="_sortButton_18j6d_37",x2="_mobileFilter_18j6d_62",xa={eventsContainer:g2,eventsList:p2,eventsButtons:b2,filterContainer:S2,filterMenu:E2,createButton:_2,sortButton:T2,mobileFilter:x2},z2="_filterContainer_1ubkm_1",M2="_filterOpen_1ubkm_11",C2="_filterClose_1ubkm_17",R2="_filterTag_1ubkm_23",A2="_active_1ubkm_56",bl={filterContainer:z2,filterOpen:M2,filterClose:C2,filterTag:R2,active:A2};function D2({isFilterVisible:i,filters:r,setFilters:f}){const o=d=>{f(v=>({...v,alphabetical:v.alphabetical===d?null:d}))},s=d=>{f(v=>({...v,yearOrder:v.yearOrder===d?null:d}))};return T.jsxs("div",{className:`${bl.filterContainer} ${i?bl.filterOpen:bl.filterClose}`,children:[T.jsx("abbr",{title:"Tri alphabétique croissant (A à Z)",children:T.jsx("button",{className:`${bl.filterTag} glassCard ${r.alphabetical!=="asc"?"":bl.active}`,onClick:()=>o("asc"),children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor",children:T.jsx("path",{d:"m80-280 150-400h86l150 400h-82l-34-96H196l-32 96H80Zm140-164h104l-48-150h-6l-50 150Zm328 164v-76l202-252H556v-72h282v76L638-352h202v72H548ZM360-760l120-120 120 120H360ZM480-80 360-200h240L480-80Z"})})})}),T.jsx("abbr",{title:"Tri alphabétique décroissant (Z à A)",children:T.jsx("button",{className:`${bl.filterTag} glassCard ${r.alphabetical!=="desc"?"":bl.active}`,onClick:()=>o("desc"),children:T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor",children:[T.jsx("path",{d:"M 480,-880 360,-760 H 600 Z M 360,-200 480,-80 600,-200 Z"}),T.jsx("path",{d:"M 71.679924,-674.40094 H 398.50264 v 60.67705 l -208.59362,252.3436 h 214.5832 v 75.7812 H 65.690344 v -60.67705 L 274.28397,-598.61973 H 71.679924 Z"}),T.jsx("path",{d:"M 769.04932,-356.43238 H 612.27858 l -24.73957,70.83329 H 486.75782 l 144.01033,-388.80185 h 119.53118 l 144.01033,388.80185 H 793.52847 Z m -131.77076,-72.13537 h 106.51035 l -53.12496,-154.68741 z"})]})})}),T.jsx("abbr",{title:"Tri chronologique croissant (du plus ancien au plus récent)",children:T.jsx("button",{className:`${bl.filterTag} glassCard ${r.yearOrder!=="asc"?"":bl.active}`,onClick:()=>s("asc"),children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor",children:T.jsx("path",{d:"M340-160q-125 0-212.5-87.5T40-460q0-125 87.5-212.5T340-760q52 0 98 16.5t84 45.5l42-42 56 56-42 42q29 38 45.5 84.5T640-460q0 125-87.5 212.5T340-160Zm400 0v-488l-44 44-56-56 140-140 140 140-57 56-43-43v487h-80ZM240-800v-80h200v80H240Zm100 560q92 0 156-64t64-156q0-92-64-156t-156-64q-92 0-156 64t-64 156q0 92 64 156t156 64Zm-40-180h80v-200h-80v200Zm40-40Z"})})})}),T.jsx("abbr",{title:"Tri chronologique décroissant (du plus récent au plus ancien)",children:T.jsx("button",{className:`${bl.filterTag} glassCard ${r.yearOrder!=="desc"?"":bl.active}`,onClick:()=>s("desc"),children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor",children:T.jsx("path",{d:"M340-160q-125 0-212.5-87.5T40-460q0-125 87.5-212.5T340-760q52 0 98 16.5t84 45.5l42-42 56 56-42 42q29 38 45.5 84.5T640-460q0 125-87.5 212.5T340-160Zm440 0L640-300l56-56 44 44v-488h80v487l43-43 57 56-140 140ZM240-800v-80h200v80H240Zm100 560q92 0 156-64t64-156q0-92-64-156t-156-64q-92 0-156 64t-64 156q0 92 64 156t156 64Zm-40-180h80v-200h-80v200Zm40-40Z"})})})})]})}function O2(){const[i,r]=C.useState(!1),f=()=>{r(y=>!y)},[o,s]=C.useState({alphabetical:"asc",yearOrder:"asc"}),[d]=C.useState([{id:1,name:"Marathon de la Ville",description:"Participez au marathon annuel et soutenez les associations locales.",image:null,tasks:[{name:"Inscription des participants",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Centre sportif",description:"Accueillir et enregistrer tous les coureurs.",volunteers_count:5},{name:"Distribution des dossards",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Salle principale",description:"Remettre les dossards et goodies aux participants.",volunteers_count:3}]},{id:2,name:"Festival de Musique d’Été",description:"Un week-end de concerts en plein air avec des artistes locaux et internationaux.",image:null,tasks:[{name:"Montage de la scène",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Parc central",description:"Installer la scène, les éclairages et le son.",volunteers_count:6},{name:"Accueil du public",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Entrée principale",description:"Vérifier les billets et orienter les visiteurs.",volunteers_count:4}]},{id:3,name:"Conférence Tech Innovante",description:"Journée de conférences et workshops autour des nouvelles technologies.",image:null,tasks:[{name:"Préparation des salles",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Campus Tech",description:"Installer les chaises, projecteurs et matériel pour les conférences.",volunteers_count:4},{name:"Accueil des intervenants",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Hall principal",description:"Assister les speakers et orienter vers les salles.",volunteers_count:2},{name:"Gestion du buffet",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Salle de restauration",description:"Distribuer boissons et repas aux participants.",volunteers_count:3}]},{id:4,name:"Atelier de Jardinage Urbain",description:"Apprenez à cultiver vos plantes en ville et participez à la création de jardins partagés.",image:null,tasks:[{name:"Installation du matériel",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Jardin partagé",description:"Préparer outils et terreaux pour les participants.",volunteers_count:2},{name:"Encadrement des participants",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Jardin partagé",description:"Aider et conseiller sur la plantation et lentretien.",volunteers_count:3}]},{id:5,name:"Collecte de Sang",description:"Aidez à sauver des vies en participant à notre collecte de sang annuelle.",image:null,tasks:[{name:"Accueil et enregistrement",start:"2020-09-24 22:21:20",end:"2020-09-24 22:21:20",place:"Salle municipale",description:"Enregistrer les donneurs et expliquer le processus.",volunteers_count:4},{name:"Préparation des salles",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Salle municipale",description:"Installer les lits, tables et matériel médical.",volunteers_count:3},{name:"Assistance post-don",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Salle municipale",description:"Accompagner les donneurs après le don et proposer des rafraîchissements.",volunteers_count:2},{name:"Accueil et enregistrement",start:"2020-09-24 22:21:20",end:"2020-09-24 22:21:20",place:"Salle municipale",description:"Enregistrer les donneurs et expliquer le processus.",volunteers_count:4},{name:"Préparation des salles",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Salle municipale",description:"Installer les lits, tables et matériel médical.",volunteers_count:3},{name:"Assistance post-don",start:"2018-09-24 22:21:20",end:"2018-09-24 22:21:20",place:"Salle municipale",description:"Accompagner les donneurs après le don et proposer des rafraîchissements.",volunteers_count:2}]}]),v=(y,m)=>{const x=new Date(y),E=new Date(m);return o.yearOrder==="asc"?E-x:x-E},g=[...d].sort((y,m)=>{const x=y.tasks.sort((B,G)=>v(B.start,G.start)),E=m.tasks.sort((B,G)=>v(B.start,G.start)),N=v(x[0].start,E[0].start);return N!==0?N:o.alphabetical!==null?o.alphabetical==="asc"?y.name.localeCompare(m.name):m.name.localeCompare(y.name):0});return T.jsxs("div",{className:xa.eventsContainer,children:[T.jsxs("div",{className:xa.eventsButtons,children:[T.jsx(Ra,{to:"/event/create",className:`${xa.createButton} glassCard`,children:"+"}),T.jsxs("div",{className:`${xa.filterContainer} ${i?"glassCard":""}`,children:[T.jsx("button",{className:`${i?"":xa.mobileFilter} ${xa.sortButton} glassCard`,onClick:f,children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentColor",children:T.jsx("path",{d:"M440-160q-17 0-28.5-11.5T400-200v-240L168-736q-15-20-4.5-42t36.5-22h560q26 0 36.5 22t-4.5 42L560-440v240q0 17-11.5 28.5T520-160h-80Zm40-308 198-252H282l198 252Zm0 0Z"})})}),T.jsx("div",{className:xa.filterMenu,children:T.jsx(D2,{isFilterVisible:i,filters:o,setFilters:s})})]})]}),T.jsx("div",{className:xa.eventsList,children:g.map((y,m)=>T.jsx(y2,{event:y},m))})]})}const N2=xp([{path:"/login",Component:Um},{path:"/register",Component:D1},{path:"/",Component:d1,children:[{path:"/",Component:h1},{path:"/login",Component:Um},{path:"/profile",Component:t2},{path:"/events",Component:O2},{path:"/volunteers",Component:V1}]}]);async function j2(i,r){const f=await iv();try{const o=await fetch("http://127.0.0.1/api/users/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-XSRF-TOKEN":f,Accept:"application/json"},body:JSON.stringify({email:i,password:r})});if(console.log("Code HTTP :",o.status),!o.ok)throw new Error(`Erreur HTTP ${o.status}`);const s=await o.json();return console.log("Connexion réussie ! Données utilisateur :",s),{status:o.status,data:s}}catch(o){return o}}async function wm(){try{const i=await fetch("http://127.0.0.1/api/users/me",{method:"GET",credentials:"include",headers:{Accept:"application/json"}});if(!i.ok)throw new Error(`Erreur serveur : ${i.status}`);return await i.json()}catch(i){return console.error("Erreur :",i),null}}function U2({children:i}){const[r,f]=C.useState(null),[o,s]=C.useState(!0);C.useEffect(()=>{(async()=>{const g=await wm();f(g),s(!1)})()},[]);const d=async(g,y)=>{const m=await j2(g,y);if(!m||m.status!==200)throw new Error("Login error");const x=await wm();return f(x),m},v=async()=>{f(null)};return T.jsx(gf.Provider,{value:{user:r,loading:o,login:d,logout:v},children:i})}Ty.createRoot(document.getElementById("root")).render(T.jsx(C.StrictMode,{children:T.jsx(U2,{children:T.jsx(Fg,{router:N2})})}));