(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))f(d);new MutationObserver(d=>{for(const v of d)if(v.type==="childList")for(const p of v.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&f(p)}).observe(document,{childList:!0,subtree:!0});function s(d){const v={};return d.integrity&&(v.integrity=d.integrity),d.referrerPolicy&&(v.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?v.credentials="include":d.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function f(d){if(d.ep)return;d.ep=!0;const v=s(d);fetch(d.href,v)}})();function $d(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Tf={exports:{}},Du={};/**
 * @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 _d;function By(){if(_d)return Du;_d=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(f,d,v){var p=null;if(v!==void 0&&(p=""+v),d.key!==void 0&&(p=""+d.key),"key"in d){v={};for(var j in d)j!=="key"&&(v[j]=d[j])}else v=d;return d=v.ref,{$$typeof:i,type:f,key:p,ref:d!==void 0?d:null,props:v}}return Du.Fragment=o,Du.jsx=s,Du.jsxs=s,Du}var Cd;function qy(){return Cd||(Cd=1,Tf.exports=By()),Tf.exports}var h=qy(),Af={exports:{}},te={};/**
 * @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 Ud;function wy(){if(Ud)return te;Ud=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),p=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),H=Symbol.iterator;function O(g){return g===null||typeof g!="object"?null:(g=H&&g[H]||g["@@iterator"],typeof g=="function"?g:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,G={};function V(g,B,Q){this.props=g,this.context=B,this.refs=G,this.updater=Q||q}V.prototype.isReactComponent={},V.prototype.setState=function(g,B){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,B,"setState")},V.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function w(){}w.prototype=V.prototype;function Z(g,B,Q){this.props=g,this.context=B,this.refs=G,this.updater=Q||q}var k=Z.prototype=new w;k.constructor=Z,U(k,V.prototype),k.isPureReactComponent=!0;var ce=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},fe=Object.prototype.hasOwnProperty;function ue(g,B,Q,Y,$,oe){return Q=oe.ref,{$$typeof:i,type:g,key:B,ref:Q!==void 0?Q:null,props:oe}}function se(g,B){return ue(g.type,B,void 0,void 0,void 0,g.props)}function Ee(g){return typeof g=="object"&&g!==null&&g.$$typeof===i}function Je(g){var B={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(Q){return B[Q]})}var ot=/\/+/g;function Xe(g,B){return typeof g=="object"&&g!==null&&g.key!=null?Je(""+g.key):B.toString(36)}function Nl(){}function Ol(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(Nl,Nl):(g.status="pending",g.then(function(B){g.status==="pending"&&(g.status="fulfilled",g.value=B)},function(B){g.status==="pending"&&(g.status="rejected",g.reason=B)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function Qe(g,B,Q,Y,$){var oe=typeof g;(oe==="undefined"||oe==="boolean")&&(g=null);var ee=!1;if(g===null)ee=!0;else switch(oe){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(g.$$typeof){case i:case o:ee=!0;break;case M:return ee=g._init,Qe(ee(g._payload),B,Q,Y,$)}}if(ee)return $=$(g),ee=Y===""?"."+Xe(g,0):Y,ce($)?(Q="",ee!=null&&(Q=ee.replace(ot,"$&/")+"/"),Qe($,B,Q,"",function(el){return el})):$!=null&&(Ee($)&&($=se($,Q+($.key==null||g&&g.key===$.key?"":(""+$.key).replace(ot,"$&/")+"/")+ee)),B.push($)),1;ee=0;var tt=Y===""?".":Y+":";if(ce(g))for(var Te=0;Te<g.length;Te++)Y=g[Te],oe=tt+Xe(Y,Te),ee+=Qe(Y,B,Q,oe,$);else if(Te=O(g),typeof Te=="function")for(g=Te.call(g),Te=0;!(Y=g.next()).done;)Y=Y.value,oe=tt+Xe(Y,Te++),ee+=Qe(Y,B,Q,oe,$);else if(oe==="object"){if(typeof g.then=="function")return Qe(Ol(g),B,Q,Y,$);throw B=String(g),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ee}function D(g,B,Q){if(g==null)return g;var Y=[],$=0;return Qe(g,Y,"","",function(oe){return B.call(Q,oe,$++)}),Y}function X(g){if(g._status===-1){var B=g._result;B=B(),B.then(function(Q){(g._status===0||g._status===-1)&&(g._status=1,g._result=Q)},function(Q){(g._status===0||g._status===-1)&&(g._status=2,g._result=Q)}),g._status===-1&&(g._status=0,g._result=B)}if(g._status===1)return g._result.default;throw g._result}var P=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)};function pe(){}return te.Children={map:D,forEach:function(g,B,Q){D(g,function(){B.apply(this,arguments)},Q)},count:function(g){var B=0;return D(g,function(){B++}),B},toArray:function(g){return D(g,function(B){return B})||[]},only:function(g){if(!Ee(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},te.Component=V,te.Fragment=s,te.Profiler=d,te.PureComponent=Z,te.StrictMode=f,te.Suspense=S,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,te.__COMPILER_RUNTIME={__proto__:null,c:function(g){return L.H.useMemoCache(g)}},te.cache=function(g){return function(){return g.apply(null,arguments)}},te.cloneElement=function(g,B,Q){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var Y=U({},g.props),$=g.key,oe=void 0;if(B!=null)for(ee in B.ref!==void 0&&(oe=void 0),B.key!==void 0&&($=""+B.key),B)!fe.call(B,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&B.ref===void 0||(Y[ee]=B[ee]);var ee=arguments.length-2;if(ee===1)Y.children=Q;else if(1<ee){for(var tt=Array(ee),Te=0;Te<ee;Te++)tt[Te]=arguments[Te+2];Y.children=tt}return ue(g.type,$,void 0,void 0,oe,Y)},te.createContext=function(g){return g={$$typeof:p,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:v,_context:g},g},te.createElement=function(g,B,Q){var Y,$={},oe=null;if(B!=null)for(Y in B.key!==void 0&&(oe=""+B.key),B)fe.call(B,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&($[Y]=B[Y]);var ee=arguments.length-2;if(ee===1)$.children=Q;else if(1<ee){for(var tt=Array(ee),Te=0;Te<ee;Te++)tt[Te]=arguments[Te+2];$.children=tt}if(g&&g.defaultProps)for(Y in ee=g.defaultProps,ee)$[Y]===void 0&&($[Y]=ee[Y]);return ue(g,oe,void 0,void 0,null,$)},te.createRef=function(){return{current:null}},te.forwardRef=function(g){return{$$typeof:j,render:g}},te.isValidElement=Ee,te.lazy=function(g){return{$$typeof:M,_payload:{_status:-1,_result:g},_init:X}},te.memo=function(g,B){return{$$typeof:m,type:g,compare:B===void 0?null:B}},te.startTransition=function(g){var B=L.T,Q={};L.T=Q;try{var Y=g(),$=L.S;$!==null&&$(Q,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(pe,P)}catch(oe){P(oe)}finally{L.T=B}},te.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},te.use=function(g){return L.H.use(g)},te.useActionState=function(g,B,Q){return L.H.useActionState(g,B,Q)},te.useCallback=function(g,B){return L.H.useCallback(g,B)},te.useContext=function(g){return L.H.useContext(g)},te.useDebugValue=function(){},te.useDeferredValue=function(g,B){return L.H.useDeferredValue(g,B)},te.useEffect=function(g,B,Q){var Y=L.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(g,B)},te.useId=function(){return L.H.useId()},te.useImperativeHandle=function(g,B,Q){return L.H.useImperativeHandle(g,B,Q)},te.useInsertionEffect=function(g,B){return L.H.useInsertionEffect(g,B)},te.useLayoutEffect=function(g,B){return L.H.useLayoutEffect(g,B)},te.useMemo=function(g,B){return L.H.useMemo(g,B)},te.useOptimistic=function(g,B){return L.H.useOptimistic(g,B)},te.useReducer=function(g,B,Q){return L.H.useReducer(g,B,Q)},te.useRef=function(g){return L.H.useRef(g)},te.useState=function(g){return L.H.useState(g)},te.useSyncExternalStore=function(g,B,Q){return L.H.useSyncExternalStore(g,B,Q)},te.useTransition=function(){return L.H.useTransition()},te.version="19.1.0",te}var Hd;function Cf(){return Hd||(Hd=1,Af.exports=wy()),Af.exports}var A=Cf();const Ly=$d(A);var Rf={exports:{}},_u={},Nf={exports:{}},Of={};/**
 * @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 Bd;function Yy(){return Bd||(Bd=1,function(i){function o(D,X){var P=D.length;D.push(X);e:for(;0<P;){var pe=P-1>>>1,g=D[pe];if(0<d(g,X))D[pe]=X,D[P]=g,P=pe;else break e}}function s(D){return D.length===0?null:D[0]}function f(D){if(D.length===0)return null;var X=D[0],P=D.pop();if(P!==X){D[0]=P;e:for(var pe=0,g=D.length,B=g>>>1;pe<B;){var Q=2*(pe+1)-1,Y=D[Q],$=Q+1,oe=D[$];if(0>d(Y,P))$<g&&0>d(oe,Y)?(D[pe]=oe,D[$]=P,pe=$):(D[pe]=Y,D[Q]=P,pe=Q);else if($<g&&0>d(oe,P))D[pe]=oe,D[$]=P,pe=$;else break e}}return X}function d(D,X){var P=D.sortIndex-X.sortIndex;return P!==0?P:D.id-X.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;i.unstable_now=function(){return v.now()}}else{var p=Date,j=p.now();i.unstable_now=function(){return p.now()-j}}var S=[],m=[],M=1,H=null,O=3,q=!1,U=!1,G=!1,V=!1,w=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function ce(D){for(var X=s(m);X!==null;){if(X.callback===null)f(m);else if(X.startTime<=D)f(m),X.sortIndex=X.expirationTime,o(S,X);else break;X=s(m)}}function L(D){if(G=!1,ce(D),!U)if(s(S)!==null)U=!0,fe||(fe=!0,Xe());else{var X=s(m);X!==null&&Qe(L,X.startTime-D)}}var fe=!1,ue=-1,se=5,Ee=-1;function Je(){return V?!0:!(i.unstable_now()-Ee<se)}function ot(){if(V=!1,fe){var D=i.unstable_now();Ee=D;var X=!0;try{e:{U=!1,G&&(G=!1,Z(ue),ue=-1),q=!0;var P=O;try{t:{for(ce(D),H=s(S);H!==null&&!(H.expirationTime>D&&Je());){var pe=H.callback;if(typeof pe=="function"){H.callback=null,O=H.priorityLevel;var g=pe(H.expirationTime<=D);if(D=i.unstable_now(),typeof g=="function"){H.callback=g,ce(D),X=!0;break t}H===s(S)&&f(S),ce(D)}else f(S);H=s(S)}if(H!==null)X=!0;else{var B=s(m);B!==null&&Qe(L,B.startTime-D),X=!1}}break e}finally{H=null,O=P,q=!1}X=void 0}}finally{X?Xe():fe=!1}}}var Xe;if(typeof k=="function")Xe=function(){k(ot)};else if(typeof MessageChannel<"u"){var Nl=new MessageChannel,Ol=Nl.port2;Nl.port1.onmessage=ot,Xe=function(){Ol.postMessage(null)}}else Xe=function(){w(ot,0)};function Qe(D,X){ue=w(function(){D(i.unstable_now())},X)}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"):se=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return O},i.unstable_next=function(D){switch(O){case 1:case 2:case 3:var X=3;break;default:X=O}var P=O;O=X;try{return D()}finally{O=P}},i.unstable_requestPaint=function(){V=!0},i.unstable_runWithPriority=function(D,X){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var P=O;O=D;try{return X()}finally{O=P}},i.unstable_scheduleCallback=function(D,X,P){var pe=i.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?pe+P:pe):P=pe,D){case 1:var g=-1;break;case 2:g=250;break;case 5:g=1073741823;break;case 4:g=1e4;break;default:g=5e3}return g=P+g,D={id:M++,callback:X,priorityLevel:D,startTime:P,expirationTime:g,sortIndex:-1},P>pe?(D.sortIndex=P,o(m,D),s(S)===null&&D===s(m)&&(G?(Z(ue),ue=-1):G=!0,Qe(L,P-pe))):(D.sortIndex=g,o(S,D),U||q||(U=!0,fe||(fe=!0,Xe()))),D},i.unstable_shouldYield=Je,i.unstable_wrapCallback=function(D){var X=O;return function(){var P=O;O=X;try{return D.apply(this,arguments)}finally{O=P}}}}(Of)),Of}var qd;function Gy(){return qd||(qd=1,Nf.exports=Yy()),Nf.exports}var Mf={exports:{}},Ke={};/**
 * @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 wd;function Xy(){if(wd)return Ke;wd=1;var i=Cf();function o(S){var m="https://react.dev/errors/"+S;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)m+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+S+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var f={d:{f:s,r:function(){throw Error(o(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},d=Symbol.for("react.portal");function v(S,m,M){var H=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:H==null?null:""+H,children:S,containerInfo:m,implementation:M}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(S,m){if(S==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,Ke.createPortal=function(S,m){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(o(299));return v(S,m,null,M)},Ke.flushSync=function(S){var m=p.T,M=f.p;try{if(p.T=null,f.p=2,S)return S()}finally{p.T=m,f.p=M,f.d.f()}},Ke.preconnect=function(S,m){typeof S=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,f.d.C(S,m))},Ke.prefetchDNS=function(S){typeof S=="string"&&f.d.D(S)},Ke.preinit=function(S,m){if(typeof S=="string"&&m&&typeof m.as=="string"){var M=m.as,H=j(M,m.crossOrigin),O=typeof m.integrity=="string"?m.integrity:void 0,q=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;M==="style"?f.d.S(S,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:H,integrity:O,fetchPriority:q}):M==="script"&&f.d.X(S,{crossOrigin:H,integrity:O,fetchPriority:q,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ke.preinitModule=function(S,m){if(typeof S=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var M=j(m.as,m.crossOrigin);f.d.M(S,{crossOrigin:M,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&f.d.M(S)},Ke.preload=function(S,m){if(typeof S=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var M=m.as,H=j(M,m.crossOrigin);f.d.L(S,M,{crossOrigin:H,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})}},Ke.preloadModule=function(S,m){if(typeof S=="string")if(m){var M=j(m.as,m.crossOrigin);f.d.m(S,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:M,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else f.d.m(S)},Ke.requestFormReset=function(S){f.d.r(S)},Ke.unstable_batchedUpdates=function(S,m){return S(m)},Ke.useFormState=function(S,m,M){return p.H.useFormState(S,m,M)},Ke.useFormStatus=function(){return p.H.useHostTransitionStatus()},Ke.version="19.1.0",Ke}var Ld;function Qy(){if(Ld)return Mf.exports;Ld=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(o){console.error(o)}}return i(),Mf.exports=Xy(),Mf.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 Yd;function Zy(){if(Yd)return _u;Yd=1;var i=Gy(),o=Cf(),s=Qy();function f(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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(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 p(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 j(e){if(v(e)!==e)throw Error(f(188))}function S(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(f(188));return t!==e?null:e}for(var l=e,a=t;;){var u=l.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===l)return j(u),e;if(n===a)return j(u),t;n=n.sibling}throw Error(f(188))}if(l.return!==a.return)l=u,a=n;else{for(var c=!1,r=u.child;r;){if(r===l){c=!0,l=u,a=n;break}if(r===a){c=!0,a=u,l=n;break}r=r.sibling}if(!c){for(r=n.child;r;){if(r===l){c=!0,l=n,a=u;break}if(r===a){c=!0,a=n,l=u;break}r=r.sibling}if(!c)throw Error(f(189))}}if(l.alternate!==a)throw Error(f(190))}if(l.tag!==3)throw Error(f(188));return l.stateNode.current===l?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var M=Object.assign,H=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),Z=Symbol.for("react.consumer"),k=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),Je=Symbol.for("react.memo_cache_sentinel"),ot=Symbol.iterator;function Xe(e){return e===null||typeof e!="object"?null:(e=ot&&e[ot]||e["@@iterator"],typeof e=="function"?e:null)}var Nl=Symbol.for("react.client.reference");function Ol(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Nl?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case V:return"Profiler";case G:return"StrictMode";case L:return"Suspense";case fe:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case k:return(e.displayName||"Context")+".Provider";case Z: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 ue:return t=e.displayName||null,t!==null?t:Ol(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return Ol(e(t))}catch{}}return null}var Qe=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},pe=[],g=-1;function B(e){return{current:e}}function Q(e){0>g||(e.current=pe[g],pe[g]=null,g--)}function Y(e,t){g++,pe[g]=e.current,e.current=t}var $=B(null),oe=B(null),ee=B(null),tt=B(null);function Te(e,t){switch(Y(ee,t),Y(oe,e),Y($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=id(t),e=cd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q($),Y($,e)}function el(){Q($),Q(oe),Q(ee)}function ci(e){e.memoizedState!==null&&Y(tt,e);var t=$.current,l=cd(t,e.type);t!==l&&(Y(oe,e),Y($,l))}function Lu(e){oe.current===e&&(Q($),Q(oe)),tt.current===e&&(Q(tt),Nu._currentValue=P)}var fi=Object.prototype.hasOwnProperty,ri=i.unstable_scheduleCallback,si=i.unstable_cancelCallback,mh=i.unstable_shouldYield,yh=i.unstable_requestPaint,At=i.unstable_now,vh=i.unstable_getCurrentPriorityLevel,Lf=i.unstable_ImmediatePriority,Yf=i.unstable_UserBlockingPriority,Yu=i.unstable_NormalPriority,gh=i.unstable_LowPriority,Gf=i.unstable_IdlePriority,bh=i.log,ph=i.unstable_setDisableYieldValue,Ua=null,lt=null;function tl(e){if(typeof bh=="function"&&ph(e),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(Ua,e)}catch{}}var at=Math.clz32?Math.clz32:Eh,Sh=Math.log,xh=Math.LN2;function Eh(e){return e>>>=0,e===0?32:31-(Sh(e)/xh|0)|0}var Gu=256,Xu=4194304;function Ml(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Qu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var u=0,n=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=a&134217727;return r!==0?(a=r&~n,a!==0?u=Ml(a):(c&=r,c!==0?u=Ml(c):l||(l=r&~e,l!==0&&(u=Ml(l))))):(r=a&~n,r!==0?u=Ml(r):c!==0?u=Ml(c):l||(l=a&~e,l!==0&&(u=Ml(l)))),u===0?0:t!==0&&t!==u&&(t&n)===0&&(n=u&-u,l=t&-t,n>=l||n===32&&(l&4194048)!==0)?t:u}function Ha(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Th(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 Xf(){var e=Gu;return Gu<<=1,(Gu&4194048)===0&&(Gu=256),e}function Qf(){var e=Xu;return Xu<<=1,(Xu&62914560)===0&&(Xu=4194304),e}function oi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ba(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ah(e,t,l,a,u,n){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 r=e.entanglements,y=e.expirationTimes,T=e.hiddenUpdates;for(l=c&~l;0<l;){var z=31-at(l),C=1<<z;r[z]=0,y[z]=-1;var R=T[z];if(R!==null)for(T[z]=null,z=0;z<R.length;z++){var N=R[z];N!==null&&(N.lane&=-536870913)}l&=~C}a!==0&&Zf(e,a,0),n!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=n&~(c&~t))}function Zf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-at(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function Vf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-at(l),u=1<<a;u&t|e[a]&t&&(e[a]|=t),l&=~u}}function di(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 hi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Kf(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Nd(e.type))}function Rh(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var ll=Math.random().toString(36).slice(2),Ze="__reactFiber$"+ll,$e="__reactProps$"+ll,Jl="__reactContainer$"+ll,mi="__reactEvents$"+ll,Nh="__reactListeners$"+ll,Oh="__reactHandles$"+ll,Jf="__reactResources$"+ll,qa="__reactMarker$"+ll;function yi(e){delete e[Ze],delete e[$e],delete e[mi],delete e[Nh],delete e[Oh]}function kl(e){var t=e[Ze];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Jl]||l[Ze]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=od(e);e!==null;){if(l=e[Ze])return l;e=od(e)}return t}e=l,l=e.parentNode}return null}function $l(e){if(e=e[Ze]||e[Jl]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function Wl(e){var t=e[Jf];return t||(t=e[Jf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function He(e){e[qa]=!0}var kf=new Set,$f={};function jl(e,t){Fl(e,t),Fl(e+"Capture",t)}function Fl(e,t){for($f[e]=t,e=0;e<t.length;e++)kf.add(t[e])}var Mh=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]*$"),Wf={},Ff={};function jh(e){return fi.call(Ff,e)?!0:fi.call(Wf,e)?!1:Mh.test(e)?Ff[e]=!0:(Wf[e]=!0,!1)}function Zu(e,t,l){if(jh(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 Vu(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 Ht(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)}}var vi,Pf;function Pl(e){if(vi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);vi=t&&t[1]||"",Pf=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+vi+e+Pf}var gi=!1;function bi(e,t){if(!e||gi)return"";gi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(N){var R=N}Reflect.construct(e,[],C)}else{try{C.call()}catch(N){R=N}e.call(C.prototype)}}else{try{throw Error()}catch(N){R=N}(C=e())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(N){if(N&&R&&typeof N.stack=="string")return[N.stack,R.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=a.DetermineComponentFrameRoot(),c=n[0],r=n[1];if(c&&r){var y=c.split(`
`),T=r.split(`
`);for(u=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;if(a===y.length||u===T.length)for(a=y.length-1,u=T.length-1;1<=a&&0<=u&&y[a]!==T[u];)u--;for(;1<=a&&0<=u;a--,u--)if(y[a]!==T[u]){if(a!==1||u!==1)do if(a--,u--,0>u||y[a]!==T[u]){var z=`
`+y[a].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),z}while(1<=a&&0<=u);break}}}finally{gi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Pl(l):""}function zh(e){switch(e.tag){case 26:case 27:case 5:return Pl(e.type);case 16:return Pl("Lazy");case 13:return Pl("Suspense");case 19:return Pl("SuspenseList");case 0:case 15:return bi(e.type,!1);case 11:return bi(e.type.render,!1);case 1:return bi(e.type,!0);case 31:return Pl("Activity");default:return""}}function If(e){try{var t="";do t+=zh(e),e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function er(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dh(e){var t=er(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,n=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(c){a=""+c,n.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ku(e){e._valueTracker||(e._valueTracker=Dh(e))}function tr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=er(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ju(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 _h=/[\n"\\]/g;function ht(e){return e.replace(_h,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function pi(e,t,l,a,u,n,c,r){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=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Si(e,c,dt(t)):l!=null?Si(e,c,dt(l)):a!=null&&e.removeAttribute("value"),u==null&&n!=null&&(e.defaultChecked=!!n),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+dt(r):e.removeAttribute("name")}function lr(e,t,l,a,u,n,c,r){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.type=n),t!=null||l!=null){if(!(n!=="submit"&&n!=="reset"||t!=null))return;l=l!=null?""+dt(l):"",t=t!=null?""+dt(t):l,r||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=r?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c)}function Si(e,t,l){t==="number"&&Ju(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Il(e,t,l,a){if(e=e.options,t){t={};for(var u=0;u<l.length;u++)t["$"+l[u]]=!0;for(l=0;l<e.length;l++)u=t.hasOwnProperty("$"+e[l].value),e[l].selected!==u&&(e[l].selected=u),u&&a&&(e[l].defaultSelected=!0)}else{for(l=""+dt(l),t=null,u=0;u<e.length;u++){if(e[u].value===l){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function ar(e,t,l){if(t!=null&&(t=""+dt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+dt(l):""}function ur(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(f(92));if(Qe(a)){if(1<a.length)throw Error(f(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=dt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Ch=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 nr(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||Ch.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ir(e,t,l){if(t!=null&&typeof t!="object")throw Error(f(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 u in t)a=t[u],t.hasOwnProperty(u)&&l[u]!==a&&nr(e,u,a)}else for(var n in t)t.hasOwnProperty(n)&&nr(e,n,t[n])}function xi(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 Uh=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"]]),Hh=/^[\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 ku(e){return Hh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ei=null;function Ti(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ta=null,la=null;function cr(e){var t=$l(e);if(t&&(e=t.stateNode)){var l=e[$e]||null;e:switch(e=t.stateNode,t.type){case"input":if(pi(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="'+ht(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var u=a[$e]||null;if(!u)throw Error(f(90));pi(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&tr(a)}break e;case"textarea":ar(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Il(e,!!l.multiple,t,!1)}}}var Ai=!1;function fr(e,t,l){if(Ai)return e(t,l);Ai=!0;try{var a=e(t);return a}finally{if(Ai=!1,(ta!==null||la!==null)&&(Un(),ta&&(t=ta,e=la,la=ta=null,cr(t),e)))for(t=0;t<e.length;t++)cr(e[t])}}function La(e,t){var l=e.stateNode;if(l===null)return null;var a=l[$e]||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(f(231,t,typeof l));return l}var Bt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=!1;if(Bt)try{var Ya={};Object.defineProperty(Ya,"passive",{get:function(){Ri=!0}}),window.addEventListener("test",Ya,Ya),window.removeEventListener("test",Ya,Ya)}catch{Ri=!1}var al=null,Ni=null,$u=null;function rr(){if($u)return $u;var e,t=Ni,l=t.length,a,u="value"in al?al.value:al.textContent,n=u.length;for(e=0;e<l&&t[e]===u[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===u[n-a];a++);return $u=u.slice(e,1<a?1-a:void 0)}function Wu(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 Fu(){return!0}function sr(){return!1}function We(e){function t(l,a,u,n,c){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=n,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(l=e[r],this[r]=l?l(n):n[r]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Fu:sr,this.isPropagationStopped=sr,this}return M(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=Fu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fu)},persist:function(){},isPersistent:Fu}),t}var zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=We(zl),Ga=M({},zl,{view:0,detail:0}),Bh=We(Ga),Oi,Mi,Xa,Iu=M({},Ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zi,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!==Xa&&(Xa&&e.type==="mousemove"?(Oi=e.screenX-Xa.screenX,Mi=e.screenY-Xa.screenY):Mi=Oi=0,Xa=e),Oi)},movementY:function(e){return"movementY"in e?e.movementY:Mi}}),or=We(Iu),qh=M({},Iu,{dataTransfer:0}),wh=We(qh),Lh=M({},Ga,{relatedTarget:0}),ji=We(Lh),Yh=M({},zl,{animationName:0,elapsedTime:0,pseudoElement:0}),Gh=We(Yh),Xh=M({},zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qh=We(Xh),Zh=M({},zl,{data:0}),dr=We(Zh),Vh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kh={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"},Jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jh[e])?!!t[e]:!1}function zi(){return kh}var $h=M({},Ga,{key:function(e){if(e.key){var t=Vh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zi,charCode:function(e){return e.type==="keypress"?Wu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wh=We($h),Fh=M({},Iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hr=We(Fh),Ph=M({},Ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zi}),Ih=We(Ph),em=M({},zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),tm=We(em),lm=M({},Iu,{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}),am=We(lm),um=M({},zl,{newState:0,oldState:0}),nm=We(um),im=[9,13,27,32],Di=Bt&&"CompositionEvent"in window,Qa=null;Bt&&"documentMode"in document&&(Qa=document.documentMode);var cm=Bt&&"TextEvent"in window&&!Qa,mr=Bt&&(!Di||Qa&&8<Qa&&11>=Qa),yr=" ",vr=!1;function gr(e,t){switch(e){case"keyup":return im.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function br(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function fm(e,t){switch(e){case"compositionend":return br(t);case"keypress":return t.which!==32?null:(vr=!0,yr);case"textInput":return e=t.data,e===yr&&vr?null:e;default:return null}}function rm(e,t){if(aa)return e==="compositionend"||!Di&&gr(e,t)?(e=rr(),$u=Ni=al=null,aa=!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 mr&&t.locale!=="ko"?null:t.data;default:return null}}var sm={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 pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sm[e.type]:t==="textarea"}function Sr(e,t,l,a){ta?la?la.push(a):la=[a]:ta=a,t=Yn(t,"onChange"),0<t.length&&(l=new Pu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Za=null,Va=null;function om(e){td(e,0)}function en(e){var t=wa(e);if(tr(t))return e}function xr(e,t){if(e==="change")return t}var Er=!1;if(Bt){var _i;if(Bt){var Ci="oninput"in document;if(!Ci){var Tr=document.createElement("div");Tr.setAttribute("oninput","return;"),Ci=typeof Tr.oninput=="function"}_i=Ci}else _i=!1;Er=_i&&(!document.documentMode||9<document.documentMode)}function Ar(){Za&&(Za.detachEvent("onpropertychange",Rr),Va=Za=null)}function Rr(e){if(e.propertyName==="value"&&en(Va)){var t=[];Sr(t,Va,e,Ti(e)),fr(om,t)}}function dm(e,t,l){e==="focusin"?(Ar(),Za=t,Va=l,Za.attachEvent("onpropertychange",Rr)):e==="focusout"&&Ar()}function hm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return en(Va)}function mm(e,t){if(e==="click")return en(t)}function ym(e,t){if(e==="input"||e==="change")return en(t)}function vm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ut=typeof Object.is=="function"?Object.is:vm;function Ka(e,t){if(ut(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 u=l[a];if(!fi.call(t,u)||!ut(e[u],t[u]))return!1}return!0}function Nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var l=Nr(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=Nr(l)}}function Mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ju(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=Ju(e.document)}return t}function Ui(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 gm=Bt&&"documentMode"in document&&11>=document.documentMode,ua=null,Hi=null,Ja=null,Bi=!1;function zr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Bi||ua==null||ua!==Ju(a)||(a=ua,"selectionStart"in a&&Ui(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}),Ja&&Ka(Ja,a)||(Ja=a,a=Yn(Hi,"onSelect"),0<a.length&&(t=new Pu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ua)))}function Dl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var na={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionrun:Dl("Transition","TransitionRun"),transitionstart:Dl("Transition","TransitionStart"),transitioncancel:Dl("Transition","TransitionCancel"),transitionend:Dl("Transition","TransitionEnd")},qi={},Dr={};Bt&&(Dr=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function _l(e){if(qi[e])return qi[e];if(!na[e])return e;var t=na[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Dr)return qi[e]=t[l];return e}var _r=_l("animationend"),Cr=_l("animationiteration"),Ur=_l("animationstart"),bm=_l("transitionrun"),pm=_l("transitionstart"),Sm=_l("transitioncancel"),Hr=_l("transitionend"),Br=new Map,wi="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(" ");wi.push("scrollEnd");function xt(e,t){Br.set(e,t),jl(t,[e])}var qr=new WeakMap;function mt(e,t){if(typeof e=="object"&&e!==null){var l=qr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:If(t)},qr.set(e,t),t)}return{value:e,source:t,stack:If(t)}}var yt=[],ia=0,Li=0;function tn(){for(var e=ia,t=Li=ia=0;t<e;){var l=yt[t];yt[t++]=null;var a=yt[t];yt[t++]=null;var u=yt[t];yt[t++]=null;var n=yt[t];if(yt[t++]=null,a!==null&&u!==null){var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}n!==0&&wr(l,u,n)}}function ln(e,t,l,a){yt[ia++]=e,yt[ia++]=t,yt[ia++]=l,yt[ia++]=a,Li|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Yi(e,t,l,a){return ln(e,t,l,a),an(e)}function ca(e,t){return ln(e,null,null,t),an(e)}function wr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var u=!1,n=e.return;n!==null;)n.childLanes|=l,a=n.alternate,a!==null&&(a.childLanes|=l),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(u=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,u&&t!==null&&(u=31-at(l),e=n.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=l|536870912),n):null}function an(e){if(50<bu)throw bu=0,Kc=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function xm(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 nt(e,t,l,a){return new xm(e,t,l,a)}function Gi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qt(e,t){var l=e.alternate;return l===null?(l=nt(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 Lr(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 un(e,t,l,a,u,n){var c=0;if(a=e,typeof e=="function")Gi(e)&&(c=1);else if(typeof e=="string")c=Ty(e,l,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=nt(31,l,t,u),e.elementType=Ee,e.lanes=n,e;case U:return Cl(l.children,u,n,t);case G:c=8,u|=24;break;case V:return e=nt(12,l,t,u|2),e.elementType=V,e.lanes=n,e;case L:return e=nt(13,l,t,u),e.elementType=L,e.lanes=n,e;case fe:return e=nt(19,l,t,u),e.elementType=fe,e.lanes=n,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:case k:c=10;break e;case Z:c=9;break e;case ce:c=11;break e;case ue:c=14;break e;case se:c=16,a=null;break e}c=29,l=Error(f(130,e===null?"null":typeof e,"")),a=null}return t=nt(c,l,t,u),t.elementType=e,t.type=a,t.lanes=n,t}function Cl(e,t,l,a){return e=nt(7,e,a,t),e.lanes=l,e}function Xi(e,t,l){return e=nt(6,e,null,t),e.lanes=l,e}function Qi(e,t,l){return t=nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ra=[],sa=0,nn=null,cn=0,vt=[],gt=0,Ul=null,wt=1,Lt="";function Hl(e,t){ra[sa++]=cn,ra[sa++]=nn,nn=e,cn=t}function Yr(e,t,l){vt[gt++]=wt,vt[gt++]=Lt,vt[gt++]=Ul,Ul=e;var a=wt;e=Lt;var u=32-at(a)-1;a&=~(1<<u),l+=1;var n=32-at(t)+u;if(30<n){var c=u-u%5;n=(a&(1<<c)-1).toString(32),a>>=c,u-=c,wt=1<<32-at(t)+u|l<<u|a,Lt=n+e}else wt=1<<n|l<<u|a,Lt=e}function Zi(e){e.return!==null&&(Hl(e,1),Yr(e,1,0))}function Vi(e){for(;e===nn;)nn=ra[--sa],ra[sa]=null,cn=ra[--sa],ra[sa]=null;for(;e===Ul;)Ul=vt[--gt],vt[gt]=null,Lt=vt[--gt],vt[gt]=null,wt=vt[--gt],vt[gt]=null}var ke=null,Oe=null,he=!1,Bl=null,Rt=!1,Ki=Error(f(519));function ql(e){var t=Error(f(418,""));throw Wa(mt(t,e)),Ki}function Gr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ze]=e,t[$e]=a,l){case"dialog":ie("cancel",t),ie("close",t);break;case"iframe":case"object":case"embed":ie("load",t);break;case"video":case"audio":for(l=0;l<Su.length;l++)ie(Su[l],t);break;case"source":ie("error",t);break;case"img":case"image":case"link":ie("error",t),ie("load",t);break;case"details":ie("toggle",t);break;case"input":ie("invalid",t),lr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Ku(t);break;case"select":ie("invalid",t);break;case"textarea":ie("invalid",t),ur(t,a.value,a.defaultValue,a.children),Ku(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||nd(t.textContent,l)?(a.popover!=null&&(ie("beforetoggle",t),ie("toggle",t)),a.onScroll!=null&&ie("scroll",t),a.onScrollEnd!=null&&ie("scrollend",t),a.onClick!=null&&(t.onclick=Gn),t=!0):t=!1,t||ql(e)}function Xr(e){for(ke=e.return;ke;)switch(ke.tag){case 5:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:ke=ke.return}}function ka(e){if(e!==ke)return!1;if(!he)return Xr(e),he=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||rf(e.type,e.memoizedProps)),l=!l),l&&Oe&&ql(e),Xr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Oe=Tt(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Oe=null}}else t===27?(t=Oe,pl(e.type)?(e=hf,hf=null,Oe=e):Oe=t):Oe=ke?Tt(e.stateNode.nextSibling):null;return!0}function $a(){Oe=ke=null,he=!1}function Qr(){var e=Bl;return e!==null&&(Ie===null?Ie=e:Ie.push.apply(Ie,e),Bl=null),e}function Wa(e){Bl===null?Bl=[e]:Bl.push(e)}var Ji=B(null),wl=null,Yt=null;function ul(e,t,l){Y(Ji,t._currentValue),t._currentValue=l}function Gt(e){e._currentValue=Ji.current,Q(Ji)}function ki(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 $i(e,t,l,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var n=u.dependencies;if(n!==null){var c=u.child;n=n.firstContext;e:for(;n!==null;){var r=n;n=u;for(var y=0;y<t.length;y++)if(r.context===t[y]){n.lanes|=l,r=n.alternate,r!==null&&(r.lanes|=l),ki(n.return,l,e),a||(c=null);break e}n=r.next}}else if(u.tag===18){if(c=u.return,c===null)throw Error(f(341));c.lanes|=l,n=c.alternate,n!==null&&(n.lanes|=l),ki(c,l,e),c=null}else c=u.child;if(c!==null)c.return=u;else for(c=u;c!==null;){if(c===e){c=null;break}if(u=c.sibling,u!==null){u.return=c.return,c=u;break}c=c.return}u=c}}function Fa(e,t,l,a){e=null;for(var u=t,n=!1;u!==null;){if(!n){if((u.flags&524288)!==0)n=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var c=u.alternate;if(c===null)throw Error(f(387));if(c=c.memoizedProps,c!==null){var r=u.type;ut(u.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(u===tt.current){if(c=u.alternate,c===null)throw Error(f(387));c.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Nu):e=[Nu])}u=u.return}e!==null&&$i(t,e,l,a),t.flags|=262144}function fn(e){for(e=e.firstContext;e!==null;){if(!ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ll(e){wl=e,Yt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return Zr(wl,e)}function rn(e,t){return wl===null&&Ll(e),Zr(e,t)}function Zr(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Yt===null){if(e===null)throw Error(f(308));Yt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yt=Yt.next=t;return l}var Em=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()})}},Tm=i.unstable_scheduleCallback,Am=i.unstable_NormalPriority,Ce={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wi(){return{controller:new Em,data:new Map,refCount:0}}function Pa(e){e.refCount--,e.refCount===0&&Tm(Am,function(){e.controller.abort()})}var Ia=null,Fi=0,oa=0,da=null;function Rm(e,t){if(Ia===null){var l=Ia=[];Fi=0,oa=Ic(),da={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Fi++,t.then(Vr,Vr),t}function Vr(){if(--Fi===0&&Ia!==null){da!==null&&(da.status="fulfilled");var e=Ia;Ia=null,oa=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Nm(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<l.length;u++)(0,l[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),a}var Kr=D.S;D.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rm(e,t),Kr!==null&&Kr(e,t)};var Yl=B(null);function Pi(){var e=Yl.current;return e!==null?e:xe.pooledCache}function sn(e,t){t===null?Y(Yl,Yl.current):Y(Yl,t.pool)}function Jr(){var e=Pi();return e===null?null:{parent:Ce._currentValue,pool:e}}var eu=Error(f(460)),kr=Error(f(474)),on=Error(f(542)),Ii={then:function(){}};function $r(e){return e=e.status,e==="fulfilled"||e==="rejected"}function dn(){}function Wr(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(dn,dn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pr(e),e;default:if(typeof t.status=="string")t.then(dn,dn);else{if(e=xe,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pr(e),e}throw tu=t,eu}}var tu=null;function Fr(){if(tu===null)throw Error(f(459));var e=tu;return tu=null,e}function Pr(e){if(e===eu||e===on)throw Error(f(483))}var nl=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(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 il(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function cl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=an(e),wr(e,null,l),t}return ln(e,a,t,l),an(e)}function lu(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,Vf(e,l)}}function lc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var u=null,n=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};n===null?u=n=c:n=n.next=c,l=l.next}while(l!==null);n===null?u=n=t:n=n.next=t}else u=n=t;l={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:n,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 ac=!1;function au(){if(ac){var e=da;if(e!==null)throw e}}function uu(e,t,l,a){ac=!1;var u=e.updateQueue;nl=!1;var n=u.firstBaseUpdate,c=u.lastBaseUpdate,r=u.shared.pending;if(r!==null){u.shared.pending=null;var y=r,T=y.next;y.next=null,c===null?n=T:c.next=T,c=y;var z=e.alternate;z!==null&&(z=z.updateQueue,r=z.lastBaseUpdate,r!==c&&(r===null?z.firstBaseUpdate=T:r.next=T,z.lastBaseUpdate=y))}if(n!==null){var C=u.baseState;c=0,z=T=y=null,r=n;do{var R=r.lane&-536870913,N=R!==r.lane;if(N?(re&R)===R:(a&R)===R){R!==0&&R===oa&&(ac=!0),z!==null&&(z=z.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var I=e,W=r;R=t;var be=l;switch(W.tag){case 1:if(I=W.payload,typeof I=="function"){C=I.call(be,C,R);break e}C=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=W.payload,R=typeof I=="function"?I.call(be,C,R):I,R==null)break e;C=M({},C,R);break e;case 2:nl=!0}}R=r.callback,R!==null&&(e.flags|=64,N&&(e.flags|=8192),N=u.callbacks,N===null?u.callbacks=[R]:N.push(R))}else N={lane:R,tag:r.tag,payload:r.payload,callback:r.callback,next:null},z===null?(T=z=N,y=C):z=z.next=N,c|=R;if(r=r.next,r===null){if(r=u.shared.pending,r===null)break;N=r,r=N.next,N.next=null,u.lastBaseUpdate=N,u.shared.pending=null}}while(!0);z===null&&(y=C),u.baseState=y,u.firstBaseUpdate=T,u.lastBaseUpdate=z,n===null&&(u.shared.lanes=0),yl|=c,e.lanes=c,e.memoizedState=C}}function Ir(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function es(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ir(l[e],t)}var ha=B(null),hn=B(0);function ts(e,t){e=kt,Y(hn,e),Y(ha,t),kt=e|t.baseLanes}function uc(){Y(hn,kt),Y(ha,ha.current)}function nc(){kt=hn.current,Q(ha),Q(hn)}var fl=0,le=null,ve=null,De=null,mn=!1,ma=!1,Gl=!1,yn=0,nu=0,ya=null,Om=0;function je(){throw Error(f(321))}function ic(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ut(e[l],t[l]))return!1;return!0}function cc(e,t,l,a,u,n){return fl=n,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?ws:Ls,Gl=!1,n=l(a,u),Gl=!1,ma&&(n=as(t,l,a,u)),ls(e),n}function ls(e){D.H=xn;var t=ve!==null&&ve.next!==null;if(fl=0,De=ve=le=null,mn=!1,nu=0,ya=null,t)throw Error(f(300));e===null||Be||(e=e.dependencies,e!==null&&fn(e)&&(Be=!0))}function as(e,t,l,a){le=e;var u=0;do{if(ma&&(ya=null),nu=0,ma=!1,25<=u)throw Error(f(301));if(u+=1,De=ve=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}D.H=Um,n=t(l,a)}while(ma);return n}function Mm(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?iu(t):t,e=e.useState()[0],(ve!==null?ve.memoizedState:null)!==e&&(le.flags|=1024),t}function fc(){var e=yn!==0;return yn=0,e}function rc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function sc(e){if(mn){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mn=!1}fl=0,De=ve=le=null,ma=!1,nu=yn=0,ya=null}function Fe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?le.memoizedState=De=e:De=De.next=e,De}function _e(){if(ve===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=ve.next;var t=De===null?le.memoizedState:De.next;if(t!==null)De=t,ve=e;else{if(e===null)throw le.alternate===null?Error(f(467)):Error(f(310));ve=e,e={memoizedState:ve.memoizedState,baseState:ve.baseState,baseQueue:ve.baseQueue,queue:ve.queue,next:null},De===null?le.memoizedState=De=e:De=De.next=e}return De}function oc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function iu(e){var t=nu;return nu+=1,ya===null&&(ya=[]),e=Wr(ya,e,t),t=le,(De===null?t.memoizedState:De.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?ws:Ls),e}function vn(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return iu(e);if(e.$$typeof===k)return Ve(e)}throw Error(f(438,String(e)))}function dc(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=oc(),le.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]=Je;return t.index++,l}function Xt(e,t){return typeof t=="function"?t(e):t}function gn(e){var t=_e();return hc(t,ve,e)}function hc(e,t,l){var a=e.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=l;var u=e.baseQueue,n=a.pending;if(n!==null){if(u!==null){var c=u.next;u.next=n.next,n.next=c}t.baseQueue=u=n,a.pending=null}if(n=e.baseState,u===null)e.memoizedState=n;else{t=u.next;var r=c=null,y=null,T=t,z=!1;do{var C=T.lane&-536870913;if(C!==T.lane?(re&C)===C:(fl&C)===C){var R=T.revertLane;if(R===0)y!==null&&(y=y.next={lane:0,revertLane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),C===oa&&(z=!0);else if((fl&R)===R){T=T.next,R===oa&&(z=!0);continue}else C={lane:0,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(r=y=C,c=n):y=y.next=C,le.lanes|=R,yl|=R;C=T.action,Gl&&l(n,C),n=T.hasEagerState?T.eagerState:l(n,C)}else R={lane:C,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(r=y=R,c=n):y=y.next=R,le.lanes|=C,yl|=C;T=T.next}while(T!==null&&T!==t);if(y===null?c=n:y.next=r,!ut(n,e.memoizedState)&&(Be=!0,z&&(l=da,l!==null)))throw l;e.memoizedState=n,e.baseState=c,e.baseQueue=y,a.lastRenderedState=n}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function mc(e){var t=_e(),l=t.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=e;var a=l.dispatch,u=l.pending,n=t.memoizedState;if(u!==null){l.pending=null;var c=u=u.next;do n=e(n,c.action),c=c.next;while(c!==u);ut(n,t.memoizedState)||(Be=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),l.lastRenderedState=n}return[n,a]}function us(e,t,l){var a=le,u=_e(),n=he;if(n){if(l===void 0)throw Error(f(407));l=l()}else l=t();var c=!ut((ve||u).memoizedState,l);c&&(u.memoizedState=l,Be=!0),u=u.queue;var r=cs.bind(null,a,u,e);if(cu(2048,8,r,[e]),u.getSnapshot!==t||c||De!==null&&De.memoizedState.tag&1){if(a.flags|=2048,va(9,bn(),is.bind(null,a,u,l,t),null),xe===null)throw Error(f(349));n||(fl&124)!==0||ns(a,t,l)}return l}function ns(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=oc(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function is(e,t,l,a){t.value=l,t.getSnapshot=a,fs(t)&&rs(e)}function cs(e,t,l){return l(function(){fs(t)&&rs(e)})}function fs(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ut(e,l)}catch{return!0}}function rs(e){var t=ca(e,2);t!==null&&st(t,e,2)}function yc(e){var t=Fe();if(typeof e=="function"){var l=e;if(e=l(),Gl){tl(!0);try{l()}finally{tl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:e},t}function ss(e,t,l,a){return e.baseState=l,hc(e,ve,typeof a=="function"?a:Xt)}function jm(e,t,l,a,u){if(Sn(e))throw Error(f(485));if(e=t.action,e!==null){var n={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){n.listeners.push(c)}};D.T!==null?l(!0):n.isTransition=!1,a(n),l=t.pending,l===null?(n.next=t.pending=n,os(t,n)):(n.next=l.next,t.pending=l.next=n)}}function os(e,t){var l=t.action,a=t.payload,u=e.state;if(t.isTransition){var n=D.T,c={};D.T=c;try{var r=l(u,a),y=D.S;y!==null&&y(c,r),ds(e,t,r)}catch(T){vc(e,t,T)}finally{D.T=n}}else try{n=l(u,a),ds(e,t,n)}catch(T){vc(e,t,T)}}function ds(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){hs(e,t,a)},function(a){return vc(e,t,a)}):hs(e,t,l)}function hs(e,t,l){t.status="fulfilled",t.value=l,ms(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,os(e,l)))}function vc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,ms(t),t=t.next;while(t!==a)}e.action=null}function ms(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ys(e,t){return t}function vs(e,t){if(he){var l=xe.formState;if(l!==null){e:{var a=le;if(he){if(Oe){t:{for(var u=Oe,n=Rt;u.nodeType!==8;){if(!n){u=null;break t}if(u=Tt(u.nextSibling),u===null){u=null;break t}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){Oe=Tt(u.nextSibling),a=u.data==="F!";break e}}ql(a)}a=!1}a&&(t=l[0])}}return l=Fe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ys,lastRenderedState:t},l.queue=a,l=Hs.bind(null,le,a),a.dispatch=l,a=yc(!1),n=xc.bind(null,le,!1,a.queue),a=Fe(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,l=jm.bind(null,le,u,n,l),u.dispatch=l,a.memoizedState=e,[t,l,!1]}function gs(e){var t=_e();return bs(t,ve,e)}function bs(e,t,l){if(t=hc(e,t,ys)[0],e=gn(Xt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=iu(t)}catch(c){throw c===eu?on:c}else a=t;t=_e();var u=t.queue,n=u.dispatch;return l!==t.memoizedState&&(le.flags|=2048,va(9,bn(),zm.bind(null,u,l),null)),[a,n,e]}function zm(e,t){e.action=t}function ps(e){var t=_e(),l=ve;if(l!==null)return bs(t,l,e);_e(),t=t.memoizedState,l=_e();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function va(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=oc(),le.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 bn(){return{destroy:void 0,resource:void 0}}function Ss(){return _e().memoizedState}function pn(e,t,l,a){var u=Fe();a=a===void 0?null:a,le.flags|=e,u.memoizedState=va(1|t,bn(),l,a)}function cu(e,t,l,a){var u=_e();a=a===void 0?null:a;var n=u.memoizedState.inst;ve!==null&&a!==null&&ic(a,ve.memoizedState.deps)?u.memoizedState=va(t,n,l,a):(le.flags|=e,u.memoizedState=va(1|t,n,l,a))}function xs(e,t){pn(8390656,8,e,t)}function Es(e,t){cu(2048,8,e,t)}function Ts(e,t){return cu(4,2,e,t)}function As(e,t){return cu(4,4,e,t)}function Rs(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 Ns(e,t,l){l=l!=null?l.concat([e]):null,cu(4,4,Rs.bind(null,t,e),l)}function gc(){}function Os(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ic(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Ms(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ic(t,a[1]))return a[0];if(a=e(),Gl){tl(!0);try{e()}finally{tl(!1)}}return l.memoizedState=[a,t],a}function bc(e,t,l){return l===void 0||(fl&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=_o(),le.lanes|=e,yl|=e,l)}function js(e,t,l,a){return ut(l,t)?l:ha.current!==null?(e=bc(e,l,a),ut(e,t)||(Be=!0),e):(fl&42)===0?(Be=!0,e.memoizedState=l):(e=_o(),le.lanes|=e,yl|=e,t)}function zs(e,t,l,a,u){var n=X.p;X.p=n!==0&&8>n?n:8;var c=D.T,r={};D.T=r,xc(e,!1,t,l);try{var y=u(),T=D.S;if(T!==null&&T(r,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var z=Nm(y,a);fu(e,t,z,rt(e))}else fu(e,t,a,rt(e))}catch(C){fu(e,t,{then:function(){},status:"rejected",reason:C},rt())}finally{X.p=n,D.T=c}}function Dm(){}function pc(e,t,l,a){if(e.tag!==5)throw Error(f(476));var u=Ds(e).queue;zs(e,u,t,P,l===null?Dm:function(){return _s(e),l(a)})}function Ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:P},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _s(e){var t=Ds(e).next.queue;fu(e,t,{},rt())}function Sc(){return Ve(Nu)}function Cs(){return _e().memoizedState}function Us(){return _e().memoizedState}function _m(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=rt();e=il(l);var a=cl(t,e,l);a!==null&&(st(a,t,l),lu(a,t,l)),t={cache:Wi()},e.payload=t;return}t=t.return}}function Cm(e,t,l){var a=rt();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Sn(e)?Bs(t,l):(l=Yi(e,t,l,a),l!==null&&(st(l,e,a),qs(l,t,a)))}function Hs(e,t,l){var a=rt();fu(e,t,l,a)}function fu(e,t,l,a){var u={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Sn(e))Bs(t,u);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var c=t.lastRenderedState,r=n(c,l);if(u.hasEagerState=!0,u.eagerState=r,ut(r,c))return ln(e,t,u,0),xe===null&&tn(),!1}catch{}finally{}if(l=Yi(e,t,u,a),l!==null)return st(l,e,a),qs(l,t,a),!0}return!1}function xc(e,t,l,a){if(a={lane:2,revertLane:Ic(),action:a,hasEagerState:!1,eagerState:null,next:null},Sn(e)){if(t)throw Error(f(479))}else t=Yi(e,l,a,2),t!==null&&st(t,e,2)}function Sn(e){var t=e.alternate;return e===le||t!==null&&t===le}function Bs(e,t){ma=mn=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function qs(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Vf(e,l)}}var xn={readContext:Ve,use:vn,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useLayoutEffect:je,useInsertionEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useSyncExternalStore:je,useId:je,useHostTransitionStatus:je,useFormState:je,useActionState:je,useOptimistic:je,useMemoCache:je,useCacheRefresh:je},ws={readContext:Ve,use:vn,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:xs,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,pn(4194308,4,Rs.bind(null,t,e),l)},useLayoutEffect:function(e,t){return pn(4194308,4,e,t)},useInsertionEffect:function(e,t){pn(4,2,e,t)},useMemo:function(e,t){var l=Fe();t=t===void 0?null:t;var a=e();if(Gl){tl(!0);try{e()}finally{tl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Fe();if(l!==void 0){var u=l(t);if(Gl){tl(!0);try{l(t)}finally{tl(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Cm.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:function(e){e=yc(e);var t=e.queue,l=Hs.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:gc,useDeferredValue:function(e,t){var l=Fe();return bc(l,e,t)},useTransition:function(){var e=yc(!1);return e=zs.bind(null,le,e.queue,!0,!1),Fe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,u=Fe();if(he){if(l===void 0)throw Error(f(407));l=l()}else{if(l=t(),xe===null)throw Error(f(349));(re&124)!==0||ns(a,t,l)}u.memoizedState=l;var n={value:l,getSnapshot:t};return u.queue=n,xs(cs.bind(null,a,n,e),[e]),a.flags|=2048,va(9,bn(),is.bind(null,a,n,l,t),null),l},useId:function(){var e=Fe(),t=xe.identifierPrefix;if(he){var l=Lt,a=wt;l=(a&~(1<<32-at(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=yn++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Om++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Sc,useFormState:vs,useActionState:vs,useOptimistic:function(e){var t=Fe();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=xc.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:dc,useCacheRefresh:function(){return Fe().memoizedState=_m.bind(null,le)}},Ls={readContext:Ve,use:vn,useCallback:Os,useContext:Ve,useEffect:Es,useImperativeHandle:Ns,useInsertionEffect:Ts,useLayoutEffect:As,useMemo:Ms,useReducer:gn,useRef:Ss,useState:function(){return gn(Xt)},useDebugValue:gc,useDeferredValue:function(e,t){var l=_e();return js(l,ve.memoizedState,e,t)},useTransition:function(){var e=gn(Xt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:iu(e),t]},useSyncExternalStore:us,useId:Cs,useHostTransitionStatus:Sc,useFormState:gs,useActionState:gs,useOptimistic:function(e,t){var l=_e();return ss(l,ve,e,t)},useMemoCache:dc,useCacheRefresh:Us},Um={readContext:Ve,use:vn,useCallback:Os,useContext:Ve,useEffect:Es,useImperativeHandle:Ns,useInsertionEffect:Ts,useLayoutEffect:As,useMemo:Ms,useReducer:mc,useRef:Ss,useState:function(){return mc(Xt)},useDebugValue:gc,useDeferredValue:function(e,t){var l=_e();return ve===null?bc(l,e,t):js(l,ve.memoizedState,e,t)},useTransition:function(){var e=mc(Xt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:iu(e),t]},useSyncExternalStore:us,useId:Cs,useHostTransitionStatus:Sc,useFormState:ps,useActionState:ps,useOptimistic:function(e,t){var l=_e();return ve!==null?ss(l,ve,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:dc,useCacheRefresh:Us},ga=null,ru=0;function En(e){var t=ru;return ru+=1,ga===null&&(ga=[]),Wr(ga,e,t)}function su(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Tn(e,t){throw t.$$typeof===H?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ys(e){var t=e._init;return t(e._payload)}function Gs(e){function t(x,b){if(e){var E=x.deletions;E===null?(x.deletions=[b],x.flags|=16):E.push(b)}}function l(x,b){if(!e)return null;for(;b!==null;)t(x,b),b=b.sibling;return null}function a(x){for(var b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function u(x,b){return x=qt(x,b),x.index=0,x.sibling=null,x}function n(x,b,E){return x.index=E,e?(E=x.alternate,E!==null?(E=E.index,E<b?(x.flags|=67108866,b):E):(x.flags|=67108866,b)):(x.flags|=1048576,b)}function c(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function r(x,b,E,_){return b===null||b.tag!==6?(b=Xi(E,x.mode,_),b.return=x,b):(b=u(b,E),b.return=x,b)}function y(x,b,E,_){var K=E.type;return K===U?z(x,b,E.props.children,_,E.key):b!==null&&(b.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===se&&Ys(K)===b.type)?(b=u(b,E.props),su(b,E),b.return=x,b):(b=un(E.type,E.key,E.props,null,x.mode,_),su(b,E),b.return=x,b)}function T(x,b,E,_){return b===null||b.tag!==4||b.stateNode.containerInfo!==E.containerInfo||b.stateNode.implementation!==E.implementation?(b=Qi(E,x.mode,_),b.return=x,b):(b=u(b,E.children||[]),b.return=x,b)}function z(x,b,E,_,K){return b===null||b.tag!==7?(b=Cl(E,x.mode,_,K),b.return=x,b):(b=u(b,E),b.return=x,b)}function C(x,b,E){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Xi(""+b,x.mode,E),b.return=x,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case O:return E=un(b.type,b.key,b.props,null,x.mode,E),su(E,b),E.return=x,E;case q:return b=Qi(b,x.mode,E),b.return=x,b;case se:var _=b._init;return b=_(b._payload),C(x,b,E)}if(Qe(b)||Xe(b))return b=Cl(b,x.mode,E,null),b.return=x,b;if(typeof b.then=="function")return C(x,En(b),E);if(b.$$typeof===k)return C(x,rn(x,b),E);Tn(x,b)}return null}function R(x,b,E,_){var K=b!==null?b.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return K!==null?null:r(x,b,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case O:return E.key===K?y(x,b,E,_):null;case q:return E.key===K?T(x,b,E,_):null;case se:return K=E._init,E=K(E._payload),R(x,b,E,_)}if(Qe(E)||Xe(E))return K!==null?null:z(x,b,E,_,null);if(typeof E.then=="function")return R(x,b,En(E),_);if(E.$$typeof===k)return R(x,b,rn(x,E),_);Tn(x,E)}return null}function N(x,b,E,_,K){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return x=x.get(E)||null,r(b,x,""+_,K);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case O:return x=x.get(_.key===null?E:_.key)||null,y(b,x,_,K);case q:return x=x.get(_.key===null?E:_.key)||null,T(b,x,_,K);case se:var ae=_._init;return _=ae(_._payload),N(x,b,E,_,K)}if(Qe(_)||Xe(_))return x=x.get(E)||null,z(b,x,_,K,null);if(typeof _.then=="function")return N(x,b,E,En(_),K);if(_.$$typeof===k)return N(x,b,E,rn(b,_),K);Tn(b,_)}return null}function I(x,b,E,_){for(var K=null,ae=null,J=b,F=b=0,we=null;J!==null&&F<E.length;F++){J.index>F?(we=J,J=null):we=J.sibling;var de=R(x,J,E[F],_);if(de===null){J===null&&(J=we);break}e&&J&&de.alternate===null&&t(x,J),b=n(de,b,F),ae===null?K=de:ae.sibling=de,ae=de,J=we}if(F===E.length)return l(x,J),he&&Hl(x,F),K;if(J===null){for(;F<E.length;F++)J=C(x,E[F],_),J!==null&&(b=n(J,b,F),ae===null?K=J:ae.sibling=J,ae=J);return he&&Hl(x,F),K}for(J=a(J);F<E.length;F++)we=N(J,x,F,E[F],_),we!==null&&(e&&we.alternate!==null&&J.delete(we.key===null?F:we.key),b=n(we,b,F),ae===null?K=we:ae.sibling=we,ae=we);return e&&J.forEach(function(Al){return t(x,Al)}),he&&Hl(x,F),K}function W(x,b,E,_){if(E==null)throw Error(f(151));for(var K=null,ae=null,J=b,F=b=0,we=null,de=E.next();J!==null&&!de.done;F++,de=E.next()){J.index>F?(we=J,J=null):we=J.sibling;var Al=R(x,J,de.value,_);if(Al===null){J===null&&(J=we);break}e&&J&&Al.alternate===null&&t(x,J),b=n(Al,b,F),ae===null?K=Al:ae.sibling=Al,ae=Al,J=we}if(de.done)return l(x,J),he&&Hl(x,F),K;if(J===null){for(;!de.done;F++,de=E.next())de=C(x,de.value,_),de!==null&&(b=n(de,b,F),ae===null?K=de:ae.sibling=de,ae=de);return he&&Hl(x,F),K}for(J=a(J);!de.done;F++,de=E.next())de=N(J,x,F,de.value,_),de!==null&&(e&&de.alternate!==null&&J.delete(de.key===null?F:de.key),b=n(de,b,F),ae===null?K=de:ae.sibling=de,ae=de);return e&&J.forEach(function(Hy){return t(x,Hy)}),he&&Hl(x,F),K}function be(x,b,E,_){if(typeof E=="object"&&E!==null&&E.type===U&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case O:e:{for(var K=E.key;b!==null;){if(b.key===K){if(K=E.type,K===U){if(b.tag===7){l(x,b.sibling),_=u(b,E.props.children),_.return=x,x=_;break e}}else if(b.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===se&&Ys(K)===b.type){l(x,b.sibling),_=u(b,E.props),su(_,E),_.return=x,x=_;break e}l(x,b);break}else t(x,b);b=b.sibling}E.type===U?(_=Cl(E.props.children,x.mode,_,E.key),_.return=x,x=_):(_=un(E.type,E.key,E.props,null,x.mode,_),su(_,E),_.return=x,x=_)}return c(x);case q:e:{for(K=E.key;b!==null;){if(b.key===K)if(b.tag===4&&b.stateNode.containerInfo===E.containerInfo&&b.stateNode.implementation===E.implementation){l(x,b.sibling),_=u(b,E.children||[]),_.return=x,x=_;break e}else{l(x,b);break}else t(x,b);b=b.sibling}_=Qi(E,x.mode,_),_.return=x,x=_}return c(x);case se:return K=E._init,E=K(E._payload),be(x,b,E,_)}if(Qe(E))return I(x,b,E,_);if(Xe(E)){if(K=Xe(E),typeof K!="function")throw Error(f(150));return E=K.call(E),W(x,b,E,_)}if(typeof E.then=="function")return be(x,b,En(E),_);if(E.$$typeof===k)return be(x,b,rn(x,E),_);Tn(x,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,b!==null&&b.tag===6?(l(x,b.sibling),_=u(b,E),_.return=x,x=_):(l(x,b),_=Xi(E,x.mode,_),_.return=x,x=_),c(x)):l(x,b)}return function(x,b,E,_){try{ru=0;var K=be(x,b,E,_);return ga=null,K}catch(J){if(J===eu||J===on)throw J;var ae=nt(29,J,null,x.mode);return ae.lanes=_,ae.return=x,ae}finally{}}}var ba=Gs(!0),Xs=Gs(!1),bt=B(null),Nt=null;function rl(e){var t=e.alternate;Y(Ue,Ue.current&1),Y(bt,e),Nt===null&&(t===null||ha.current!==null||t.memoizedState!==null)&&(Nt=e)}function Qs(e){if(e.tag===22){if(Y(Ue,Ue.current),Y(bt,e),Nt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Nt=e)}}else sl()}function sl(){Y(Ue,Ue.current),Y(bt,bt.current)}function Qt(e){Q(bt),Nt===e&&(Nt=null),Q(Ue)}var Ue=B(0);function An(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||df(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function Ec(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:M({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Tc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=rt(),u=il(a);u.payload=t,l!=null&&(u.callback=l),t=cl(e,u,a),t!==null&&(st(t,e,a),lu(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=rt(),u=il(a);u.tag=1,u.payload=t,l!=null&&(u.callback=l),t=cl(e,u,a),t!==null&&(st(t,e,a),lu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=rt(),a=il(l);a.tag=2,t!=null&&(a.callback=t),t=cl(e,a,l),t!==null&&(st(t,e,l),lu(t,e,l))}};function Zs(e,t,l,a,u,n,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,n,c):t.prototype&&t.prototype.isPureReactComponent?!Ka(l,a)||!Ka(u,n):!0}function Vs(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&&Tc.enqueueReplaceState(t,t.state,null)}function Xl(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=M({},l));for(var u in e)l[u]===void 0&&(l[u]=e[u])}return l}var Rn=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)};function Ks(e){Rn(e)}function Js(e){console.error(e)}function ks(e){Rn(e)}function Nn(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function $s(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ac(e,t,l){return l=il(l),l.tag=3,l.payload={element:null},l.callback=function(){Nn(e,t)},l}function Ws(e){return e=il(e),e.tag=3,e}function Fs(e,t,l,a){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var n=a.value;e.payload=function(){return u(n)},e.callback=function(){$s(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){$s(t,l,a),typeof u!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function Hm(e,t,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Fa(t,l,u,!0),l=bt.current,l!==null){switch(l.tag){case 13:return Nt===null?kc():l.alternate===null&&Me===0&&(Me=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===Ii?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Wc(e,a,u)),!1;case 22:return l.flags|=65536,a===Ii?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)),Wc(e,a,u)),!1}throw Error(f(435,l.tag))}return Wc(e,a,u),kc(),!1}if(he)return t=bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Ki&&(e=Error(f(422),{cause:a}),Wa(mt(e,l)))):(a!==Ki&&(t=Error(f(423),{cause:a}),Wa(mt(t,l))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=mt(a,l),u=Ac(e.stateNode,a,u),lc(e,u),Me!==4&&(Me=2)),!1;var n=Error(f(520),{cause:a});if(n=mt(n,l),gu===null?gu=[n]:gu.push(n),Me!==4&&(Me=2),t===null)return!0;a=mt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=u&-u,l.lanes|=e,e=Ac(l.stateNode,a,e),lc(l,e),!1;case 1:if(t=l.type,n=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(vl===null||!vl.has(n))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Ws(u),Fs(u,e,l,a),lc(l,u),!1}l=l.return}while(l!==null);return!1}var Ps=Error(f(461)),Be=!1;function Le(e,t,l,a){t.child=e===null?Xs(t,null,l,a):ba(t,e.child,l,a)}function Is(e,t,l,a,u){l=l.render;var n=t.ref;if("ref"in a){var c={};for(var r in a)r!=="ref"&&(c[r]=a[r])}else c=a;return Ll(t),a=cc(e,t,l,c,n,u),r=fc(),e!==null&&!Be?(rc(e,t,u),Zt(e,t,u)):(he&&r&&Zi(t),t.flags|=1,Le(e,t,a,u),t.child)}function eo(e,t,l,a,u){if(e===null){var n=l.type;return typeof n=="function"&&!Gi(n)&&n.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=n,to(e,t,n,a,u)):(e=un(l.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!_c(e,u)){var c=n.memoizedProps;if(l=l.compare,l=l!==null?l:Ka,l(c,a)&&e.ref===t.ref)return Zt(e,t,u)}return t.flags|=1,e=qt(n,a),e.ref=t.ref,e.return=t,t.child=e}function to(e,t,l,a,u){if(e!==null){var n=e.memoizedProps;if(Ka(n,a)&&e.ref===t.ref)if(Be=!1,t.pendingProps=a=n,_c(e,u))(e.flags&131072)!==0&&(Be=!0);else return t.lanes=e.lanes,Zt(e,t,u)}return Rc(e,t,l,a,u)}function lo(e,t,l){var a=t.pendingProps,u=a.children,n=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=n!==null?n.baseLanes|l:l,e!==null){for(u=t.child=e.child,n=0;u!==null;)n=n|u.lanes|u.childLanes,u=u.sibling;t.childLanes=n&~a}else t.childLanes=0,t.child=null;return ao(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sn(t,n!==null?n.cachePool:null),n!==null?ts(t,n):uc(),Qs(t);else return t.lanes=t.childLanes=536870912,ao(e,t,n!==null?n.baseLanes|l:l,l)}else n!==null?(sn(t,n.cachePool),ts(t,n),sl(),t.memoizedState=null):(e!==null&&sn(t,null),uc(),sl());return Le(e,t,u,l),t.child}function ao(e,t,l,a){var u=Pi();return u=u===null?null:{parent:Ce._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&sn(t,null),uc(),Qs(t),e!==null&&Fa(e,t,a,!0),null}function On(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(f(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Rc(e,t,l,a,u){return Ll(t),l=cc(e,t,l,a,void 0,u),a=fc(),e!==null&&!Be?(rc(e,t,u),Zt(e,t,u)):(he&&a&&Zi(t),t.flags|=1,Le(e,t,l,u),t.child)}function uo(e,t,l,a,u,n){return Ll(t),t.updateQueue=null,l=as(t,a,l,u),ls(e),a=fc(),e!==null&&!Be?(rc(e,t,n),Zt(e,t,n)):(he&&a&&Zi(t),t.flags|=1,Le(e,t,l,n),t.child)}function no(e,t,l,a,u){if(Ll(t),t.stateNode===null){var n=fa,c=l.contextType;typeof c=="object"&&c!==null&&(n=Ve(c)),n=new l(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Tc,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},ec(t),c=l.contextType,n.context=typeof c=="object"&&c!==null?Ve(c):fa,n.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Ec(t,l,c,a),n.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(c=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),c!==n.state&&Tc.enqueueReplaceState(n,n.state,null),uu(t,a,n,u),au(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){n=t.stateNode;var r=t.memoizedProps,y=Xl(l,r);n.props=y;var T=n.context,z=l.contextType;c=fa,typeof z=="object"&&z!==null&&(c=Ve(z));var C=l.getDerivedStateFromProps;z=typeof C=="function"||typeof n.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,z||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(r||T!==c)&&Vs(t,n,a,c),nl=!1;var R=t.memoizedState;n.state=R,uu(t,a,n,u),au(),T=t.memoizedState,r||R!==T||nl?(typeof C=="function"&&(Ec(t,l,C,a),T=t.memoizedState),(y=nl||Zs(t,l,y,a,R,T,c))?(z||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=T),n.props=a,n.state=T,n.context=c,a=y):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,tc(e,t),c=t.memoizedProps,z=Xl(l,c),n.props=z,C=t.pendingProps,R=n.context,T=l.contextType,y=fa,typeof T=="object"&&T!==null&&(y=Ve(T)),r=l.getDerivedStateFromProps,(T=typeof r=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c!==C||R!==y)&&Vs(t,n,a,y),nl=!1,R=t.memoizedState,n.state=R,uu(t,a,n,u),au();var N=t.memoizedState;c!==C||R!==N||nl||e!==null&&e.dependencies!==null&&fn(e.dependencies)?(typeof r=="function"&&(Ec(t,l,r,a),N=t.memoizedState),(z=nl||Zs(t,l,z,a,R,N,y)||e!==null&&e.dependencies!==null&&fn(e.dependencies))?(T||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,N,y),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,N,y)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=N),n.props=a,n.state=N,n.context=y,a=z):(typeof n.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return n=a,On(e,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,e!==null&&a?(t.child=ba(t,e.child,null,u),t.child=ba(t,null,l,u)):Le(e,t,l,u),t.memoizedState=n.state,e=t.child):e=Zt(e,t,u),e}function io(e,t,l,a){return $a(),t.flags|=256,Le(e,t,l,a),t.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(e){return{baseLanes:e,cachePool:Jr()}}function Mc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=pt),e}function co(e,t,l){var a=t.pendingProps,u=!1,n=(t.flags&128)!==0,c;if((c=n)||(c=e!==null&&e.memoizedState===null?!1:(Ue.current&2)!==0),c&&(u=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(he){if(u?rl(t):sl(),he){var r=Oe,y;if(y=r){e:{for(y=r,r=Rt;y.nodeType!==8;){if(!r){r=null;break e}if(y=Tt(y.nextSibling),y===null){r=null;break e}}r=y}r!==null?(t.memoizedState={dehydrated:r,treeContext:Ul!==null?{id:wt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},y=nt(18,null,null,0),y.stateNode=r,y.return=t,t.child=y,ke=t,Oe=null,y=!0):y=!1}y||ql(t)}if(r=t.memoizedState,r!==null&&(r=r.dehydrated,r!==null))return df(r)?t.lanes=32:t.lanes=536870912,null;Qt(t)}return r=a.children,a=a.fallback,u?(sl(),u=t.mode,r=Mn({mode:"hidden",children:r},u),a=Cl(a,u,l,null),r.return=t,a.return=t,r.sibling=a,t.child=r,u=t.child,u.memoizedState=Oc(l),u.childLanes=Mc(e,c,l),t.memoizedState=Nc,a):(rl(t),jc(t,r))}if(y=e.memoizedState,y!==null&&(r=y.dehydrated,r!==null)){if(n)t.flags&256?(rl(t),t.flags&=-257,t=zc(e,t,l)):t.memoizedState!==null?(sl(),t.child=e.child,t.flags|=128,t=null):(sl(),u=a.fallback,r=t.mode,a=Mn({mode:"visible",children:a.children},r),u=Cl(u,r,l,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,ba(t,e.child,null,l),a=t.child,a.memoizedState=Oc(l),a.childLanes=Mc(e,c,l),t.memoizedState=Nc,t=u);else if(rl(t),df(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var T=c.dgst;c=T,a=Error(f(419)),a.stack="",a.digest=c,Wa({value:a,source:null,stack:null}),t=zc(e,t,l)}else if(Be||Fa(e,t,l,!1),c=(l&e.childLanes)!==0,Be||c){if(c=xe,c!==null&&(a=l&-l,a=(a&42)!==0?1:di(a),a=(a&(c.suspendedLanes|l))!==0?0:a,a!==0&&a!==y.retryLane))throw y.retryLane=a,ca(e,a),st(c,e,a),Ps;r.data==="$?"||kc(),t=zc(e,t,l)}else r.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Oe=Tt(r.nextSibling),ke=t,he=!0,Bl=null,Rt=!1,e!==null&&(vt[gt++]=wt,vt[gt++]=Lt,vt[gt++]=Ul,wt=e.id,Lt=e.overflow,Ul=t),t=jc(t,a.children),t.flags|=4096);return t}return u?(sl(),u=a.fallback,r=t.mode,y=e.child,T=y.sibling,a=qt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,T!==null?u=qt(T,u):(u=Cl(u,r,l,null),u.flags|=2),u.return=t,a.return=t,a.sibling=u,t.child=a,a=u,u=t.child,r=e.child.memoizedState,r===null?r=Oc(l):(y=r.cachePool,y!==null?(T=Ce._currentValue,y=y.parent!==T?{parent:T,pool:T}:y):y=Jr(),r={baseLanes:r.baseLanes|l,cachePool:y}),u.memoizedState=r,u.childLanes=Mc(e,c,l),t.memoizedState=Nc,a):(rl(t),l=e.child,e=l.sibling,l=qt(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 jc(e,t){return t=Mn({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mn(e,t){return e=nt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function zc(e,t,l){return ba(t,e.child,null,l),e=jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ki(e.return,t,l)}function Dc(e,t,l,a,u){var n=e.memoizedState;n===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:u}:(n.isBackwards=t,n.rendering=null,n.renderingStartTime=0,n.last=a,n.tail=l,n.tailMode=u)}function ro(e,t,l){var a=t.pendingProps,u=a.revealOrder,n=a.tail;if(Le(e,t,a.children,l),a=Ue.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fo(e,l,t);else if(e.tag===19)fo(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}a&=1}switch(Y(Ue,a),u){case"forwards":for(l=t.child,u=null;l!==null;)e=l.alternate,e!==null&&An(e)===null&&(u=l),l=l.sibling;l=u,l===null?(u=t.child,t.child=null):(u=l.sibling,l.sibling=null),Dc(t,!1,u,l,n);break;case"backwards":for(l=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&An(e)===null){t.child=u;break}e=u.sibling,u.sibling=l,l=u,u=e}Dc(t,!0,l,null,n);break;case"together":Dc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),yl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Fa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,l=qt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=qt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function _c(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fn(e)))}function Bm(e,t,l){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),ul(t,Ce,e.memoizedState.cache),$a();break;case 27:case 5:ci(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:ul(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(rl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?co(e,t,l):(rl(t),e=Zt(e,t,l),e!==null?e.sibling:null);rl(t);break;case 19:var u=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Fa(e,t,l,!1),a=(l&t.childLanes)!==0),u){if(a)return ro(e,t,l);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Y(Ue,Ue.current),a)break;return null;case 22:case 23:return t.lanes=0,lo(e,t,l);case 24:ul(t,Ce,e.memoizedState.cache)}return Zt(e,t,l)}function so(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!_c(e,l)&&(t.flags&128)===0)return Be=!1,Bm(e,t,l);Be=(e.flags&131072)!==0}else Be=!1,he&&(t.flags&1048576)!==0&&Yr(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,u=a._init;if(a=u(a._payload),t.type=a,typeof a=="function")Gi(a)?(e=Xl(a,e),t.tag=1,t=no(null,t,a,e,l)):(t.tag=0,t=Rc(null,t,a,e,l));else{if(a!=null){if(u=a.$$typeof,u===ce){t.tag=11,t=Is(null,t,a,e,l);break e}else if(u===ue){t.tag=14,t=eo(null,t,a,e,l);break e}}throw t=Ol(a)||a,Error(f(306,t,""))}}return t;case 0:return Rc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,u=Xl(a,t.pendingProps),no(e,t,a,u,l);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(f(387));a=t.pendingProps;var n=t.memoizedState;u=n.element,tc(e,t),uu(t,a,null,l);var c=t.memoizedState;if(a=c.cache,ul(t,Ce,a),a!==n.cache&&$i(t,[Ce],l,!0),au(),a=c.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=io(e,t,a,l);break e}else if(a!==u){u=mt(Error(f(424)),t),Wa(u),t=io(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(Oe=Tt(e.firstChild),ke=t,he=!0,Bl=null,Rt=!0,l=Xs(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if($a(),a===u){t=Zt(e,t,l);break e}Le(e,t,a,l)}t=t.child}return t;case 26:return On(e,t),e===null?(l=yd(t.type,null,t.pendingProps,null))?t.memoizedState=l:he||(l=t.type,e=t.pendingProps,a=Xn(ee.current).createElement(l),a[Ze]=t,a[$e]=e,Ge(a,l,e),He(a),t.stateNode=a):t.memoizedState=yd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ci(t),e===null&&he&&(a=t.stateNode=dd(t.type,t.pendingProps,ee.current),ke=t,Rt=!0,u=Oe,pl(t.type)?(hf=u,Oe=Tt(a.firstChild)):Oe=u),Le(e,t,t.pendingProps.children,l),On(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&he&&((u=a=Oe)&&(a=sy(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,ke=t,Oe=Tt(a.firstChild),Rt=!1,u=!0):u=!1),u||ql(t)),ci(t),u=t.type,n=t.pendingProps,c=e!==null?e.memoizedProps:null,a=n.children,rf(u,n)?a=null:c!==null&&rf(u,c)&&(t.flags|=32),t.memoizedState!==null&&(u=cc(e,t,Mm,null,null,l),Nu._currentValue=u),On(e,t),Le(e,t,a,l),t.child;case 6:return e===null&&he&&((e=l=Oe)&&(l=oy(l,t.pendingProps,Rt),l!==null?(t.stateNode=l,ke=t,Oe=null,e=!0):e=!1),e||ql(t)),null;case 13:return co(e,t,l);case 4:return Te(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ba(t,null,a,l):Le(e,t,a,l),t.child;case 11:return Is(e,t,t.type,t.pendingProps,l);case 7:return Le(e,t,t.pendingProps,l),t.child;case 8:return Le(e,t,t.pendingProps.children,l),t.child;case 12:return Le(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ul(t,t.type,a.value),Le(e,t,a.children,l),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Ll(t),u=Ve(u),a=a(u),t.flags|=1,Le(e,t,a,l),t.child;case 14:return eo(e,t,t.type,t.pendingProps,l);case 15:return to(e,t,t.type,t.pendingProps,l);case 19:return ro(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=Mn(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=qt(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return lo(e,t,l);case 24:return Ll(t),a=Ve(Ce),e===null?(u=Pi(),u===null&&(u=xe,n=Wi(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=l),u=n),t.memoizedState={parent:a,cache:u},ec(t),ul(t,Ce,u)):((e.lanes&l)!==0&&(tc(e,t),uu(t,null,null,l),au()),u=e.memoizedState,n=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ul(t,Ce,a)):(a=n.cache,ul(t,Ce,a),a!==u.cache&&$i(t,[Ce],l,!0))),Le(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function Vt(e){e.flags|=4}function oo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sd(t)){if(t=bt.current,t!==null&&((re&4194048)===re?Nt!==null:(re&62914560)!==re&&(re&536870912)===0||t!==Nt))throw tu=Ii,kr;e.flags|=8192}}function jn(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Qf():536870912,e.lanes|=t,Ea|=t)}function ou(e,t){if(!he)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 Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function qm(e,t,l){var a=t.pendingProps;switch(Vi(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Re(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Gt(Ce),el(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ka(t)?Vt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Qr())),Re(t),null;case 26:return l=t.memoizedState,e===null?(Vt(t),l!==null?(Re(t),oo(t,l)):(Re(t),t.flags&=-16777217)):l?l!==e.memoizedState?(Vt(t),Re(t),oo(t,l)):(Re(t),t.flags&=-16777217):(e.memoizedProps!==a&&Vt(t),Re(t),t.flags&=-16777217),null;case 27:Lu(t),l=ee.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Re(t),null}e=$.current,ka(t)?Gr(t):(e=dd(u,a,l),t.stateNode=e,Vt(t))}return Re(t),null;case 5:if(Lu(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Re(t),null}if(e=$.current,ka(t))Gr(t);else{switch(u=Xn(ee.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?u.createElement(l,{is:a.is}):u.createElement(l)}}e[Ze]=t,e[$e]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(Ge(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Vt(t)}}return Re(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Vt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(f(166));if(e=ee.current,ka(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,u=ke,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[Ze]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||nd(e.nodeValue,l)),e||ql(t)}else e=Xn(e).createTextNode(a),e[Ze]=t,t.stateNode=e}return Re(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ka(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(f(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(f(317));u[Ze]=t}else $a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),u=!1}else u=Qr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Qt(t),t):(Qt(t),null)}if(Qt(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool);var n=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),jn(t,t.updateQueue),Re(t),null;case 4:return el(),e===null&&af(t.stateNode.containerInfo),Re(t),null;case 10:return Gt(t.type),Re(t),null;case 19:if(Q(Ue),u=t.memoizedState,u===null)return Re(t),null;if(a=(t.flags&128)!==0,n=u.rendering,n===null)if(a)ou(u,!1);else{if(Me!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=An(e),n!==null){for(t.flags|=128,ou(u,!1),e=n.updateQueue,t.updateQueue=e,jn(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Lr(l,e),l=l.sibling;return Y(Ue,Ue.current&1|2),t.child}e=e.sibling}u.tail!==null&&At()>_n&&(t.flags|=128,a=!0,ou(u,!1),t.lanes=4194304)}else{if(!a)if(e=An(n),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,jn(t,e),ou(u,!0),u.tail===null&&u.tailMode==="hidden"&&!n.alternate&&!he)return Re(t),null}else 2*At()-u.renderingStartTime>_n&&l!==536870912&&(t.flags|=128,a=!0,ou(u,!1),t.lanes=4194304);u.isBackwards?(n.sibling=t.child,t.child=n):(e=u.last,e!==null?e.sibling=n:t.child=n,u.last=n)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=At(),t.sibling=null,e=Ue.current,Y(Ue,a?e&1|2:e&1),t):(Re(t),null);case 22:case 23:return Qt(t),nc(),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&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),l=t.updateQueue,l!==null&&jn(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&&Q(Yl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Gt(Ce),Re(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function wm(e,t){switch(Vi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gt(Ce),el(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Lu(t),null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ue),null;case 4:return el(),null;case 10:return Gt(t.type),null;case 22:case 23:return Qt(t),nc(),e!==null&&Q(Yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gt(Ce),null;case 25:return null;default:return null}}function ho(e,t){switch(Vi(t),t.tag){case 3:Gt(Ce),el();break;case 26:case 27:case 5:Lu(t);break;case 4:el();break;case 13:Qt(t);break;case 19:Q(Ue);break;case 10:Gt(t.type);break;case 22:case 23:Qt(t),nc(),e!==null&&Q(Yl);break;case 24:Gt(Ce)}}function du(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&e)===e){a=void 0;var n=l.create,c=l.inst;a=n(),c.destroy=a}l=l.next}while(l!==u)}}catch(r){Se(t,t.return,r)}}function ol(e,t,l){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var n=u.next;a=n;do{if((a.tag&e)===e){var c=a.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,u=t;var y=l,T=r;try{T()}catch(z){Se(u,y,z)}}}a=a.next}while(a!==n)}}catch(z){Se(t,t.return,z)}}function mo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{es(t,l)}catch(a){Se(e,e.return,a)}}}function yo(e,t,l){l.props=Xl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Se(e,t,a)}}function hu(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(u){Se(e,t,u)}}function Ot(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){Se(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){Se(e,t,u)}else l.current=null}function vo(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(u){Se(e,e.return,u)}}function Cc(e,t,l){try{var a=e.stateNode;ny(a,e.type,l,t),a[$e]=t}catch(u){Se(e,e.return,u)}}function go(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pl(e.type)||e.tag===4}function Uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||go(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&&pl(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 Hc(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=Gn));else if(a!==4&&(a===27&&pl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Hc(e,t,l),e=e.sibling;e!==null;)Hc(e,t,l),e=e.sibling}function zn(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&&pl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(zn(e,t,l),e=e.sibling;e!==null;)zn(e,t,l),e=e.sibling}function bo(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Ge(t,a,l),t[Ze]=e,t[$e]=l}catch(n){Se(e,e.return,n)}}var Kt=!1,ze=!1,Bc=!1,po=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Lm(e,t){if(e=e.containerInfo,cf=kn,e=jr(e),Ui(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 u=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{l.nodeType,n.nodeType}catch{l=null;break e}var c=0,r=-1,y=-1,T=0,z=0,C=e,R=null;t:for(;;){for(var N;C!==l||u!==0&&C.nodeType!==3||(r=c+u),C!==n||a!==0&&C.nodeType!==3||(y=c+a),C.nodeType===3&&(c+=C.nodeValue.length),(N=C.firstChild)!==null;)R=C,C=N;for(;;){if(C===e)break t;if(R===l&&++T===u&&(r=c),R===n&&++z===a&&(y=c),(N=C.nextSibling)!==null)break;C=R,R=C.parentNode}C=N}l=r===-1||y===-1?null:{start:r,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(ff={focusedElem:e,selectionRange:l},kn=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){switch(t=qe,n=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&n!==null){e=void 0,l=t,u=n.memoizedProps,n=n.memoizedState,a=l.stateNode;try{var I=Xl(l.type,u,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(I,n),a.__reactInternalSnapshotBeforeUpdate=e}catch(W){Se(l,l.return,W)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)of(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":of(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(f(163))}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}}function So(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:dl(e,l),a&4&&du(5,l);break;case 1:if(dl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Se(l,l.return,c)}else{var u=Xl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Se(l,l.return,c)}}a&64&&mo(l),a&512&&hu(l,l.return);break;case 3:if(dl(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{es(e,t)}catch(c){Se(l,l.return,c)}}break;case 27:t===null&&a&4&&bo(l);case 26:case 5:dl(e,l),t===null&&a&4&&vo(l),a&512&&hu(l,l.return);break;case 12:dl(e,l);break;case 13:dl(e,l),a&4&&To(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=km.bind(null,l),dy(e,l))));break;case 22:if(a=l.memoizedState!==null||Kt,!a){t=t!==null&&t.memoizedState!==null||ze,u=Kt;var n=ze;Kt=a,(ze=t)&&!n?hl(e,l,(l.subtreeFlags&8772)!==0):dl(e,l),Kt=u,ze=n}break;case 30:break;default:dl(e,l)}}function xo(e){var t=e.alternate;t!==null&&(e.alternate=null,xo(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yi(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 Ae=null,Pe=!1;function Jt(e,t,l){for(l=l.child;l!==null;)Eo(e,t,l),l=l.sibling}function Eo(e,t,l){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(Ua,l)}catch{}switch(l.tag){case 26:ze||Ot(l,t),Jt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ze||Ot(l,t);var a=Ae,u=Pe;pl(l.type)&&(Ae=l.stateNode,Pe=!1),Jt(e,t,l),Eu(l.stateNode),Ae=a,Pe=u;break;case 5:ze||Ot(l,t);case 6:if(a=Ae,u=Pe,Ae=null,Jt(e,t,l),Ae=a,Pe=u,Ae!==null)if(Pe)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(l.stateNode)}catch(n){Se(l,t,n)}else try{Ae.removeChild(l.stateNode)}catch(n){Se(l,t,n)}break;case 18:Ae!==null&&(Pe?(e=Ae,sd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),zu(e)):sd(Ae,l.stateNode));break;case 4:a=Ae,u=Pe,Ae=l.stateNode.containerInfo,Pe=!0,Jt(e,t,l),Ae=a,Pe=u;break;case 0:case 11:case 14:case 15:ze||ol(2,l,t),ze||ol(4,l,t),Jt(e,t,l);break;case 1:ze||(Ot(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&yo(l,t,a)),Jt(e,t,l);break;case 21:Jt(e,t,l);break;case 22:ze=(a=ze)||l.memoizedState!==null,Jt(e,t,l),ze=a;break;default:Jt(e,t,l)}}function To(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zu(e)}catch(l){Se(t,t.return,l)}}function Ym(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new po),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new po),t;default:throw Error(f(435,e.tag))}}function qc(e,t){var l=Ym(e);t.forEach(function(a){var u=$m.bind(null,e,a);l.has(a)||(l.add(a),a.then(u,u))})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],n=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(pl(r.type)){Ae=r.stateNode,Pe=!1;break e}break;case 5:Ae=r.stateNode,Pe=!1;break e;case 3:case 4:Ae=r.stateNode.containerInfo,Pe=!0;break e}r=r.return}if(Ae===null)throw Error(f(160));Eo(n,c,u),Ae=null,Pe=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Ao(t,e),t=t.sibling}var Et=null;function Ao(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ct(e),a&4&&(ol(3,e,e.return),du(3,e),ol(5,e,e.return));break;case 1:it(t,e),ct(e),a&512&&(ze||l===null||Ot(l,l.return)),a&64&&Kt&&(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 u=Et;if(it(t,e),ct(e),a&512&&(ze||l===null||Ot(l,l.return)),a&4){var n=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,u=u.ownerDocument||u;t:switch(a){case"title":n=u.getElementsByTagName("title")[0],(!n||n[qa]||n[Ze]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=u.createElement(a),u.head.insertBefore(n,u.querySelector("head > title"))),Ge(n,a,l),n[Ze]=e,He(n),a=n;break e;case"link":var c=bd("link","href",u).get(a+(l.href||""));if(c){for(var r=0;r<c.length;r++)if(n=c[r],n.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&n.getAttribute("rel")===(l.rel==null?null:l.rel)&&n.getAttribute("title")===(l.title==null?null:l.title)&&n.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(r,1);break t}}n=u.createElement(a),Ge(n,a,l),u.head.appendChild(n);break;case"meta":if(c=bd("meta","content",u).get(a+(l.content||""))){for(r=0;r<c.length;r++)if(n=c[r],n.getAttribute("content")===(l.content==null?null:""+l.content)&&n.getAttribute("name")===(l.name==null?null:l.name)&&n.getAttribute("property")===(l.property==null?null:l.property)&&n.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&n.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(r,1);break t}}n=u.createElement(a),Ge(n,a,l),u.head.appendChild(n);break;default:throw Error(f(468,a))}n[Ze]=e,He(n),a=n}e.stateNode=a}else pd(u,e.type,e.stateNode);else e.stateNode=gd(u,a,e.memoizedProps);else n!==a?(n===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):n.count--,a===null?pd(u,e.type,e.stateNode):gd(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Cc(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),ct(e),a&512&&(ze||l===null||Ot(l,l.return)),l!==null&&a&4&&Cc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),ct(e),a&512&&(ze||l===null||Ot(l,l.return)),e.flags&32){u=e.stateNode;try{ea(u,"")}catch(N){Se(e,e.return,N)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,Cc(e,u,l!==null?l.memoizedProps:u)),a&1024&&(Bc=!0);break;case 6:if(it(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(f(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(N){Se(e,e.return,N)}}break;case 3:if(Vn=null,u=Et,Et=Qn(t.containerInfo),it(t,e),Et=u,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{zu(t.containerInfo)}catch(N){Se(e,e.return,N)}Bc&&(Bc=!1,Ro(e));break;case 4:a=Et,Et=Qn(e.stateNode.containerInfo),it(t,e),ct(e),Et=a;break;case 12:it(t,e),ct(e);break;case 13:it(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qc=At()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qc(e,a)));break;case 22:u=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,T=Kt,z=ze;if(Kt=T||u,ze=z||y,it(t,e),ze=z,Kt=T,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(l===null||y||Kt||ze||Ql(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(n=y.stateNode,u)c=n.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=y.stateNode;var C=y.memoizedProps.style,R=C!=null&&C.hasOwnProperty("display")?C.display:null;r.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(N){Se(y,y.return,N)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=u?"":y.memoizedProps}catch(N){Se(y,y.return,N)}}}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,qc(e,l))));break;case 19:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,qc(e,a)));break;case 30:break;case 21:break;default:it(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(go(a)){l=a;break}a=a.return}if(l==null)throw Error(f(160));switch(l.tag){case 27:var u=l.stateNode,n=Uc(e);zn(e,n,u);break;case 5:var c=l.stateNode;l.flags&32&&(ea(c,""),l.flags&=-33);var r=Uc(e);zn(e,r,c);break;case 3:case 4:var y=l.stateNode.containerInfo,T=Uc(e);Hc(e,T,y);break;default:throw Error(f(161))}}catch(z){Se(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ro(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ro(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function dl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)So(e,t.alternate,t),t=t.sibling}function Ql(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ol(4,t,t.return),Ql(t);break;case 1:Ot(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&yo(t,t.return,l),Ql(t);break;case 27:Eu(t.stateNode);case 26:case 5:Ot(t,t.return),Ql(t);break;case 22:t.memoizedState===null&&Ql(t);break;case 30:Ql(t);break;default:Ql(t)}e=e.sibling}}function hl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,n=t,c=n.flags;switch(n.tag){case 0:case 11:case 15:hl(u,n,l),du(4,n);break;case 1:if(hl(u,n,l),a=n,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(T){Se(a,a.return,T)}if(a=n,u=a.updateQueue,u!==null){var r=a.stateNode;try{var y=u.shared.hiddenCallbacks;if(y!==null)for(u.shared.hiddenCallbacks=null,u=0;u<y.length;u++)Ir(y[u],r)}catch(T){Se(a,a.return,T)}}l&&c&64&&mo(n),hu(n,n.return);break;case 27:bo(n);case 26:case 5:hl(u,n,l),l&&a===null&&c&4&&vo(n),hu(n,n.return);break;case 12:hl(u,n,l);break;case 13:hl(u,n,l),l&&c&4&&To(u,n);break;case 22:n.memoizedState===null&&hl(u,n,l),hu(n,n.return);break;case 30:break;default:hl(u,n,l)}t=t.sibling}}function wc(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&&Pa(l))}function Lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e))}function Mt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)No(e,t,l,a),t=t.sibling}function No(e,t,l,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Mt(e,t,l,a),u&2048&&du(9,t);break;case 1:Mt(e,t,l,a);break;case 3:Mt(e,t,l,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e)));break;case 12:if(u&2048){Mt(e,t,l,a),e=t.stateNode;try{var n=t.memoizedProps,c=n.id,r=n.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){Se(t,t.return,y)}}else Mt(e,t,l,a);break;case 13:Mt(e,t,l,a);break;case 23:break;case 22:n=t.stateNode,c=t.alternate,t.memoizedState!==null?n._visibility&2?Mt(e,t,l,a):mu(e,t):n._visibility&2?Mt(e,t,l,a):(n._visibility|=2,pa(e,t,l,a,(t.subtreeFlags&10256)!==0)),u&2048&&wc(c,t);break;case 24:Mt(e,t,l,a),u&2048&&Lc(t.alternate,t);break;default:Mt(e,t,l,a)}}function pa(e,t,l,a,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var n=e,c=t,r=l,y=a,T=c.flags;switch(c.tag){case 0:case 11:case 15:pa(n,c,r,y,u),du(8,c);break;case 23:break;case 22:var z=c.stateNode;c.memoizedState!==null?z._visibility&2?pa(n,c,r,y,u):mu(n,c):(z._visibility|=2,pa(n,c,r,y,u)),u&&T&2048&&wc(c.alternate,c);break;case 24:pa(n,c,r,y,u),u&&T&2048&&Lc(c.alternate,c);break;default:pa(n,c,r,y,u)}t=t.sibling}}function mu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,u=a.flags;switch(a.tag){case 22:mu(l,a),u&2048&&wc(a.alternate,a);break;case 24:mu(l,a),u&2048&&Lc(a.alternate,a);break;default:mu(l,a)}t=t.sibling}}var yu=8192;function Sa(e){if(e.subtreeFlags&yu)for(e=e.child;e!==null;)Oo(e),e=e.sibling}function Oo(e){switch(e.tag){case 26:Sa(e),e.flags&yu&&e.memoizedState!==null&&Ry(Et,e.memoizedState,e.memoizedProps);break;case 5:Sa(e);break;case 3:case 4:var t=Et;Et=Qn(e.stateNode.containerInfo),Sa(e),Et=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=yu,yu=16777216,Sa(e),yu=t):Sa(e));break;default:Sa(e)}}function Mo(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 vu(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];qe=a,zo(a,e)}Mo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jo(e),e=e.sibling}function jo(e){switch(e.tag){case 0:case 11:case 15:vu(e),e.flags&2048&&ol(9,e,e.return);break;case 3:vu(e);break;case 12:vu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Dn(e)):vu(e);break;default:vu(e)}}function Dn(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];qe=a,zo(a,e)}Mo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ol(8,t,t.return),Dn(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Dn(t));break;default:Dn(t)}e=e.sibling}}function zo(e,t){for(;qe!==null;){var l=qe;switch(l.tag){case 0:case 11:case 15:ol(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:Pa(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,qe=a;else e:for(l=e;qe!==null;){a=qe;var u=a.sibling,n=a.return;if(xo(a),a===l){qe=null;break e}if(u!==null){u.return=n,qe=u;break e}qe=n}}}var Gm={getCacheForType:function(e){var t=Ve(Ce),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},Xm=typeof WeakMap=="function"?WeakMap:Map,me=0,xe=null,ne=null,re=0,ye=0,ft=null,ml=!1,xa=!1,Yc=!1,kt=0,Me=0,yl=0,Zl=0,Gc=0,pt=0,Ea=0,gu=null,Ie=null,Xc=!1,Qc=0,_n=1/0,Cn=null,vl=null,Ye=0,gl=null,Ta=null,Aa=0,Zc=0,Vc=null,Do=null,bu=0,Kc=null;function rt(){if((me&2)!==0&&re!==0)return re&-re;if(D.T!==null){var e=oa;return e!==0?e:Ic()}return Kf()}function _o(){pt===0&&(pt=(re&536870912)===0||he?Xf():536870912);var e=bt.current;return e!==null&&(e.flags|=32),pt}function st(e,t,l){(e===xe&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Ra(e,0),bl(e,re,pt,!1)),Ba(e,l),((me&2)===0||e!==xe)&&(e===xe&&((me&2)===0&&(Zl|=l),Me===4&&bl(e,re,pt,!1)),jt(e))}function Co(e,t,l){if((me&6)!==0)throw Error(f(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Ha(e,t),u=a?Vm(e,t):$c(e,t,!0),n=a;do{if(u===0){xa&&!a&&bl(e,t,0,!1);break}else{if(l=e.current.alternate,n&&!Qm(l)){u=$c(e,t,!1),n=!1;continue}if(u===2){if(n=t,e.errorRecoveryDisabledLanes&n)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var r=e;u=gu;var y=r.current.memoizedState.isDehydrated;if(y&&(Ra(r,c).flags|=256),c=$c(r,c,!1),c!==2){if(Yc&&!y){r.errorRecoveryDisabledLanes|=n,Zl|=n,u=4;break e}n=Ie,Ie=u,n!==null&&(Ie===null?Ie=n:Ie.push.apply(Ie,n))}u=c}if(n=!1,u!==2)continue}}if(u===1){Ra(e,0),bl(e,t,0,!0);break}e:{switch(a=e,n=u,n){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:bl(a,t,pt,!ml);break e;case 2:Ie=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(u=Qc+300-At(),10<u)){if(bl(a,t,pt,!ml),Qu(a,0,!0)!==0)break e;a.timeoutHandle=fd(Uo.bind(null,a,l,Ie,Cn,Xc,t,pt,Zl,Ea,ml,n,2,-0,0),u);break e}Uo(a,l,Ie,Cn,Xc,t,pt,Zl,Ea,ml,n,0,-0,0)}}break}while(!0);jt(e)}function Uo(e,t,l,a,u,n,c,r,y,T,z,C,R,N){if(e.timeoutHandle=-1,C=t.subtreeFlags,(C&8192||(C&16785408)===16785408)&&(Ru={stylesheets:null,count:0,unsuspend:Ay},Oo(t),C=Ny(),C!==null)){e.cancelPendingCommit=C(Go.bind(null,e,t,n,l,a,u,c,r,y,z,1,R,N)),bl(e,n,c,!T);return}Go(e,t,n,l,a,u,c,r,y)}function Qm(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 u=l[a],n=u.getSnapshot;u=u.value;try{if(!ut(n(),u))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 bl(e,t,l,a){t&=~Gc,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var n=31-at(u),c=1<<n;a[n]=-1,u&=~c}l!==0&&Zf(e,l,t)}function Un(){return(me&6)===0?(pu(0),!1):!0}function Jc(){if(ne!==null){if(ye===0)var e=ne.return;else e=ne,Yt=wl=null,sc(e),ga=null,ru=0,e=ne;for(;e!==null;)ho(e.alternate,e),e=e.return;ne=null}}function Ra(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,cy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Jc(),xe=e,ne=l=qt(e.current,null),re=t,ye=0,ft=null,ml=!1,xa=Ha(e,t),Yc=!1,Ea=pt=Gc=Zl=yl=Me=0,Ie=gu=null,Xc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-at(a),n=1<<u;t|=e[u],a&=~n}return kt=t,tn(),l}function Ho(e,t){le=null,D.H=xn,t===eu||t===on?(t=Fr(),ye=3):t===kr?(t=Fr(),ye=4):ye=t===Ps?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ft=t,ne===null&&(Me=1,Nn(e,mt(t,e.current)))}function Bo(){var e=D.H;return D.H=xn,e===null?xn:e}function qo(){var e=D.A;return D.A=Gm,e}function kc(){Me=4,ml||(re&4194048)!==re&&bt.current!==null||(xa=!0),(yl&134217727)===0&&(Zl&134217727)===0||xe===null||bl(xe,re,pt,!1)}function $c(e,t,l){var a=me;me|=2;var u=Bo(),n=qo();(xe!==e||re!==t)&&(Cn=null,Ra(e,t)),t=!1;var c=Me;e:do try{if(ye!==0&&ne!==null){var r=ne,y=ft;switch(ye){case 8:Jc(),c=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var T=ye;if(ye=0,ft=null,Na(e,r,y,T),l&&xa){c=0;break e}break;default:T=ye,ye=0,ft=null,Na(e,r,y,T)}}Zm(),c=Me;break}catch(z){Ho(e,z)}while(!0);return t&&e.shellSuspendCounter++,Yt=wl=null,me=a,D.H=u,D.A=n,ne===null&&(xe=null,re=0,tn()),c}function Zm(){for(;ne!==null;)wo(ne)}function Vm(e,t){var l=me;me|=2;var a=Bo(),u=qo();xe!==e||re!==t?(Cn=null,_n=At()+500,Ra(e,t)):xa=Ha(e,t);e:do try{if(ye!==0&&ne!==null){t=ne;var n=ft;t:switch(ye){case 1:ye=0,ft=null,Na(e,t,n,1);break;case 2:case 9:if($r(n)){ye=0,ft=null,Lo(t);break}t=function(){ye!==2&&ye!==9||xe!==e||(ye=7),jt(e)},n.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:$r(n)?(ye=0,ft=null,Lo(t)):(ye=0,ft=null,Na(e,t,n,7));break;case 5:var c=null;switch(ne.tag){case 26:c=ne.memoizedState;case 5:case 27:var r=ne;if(!c||Sd(c)){ye=0,ft=null;var y=r.sibling;if(y!==null)ne=y;else{var T=r.return;T!==null?(ne=T,Hn(T)):ne=null}break t}}ye=0,ft=null,Na(e,t,n,5);break;case 6:ye=0,ft=null,Na(e,t,n,6);break;case 8:Jc(),Me=6;break e;default:throw Error(f(462))}}Km();break}catch(z){Ho(e,z)}while(!0);return Yt=wl=null,D.H=a,D.A=u,me=l,ne!==null?0:(xe=null,re=0,tn(),Me)}function Km(){for(;ne!==null&&!mh();)wo(ne)}function wo(e){var t=so(e.alternate,e,kt);e.memoizedProps=e.pendingProps,t===null?Hn(e):ne=t}function Lo(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=uo(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=uo(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:sc(t);default:ho(l,t),t=ne=Lr(t,kt),t=so(l,t,kt)}e.memoizedProps=e.pendingProps,t===null?Hn(e):ne=t}function Na(e,t,l,a){Yt=wl=null,sc(t),ga=null,ru=0;var u=t.return;try{if(Hm(e,u,t,l,re)){Me=1,Nn(e,mt(l,e.current)),ne=null;return}}catch(n){if(u!==null)throw ne=u,n;Me=1,Nn(e,mt(l,e.current)),ne=null;return}t.flags&32768?(he||a===1?e=!0:xa||(re&536870912)!==0?e=!1:(ml=e=!0,(a===2||a===9||a===3||a===6)&&(a=bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Yo(t,e)):Hn(t)}function Hn(e){var t=e;do{if((t.flags&32768)!==0){Yo(t,ml);return}e=t.return;var l=qm(t.alternate,t,kt);if(l!==null){ne=l;return}if(t=t.sibling,t!==null){ne=t;return}ne=t=e}while(t!==null);Me===0&&(Me=5)}function Yo(e,t){do{var l=wm(e.alternate,e);if(l!==null){l.flags&=32767,ne=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ne=e;return}ne=e=l}while(e!==null);Me=6,ne=null}function Go(e,t,l,a,u,n,c,r,y){e.cancelPendingCommit=null;do Bn();while(Ye!==0);if((me&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(n=t.lanes|t.childLanes,n|=Li,Ah(e,l,n,c,r,y),e===xe&&(ne=xe=null,re=0),Ta=t,gl=e,Aa=l,Zc=n,Vc=u,Do=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wm(Yu,function(){return Ko(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,u=X.p,X.p=2,c=me,me|=4;try{Lm(e,t,l)}finally{me=c,X.p=u,D.T=a}}Ye=1,Xo(),Qo(),Zo()}}function Xo(){if(Ye===1){Ye=0;var e=gl,t=Ta,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=X.p;X.p=2;var u=me;me|=4;try{Ao(t,e);var n=ff,c=jr(e.containerInfo),r=n.focusedElem,y=n.selectionRange;if(c!==r&&r&&r.ownerDocument&&Mr(r.ownerDocument.documentElement,r)){if(y!==null&&Ui(r)){var T=y.start,z=y.end;if(z===void 0&&(z=T),"selectionStart"in r)r.selectionStart=T,r.selectionEnd=Math.min(z,r.value.length);else{var C=r.ownerDocument||document,R=C&&C.defaultView||window;if(R.getSelection){var N=R.getSelection(),I=r.textContent.length,W=Math.min(y.start,I),be=y.end===void 0?W:Math.min(y.end,I);!N.extend&&W>be&&(c=be,be=W,W=c);var x=Or(r,W),b=Or(r,be);if(x&&b&&(N.rangeCount!==1||N.anchorNode!==x.node||N.anchorOffset!==x.offset||N.focusNode!==b.node||N.focusOffset!==b.offset)){var E=C.createRange();E.setStart(x.node,x.offset),N.removeAllRanges(),W>be?(N.addRange(E),N.extend(b.node,b.offset)):(E.setEnd(b.node,b.offset),N.addRange(E))}}}}for(C=[],N=r;N=N.parentNode;)N.nodeType===1&&C.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<C.length;r++){var _=C[r];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}kn=!!cf,ff=cf=null}finally{me=u,X.p=a,D.T=l}}e.current=t,Ye=2}}function Qo(){if(Ye===2){Ye=0;var e=gl,t=Ta,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=X.p;X.p=2;var u=me;me|=4;try{So(e,t.alternate,t)}finally{me=u,X.p=a,D.T=l}}Ye=3}}function Zo(){if(Ye===4||Ye===3){Ye=0,yh();var e=gl,t=Ta,l=Aa,a=Do;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ye=5:(Ye=0,Ta=gl=null,Vo(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(vl=null),hi(l),t=t.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,u=X.p,X.p=2,D.T=null;try{for(var n=e.onRecoverableError,c=0;c<a.length;c++){var r=a[c];n(r.value,{componentStack:r.stack})}}finally{D.T=t,X.p=u}}(Aa&3)!==0&&Bn(),jt(e),u=e.pendingLanes,(l&4194090)!==0&&(u&42)!==0?e===Kc?bu++:(bu=0,Kc=e):bu=0,pu(0)}}function Vo(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pa(t)))}function Bn(e){return Xo(),Qo(),Zo(),Ko()}function Ko(){if(Ye!==5)return!1;var e=gl,t=Zc;Zc=0;var l=hi(Aa),a=D.T,u=X.p;try{X.p=32>l?32:l,D.T=null,l=Vc,Vc=null;var n=gl,c=Aa;if(Ye=0,Ta=gl=null,Aa=0,(me&6)!==0)throw Error(f(331));var r=me;if(me|=4,jo(n.current),No(n,n.current,c,l),me=r,pu(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(Ua,n)}catch{}return!0}finally{X.p=u,D.T=a,Vo(e,t)}}function Jo(e,t,l){t=mt(l,t),t=Ac(e.stateNode,t,2),e=cl(e,t,2),e!==null&&(Ba(e,2),jt(e))}function Se(e,t,l){if(e.tag===3)Jo(e,e,l);else for(;t!==null;){if(t.tag===3){Jo(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vl===null||!vl.has(a))){e=mt(l,e),l=Ws(2),a=cl(t,l,2),a!==null&&(Fs(l,a,t,e),Ba(a,2),jt(a));break}}t=t.return}}function Wc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Xm;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(l)||(Yc=!0,u.add(l),e=Jm.bind(null,e,t,l),t.then(e,e))}function Jm(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,xe===e&&(re&l)===l&&(Me===4||Me===3&&(re&62914560)===re&&300>At()-Qc?(me&2)===0&&Ra(e,0):Gc|=l,Ea===re&&(Ea=0)),jt(e)}function ko(e,t){t===0&&(t=Qf()),e=ca(e,t),e!==null&&(Ba(e,t),jt(e))}function km(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),ko(e,l)}function $m(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(t),ko(e,l)}function Wm(e,t){return ri(e,t)}var qn=null,Oa=null,Fc=!1,wn=!1,Pc=!1,Vl=0;function jt(e){e!==Oa&&e.next===null&&(Oa===null?qn=Oa=e:Oa=Oa.next=e),wn=!0,Fc||(Fc=!0,Pm())}function pu(e,t){if(!Pc&&wn){Pc=!0;do for(var l=!1,a=qn;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var n=0;else{var c=a.suspendedLanes,r=a.pingedLanes;n=(1<<31-at(42|e)+1)-1,n&=u&~(c&~r),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(l=!0,Po(a,n))}else n=re,n=Qu(a,a===xe?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||Ha(a,n)||(l=!0,Po(a,n));a=a.next}while(l);Pc=!1}}function Fm(){$o()}function $o(){wn=Fc=!1;var e=0;Vl!==0&&(iy()&&(e=Vl),Vl=0);for(var t=At(),l=null,a=qn;a!==null;){var u=a.next,n=Wo(a,t);n===0?(a.next=null,l===null?qn=u:l.next=u,u===null&&(Oa=l)):(l=a,(e!==0||(n&3)!==0)&&(wn=!0)),a=u}pu(e)}function Wo(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var c=31-at(n),r=1<<c,y=u[c];y===-1?((r&l)===0||(r&a)!==0)&&(u[c]=Th(r,t)):y<=t&&(e.expiredLanes|=r),n&=~r}if(t=xe,l=re,l=Qu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&si(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ha(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&si(a),hi(l)){case 2:case 8:l=Yf;break;case 32:l=Yu;break;case 268435456:l=Gf;break;default:l=Yu}return a=Fo.bind(null,e),l=ri(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&si(a),e.callbackPriority=2,e.callbackNode=null,2}function Fo(e,t){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Bn()&&e.callbackNode!==l)return null;var a=re;return a=Qu(e,e===xe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Co(e,a,t),Wo(e,At()),e.callbackNode!=null&&e.callbackNode===l?Fo.bind(null,e):null)}function Po(e,t){if(Bn())return null;Co(e,t,!0)}function Pm(){fy(function(){(me&6)!==0?ri(Lf,Fm):$o()})}function Ic(){return Vl===0&&(Vl=Xf()),Vl}function Io(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ku(""+e)}function ed(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 Im(e,t,l,a,u){if(t==="submit"&&l&&l.stateNode===u){var n=Io((u[$e]||null).action),c=a.submitter;c&&(t=(t=c[$e]||null)?Io(t.formAction):c.getAttribute("formAction"),t!==null&&(n=t,c=null));var r=new Pu("action","action",null,a,u);e.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Vl!==0){var y=c?ed(u,c):new FormData(u);pc(l,{pending:!0,data:y,method:u.method,action:n},null,y)}}else typeof n=="function"&&(r.preventDefault(),y=c?ed(u,c):new FormData(u),pc(l,{pending:!0,data:y,method:u.method,action:n},n,y))},currentTarget:u}]})}}for(var ef=0;ef<wi.length;ef++){var tf=wi[ef],ey=tf.toLowerCase(),ty=tf[0].toUpperCase()+tf.slice(1);xt(ey,"on"+ty)}xt(_r,"onAnimationEnd"),xt(Cr,"onAnimationIteration"),xt(Ur,"onAnimationStart"),xt("dblclick","onDoubleClick"),xt("focusin","onFocus"),xt("focusout","onBlur"),xt(bm,"onTransitionRun"),xt(pm,"onTransitionStart"),xt(Sm,"onTransitionCancel"),xt(Hr,"onTransitionEnd"),Fl("onMouseEnter",["mouseout","mouseover"]),Fl("onMouseLeave",["mouseout","mouseover"]),Fl("onPointerEnter",["pointerout","pointerover"]),Fl("onPointerLeave",["pointerout","pointerover"]),jl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),jl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),jl("onBeforeInput",["compositionend","keypress","textInput","paste"]),jl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),jl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),jl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),ly=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Su));function td(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],u=a.event;a=a.listeners;e:{var n=void 0;if(t)for(var c=a.length-1;0<=c;c--){var r=a[c],y=r.instance,T=r.currentTarget;if(r=r.listener,y!==n&&u.isPropagationStopped())break e;n=r,u.currentTarget=T;try{n(u)}catch(z){Rn(z)}u.currentTarget=null,n=y}else for(c=0;c<a.length;c++){if(r=a[c],y=r.instance,T=r.currentTarget,r=r.listener,y!==n&&u.isPropagationStopped())break e;n=r,u.currentTarget=T;try{n(u)}catch(z){Rn(z)}u.currentTarget=null,n=y}}}}function ie(e,t){var l=t[mi];l===void 0&&(l=t[mi]=new Set);var a=e+"__bubble";l.has(a)||(ld(t,e,2,!1),l.add(a))}function lf(e,t,l){var a=0;t&&(a|=4),ld(l,e,a,t)}var Ln="_reactListening"+Math.random().toString(36).slice(2);function af(e){if(!e[Ln]){e[Ln]=!0,kf.forEach(function(l){l!=="selectionchange"&&(ly.has(l)||lf(l,!1,e),lf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ln]||(t[Ln]=!0,lf("selectionchange",!1,t))}}function ld(e,t,l,a){switch(Nd(t)){case 2:var u=jy;break;case 8:u=zy;break;default:u=bf}l=u.bind(null,t,l,e),u=void 0,!Ri||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,l,{capture:!0,passive:u}):e.addEventListener(t,l,!0):u!==void 0?e.addEventListener(t,l,{passive:u}):e.addEventListener(t,l,!1)}function uf(e,t,l,a,u){var n=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 r=a.stateNode.containerInfo;if(r===u)break;if(c===4)for(c=a.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===u)return;c=c.return}for(;r!==null;){if(c=kl(r),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=n=c;continue e}r=r.parentNode}}a=a.return}fr(function(){var T=n,z=Ti(l),C=[];e:{var R=Br.get(e);if(R!==void 0){var N=Pu,I=e;switch(e){case"keypress":if(Wu(l)===0)break e;case"keydown":case"keyup":N=Wh;break;case"focusin":I="focus",N=ji;break;case"focusout":I="blur",N=ji;break;case"beforeblur":case"afterblur":N=ji;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":N=or;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=wh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Ih;break;case _r:case Cr:case Ur:N=Gh;break;case Hr:N=tm;break;case"scroll":case"scrollend":N=Bh;break;case"wheel":N=am;break;case"copy":case"cut":case"paste":N=Qh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=hr;break;case"toggle":case"beforetoggle":N=nm}var W=(t&4)!==0,be=!W&&(e==="scroll"||e==="scrollend"),x=W?R!==null?R+"Capture":null:R;W=[];for(var b=T,E;b!==null;){var _=b;if(E=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||E===null||x===null||(_=La(b,x),_!=null&&W.push(xu(b,_,E))),be)break;b=b.return}0<W.length&&(R=new N(R,I,null,l,z),C.push({event:R,listeners:W}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",R&&l!==Ei&&(I=l.relatedTarget||l.fromElement)&&(kl(I)||I[Jl]))break e;if((N||R)&&(R=z.window===z?z:(R=z.ownerDocument)?R.defaultView||R.parentWindow:window,N?(I=l.relatedTarget||l.toElement,N=T,I=I?kl(I):null,I!==null&&(be=v(I),W=I.tag,I!==be||W!==5&&W!==27&&W!==6)&&(I=null)):(N=null,I=T),N!==I)){if(W=or,_="onMouseLeave",x="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(W=hr,_="onPointerLeave",x="onPointerEnter",b="pointer"),be=N==null?R:wa(N),E=I==null?R:wa(I),R=new W(_,b+"leave",N,l,z),R.target=be,R.relatedTarget=E,_=null,kl(z)===T&&(W=new W(x,b+"enter",I,l,z),W.target=E,W.relatedTarget=be,_=W),be=_,N&&I)t:{for(W=N,x=I,b=0,E=W;E;E=Ma(E))b++;for(E=0,_=x;_;_=Ma(_))E++;for(;0<b-E;)W=Ma(W),b--;for(;0<E-b;)x=Ma(x),E--;for(;b--;){if(W===x||x!==null&&W===x.alternate)break t;W=Ma(W),x=Ma(x)}W=null}else W=null;N!==null&&ad(C,R,N,W,!1),I!==null&&be!==null&&ad(C,be,I,W,!0)}}e:{if(R=T?wa(T):window,N=R.nodeName&&R.nodeName.toLowerCase(),N==="select"||N==="input"&&R.type==="file")var K=xr;else if(pr(R))if(Er)K=ym;else{K=hm;var ae=dm}else N=R.nodeName,!N||N.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?T&&xi(T.elementType)&&(K=xr):K=mm;if(K&&(K=K(e,T))){Sr(C,K,l,z);break e}ae&&ae(e,R,T),e==="focusout"&&T&&R.type==="number"&&T.memoizedProps.value!=null&&Si(R,"number",R.value)}switch(ae=T?wa(T):window,e){case"focusin":(pr(ae)||ae.contentEditable==="true")&&(ua=ae,Hi=T,Ja=null);break;case"focusout":Ja=Hi=ua=null;break;case"mousedown":Bi=!0;break;case"contextmenu":case"mouseup":case"dragend":Bi=!1,zr(C,l,z);break;case"selectionchange":if(gm)break;case"keydown":case"keyup":zr(C,l,z)}var J;if(Di)e:{switch(e){case"compositionstart":var F="onCompositionStart";break e;case"compositionend":F="onCompositionEnd";break e;case"compositionupdate":F="onCompositionUpdate";break e}F=void 0}else aa?gr(e,l)&&(F="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(F="onCompositionStart");F&&(mr&&l.locale!=="ko"&&(aa||F!=="onCompositionStart"?F==="onCompositionEnd"&&aa&&(J=rr()):(al=z,Ni="value"in al?al.value:al.textContent,aa=!0)),ae=Yn(T,F),0<ae.length&&(F=new dr(F,e,null,l,z),C.push({event:F,listeners:ae}),J?F.data=J:(J=br(l),J!==null&&(F.data=J)))),(J=cm?fm(e,l):rm(e,l))&&(F=Yn(T,"onBeforeInput"),0<F.length&&(ae=new dr("onBeforeInput","beforeinput",null,l,z),C.push({event:ae,listeners:F}),ae.data=J)),Im(C,e,T,l,z)}td(C,t)})}function xu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Yn(e,t){for(var l=t+"Capture",a=[];e!==null;){var u=e,n=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||n===null||(u=La(e,l),u!=null&&a.unshift(xu(e,u,n)),u=La(e,t),u!=null&&a.push(xu(e,u,n))),e.tag===3)return a;e=e.return}return[]}function Ma(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ad(e,t,l,a,u){for(var n=t._reactName,c=[];l!==null&&l!==a;){var r=l,y=r.alternate,T=r.stateNode;if(r=r.tag,y!==null&&y===a)break;r!==5&&r!==26&&r!==27||T===null||(y=T,u?(T=La(l,n),T!=null&&c.unshift(xu(l,T,y))):u||(T=La(l,n),T!=null&&c.push(xu(l,T,y)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var ay=/\r\n?/g,uy=/\u0000|\uFFFD/g;function ud(e){return(typeof e=="string"?e:""+e).replace(ay,`
`).replace(uy,"")}function nd(e,t){return t=ud(t),ud(e)===t}function Gn(){}function ge(e,t,l,a,u,n){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ea(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ea(e,""+a);break;case"className":Vu(e,"class",a);break;case"tabIndex":Vu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Vu(e,l,a);break;case"style":ir(e,a,n);break;case"data":if(t!=="object"){Vu(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=ku(""+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 n=="function"&&(l==="formAction"?(t!=="input"&&ge(e,t,"name",u.name,u,null),ge(e,t,"formEncType",u.formEncType,u,null),ge(e,t,"formMethod",u.formMethod,u,null),ge(e,t,"formTarget",u.formTarget,u,null)):(ge(e,t,"encType",u.encType,u,null),ge(e,t,"method",u.method,u,null),ge(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ku(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Gn);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(f(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=ku(""+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":ie("beforetoggle",e),ie("toggle",e),Zu(e,"popover",a);break;case"xlinkActuate":Ht(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ht(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ht(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ht(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ht(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ht(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Zu(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=Uh.get(l)||l,Zu(e,l,a))}}function nf(e,t,l,a,u,n){switch(l){case"style":ir(e,a,n);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ea(e,a):(typeof a=="number"||typeof a=="bigint")&&ea(e,""+a);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$f.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),t=l.slice(2,u?l.length-7:void 0),n=e[$e]||null,n=n!=null?n[l]:null,typeof n=="function"&&e.removeEventListener(t,n,u),typeof a=="function")){typeof n!="function"&&n!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,u);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Zu(e,l,a)}}}function Ge(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ie("error",e),ie("load",e);var a=!1,u=!1,n;for(n in l)if(l.hasOwnProperty(n)){var c=l[n];if(c!=null)switch(n){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ge(e,t,n,c,l,null)}}u&&ge(e,t,"srcSet",l.srcSet,l,null),a&&ge(e,t,"src",l.src,l,null);return;case"input":ie("invalid",e);var r=n=c=u=null,y=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var z=l[a];if(z!=null)switch(a){case"name":u=z;break;case"type":c=z;break;case"checked":y=z;break;case"defaultChecked":T=z;break;case"value":n=z;break;case"defaultValue":r=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(f(137,t));break;default:ge(e,t,a,z,l,null)}}lr(e,n,r,y,T,c,u,!1),Ku(e);return;case"select":ie("invalid",e),a=c=n=null;for(u in l)if(l.hasOwnProperty(u)&&(r=l[u],r!=null))switch(u){case"value":n=r;break;case"defaultValue":c=r;break;case"multiple":a=r;default:ge(e,t,u,r,l,null)}t=n,l=c,e.multiple=!!a,t!=null?Il(e,!!a,t,!1):l!=null&&Il(e,!!a,l,!0);return;case"textarea":ie("invalid",e),n=u=a=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":a=r;break;case"defaultValue":u=r;break;case"children":n=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:ge(e,t,c,r,l,null)}ur(e,a,u,n),Ku(e);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ge(e,t,y,a,l,null)}return;case"dialog":ie("beforetoggle",e),ie("toggle",e),ie("cancel",e),ie("close",e);break;case"iframe":case"object":ie("load",e);break;case"video":case"audio":for(a=0;a<Su.length;a++)ie(Su[a],e);break;case"image":ie("error",e),ie("load",e);break;case"details":ie("toggle",e);break;case"embed":case"source":case"link":ie("error",e),ie("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(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ge(e,t,T,a,l,null)}return;default:if(xi(t)){for(z in l)l.hasOwnProperty(z)&&(a=l[z],a!==void 0&&nf(e,t,z,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&ge(e,t,r,a,l,null))}function ny(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 u=null,n=null,c=null,r=null,y=null,T=null,z=null;for(N in l){var C=l[N];if(l.hasOwnProperty(N)&&C!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":y=C;default:a.hasOwnProperty(N)||ge(e,t,N,null,a,C)}}for(var R in a){var N=a[R];if(C=l[R],a.hasOwnProperty(R)&&(N!=null||C!=null))switch(R){case"type":n=N;break;case"name":u=N;break;case"checked":T=N;break;case"defaultChecked":z=N;break;case"value":c=N;break;case"defaultValue":r=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(f(137,t));break;default:N!==C&&ge(e,t,R,N,a,C)}}pi(e,c,r,y,T,z,n,u);return;case"select":N=c=r=R=null;for(n in l)if(y=l[n],l.hasOwnProperty(n)&&y!=null)switch(n){case"value":break;case"multiple":N=y;default:a.hasOwnProperty(n)||ge(e,t,n,null,a,y)}for(u in a)if(n=a[u],y=l[u],a.hasOwnProperty(u)&&(n!=null||y!=null))switch(u){case"value":R=n;break;case"defaultValue":r=n;break;case"multiple":c=n;default:n!==y&&ge(e,t,u,n,a,y)}t=r,l=c,a=N,R!=null?Il(e,!!l,R,!1):!!a!=!!l&&(t!=null?Il(e,!!l,t,!0):Il(e,!!l,l?[]:"",!1));return;case"textarea":N=R=null;for(r in l)if(u=l[r],l.hasOwnProperty(r)&&u!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ge(e,t,r,null,a,u)}for(c in a)if(u=a[c],n=l[c],a.hasOwnProperty(c)&&(u!=null||n!=null))switch(c){case"value":R=u;break;case"defaultValue":N=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(f(91));break;default:u!==n&&ge(e,t,c,u,a,n)}ar(e,R,N);return;case"option":for(var I in l)if(R=l[I],l.hasOwnProperty(I)&&R!=null&&!a.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:ge(e,t,I,null,a,R)}for(y in a)if(R=a[y],N=l[y],a.hasOwnProperty(y)&&R!==N&&(R!=null||N!=null))switch(y){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:ge(e,t,y,R,a,N)}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 W in l)R=l[W],l.hasOwnProperty(W)&&R!=null&&!a.hasOwnProperty(W)&&ge(e,t,W,null,a,R);for(T in a)if(R=a[T],N=l[T],a.hasOwnProperty(T)&&R!==N&&(R!=null||N!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(f(137,t));break;default:ge(e,t,T,R,a,N)}return;default:if(xi(t)){for(var be in l)R=l[be],l.hasOwnProperty(be)&&R!==void 0&&!a.hasOwnProperty(be)&&nf(e,t,be,void 0,a,R);for(z in a)R=a[z],N=l[z],!a.hasOwnProperty(z)||R===N||R===void 0&&N===void 0||nf(e,t,z,R,a,N);return}}for(var x in l)R=l[x],l.hasOwnProperty(x)&&R!=null&&!a.hasOwnProperty(x)&&ge(e,t,x,null,a,R);for(C in a)R=a[C],N=l[C],!a.hasOwnProperty(C)||R===N||R==null&&N==null||ge(e,t,C,R,a,N)}var cf=null,ff=null;function Xn(e){return e.nodeType===9?e:e.ownerDocument}function id(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 cd(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 rf(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 sf=null;function iy(){var e=window.event;return e&&e.type==="popstate"?e===sf?!1:(sf=e,!0):(sf=null,!1)}var fd=typeof setTimeout=="function"?setTimeout:void 0,cy=typeof clearTimeout=="function"?clearTimeout:void 0,rd=typeof Promise=="function"?Promise:void 0,fy=typeof queueMicrotask=="function"?queueMicrotask:typeof rd<"u"?function(e){return rd.resolve(null).then(e).catch(ry)}:fd;function ry(e){setTimeout(function(){throw e})}function pl(e){return e==="head"}function sd(e,t){var l=t,a=0,u=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(0<a&&8>a){l=a;var c=e.ownerDocument;if(l&1&&Eu(c.documentElement),l&2&&Eu(c.body),l&4)for(l=c.head,Eu(l),c=l.firstChild;c;){var r=c.nextSibling,y=c.nodeName;c[qa]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=r}}if(u===0){e.removeChild(n),zu(t);return}u--}else l==="$"||l==="$?"||l==="$!"?u++:a=l.charCodeAt(0)-48;else a=0;l=n}while(l);zu(t)}function of(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":of(l),yi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function sy(e,t,l,a){for(;e.nodeType===1;){var u=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var n=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=Tt(e.nextSibling),e===null)break}return null}function oy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Tt(e.nextSibling),e===null))return null;return e}function df(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function dy(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Tt(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var hf=null;function od(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function dd(e,t,l){switch(t=Xn(l),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function Eu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yi(e)}var St=new Map,hd=new Set;function Qn(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $t=X.d;X.d={f:hy,r:my,D:yy,C:vy,L:gy,m:by,X:Sy,S:py,M:xy};function hy(){var e=$t.f(),t=Un();return e||t}function my(e){var t=$l(e);t!==null&&t.tag===5&&t.type==="form"?_s(t):$t.r(e)}var ja=typeof document>"u"?null:document;function md(e,t,l){var a=ja;if(a&&typeof t=="string"&&t){var u=ht(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),hd.has(u)||(hd.add(u),e={rel:e,crossOrigin:l,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),Ge(t,"link",e),He(t),a.head.appendChild(t)))}}function yy(e){$t.D(e),md("dns-prefetch",e,null)}function vy(e,t){$t.C(e,t),md("preconnect",e,t)}function gy(e,t,l){$t.L(e,t,l);var a=ja;if(a&&e&&t){var u='link[rel="preload"][as="'+ht(t)+'"]';t==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+ht(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+ht(l.imageSizes)+'"]')):u+='[href="'+ht(e)+'"]';var n=u;switch(t){case"style":n=za(e);break;case"script":n=Da(e)}St.has(n)||(e=M({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),St.set(n,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(Tu(n))||t==="script"&&a.querySelector(Au(n))||(t=a.createElement("link"),Ge(t,"link",e),He(t),a.head.appendChild(t)))}}function by(e,t){$t.m(e,t);var l=ja;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+ht(a)+'"][href="'+ht(e)+'"]',n=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Da(e)}if(!St.has(n)&&(e=M({rel:"modulepreload",href:e},t),St.set(n,e),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Au(n)))return}a=l.createElement("link"),Ge(a,"link",e),He(a),l.head.appendChild(a)}}}function py(e,t,l){$t.S(e,t,l);var a=ja;if(a&&e){var u=Wl(a).hoistableStyles,n=za(e);t=t||"default";var c=u.get(n);if(!c){var r={loading:0,preload:null};if(c=a.querySelector(Tu(n)))r.loading=5;else{e=M({rel:"stylesheet",href:e,"data-precedence":t},l),(l=St.get(n))&&mf(e,l);var y=c=a.createElement("link");He(y),Ge(y,"link",e),y._p=new Promise(function(T,z){y.onload=T,y.onerror=z}),y.addEventListener("load",function(){r.loading|=1}),y.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Zn(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:r},u.set(n,c)}}}function Sy(e,t){$t.X(e,t);var l=ja;if(l&&e){var a=Wl(l).hoistableScripts,u=Da(e),n=a.get(u);n||(n=l.querySelector(Au(u)),n||(e=M({src:e,async:!0},t),(t=St.get(u))&&yf(e,t),n=l.createElement("script"),He(n),Ge(n,"link",e),l.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function xy(e,t){$t.M(e,t);var l=ja;if(l&&e){var a=Wl(l).hoistableScripts,u=Da(e),n=a.get(u);n||(n=l.querySelector(Au(u)),n||(e=M({src:e,async:!0,type:"module"},t),(t=St.get(u))&&yf(e,t),n=l.createElement("script"),He(n),Ge(n,"link",e),l.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function yd(e,t,l,a){var u=(u=ee.current)?Qn(u):null;if(!u)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=za(l.href),l=Wl(u).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=za(l.href);var n=Wl(u).hoistableStyles,c=n.get(e);if(c||(u=u.ownerDocument||u,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,c),(n=u.querySelector(Tu(e)))&&!n._p&&(c.instance=n,c.state.loading=5),St.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},St.set(e,l),n||Ey(u,e,l,c.state))),t&&a===null)throw Error(f(528,""));return c}if(t&&a!==null)throw Error(f(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Da(l),l=Wl(u).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(f(444,e))}}function za(e){return'href="'+ht(e)+'"'}function Tu(e){return'link[rel="stylesheet"]['+e+"]"}function vd(e){return M({},e,{"data-precedence":e.precedence,precedence:null})}function Ey(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}),Ge(t,"link",l),He(t),e.head.appendChild(t))}function Da(e){return'[src="'+ht(e)+'"]'}function Au(e){return"script[async]"+e}function gd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+ht(l.href)+'"]');if(a)return t.instance=a,He(a),a;var u=M({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),He(a),Ge(a,"style",u),Zn(a,l.precedence,e),t.instance=a;case"stylesheet":u=za(l.href);var n=e.querySelector(Tu(u));if(n)return t.state.loading|=4,t.instance=n,He(n),n;a=vd(l),(u=St.get(u))&&mf(a,u),n=(e.ownerDocument||e).createElement("link"),He(n);var c=n;return c._p=new Promise(function(r,y){c.onload=r,c.onerror=y}),Ge(n,"link",a),t.state.loading|=4,Zn(n,l.precedence,e),t.instance=n;case"script":return n=Da(l.src),(u=e.querySelector(Au(n)))?(t.instance=u,He(u),u):(a=l,(u=St.get(n))&&(a=M({},l),yf(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),He(u),Ge(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Zn(a,l.precedence,e));return t.instance}function Zn(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,n=u,c=0;c<a.length;c++){var r=a[c];if(r.dataset.precedence===t)n=r;else if(n!==u)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vn=null;function bd(e,t,l){if(Vn===null){var a=new Map,u=Vn=new Map;u.set(l,a)}else u=Vn,a=u.get(l),a||(a=new Map,u.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),u=0;u<l.length;u++){var n=l[u];if(!(n[qa]||n[Ze]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var c=n.getAttribute(t)||"";c=e+c;var r=a.get(c);r?r.push(n):a.set(c,[n])}}return a}function pd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ty(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 Sd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Ru=null;function Ay(){}function Ry(e,t,l){if(Ru===null)throw Error(f(475));var a=Ru;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=za(l.href),n=e.querySelector(Tu(u));if(n){e=n._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Kn.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=n,He(n);return}n=e.ownerDocument||e,l=vd(l),(u=St.get(u))&&mf(l,u),n=n.createElement("link"),He(n);var c=n;c._p=new Promise(function(r,y){c.onload=r,c.onerror=y}),Ge(n,"link",l),t.instance=n}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Kn.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Ny(){if(Ru===null)throw Error(f(475));var e=Ru;return e.stylesheets&&e.count===0&&vf(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&vf(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function Kn(){if(this.count--,this.count===0){if(this.stylesheets)vf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Jn=null;function vf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Jn=new Map,t.forEach(Oy,e),Jn=null,Kn.call(e))}function Oy(e,t){if(!(t.state.loading&4)){var l=Jn.get(e);if(l)var a=l.get(null);else{l=new Map,Jn.set(e,l);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<u.length;n++){var c=u[n];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}u=t.instance,c=u.getAttribute("data-precedence"),n=l.get(c)||a,n===a&&l.set(null,u),l.set(c,u),this.count++,a=Kn.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),n?n.parentNode.insertBefore(u,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Nu={$$typeof:k,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function My(e,t,l,a,u,n,c,r){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=oi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.hiddenUpdates=oi(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=n,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function xd(e,t,l,a,u,n,c,r,y,T,z,C){return e=new My(e,t,l,c,r,y,T,C),t=1,n===!0&&(t|=24),n=nt(3,null,null,t),e.current=n,n.stateNode=e,t=Wi(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:a,isDehydrated:l,cache:t},ec(n),e}function Ed(e){return e?(e=fa,e):fa}function Td(e,t,l,a,u,n){u=Ed(u),a.context===null?a.context=u:a.pendingContext=u,a=il(t),a.payload={element:l},n=n===void 0?null:n,n!==null&&(a.callback=n),l=cl(e,a,t),l!==null&&(st(l,e,t),lu(l,e,t))}function Ad(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function gf(e,t){Ad(e,t),(e=e.alternate)&&Ad(e,t)}function Rd(e){if(e.tag===13){var t=ca(e,67108864);t!==null&&st(t,e,67108864),gf(e,67108864)}}var kn=!0;function jy(e,t,l,a){var u=D.T;D.T=null;var n=X.p;try{X.p=2,bf(e,t,l,a)}finally{X.p=n,D.T=u}}function zy(e,t,l,a){var u=D.T;D.T=null;var n=X.p;try{X.p=8,bf(e,t,l,a)}finally{X.p=n,D.T=u}}function bf(e,t,l,a){if(kn){var u=pf(a);if(u===null)uf(e,t,a,$n,l),Od(e,a);else if(_y(u,e,t,l,a))a.stopPropagation();else if(Od(e,a),t&4&&-1<Dy.indexOf(e)){for(;u!==null;){var n=$l(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var c=Ml(n.pendingLanes);if(c!==0){var r=n;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var y=1<<31-at(c);r.entanglements[1]|=y,c&=~y}jt(n),(me&6)===0&&(_n=At()+500,pu(0))}}break;case 13:r=ca(n,2),r!==null&&st(r,n,2),Un(),gf(n,2)}if(n=pf(a),n===null&&uf(e,t,a,$n,l),n===u)break;u=n}u!==null&&a.stopPropagation()}else uf(e,t,a,null,l)}}function pf(e){return e=Ti(e),Sf(e)}var $n=null;function Sf(e){if($n=null,e=kl(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(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 $n=e,null}function Nd(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(vh()){case Lf:return 2;case Yf:return 8;case Yu:case gh:return 32;case Gf:return 268435456;default:return 32}default:return 32}}var xf=!1,Sl=null,xl=null,El=null,Ou=new Map,Mu=new Map,Tl=[],Dy="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 Od(e,t){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":xl=null;break;case"mouseover":case"mouseout":El=null;break;case"pointerover":case"pointerout":Ou.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mu.delete(t.pointerId)}}function ju(e,t,l,a,u,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:n,targetContainers:[u]},t!==null&&(t=$l(t),t!==null&&Rd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function _y(e,t,l,a,u){switch(t){case"focusin":return Sl=ju(Sl,e,t,l,a,u),!0;case"dragenter":return xl=ju(xl,e,t,l,a,u),!0;case"mouseover":return El=ju(El,e,t,l,a,u),!0;case"pointerover":var n=u.pointerId;return Ou.set(n,ju(Ou.get(n)||null,e,t,l,a,u)),!0;case"gotpointercapture":return n=u.pointerId,Mu.set(n,ju(Mu.get(n)||null,e,t,l,a,u)),!0}return!1}function Md(e){var t=kl(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,Rh(e.priority,function(){if(l.tag===13){var a=rt();a=di(a);var u=ca(l,a);u!==null&&st(u,l,a),gf(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=pf(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ei=a,l.target.dispatchEvent(a),Ei=null}else return t=$l(l),t!==null&&Rd(t),e.blockedOn=l,!1;t.shift()}return!0}function jd(e,t,l){Wn(e)&&l.delete(t)}function Cy(){xf=!1,Sl!==null&&Wn(Sl)&&(Sl=null),xl!==null&&Wn(xl)&&(xl=null),El!==null&&Wn(El)&&(El=null),Ou.forEach(jd),Mu.forEach(jd)}function Fn(e,t){e.blockedOn===t&&(e.blockedOn=null,xf||(xf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Cy)))}var Pn=null;function zd(e){Pn!==e&&(Pn=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Pn===e&&(Pn=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(Sf(a||l)===null)continue;break}var n=$l(l);n!==null&&(e.splice(t,3),t-=3,pc(n,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function zu(e){function t(y){return Fn(y,e)}Sl!==null&&Fn(Sl,e),xl!==null&&Fn(xl,e),El!==null&&Fn(El,e),Ou.forEach(t),Mu.forEach(t);for(var l=0;l<Tl.length;l++){var a=Tl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Tl.length&&(l=Tl[0],l.blockedOn===null);)Md(l),l.blockedOn===null&&Tl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var u=l[a],n=l[a+1],c=u[$e]||null;if(typeof n=="function")c||zd(l);else if(c){var r=null;if(n&&n.hasAttribute("formAction")){if(u=n,c=n[$e]||null)r=c.formAction;else if(Sf(u)!==null)continue}else r=c.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),zd(l)}}}function Ef(e){this._internalRoot=e}In.prototype.render=Ef.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var l=t.current,a=rt();Td(l,a,e,t,null,null)},In.prototype.unmount=Ef.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Td(e.current,2,null,e,null,null),Un(),t[Jl]=null}};function In(e){this._internalRoot=e}In.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Tl.length&&t!==0&&t<Tl[l].priority;l++);Tl.splice(l,0,e),l===0&&Md(e)}};var Dd=o.version;if(Dd!=="19.1.0")throw Error(f(527,Dd,"19.1.0"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=S(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var Uy={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{Ua=ei.inject(Uy),lt=ei}catch{}}return _u.createRoot=function(e,t){if(!d(e))throw Error(f(299));var l=!1,a="",u=Ks,n=Js,c=ks,r=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(r=t.unstable_transitionCallbacks)),t=xd(e,1,!1,null,null,l,a,u,n,c,r,null),e[Jl]=t.current,af(e),new Ef(t)},_u.hydrateRoot=function(e,t,l){if(!d(e))throw Error(f(299));var a=!1,u="",n=Ks,c=Js,r=ks,y=null,T=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(y=l.unstable_transitionCallbacks),l.formState!==void 0&&(T=l.formState)),t=xd(e,1,!0,t,l??null,a,u,n,c,r,y,T),t.context=Ed(null),l=t.current,a=rt(),a=di(a),u=il(a),u.callback=null,cl(l,u,a),l=a,t.current.lanes=l,Ba(t,l),jt(t),e[Jl]=t.current,af(e),new In(t)},_u.version="19.1.0",_u}var Gd;function Vy(){if(Gd)return Rf.exports;Gd=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(o){console.error(o)}}return i(),Rf.exports=Zy(),Rf.exports}var Ky=Vy();const Jy=$d(Ky);var Cu={},Xd;function ky(){if(Xd)return Cu;Xd=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.parse=p,Cu.serialize=m;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,o=/^[\u0021-\u003A\u003C-\u007E]*$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,f=/^[\u0020-\u003A\u003D-\u007E]*$/,d=Object.prototype.toString,v=(()=>{const O=function(){};return O.prototype=Object.create(null),O})();function p(O,q){const U=new v,G=O.length;if(G<2)return U;const V=(q==null?void 0:q.decode)||M;let w=0;do{const Z=O.indexOf("=",w);if(Z===-1)break;const k=O.indexOf(";",w),ce=k===-1?G:k;if(Z>ce){w=O.lastIndexOf(";",Z-1)+1;continue}const L=j(O,w,Z),fe=S(O,Z,L),ue=O.slice(L,fe);if(U[ue]===void 0){let se=j(O,Z+1,ce),Ee=S(O,ce,se);const Je=V(O.slice(se,Ee));U[ue]=Je}w=ce+1}while(w<G);return U}function j(O,q,U){do{const G=O.charCodeAt(q);if(G!==32&&G!==9)return q}while(++q<U);return U}function S(O,q,U){for(;q>U;){const G=O.charCodeAt(--q);if(G!==32&&G!==9)return q+1}return U}function m(O,q,U){const G=(U==null?void 0:U.encode)||encodeURIComponent;if(!i.test(O))throw new TypeError(`argument name is invalid: ${O}`);const V=G(q);if(!o.test(V))throw new TypeError(`argument val is invalid: ${q}`);let w=O+"="+V;if(!U)return w;if(U.maxAge!==void 0){if(!Number.isInteger(U.maxAge))throw new TypeError(`option maxAge is invalid: ${U.maxAge}`);w+="; Max-Age="+U.maxAge}if(U.domain){if(!s.test(U.domain))throw new TypeError(`option domain is invalid: ${U.domain}`);w+="; Domain="+U.domain}if(U.path){if(!f.test(U.path))throw new TypeError(`option path is invalid: ${U.path}`);w+="; Path="+U.path}if(U.expires){if(!H(U.expires)||!Number.isFinite(U.expires.valueOf()))throw new TypeError(`option expires is invalid: ${U.expires}`);w+="; Expires="+U.expires.toUTCString()}if(U.httpOnly&&(w+="; HttpOnly"),U.secure&&(w+="; Secure"),U.partitioned&&(w+="; Partitioned"),U.priority)switch(typeof U.priority=="string"?U.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${U.priority}`)}if(U.sameSite)switch(typeof U.sameSite=="string"?U.sameSite.toLowerCase():U.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${U.sameSite}`)}return w}function M(O){if(O.indexOf("%")===-1)return O;try{return decodeURIComponent(O)}catch{return O}}function H(O){return d.call(O)==="[object Date]"}return Cu}ky();var Qd="popstate";function $y(i={}){function o(f,d){let{pathname:v,search:p,hash:j}=f.location;return Df("",{pathname:v,search:p,hash:j},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function s(f,d){return typeof d=="string"?d:Hu(d)}return Fy(o,s,null,i)}function Ne(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Ct(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Wy(){return Math.random().toString(36).substring(2,10)}function Zd(i,o){return{usr:i.state,key:i.key,idx:o}}function Df(i,o,s=null,f){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?_a(o):o,state:s,key:o&&o.key||f||Wy()}}function Hu({pathname:i="/",search:o="",hash:s=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function _a(i){let o={};if(i){let s=i.indexOf("#");s>=0&&(o.hash=i.substring(s),i=i.substring(0,s));let f=i.indexOf("?");f>=0&&(o.search=i.substring(f),i=i.substring(0,f)),i&&(o.pathname=i)}return o}function Fy(i,o,s,f={}){let{window:d=document.defaultView,v5Compat:v=!1}=f,p=d.history,j="POP",S=null,m=M();m==null&&(m=0,p.replaceState({...p.state,idx:m},""));function M(){return(p.state||{idx:null}).idx}function H(){j="POP";let V=M(),w=V==null?null:V-m;m=V,S&&S({action:j,location:G.location,delta:w})}function O(V,w){j="PUSH";let Z=Df(G.location,V,w);m=M()+1;let k=Zd(Z,m),ce=G.createHref(Z);try{p.pushState(k,"",ce)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;d.location.assign(ce)}v&&S&&S({action:j,location:G.location,delta:1})}function q(V,w){j="REPLACE";let Z=Df(G.location,V,w);m=M();let k=Zd(Z,m),ce=G.createHref(Z);p.replaceState(k,"",ce),v&&S&&S({action:j,location:G.location,delta:0})}function U(V){return Py(V)}let G={get action(){return j},get location(){return i(d,p)},listen(V){if(S)throw new Error("A history only accepts one active listener");return d.addEventListener(Qd,H),S=V,()=>{d.removeEventListener(Qd,H),S=null}},createHref(V){return o(d,V)},createURL:U,encodeLocation(V){let w=U(V);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:O,replace:q,go(V){return p.go(V)}};return G}function Py(i,o=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Ne(s,"No window.location.(origin|href) available to create URL");let f=typeof i=="string"?i:Hu(i);return f=f.replace(/ $/,"%20"),!o&&f.startsWith("//")&&(f=s+f),new URL(f,s)}function Wd(i,o,s="/"){return Iy(i,o,s,!1)}function Iy(i,o,s,f){let d=typeof o=="string"?_a(o):o,v=Pt(d.pathname||"/",s);if(v==null)return null;let p=Fd(i);e0(p);let j=null;for(let S=0;j==null&&S<p.length;++S){let m=o0(v);j=r0(p[S],m,f)}return j}function Fd(i,o=[],s=[],f=""){let d=(v,p,j)=>{let S={relativePath:j===void 0?v.path||"":j,caseSensitive:v.caseSensitive===!0,childrenIndex:p,route:v};S.relativePath.startsWith("/")&&(Ne(S.relativePath.startsWith(f),`Absolute route path "${S.relativePath}" nested under path "${f}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(f.length));let m=Wt([f,S.relativePath]),M=s.concat(S);v.children&&v.children.length>0&&(Ne(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Fd(v.children,o,M,m)),!(v.path==null&&!v.index)&&o.push({path:m,score:c0(m,v.index),routesMeta:M})};return i.forEach((v,p)=>{var j;if(v.path===""||!((j=v.path)!=null&&j.includes("?")))d(v,p);else for(let S of Pd(v.path))d(v,p,S)}),o}function Pd(i){let o=i.split("/");if(o.length===0)return[];let[s,...f]=o,d=s.endsWith("?"),v=s.replace(/\?$/,"");if(f.length===0)return d?[v,""]:[v];let p=Pd(f.join("/")),j=[];return j.push(...p.map(S=>S===""?v:[v,S].join("/"))),d&&j.push(...p),j.map(S=>i.startsWith("/")&&S===""?"/":S)}function e0(i){i.sort((o,s)=>o.score!==s.score?s.score-o.score:f0(o.routesMeta.map(f=>f.childrenIndex),s.routesMeta.map(f=>f.childrenIndex)))}var t0=/^:[\w-]+$/,l0=3,a0=2,u0=1,n0=10,i0=-2,Vd=i=>i==="*";function c0(i,o){let s=i.split("/"),f=s.length;return s.some(Vd)&&(f+=i0),o&&(f+=a0),s.filter(d=>!Vd(d)).reduce((d,v)=>d+(t0.test(v)?l0:v===""?u0:n0),f)}function f0(i,o){return i.length===o.length&&i.slice(0,-1).every((f,d)=>f===o[d])?i[i.length-1]-o[o.length-1]:0}function r0(i,o,s=!1){let{routesMeta:f}=i,d={},v="/",p=[];for(let j=0;j<f.length;++j){let S=f[j],m=j===f.length-1,M=v==="/"?o:o.slice(v.length)||"/",H=ui({path:S.relativePath,caseSensitive:S.caseSensitive,end:m},M),O=S.route;if(!H&&m&&s&&!f[f.length-1].route.index&&(H=ui({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},M)),!H)return null;Object.assign(d,H.params),p.push({params:d,pathname:Wt([v,H.pathname]),pathnameBase:y0(Wt([v,H.pathnameBase])),route:O}),H.pathnameBase!=="/"&&(v=Wt([v,H.pathnameBase]))}return p}function ui(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,f]=s0(i.path,i.caseSensitive,i.end),d=o.match(s);if(!d)return null;let v=d[0],p=v.replace(/(.)\/+$/,"$1"),j=d.slice(1);return{params:f.reduce((m,{paramName:M,isOptional:H},O)=>{if(M==="*"){let U=j[O]||"";p=v.slice(0,v.length-U.length).replace(/(.)\/+$/,"$1")}const q=j[O];return H&&!q?m[M]=void 0:m[M]=(q||"").replace(/%2F/g,"/"),m},{}),pathname:v,pathnameBase:p,pattern:i}}function s0(i,o=!1,s=!0){Ct(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 f=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,j,S)=>(f.push({paramName:j,isOptional:S!=null}),S?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(f.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,o?void 0:"i"),f]}function o0(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Ct(!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 (${o}).`),i}}function Pt(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let s=o.endsWith("/")?o.length-1:o.length,f=i.charAt(s);return f&&f!=="/"?null:i.slice(s)||"/"}function d0(i,o="/"){let{pathname:s,search:f="",hash:d=""}=typeof i=="string"?_a(i):i;return{pathname:s?s.startsWith("/")?s:h0(s,o):o,search:v0(f),hash:g0(d)}}function h0(i,o){let s=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?s.length>1&&s.pop():d!=="."&&s.push(d)}),s.length>1?s.join("/"):"/"}function jf(i,o,s,f){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(f)}].  Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function m0(i){return i.filter((o,s)=>s===0||o.route.path&&o.route.path.length>0)}function Id(i){let o=m0(i);return o.map((s,f)=>f===o.length-1?s.pathname:s.pathnameBase)}function eh(i,o,s,f=!1){let d;typeof i=="string"?d=_a(i):(d={...i},Ne(!d.pathname||!d.pathname.includes("?"),jf("?","pathname","search",d)),Ne(!d.pathname||!d.pathname.includes("#"),jf("#","pathname","hash",d)),Ne(!d.search||!d.search.includes("#"),jf("#","search","hash",d)));let v=i===""||d.pathname==="",p=v?"/":d.pathname,j;if(p==null)j=s;else{let H=o.length-1;if(!f&&p.startsWith("..")){let O=p.split("/");for(;O[0]==="..";)O.shift(),H-=1;d.pathname=O.join("/")}j=H>=0?o[H]:"/"}let S=d0(d,j),m=p&&p!=="/"&&p.endsWith("/"),M=(v||p===".")&&s.endsWith("/");return!S.pathname.endsWith("/")&&(m||M)&&(S.pathname+="/"),S}var Wt=i=>i.join("/").replace(/\/\/+/g,"/"),y0=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),v0=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,g0=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function b0(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var th=["POST","PUT","PATCH","DELETE"];new Set(th);var p0=["GET",...th];new Set(p0);var Ca=A.createContext(null);Ca.displayName="DataRouter";var ni=A.createContext(null);ni.displayName="DataRouterState";var lh=A.createContext({isTransitioning:!1});lh.displayName="ViewTransition";var S0=A.createContext(new Map);S0.displayName="Fetchers";var x0=A.createContext(null);x0.displayName="Await";var Ut=A.createContext(null);Ut.displayName="Navigation";var Bu=A.createContext(null);Bu.displayName="Location";var It=A.createContext({outlet:null,matches:[],isDataRoute:!1});It.displayName="Route";var Uf=A.createContext(null);Uf.displayName="RouteError";function E0(i,{relative:o}={}){Ne(qu(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:f}=A.useContext(Ut),{hash:d,pathname:v,search:p}=wu(i,{relative:o}),j=v;return s!=="/"&&(j=v==="/"?s:Wt([s,v])),f.createHref({pathname:j,search:p,hash:d})}function qu(){return A.useContext(Bu)!=null}function Kl(){return Ne(qu(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Bu).location}var ah="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function uh(i){A.useContext(Ut).static||A.useLayoutEffect(i)}function T0(){let{isDataRoute:i}=A.useContext(It);return i?B0():A0()}function A0(){Ne(qu(),"useNavigate() may be used only in the context of a <Router> component.");let i=A.useContext(Ca),{basename:o,navigator:s}=A.useContext(Ut),{matches:f}=A.useContext(It),{pathname:d}=Kl(),v=JSON.stringify(Id(f)),p=A.useRef(!1);return uh(()=>{p.current=!0}),A.useCallback((S,m={})=>{if(Ct(p.current,ah),!p.current)return;if(typeof S=="number"){s.go(S);return}let M=eh(S,JSON.parse(v),d,m.relative==="path");i==null&&o!=="/"&&(M.pathname=M.pathname==="/"?o:Wt([o,M.pathname])),(m.replace?s.replace:s.push)(M,m.state,m)},[o,s,v,d,i])}A.createContext(null);function wu(i,{relative:o}={}){let{matches:s}=A.useContext(It),{pathname:f}=Kl(),d=JSON.stringify(Id(s));return A.useMemo(()=>eh(i,JSON.parse(d),f,o==="path"),[i,d,f,o])}function R0(i,o){return nh(i,o)}function nh(i,o,s,f){var w;Ne(qu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=A.useContext(Ut),{matches:v}=A.useContext(It),p=v[v.length-1],j=p?p.params:{},S=p?p.pathname:"/",m=p?p.pathnameBase:"/",M=p&&p.route;{let Z=M&&M.path||"";ih(S,!M||Z.endsWith("*")||Z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${S}" (under <Route path="${Z}">) 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="${Z}"> to <Route path="${Z==="/"?"*":`${Z}/*`}">.`)}let H=Kl(),O;if(o){let Z=typeof o=="string"?_a(o):o;Ne(m==="/"||((w=Z.pathname)==null?void 0:w.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${Z.pathname}" was given in the \`location\` prop.`),O=Z}else O=H;let q=O.pathname||"/",U=q;if(m!=="/"){let Z=m.replace(/^\//,"").split("/");U="/"+q.replace(/^\//,"").split("/").slice(Z.length).join("/")}let G=Wd(i,{pathname:U});Ct(M||G!=null,`No routes matched location "${O.pathname}${O.search}${O.hash}" `),Ct(G==null||G[G.length-1].route.element!==void 0||G[G.length-1].route.Component!==void 0||G[G.length-1].route.lazy!==void 0,`Matched leaf route at location "${O.pathname}${O.search}${O.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let V=z0(G&&G.map(Z=>Object.assign({},Z,{params:Object.assign({},j,Z.params),pathname:Wt([m,d.encodeLocation?d.encodeLocation(Z.pathname).pathname:Z.pathname]),pathnameBase:Z.pathnameBase==="/"?m:Wt([m,d.encodeLocation?d.encodeLocation(Z.pathnameBase).pathname:Z.pathnameBase])})),v,s,f);return o&&V?A.createElement(Bu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...O},navigationType:"POP"}},V):V}function N0(){let i=H0(),o=b0(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,f="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:f},v={padding:"2px 4px",backgroundColor:f},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:v},"ErrorBoundary")," or"," ",A.createElement("code",{style:v},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},o),s?A.createElement("pre",{style:d},s):null,p)}var O0=A.createElement(N0,null),M0=class extends A.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,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){console.error("React Router caught the following error during render",i,o)}render(){return this.state.error!==void 0?A.createElement(It.Provider,{value:this.props.routeContext},A.createElement(Uf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function j0({routeContext:i,match:o,children:s}){let f=A.useContext(Ca);return f&&f.static&&f.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=o.route.id),A.createElement(It.Provider,{value:i},s)}function z0(i,o=[],s=null,f=null){if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let d=i,v=s==null?void 0:s.errors;if(v!=null){let S=d.findIndex(m=>m.route.id&&(v==null?void 0:v[m.route.id])!==void 0);Ne(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,j=-1;if(s)for(let S=0;S<d.length;S++){let m=d[S];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(j=S),m.route.id){let{loaderData:M,errors:H}=s,O=m.route.loader&&!M.hasOwnProperty(m.route.id)&&(!H||H[m.route.id]===void 0);if(m.route.lazy||O){p=!0,j>=0?d=d.slice(0,j+1):d=[d[0]];break}}}return d.reduceRight((S,m,M)=>{let H,O=!1,q=null,U=null;s&&(H=v&&m.route.id?v[m.route.id]:void 0,q=m.route.errorElement||O0,p&&(j<0&&M===0?(ih("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,U=null):j===M&&(O=!0,U=m.route.hydrateFallbackElement||null)));let G=o.concat(d.slice(0,M+1)),V=()=>{let w;return H?w=q:O?w=U:m.route.Component?w=A.createElement(m.route.Component,null):m.route.element?w=m.route.element:w=S,A.createElement(j0,{match:m,routeContext:{outlet:S,matches:G,isDataRoute:s!=null},children:w})};return s&&(m.route.ErrorBoundary||m.route.errorElement||M===0)?A.createElement(M0,{location:s.location,revalidation:s.revalidation,component:q,error:H,children:V(),routeContext:{outlet:null,matches:G,isDataRoute:!0}}):V()},null)}function Hf(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function D0(i){let o=A.useContext(Ca);return Ne(o,Hf(i)),o}function _0(i){let o=A.useContext(ni);return Ne(o,Hf(i)),o}function C0(i){let o=A.useContext(It);return Ne(o,Hf(i)),o}function Bf(i){let o=C0(i),s=o.matches[o.matches.length-1];return Ne(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function U0(){return Bf("useRouteId")}function H0(){var f;let i=A.useContext(Uf),o=_0("useRouteError"),s=Bf("useRouteError");return i!==void 0?i:(f=o.errors)==null?void 0:f[s]}function B0(){let{router:i}=D0("useNavigate"),o=Bf("useNavigate"),s=A.useRef(!1);return uh(()=>{s.current=!0}),A.useCallback(async(d,v={})=>{Ct(s.current,ah),s.current&&(typeof d=="number"?i.navigate(d):await i.navigate(d,{fromRouteId:o,...v}))},[i,o])}var Kd={};function ih(i,o,s){!o&&!Kd[i]&&(Kd[i]=!0,Ct(!1,s))}A.memo(q0);function q0({routes:i,future:o,state:s}){return nh(i,void 0,s,o)}function zt(i){Ne(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function w0({basename:i="/",children:o=null,location:s,navigationType:f="POP",navigator:d,static:v=!1}){Ne(!qu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),j=A.useMemo(()=>({basename:p,navigator:d,static:v,future:{}}),[p,d,v]);typeof s=="string"&&(s=_a(s));let{pathname:S="/",search:m="",hash:M="",state:H=null,key:O="default"}=s,q=A.useMemo(()=>{let U=Pt(S,p);return U==null?null:{location:{pathname:U,search:m,hash:M,state:H,key:O},navigationType:f}},[p,S,m,M,H,O,f]);return Ct(q!=null,`<Router basename="${p}"> is not able to match the URL "${S}${m}${M}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:A.createElement(Ut.Provider,{value:j},A.createElement(Bu.Provider,{children:o,value:q}))}function L0({children:i,location:o}){return R0(_f(i),o)}function _f(i,o=[]){let s=[];return A.Children.forEach(i,(f,d)=>{if(!A.isValidElement(f))return;let v=[...o,d];if(f.type===A.Fragment){s.push.apply(s,_f(f.props.children,v));return}Ne(f.type===zt,`[${typeof f.type=="string"?f.type:f.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ne(!f.props.index||!f.props.children,"An index route cannot have child routes.");let p={id:f.props.id||v.join("-"),caseSensitive:f.props.caseSensitive,element:f.props.element,Component:f.props.Component,index:f.props.index,path:f.props.path,loader:f.props.loader,action:f.props.action,hydrateFallbackElement:f.props.hydrateFallbackElement,HydrateFallback:f.props.HydrateFallback,errorElement:f.props.errorElement,ErrorBoundary:f.props.ErrorBoundary,hasErrorBoundary:f.props.hasErrorBoundary===!0||f.props.ErrorBoundary!=null||f.props.errorElement!=null,shouldRevalidate:f.props.shouldRevalidate,handle:f.props.handle,lazy:f.props.lazy};f.props.children&&(p.children=_f(f.props.children,v)),s.push(p)}),s}var li="get",ai="application/x-www-form-urlencoded";function ii(i){return i!=null&&typeof i.tagName=="string"}function Y0(i){return ii(i)&&i.tagName.toLowerCase()==="button"}function G0(i){return ii(i)&&i.tagName.toLowerCase()==="form"}function X0(i){return ii(i)&&i.tagName.toLowerCase()==="input"}function Q0(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Z0(i,o){return i.button===0&&(!o||o==="_self")&&!Q0(i)}var ti=null;function V0(){if(ti===null)try{new FormData(document.createElement("form"),0),ti=!1}catch{ti=!0}return ti}var K0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zf(i){return i!=null&&!K0.has(i)?(Ct(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ai}"`),null):i}function J0(i,o){let s,f,d,v,p;if(G0(i)){let j=i.getAttribute("action");f=j?Pt(j,o):null,s=i.getAttribute("method")||li,d=zf(i.getAttribute("enctype"))||ai,v=new FormData(i)}else if(Y0(i)||X0(i)&&(i.type==="submit"||i.type==="image")){let j=i.form;if(j==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||j.getAttribute("action");if(f=S?Pt(S,o):null,s=i.getAttribute("formmethod")||j.getAttribute("method")||li,d=zf(i.getAttribute("formenctype"))||zf(j.getAttribute("enctype"))||ai,v=new FormData(j,i),!V0()){let{name:m,type:M,value:H}=i;if(M==="image"){let O=m?`${m}.`:"";v.append(`${O}x`,"0"),v.append(`${O}y`,"0")}else m&&v.append(m,H)}}else{if(ii(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=li,f=null,d=ai,p=i}return v&&d==="text/plain"&&(p=v,v=void 0),{action:f,method:s.toLowerCase(),encType:d,formData:v,body:p}}function qf(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}async function k0(i,o){if(i.id in o)return o[i.id];try{let s=await import(i.module);return o[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $0(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 W0(i,o,s){let f=await Promise.all(i.map(async d=>{let v=o.routes[d.route.id];if(v){let p=await k0(v,s);return p.links?p.links():[]}return[]}));return ev(f.flat(1).filter($0).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Jd(i,o,s,f,d,v){let p=(S,m)=>s[m]?S.route.id!==s[m].route.id:!0,j=(S,m)=>{var M;return s[m].pathname!==S.pathname||((M=s[m].route.path)==null?void 0:M.endsWith("*"))&&s[m].params["*"]!==S.params["*"]};return v==="assets"?o.filter((S,m)=>p(S,m)||j(S,m)):v==="data"?o.filter((S,m)=>{var H;let M=f.routes[S.route.id];if(!M||!M.hasLoader)return!1;if(p(S,m)||j(S,m))return!0;if(S.route.shouldRevalidate){let O=S.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((H=s[0])==null?void 0:H.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof O=="boolean")return O}return!0}):[]}function F0(i,o,{includeHydrateFallback:s}={}){return P0(i.map(f=>{let d=o.routes[f.route.id];if(!d)return[];let v=[d.module];return d.clientActionModule&&(v=v.concat(d.clientActionModule)),d.clientLoaderModule&&(v=v.concat(d.clientLoaderModule)),s&&d.hydrateFallbackModule&&(v=v.concat(d.hydrateFallbackModule)),d.imports&&(v=v.concat(d.imports)),v}).flat(1))}function P0(i){return[...new Set(i)]}function I0(i){let o={},s=Object.keys(i).sort();for(let f of s)o[f]=i[f];return o}function ev(i,o){let s=new Set;return new Set(o),i.reduce((f,d)=>{let v=JSON.stringify(I0(d));return s.has(v)||(s.add(v),f.push({key:v,link:d})),f},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var tv=new Set([100,101,204,205]);function lv(i,o){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s.pathname==="/"?s.pathname="_root.data":o&&Pt(s.pathname,o)==="/"?s.pathname=`${o.replace(/\/$/,"")}/_root.data`:s.pathname=`${s.pathname.replace(/\/$/,"")}.data`,s}function ch(){let i=A.useContext(Ca);return qf(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function av(){let i=A.useContext(ni);return qf(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var wf=A.createContext(void 0);wf.displayName="FrameworkContext";function fh(){let i=A.useContext(wf);return qf(i,"You must render this element inside a <HydratedRouter> element"),i}function uv(i,o){let s=A.useContext(wf),[f,d]=A.useState(!1),[v,p]=A.useState(!1),{onFocus:j,onBlur:S,onMouseEnter:m,onMouseLeave:M,onTouchStart:H}=o,O=A.useRef(null);A.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let G=w=>{w.forEach(Z=>{p(Z.isIntersecting)})},V=new IntersectionObserver(G,{threshold:.5});return O.current&&V.observe(O.current),()=>{V.disconnect()}}},[i]),A.useEffect(()=>{if(f){let G=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(G)}}},[f]);let q=()=>{d(!0)},U=()=>{d(!1),p(!1)};return s?i!=="intent"?[v,O,{}]:[v,O,{onFocus:Uu(j,q),onBlur:Uu(S,U),onMouseEnter:Uu(m,q),onMouseLeave:Uu(M,U),onTouchStart:Uu(H,q)}]:[!1,O,{}]}function Uu(i,o){return s=>{i&&i(s),s.defaultPrevented||o(s)}}function nv({page:i,...o}){let{router:s}=ch(),f=A.useMemo(()=>Wd(s.routes,i,s.basename),[s.routes,i,s.basename]);return f?A.createElement(cv,{page:i,matches:f,...o}):null}function iv(i){let{manifest:o,routeModules:s}=fh(),[f,d]=A.useState([]);return A.useEffect(()=>{let v=!1;return W0(i,o,s).then(p=>{v||d(p)}),()=>{v=!0}},[i,o,s]),f}function cv({page:i,matches:o,...s}){let f=Kl(),{manifest:d,routeModules:v}=fh(),{basename:p}=ch(),{loaderData:j,matches:S}=av(),m=A.useMemo(()=>Jd(i,o,S,d,f,"data"),[i,o,S,d,f]),M=A.useMemo(()=>Jd(i,o,S,d,f,"assets"),[i,o,S,d,f]),H=A.useMemo(()=>{if(i===f.pathname+f.search+f.hash)return[];let U=new Set,G=!1;if(o.forEach(w=>{var k;let Z=d.routes[w.route.id];!Z||!Z.hasLoader||(!m.some(ce=>ce.route.id===w.route.id)&&w.route.id in j&&((k=v[w.route.id])!=null&&k.shouldRevalidate)||Z.hasClientLoader?G=!0:U.add(w.route.id))}),U.size===0)return[];let V=lv(i,p);return G&&U.size>0&&V.searchParams.set("_routes",o.filter(w=>U.has(w.route.id)).map(w=>w.route.id).join(",")),[V.pathname+V.search]},[p,j,f,d,m,o,i,v]),O=A.useMemo(()=>F0(M,d),[M,d]),q=iv(M);return A.createElement(A.Fragment,null,H.map(U=>A.createElement("link",{key:U,rel:"prefetch",as:"fetch",href:U,...s})),O.map(U=>A.createElement("link",{key:U,rel:"modulepreload",href:U,...s})),q.map(({key:U,link:G})=>A.createElement("link",{key:U,...G})))}function fv(...i){return o=>{i.forEach(s=>{typeof s=="function"?s(o):s!=null&&(s.current=o)})}}var rh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{rh&&(window.__reactRouterVersion="7.6.2")}catch{}function rv({basename:i,children:o,window:s}){let f=A.useRef();f.current==null&&(f.current=$y({window:s,v5Compat:!0}));let d=f.current,[v,p]=A.useState({action:d.action,location:d.location}),j=A.useCallback(S=>{A.startTransition(()=>p(S))},[p]);return A.useLayoutEffect(()=>d.listen(j),[d,j]),A.createElement(w0,{basename:i,children:o,location:v.location,navigationType:v.action,navigator:d})}var sh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dt=A.forwardRef(function({onClick:o,discover:s="render",prefetch:f="none",relative:d,reloadDocument:v,replace:p,state:j,target:S,to:m,preventScrollReset:M,viewTransition:H,...O},q){let{basename:U}=A.useContext(Ut),G=typeof m=="string"&&sh.test(m),V,w=!1;if(typeof m=="string"&&G&&(V=m,rh))try{let Ee=new URL(window.location.href),Je=m.startsWith("//")?new URL(Ee.protocol+m):new URL(m),ot=Pt(Je.pathname,U);Je.origin===Ee.origin&&ot!=null?m=ot+Je.search+Je.hash:w=!0}catch{Ct(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Z=E0(m,{relative:d}),[k,ce,L]=uv(f,O),fe=hv(m,{replace:p,state:j,target:S,preventScrollReset:M,relative:d,viewTransition:H});function ue(Ee){o&&o(Ee),Ee.defaultPrevented||fe(Ee)}let se=A.createElement("a",{...O,...L,href:V||Z,onClick:w||v?o:ue,ref:fv(q,ce),target:S,"data-discover":!G&&s==="render"?"true":void 0});return k&&!G?A.createElement(A.Fragment,null,se,A.createElement(nv,{page:Z})):se});Dt.displayName="Link";var sv=A.forwardRef(function({"aria-current":o="page",caseSensitive:s=!1,className:f="",end:d=!1,style:v,to:p,viewTransition:j,children:S,...m},M){let H=wu(p,{relative:m.relative}),O=Kl(),q=A.useContext(ni),{navigator:U,basename:G}=A.useContext(Ut),V=q!=null&&bv(H)&&j===!0,w=U.encodeLocation?U.encodeLocation(H).pathname:H.pathname,Z=O.pathname,k=q&&q.navigation&&q.navigation.location?q.navigation.location.pathname:null;s||(Z=Z.toLowerCase(),k=k?k.toLowerCase():null,w=w.toLowerCase()),k&&G&&(k=Pt(k,G)||k);const ce=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let L=Z===w||!d&&Z.startsWith(w)&&Z.charAt(ce)==="/",fe=k!=null&&(k===w||!d&&k.startsWith(w)&&k.charAt(w.length)==="/"),ue={isActive:L,isPending:fe,isTransitioning:V},se=L?o:void 0,Ee;typeof f=="function"?Ee=f(ue):Ee=[f,L?"active":null,fe?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let Je=typeof v=="function"?v(ue):v;return A.createElement(Dt,{...m,"aria-current":se,className:Ee,ref:M,style:Je,to:p,viewTransition:j},typeof S=="function"?S(ue):S)});sv.displayName="NavLink";var ov=A.forwardRef(({discover:i="render",fetcherKey:o,navigate:s,reloadDocument:f,replace:d,state:v,method:p=li,action:j,onSubmit:S,relative:m,preventScrollReset:M,viewTransition:H,...O},q)=>{let U=vv(),G=gv(j,{relative:m}),V=p.toLowerCase()==="get"?"get":"post",w=typeof j=="string"&&sh.test(j),Z=k=>{if(S&&S(k),k.defaultPrevented)return;k.preventDefault();let ce=k.nativeEvent.submitter,L=(ce==null?void 0:ce.getAttribute("formmethod"))||p;U(ce||k.currentTarget,{fetcherKey:o,method:L,navigate:s,replace:d,state:v,relative:m,preventScrollReset:M,viewTransition:H})};return A.createElement("form",{ref:q,method:V,action:G,onSubmit:f?S:Z,...O,"data-discover":!w&&i==="render"?"true":void 0})});ov.displayName="Form";function dv(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function oh(i){let o=A.useContext(Ca);return Ne(o,dv(i)),o}function hv(i,{target:o,replace:s,state:f,preventScrollReset:d,relative:v,viewTransition:p}={}){let j=T0(),S=Kl(),m=wu(i,{relative:v});return A.useCallback(M=>{if(Z0(M,o)){M.preventDefault();let H=s!==void 0?s:Hu(S)===Hu(m);j(i,{replace:H,state:f,preventScrollReset:d,relative:v,viewTransition:p})}},[S,j,m,s,f,o,i,d,v,p])}var mv=0,yv=()=>`__${String(++mv)}__`;function vv(){let{router:i}=oh("useSubmit"),{basename:o}=A.useContext(Ut),s=U0();return A.useCallback(async(f,d={})=>{let{action:v,method:p,encType:j,formData:S,body:m}=J0(f,o);if(d.navigate===!1){let M=d.fetcherKey||yv();await i.fetch(M,s,d.action||v,{preventScrollReset:d.preventScrollReset,formData:S,body:m,formMethod:d.method||p,formEncType:d.encType||j,flushSync:d.flushSync})}else await i.navigate(d.action||v,{preventScrollReset:d.preventScrollReset,formData:S,body:m,formMethod:d.method||p,formEncType:d.encType||j,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[i,o,s])}function gv(i,{relative:o}={}){let{basename:s}=A.useContext(Ut),f=A.useContext(It);Ne(f,"useFormAction must be used inside a RouteContext");let[d]=f.matches.slice(-1),v={...wu(i||".",{relative:o})},p=Kl();if(i==null){v.search=p.search;let j=new URLSearchParams(v.search),S=j.getAll("index");if(S.some(M=>M==="")){j.delete("index"),S.filter(H=>H).forEach(H=>j.append("index",H));let M=j.toString();v.search=M?`?${M}`:""}}return(!i||i===".")&&d.route.index&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(v.pathname=v.pathname==="/"?s:Wt([s,v.pathname])),Hu(v)}function bv(i,o={}){let s=A.useContext(lh);Ne(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:f}=oh("useViewTransitionState"),d=wu(i,{relative:o.relative});if(!s.isTransitioning)return!1;let v=Pt(s.currentLocation.pathname,f)||s.currentLocation.pathname,p=Pt(s.nextLocation.pathname,f)||s.nextLocation.pathname;return ui(d.pathname,p)!=null||ui(d.pathname,v)!=null}[...tv];const pv=()=>{const[i,o]=A.useState(!1),s=()=>{o(!i)},f=()=>{o(!1)};return h.jsx("nav",{className:"bg-gradient-to-r from-green-700 to-green-600 text-white p-4 shadow",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("div",{className:"font-bold text-xl",children:"EVSE"}),h.jsxs("ul",{className:`flex-col md:flex-row md:flex gap-4 ${i?"flex":"hidden"} md:!flex`,children:[h.jsx("li",{children:h.jsx(Dt,{className:"hover:underline",to:"/dashboard",onClick:f,children:"Início"})}),h.jsx("li",{children:h.jsx(Dt,{className:"hover:underline",to:"/settings",onClick:f,children:"Definições"})}),h.jsx("li",{children:h.jsx(Dt,{className:"hover:underline",to:"/electrical-network",onClick:f,children:"Rede Elétrica"})}),h.jsx("li",{children:h.jsx(Dt,{className:"hover:underline",to:"/security",onClick:f,children:"Segurança"})}),h.jsx("li",{children:h.jsx(Dt,{className:"hover:underline",to:"/connectivity",onClick:f,children:"Conectividade"})}),h.jsx("li",{children:h.jsx(Dt,{className:"hover:underline",to:"/load-balancing",onClick:f,children:"Balanceador"})}),h.jsx("li",{children:h.jsx(Dt,{className:"hover:underline",to:"/meters",onClick:f,children:"Contadores"})}),h.jsx("li",{children:h.jsx(Dt,{className:"hover:underline",to:"/ocpp",onClick:f,children:"OCPP"})})]}),h.jsx("button",{className:"md:hidden text-3xl",onClick:s,children:"☰"})]})})};function Rl({title:i,children:o}){return h.jsxs("div",{className:"max-w-3xl mx-auto p-5 bg-white rounded shadow",children:[h.jsx("h1",{className:"text-2xl font-bold mb-5",children:i}),o]})}function et({type:i="info",children:o}){const s="p-2 mb-2 rounded",f={success:"bg-green-600 text-white",error:"bg-red-600 text-white",info:"bg-gray-200"};return h.jsx("div",{className:`${s} ${f[i]||f.info}`,children:o})}const kd=()=>{const[i,o]=A.useState({status:"Ativo",chargers:[{id:1,status:"Ativo",current:16,power:3680}],energyConsumed:100,chargingTime:240,alerts:[],errors:[]}),[s,f]=A.useState(""),d=async()=>{try{const v=await fetch("/api/v1/dashboard");if(v.ok){const p=await v.json();o(p)}else f("Erro ao obter os dados do dashboard")}catch(v){console.error("Erro ao buscar dados do dashboard:",v),f("Erro de conexão")}};return A.useEffect(()=>{d()},[]),h.jsxs(Rl,{title:"Visão Geral",children:[s&&h.jsx(et,{type:"error",children:s}),h.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[h.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[h.jsx("h3",{children:"Status do Sistema"}),h.jsx("p",{children:i.status})]}),h.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[h.jsx("h3",{children:"Consumo de Energia"}),h.jsxs("p",{children:[i.energyConsumed," kWh"]})]}),h.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[h.jsx("h3",{children:"Tempo de Carregamento"}),h.jsxs("p",{children:[i.chargingTime," minutos"]})]})]}),h.jsxs("div",{className:"mb-6",children:[h.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Alertas"}),h.jsx("ul",{children:i.alerts.map((v,p)=>h.jsx("li",{className:"p-2 bg-red-500 text-white rounded mb-2",children:h.jsxs("span",{children:["⚠️ ",v]})},p))})]}),h.jsxs("div",{className:"mb-6",children:[h.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Erros da EVSE"}),h.jsx("ul",{children:i.errors.length>0?i.errors.map((v,p)=>h.jsx("li",{className:"p-2 bg-orange-500 text-white rounded mb-2",children:h.jsxs("span",{children:["❗ ",v]})},p)):h.jsx("li",{className:"p-2 bg-green-500 text-white rounded mb-2",children:h.jsx("span",{children:"✅ Nenhum erro ativo"})})})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Carregadores"}),h.jsxs("table",{className:"min-w-full border border-gray-300 text-left",children:[h.jsx("thead",{children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b p-2",children:"ID"}),h.jsx("th",{className:"border-b p-2",children:"Status"}),h.jsx("th",{className:"border-b p-2",children:"Corrente (A)"}),h.jsx("th",{className:"border-b p-2",children:"Potência (W)"})]})}),h.jsx("tbody",{children:i.chargers.map(v=>h.jsxs("tr",{children:[h.jsx("td",{className:"border-b p-2",children:v.id}),h.jsx("td",{className:"border-b p-2",children:v.status}),h.jsx("td",{className:"border-b p-2",children:v.current}),h.jsx("td",{className:"border-b p-2",children:v.power})]},v.id))})]})]})]})},Sv=()=>{const[i,o]=A.useState(32),[s,f]=A.useState(32),[d,v]=A.useState(0),[p,j]=A.useState(0),[S,m]=A.useState(0),[M,H]=A.useState(60),[O,q]=A.useState(""),[U,G]=A.useState(""),V=async()=>{const ue=await fetch("/api/v1/config/settings");if(ue.ok){const se=await ue.json();o(se.maxCurrentLimit),f(se.currentLimit),v(se.powerLimit),j(se.energyLimit),m(se.chargingTimeLimit),H(se.temperatureLimit)}else G("Erro ao obter as configurações")};A.useEffect(()=>{V()},[]);const w=ue=>{const se=parseInt(ue.target.value,10);f(se>i?i:se)},Z=ue=>v(parseInt(ue.target.value,10)),k=ue=>j(parseInt(ue.target.value,10)),ce=ue=>m(parseInt(ue.target.value,10)),L=ue=>H(parseInt(ue.target.value,10)),fe=async ue=>{ue.preventDefault();const se={currentLimit:s,powerLimit:d,energyLimit:p,chargingTimeLimit:S,temperatureLimit:M};try{(await fetch("/api/v1/config/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(se)})).ok?q("Alterações guardadas com sucesso!"):G("Erro ao guardar alterações.")}catch{G("Erro ao guardar alterações.")}};return h.jsxs(Rl,{title:"Definições de Energia",children:[O&&h.jsx(et,{type:"success",children:O}),U&&h.jsx(et,{type:"error",children:U}),h.jsxs("form",{className:"flex flex-col gap-4",onSubmit:fe,children:[h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"currentLimit",children:"Limite de Corrente (A):"}),h.jsx("input",{id:"currentLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:s,onChange:w,max:i})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"powerLimit",children:"Limite de Potência (W):"}),h.jsx("input",{id:"powerLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:d,onChange:Z})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"energyLimit",children:"Limite de Energia (kWh):"}),h.jsx("input",{id:"energyLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:p,onChange:k})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"chargingTimeLimit",children:"Tempo Máximo de Carregamento (min):"}),h.jsx("input",{id:"chargingTimeLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:S,onChange:ce})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"temperatureLimit",children:"Temperatura Máxima (°C):"}),h.jsx("input",{id:"temperatureLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:M,onChange:L})]}),h.jsx("div",{children:h.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})},dh="";let xv="";function hh(i=!0){const o={Authorization:`Basic ${xv}`};return i&&(o["Content-Type"]="application/json"),o}async function _t(i){const o=await fetch(`${dh}${i}`,{headers:hh(!1)});if(!o.ok)throw new Error(`GET ${i} failed`);return await o.json()}async function Ft(i,o){const s=await fetch(`${dh}${i}`,{method:"POST",headers:hh(),body:JSON.stringify(o)});if(!s.ok)throw new Error(`POST ${i} failed`);return await s.text()}const Ev=()=>{const[i,o]=A.useState({RFID:!1}),[s,f]=A.useState([]),[d,v]=A.useState([]),[p,j]=A.useState(""),[S,m]=A.useState(""),[M,H]=A.useState(""),O=async()=>{try{const L=await _t("/api/v1/config/auth-methods");o(L)}catch(L){console.error(L),H("Erro ao buscar configurações de autenticação.")}},q=async()=>{try{const L=await _t("/api/v1/config/users");f(L.users||[])}catch(L){console.error(L),H("Erro ao buscar usuários.")}},U=async()=>{try{const L=await _t("/api/v1/config/tags");v(L.tags||[])}catch(L){console.error(L),H("Erro ao buscar tags.")}},G=async L=>{L.preventDefault();try{await Ft("/api/v1/config/auth-methods",i),m("Configurações de Autorização salvas com sucesso!")}catch(fe){console.error(fe),H("Erro ao salvar configurações.")}},V=L=>{o({...i,[L]:!i[L]})},w=async L=>{L.preventDefault();try{await Ft("/api/v1/config/tags/register"),m("Modo de registro ativado. Passe o cartão no leitor...")}catch(fe){console.error(fe),H("Erro ao ativar modo de registro.")}},Z=async()=>{if(p.trim()!=="")try{await Ft("/api/v1/config/users",p),m("Usuário adicionado com sucesso!"),j(""),q()}catch(L){console.error(L),H("Erro ao adicionar usuário.")}},k=async L=>{try{await fetch(`/api/v1/config/users?username=${encodeURIComponent(L)}`,{method:"DELETE"}),m("Usuário removido com sucesso!"),q()}catch(fe){console.error(fe),H("Erro ao remover usuário.")}},ce=async L=>{try{await fetch(`/api/v1/config/tags?tag=${encodeURIComponent(L)}`,{method:"DELETE"}),m("Tag removida com sucesso!"),U()}catch(fe){console.error(fe),H("Erro ao remover tag.")}};return A.useEffect(()=>{O(),q(),U()},[]),h.jsxs(Rl,{title:"Segurança",children:[S&&h.jsx(et,{type:"success",children:S}),M&&h.jsx(et,{type:"error",children:M}),h.jsxs("div",{className:"mb-5",children:[h.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Métodos de Autorização"}),h.jsxs("form",{className:"flex flex-col gap-2",onSubmit:G,children:[h.jsxs("label",{className:"flex items-center gap-2",children:["RFID",h.jsx("input",{type:"checkbox",checked:i.RFID,onChange:()=>V("RFID")})]}),h.jsx("button",{type:"submit",className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700 mt-4",children:"Salvar Configurações"})]})]}),h.jsxs("div",{className:"mb-5",children:[h.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Adicionar Cartões"}),h.jsx("form",{className:"flex flex-col gap-2",onSubmit:w,children:h.jsx("button",{type:"submit",className:"bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700 mt-4",children:"Iniciar Registro"})})]}),h.jsxs("div",{className:"mb-5",children:[h.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Tags Registradas"}),d.length===0?h.jsx("p",{className:"text-gray-500",children:"Nenhuma tag registrada."}):h.jsxs("table",{className:"min-w-full border border-gray-300 text-left table-auto",children:[h.jsx("thead",{className:"bg-gray-100",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Tag"}),h.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Ações"})]})}),h.jsx("tbody",{children:d.map((L,fe)=>h.jsxs("tr",{className:"hover:bg-gray-50",children:[h.jsx("td",{className:"border-b p-2 text-sm",children:L}),h.jsx("td",{className:"border-b p-2 text-sm text-red-600",children:h.jsx("button",{onClick:()=>ce(L),children:"Remover"})})]},fe))})]})]}),h.jsxs("div",{className:"overflow-x-auto mb-5",children:[h.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Utilizadores"}),h.jsxs("table",{className:"min-w-full border border-gray-300 text-left table-auto",children:[h.jsx("thead",{className:"bg-gray-100",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Nome de Usuário"}),h.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Ações"})]})}),h.jsx("tbody",{children:s.map((L,fe)=>h.jsxs("tr",{className:"hover:bg-gray-50",children:[h.jsx("td",{className:"border-b p-2 text-sm",children:L.username}),h.jsx("td",{className:"border-b p-2 text-sm text-red-600",children:h.jsx("button",{onClick:()=>k(L.username),children:"Remover"})})]},fe))})]}),h.jsxs("div",{className:"mt-4",children:[h.jsx("input",{type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full mb-2",value:p,onChange:L=>j(L.target.value),placeholder:"Digite o nome de usuário"}),h.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700 w-full",onClick:Z,children:"Adicionar Novo Usuário"})]})]})]})},Tv=()=>{const[i,o]=A.useState(!0),[s,f]=A.useState({enabled:!1,ssid:"",password:""}),[d,v]=A.useState(""),[p,j]=A.useState({enabled:!1,host:"",port:1883,username:"",password:"",topic:""}),[S,m]=A.useState("");A.useEffect(()=>{(async()=>{try{const q=await _t("/api/v1/config/wifi");f(q)}catch(q){console.error("Erro ao carregar configurações Wi-Fi:",q)}try{const q=await _t("/api/v1/config/mqtt");j(q)}catch(q){console.error("Erro ao carregar configurações MQTT:",q)}o(!1)})()},[]);const M=async()=>{try{await Ft("/api/v1/config/wifi",s),v("Alterações guardadas com sucesso!")}catch{v("Erro ao guardar alterações.")}},H=async()=>{try{await Ft("/api/v1/config/mqtt",p),m("Alterações guardadas com sucesso!")}catch{m("Erro ao guardar alterações.")}};return h.jsx(Rl,{title:"Conectividade",children:i?h.jsx("p",{children:"A carregar..."}):h.jsxs(h.Fragment,{children:[h.jsx("h2",{className:"text-xl font-semibold mt-4",children:"Configuração Wi-Fi"}),d&&h.jsx(et,{type:d.startsWith("Erro")?"error":"success",children:d}),h.jsxs("form",{className:"flex flex-col gap-4",onSubmit:O=>{O.preventDefault(),M()},children:[h.jsx("div",{children:h.jsxs("label",{className:"flex items-center gap-2",children:["Ativar WIFI",h.jsx("input",{type:"checkbox",checked:s.enabled,onChange:O=>f({...s,enabled:O.target.checked})})]})}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"wifi-ssid",children:"SSID:"}),h.jsx("input",{id:"wifi-ssid",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${s.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:s.ssid,onChange:O=>f({...s,ssid:O.target.value}),disabled:!s.enabled})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"wifi-password",children:"Palavra-passe:"}),h.jsx("input",{id:"wifi-password",type:"password",className:`border border-gray-300 rounded px-3 py-2 w-full ${s.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:s.password,onChange:O=>f({...s,password:O.target.value}),disabled:!s.enabled})]}),h.jsx("div",{children:h.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]}),h.jsx("h2",{className:"text-xl font-semibold mt-6",children:"Configuração MQTT"}),S&&h.jsx(et,{type:S.startsWith("Erro")?"error":"success",children:S}),h.jsxs("form",{className:"flex flex-col gap-4",onSubmit:O=>{O.preventDefault(),H()},children:[h.jsx("div",{children:h.jsxs("label",{className:"flex items-center gap-2",children:["Ativar MQTT",h.jsx("input",{type:"checkbox",checked:p.enabled,onChange:O=>j({...p,enabled:O.target.checked})})]})}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"mqtt-host",children:"Host:"}),h.jsx("input",{id:"mqtt-host",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.host,onChange:O=>j({...p,host:O.target.value}),disabled:!p.enabled})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"mqtt-port",children:"Porta:"}),h.jsx("input",{id:"mqtt-port",type:"number",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.port,onChange:O=>j({...p,port:parseInt(O.target.value||0,10)||1883}),disabled:!p.enabled})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"mqtt-username",children:"Utilizador:"}),h.jsx("input",{id:"mqtt-username",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.username,onChange:O=>j({...p,username:O.target.value}),disabled:!p.enabled})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"mqtt-password",children:"Palavra-passe:"}),h.jsx("input",{id:"mqtt-password",type:"password",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.password,onChange:O=>j({...p,password:O.target.value}),disabled:!p.enabled})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"mqtt-topic",children:"Tópico:"}),h.jsx("input",{id:"mqtt-topic",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${p.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:p.topic,onChange:O=>j({...p,topic:O.target.value}),disabled:!p.enabled})]}),h.jsx("div",{children:h.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})})},Av=()=>{const[i,o]=A.useState(null),[s,f]=A.useState(!0),[d,v]=A.useState({enabled:!1,url:"",chargeBoxId:"",certificate:"",privateKey:""}),[p,j]=A.useState("");A.useEffect(()=>{(async()=>{try{const M=await _t("/api/v1/ocpp");o(M)}catch{}try{const M=await _t("/api/v1/config/ocpp");v(M)}catch{}f(!1)})()},[]);const S=async()=>{j("");try{await Ft("/api/v1/config/ocpp",d),j("Alterações guardadas com sucesso!")}catch{j("Erro ao guardar alterações.")}};return h.jsx(Rl,{title:"OCPP",children:s?h.jsx("p",{children:"A carregar..."}):h.jsxs(h.Fragment,{children:[p&&h.jsx(et,{type:p.startsWith("Erro")?"error":"success",children:p}),h.jsxs("form",{className:"flex flex-col gap-4",onSubmit:m=>{m.preventDefault(),S()},children:[h.jsx("div",{children:h.jsxs("label",{className:"flex items-center gap-2",children:["Ativar OCPP",h.jsx("input",{type:"checkbox",checked:d.enabled,onChange:m=>v({...d,enabled:m.target.checked})})]})}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"ocpp-url",children:"Servidor:"}),h.jsx("input",{id:"ocpp-url",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${d.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:d.url,onChange:m=>v({...d,url:m.target.value}),disabled:!d.enabled})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"ocpp-id",children:"Charge Box ID:"}),h.jsx("input",{id:"ocpp-id",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${d.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:d.chargeBoxId,onChange:m=>v({...d,chargeBoxId:m.target.value}),disabled:!d.enabled})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"ocpp-cert",children:"Certificado:"}),h.jsx("textarea",{id:"ocpp-cert",className:`border border-gray-300 rounded px-3 py-2 w-full ${d.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:d.certificate,onChange:m=>v({...d,certificate:m.target.value}),disabled:!d.enabled})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"ocpp-key",children:"Chave Privada:"}),h.jsx("textarea",{id:"ocpp-key",className:`border border-gray-300 rounded px-3 py-2 w-full ${d.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:d.privateKey,onChange:m=>v({...d,privateKey:m.target.value}),disabled:!d.enabled})]}),h.jsx("div",{children:h.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})})};function Rv(){const[i,o]=A.useState(!0),[s,f]=A.useState(""),[d,v]=A.useState(""),[p,j]=A.useState({earthFault:!1,rcm:!1});A.useEffect(()=>{(async()=>{try{const M=await _t("/api/v1/config/settings");M.security&&j(M.security)}catch(M){console.error("Erro ao carregar configurações:",M)}finally{o(!1)}})()},[]);const S=async()=>{f(""),v("");try{await Ft("/api/v1/config/settings",{security:p}),f("Alterações guardadas com sucesso!")}catch(m){console.error("Erro ao salvar configuração:",m),v("Erro ao guardar alterações.")}};return h.jsxs(Rl,{title:"Segurança Elétrica",children:[s&&h.jsx(et,{type:"success",children:s}),d&&h.jsx(et,{type:"error",children:d}),i?h.jsx("p",{children:"A carregar..."}):h.jsxs("form",{className:"flex flex-col gap-4",onSubmit:m=>{m.preventDefault(),S()},children:[h.jsx("h2",{className:"text-xl font-semibold",children:"Proteção de Segurança Elétrica"}),h.jsx("div",{children:h.jsxs("label",{className:"flex items-center gap-2",children:["Detecção de Falha de Aterramento",h.jsx("input",{type:"checkbox",checked:p.earthFault,onChange:m=>j({...p,earthFault:m.target.checked})})]})}),h.jsx("div",{children:h.jsxs("label",{className:"flex items-center gap-2",children:["Proteção RCM",h.jsx("input",{type:"checkbox",checked:p.rcm,onChange:m=>j({...p,rcm:m.target.checked})})]})}),h.jsx("div",{children:h.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})}function Nv(){const[i,o]=A.useState(!0),[s,f]=A.useState(""),[d,v]=A.useState(""),[p,j]=A.useState("NENHUM"),[S,m]=A.useState("NENHUM");A.useEffect(()=>{(async()=>{try{const U=await _t("/api/v1/config/meters");U.gridmeter&&j(U.gridmeter),U.evsemeter&&m(U.evsemeter)}catch(U){console.error("Erro ao carregar configurações:",U)}finally{o(!1)}})()},[]);const M=async()=>{f(""),v("");try{await Ft("/api/v1/config/meters",{gridmeter:p,evsemeter:S}),f("Alterações guardadas com sucesso!")}catch(q){console.error("Erro ao salvar configuração:",q),v("Erro ao guardar alterações.")}},H=q=>{j(q.target.value)},O=q=>{m(q.target.value)};return h.jsxs(Rl,{title:"Configuração de Contadores",children:[s&&h.jsx(et,{type:"success",children:s}),d&&h.jsx(et,{type:"error",children:d}),i?h.jsx("p",{children:"A carregar..."}):h.jsxs("form",{className:"flex flex-col gap-4",onSubmit:q=>{q.preventDefault(),M()},children:[h.jsx("h2",{className:"text-xl font-semibold",children:"Contador de Rede"}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",children:"Modelo de Contador de Rede:"}),h.jsxs("select",{value:p,onChange:H,className:"border border-gray-300 rounded px-3 py-2 w-full",children:[h.jsx("option",{value:"NENHUM",children:"NENHUM"}),h.jsx("option",{value:"ORNO-513",children:"ORNO-513"}),h.jsx("option",{value:"ORNO-516",children:"ORNO-516"}),h.jsx("option",{value:"MONO-ZIGBEE",children:"MONO-ZIGBEE"}),h.jsx("option",{value:"TRIF-ZIGBEE",children:"TRIF-ZIGBEE"})]})]}),h.jsx("h2",{className:"text-xl font-semibold",children:"Contador EVSE"}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",children:"Modelo de Contador EVSE:"}),h.jsxs("select",{value:S,onChange:O,className:"border border-gray-300 rounded px-3 py-2 w-full",children:[h.jsx("option",{value:"NENHUM",children:"NENHUM"}),h.jsx("option",{value:"IC ADE",children:"IC ADE"}),h.jsx("option",{value:"ORNO-513",children:"ORNO-513"}),h.jsx("option",{value:"ORNO-516",children:"ORNO-516"})]})]}),h.jsx("div",{children:h.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})}function Ov(){const[i,o]=A.useState(!0),[s,f]=A.useState(""),[d,v]=A.useState(""),[p,j]=A.useState({loadBalancingEnabled:!1,loadBalancingCurrentLimit:0});A.useEffect(()=>{(async()=>{try{const O=await _t("/api/v1/config/loadbalancing");O&&j({loadBalancingEnabled:O.loadBalancingEnabled,loadBalancingCurrentLimit:O.loadBalancingCurrentLimit})}catch(O){console.error("Erro ao carregar configurações:",O),v("Erro ao carregar configurações")}finally{o(!1)}})()},[]);const S=async()=>{f(""),v("");try{const H={loadBalancingEnabled:p.loadBalancingEnabled,loadBalancingCurrentLimit:p.loadBalancingCurrentLimit};await Ft("/api/v1/config/loadbalancing",H),f("Alterações guardadas com sucesso!")}catch(H){console.error("Erro ao salvar configuração:",H),v("Erro ao guardar alterações.")}},m=H=>{j({...p,loadBalancingCurrentLimit:parseInt(H.target.value,10)||0})},M=H=>{j({...p,loadBalancingEnabled:H.target.checked})};return h.jsxs(Rl,{title:"Balanceamento de Carga",children:[s&&h.jsx(et,{type:"success",children:s}),d&&h.jsx(et,{type:"error",children:d}),i?h.jsx("p",{children:"A carregar..."}):h.jsxs("form",{className:"flex flex-col gap-4",onSubmit:H=>{H.preventDefault(),S()},children:[h.jsx("h2",{className:"text-xl font-semibold",children:"Balanceamento de Carga"}),h.jsx("div",{children:h.jsxs("label",{className:"flex items-center gap-2",children:["Habilitar Balanceamento de Carga",h.jsx("input",{type:"checkbox",checked:p.loadBalancingEnabled,onChange:M})]})}),h.jsxs("div",{children:[h.jsx("label",{className:"block mb-1",htmlFor:"lb-current",children:"Limite de Corrente (A):"}),h.jsx("input",{id:"lb-current",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:p.loadBalancingCurrentLimit,onChange:m})]}),h.jsx("div",{children:h.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})}const Mv=()=>h.jsxs(rv,{children:[h.jsx(pv,{}),"  ",h.jsxs(L0,{children:[h.jsx(zt,{path:"/",element:h.jsx(kd,{})})," ",h.jsx(zt,{path:"/dashboard",element:h.jsx(kd,{})}),h.jsx(zt,{path:"/settings",element:h.jsx(Sv,{})}),h.jsx(zt,{path:"/security",element:h.jsx(Ev,{})}),h.jsx(zt,{path:"/connectivity",element:h.jsx(Tv,{})}),h.jsx(zt,{path:"/electrical-network",element:h.jsx(Rv,{})}),h.jsx(zt,{path:"/load-balancing",element:h.jsx(Ov,{})}),h.jsx(zt,{path:"/meters",element:h.jsx(Nv,{})}),h.jsx(zt,{path:"/ocpp",element:h.jsx(Av,{})})]})]});Jy.createRoot(document.getElementById("root")).render(h.jsx(Ly.StrictMode,{children:h.jsx(Mv,{})}));
