(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.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 x of v.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&f(x)}).observe(document,{childList:!0,subtree:!0});function o(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=o(d);fetch(d.href,v)}})();function Jd(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var Ef={exports:{}},Mu={};/**
 * @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 Uy(){if(_d)return Mu;_d=1;var c=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(f,d,v){var x=null;if(v!==void 0&&(x=""+v),d.key!==void 0&&(x=""+d.key),"key"in d){v={};for(var M in d)M!=="key"&&(v[M]=d[M])}else v=d;return d=v.ref,{$$typeof:c,type:f,key:x,ref:d!==void 0?d:null,props:v}}return Mu.Fragment=s,Mu.jsx=o,Mu.jsxs=o,Mu}var jd;function Hy(){return jd||(jd=1,Ef.exports=Uy()),Ef.exports}var y=Hy(),Tf={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 Cd;function By(){if(Cd)return te;Cd=1;var c=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),x=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),H=Symbol.iterator;function N(g){return g===null||typeof g!="object"?null:(g=H&&g[H]||g["@@iterator"],typeof g=="function"?g:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,Y={};function Z(g,q,Q){this.props=g,this.context=q,this.refs=Y,this.updater=Q||w}Z.prototype.isReactComponent={},Z.prototype.setState=function(g,q){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,q,"setState")},Z.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function B(){}B.prototype=Z.prototype;function L(g,q,Q){this.props=g,this.context=q,this.refs=Y,this.updater=Q||w}var F=L.prototype=new B;F.constructor=L,U(F,Z.prototype),F.isPureReactComponent=!0;var ie=Array.isArray,K={H:null,A:null,T:null,S:null,V:null},he=Object.prototype.hasOwnProperty;function Te(g,q,Q,G,k,fe){return Q=fe.ref,{$$typeof:c,type:g,key:q,ref:Q!==void 0?Q:null,props:fe}}function ze(g,q){return Te(g.type,q,void 0,void 0,void 0,g.props)}function Se(g){return typeof g=="object"&&g!==null&&g.$$typeof===c}function Je(g){var q={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(Q){return q[Q]})}var st=/\/+/g;function Xe(g,q){return typeof g=="object"&&g!==null&&g.key!=null?Je(""+g.key):q.toString(36)}function xl(){}function El(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(xl,xl):(g.status="pending",g.then(function(q){g.status==="pending"&&(g.status="fulfilled",g.value=q)},function(q){g.status==="pending"&&(g.status="rejected",g.reason=q)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function Qe(g,q,Q,G,k){var fe=typeof g;(fe==="undefined"||fe==="boolean")&&(g=null);var ee=!1;if(g===null)ee=!0;else switch(fe){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(g.$$typeof){case c:case s:ee=!0;break;case z:return ee=g._init,Qe(ee(g._payload),q,Q,G,k)}}if(ee)return k=k(g),ee=G===""?"."+Xe(g,0):G,ie(k)?(Q="",ee!=null&&(Q=ee.replace(st,"$&/")+"/"),Qe(k,q,Q,"",function($t){return $t})):k!=null&&(Se(k)&&(k=ze(k,Q+(k.key==null||g&&g.key===k.key?"":(""+k.key).replace(st,"$&/")+"/")+ee)),q.push(k)),1;ee=0;var et=G===""?".":G+":";if(ie(g))for(var xe=0;xe<g.length;xe++)G=g[xe],fe=et+Xe(G,xe),ee+=Qe(G,q,Q,fe,k);else if(xe=N(g),typeof xe=="function")for(g=xe.call(g),xe=0;!(G=g.next()).done;)G=G.value,fe=et+Xe(G,xe++),ee+=Qe(G,q,Q,fe,k);else if(fe==="object"){if(typeof g.then=="function")return Qe(El(g),q,Q,G,k);throw q=String(g),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ee}function _(g,q,Q){if(g==null)return g;var G=[],k=0;return Qe(g,G,"","",function(fe){return q.call(Q,fe,k++)}),G}function X(g){if(g._status===-1){var q=g._result;q=q(),q.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=q)}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 q=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(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)};function ge(){}return te.Children={map:_,forEach:function(g,q,Q){_(g,function(){q.apply(this,arguments)},Q)},count:function(g){var q=0;return _(g,function(){q++}),q},toArray:function(g){return _(g,function(q){return q})||[]},only:function(g){if(!Se(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},te.Component=Z,te.Fragment=o,te.Profiler=d,te.PureComponent=L,te.StrictMode=f,te.Suspense=p,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,te.__COMPILER_RUNTIME={__proto__:null,c:function(g){return K.H.useMemoCache(g)}},te.cache=function(g){return function(){return g.apply(null,arguments)}},te.cloneElement=function(g,q,Q){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var G=U({},g.props),k=g.key,fe=void 0;if(q!=null)for(ee in q.ref!==void 0&&(fe=void 0),q.key!==void 0&&(k=""+q.key),q)!he.call(q,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&q.ref===void 0||(G[ee]=q[ee]);var ee=arguments.length-2;if(ee===1)G.children=Q;else if(1<ee){for(var et=Array(ee),xe=0;xe<ee;xe++)et[xe]=arguments[xe+2];G.children=et}return Te(g.type,k,void 0,void 0,fe,G)},te.createContext=function(g){return g={$$typeof:x,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:v,_context:g},g},te.createElement=function(g,q,Q){var G,k={},fe=null;if(q!=null)for(G in q.key!==void 0&&(fe=""+q.key),q)he.call(q,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(k[G]=q[G]);var ee=arguments.length-2;if(ee===1)k.children=Q;else if(1<ee){for(var et=Array(ee),xe=0;xe<ee;xe++)et[xe]=arguments[xe+2];k.children=et}if(g&&g.defaultProps)for(G in ee=g.defaultProps,ee)k[G]===void 0&&(k[G]=ee[G]);return Te(g,fe,void 0,void 0,null,k)},te.createRef=function(){return{current:null}},te.forwardRef=function(g){return{$$typeof:M,render:g}},te.isValidElement=Se,te.lazy=function(g){return{$$typeof:z,_payload:{_status:-1,_result:g},_init:X}},te.memo=function(g,q){return{$$typeof:h,type:g,compare:q===void 0?null:q}},te.startTransition=function(g){var q=K.T,Q={};K.T=Q;try{var G=g(),k=K.S;k!==null&&k(Q,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(ge,P)}catch(fe){P(fe)}finally{K.T=q}},te.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},te.use=function(g){return K.H.use(g)},te.useActionState=function(g,q,Q){return K.H.useActionState(g,q,Q)},te.useCallback=function(g,q){return K.H.useCallback(g,q)},te.useContext=function(g){return K.H.useContext(g)},te.useDebugValue=function(){},te.useDeferredValue=function(g,q){return K.H.useDeferredValue(g,q)},te.useEffect=function(g,q,Q){var G=K.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return G.useEffect(g,q)},te.useId=function(){return K.H.useId()},te.useImperativeHandle=function(g,q,Q){return K.H.useImperativeHandle(g,q,Q)},te.useInsertionEffect=function(g,q){return K.H.useInsertionEffect(g,q)},te.useLayoutEffect=function(g,q){return K.H.useLayoutEffect(g,q)},te.useMemo=function(g,q){return K.H.useMemo(g,q)},te.useOptimistic=function(g,q){return K.H.useOptimistic(g,q)},te.useReducer=function(g,q,Q){return K.H.useReducer(g,q,Q)},te.useRef=function(g){return K.H.useRef(g)},te.useState=function(g){return K.H.useState(g)},te.useSyncExternalStore=function(g,q,Q){return K.H.useSyncExternalStore(g,q,Q)},te.useTransition=function(){return K.H.useTransition()},te.version="19.1.0",te}var Ud;function jf(){return Ud||(Ud=1,Tf.exports=By()),Tf.exports}var O=jf();const qy=Jd(O);var Af={exports:{}},Du={},Rf={exports:{}},Nf={};/**
 * @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 Hd;function wy(){return Hd||(Hd=1,function(c){function s(_,X){var P=_.length;_.push(X);e:for(;0<P;){var ge=P-1>>>1,g=_[ge];if(0<d(g,X))_[ge]=X,_[P]=g,P=ge;else break e}}function o(_){return _.length===0?null:_[0]}function f(_){if(_.length===0)return null;var X=_[0],P=_.pop();if(P!==X){_[0]=P;e:for(var ge=0,g=_.length,q=g>>>1;ge<q;){var Q=2*(ge+1)-1,G=_[Q],k=Q+1,fe=_[k];if(0>d(G,P))k<g&&0>d(fe,G)?(_[ge]=fe,_[k]=P,ge=k):(_[ge]=G,_[Q]=P,ge=Q);else if(k<g&&0>d(fe,P))_[ge]=fe,_[k]=P,ge=k;else break e}}return X}function d(_,X){var P=_.sortIndex-X.sortIndex;return P!==0?P:_.id-X.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;c.unstable_now=function(){return v.now()}}else{var x=Date,M=x.now();c.unstable_now=function(){return x.now()-M}}var p=[],h=[],z=1,H=null,N=3,w=!1,U=!1,Y=!1,Z=!1,B=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function ie(_){for(var X=o(h);X!==null;){if(X.callback===null)f(h);else if(X.startTime<=_)f(h),X.sortIndex=X.expirationTime,s(p,X);else break;X=o(h)}}function K(_){if(Y=!1,ie(_),!U)if(o(p)!==null)U=!0,he||(he=!0,Xe());else{var X=o(h);X!==null&&Qe(K,X.startTime-_)}}var he=!1,Te=-1,ze=5,Se=-1;function Je(){return Z?!0:!(c.unstable_now()-Se<ze)}function st(){if(Z=!1,he){var _=c.unstable_now();Se=_;var X=!0;try{e:{U=!1,Y&&(Y=!1,L(Te),Te=-1),w=!0;var P=N;try{t:{for(ie(_),H=o(p);H!==null&&!(H.expirationTime>_&&Je());){var ge=H.callback;if(typeof ge=="function"){H.callback=null,N=H.priorityLevel;var g=ge(H.expirationTime<=_);if(_=c.unstable_now(),typeof g=="function"){H.callback=g,ie(_),X=!0;break t}H===o(p)&&f(p),ie(_)}else f(p);H=o(p)}if(H!==null)X=!0;else{var q=o(h);q!==null&&Qe(K,q.startTime-_),X=!1}}break e}finally{H=null,N=P,w=!1}X=void 0}}finally{X?Xe():he=!1}}}var Xe;if(typeof F=="function")Xe=function(){F(st)};else if(typeof MessageChannel<"u"){var xl=new MessageChannel,El=xl.port2;xl.port1.onmessage=st,Xe=function(){El.postMessage(null)}}else Xe=function(){B(st,0)};function Qe(_,X){Te=B(function(){_(c.unstable_now())},X)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(_){_.callback=null},c.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ze=0<_?Math.floor(1e3/_):5},c.unstable_getCurrentPriorityLevel=function(){return N},c.unstable_next=function(_){switch(N){case 1:case 2:case 3:var X=3;break;default:X=N}var P=N;N=X;try{return _()}finally{N=P}},c.unstable_requestPaint=function(){Z=!0},c.unstable_runWithPriority=function(_,X){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var P=N;N=_;try{return X()}finally{N=P}},c.unstable_scheduleCallback=function(_,X,P){var ge=c.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?ge+P:ge):P=ge,_){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,_={id:z++,callback:X,priorityLevel:_,startTime:P,expirationTime:g,sortIndex:-1},P>ge?(_.sortIndex=P,s(h,_),o(p)===null&&_===o(h)&&(Y?(L(Te),Te=-1):Y=!0,Qe(K,P-ge))):(_.sortIndex=g,s(p,_),U||w||(U=!0,he||(he=!0,Xe()))),_},c.unstable_shouldYield=Je,c.unstable_wrapCallback=function(_){var X=N;return function(){var P=N;N=X;try{return _.apply(this,arguments)}finally{N=P}}}}(Nf)),Nf}var Bd;function Ly(){return Bd||(Bd=1,Rf.exports=wy()),Rf.exports}var Of={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 qd;function Yy(){if(qd)return Ke;qd=1;var c=jf();function s(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)h+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var f={d:{f:o,r:function(){throw Error(s(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},d=Symbol.for("react.portal");function v(p,h,z){var H=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:H==null?null:""+H,children:p,containerInfo:h,implementation:z}}var x=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function M(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,Ke.createPortal=function(p,h){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(s(299));return v(p,h,null,z)},Ke.flushSync=function(p){var h=x.T,z=f.p;try{if(x.T=null,f.p=2,p)return p()}finally{x.T=h,f.p=z,f.d.f()}},Ke.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,f.d.C(p,h))},Ke.prefetchDNS=function(p){typeof p=="string"&&f.d.D(p)},Ke.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var z=h.as,H=M(z,h.crossOrigin),N=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;z==="style"?f.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:H,integrity:N,fetchPriority:w}):z==="script"&&f.d.X(p,{crossOrigin:H,integrity:N,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Ke.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var z=M(h.as,h.crossOrigin);f.d.M(p,{crossOrigin:z,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&f.d.M(p)},Ke.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var z=h.as,H=M(z,h.crossOrigin);f.d.L(p,z,{crossOrigin:H,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Ke.preloadModule=function(p,h){if(typeof p=="string")if(h){var z=M(h.as,h.crossOrigin);f.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:z,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else f.d.m(p)},Ke.requestFormReset=function(p){f.d.r(p)},Ke.unstable_batchedUpdates=function(p,h){return p(h)},Ke.useFormState=function(p,h,z){return x.H.useFormState(p,h,z)},Ke.useFormStatus=function(){return x.H.useHostTransitionStatus()},Ke.version="19.1.0",Ke}var wd;function Gy(){if(wd)return Of.exports;wd=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(s){console.error(s)}}return c(),Of.exports=Yy(),Of.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 Ld;function Xy(){if(Ld)return Du;Ld=1;var c=Ly(),s=jf(),o=Gy();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 x(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 M(e){if(v(e)!==e)throw Error(f(188))}function p(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 M(u),e;if(n===a)return M(u),t;n=n.sibling}throw Error(f(188))}if(l.return!==a.return)l=u,a=n;else{for(var i=!1,r=u.child;r;){if(r===l){i=!0,l=u,a=n;break}if(r===a){i=!0,a=u,l=n;break}r=r.sibling}if(!i){for(r=n.child;r;){if(r===l){i=!0,l=n,a=u;break}if(r===a){i=!0,a=n,l=u;break}r=r.sibling}if(!i)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 h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,H=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),Te=Symbol.for("react.memo"),ze=Symbol.for("react.lazy"),Se=Symbol.for("react.activity"),Je=Symbol.for("react.memo_cache_sentinel"),st=Symbol.iterator;function Xe(e){return e===null||typeof e!="object"?null:(e=st&&e[st]||e["@@iterator"],typeof e=="function"?e:null)}var xl=Symbol.for("react.client.reference");function El(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xl?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case Z:return"Profiler";case Y:return"StrictMode";case K:return"Suspense";case he:return"SuspenseList";case Se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case F:return(e.displayName||"Context")+".Provider";case L:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Te:return t=e.displayName||null,t!==null?t:El(e.type)||"Memo";case ze:t=e._payload,e=e._init;try{return El(e(t))}catch{}}return null}var Qe=Array.isArray,_=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},ge=[],g=-1;function q(e){return{current:e}}function Q(e){0>g||(e.current=ge[g],ge[g]=null,g--)}function G(e,t){g++,ge[g]=e.current,e.current=t}var k=q(null),fe=q(null),ee=q(null),et=q(null);function xe(e,t){switch(G(ee,t),G(fe,e),G(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nd(t),e=id(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(k),G(k,e)}function $t(){Q(k),Q(fe),Q(ee)}function ii(e){e.memoizedState!==null&&G(et,e);var t=k.current,l=id(t,e.type);t!==l&&(G(fe,e),G(k,l))}function wu(e){fe.current===e&&(Q(k),Q(fe)),et.current===e&&(Q(et),Au._currentValue=P)}var ci=Object.prototype.hasOwnProperty,fi=c.unstable_scheduleCallback,ri=c.unstable_cancelCallback,dh=c.unstable_shouldYield,hh=c.unstable_requestPaint,Tt=c.unstable_now,mh=c.unstable_getCurrentPriorityLevel,wf=c.unstable_ImmediatePriority,Lf=c.unstable_UserBlockingPriority,Lu=c.unstable_NormalPriority,yh=c.unstable_LowPriority,Yf=c.unstable_IdlePriority,vh=c.log,gh=c.unstable_setDisableYieldValue,ja=null,tt=null;function Wt(e){if(typeof vh=="function"&&gh(e),tt&&typeof tt.setStrictMode=="function")try{tt.setStrictMode(ja,e)}catch{}}var lt=Math.clz32?Math.clz32:Sh,bh=Math.log,ph=Math.LN2;function Sh(e){return e>>>=0,e===0?32:31-(bh(e)/ph|0)|0}var Yu=256,Gu=4194304;function Tl(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 Xu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var u=0,n=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var r=a&134217727;return r!==0?(a=r&~n,a!==0?u=Tl(a):(i&=r,i!==0?u=Tl(i):l||(l=r&~e,l!==0&&(u=Tl(l))))):(r=a&~n,r!==0?u=Tl(r):i!==0?u=Tl(i):l||(l=a&~e,l!==0&&(u=Tl(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 Ca(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xh(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 Gf(){var e=Yu;return Yu<<=1,(Yu&4194048)===0&&(Yu=256),e}function Xf(){var e=Gu;return Gu<<=1,(Gu&62914560)===0&&(Gu=4194304),e}function si(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ua(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Eh(e,t,l,a,u,n){var i=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,m=e.expirationTimes,T=e.hiddenUpdates;for(l=i&~l;0<l;){var D=31-lt(l),C=1<<D;r[D]=0,m[D]=-1;var A=T[D];if(A!==null)for(T[D]=null,D=0;D<A.length;D++){var R=A[D];R!==null&&(R.lane&=-536870913)}l&=~C}a!==0&&Qf(e,a,0),n!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=n&~(i&~t))}function Qf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-lt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function Zf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-lt(l),u=1<<a;u&t|e[a]&t&&(e[a]|=t),l&=~u}}function oi(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 di(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vf(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Rd(e.type))}function Th(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var Ft=Math.random().toString(36).slice(2),Ze="__reactFiber$"+Ft,$e="__reactProps$"+Ft,Ql="__reactContainer$"+Ft,hi="__reactEvents$"+Ft,Ah="__reactListeners$"+Ft,Rh="__reactHandles$"+Ft,Kf="__reactResources$"+Ft,Ha="__reactMarker$"+Ft;function mi(e){delete e[Ze],delete e[$e],delete e[hi],delete e[Ah],delete e[Rh]}function Zl(e){var t=e[Ze];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ql]||l[Ze]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=sd(e);e!==null;){if(l=e[Ze])return l;e=sd(e)}return t}e=l,l=e.parentNode}return null}function Vl(e){if(e=e[Ze]||e[Ql]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ba(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function Kl(e){var t=e[Kf];return t||(t=e[Kf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function He(e){e[Ha]=!0}var Jf=new Set,kf={};function Al(e,t){Jl(e,t),Jl(e+"Capture",t)}function Jl(e,t){for(kf[e]=t,e=0;e<t.length;e++)Jf.add(t[e])}var Nh=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]*$"),$f={},Wf={};function Oh(e){return ci.call(Wf,e)?!0:ci.call($f,e)?!1:Nh.test(e)?Wf[e]=!0:($f[e]=!0,!1)}function Qu(e,t,l){if(Oh(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 Zu(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 _t(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 yi,Ff;function kl(e){if(yi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);yi=t&&t[1]||"",Ff=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+yi+e+Ff}var vi=!1;function gi(e,t){if(!e||vi)return"";vi=!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(R){var A=R}Reflect.construct(e,[],C)}else{try{C.call()}catch(R){A=R}e.call(C.prototype)}}else{try{throw Error()}catch(R){A=R}(C=e())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(R){if(R&&A&&typeof R.stack=="string")return[R.stack,A.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(),i=n[0],r=n[1];if(i&&r){var m=i.split(`
`),T=r.split(`
`);for(u=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;if(a===m.length||u===T.length)for(a=m.length-1,u=T.length-1;1<=a&&0<=u&&m[a]!==T[u];)u--;for(;1<=a&&0<=u;a--,u--)if(m[a]!==T[u]){if(a!==1||u!==1)do if(a--,u--,0>u||m[a]!==T[u]){var D=`
`+m[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=u);break}}}finally{vi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?kl(l):""}function zh(e){switch(e.tag){case 26:case 27:case 5:return kl(e.type);case 16:return kl("Lazy");case 13:return kl("Suspense");case 19:return kl("SuspenseList");case 0:case 15:return gi(e.type,!1);case 11:return gi(e.type.render,!1);case 1:return gi(e.type,!0);case 31:return kl("Activity");default:return""}}function Pf(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 ot(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function If(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mh(e){var t=If(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(i){a=""+i,n.call(this,i)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vu(e){e._valueTracker||(e._valueTracker=Mh(e))}function er(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=If(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ku(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 Dh=/[\n"\\]/g;function dt(e){return e.replace(Dh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bi(e,t,l,a,u,n,i,r){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ot(t)):e.value!==""+ot(t)&&(e.value=""+ot(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?pi(e,i,ot(t)):l!=null?pi(e,i,ot(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=""+ot(r):e.removeAttribute("name")}function tr(e,t,l,a,u,n,i,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?""+ot(l):"",t=t!=null?""+ot(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,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i)}function pi(e,t,l){t==="number"&&Ku(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function $l(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=""+ot(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 lr(e,t,l){if(t!=null&&(t=""+ot(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+ot(l):""}function ar(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=ot(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function Wl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var _h=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 ur(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||_h.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function nr(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&&ur(e,u,a)}else for(var n in t)t.hasOwnProperty(n)&&ur(e,n,t[n])}function Si(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 jh=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"]]),Ch=/^[\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 Ju(e){return Ch.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var xi=null;function Ei(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,Pl=null;function ir(e){var t=Vl(e);if(t&&(e=t.stateNode)){var l=e[$e]||null;e:switch(e=t.stateNode,t.type){case"input":if(bi(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="'+dt(""+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));bi(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&&er(a)}break e;case"textarea":lr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&$l(e,!!l.multiple,t,!1)}}}var Ti=!1;function cr(e,t,l){if(Ti)return e(t,l);Ti=!0;try{var a=e(t);return a}finally{if(Ti=!1,(Fl!==null||Pl!==null)&&(Cn(),Fl&&(t=Fl,e=Pl,Pl=Fl=null,ir(t),e)))for(t=0;t<e.length;t++)ir(e[t])}}function qa(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 jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ai=!1;if(jt)try{var wa={};Object.defineProperty(wa,"passive",{get:function(){Ai=!0}}),window.addEventListener("test",wa,wa),window.removeEventListener("test",wa,wa)}catch{Ai=!1}var Pt=null,Ri=null,ku=null;function fr(){if(ku)return ku;var e,t=Ri,l=t.length,a,u="value"in Pt?Pt.value:Pt.textContent,n=u.length;for(e=0;e<l&&t[e]===u[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===u[n-a];a++);return ku=u.slice(e,1<a?1-a:void 0)}function $u(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 Wu(){return!0}function rr(){return!1}function We(e){function t(l,a,u,n,i){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=n,this.target=i,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)?Wu:rr,this.isPropagationStopped=rr,this}return z(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=Wu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wu)},persist:function(){},isPersistent:Wu}),t}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fu=We(Rl),La=z({},Rl,{view:0,detail:0}),Uh=We(La),Ni,Oi,Ya,Pu=z({},La,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mi,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!==Ya&&(Ya&&e.type==="mousemove"?(Ni=e.screenX-Ya.screenX,Oi=e.screenY-Ya.screenY):Oi=Ni=0,Ya=e),Ni)},movementY:function(e){return"movementY"in e?e.movementY:Oi}}),sr=We(Pu),Hh=z({},Pu,{dataTransfer:0}),Bh=We(Hh),qh=z({},La,{relatedTarget:0}),zi=We(qh),wh=z({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),Lh=We(wh),Yh=z({},Rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gh=We(Yh),Xh=z({},Rl,{data:0}),or=We(Xh),Qh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zh={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"},Vh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vh[e])?!!t[e]:!1}function Mi(){return Kh}var Jh=z({},La,{key:function(e){if(e.key){var t=Qh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$u(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mi,charCode:function(e){return e.type==="keypress"?$u(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$u(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kh=We(Jh),$h=z({},Pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dr=We($h),Wh=z({},La,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mi}),Fh=We(Wh),Ph=z({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ih=We(Ph),em=z({},Pu,{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}),tm=We(em),lm=z({},Rl,{newState:0,oldState:0}),am=We(lm),um=[9,13,27,32],Di=jt&&"CompositionEvent"in window,Ga=null;jt&&"documentMode"in document&&(Ga=document.documentMode);var nm=jt&&"TextEvent"in window&&!Ga,hr=jt&&(!Di||Ga&&8<Ga&&11>=Ga),mr=" ",yr=!1;function vr(e,t){switch(e){case"keyup":return um.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Il=!1;function im(e,t){switch(e){case"compositionend":return gr(t);case"keypress":return t.which!==32?null:(yr=!0,mr);case"textInput":return e=t.data,e===mr&&yr?null:e;default:return null}}function cm(e,t){if(Il)return e==="compositionend"||!Di&&vr(e,t)?(e=fr(),ku=Ri=Pt=null,Il=!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 hr&&t.locale!=="ko"?null:t.data;default:return null}}var fm={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 br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fm[e.type]:t==="textarea"}function pr(e,t,l,a){Fl?Pl?Pl.push(a):Pl=[a]:Fl=a,t=Ln(t,"onChange"),0<t.length&&(l=new Fu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Xa=null,Qa=null;function rm(e){ed(e,0)}function Iu(e){var t=Ba(e);if(er(t))return e}function Sr(e,t){if(e==="change")return t}var xr=!1;if(jt){var _i;if(jt){var ji="oninput"in document;if(!ji){var Er=document.createElement("div");Er.setAttribute("oninput","return;"),ji=typeof Er.oninput=="function"}_i=ji}else _i=!1;xr=_i&&(!document.documentMode||9<document.documentMode)}function Tr(){Xa&&(Xa.detachEvent("onpropertychange",Ar),Qa=Xa=null)}function Ar(e){if(e.propertyName==="value"&&Iu(Qa)){var t=[];pr(t,Qa,e,Ei(e)),cr(rm,t)}}function sm(e,t,l){e==="focusin"?(Tr(),Xa=t,Qa=l,Xa.attachEvent("onpropertychange",Ar)):e==="focusout"&&Tr()}function om(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Iu(Qa)}function dm(e,t){if(e==="click")return Iu(t)}function hm(e,t){if(e==="input"||e==="change")return Iu(t)}function mm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var at=typeof Object.is=="function"?Object.is:mm;function Za(e,t){if(at(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(!ci.call(t,u)||!at(e[u],t[u]))return!1}return!0}function Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nr(e,t){var l=Rr(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=Rr(l)}}function Or(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Or(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ku(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=Ku(e.document)}return t}function Ci(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 ym=jt&&"documentMode"in document&&11>=document.documentMode,ea=null,Ui=null,Va=null,Hi=!1;function Mr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hi||ea==null||ea!==Ku(a)||(a=ea,"selectionStart"in a&&Ci(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}),Va&&Za(Va,a)||(Va=a,a=Ln(Ui,"onSelect"),0<a.length&&(t=new Fu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ea)))}function Nl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ta={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionrun:Nl("Transition","TransitionRun"),transitionstart:Nl("Transition","TransitionStart"),transitioncancel:Nl("Transition","TransitionCancel"),transitionend:Nl("Transition","TransitionEnd")},Bi={},Dr={};jt&&(Dr=document.createElement("div").style,"AnimationEvent"in window||(delete ta.animationend.animation,delete ta.animationiteration.animation,delete ta.animationstart.animation),"TransitionEvent"in window||delete ta.transitionend.transition);function Ol(e){if(Bi[e])return Bi[e];if(!ta[e])return e;var t=ta[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Dr)return Bi[e]=t[l];return e}var _r=Ol("animationend"),jr=Ol("animationiteration"),Cr=Ol("animationstart"),vm=Ol("transitionrun"),gm=Ol("transitionstart"),bm=Ol("transitioncancel"),Ur=Ol("transitionend"),Hr=new Map,qi="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(" ");qi.push("scrollEnd");function St(e,t){Hr.set(e,t),Al(t,[e])}var Br=new WeakMap;function ht(e,t){if(typeof e=="object"&&e!==null){var l=Br.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Pf(t)},Br.set(e,t),t)}return{value:e,source:t,stack:Pf(t)}}var mt=[],la=0,wi=0;function en(){for(var e=la,t=wi=la=0;t<e;){var l=mt[t];mt[t++]=null;var a=mt[t];mt[t++]=null;var u=mt[t];mt[t++]=null;var n=mt[t];if(mt[t++]=null,a!==null&&u!==null){var i=a.pending;i===null?u.next=u:(u.next=i.next,i.next=u),a.pending=u}n!==0&&qr(l,u,n)}}function tn(e,t,l,a){mt[la++]=e,mt[la++]=t,mt[la++]=l,mt[la++]=a,wi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Li(e,t,l,a){return tn(e,t,l,a),ln(e)}function aa(e,t){return tn(e,null,null,t),ln(e)}function qr(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-lt(l),e=n.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=l|536870912),n):null}function ln(e){if(50<vu)throw vu=0,Vc=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ua={};function pm(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 ut(e,t,l,a){return new pm(e,t,l,a)}function Yi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ct(e,t){var l=e.alternate;return l===null?(l=ut(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 wr(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 an(e,t,l,a,u,n){var i=0;if(a=e,typeof e=="function")Yi(e)&&(i=1);else if(typeof e=="string")i=xy(e,l,k.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Se:return e=ut(31,l,t,u),e.elementType=Se,e.lanes=n,e;case U:return zl(l.children,u,n,t);case Y:i=8,u|=24;break;case Z:return e=ut(12,l,t,u|2),e.elementType=Z,e.lanes=n,e;case K:return e=ut(13,l,t,u),e.elementType=K,e.lanes=n,e;case he:return e=ut(19,l,t,u),e.elementType=he,e.lanes=n,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:case F:i=10;break e;case L:i=9;break e;case ie:i=11;break e;case Te:i=14;break e;case ze:i=16,a=null;break e}i=29,l=Error(f(130,e===null?"null":typeof e,"")),a=null}return t=ut(i,l,t,u),t.elementType=e,t.type=a,t.lanes=n,t}function zl(e,t,l,a){return e=ut(7,e,a,t),e.lanes=l,e}function Gi(e,t,l){return e=ut(6,e,null,t),e.lanes=l,e}function Xi(e,t,l){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var na=[],ia=0,un=null,nn=0,yt=[],vt=0,Ml=null,Ut=1,Ht="";function Dl(e,t){na[ia++]=nn,na[ia++]=un,un=e,nn=t}function Lr(e,t,l){yt[vt++]=Ut,yt[vt++]=Ht,yt[vt++]=Ml,Ml=e;var a=Ut;e=Ht;var u=32-lt(a)-1;a&=~(1<<u),l+=1;var n=32-lt(t)+u;if(30<n){var i=u-u%5;n=(a&(1<<i)-1).toString(32),a>>=i,u-=i,Ut=1<<32-lt(t)+u|l<<u|a,Ht=n+e}else Ut=1<<n|l<<u|a,Ht=e}function Qi(e){e.return!==null&&(Dl(e,1),Lr(e,1,0))}function Zi(e){for(;e===un;)un=na[--ia],na[ia]=null,nn=na[--ia],na[ia]=null;for(;e===Ml;)Ml=yt[--vt],yt[vt]=null,Ht=yt[--vt],yt[vt]=null,Ut=yt[--vt],yt[vt]=null}var ke=null,Ne=null,se=!1,_l=null,At=!1,Vi=Error(f(519));function jl(e){var t=Error(f(418,""));throw ka(ht(t,e)),Vi}function Yr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ze]=e,t[$e]=a,l){case"dialog":ne("cancel",t),ne("close",t);break;case"iframe":case"object":case"embed":ne("load",t);break;case"video":case"audio":for(l=0;l<bu.length;l++)ne(bu[l],t);break;case"source":ne("error",t);break;case"img":case"image":case"link":ne("error",t),ne("load",t);break;case"details":ne("toggle",t);break;case"input":ne("invalid",t),tr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Vu(t);break;case"select":ne("invalid",t);break;case"textarea":ne("invalid",t),ar(t,a.value,a.defaultValue,a.children),Vu(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||ud(t.textContent,l)?(a.popover!=null&&(ne("beforetoggle",t),ne("toggle",t)),a.onScroll!=null&&ne("scroll",t),a.onScrollEnd!=null&&ne("scrollend",t),a.onClick!=null&&(t.onclick=Yn),t=!0):t=!1,t||jl(e)}function Gr(e){for(ke=e.return;ke;)switch(ke.tag){case 5:case 13:At=!1;return;case 27:case 3:At=!0;return;default:ke=ke.return}}function Ka(e){if(e!==ke)return!1;if(!se)return Gr(e),se=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ff(e.type,e.memoizedProps)),l=!l),l&&Ne&&jl(e),Gr(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){Ne=Et(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Ne=null}}else t===27?(t=Ne,ml(e.type)?(e=df,df=null,Ne=e):Ne=t):Ne=ke?Et(e.stateNode.nextSibling):null;return!0}function Ja(){Ne=ke=null,se=!1}function Xr(){var e=_l;return e!==null&&(Ie===null?Ie=e:Ie.push.apply(Ie,e),_l=null),e}function ka(e){_l===null?_l=[e]:_l.push(e)}var Ki=q(null),Cl=null,Bt=null;function It(e,t,l){G(Ki,t._currentValue),t._currentValue=l}function qt(e){e._currentValue=Ki.current,Q(Ki)}function Ji(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 ki(e,t,l,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var n=u.dependencies;if(n!==null){var i=u.child;n=n.firstContext;e:for(;n!==null;){var r=n;n=u;for(var m=0;m<t.length;m++)if(r.context===t[m]){n.lanes|=l,r=n.alternate,r!==null&&(r.lanes|=l),Ji(n.return,l,e),a||(i=null);break e}n=r.next}}else if(u.tag===18){if(i=u.return,i===null)throw Error(f(341));i.lanes|=l,n=i.alternate,n!==null&&(n.lanes|=l),Ji(i,l,e),i=null}else i=u.child;if(i!==null)i.return=u;else for(i=u;i!==null;){if(i===e){i=null;break}if(u=i.sibling,u!==null){u.return=i.return,i=u;break}i=i.return}u=i}}function $a(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 i=u.alternate;if(i===null)throw Error(f(387));if(i=i.memoizedProps,i!==null){var r=u.type;at(u.pendingProps.value,i.value)||(e!==null?e.push(r):e=[r])}}else if(u===et.current){if(i=u.alternate,i===null)throw Error(f(387));i.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Au):e=[Au])}u=u.return}e!==null&&ki(t,e,l,a),t.flags|=262144}function cn(e){for(e=e.firstContext;e!==null;){if(!at(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ul(e){Cl=e,Bt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return Qr(Cl,e)}function fn(e,t){return Cl===null&&Ul(e),Qr(e,t)}function Qr(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Bt===null){if(e===null)throw Error(f(308));Bt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Bt=Bt.next=t;return l}var Sm=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()})}},xm=c.unstable_scheduleCallback,Em=c.unstable_NormalPriority,Ce={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $i(){return{controller:new Sm,data:new Map,refCount:0}}function Wa(e){e.refCount--,e.refCount===0&&xm(Em,function(){e.controller.abort()})}var Fa=null,Wi=0,ca=0,fa=null;function Tm(e,t){if(Fa===null){var l=Fa=[];Wi=0,ca=Pc(),fa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Wi++,t.then(Zr,Zr),t}function Zr(){if(--Wi===0&&Fa!==null){fa!==null&&(fa.status="fulfilled");var e=Fa;Fa=null,ca=0,fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Am(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 Vr=_.S;_.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Tm(e,t),Vr!==null&&Vr(e,t)};var Hl=q(null);function Fi(){var e=Hl.current;return e!==null?e:pe.pooledCache}function rn(e,t){t===null?G(Hl,Hl.current):G(Hl,t.pool)}function Kr(){var e=Fi();return e===null?null:{parent:Ce._currentValue,pool:e}}var Pa=Error(f(460)),Jr=Error(f(474)),sn=Error(f(542)),Pi={then:function(){}};function kr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function on(){}function $r(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(on,on),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fr(e),e;default:if(typeof t.status=="string")t.then(on,on);else{if(e=pe,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,Fr(e),e}throw Ia=t,Pa}}var Ia=null;function Wr(){if(Ia===null)throw Error(f(459));var e=Ia;return Ia=null,e}function Fr(e){if(e===Pa||e===sn)throw Error(f(483))}var el=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ec(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 tl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ll(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(oe&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=ln(e),qr(e,null,l),t}return tn(e,a,t,l),ln(e)}function eu(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,Zf(e,l)}}function tc(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 i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};n===null?u=n=i:n=n.next=i,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 lc=!1;function tu(){if(lc){var e=fa;if(e!==null)throw e}}function lu(e,t,l,a){lc=!1;var u=e.updateQueue;el=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,r=u.shared.pending;if(r!==null){u.shared.pending=null;var m=r,T=m.next;m.next=null,i===null?n=T:i.next=T,i=m;var D=e.alternate;D!==null&&(D=D.updateQueue,r=D.lastBaseUpdate,r!==i&&(r===null?D.firstBaseUpdate=T:r.next=T,D.lastBaseUpdate=m))}if(n!==null){var C=u.baseState;i=0,D=T=m=null,r=n;do{var A=r.lane&-536870913,R=A!==r.lane;if(R?(ce&A)===A:(a&A)===A){A!==0&&A===ca&&(lc=!0),D!==null&&(D=D.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var I=e,$=r;A=t;var ve=l;switch($.tag){case 1:if(I=$.payload,typeof I=="function"){C=I.call(ve,C,A);break e}C=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=$.payload,A=typeof I=="function"?I.call(ve,C,A):I,A==null)break e;C=z({},C,A);break e;case 2:el=!0}}A=r.callback,A!==null&&(e.flags|=64,R&&(e.flags|=8192),R=u.callbacks,R===null?u.callbacks=[A]:R.push(A))}else R={lane:A,tag:r.tag,payload:r.payload,callback:r.callback,next:null},D===null?(T=D=R,m=C):D=D.next=R,i|=A;if(r=r.next,r===null){if(r=u.shared.pending,r===null)break;R=r,r=R.next,R.next=null,u.lastBaseUpdate=R,u.shared.pending=null}}while(!0);D===null&&(m=C),u.baseState=m,u.firstBaseUpdate=T,u.lastBaseUpdate=D,n===null&&(u.shared.lanes=0),sl|=i,e.lanes=i,e.memoizedState=C}}function Pr(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function Ir(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Pr(l[e],t)}var ra=q(null),dn=q(0);function es(e,t){e=Zt,G(dn,e),G(ra,t),Zt=e|t.baseLanes}function ac(){G(dn,Zt),G(ra,ra.current)}function uc(){Zt=dn.current,Q(ra),Q(dn)}var al=0,le=null,me=null,_e=null,hn=!1,sa=!1,Bl=!1,mn=0,au=0,oa=null,Rm=0;function Me(){throw Error(f(321))}function nc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!at(e[l],t[l]))return!1;return!0}function ic(e,t,l,a,u,n){return al=n,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?qs:ws,Bl=!1,n=l(a,u),Bl=!1,sa&&(n=ls(t,l,a,u)),ts(e),n}function ts(e){_.H=Sn;var t=me!==null&&me.next!==null;if(al=0,_e=me=le=null,hn=!1,au=0,oa=null,t)throw Error(f(300));e===null||Be||(e=e.dependencies,e!==null&&cn(e)&&(Be=!0))}function ls(e,t,l,a){le=e;var u=0;do{if(sa&&(oa=null),au=0,sa=!1,25<=u)throw Error(f(301));if(u+=1,_e=me=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}_.H=jm,n=t(l,a)}while(sa);return n}function Nm(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?uu(t):t,e=e.useState()[0],(me!==null?me.memoizedState:null)!==e&&(le.flags|=1024),t}function cc(){var e=mn!==0;return mn=0,e}function fc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function rc(e){if(hn){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hn=!1}al=0,_e=me=le=null,sa=!1,au=mn=0,oa=null}function Fe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?le.memoizedState=_e=e:_e=_e.next=e,_e}function je(){if(me===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=me.next;var t=_e===null?le.memoizedState:_e.next;if(t!==null)_e=t,me=e;else{if(e===null)throw le.alternate===null?Error(f(467)):Error(f(310));me=e,e={memoizedState:me.memoizedState,baseState:me.baseState,baseQueue:me.baseQueue,queue:me.queue,next:null},_e===null?le.memoizedState=_e=e:_e=_e.next=e}return _e}function sc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uu(e){var t=au;return au+=1,oa===null&&(oa=[]),e=$r(oa,e,t),t=le,(_e===null?t.memoizedState:_e.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?qs:ws),e}function yn(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return uu(e);if(e.$$typeof===F)return Ve(e)}throw Error(f(438,String(e)))}function oc(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=sc(),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 wt(e,t){return typeof t=="function"?t(e):t}function vn(e){var t=je();return dc(t,me,e)}function dc(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 i=u.next;u.next=n.next,n.next=i}t.baseQueue=u=n,a.pending=null}if(n=e.baseState,u===null)e.memoizedState=n;else{t=u.next;var r=i=null,m=null,T=t,D=!1;do{var C=T.lane&-536870913;if(C!==T.lane?(ce&C)===C:(al&C)===C){var A=T.revertLane;if(A===0)m!==null&&(m=m.next={lane:0,revertLane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),C===ca&&(D=!0);else if((al&A)===A){T=T.next,A===ca&&(D=!0);continue}else C={lane:0,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},m===null?(r=m=C,i=n):m=m.next=C,le.lanes|=A,sl|=A;C=T.action,Bl&&l(n,C),n=T.hasEagerState?T.eagerState:l(n,C)}else A={lane:C,revertLane:T.revertLane,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},m===null?(r=m=A,i=n):m=m.next=A,le.lanes|=C,sl|=C;T=T.next}while(T!==null&&T!==t);if(m===null?i=n:m.next=r,!at(n,e.memoizedState)&&(Be=!0,D&&(l=fa,l!==null)))throw l;e.memoizedState=n,e.baseState=i,e.baseQueue=m,a.lastRenderedState=n}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function hc(e){var t=je(),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 i=u=u.next;do n=e(n,i.action),i=i.next;while(i!==u);at(n,t.memoizedState)||(Be=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),l.lastRenderedState=n}return[n,a]}function as(e,t,l){var a=le,u=je(),n=se;if(n){if(l===void 0)throw Error(f(407));l=l()}else l=t();var i=!at((me||u).memoizedState,l);i&&(u.memoizedState=l,Be=!0),u=u.queue;var r=is.bind(null,a,u,e);if(nu(2048,8,r,[e]),u.getSnapshot!==t||i||_e!==null&&_e.memoizedState.tag&1){if(a.flags|=2048,da(9,gn(),ns.bind(null,a,u,l,t),null),pe===null)throw Error(f(349));n||(al&124)!==0||us(a,t,l)}return l}function us(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=sc(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ns(e,t,l,a){t.value=l,t.getSnapshot=a,cs(t)&&fs(e)}function is(e,t,l){return l(function(){cs(t)&&fs(e)})}function cs(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!at(e,l)}catch{return!0}}function fs(e){var t=aa(e,2);t!==null&&rt(t,e,2)}function mc(e){var t=Fe();if(typeof e=="function"){var l=e;if(e=l(),Bl){Wt(!0);try{l()}finally{Wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wt,lastRenderedState:e},t}function rs(e,t,l,a){return e.baseState=l,dc(e,me,typeof a=="function"?a:wt)}function Om(e,t,l,a,u){if(pn(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(i){n.listeners.push(i)}};_.T!==null?l(!0):n.isTransition=!1,a(n),l=t.pending,l===null?(n.next=t.pending=n,ss(t,n)):(n.next=l.next,t.pending=l.next=n)}}function ss(e,t){var l=t.action,a=t.payload,u=e.state;if(t.isTransition){var n=_.T,i={};_.T=i;try{var r=l(u,a),m=_.S;m!==null&&m(i,r),os(e,t,r)}catch(T){yc(e,t,T)}finally{_.T=n}}else try{n=l(u,a),os(e,t,n)}catch(T){yc(e,t,T)}}function os(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ds(e,t,a)},function(a){return yc(e,t,a)}):ds(e,t,l)}function ds(e,t,l){t.status="fulfilled",t.value=l,hs(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ss(e,l)))}function yc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,hs(t),t=t.next;while(t!==a)}e.action=null}function hs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ms(e,t){return t}function ys(e,t){if(se){var l=pe.formState;if(l!==null){e:{var a=le;if(se){if(Ne){t:{for(var u=Ne,n=At;u.nodeType!==8;){if(!n){u=null;break t}if(u=Et(u.nextSibling),u===null){u=null;break t}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){Ne=Et(u.nextSibling),a=u.data==="F!";break e}}jl(a)}a=!1}a&&(t=l[0])}}return l=Fe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:t},l.queue=a,l=Us.bind(null,le,a),a.dispatch=l,a=mc(!1),n=Sc.bind(null,le,!1,a.queue),a=Fe(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,l=Om.bind(null,le,u,n,l),u.dispatch=l,a.memoizedState=e,[t,l,!1]}function vs(e){var t=je();return gs(t,me,e)}function gs(e,t,l){if(t=dc(e,t,ms)[0],e=vn(wt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=uu(t)}catch(i){throw i===Pa?sn:i}else a=t;t=je();var u=t.queue,n=u.dispatch;return l!==t.memoizedState&&(le.flags|=2048,da(9,gn(),zm.bind(null,u,l),null)),[a,n,e]}function zm(e,t){e.action=t}function bs(e){var t=je(),l=me;if(l!==null)return gs(t,l,e);je(),t=t.memoizedState,l=je();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function da(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=sc(),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 gn(){return{destroy:void 0,resource:void 0}}function ps(){return je().memoizedState}function bn(e,t,l,a){var u=Fe();a=a===void 0?null:a,le.flags|=e,u.memoizedState=da(1|t,gn(),l,a)}function nu(e,t,l,a){var u=je();a=a===void 0?null:a;var n=u.memoizedState.inst;me!==null&&a!==null&&nc(a,me.memoizedState.deps)?u.memoizedState=da(t,n,l,a):(le.flags|=e,u.memoizedState=da(1|t,n,l,a))}function Ss(e,t){bn(8390656,8,e,t)}function xs(e,t){nu(2048,8,e,t)}function Es(e,t){return nu(4,2,e,t)}function Ts(e,t){return nu(4,4,e,t)}function As(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 Rs(e,t,l){l=l!=null?l.concat([e]):null,nu(4,4,As.bind(null,t,e),l)}function vc(){}function Ns(e,t){var l=je();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&nc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Os(e,t){var l=je();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&nc(t,a[1]))return a[0];if(a=e(),Bl){Wt(!0);try{e()}finally{Wt(!1)}}return l.memoizedState=[a,t],a}function gc(e,t,l){return l===void 0||(al&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=_o(),le.lanes|=e,sl|=e,l)}function zs(e,t,l,a){return at(l,t)?l:ra.current!==null?(e=gc(e,l,a),at(e,t)||(Be=!0),e):(al&42)===0?(Be=!0,e.memoizedState=l):(e=_o(),le.lanes|=e,sl|=e,t)}function Ms(e,t,l,a,u){var n=X.p;X.p=n!==0&&8>n?n:8;var i=_.T,r={};_.T=r,Sc(e,!1,t,l);try{var m=u(),T=_.S;if(T!==null&&T(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var D=Am(m,a);iu(e,t,D,ft(e))}else iu(e,t,a,ft(e))}catch(C){iu(e,t,{then:function(){},status:"rejected",reason:C},ft())}finally{X.p=n,_.T=i}}function Mm(){}function bc(e,t,l,a){if(e.tag!==5)throw Error(f(476));var u=Ds(e).queue;Ms(e,u,t,P,l===null?Mm: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:wt,lastRenderedState:P},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wt,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;iu(e,t,{},ft())}function pc(){return Ve(Au)}function js(){return je().memoizedState}function Cs(){return je().memoizedState}function Dm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=ft();e=tl(l);var a=ll(t,e,l);a!==null&&(rt(a,t,l),eu(a,t,l)),t={cache:$i()},e.payload=t;return}t=t.return}}function _m(e,t,l){var a=ft();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},pn(e)?Hs(t,l):(l=Li(e,t,l,a),l!==null&&(rt(l,e,a),Bs(l,t,a)))}function Us(e,t,l){var a=ft();iu(e,t,l,a)}function iu(e,t,l,a){var u={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(pn(e))Hs(t,u);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,r=n(i,l);if(u.hasEagerState=!0,u.eagerState=r,at(r,i))return tn(e,t,u,0),pe===null&&en(),!1}catch{}finally{}if(l=Li(e,t,u,a),l!==null)return rt(l,e,a),Bs(l,t,a),!0}return!1}function Sc(e,t,l,a){if(a={lane:2,revertLane:Pc(),action:a,hasEagerState:!1,eagerState:null,next:null},pn(e)){if(t)throw Error(f(479))}else t=Li(e,l,a,2),t!==null&&rt(t,e,2)}function pn(e){var t=e.alternate;return e===le||t!==null&&t===le}function Hs(e,t){sa=hn=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Bs(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Zf(e,l)}}var Sn={readContext:Ve,use:yn,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useLayoutEffect:Me,useInsertionEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useSyncExternalStore:Me,useId:Me,useHostTransitionStatus:Me,useFormState:Me,useActionState:Me,useOptimistic:Me,useMemoCache:Me,useCacheRefresh:Me},qs={readContext:Ve,use:yn,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:Ss,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,bn(4194308,4,As.bind(null,t,e),l)},useLayoutEffect:function(e,t){return bn(4194308,4,e,t)},useInsertionEffect:function(e,t){bn(4,2,e,t)},useMemo:function(e,t){var l=Fe();t=t===void 0?null:t;var a=e();if(Bl){Wt(!0);try{e()}finally{Wt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Fe();if(l!==void 0){var u=l(t);if(Bl){Wt(!0);try{l(t)}finally{Wt(!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=_m.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:function(e){e=mc(e);var t=e.queue,l=Us.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:vc,useDeferredValue:function(e,t){var l=Fe();return gc(l,e,t)},useTransition:function(){var e=mc(!1);return e=Ms.bind(null,le,e.queue,!0,!1),Fe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,u=Fe();if(se){if(l===void 0)throw Error(f(407));l=l()}else{if(l=t(),pe===null)throw Error(f(349));(ce&124)!==0||us(a,t,l)}u.memoizedState=l;var n={value:l,getSnapshot:t};return u.queue=n,Ss(is.bind(null,a,n,e),[e]),a.flags|=2048,da(9,gn(),ns.bind(null,a,n,l,t),null),l},useId:function(){var e=Fe(),t=pe.identifierPrefix;if(se){var l=Ht,a=Ut;l=(a&~(1<<32-lt(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=mn++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Rm++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:pc,useFormState:ys,useActionState:ys,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=Sc.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:oc,useCacheRefresh:function(){return Fe().memoizedState=Dm.bind(null,le)}},ws={readContext:Ve,use:yn,useCallback:Ns,useContext:Ve,useEffect:xs,useImperativeHandle:Rs,useInsertionEffect:Es,useLayoutEffect:Ts,useMemo:Os,useReducer:vn,useRef:ps,useState:function(){return vn(wt)},useDebugValue:vc,useDeferredValue:function(e,t){var l=je();return zs(l,me.memoizedState,e,t)},useTransition:function(){var e=vn(wt)[0],t=je().memoizedState;return[typeof e=="boolean"?e:uu(e),t]},useSyncExternalStore:as,useId:js,useHostTransitionStatus:pc,useFormState:vs,useActionState:vs,useOptimistic:function(e,t){var l=je();return rs(l,me,e,t)},useMemoCache:oc,useCacheRefresh:Cs},jm={readContext:Ve,use:yn,useCallback:Ns,useContext:Ve,useEffect:xs,useImperativeHandle:Rs,useInsertionEffect:Es,useLayoutEffect:Ts,useMemo:Os,useReducer:hc,useRef:ps,useState:function(){return hc(wt)},useDebugValue:vc,useDeferredValue:function(e,t){var l=je();return me===null?gc(l,e,t):zs(l,me.memoizedState,e,t)},useTransition:function(){var e=hc(wt)[0],t=je().memoizedState;return[typeof e=="boolean"?e:uu(e),t]},useSyncExternalStore:as,useId:js,useHostTransitionStatus:pc,useFormState:bs,useActionState:bs,useOptimistic:function(e,t){var l=je();return me!==null?rs(l,me,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:oc,useCacheRefresh:Cs},ha=null,cu=0;function xn(e){var t=cu;return cu+=1,ha===null&&(ha=[]),$r(ha,e,t)}function fu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function En(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 Ls(e){var t=e._init;return t(e._payload)}function Ys(e){function t(S,b){if(e){var E=S.deletions;E===null?(S.deletions=[b],S.flags|=16):E.push(b)}}function l(S,b){if(!e)return null;for(;b!==null;)t(S,b),b=b.sibling;return null}function a(S){for(var b=new Map;S!==null;)S.key!==null?b.set(S.key,S):b.set(S.index,S),S=S.sibling;return b}function u(S,b){return S=Ct(S,b),S.index=0,S.sibling=null,S}function n(S,b,E){return S.index=E,e?(E=S.alternate,E!==null?(E=E.index,E<b?(S.flags|=67108866,b):E):(S.flags|=67108866,b)):(S.flags|=1048576,b)}function i(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function r(S,b,E,j){return b===null||b.tag!==6?(b=Gi(E,S.mode,j),b.return=S,b):(b=u(b,E),b.return=S,b)}function m(S,b,E,j){var V=E.type;return V===U?D(S,b,E.props.children,j,E.key):b!==null&&(b.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===ze&&Ls(V)===b.type)?(b=u(b,E.props),fu(b,E),b.return=S,b):(b=an(E.type,E.key,E.props,null,S.mode,j),fu(b,E),b.return=S,b)}function T(S,b,E,j){return b===null||b.tag!==4||b.stateNode.containerInfo!==E.containerInfo||b.stateNode.implementation!==E.implementation?(b=Xi(E,S.mode,j),b.return=S,b):(b=u(b,E.children||[]),b.return=S,b)}function D(S,b,E,j,V){return b===null||b.tag!==7?(b=zl(E,S.mode,j,V),b.return=S,b):(b=u(b,E),b.return=S,b)}function C(S,b,E){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Gi(""+b,S.mode,E),b.return=S,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case N:return E=an(b.type,b.key,b.props,null,S.mode,E),fu(E,b),E.return=S,E;case w:return b=Xi(b,S.mode,E),b.return=S,b;case ze:var j=b._init;return b=j(b._payload),C(S,b,E)}if(Qe(b)||Xe(b))return b=zl(b,S.mode,E,null),b.return=S,b;if(typeof b.then=="function")return C(S,xn(b),E);if(b.$$typeof===F)return C(S,fn(S,b),E);En(S,b)}return null}function A(S,b,E,j){var V=b!==null?b.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return V!==null?null:r(S,b,""+E,j);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case N:return E.key===V?m(S,b,E,j):null;case w:return E.key===V?T(S,b,E,j):null;case ze:return V=E._init,E=V(E._payload),A(S,b,E,j)}if(Qe(E)||Xe(E))return V!==null?null:D(S,b,E,j,null);if(typeof E.then=="function")return A(S,b,xn(E),j);if(E.$$typeof===F)return A(S,b,fn(S,E),j);En(S,E)}return null}function R(S,b,E,j,V){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return S=S.get(E)||null,r(b,S,""+j,V);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case N:return S=S.get(j.key===null?E:j.key)||null,m(b,S,j,V);case w:return S=S.get(j.key===null?E:j.key)||null,T(b,S,j,V);case ze:var ae=j._init;return j=ae(j._payload),R(S,b,E,j,V)}if(Qe(j)||Xe(j))return S=S.get(E)||null,D(b,S,j,V,null);if(typeof j.then=="function")return R(S,b,E,xn(j),V);if(j.$$typeof===F)return R(S,b,E,fn(b,j),V);En(b,j)}return null}function I(S,b,E,j){for(var V=null,ae=null,J=b,W=b=0,we=null;J!==null&&W<E.length;W++){J.index>W?(we=J,J=null):we=J.sibling;var re=A(S,J,E[W],j);if(re===null){J===null&&(J=we);break}e&&J&&re.alternate===null&&t(S,J),b=n(re,b,W),ae===null?V=re:ae.sibling=re,ae=re,J=we}if(W===E.length)return l(S,J),se&&Dl(S,W),V;if(J===null){for(;W<E.length;W++)J=C(S,E[W],j),J!==null&&(b=n(J,b,W),ae===null?V=J:ae.sibling=J,ae=J);return se&&Dl(S,W),V}for(J=a(J);W<E.length;W++)we=R(J,S,W,E[W],j),we!==null&&(e&&we.alternate!==null&&J.delete(we.key===null?W:we.key),b=n(we,b,W),ae===null?V=we:ae.sibling=we,ae=we);return e&&J.forEach(function(pl){return t(S,pl)}),se&&Dl(S,W),V}function $(S,b,E,j){if(E==null)throw Error(f(151));for(var V=null,ae=null,J=b,W=b=0,we=null,re=E.next();J!==null&&!re.done;W++,re=E.next()){J.index>W?(we=J,J=null):we=J.sibling;var pl=A(S,J,re.value,j);if(pl===null){J===null&&(J=we);break}e&&J&&pl.alternate===null&&t(S,J),b=n(pl,b,W),ae===null?V=pl:ae.sibling=pl,ae=pl,J=we}if(re.done)return l(S,J),se&&Dl(S,W),V;if(J===null){for(;!re.done;W++,re=E.next())re=C(S,re.value,j),re!==null&&(b=n(re,b,W),ae===null?V=re:ae.sibling=re,ae=re);return se&&Dl(S,W),V}for(J=a(J);!re.done;W++,re=E.next())re=R(J,S,W,re.value,j),re!==null&&(e&&re.alternate!==null&&J.delete(re.key===null?W:re.key),b=n(re,b,W),ae===null?V=re:ae.sibling=re,ae=re);return e&&J.forEach(function(Cy){return t(S,Cy)}),se&&Dl(S,W),V}function ve(S,b,E,j){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 N:e:{for(var V=E.key;b!==null;){if(b.key===V){if(V=E.type,V===U){if(b.tag===7){l(S,b.sibling),j=u(b,E.props.children),j.return=S,S=j;break e}}else if(b.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===ze&&Ls(V)===b.type){l(S,b.sibling),j=u(b,E.props),fu(j,E),j.return=S,S=j;break e}l(S,b);break}else t(S,b);b=b.sibling}E.type===U?(j=zl(E.props.children,S.mode,j,E.key),j.return=S,S=j):(j=an(E.type,E.key,E.props,null,S.mode,j),fu(j,E),j.return=S,S=j)}return i(S);case w:e:{for(V=E.key;b!==null;){if(b.key===V)if(b.tag===4&&b.stateNode.containerInfo===E.containerInfo&&b.stateNode.implementation===E.implementation){l(S,b.sibling),j=u(b,E.children||[]),j.return=S,S=j;break e}else{l(S,b);break}else t(S,b);b=b.sibling}j=Xi(E,S.mode,j),j.return=S,S=j}return i(S);case ze:return V=E._init,E=V(E._payload),ve(S,b,E,j)}if(Qe(E))return I(S,b,E,j);if(Xe(E)){if(V=Xe(E),typeof V!="function")throw Error(f(150));return E=V.call(E),$(S,b,E,j)}if(typeof E.then=="function")return ve(S,b,xn(E),j);if(E.$$typeof===F)return ve(S,b,fn(S,E),j);En(S,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,b!==null&&b.tag===6?(l(S,b.sibling),j=u(b,E),j.return=S,S=j):(l(S,b),j=Gi(E,S.mode,j),j.return=S,S=j),i(S)):l(S,b)}return function(S,b,E,j){try{cu=0;var V=ve(S,b,E,j);return ha=null,V}catch(J){if(J===Pa||J===sn)throw J;var ae=ut(29,J,null,S.mode);return ae.lanes=j,ae.return=S,ae}finally{}}}var ma=Ys(!0),Gs=Ys(!1),gt=q(null),Rt=null;function ul(e){var t=e.alternate;G(Ue,Ue.current&1),G(gt,e),Rt===null&&(t===null||ra.current!==null||t.memoizedState!==null)&&(Rt=e)}function Xs(e){if(e.tag===22){if(G(Ue,Ue.current),G(gt,e),Rt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Rt=e)}}else nl()}function nl(){G(Ue,Ue.current),G(gt,gt.current)}function Lt(e){Q(gt),Rt===e&&(Rt=null),Q(Ue)}var Ue=q(0);function Tn(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==="$?"||of(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 xc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:z({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ec={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=ft(),u=tl(a);u.payload=t,l!=null&&(u.callback=l),t=ll(e,u,a),t!==null&&(rt(t,e,a),eu(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=ft(),u=tl(a);u.tag=1,u.payload=t,l!=null&&(u.callback=l),t=ll(e,u,a),t!==null&&(rt(t,e,a),eu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=ft(),a=tl(l);a.tag=2,t!=null&&(a.callback=t),t=ll(e,a,l),t!==null&&(rt(t,e,l),eu(t,e,l))}};function Qs(e,t,l,a,u,n,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,n,i):t.prototype&&t.prototype.isPureReactComponent?!Za(l,a)||!Za(u,n):!0}function Zs(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&&Ec.enqueueReplaceState(t,t.state,null)}function ql(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=z({},l));for(var u in e)l[u]===void 0&&(l[u]=e[u])}return l}var An=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 Vs(e){An(e)}function Ks(e){console.error(e)}function Js(e){An(e)}function Rn(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ks(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 Tc(e,t,l){return l=tl(l),l.tag=3,l.payload={element:null},l.callback=function(){Rn(e,t)},l}function $s(e){return e=tl(e),e.tag=3,e}function Ws(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(){ks(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){ks(t,l,a),typeof u!="function"&&(ol===null?ol=new Set([this]):ol.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function Cm(e,t,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&$a(t,l,u,!0),l=gt.current,l!==null){switch(l.tag){case 13:return Rt===null?Jc():l.alternate===null&&Oe===0&&(Oe=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===Pi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),$c(e,a,u)),!1;case 22:return l.flags|=65536,a===Pi?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)),$c(e,a,u)),!1}throw Error(f(435,l.tag))}return $c(e,a,u),Jc(),!1}if(se)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Vi&&(e=Error(f(422),{cause:a}),ka(ht(e,l)))):(a!==Vi&&(t=Error(f(423),{cause:a}),ka(ht(t,l))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=ht(a,l),u=Tc(e.stateNode,a,u),tc(e,u),Oe!==4&&(Oe=2)),!1;var n=Error(f(520),{cause:a});if(n=ht(n,l),yu===null?yu=[n]:yu.push(n),Oe!==4&&(Oe=2),t===null)return!0;a=ht(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=u&-u,l.lanes|=e,e=Tc(l.stateNode,a,e),tc(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"&&(ol===null||!ol.has(n))))return l.flags|=65536,u&=-u,l.lanes|=u,u=$s(u),Ws(u,e,l,a),tc(l,u),!1}l=l.return}while(l!==null);return!1}var Fs=Error(f(461)),Be=!1;function Le(e,t,l,a){t.child=e===null?Gs(t,null,l,a):ma(t,e.child,l,a)}function Ps(e,t,l,a,u){l=l.render;var n=t.ref;if("ref"in a){var i={};for(var r in a)r!=="ref"&&(i[r]=a[r])}else i=a;return Ul(t),a=ic(e,t,l,i,n,u),r=cc(),e!==null&&!Be?(fc(e,t,u),Yt(e,t,u)):(se&&r&&Qi(t),t.flags|=1,Le(e,t,a,u),t.child)}function Is(e,t,l,a,u){if(e===null){var n=l.type;return typeof n=="function"&&!Yi(n)&&n.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=n,eo(e,t,n,a,u)):(e=an(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 i=n.memoizedProps;if(l=l.compare,l=l!==null?l:Za,l(i,a)&&e.ref===t.ref)return Yt(e,t,u)}return t.flags|=1,e=Ct(n,a),e.ref=t.ref,e.return=t,t.child=e}function eo(e,t,l,a,u){if(e!==null){var n=e.memoizedProps;if(Za(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,Yt(e,t,u)}return Ac(e,t,l,a,u)}function to(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 lo(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rn(t,n!==null?n.cachePool:null),n!==null?es(t,n):ac(),Xs(t);else return t.lanes=t.childLanes=536870912,lo(e,t,n!==null?n.baseLanes|l:l,l)}else n!==null?(rn(t,n.cachePool),es(t,n),nl(),t.memoizedState=null):(e!==null&&rn(t,null),ac(),nl());return Le(e,t,u,l),t.child}function lo(e,t,l,a){var u=Fi();return u=u===null?null:{parent:Ce._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&rn(t,null),ac(),Xs(t),e!==null&&$a(e,t,a,!0),null}function Nn(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 Ac(e,t,l,a,u){return Ul(t),l=ic(e,t,l,a,void 0,u),a=cc(),e!==null&&!Be?(fc(e,t,u),Yt(e,t,u)):(se&&a&&Qi(t),t.flags|=1,Le(e,t,l,u),t.child)}function ao(e,t,l,a,u,n){return Ul(t),t.updateQueue=null,l=ls(t,a,l,u),ts(e),a=cc(),e!==null&&!Be?(fc(e,t,n),Yt(e,t,n)):(se&&a&&Qi(t),t.flags|=1,Le(e,t,l,n),t.child)}function uo(e,t,l,a,u){if(Ul(t),t.stateNode===null){var n=ua,i=l.contextType;typeof i=="object"&&i!==null&&(n=Ve(i)),n=new l(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ec,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},Ii(t),i=l.contextType,n.context=typeof i=="object"&&i!==null?Ve(i):ua,n.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(xc(t,l,i,a),n.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&Ec.enqueueReplaceState(n,n.state,null),lu(t,a,n,u),tu(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){n=t.stateNode;var r=t.memoizedProps,m=ql(l,r);n.props=m;var T=n.context,D=l.contextType;i=ua,typeof D=="object"&&D!==null&&(i=Ve(D));var C=l.getDerivedStateFromProps;D=typeof C=="function"||typeof n.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,D||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(r||T!==i)&&Zs(t,n,a,i),el=!1;var A=t.memoizedState;n.state=A,lu(t,a,n,u),tu(),T=t.memoizedState,r||A!==T||el?(typeof C=="function"&&(xc(t,l,C,a),T=t.memoizedState),(m=el||Qs(t,l,m,a,A,T,i))?(D||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=i,a=m):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,ec(e,t),i=t.memoizedProps,D=ql(l,i),n.props=D,C=t.pendingProps,A=n.context,T=l.contextType,m=ua,typeof T=="object"&&T!==null&&(m=Ve(T)),r=l.getDerivedStateFromProps,(T=typeof r=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==C||A!==m)&&Zs(t,n,a,m),el=!1,A=t.memoizedState,n.state=A,lu(t,a,n,u),tu();var R=t.memoizedState;i!==C||A!==R||el||e!==null&&e.dependencies!==null&&cn(e.dependencies)?(typeof r=="function"&&(xc(t,l,r,a),R=t.memoizedState),(D=el||Qs(t,l,D,a,A,R,m)||e!==null&&e.dependencies!==null&&cn(e.dependencies))?(T||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,R,m),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,R,m)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=R),n.props=a,n.state=R,n.context=m,a=D):(typeof n.componentDidUpdate!="function"||i===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),a=!1)}return n=a,Nn(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=ma(t,e.child,null,u),t.child=ma(t,null,l,u)):Le(e,t,l,u),t.memoizedState=n.state,e=t.child):e=Yt(e,t,u),e}function no(e,t,l,a){return Ja(),t.flags|=256,Le(e,t,l,a),t.child}var Rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nc(e){return{baseLanes:e,cachePool:Kr()}}function Oc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=bt),e}function io(e,t,l){var a=t.pendingProps,u=!1,n=(t.flags&128)!==0,i;if((i=n)||(i=e!==null&&e.memoizedState===null?!1:(Ue.current&2)!==0),i&&(u=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(se){if(u?ul(t):nl(),se){var r=Ne,m;if(m=r){e:{for(m=r,r=At;m.nodeType!==8;){if(!r){r=null;break e}if(m=Et(m.nextSibling),m===null){r=null;break e}}r=m}r!==null?(t.memoizedState={dehydrated:r,treeContext:Ml!==null?{id:Ut,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},m=ut(18,null,null,0),m.stateNode=r,m.return=t,t.child=m,ke=t,Ne=null,m=!0):m=!1}m||jl(t)}if(r=t.memoizedState,r!==null&&(r=r.dehydrated,r!==null))return of(r)?t.lanes=32:t.lanes=536870912,null;Lt(t)}return r=a.children,a=a.fallback,u?(nl(),u=t.mode,r=On({mode:"hidden",children:r},u),a=zl(a,u,l,null),r.return=t,a.return=t,r.sibling=a,t.child=r,u=t.child,u.memoizedState=Nc(l),u.childLanes=Oc(e,i,l),t.memoizedState=Rc,a):(ul(t),zc(t,r))}if(m=e.memoizedState,m!==null&&(r=m.dehydrated,r!==null)){if(n)t.flags&256?(ul(t),t.flags&=-257,t=Mc(e,t,l)):t.memoizedState!==null?(nl(),t.child=e.child,t.flags|=128,t=null):(nl(),u=a.fallback,r=t.mode,a=On({mode:"visible",children:a.children},r),u=zl(u,r,l,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,ma(t,e.child,null,l),a=t.child,a.memoizedState=Nc(l),a.childLanes=Oc(e,i,l),t.memoizedState=Rc,t=u);else if(ul(t),of(r)){if(i=r.nextSibling&&r.nextSibling.dataset,i)var T=i.dgst;i=T,a=Error(f(419)),a.stack="",a.digest=i,ka({value:a,source:null,stack:null}),t=Mc(e,t,l)}else if(Be||$a(e,t,l,!1),i=(l&e.childLanes)!==0,Be||i){if(i=pe,i!==null&&(a=l&-l,a=(a&42)!==0?1:oi(a),a=(a&(i.suspendedLanes|l))!==0?0:a,a!==0&&a!==m.retryLane))throw m.retryLane=a,aa(e,a),rt(i,e,a),Fs;r.data==="$?"||Jc(),t=Mc(e,t,l)}else r.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Ne=Et(r.nextSibling),ke=t,se=!0,_l=null,At=!1,e!==null&&(yt[vt++]=Ut,yt[vt++]=Ht,yt[vt++]=Ml,Ut=e.id,Ht=e.overflow,Ml=t),t=zc(t,a.children),t.flags|=4096);return t}return u?(nl(),u=a.fallback,r=t.mode,m=e.child,T=m.sibling,a=Ct(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,T!==null?u=Ct(T,u):(u=zl(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=Nc(l):(m=r.cachePool,m!==null?(T=Ce._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=Kr(),r={baseLanes:r.baseLanes|l,cachePool:m}),u.memoizedState=r,u.childLanes=Oc(e,i,l),t.memoizedState=Rc,a):(ul(t),l=e.child,e=l.sibling,l=Ct(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function zc(e,t){return t=On({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function On(e,t){return e=ut(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Mc(e,t,l){return ma(t,e.child,null,l),e=zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function co(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ji(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 fo(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&&co(e,l,t);else if(e.tag===19)co(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(G(Ue,a),u){case"forwards":for(l=t.child,u=null;l!==null;)e=l.alternate,e!==null&&Tn(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&&Tn(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 Yt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),sl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if($a(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=Ct(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ct(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&&cn(e)))}function Um(e,t,l){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),It(t,Ce,e.memoizedState.cache),Ja();break;case 27:case 5:ii(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:It(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ul(t),t.flags|=128,null):(l&t.child.childLanes)!==0?io(e,t,l):(ul(t),e=Yt(e,t,l),e!==null?e.sibling:null);ul(t);break;case 19:var u=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||($a(e,t,l,!1),a=(l&t.childLanes)!==0),u){if(a)return fo(e,t,l);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),G(Ue,Ue.current),a)break;return null;case 22:case 23:return t.lanes=0,to(e,t,l);case 24:It(t,Ce,e.memoizedState.cache)}return Yt(e,t,l)}function ro(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,Um(e,t,l);Be=(e.flags&131072)!==0}else Be=!1,se&&(t.flags&1048576)!==0&&Lr(t,nn,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")Yi(a)?(e=ql(a,e),t.tag=1,t=uo(null,t,a,e,l)):(t.tag=0,t=Ac(null,t,a,e,l));else{if(a!=null){if(u=a.$$typeof,u===ie){t.tag=11,t=Ps(null,t,a,e,l);break e}else if(u===Te){t.tag=14,t=Is(null,t,a,e,l);break e}}throw t=El(a)||a,Error(f(306,t,""))}}return t;case 0:return Ac(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,u=ql(a,t.pendingProps),uo(e,t,a,u,l);case 3:e:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(f(387));a=t.pendingProps;var n=t.memoizedState;u=n.element,ec(e,t),lu(t,a,null,l);var i=t.memoizedState;if(a=i.cache,It(t,Ce,a),a!==n.cache&&ki(t,[Ce],l,!0),tu(),a=i.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=no(e,t,a,l);break e}else if(a!==u){u=ht(Error(f(424)),t),ka(u),t=no(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(Ne=Et(e.firstChild),ke=t,se=!0,_l=null,At=!0,l=Gs(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ja(),a===u){t=Yt(e,t,l);break e}Le(e,t,a,l)}t=t.child}return t;case 26:return Nn(e,t),e===null?(l=md(t.type,null,t.pendingProps,null))?t.memoizedState=l:se||(l=t.type,e=t.pendingProps,a=Gn(ee.current).createElement(l),a[Ze]=t,a[$e]=e,Ge(a,l,e),He(a),t.stateNode=a):t.memoizedState=md(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ii(t),e===null&&se&&(a=t.stateNode=od(t.type,t.pendingProps,ee.current),ke=t,At=!0,u=Ne,ml(t.type)?(df=u,Ne=Et(a.firstChild)):Ne=u),Le(e,t,t.pendingProps.children,l),Nn(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&se&&((u=a=Ne)&&(a=fy(a,t.type,t.pendingProps,At),a!==null?(t.stateNode=a,ke=t,Ne=Et(a.firstChild),At=!1,u=!0):u=!1),u||jl(t)),ii(t),u=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,ff(u,n)?a=null:i!==null&&ff(u,i)&&(t.flags|=32),t.memoizedState!==null&&(u=ic(e,t,Nm,null,null,l),Au._currentValue=u),Nn(e,t),Le(e,t,a,l),t.child;case 6:return e===null&&se&&((e=l=Ne)&&(l=ry(l,t.pendingProps,At),l!==null?(t.stateNode=l,ke=t,Ne=null,e=!0):e=!1),e||jl(t)),null;case 13:return io(e,t,l);case 4:return xe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ma(t,null,a,l):Le(e,t,a,l),t.child;case 11:return Ps(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,It(t,t.type,a.value),Le(e,t,a.children,l),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Ul(t),u=Ve(u),a=a(u),t.flags|=1,Le(e,t,a,l),t.child;case 14:return Is(e,t,t.type,t.pendingProps,l);case 15:return eo(e,t,t.type,t.pendingProps,l);case 19:return fo(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=On(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Ct(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return to(e,t,l);case 24:return Ul(t),a=Ve(Ce),e===null?(u=Fi(),u===null&&(u=pe,n=$i(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=l),u=n),t.memoizedState={parent:a,cache:u},Ii(t),It(t,Ce,u)):((e.lanes&l)!==0&&(ec(e,t),lu(t,null,null,l),tu()),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),It(t,Ce,a)):(a=n.cache,It(t,Ce,a),a!==u.cache&&ki(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 Gt(e){e.flags|=4}function so(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pd(t)){if(t=gt.current,t!==null&&((ce&4194048)===ce?Rt!==null:(ce&62914560)!==ce&&(ce&536870912)===0||t!==Rt))throw Ia=Pi,Jr;e.flags|=8192}}function zn(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xf():536870912,e.lanes|=t,ba|=t)}function ru(e,t){if(!se)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 Ae(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 Hm(e,t,l){var a=t.pendingProps;switch(Zi(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),qt(Ce),$t(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ka(t)?Gt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xr())),Ae(t),null;case 26:return l=t.memoizedState,e===null?(Gt(t),l!==null?(Ae(t),so(t,l)):(Ae(t),t.flags&=-16777217)):l?l!==e.memoizedState?(Gt(t),Ae(t),so(t,l)):(Ae(t),t.flags&=-16777217):(e.memoizedProps!==a&&Gt(t),Ae(t),t.flags&=-16777217),null;case 27:wu(t),l=ee.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Gt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Ae(t),null}e=k.current,Ka(t)?Yr(t):(e=od(u,a,l),t.stateNode=e,Gt(t))}return Ae(t),null;case 5:if(wu(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Gt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Ae(t),null}if(e=k.current,Ka(t))Yr(t);else{switch(u=Gn(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&&Gt(t)}}return Ae(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Gt(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||ud(e.nodeValue,l)),e||jl(t)}else e=Gn(e).createTextNode(a),e[Ze]=t,t.stateNode=e}return Ae(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 Ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),u=!1}else u=Xr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Lt(t),t):(Lt(t),null)}if(Lt(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),zn(t,t.updateQueue),Ae(t),null;case 4:return $t(),e===null&&lf(t.stateNode.containerInfo),Ae(t),null;case 10:return qt(t.type),Ae(t),null;case 19:if(Q(Ue),u=t.memoizedState,u===null)return Ae(t),null;if(a=(t.flags&128)!==0,n=u.rendering,n===null)if(a)ru(u,!1);else{if(Oe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Tn(e),n!==null){for(t.flags|=128,ru(u,!1),e=n.updateQueue,t.updateQueue=e,zn(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)wr(l,e),l=l.sibling;return G(Ue,Ue.current&1|2),t.child}e=e.sibling}u.tail!==null&&Tt()>_n&&(t.flags|=128,a=!0,ru(u,!1),t.lanes=4194304)}else{if(!a)if(e=Tn(n),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,zn(t,e),ru(u,!0),u.tail===null&&u.tailMode==="hidden"&&!n.alternate&&!se)return Ae(t),null}else 2*Tt()-u.renderingStartTime>_n&&l!==536870912&&(t.flags|=128,a=!0,ru(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=Tt(),t.sibling=null,e=Ue.current,G(Ue,a?e&1|2:e&1),t):(Ae(t),null);case 22:case 23:return Lt(t),uc(),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&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),l=t.updateQueue,l!==null&&zn(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(Hl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),qt(Ce),Ae(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function Bm(e,t){switch(Zi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qt(Ce),$t(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return wu(t),null;case 13:if(Lt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ue),null;case 4:return $t(),null;case 10:return qt(t.type),null;case 22:case 23:return Lt(t),uc(),e!==null&&Q(Hl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qt(Ce),null;case 25:return null;default:return null}}function oo(e,t){switch(Zi(t),t.tag){case 3:qt(Ce),$t();break;case 26:case 27:case 5:wu(t);break;case 4:$t();break;case 13:Lt(t);break;case 19:Q(Ue);break;case 10:qt(t.type);break;case 22:case 23:Lt(t),uc(),e!==null&&Q(Hl);break;case 24:qt(Ce)}}function su(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,i=l.inst;a=n(),i.destroy=a}l=l.next}while(l!==u)}}catch(r){be(t,t.return,r)}}function il(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 i=a.inst,r=i.destroy;if(r!==void 0){i.destroy=void 0,u=t;var m=l,T=r;try{T()}catch(D){be(u,m,D)}}}a=a.next}while(a!==n)}}catch(D){be(t,t.return,D)}}function ho(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ir(t,l)}catch(a){be(e,e.return,a)}}}function mo(e,t,l){l.props=ql(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){be(e,t,a)}}function ou(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){be(e,t,u)}}function Nt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){be(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){be(e,t,u)}else l.current=null}function yo(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){be(e,e.return,u)}}function jc(e,t,l){try{var a=e.stateNode;ay(a,e.type,l,t),a[$e]=t}catch(u){be(e,e.return,u)}}function vo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ml(e.type)||e.tag===4}function Cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vo(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&&ml(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 Uc(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=Yn));else if(a!==4&&(a===27&&ml(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Uc(e,t,l),e=e.sibling;e!==null;)Uc(e,t,l),e=e.sibling}function Mn(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&&ml(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Mn(e,t,l),e=e.sibling;e!==null;)Mn(e,t,l),e=e.sibling}function go(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){be(e,e.return,n)}}var Xt=!1,De=!1,Hc=!1,bo=typeof WeakSet=="function"?WeakSet:Set,qe=null;function qm(e,t){if(e=e.containerInfo,nf=Jn,e=zr(e),Ci(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 i=0,r=-1,m=-1,T=0,D=0,C=e,A=null;t:for(;;){for(var R;C!==l||u!==0&&C.nodeType!==3||(r=i+u),C!==n||a!==0&&C.nodeType!==3||(m=i+a),C.nodeType===3&&(i+=C.nodeValue.length),(R=C.firstChild)!==null;)A=C,C=R;for(;;){if(C===e)break t;if(A===l&&++T===u&&(r=i),A===n&&++D===a&&(m=i),(R=C.nextSibling)!==null)break;C=A,A=C.parentNode}C=R}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(cf={focusedElem:e,selectionRange:l},Jn=!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=ql(l.type,u,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(I,n),a.__reactInternalSnapshotBeforeUpdate=e}catch($){be(l,l.return,$)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)sf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sf(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 po(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:cl(e,l),a&4&&su(5,l);break;case 1:if(cl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){be(l,l.return,i)}else{var u=ql(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){be(l,l.return,i)}}a&64&&ho(l),a&512&&ou(l,l.return);break;case 3:if(cl(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{Ir(e,t)}catch(i){be(l,l.return,i)}}break;case 27:t===null&&a&4&&go(l);case 26:case 5:cl(e,l),t===null&&a&4&&yo(l),a&512&&ou(l,l.return);break;case 12:cl(e,l);break;case 13:cl(e,l),a&4&&Eo(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Km.bind(null,l),sy(e,l))));break;case 22:if(a=l.memoizedState!==null||Xt,!a){t=t!==null&&t.memoizedState!==null||De,u=Xt;var n=De;Xt=a,(De=t)&&!n?fl(e,l,(l.subtreeFlags&8772)!==0):cl(e,l),Xt=u,De=n}break;case 30:break;default:cl(e,l)}}function So(e){var t=e.alternate;t!==null&&(e.alternate=null,So(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mi(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 Ee=null,Pe=!1;function Qt(e,t,l){for(l=l.child;l!==null;)xo(e,t,l),l=l.sibling}function xo(e,t,l){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(ja,l)}catch{}switch(l.tag){case 26:De||Nt(l,t),Qt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:De||Nt(l,t);var a=Ee,u=Pe;ml(l.type)&&(Ee=l.stateNode,Pe=!1),Qt(e,t,l),Su(l.stateNode),Ee=a,Pe=u;break;case 5:De||Nt(l,t);case 6:if(a=Ee,u=Pe,Ee=null,Qt(e,t,l),Ee=a,Pe=u,Ee!==null)if(Pe)try{(Ee.nodeType===9?Ee.body:Ee.nodeName==="HTML"?Ee.ownerDocument.body:Ee).removeChild(l.stateNode)}catch(n){be(l,t,n)}else try{Ee.removeChild(l.stateNode)}catch(n){be(l,t,n)}break;case 18:Ee!==null&&(Pe?(e=Ee,rd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),zu(e)):rd(Ee,l.stateNode));break;case 4:a=Ee,u=Pe,Ee=l.stateNode.containerInfo,Pe=!0,Qt(e,t,l),Ee=a,Pe=u;break;case 0:case 11:case 14:case 15:De||il(2,l,t),De||il(4,l,t),Qt(e,t,l);break;case 1:De||(Nt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&mo(l,t,a)),Qt(e,t,l);break;case 21:Qt(e,t,l);break;case 22:De=(a=De)||l.memoizedState!==null,Qt(e,t,l),De=a;break;default:Qt(e,t,l)}}function Eo(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){be(t,t.return,l)}}function wm(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bo),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bo),t;default:throw Error(f(435,e.tag))}}function Bc(e,t){var l=wm(e);t.forEach(function(a){var u=Jm.bind(null,e,a);l.has(a)||(l.add(a),a.then(u,u))})}function nt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],n=e,i=t,r=i;e:for(;r!==null;){switch(r.tag){case 27:if(ml(r.type)){Ee=r.stateNode,Pe=!1;break e}break;case 5:Ee=r.stateNode,Pe=!1;break e;case 3:case 4:Ee=r.stateNode.containerInfo,Pe=!0;break e}r=r.return}if(Ee===null)throw Error(f(160));xo(n,i,u),Ee=null,Pe=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)To(t,e),t=t.sibling}var xt=null;function To(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:nt(t,e),it(e),a&4&&(il(3,e,e.return),su(3,e),il(5,e,e.return));break;case 1:nt(t,e),it(e),a&512&&(De||l===null||Nt(l,l.return)),a&64&&Xt&&(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=xt;if(nt(t,e),it(e),a&512&&(De||l===null||Nt(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[Ha]||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 i=gd("link","href",u).get(a+(l.href||""));if(i){for(var r=0;r<i.length;r++)if(n=i[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)){i.splice(r,1);break t}}n=u.createElement(a),Ge(n,a,l),u.head.appendChild(n);break;case"meta":if(i=gd("meta","content",u).get(a+(l.content||""))){for(r=0;r<i.length;r++)if(n=i[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)){i.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 bd(u,e.type,e.stateNode);else e.stateNode=vd(u,a,e.memoizedProps);else n!==a?(n===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):n.count--,a===null?bd(u,e.type,e.stateNode):vd(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&jc(e,e.memoizedProps,l.memoizedProps)}break;case 27:nt(t,e),it(e),a&512&&(De||l===null||Nt(l,l.return)),l!==null&&a&4&&jc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(nt(t,e),it(e),a&512&&(De||l===null||Nt(l,l.return)),e.flags&32){u=e.stateNode;try{Wl(u,"")}catch(R){be(e,e.return,R)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,jc(e,u,l!==null?l.memoizedProps:u)),a&1024&&(Hc=!0);break;case 6:if(nt(t,e),it(e),a&4){if(e.stateNode===null)throw Error(f(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(R){be(e,e.return,R)}}break;case 3:if(Zn=null,u=xt,xt=Xn(t.containerInfo),nt(t,e),xt=u,it(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{zu(t.containerInfo)}catch(R){be(e,e.return,R)}Hc&&(Hc=!1,Ao(e));break;case 4:a=xt,xt=Xn(e.stateNode.containerInfo),nt(t,e),it(e),xt=a;break;case 12:nt(t,e),it(e);break;case 13:nt(t,e),it(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Xc=Tt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bc(e,a)));break;case 22:u=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,T=Xt,D=De;if(Xt=T||u,De=D||m,nt(t,e),De=D,Xt=T,it(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(l===null||m||Xt||De||wl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(n=m.stateNode,u)i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{r=m.stateNode;var C=m.memoizedProps.style,A=C!=null&&C.hasOwnProperty("display")?C.display:null;r.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(R){be(m,m.return,R)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(R){be(m,m.return,R)}}}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,Bc(e,l))));break;case 19:nt(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bc(e,a)));break;case 30:break;case 21:break;default:nt(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(vo(a)){l=a;break}a=a.return}if(l==null)throw Error(f(160));switch(l.tag){case 27:var u=l.stateNode,n=Cc(e);Mn(e,n,u);break;case 5:var i=l.stateNode;l.flags&32&&(Wl(i,""),l.flags&=-33);var r=Cc(e);Mn(e,r,i);break;case 3:case 4:var m=l.stateNode.containerInfo,T=Cc(e);Uc(e,T,m);break;default:throw Error(f(161))}}catch(D){be(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ao(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ao(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)po(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:il(4,t,t.return),wl(t);break;case 1:Nt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&mo(t,t.return,l),wl(t);break;case 27:Su(t.stateNode);case 26:case 5:Nt(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function fl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,n=t,i=n.flags;switch(n.tag){case 0:case 11:case 15:fl(u,n,l),su(4,n);break;case 1:if(fl(u,n,l),a=n,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(T){be(a,a.return,T)}if(a=n,u=a.updateQueue,u!==null){var r=a.stateNode;try{var m=u.shared.hiddenCallbacks;if(m!==null)for(u.shared.hiddenCallbacks=null,u=0;u<m.length;u++)Pr(m[u],r)}catch(T){be(a,a.return,T)}}l&&i&64&&ho(n),ou(n,n.return);break;case 27:go(n);case 26:case 5:fl(u,n,l),l&&a===null&&i&4&&yo(n),ou(n,n.return);break;case 12:fl(u,n,l);break;case 13:fl(u,n,l),l&&i&4&&Eo(u,n);break;case 22:n.memoizedState===null&&fl(u,n,l),ou(n,n.return);break;case 30:break;default:fl(u,n,l)}t=t.sibling}}function qc(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&&Wa(l))}function wc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wa(e))}function Ot(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ro(e,t,l,a),t=t.sibling}function Ro(e,t,l,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Ot(e,t,l,a),u&2048&&su(9,t);break;case 1:Ot(e,t,l,a);break;case 3:Ot(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&&Wa(e)));break;case 12:if(u&2048){Ot(e,t,l,a),e=t.stateNode;try{var n=t.memoizedProps,i=n.id,r=n.onPostCommit;typeof r=="function"&&r(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){be(t,t.return,m)}}else Ot(e,t,l,a);break;case 13:Ot(e,t,l,a);break;case 23:break;case 22:n=t.stateNode,i=t.alternate,t.memoizedState!==null?n._visibility&2?Ot(e,t,l,a):du(e,t):n._visibility&2?Ot(e,t,l,a):(n._visibility|=2,ya(e,t,l,a,(t.subtreeFlags&10256)!==0)),u&2048&&qc(i,t);break;case 24:Ot(e,t,l,a),u&2048&&wc(t.alternate,t);break;default:Ot(e,t,l,a)}}function ya(e,t,l,a,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var n=e,i=t,r=l,m=a,T=i.flags;switch(i.tag){case 0:case 11:case 15:ya(n,i,r,m,u),su(8,i);break;case 23:break;case 22:var D=i.stateNode;i.memoizedState!==null?D._visibility&2?ya(n,i,r,m,u):du(n,i):(D._visibility|=2,ya(n,i,r,m,u)),u&&T&2048&&qc(i.alternate,i);break;case 24:ya(n,i,r,m,u),u&&T&2048&&wc(i.alternate,i);break;default:ya(n,i,r,m,u)}t=t.sibling}}function du(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:du(l,a),u&2048&&qc(a.alternate,a);break;case 24:du(l,a),u&2048&&wc(a.alternate,a);break;default:du(l,a)}t=t.sibling}}var hu=8192;function va(e){if(e.subtreeFlags&hu)for(e=e.child;e!==null;)No(e),e=e.sibling}function No(e){switch(e.tag){case 26:va(e),e.flags&hu&&e.memoizedState!==null&&Ty(xt,e.memoizedState,e.memoizedProps);break;case 5:va(e);break;case 3:case 4:var t=xt;xt=Xn(e.stateNode.containerInfo),va(e),xt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=hu,hu=16777216,va(e),hu=t):va(e));break;default:va(e)}}function Oo(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 mu(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,Mo(a,e)}Oo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zo(e),e=e.sibling}function zo(e){switch(e.tag){case 0:case 11:case 15:mu(e),e.flags&2048&&il(9,e,e.return);break;case 3:mu(e);break;case 12:mu(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)):mu(e);break;default:mu(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,Mo(a,e)}Oo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:il(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 Mo(e,t){for(;qe!==null;){var l=qe;switch(l.tag){case 0:case 11:case 15:il(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:Wa(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(So(a),a===l){qe=null;break e}if(u!==null){u.return=n,qe=u;break e}qe=n}}}var Lm={getCacheForType:function(e){var t=Ve(Ce),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},Ym=typeof WeakMap=="function"?WeakMap:Map,oe=0,pe=null,ue=null,ce=0,de=0,ct=null,rl=!1,ga=!1,Lc=!1,Zt=0,Oe=0,sl=0,Ll=0,Yc=0,bt=0,ba=0,yu=null,Ie=null,Gc=!1,Xc=0,_n=1/0,jn=null,ol=null,Ye=0,dl=null,pa=null,Sa=0,Qc=0,Zc=null,Do=null,vu=0,Vc=null;function ft(){if((oe&2)!==0&&ce!==0)return ce&-ce;if(_.T!==null){var e=ca;return e!==0?e:Pc()}return Vf()}function _o(){bt===0&&(bt=(ce&536870912)===0||se?Gf():536870912);var e=gt.current;return e!==null&&(e.flags|=32),bt}function rt(e,t,l){(e===pe&&(de===2||de===9)||e.cancelPendingCommit!==null)&&(xa(e,0),hl(e,ce,bt,!1)),Ua(e,l),((oe&2)===0||e!==pe)&&(e===pe&&((oe&2)===0&&(Ll|=l),Oe===4&&hl(e,ce,bt,!1)),zt(e))}function jo(e,t,l){if((oe&6)!==0)throw Error(f(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Ca(e,t),u=a?Qm(e,t):kc(e,t,!0),n=a;do{if(u===0){ga&&!a&&hl(e,t,0,!1);break}else{if(l=e.current.alternate,n&&!Gm(l)){u=kc(e,t,!1),n=!1;continue}if(u===2){if(n=t,e.errorRecoveryDisabledLanes&n)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var r=e;u=yu;var m=r.current.memoizedState.isDehydrated;if(m&&(xa(r,i).flags|=256),i=kc(r,i,!1),i!==2){if(Lc&&!m){r.errorRecoveryDisabledLanes|=n,Ll|=n,u=4;break e}n=Ie,Ie=u,n!==null&&(Ie===null?Ie=n:Ie.push.apply(Ie,n))}u=i}if(n=!1,u!==2)continue}}if(u===1){xa(e,0),hl(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:hl(a,t,bt,!rl);break e;case 2:Ie=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(u=Xc+300-Tt(),10<u)){if(hl(a,t,bt,!rl),Xu(a,0,!0)!==0)break e;a.timeoutHandle=cd(Co.bind(null,a,l,Ie,jn,Gc,t,bt,Ll,ba,rl,n,2,-0,0),u);break e}Co(a,l,Ie,jn,Gc,t,bt,Ll,ba,rl,n,0,-0,0)}}break}while(!0);zt(e)}function Co(e,t,l,a,u,n,i,r,m,T,D,C,A,R){if(e.timeoutHandle=-1,C=t.subtreeFlags,(C&8192||(C&16785408)===16785408)&&(Tu={stylesheets:null,count:0,unsuspend:Ey},No(t),C=Ay(),C!==null)){e.cancelPendingCommit=C(Yo.bind(null,e,t,n,l,a,u,i,r,m,D,1,A,R)),hl(e,n,i,!T);return}Yo(e,t,n,l,a,u,i,r,m)}function Gm(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(!at(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 hl(e,t,l,a){t&=~Yc,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var n=31-lt(u),i=1<<n;a[n]=-1,u&=~i}l!==0&&Qf(e,l,t)}function Cn(){return(oe&6)===0?(gu(0),!1):!0}function Kc(){if(ue!==null){if(de===0)var e=ue.return;else e=ue,Bt=Cl=null,rc(e),ha=null,cu=0,e=ue;for(;e!==null;)oo(e.alternate,e),e=e.return;ue=null}}function xa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,ny(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Kc(),pe=e,ue=l=Ct(e.current,null),ce=t,de=0,ct=null,rl=!1,ga=Ca(e,t),Lc=!1,ba=bt=Yc=Ll=sl=Oe=0,Ie=yu=null,Gc=!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-lt(a),n=1<<u;t|=e[u],a&=~n}return Zt=t,en(),l}function Uo(e,t){le=null,_.H=Sn,t===Pa||t===sn?(t=Wr(),de=3):t===Jr?(t=Wr(),de=4):de=t===Fs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ct=t,ue===null&&(Oe=1,Rn(e,ht(t,e.current)))}function Ho(){var e=_.H;return _.H=Sn,e===null?Sn:e}function Bo(){var e=_.A;return _.A=Lm,e}function Jc(){Oe=4,rl||(ce&4194048)!==ce&&gt.current!==null||(ga=!0),(sl&134217727)===0&&(Ll&134217727)===0||pe===null||hl(pe,ce,bt,!1)}function kc(e,t,l){var a=oe;oe|=2;var u=Ho(),n=Bo();(pe!==e||ce!==t)&&(jn=null,xa(e,t)),t=!1;var i=Oe;e:do try{if(de!==0&&ue!==null){var r=ue,m=ct;switch(de){case 8:Kc(),i=6;break e;case 3:case 2:case 9:case 6:gt.current===null&&(t=!0);var T=de;if(de=0,ct=null,Ea(e,r,m,T),l&&ga){i=0;break e}break;default:T=de,de=0,ct=null,Ea(e,r,m,T)}}Xm(),i=Oe;break}catch(D){Uo(e,D)}while(!0);return t&&e.shellSuspendCounter++,Bt=Cl=null,oe=a,_.H=u,_.A=n,ue===null&&(pe=null,ce=0,en()),i}function Xm(){for(;ue!==null;)qo(ue)}function Qm(e,t){var l=oe;oe|=2;var a=Ho(),u=Bo();pe!==e||ce!==t?(jn=null,_n=Tt()+500,xa(e,t)):ga=Ca(e,t);e:do try{if(de!==0&&ue!==null){t=ue;var n=ct;t:switch(de){case 1:de=0,ct=null,Ea(e,t,n,1);break;case 2:case 9:if(kr(n)){de=0,ct=null,wo(t);break}t=function(){de!==2&&de!==9||pe!==e||(de=7),zt(e)},n.then(t,t);break e;case 3:de=7;break e;case 4:de=5;break e;case 7:kr(n)?(de=0,ct=null,wo(t)):(de=0,ct=null,Ea(e,t,n,7));break;case 5:var i=null;switch(ue.tag){case 26:i=ue.memoizedState;case 5:case 27:var r=ue;if(!i||pd(i)){de=0,ct=null;var m=r.sibling;if(m!==null)ue=m;else{var T=r.return;T!==null?(ue=T,Un(T)):ue=null}break t}}de=0,ct=null,Ea(e,t,n,5);break;case 6:de=0,ct=null,Ea(e,t,n,6);break;case 8:Kc(),Oe=6;break e;default:throw Error(f(462))}}Zm();break}catch(D){Uo(e,D)}while(!0);return Bt=Cl=null,_.H=a,_.A=u,oe=l,ue!==null?0:(pe=null,ce=0,en(),Oe)}function Zm(){for(;ue!==null&&!dh();)qo(ue)}function qo(e){var t=ro(e.alternate,e,Zt);e.memoizedProps=e.pendingProps,t===null?Un(e):ue=t}function wo(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ao(l,t,t.pendingProps,t.type,void 0,ce);break;case 11:t=ao(l,t,t.pendingProps,t.type.render,t.ref,ce);break;case 5:rc(t);default:oo(l,t),t=ue=wr(t,Zt),t=ro(l,t,Zt)}e.memoizedProps=e.pendingProps,t===null?Un(e):ue=t}function Ea(e,t,l,a){Bt=Cl=null,rc(t),ha=null,cu=0;var u=t.return;try{if(Cm(e,u,t,l,ce)){Oe=1,Rn(e,ht(l,e.current)),ue=null;return}}catch(n){if(u!==null)throw ue=u,n;Oe=1,Rn(e,ht(l,e.current)),ue=null;return}t.flags&32768?(se||a===1?e=!0:ga||(ce&536870912)!==0?e=!1:(rl=e=!0,(a===2||a===9||a===3||a===6)&&(a=gt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Lo(t,e)):Un(t)}function Un(e){var t=e;do{if((t.flags&32768)!==0){Lo(t,rl);return}e=t.return;var l=Hm(t.alternate,t,Zt);if(l!==null){ue=l;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Oe===0&&(Oe=5)}function Lo(e,t){do{var l=Bm(e.alternate,e);if(l!==null){l.flags&=32767,ue=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=l}while(e!==null);Oe=6,ue=null}function Yo(e,t,l,a,u,n,i,r,m){e.cancelPendingCommit=null;do Hn();while(Ye!==0);if((oe&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(n=t.lanes|t.childLanes,n|=wi,Eh(e,l,n,i,r,m),e===pe&&(ue=pe=null,ce=0),pa=t,dl=e,Sa=l,Qc=n,Zc=u,Do=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,km(Lu,function(){return Vo(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,u=X.p,X.p=2,i=oe,oe|=4;try{qm(e,t,l)}finally{oe=i,X.p=u,_.T=a}}Ye=1,Go(),Xo(),Qo()}}function Go(){if(Ye===1){Ye=0;var e=dl,t=pa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=X.p;X.p=2;var u=oe;oe|=4;try{To(t,e);var n=cf,i=zr(e.containerInfo),r=n.focusedElem,m=n.selectionRange;if(i!==r&&r&&r.ownerDocument&&Or(r.ownerDocument.documentElement,r)){if(m!==null&&Ci(r)){var T=m.start,D=m.end;if(D===void 0&&(D=T),"selectionStart"in r)r.selectionStart=T,r.selectionEnd=Math.min(D,r.value.length);else{var C=r.ownerDocument||document,A=C&&C.defaultView||window;if(A.getSelection){var R=A.getSelection(),I=r.textContent.length,$=Math.min(m.start,I),ve=m.end===void 0?$:Math.min(m.end,I);!R.extend&&$>ve&&(i=ve,ve=$,$=i);var S=Nr(r,$),b=Nr(r,ve);if(S&&b&&(R.rangeCount!==1||R.anchorNode!==S.node||R.anchorOffset!==S.offset||R.focusNode!==b.node||R.focusOffset!==b.offset)){var E=C.createRange();E.setStart(S.node,S.offset),R.removeAllRanges(),$>ve?(R.addRange(E),R.extend(b.node,b.offset)):(E.setEnd(b.node,b.offset),R.addRange(E))}}}}for(C=[],R=r;R=R.parentNode;)R.nodeType===1&&C.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<C.length;r++){var j=C[r];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}Jn=!!nf,cf=nf=null}finally{oe=u,X.p=a,_.T=l}}e.current=t,Ye=2}}function Xo(){if(Ye===2){Ye=0;var e=dl,t=pa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=X.p;X.p=2;var u=oe;oe|=4;try{po(e,t.alternate,t)}finally{oe=u,X.p=a,_.T=l}}Ye=3}}function Qo(){if(Ye===4||Ye===3){Ye=0,hh();var e=dl,t=pa,l=Sa,a=Do;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ye=5:(Ye=0,pa=dl=null,Zo(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ol=null),di(l),t=t.stateNode,tt&&typeof tt.onCommitFiberRoot=="function")try{tt.onCommitFiberRoot(ja,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,u=X.p,X.p=2,_.T=null;try{for(var n=e.onRecoverableError,i=0;i<a.length;i++){var r=a[i];n(r.value,{componentStack:r.stack})}}finally{_.T=t,X.p=u}}(Sa&3)!==0&&Hn(),zt(e),u=e.pendingLanes,(l&4194090)!==0&&(u&42)!==0?e===Vc?vu++:(vu=0,Vc=e):vu=0,gu(0)}}function Zo(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wa(t)))}function Hn(e){return Go(),Xo(),Qo(),Vo()}function Vo(){if(Ye!==5)return!1;var e=dl,t=Qc;Qc=0;var l=di(Sa),a=_.T,u=X.p;try{X.p=32>l?32:l,_.T=null,l=Zc,Zc=null;var n=dl,i=Sa;if(Ye=0,pa=dl=null,Sa=0,(oe&6)!==0)throw Error(f(331));var r=oe;if(oe|=4,zo(n.current),Ro(n,n.current,i,l),oe=r,gu(0,!1),tt&&typeof tt.onPostCommitFiberRoot=="function")try{tt.onPostCommitFiberRoot(ja,n)}catch{}return!0}finally{X.p=u,_.T=a,Zo(e,t)}}function Ko(e,t,l){t=ht(l,t),t=Tc(e.stateNode,t,2),e=ll(e,t,2),e!==null&&(Ua(e,2),zt(e))}function be(e,t,l){if(e.tag===3)Ko(e,e,l);else for(;t!==null;){if(t.tag===3){Ko(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ol===null||!ol.has(a))){e=ht(l,e),l=$s(2),a=ll(t,l,2),a!==null&&(Ws(l,a,t,e),Ua(a,2),zt(a));break}}t=t.return}}function $c(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ym;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)||(Lc=!0,u.add(l),e=Vm.bind(null,e,t,l),t.then(e,e))}function Vm(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,pe===e&&(ce&l)===l&&(Oe===4||Oe===3&&(ce&62914560)===ce&&300>Tt()-Xc?(oe&2)===0&&xa(e,0):Yc|=l,ba===ce&&(ba=0)),zt(e)}function Jo(e,t){t===0&&(t=Xf()),e=aa(e,t),e!==null&&(Ua(e,t),zt(e))}function Km(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Jo(e,l)}function Jm(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),Jo(e,l)}function km(e,t){return fi(e,t)}var Bn=null,Ta=null,Wc=!1,qn=!1,Fc=!1,Yl=0;function zt(e){e!==Ta&&e.next===null&&(Ta===null?Bn=Ta=e:Ta=Ta.next=e),qn=!0,Wc||(Wc=!0,Wm())}function gu(e,t){if(!Fc&&qn){Fc=!0;do for(var l=!1,a=Bn;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var n=0;else{var i=a.suspendedLanes,r=a.pingedLanes;n=(1<<31-lt(42|e)+1)-1,n&=u&~(i&~r),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(l=!0,Fo(a,n))}else n=ce,n=Xu(a,a===pe?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||Ca(a,n)||(l=!0,Fo(a,n));a=a.next}while(l);Fc=!1}}function $m(){ko()}function ko(){qn=Wc=!1;var e=0;Yl!==0&&(uy()&&(e=Yl),Yl=0);for(var t=Tt(),l=null,a=Bn;a!==null;){var u=a.next,n=$o(a,t);n===0?(a.next=null,l===null?Bn=u:l.next=u,u===null&&(Ta=l)):(l=a,(e!==0||(n&3)!==0)&&(qn=!0)),a=u}gu(e)}function $o(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var i=31-lt(n),r=1<<i,m=u[i];m===-1?((r&l)===0||(r&a)!==0)&&(u[i]=xh(r,t)):m<=t&&(e.expiredLanes|=r),n&=~r}if(t=pe,l=ce,l=Xu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(de===2||de===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ri(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ca(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ri(a),di(l)){case 2:case 8:l=Lf;break;case 32:l=Lu;break;case 268435456:l=Yf;break;default:l=Lu}return a=Wo.bind(null,e),l=fi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ri(a),e.callbackPriority=2,e.callbackNode=null,2}function Wo(e,t){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Hn()&&e.callbackNode!==l)return null;var a=ce;return a=Xu(e,e===pe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(jo(e,a,t),$o(e,Tt()),e.callbackNode!=null&&e.callbackNode===l?Wo.bind(null,e):null)}function Fo(e,t){if(Hn())return null;jo(e,t,!0)}function Wm(){iy(function(){(oe&6)!==0?fi(wf,$m):ko()})}function Pc(){return Yl===0&&(Yl=Gf()),Yl}function Po(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ju(""+e)}function Io(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 Fm(e,t,l,a,u){if(t==="submit"&&l&&l.stateNode===u){var n=Po((u[$e]||null).action),i=a.submitter;i&&(t=(t=i[$e]||null)?Po(t.formAction):i.getAttribute("formAction"),t!==null&&(n=t,i=null));var r=new Fu("action","action",null,a,u);e.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Yl!==0){var m=i?Io(u,i):new FormData(u);bc(l,{pending:!0,data:m,method:u.method,action:n},null,m)}}else typeof n=="function"&&(r.preventDefault(),m=i?Io(u,i):new FormData(u),bc(l,{pending:!0,data:m,method:u.method,action:n},n,m))},currentTarget:u}]})}}for(var Ic=0;Ic<qi.length;Ic++){var ef=qi[Ic],Pm=ef.toLowerCase(),Im=ef[0].toUpperCase()+ef.slice(1);St(Pm,"on"+Im)}St(_r,"onAnimationEnd"),St(jr,"onAnimationIteration"),St(Cr,"onAnimationStart"),St("dblclick","onDoubleClick"),St("focusin","onFocus"),St("focusout","onBlur"),St(vm,"onTransitionRun"),St(gm,"onTransitionStart"),St(bm,"onTransitionCancel"),St(Ur,"onTransitionEnd"),Jl("onMouseEnter",["mouseout","mouseover"]),Jl("onMouseLeave",["mouseout","mouseover"]),Jl("onPointerEnter",["pointerout","pointerover"]),Jl("onPointerLeave",["pointerout","pointerover"]),Al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Al("onBeforeInput",["compositionend","keypress","textInput","paste"]),Al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bu="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(" "),ey=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bu));function ed(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 i=a.length-1;0<=i;i--){var r=a[i],m=r.instance,T=r.currentTarget;if(r=r.listener,m!==n&&u.isPropagationStopped())break e;n=r,u.currentTarget=T;try{n(u)}catch(D){An(D)}u.currentTarget=null,n=m}else for(i=0;i<a.length;i++){if(r=a[i],m=r.instance,T=r.currentTarget,r=r.listener,m!==n&&u.isPropagationStopped())break e;n=r,u.currentTarget=T;try{n(u)}catch(D){An(D)}u.currentTarget=null,n=m}}}}function ne(e,t){var l=t[hi];l===void 0&&(l=t[hi]=new Set);var a=e+"__bubble";l.has(a)||(td(t,e,2,!1),l.add(a))}function tf(e,t,l){var a=0;t&&(a|=4),td(l,e,a,t)}var wn="_reactListening"+Math.random().toString(36).slice(2);function lf(e){if(!e[wn]){e[wn]=!0,Jf.forEach(function(l){l!=="selectionchange"&&(ey.has(l)||tf(l,!1,e),tf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wn]||(t[wn]=!0,tf("selectionchange",!1,t))}}function td(e,t,l,a){switch(Rd(t)){case 2:var u=Oy;break;case 8:u=zy;break;default:u=gf}l=u.bind(null,t,l,e),u=void 0,!Ai||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 af(e,t,l,a,u){var n=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var r=a.stateNode.containerInfo;if(r===u)break;if(i===4)for(i=a.return;i!==null;){var m=i.tag;if((m===3||m===4)&&i.stateNode.containerInfo===u)return;i=i.return}for(;r!==null;){if(i=Zl(r),i===null)return;if(m=i.tag,m===5||m===6||m===26||m===27){a=n=i;continue e}r=r.parentNode}}a=a.return}cr(function(){var T=n,D=Ei(l),C=[];e:{var A=Hr.get(e);if(A!==void 0){var R=Fu,I=e;switch(e){case"keypress":if($u(l)===0)break e;case"keydown":case"keyup":R=kh;break;case"focusin":I="focus",R=zi;break;case"focusout":I="blur",R=zi;break;case"beforeblur":case"afterblur":R=zi;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":R=sr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Bh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=Fh;break;case _r:case jr:case Cr:R=Lh;break;case Ur:R=Ih;break;case"scroll":case"scrollend":R=Uh;break;case"wheel":R=tm;break;case"copy":case"cut":case"paste":R=Gh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=dr;break;case"toggle":case"beforetoggle":R=am}var $=(t&4)!==0,ve=!$&&(e==="scroll"||e==="scrollend"),S=$?A!==null?A+"Capture":null:A;$=[];for(var b=T,E;b!==null;){var j=b;if(E=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||E===null||S===null||(j=qa(b,S),j!=null&&$.push(pu(b,j,E))),ve)break;b=b.return}0<$.length&&(A=new R(A,I,null,l,D),C.push({event:A,listeners:$}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",A&&l!==xi&&(I=l.relatedTarget||l.fromElement)&&(Zl(I)||I[Ql]))break e;if((R||A)&&(A=D.window===D?D:(A=D.ownerDocument)?A.defaultView||A.parentWindow:window,R?(I=l.relatedTarget||l.toElement,R=T,I=I?Zl(I):null,I!==null&&(ve=v(I),$=I.tag,I!==ve||$!==5&&$!==27&&$!==6)&&(I=null)):(R=null,I=T),R!==I)){if($=sr,j="onMouseLeave",S="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&($=dr,j="onPointerLeave",S="onPointerEnter",b="pointer"),ve=R==null?A:Ba(R),E=I==null?A:Ba(I),A=new $(j,b+"leave",R,l,D),A.target=ve,A.relatedTarget=E,j=null,Zl(D)===T&&($=new $(S,b+"enter",I,l,D),$.target=E,$.relatedTarget=ve,j=$),ve=j,R&&I)t:{for($=R,S=I,b=0,E=$;E;E=Aa(E))b++;for(E=0,j=S;j;j=Aa(j))E++;for(;0<b-E;)$=Aa($),b--;for(;0<E-b;)S=Aa(S),E--;for(;b--;){if($===S||S!==null&&$===S.alternate)break t;$=Aa($),S=Aa(S)}$=null}else $=null;R!==null&&ld(C,A,R,$,!1),I!==null&&ve!==null&&ld(C,ve,I,$,!0)}}e:{if(A=T?Ba(T):window,R=A.nodeName&&A.nodeName.toLowerCase(),R==="select"||R==="input"&&A.type==="file")var V=Sr;else if(br(A))if(xr)V=hm;else{V=om;var ae=sm}else R=A.nodeName,!R||R.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?T&&Si(T.elementType)&&(V=Sr):V=dm;if(V&&(V=V(e,T))){pr(C,V,l,D);break e}ae&&ae(e,A,T),e==="focusout"&&T&&A.type==="number"&&T.memoizedProps.value!=null&&pi(A,"number",A.value)}switch(ae=T?Ba(T):window,e){case"focusin":(br(ae)||ae.contentEditable==="true")&&(ea=ae,Ui=T,Va=null);break;case"focusout":Va=Ui=ea=null;break;case"mousedown":Hi=!0;break;case"contextmenu":case"mouseup":case"dragend":Hi=!1,Mr(C,l,D);break;case"selectionchange":if(ym)break;case"keydown":case"keyup":Mr(C,l,D)}var J;if(Di)e:{switch(e){case"compositionstart":var W="onCompositionStart";break e;case"compositionend":W="onCompositionEnd";break e;case"compositionupdate":W="onCompositionUpdate";break e}W=void 0}else Il?vr(e,l)&&(W="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(W="onCompositionStart");W&&(hr&&l.locale!=="ko"&&(Il||W!=="onCompositionStart"?W==="onCompositionEnd"&&Il&&(J=fr()):(Pt=D,Ri="value"in Pt?Pt.value:Pt.textContent,Il=!0)),ae=Ln(T,W),0<ae.length&&(W=new or(W,e,null,l,D),C.push({event:W,listeners:ae}),J?W.data=J:(J=gr(l),J!==null&&(W.data=J)))),(J=nm?im(e,l):cm(e,l))&&(W=Ln(T,"onBeforeInput"),0<W.length&&(ae=new or("onBeforeInput","beforeinput",null,l,D),C.push({event:ae,listeners:W}),ae.data=J)),Fm(C,e,T,l,D)}ed(C,t)})}function pu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ln(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=qa(e,l),u!=null&&a.unshift(pu(e,u,n)),u=qa(e,t),u!=null&&a.push(pu(e,u,n))),e.tag===3)return a;e=e.return}return[]}function Aa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ld(e,t,l,a,u){for(var n=t._reactName,i=[];l!==null&&l!==a;){var r=l,m=r.alternate,T=r.stateNode;if(r=r.tag,m!==null&&m===a)break;r!==5&&r!==26&&r!==27||T===null||(m=T,u?(T=qa(l,n),T!=null&&i.unshift(pu(l,T,m))):u||(T=qa(l,n),T!=null&&i.push(pu(l,T,m)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var ty=/\r\n?/g,ly=/\u0000|\uFFFD/g;function ad(e){return(typeof e=="string"?e:""+e).replace(ty,`
`).replace(ly,"")}function ud(e,t){return t=ad(t),ad(e)===t}function Yn(){}function ye(e,t,l,a,u,n){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Wl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Wl(e,""+a);break;case"className":Zu(e,"class",a);break;case"tabIndex":Zu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Zu(e,l,a);break;case"style":nr(e,a,n);break;case"data":if(t!=="object"){Zu(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=Ju(""+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"&&ye(e,t,"name",u.name,u,null),ye(e,t,"formEncType",u.formEncType,u,null),ye(e,t,"formMethod",u.formMethod,u,null),ye(e,t,"formTarget",u.formTarget,u,null)):(ye(e,t,"encType",u.encType,u,null),ye(e,t,"method",u.method,u,null),ye(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Ju(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Yn);break;case"onScroll":a!=null&&ne("scroll",e);break;case"onScrollEnd":a!=null&&ne("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=Ju(""+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":ne("beforetoggle",e),ne("toggle",e),Qu(e,"popover",a);break;case"xlinkActuate":_t(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":_t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":_t(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":_t(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":_t(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":_t(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":_t(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":_t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":_t(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Qu(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=jh.get(l)||l,Qu(e,l,a))}}function uf(e,t,l,a,u,n){switch(l){case"style":nr(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"?Wl(e,a):(typeof a=="number"||typeof a=="bigint")&&Wl(e,""+a);break;case"onScroll":a!=null&&ne("scroll",e);break;case"onScrollEnd":a!=null&&ne("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kf.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,""):Qu(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":ne("error",e),ne("load",e);var a=!1,u=!1,n;for(n in l)if(l.hasOwnProperty(n)){var i=l[n];if(i!=null)switch(n){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ye(e,t,n,i,l,null)}}u&&ye(e,t,"srcSet",l.srcSet,l,null),a&&ye(e,t,"src",l.src,l,null);return;case"input":ne("invalid",e);var r=n=i=u=null,m=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":u=D;break;case"type":i=D;break;case"checked":m=D;break;case"defaultChecked":T=D;break;case"value":n=D;break;case"defaultValue":r=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(f(137,t));break;default:ye(e,t,a,D,l,null)}}tr(e,n,r,m,T,i,u,!1),Vu(e);return;case"select":ne("invalid",e),a=i=n=null;for(u in l)if(l.hasOwnProperty(u)&&(r=l[u],r!=null))switch(u){case"value":n=r;break;case"defaultValue":i=r;break;case"multiple":a=r;default:ye(e,t,u,r,l,null)}t=n,l=i,e.multiple=!!a,t!=null?$l(e,!!a,t,!1):l!=null&&$l(e,!!a,l,!0);return;case"textarea":ne("invalid",e),n=u=a=null;for(i in l)if(l.hasOwnProperty(i)&&(r=l[i],r!=null))switch(i){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:ye(e,t,i,r,l,null)}ar(e,a,u,n),Vu(e);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ye(e,t,m,a,l,null)}return;case"dialog":ne("beforetoggle",e),ne("toggle",e),ne("cancel",e),ne("close",e);break;case"iframe":case"object":ne("load",e);break;case"video":case"audio":for(a=0;a<bu.length;a++)ne(bu[a],e);break;case"image":ne("error",e),ne("load",e);break;case"details":ne("toggle",e);break;case"embed":case"source":case"link":ne("error",e),ne("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:ye(e,t,T,a,l,null)}return;default:if(Si(t)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&uf(e,t,D,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&ye(e,t,r,a,l,null))}function ay(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,i=null,r=null,m=null,T=null,D=null;for(R in l){var C=l[R];if(l.hasOwnProperty(R)&&C!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":m=C;default:a.hasOwnProperty(R)||ye(e,t,R,null,a,C)}}for(var A in a){var R=a[A];if(C=l[A],a.hasOwnProperty(A)&&(R!=null||C!=null))switch(A){case"type":n=R;break;case"name":u=R;break;case"checked":T=R;break;case"defaultChecked":D=R;break;case"value":i=R;break;case"defaultValue":r=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(f(137,t));break;default:R!==C&&ye(e,t,A,R,a,C)}}bi(e,i,r,m,T,D,n,u);return;case"select":R=i=r=A=null;for(n in l)if(m=l[n],l.hasOwnProperty(n)&&m!=null)switch(n){case"value":break;case"multiple":R=m;default:a.hasOwnProperty(n)||ye(e,t,n,null,a,m)}for(u in a)if(n=a[u],m=l[u],a.hasOwnProperty(u)&&(n!=null||m!=null))switch(u){case"value":A=n;break;case"defaultValue":r=n;break;case"multiple":i=n;default:n!==m&&ye(e,t,u,n,a,m)}t=r,l=i,a=R,A!=null?$l(e,!!l,A,!1):!!a!=!!l&&(t!=null?$l(e,!!l,t,!0):$l(e,!!l,l?[]:"",!1));return;case"textarea":R=A=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:ye(e,t,r,null,a,u)}for(i in a)if(u=a[i],n=l[i],a.hasOwnProperty(i)&&(u!=null||n!=null))switch(i){case"value":A=u;break;case"defaultValue":R=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(f(91));break;default:u!==n&&ye(e,t,i,u,a,n)}lr(e,A,R);return;case"option":for(var I in l)if(A=l[I],l.hasOwnProperty(I)&&A!=null&&!a.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:ye(e,t,I,null,a,A)}for(m in a)if(A=a[m],R=l[m],a.hasOwnProperty(m)&&A!==R&&(A!=null||R!=null))switch(m){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:ye(e,t,m,A,a,R)}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 $ in l)A=l[$],l.hasOwnProperty($)&&A!=null&&!a.hasOwnProperty($)&&ye(e,t,$,null,a,A);for(T in a)if(A=a[T],R=l[T],a.hasOwnProperty(T)&&A!==R&&(A!=null||R!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(f(137,t));break;default:ye(e,t,T,A,a,R)}return;default:if(Si(t)){for(var ve in l)A=l[ve],l.hasOwnProperty(ve)&&A!==void 0&&!a.hasOwnProperty(ve)&&uf(e,t,ve,void 0,a,A);for(D in a)A=a[D],R=l[D],!a.hasOwnProperty(D)||A===R||A===void 0&&R===void 0||uf(e,t,D,A,a,R);return}}for(var S in l)A=l[S],l.hasOwnProperty(S)&&A!=null&&!a.hasOwnProperty(S)&&ye(e,t,S,null,a,A);for(C in a)A=a[C],R=l[C],!a.hasOwnProperty(C)||A===R||A==null&&R==null||ye(e,t,C,A,a,R)}var nf=null,cf=null;function Gn(e){return e.nodeType===9?e:e.ownerDocument}function nd(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 id(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 ff(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 rf=null;function uy(){var e=window.event;return e&&e.type==="popstate"?e===rf?!1:(rf=e,!0):(rf=null,!1)}var cd=typeof setTimeout=="function"?setTimeout:void 0,ny=typeof clearTimeout=="function"?clearTimeout:void 0,fd=typeof Promise=="function"?Promise:void 0,iy=typeof queueMicrotask=="function"?queueMicrotask:typeof fd<"u"?function(e){return fd.resolve(null).then(e).catch(cy)}:cd;function cy(e){setTimeout(function(){throw e})}function ml(e){return e==="head"}function rd(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 i=e.ownerDocument;if(l&1&&Su(i.documentElement),l&2&&Su(i.body),l&4)for(l=i.head,Su(l),i=l.firstChild;i;){var r=i.nextSibling,m=i.nodeName;i[Ha]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=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 sf(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":sf(l),mi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function fy(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[Ha])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=Et(e.nextSibling),e===null)break}return null}function ry(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Et(e.nextSibling),e===null))return null;return e}function of(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function sy(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 Et(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 df=null;function sd(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 od(e,t,l){switch(t=Gn(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 Su(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mi(e)}var pt=new Map,dd=new Set;function Xn(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vt=X.d;X.d={f:oy,r:dy,D:hy,C:my,L:yy,m:vy,X:by,S:gy,M:py};function oy(){var e=Vt.f(),t=Cn();return e||t}function dy(e){var t=Vl(e);t!==null&&t.tag===5&&t.type==="form"?_s(t):Vt.r(e)}var Ra=typeof document>"u"?null:document;function hd(e,t,l){var a=Ra;if(a&&typeof t=="string"&&t){var u=dt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),dd.has(u)||(dd.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 hy(e){Vt.D(e),hd("dns-prefetch",e,null)}function my(e,t){Vt.C(e,t),hd("preconnect",e,t)}function yy(e,t,l){Vt.L(e,t,l);var a=Ra;if(a&&e&&t){var u='link[rel="preload"][as="'+dt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+dt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+dt(l.imageSizes)+'"]')):u+='[href="'+dt(e)+'"]';var n=u;switch(t){case"style":n=Na(e);break;case"script":n=Oa(e)}pt.has(n)||(e=z({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),pt.set(n,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(xu(n))||t==="script"&&a.querySelector(Eu(n))||(t=a.createElement("link"),Ge(t,"link",e),He(t),a.head.appendChild(t)))}}function vy(e,t){Vt.m(e,t);var l=Ra;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+dt(a)+'"][href="'+dt(e)+'"]',n=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Oa(e)}if(!pt.has(n)&&(e=z({rel:"modulepreload",href:e},t),pt.set(n,e),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Eu(n)))return}a=l.createElement("link"),Ge(a,"link",e),He(a),l.head.appendChild(a)}}}function gy(e,t,l){Vt.S(e,t,l);var a=Ra;if(a&&e){var u=Kl(a).hoistableStyles,n=Na(e);t=t||"default";var i=u.get(n);if(!i){var r={loading:0,preload:null};if(i=a.querySelector(xu(n)))r.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},l),(l=pt.get(n))&&hf(e,l);var m=i=a.createElement("link");He(m),Ge(m,"link",e),m._p=new Promise(function(T,D){m.onload=T,m.onerror=D}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Qn(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:r},u.set(n,i)}}}function by(e,t){Vt.X(e,t);var l=Ra;if(l&&e){var a=Kl(l).hoistableScripts,u=Oa(e),n=a.get(u);n||(n=l.querySelector(Eu(u)),n||(e=z({src:e,async:!0},t),(t=pt.get(u))&&mf(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 py(e,t){Vt.M(e,t);var l=Ra;if(l&&e){var a=Kl(l).hoistableScripts,u=Oa(e),n=a.get(u);n||(n=l.querySelector(Eu(u)),n||(e=z({src:e,async:!0,type:"module"},t),(t=pt.get(u))&&mf(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 md(e,t,l,a){var u=(u=ee.current)?Xn(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=Na(l.href),l=Kl(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=Na(l.href);var n=Kl(u).hoistableStyles,i=n.get(e);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,i),(n=u.querySelector(xu(e)))&&!n._p&&(i.instance=n,i.state.loading=5),pt.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},pt.set(e,l),n||Sy(u,e,l,i.state))),t&&a===null)throw Error(f(528,""));return i}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=Oa(l),l=Kl(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 Na(e){return'href="'+dt(e)+'"'}function xu(e){return'link[rel="stylesheet"]['+e+"]"}function yd(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function Sy(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 Oa(e){return'[src="'+dt(e)+'"]'}function Eu(e){return"script[async]"+e}function vd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+dt(l.href)+'"]');if(a)return t.instance=a,He(a),a;var u=z({},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),Qn(a,l.precedence,e),t.instance=a;case"stylesheet":u=Na(l.href);var n=e.querySelector(xu(u));if(n)return t.state.loading|=4,t.instance=n,He(n),n;a=yd(l),(u=pt.get(u))&&hf(a,u),n=(e.ownerDocument||e).createElement("link"),He(n);var i=n;return i._p=new Promise(function(r,m){i.onload=r,i.onerror=m}),Ge(n,"link",a),t.state.loading|=4,Qn(n,l.precedence,e),t.instance=n;case"script":return n=Oa(l.src),(u=e.querySelector(Eu(n)))?(t.instance=u,He(u),u):(a=l,(u=pt.get(n))&&(a=z({},l),mf(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,Qn(a,l.precedence,e));return t.instance}function Qn(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,i=0;i<a.length;i++){var r=a[i];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 hf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Zn=null;function gd(e,t,l){if(Zn===null){var a=new Map,u=Zn=new Map;u.set(l,a)}else u=Zn,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[Ha]||n[Ze]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(t)||"";i=e+i;var r=a.get(i);r?r.push(n):a.set(i,[n])}}return a}function bd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function xy(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 pd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Tu=null;function Ey(){}function Ty(e,t,l){if(Tu===null)throw Error(f(475));var a=Tu;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Na(l.href),n=e.querySelector(xu(u));if(n){e=n._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Vn.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=n,He(n);return}n=e.ownerDocument||e,l=yd(l),(u=pt.get(u))&&hf(l,u),n=n.createElement("link"),He(n);var i=n;i._p=new Promise(function(r,m){i.onload=r,i.onerror=m}),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=Vn.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Ay(){if(Tu===null)throw Error(f(475));var e=Tu;return e.stylesheets&&e.count===0&&yf(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&yf(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 Vn(){if(this.count--,this.count===0){if(this.stylesheets)yf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kn=null;function yf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kn=new Map,t.forEach(Ry,e),Kn=null,Vn.call(e))}function Ry(e,t){if(!(t.state.loading&4)){var l=Kn.get(e);if(l)var a=l.get(null);else{l=new Map,Kn.set(e,l);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<u.length;n++){var i=u[n];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}u=t.instance,i=u.getAttribute("data-precedence"),n=l.get(i)||a,n===a&&l.set(null,u),l.set(i,u),this.count++,a=Vn.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 Au={$$typeof:F,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Ny(e,t,l,a,u,n,i,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=si(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=si(0),this.hiddenUpdates=si(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function Sd(e,t,l,a,u,n,i,r,m,T,D,C){return e=new Ny(e,t,l,i,r,m,T,C),t=1,n===!0&&(t|=24),n=ut(3,null,null,t),e.current=n,n.stateNode=e,t=$i(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:a,isDehydrated:l,cache:t},Ii(n),e}function xd(e){return e?(e=ua,e):ua}function Ed(e,t,l,a,u,n){u=xd(u),a.context===null?a.context=u:a.pendingContext=u,a=tl(t),a.payload={element:l},n=n===void 0?null:n,n!==null&&(a.callback=n),l=ll(e,a,t),l!==null&&(rt(l,e,t),eu(l,e,t))}function Td(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function vf(e,t){Td(e,t),(e=e.alternate)&&Td(e,t)}function Ad(e){if(e.tag===13){var t=aa(e,67108864);t!==null&&rt(t,e,67108864),vf(e,67108864)}}var Jn=!0;function Oy(e,t,l,a){var u=_.T;_.T=null;var n=X.p;try{X.p=2,gf(e,t,l,a)}finally{X.p=n,_.T=u}}function zy(e,t,l,a){var u=_.T;_.T=null;var n=X.p;try{X.p=8,gf(e,t,l,a)}finally{X.p=n,_.T=u}}function gf(e,t,l,a){if(Jn){var u=bf(a);if(u===null)af(e,t,a,kn,l),Nd(e,a);else if(Dy(u,e,t,l,a))a.stopPropagation();else if(Nd(e,a),t&4&&-1<My.indexOf(e)){for(;u!==null;){var n=Vl(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=Tl(n.pendingLanes);if(i!==0){var r=n;for(r.pendingLanes|=2,r.entangledLanes|=2;i;){var m=1<<31-lt(i);r.entanglements[1]|=m,i&=~m}zt(n),(oe&6)===0&&(_n=Tt()+500,gu(0))}}break;case 13:r=aa(n,2),r!==null&&rt(r,n,2),Cn(),vf(n,2)}if(n=bf(a),n===null&&af(e,t,a,kn,l),n===u)break;u=n}u!==null&&a.stopPropagation()}else af(e,t,a,null,l)}}function bf(e){return e=Ei(e),pf(e)}var kn=null;function pf(e){if(kn=null,e=Zl(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(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 kn=e,null}function Rd(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(mh()){case wf:return 2;case Lf:return 8;case Lu:case yh:return 32;case Yf:return 268435456;default:return 32}default:return 32}}var Sf=!1,yl=null,vl=null,gl=null,Ru=new Map,Nu=new Map,bl=[],My="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 Nd(e,t){switch(e){case"focusin":case"focusout":yl=null;break;case"dragenter":case"dragleave":vl=null;break;case"mouseover":case"mouseout":gl=null;break;case"pointerover":case"pointerout":Ru.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nu.delete(t.pointerId)}}function Ou(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=Vl(t),t!==null&&Ad(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Dy(e,t,l,a,u){switch(t){case"focusin":return yl=Ou(yl,e,t,l,a,u),!0;case"dragenter":return vl=Ou(vl,e,t,l,a,u),!0;case"mouseover":return gl=Ou(gl,e,t,l,a,u),!0;case"pointerover":var n=u.pointerId;return Ru.set(n,Ou(Ru.get(n)||null,e,t,l,a,u)),!0;case"gotpointercapture":return n=u.pointerId,Nu.set(n,Ou(Nu.get(n)||null,e,t,l,a,u)),!0}return!1}function Od(e){var t=Zl(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,Th(e.priority,function(){if(l.tag===13){var a=ft();a=oi(a);var u=aa(l,a);u!==null&&rt(u,l,a),vf(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 $n(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=bf(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);xi=a,l.target.dispatchEvent(a),xi=null}else return t=Vl(l),t!==null&&Ad(t),e.blockedOn=l,!1;t.shift()}return!0}function zd(e,t,l){$n(e)&&l.delete(t)}function _y(){Sf=!1,yl!==null&&$n(yl)&&(yl=null),vl!==null&&$n(vl)&&(vl=null),gl!==null&&$n(gl)&&(gl=null),Ru.forEach(zd),Nu.forEach(zd)}function Wn(e,t){e.blockedOn===t&&(e.blockedOn=null,Sf||(Sf=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,_y)))}var Fn=null;function Md(e){Fn!==e&&(Fn=e,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){Fn===e&&(Fn=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(pf(a||l)===null)continue;break}var n=Vl(l);n!==null&&(e.splice(t,3),t-=3,bc(n,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function zu(e){function t(m){return Wn(m,e)}yl!==null&&Wn(yl,e),vl!==null&&Wn(vl,e),gl!==null&&Wn(gl,e),Ru.forEach(t),Nu.forEach(t);for(var l=0;l<bl.length;l++){var a=bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<bl.length&&(l=bl[0],l.blockedOn===null);)Od(l),l.blockedOn===null&&bl.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],i=u[$e]||null;if(typeof n=="function")i||Md(l);else if(i){var r=null;if(n&&n.hasAttribute("formAction")){if(u=n,i=n[$e]||null)r=i.formAction;else if(pf(u)!==null)continue}else r=i.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),Md(l)}}}function xf(e){this._internalRoot=e}Pn.prototype.render=xf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var l=t.current,a=ft();Ed(l,a,e,t,null,null)},Pn.prototype.unmount=xf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ed(e.current,2,null,e,null,null),Cn(),t[Ql]=null}};function Pn(e){this._internalRoot=e}Pn.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<bl.length&&t!==0&&t<bl[l].priority;l++);bl.splice(l,0,e),l===0&&Od(e)}};var Dd=s.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=p(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var jy={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var In=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!In.isDisabled&&In.supportsFiber)try{ja=In.inject(jy),tt=In}catch{}}return Du.createRoot=function(e,t){if(!d(e))throw Error(f(299));var l=!1,a="",u=Vs,n=Ks,i=Js,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&&(i=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(r=t.unstable_transitionCallbacks)),t=Sd(e,1,!1,null,null,l,a,u,n,i,r,null),e[Ql]=t.current,lf(e),new xf(t)},Du.hydrateRoot=function(e,t,l){if(!d(e))throw Error(f(299));var a=!1,u="",n=Vs,i=Ks,r=Js,m=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&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(m=l.unstable_transitionCallbacks),l.formState!==void 0&&(T=l.formState)),t=Sd(e,1,!0,t,l??null,a,u,n,i,r,m,T),t.context=xd(null),l=t.current,a=ft(),a=oi(a),u=tl(a),u.callback=null,ll(l,u,a),l=a,t.current.lanes=l,Ua(t,l),zt(t),e[Ql]=t.current,lf(e),new Pn(t)},Du.version="19.1.0",Du}var Yd;function Qy(){if(Yd)return Af.exports;Yd=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(s){console.error(s)}}return c(),Af.exports=Xy(),Af.exports}var Zy=Qy();const Vy=Jd(Zy);var _u={},Gd;function Ky(){if(Gd)return _u;Gd=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.parse=x,_u.serialize=h;const c=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,s=/^[\u0021-\u003A\u003C-\u007E]*$/,o=/^([.]?[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 N=function(){};return N.prototype=Object.create(null),N})();function x(N,w){const U=new v,Y=N.length;if(Y<2)return U;const Z=(w==null?void 0:w.decode)||z;let B=0;do{const L=N.indexOf("=",B);if(L===-1)break;const F=N.indexOf(";",B),ie=F===-1?Y:F;if(L>ie){B=N.lastIndexOf(";",L-1)+1;continue}const K=M(N,B,L),he=p(N,L,K),Te=N.slice(K,he);if(U[Te]===void 0){let ze=M(N,L+1,ie),Se=p(N,ie,ze);const Je=Z(N.slice(ze,Se));U[Te]=Je}B=ie+1}while(B<Y);return U}function M(N,w,U){do{const Y=N.charCodeAt(w);if(Y!==32&&Y!==9)return w}while(++w<U);return U}function p(N,w,U){for(;w>U;){const Y=N.charCodeAt(--w);if(Y!==32&&Y!==9)return w+1}return U}function h(N,w,U){const Y=(U==null?void 0:U.encode)||encodeURIComponent;if(!c.test(N))throw new TypeError(`argument name is invalid: ${N}`);const Z=Y(w);if(!s.test(Z))throw new TypeError(`argument val is invalid: ${w}`);let B=N+"="+Z;if(!U)return B;if(U.maxAge!==void 0){if(!Number.isInteger(U.maxAge))throw new TypeError(`option maxAge is invalid: ${U.maxAge}`);B+="; Max-Age="+U.maxAge}if(U.domain){if(!o.test(U.domain))throw new TypeError(`option domain is invalid: ${U.domain}`);B+="; Domain="+U.domain}if(U.path){if(!f.test(U.path))throw new TypeError(`option path is invalid: ${U.path}`);B+="; Path="+U.path}if(U.expires){if(!H(U.expires)||!Number.isFinite(U.expires.valueOf()))throw new TypeError(`option expires is invalid: ${U.expires}`);B+="; Expires="+U.expires.toUTCString()}if(U.httpOnly&&(B+="; HttpOnly"),U.secure&&(B+="; Secure"),U.partitioned&&(B+="; Partitioned"),U.priority)switch(typeof U.priority=="string"?U.priority.toLowerCase():void 0){case"low":B+="; Priority=Low";break;case"medium":B+="; Priority=Medium";break;case"high":B+="; 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":B+="; SameSite=Strict";break;case"lax":B+="; SameSite=Lax";break;case"none":B+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${U.sameSite}`)}return B}function z(N){if(N.indexOf("%")===-1)return N;try{return decodeURIComponent(N)}catch{return N}}function H(N){return d.call(N)==="[object Date]"}return _u}Ky();var Xd="popstate";function Jy(c={}){function s(f,d){let{pathname:v,search:x,hash:M}=f.location;return Df("",{pathname:v,search:x,hash:M},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function o(f,d){return typeof d=="string"?d:Cu(d)}return $y(s,o,null,c)}function Re(c,s){if(c===!1||c===null||typeof c>"u")throw new Error(s)}function Mt(c,s){if(!c){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function ky(){return Math.random().toString(36).substring(2,10)}function Qd(c,s){return{usr:c.state,key:c.key,idx:s}}function Df(c,s,o=null,f){return{pathname:typeof c=="string"?c:c.pathname,search:"",hash:"",...typeof s=="string"?Ma(s):s,state:o,key:s&&s.key||f||ky()}}function Cu({pathname:c="/",search:s="",hash:o=""}){return s&&s!=="?"&&(c+=s.charAt(0)==="?"?s:"?"+s),o&&o!=="#"&&(c+=o.charAt(0)==="#"?o:"#"+o),c}function Ma(c){let s={};if(c){let o=c.indexOf("#");o>=0&&(s.hash=c.substring(o),c=c.substring(0,o));let f=c.indexOf("?");f>=0&&(s.search=c.substring(f),c=c.substring(0,f)),c&&(s.pathname=c)}return s}function $y(c,s,o,f={}){let{window:d=document.defaultView,v5Compat:v=!1}=f,x=d.history,M="POP",p=null,h=z();h==null&&(h=0,x.replaceState({...x.state,idx:h},""));function z(){return(x.state||{idx:null}).idx}function H(){M="POP";let Z=z(),B=Z==null?null:Z-h;h=Z,p&&p({action:M,location:Y.location,delta:B})}function N(Z,B){M="PUSH";let L=Df(Y.location,Z,B);h=z()+1;let F=Qd(L,h),ie=Y.createHref(L);try{x.pushState(F,"",ie)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;d.location.assign(ie)}v&&p&&p({action:M,location:Y.location,delta:1})}function w(Z,B){M="REPLACE";let L=Df(Y.location,Z,B);h=z();let F=Qd(L,h),ie=Y.createHref(L);x.replaceState(F,"",ie),v&&p&&p({action:M,location:Y.location,delta:0})}function U(Z){return Wy(Z)}let Y={get action(){return M},get location(){return c(d,x)},listen(Z){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(Xd,H),p=Z,()=>{d.removeEventListener(Xd,H),p=null}},createHref(Z){return s(d,Z)},createURL:U,encodeLocation(Z){let B=U(Z);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:N,replace:w,go(Z){return x.go(Z)}};return Y}function Wy(c,s=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Re(o,"No window.location.(origin|href) available to create URL");let f=typeof c=="string"?c:Cu(c);return f=f.replace(/ $/,"%20"),!s&&f.startsWith("//")&&(f=o+f),new URL(f,o)}function kd(c,s,o="/"){return Fy(c,s,o,!1)}function Fy(c,s,o,f){let d=typeof s=="string"?Ma(s):s,v=Jt(d.pathname||"/",o);if(v==null)return null;let x=$d(c);Py(x);let M=null;for(let p=0;M==null&&p<x.length;++p){let h=r0(v);M=c0(x[p],h,f)}return M}function $d(c,s=[],o=[],f=""){let d=(v,x,M)=>{let p={relativePath:M===void 0?v.path||"":M,caseSensitive:v.caseSensitive===!0,childrenIndex:x,route:v};p.relativePath.startsWith("/")&&(Re(p.relativePath.startsWith(f),`Absolute route path "${p.relativePath}" nested under path "${f}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(f.length));let h=Kt([f,p.relativePath]),z=o.concat(p);v.children&&v.children.length>0&&(Re(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),$d(v.children,s,z,h)),!(v.path==null&&!v.index)&&s.push({path:h,score:n0(h,v.index),routesMeta:z})};return c.forEach((v,x)=>{var M;if(v.path===""||!((M=v.path)!=null&&M.includes("?")))d(v,x);else for(let p of Wd(v.path))d(v,x,p)}),s}function Wd(c){let s=c.split("/");if(s.length===0)return[];let[o,...f]=s,d=o.endsWith("?"),v=o.replace(/\?$/,"");if(f.length===0)return d?[v,""]:[v];let x=Wd(f.join("/")),M=[];return M.push(...x.map(p=>p===""?v:[v,p].join("/"))),d&&M.push(...x),M.map(p=>c.startsWith("/")&&p===""?"/":p)}function Py(c){c.sort((s,o)=>s.score!==o.score?o.score-s.score:i0(s.routesMeta.map(f=>f.childrenIndex),o.routesMeta.map(f=>f.childrenIndex)))}var Iy=/^:[\w-]+$/,e0=3,t0=2,l0=1,a0=10,u0=-2,Zd=c=>c==="*";function n0(c,s){let o=c.split("/"),f=o.length;return o.some(Zd)&&(f+=u0),s&&(f+=t0),o.filter(d=>!Zd(d)).reduce((d,v)=>d+(Iy.test(v)?e0:v===""?l0:a0),f)}function i0(c,s){return c.length===s.length&&c.slice(0,-1).every((f,d)=>f===s[d])?c[c.length-1]-s[s.length-1]:0}function c0(c,s,o=!1){let{routesMeta:f}=c,d={},v="/",x=[];for(let M=0;M<f.length;++M){let p=f[M],h=M===f.length-1,z=v==="/"?s:s.slice(v.length)||"/",H=ai({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},z),N=p.route;if(!H&&h&&o&&!f[f.length-1].route.index&&(H=ai({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},z)),!H)return null;Object.assign(d,H.params),x.push({params:d,pathname:Kt([v,H.pathname]),pathnameBase:h0(Kt([v,H.pathnameBase])),route:N}),H.pathnameBase!=="/"&&(v=Kt([v,H.pathnameBase]))}return x}function ai(c,s){typeof c=="string"&&(c={path:c,caseSensitive:!1,end:!0});let[o,f]=f0(c.path,c.caseSensitive,c.end),d=s.match(o);if(!d)return null;let v=d[0],x=v.replace(/(.)\/+$/,"$1"),M=d.slice(1);return{params:f.reduce((h,{paramName:z,isOptional:H},N)=>{if(z==="*"){let U=M[N]||"";x=v.slice(0,v.length-U.length).replace(/(.)\/+$/,"$1")}const w=M[N];return H&&!w?h[z]=void 0:h[z]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:v,pathnameBase:x,pattern:c}}function f0(c,s=!1,o=!0){Mt(c==="*"||!c.endsWith("*")||c.endsWith("/*"),`Route path "${c}" will be treated as if it were "${c.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${c.replace(/\*$/,"/*")}".`);let f=[],d="^"+c.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,M,p)=>(f.push({paramName:M,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return c.endsWith("*")?(f.push({paramName:"*"}),d+=c==="*"||c==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":c!==""&&c!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),f]}function r0(c){try{return c.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Mt(!1,`The URL path "${c}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),c}}function Jt(c,s){if(s==="/")return c;if(!c.toLowerCase().startsWith(s.toLowerCase()))return null;let o=s.endsWith("/")?s.length-1:s.length,f=c.charAt(o);return f&&f!=="/"?null:c.slice(o)||"/"}function s0(c,s="/"){let{pathname:o,search:f="",hash:d=""}=typeof c=="string"?Ma(c):c;return{pathname:o?o.startsWith("/")?o:o0(o,s):s,search:m0(f),hash:y0(d)}}function o0(c,s){let o=s.replace(/\/+$/,"").split("/");return c.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function zf(c,s,o,f){return`Cannot include a '${c}' character in a manually specified \`to.${s}\` field [${JSON.stringify(f)}].  Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function d0(c){return c.filter((s,o)=>o===0||s.route.path&&s.route.path.length>0)}function Fd(c){let s=d0(c);return s.map((o,f)=>f===s.length-1?o.pathname:o.pathnameBase)}function Pd(c,s,o,f=!1){let d;typeof c=="string"?d=Ma(c):(d={...c},Re(!d.pathname||!d.pathname.includes("?"),zf("?","pathname","search",d)),Re(!d.pathname||!d.pathname.includes("#"),zf("#","pathname","hash",d)),Re(!d.search||!d.search.includes("#"),zf("#","search","hash",d)));let v=c===""||d.pathname==="",x=v?"/":d.pathname,M;if(x==null)M=o;else{let H=s.length-1;if(!f&&x.startsWith("..")){let N=x.split("/");for(;N[0]==="..";)N.shift(),H-=1;d.pathname=N.join("/")}M=H>=0?s[H]:"/"}let p=s0(d,M),h=x&&x!=="/"&&x.endsWith("/"),z=(v||x===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(h||z)&&(p.pathname+="/"),p}var Kt=c=>c.join("/").replace(/\/\/+/g,"/"),h0=c=>c.replace(/\/+$/,"").replace(/^\/*/,"/"),m0=c=>!c||c==="?"?"":c.startsWith("?")?c:"?"+c,y0=c=>!c||c==="#"?"":c.startsWith("#")?c:"#"+c;function v0(c){return c!=null&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.internal=="boolean"&&"data"in c}var Id=["POST","PUT","PATCH","DELETE"];new Set(Id);var g0=["GET",...Id];new Set(g0);var Da=O.createContext(null);Da.displayName="DataRouter";var ui=O.createContext(null);ui.displayName="DataRouterState";var eh=O.createContext({isTransitioning:!1});eh.displayName="ViewTransition";var b0=O.createContext(new Map);b0.displayName="Fetchers";var p0=O.createContext(null);p0.displayName="Await";var Dt=O.createContext(null);Dt.displayName="Navigation";var Hu=O.createContext(null);Hu.displayName="Location";var kt=O.createContext({outlet:null,matches:[],isDataRoute:!1});kt.displayName="Route";var Cf=O.createContext(null);Cf.displayName="RouteError";function S0(c,{relative:s}={}){Re(Bu(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:f}=O.useContext(Dt),{hash:d,pathname:v,search:x}=qu(c,{relative:s}),M=v;return o!=="/"&&(M=v==="/"?o:Kt([o,v])),f.createHref({pathname:M,search:x,hash:d})}function Bu(){return O.useContext(Hu)!=null}function Xl(){return Re(Bu(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(Hu).location}var th="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lh(c){O.useContext(Dt).static||O.useLayoutEffect(c)}function x0(){let{isDataRoute:c}=O.useContext(kt);return c?U0():E0()}function E0(){Re(Bu(),"useNavigate() may be used only in the context of a <Router> component.");let c=O.useContext(Da),{basename:s,navigator:o}=O.useContext(Dt),{matches:f}=O.useContext(kt),{pathname:d}=Xl(),v=JSON.stringify(Fd(f)),x=O.useRef(!1);return lh(()=>{x.current=!0}),O.useCallback((p,h={})=>{if(Mt(x.current,th),!x.current)return;if(typeof p=="number"){o.go(p);return}let z=Pd(p,JSON.parse(v),d,h.relative==="path");c==null&&s!=="/"&&(z.pathname=z.pathname==="/"?s:Kt([s,z.pathname])),(h.replace?o.replace:o.push)(z,h.state,h)},[s,o,v,d,c])}O.createContext(null);function qu(c,{relative:s}={}){let{matches:o}=O.useContext(kt),{pathname:f}=Xl(),d=JSON.stringify(Fd(o));return O.useMemo(()=>Pd(c,JSON.parse(d),f,s==="path"),[c,d,f,s])}function T0(c,s){return ah(c,s)}function ah(c,s,o,f){var B;Re(Bu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=O.useContext(Dt),{matches:v}=O.useContext(kt),x=v[v.length-1],M=x?x.params:{},p=x?x.pathname:"/",h=x?x.pathnameBase:"/",z=x&&x.route;{let L=z&&z.path||"";uh(p,!z||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${L}">) 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="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let H=Xl(),N;if(s){let L=typeof s=="string"?Ma(s):s;Re(h==="/"||((B=L.pathname)==null?void 0:B.startsWith(h)),`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 "${h}" but pathname "${L.pathname}" was given in the \`location\` prop.`),N=L}else N=H;let w=N.pathname||"/",U=w;if(h!=="/"){let L=h.replace(/^\//,"").split("/");U="/"+w.replace(/^\//,"").split("/").slice(L.length).join("/")}let Y=kd(c,{pathname:U});Mt(z||Y!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Mt(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.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 Z=z0(Y&&Y.map(L=>Object.assign({},L,{params:Object.assign({},M,L.params),pathname:Kt([h,d.encodeLocation?d.encodeLocation(L.pathname).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?h:Kt([h,d.encodeLocation?d.encodeLocation(L.pathnameBase).pathname:L.pathnameBase])})),v,o,f);return s&&Z?O.createElement(Hu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},Z):Z}function A0(){let c=C0(),s=v0(c)?`${c.status} ${c.statusText}`:c instanceof Error?c.message:JSON.stringify(c),o=c instanceof Error?c.stack:null,f="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:f},v={padding:"2px 4px",backgroundColor:f},x=null;return console.error("Error handled by React Router default ErrorBoundary:",c),x=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:v},"ErrorBoundary")," or"," ",O.createElement("code",{style:v},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},s),o?O.createElement("pre",{style:d},o):null,x)}var R0=O.createElement(A0,null),N0=class extends O.Component{constructor(c){super(c),this.state={location:c.location,revalidation:c.revalidation,error:c.error}}static getDerivedStateFromError(c){return{error:c}}static getDerivedStateFromProps(c,s){return s.location!==c.location||s.revalidation!=="idle"&&c.revalidation==="idle"?{error:c.error,location:c.location,revalidation:c.revalidation}:{error:c.error!==void 0?c.error:s.error,location:s.location,revalidation:c.revalidation||s.revalidation}}componentDidCatch(c,s){console.error("React Router caught the following error during render",c,s)}render(){return this.state.error!==void 0?O.createElement(kt.Provider,{value:this.props.routeContext},O.createElement(Cf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function O0({routeContext:c,match:s,children:o}){let f=O.useContext(Da);return f&&f.static&&f.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=s.route.id),O.createElement(kt.Provider,{value:c},o)}function z0(c,s=[],o=null,f=null){if(c==null){if(!o)return null;if(o.errors)c=o.matches;else if(s.length===0&&!o.initialized&&o.matches.length>0)c=o.matches;else return null}let d=c,v=o==null?void 0:o.errors;if(v!=null){let p=d.findIndex(h=>h.route.id&&(v==null?void 0:v[h.route.id])!==void 0);Re(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),d=d.slice(0,Math.min(d.length,p+1))}let x=!1,M=-1;if(o)for(let p=0;p<d.length;p++){let h=d[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(M=p),h.route.id){let{loaderData:z,errors:H}=o,N=h.route.loader&&!z.hasOwnProperty(h.route.id)&&(!H||H[h.route.id]===void 0);if(h.route.lazy||N){x=!0,M>=0?d=d.slice(0,M+1):d=[d[0]];break}}}return d.reduceRight((p,h,z)=>{let H,N=!1,w=null,U=null;o&&(H=v&&h.route.id?v[h.route.id]:void 0,w=h.route.errorElement||R0,x&&(M<0&&z===0?(uh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,U=null):M===z&&(N=!0,U=h.route.hydrateFallbackElement||null)));let Y=s.concat(d.slice(0,z+1)),Z=()=>{let B;return H?B=w:N?B=U:h.route.Component?B=O.createElement(h.route.Component,null):h.route.element?B=h.route.element:B=p,O.createElement(O0,{match:h,routeContext:{outlet:p,matches:Y,isDataRoute:o!=null},children:B})};return o&&(h.route.ErrorBoundary||h.route.errorElement||z===0)?O.createElement(N0,{location:o.location,revalidation:o.revalidation,component:w,error:H,children:Z(),routeContext:{outlet:null,matches:Y,isDataRoute:!0}}):Z()},null)}function Uf(c){return`${c} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function M0(c){let s=O.useContext(Da);return Re(s,Uf(c)),s}function D0(c){let s=O.useContext(ui);return Re(s,Uf(c)),s}function _0(c){let s=O.useContext(kt);return Re(s,Uf(c)),s}function Hf(c){let s=_0(c),o=s.matches[s.matches.length-1];return Re(o.route.id,`${c} can only be used on routes that contain a unique "id"`),o.route.id}function j0(){return Hf("useRouteId")}function C0(){var f;let c=O.useContext(Cf),s=D0("useRouteError"),o=Hf("useRouteError");return c!==void 0?c:(f=s.errors)==null?void 0:f[o]}function U0(){let{router:c}=M0("useNavigate"),s=Hf("useNavigate"),o=O.useRef(!1);return lh(()=>{o.current=!0}),O.useCallback(async(d,v={})=>{Mt(o.current,th),o.current&&(typeof d=="number"?c.navigate(d):await c.navigate(d,{fromRouteId:s,...v}))},[c,s])}var Vd={};function uh(c,s,o){!s&&!Vd[c]&&(Vd[c]=!0,Mt(!1,o))}O.memo(H0);function H0({routes:c,future:s,state:o}){return ah(c,void 0,o,s)}function Gl(c){Re(!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 B0({basename:c="/",children:s=null,location:o,navigationType:f="POP",navigator:d,static:v=!1}){Re(!Bu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=c.replace(/^\/*/,"/"),M=O.useMemo(()=>({basename:x,navigator:d,static:v,future:{}}),[x,d,v]);typeof o=="string"&&(o=Ma(o));let{pathname:p="/",search:h="",hash:z="",state:H=null,key:N="default"}=o,w=O.useMemo(()=>{let U=Jt(p,x);return U==null?null:{location:{pathname:U,search:h,hash:z,state:H,key:N},navigationType:f}},[x,p,h,z,H,N,f]);return Mt(w!=null,`<Router basename="${x}"> is not able to match the URL "${p}${h}${z}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:O.createElement(Dt.Provider,{value:M},O.createElement(Hu.Provider,{children:s,value:w}))}function q0({children:c,location:s}){return T0(_f(c),s)}function _f(c,s=[]){let o=[];return O.Children.forEach(c,(f,d)=>{if(!O.isValidElement(f))return;let v=[...s,d];if(f.type===O.Fragment){o.push.apply(o,_f(f.props.children,v));return}Re(f.type===Gl,`[${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>`),Re(!f.props.index||!f.props.children,"An index route cannot have child routes.");let x={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&&(x.children=_f(f.props.children,v)),o.push(x)}),o}var ti="get",li="application/x-www-form-urlencoded";function ni(c){return c!=null&&typeof c.tagName=="string"}function w0(c){return ni(c)&&c.tagName.toLowerCase()==="button"}function L0(c){return ni(c)&&c.tagName.toLowerCase()==="form"}function Y0(c){return ni(c)&&c.tagName.toLowerCase()==="input"}function G0(c){return!!(c.metaKey||c.altKey||c.ctrlKey||c.shiftKey)}function X0(c,s){return c.button===0&&(!s||s==="_self")&&!G0(c)}var ei=null;function Q0(){if(ei===null)try{new FormData(document.createElement("form"),0),ei=!1}catch{ei=!0}return ei}var Z0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Mf(c){return c!=null&&!Z0.has(c)?(Mt(!1,`"${c}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${li}"`),null):c}function V0(c,s){let o,f,d,v,x;if(L0(c)){let M=c.getAttribute("action");f=M?Jt(M,s):null,o=c.getAttribute("method")||ti,d=Mf(c.getAttribute("enctype"))||li,v=new FormData(c)}else if(w0(c)||Y0(c)&&(c.type==="submit"||c.type==="image")){let M=c.form;if(M==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=c.getAttribute("formaction")||M.getAttribute("action");if(f=p?Jt(p,s):null,o=c.getAttribute("formmethod")||M.getAttribute("method")||ti,d=Mf(c.getAttribute("formenctype"))||Mf(M.getAttribute("enctype"))||li,v=new FormData(M,c),!Q0()){let{name:h,type:z,value:H}=c;if(z==="image"){let N=h?`${h}.`:"";v.append(`${N}x`,"0"),v.append(`${N}y`,"0")}else h&&v.append(h,H)}}else{if(ni(c))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=ti,f=null,d=li,x=c}return v&&d==="text/plain"&&(x=v,v=void 0),{action:f,method:o.toLowerCase(),encType:d,formData:v,body:x}}function Bf(c,s){if(c===!1||c===null||typeof c>"u")throw new Error(s)}async function K0(c,s){if(c.id in s)return s[c.id];try{let o=await import(c.module);return s[c.id]=o,o}catch(o){return console.error(`Error loading route module \`${c.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function J0(c){return c==null?!1:c.href==null?c.rel==="preload"&&typeof c.imageSrcSet=="string"&&typeof c.imageSizes=="string":typeof c.rel=="string"&&typeof c.href=="string"}async function k0(c,s,o){let f=await Promise.all(c.map(async d=>{let v=s.routes[d.route.id];if(v){let x=await K0(v,o);return x.links?x.links():[]}return[]}));return P0(f.flat(1).filter(J0).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Kd(c,s,o,f,d,v){let x=(p,h)=>o[h]?p.route.id!==o[h].route.id:!0,M=(p,h)=>{var z;return o[h].pathname!==p.pathname||((z=o[h].route.path)==null?void 0:z.endsWith("*"))&&o[h].params["*"]!==p.params["*"]};return v==="assets"?s.filter((p,h)=>x(p,h)||M(p,h)):v==="data"?s.filter((p,h)=>{var H;let z=f.routes[p.route.id];if(!z||!z.hasLoader)return!1;if(x(p,h)||M(p,h))return!0;if(p.route.shouldRevalidate){let N=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((H=o[0])==null?void 0:H.params)||{},nextUrl:new URL(c,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function $0(c,s,{includeHydrateFallback:o}={}){return W0(c.map(f=>{let d=s.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)),o&&d.hydrateFallbackModule&&(v=v.concat(d.hydrateFallbackModule)),d.imports&&(v=v.concat(d.imports)),v}).flat(1))}function W0(c){return[...new Set(c)]}function F0(c){let s={},o=Object.keys(c).sort();for(let f of o)s[f]=c[f];return s}function P0(c,s){let o=new Set;return new Set(s),c.reduce((f,d)=>{let v=JSON.stringify(F0(d));return o.has(v)||(o.add(v),f.push({key:v,link:d})),f},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var I0=new Set([100,101,204,205]);function ev(c,s){let o=typeof c=="string"?new URL(c,typeof window>"u"?"server://singlefetch/":window.location.origin):c;return o.pathname==="/"?o.pathname="_root.data":s&&Jt(o.pathname,s)==="/"?o.pathname=`${s.replace(/\/$/,"")}/_root.data`:o.pathname=`${o.pathname.replace(/\/$/,"")}.data`,o}function nh(){let c=O.useContext(Da);return Bf(c,"You must render this element inside a <DataRouterContext.Provider> element"),c}function tv(){let c=O.useContext(ui);return Bf(c,"You must render this element inside a <DataRouterStateContext.Provider> element"),c}var qf=O.createContext(void 0);qf.displayName="FrameworkContext";function ih(){let c=O.useContext(qf);return Bf(c,"You must render this element inside a <HydratedRouter> element"),c}function lv(c,s){let o=O.useContext(qf),[f,d]=O.useState(!1),[v,x]=O.useState(!1),{onFocus:M,onBlur:p,onMouseEnter:h,onMouseLeave:z,onTouchStart:H}=s,N=O.useRef(null);O.useEffect(()=>{if(c==="render"&&x(!0),c==="viewport"){let Y=B=>{B.forEach(L=>{x(L.isIntersecting)})},Z=new IntersectionObserver(Y,{threshold:.5});return N.current&&Z.observe(N.current),()=>{Z.disconnect()}}},[c]),O.useEffect(()=>{if(f){let Y=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(Y)}}},[f]);let w=()=>{d(!0)},U=()=>{d(!1),x(!1)};return o?c!=="intent"?[v,N,{}]:[v,N,{onFocus:ju(M,w),onBlur:ju(p,U),onMouseEnter:ju(h,w),onMouseLeave:ju(z,U),onTouchStart:ju(H,w)}]:[!1,N,{}]}function ju(c,s){return o=>{c&&c(o),o.defaultPrevented||s(o)}}function av({page:c,...s}){let{router:o}=nh(),f=O.useMemo(()=>kd(o.routes,c,o.basename),[o.routes,c,o.basename]);return f?O.createElement(nv,{page:c,matches:f,...s}):null}function uv(c){let{manifest:s,routeModules:o}=ih(),[f,d]=O.useState([]);return O.useEffect(()=>{let v=!1;return k0(c,s,o).then(x=>{v||d(x)}),()=>{v=!0}},[c,s,o]),f}function nv({page:c,matches:s,...o}){let f=Xl(),{manifest:d,routeModules:v}=ih(),{basename:x}=nh(),{loaderData:M,matches:p}=tv(),h=O.useMemo(()=>Kd(c,s,p,d,f,"data"),[c,s,p,d,f]),z=O.useMemo(()=>Kd(c,s,p,d,f,"assets"),[c,s,p,d,f]),H=O.useMemo(()=>{if(c===f.pathname+f.search+f.hash)return[];let U=new Set,Y=!1;if(s.forEach(B=>{var F;let L=d.routes[B.route.id];!L||!L.hasLoader||(!h.some(ie=>ie.route.id===B.route.id)&&B.route.id in M&&((F=v[B.route.id])!=null&&F.shouldRevalidate)||L.hasClientLoader?Y=!0:U.add(B.route.id))}),U.size===0)return[];let Z=ev(c,x);return Y&&U.size>0&&Z.searchParams.set("_routes",s.filter(B=>U.has(B.route.id)).map(B=>B.route.id).join(",")),[Z.pathname+Z.search]},[x,M,f,d,h,s,c,v]),N=O.useMemo(()=>$0(z,d),[z,d]),w=uv(z);return O.createElement(O.Fragment,null,H.map(U=>O.createElement("link",{key:U,rel:"prefetch",as:"fetch",href:U,...o})),N.map(U=>O.createElement("link",{key:U,rel:"modulepreload",href:U,...o})),w.map(({key:U,link:Y})=>O.createElement("link",{key:U,...Y})))}function iv(...c){return s=>{c.forEach(o=>{typeof o=="function"?o(s):o!=null&&(o.current=s)})}}var ch=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ch&&(window.__reactRouterVersion="7.6.2")}catch{}function cv({basename:c,children:s,window:o}){let f=O.useRef();f.current==null&&(f.current=Jy({window:o,v5Compat:!0}));let d=f.current,[v,x]=O.useState({action:d.action,location:d.location}),M=O.useCallback(p=>{O.startTransition(()=>x(p))},[x]);return O.useLayoutEffect(()=>d.listen(M),[d,M]),O.createElement(B0,{basename:c,children:s,location:v.location,navigationType:v.action,navigator:d})}var fh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sl=O.forwardRef(function({onClick:s,discover:o="render",prefetch:f="none",relative:d,reloadDocument:v,replace:x,state:M,target:p,to:h,preventScrollReset:z,viewTransition:H,...N},w){let{basename:U}=O.useContext(Dt),Y=typeof h=="string"&&fh.test(h),Z,B=!1;if(typeof h=="string"&&Y&&(Z=h,ch))try{let Se=new URL(window.location.href),Je=h.startsWith("//")?new URL(Se.protocol+h):new URL(h),st=Jt(Je.pathname,U);Je.origin===Se.origin&&st!=null?h=st+Je.search+Je.hash:B=!0}catch{Mt(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let L=S0(h,{relative:d}),[F,ie,K]=lv(f,N),he=ov(h,{replace:x,state:M,target:p,preventScrollReset:z,relative:d,viewTransition:H});function Te(Se){s&&s(Se),Se.defaultPrevented||he(Se)}let ze=O.createElement("a",{...N,...K,href:Z||L,onClick:B||v?s:Te,ref:iv(w,ie),target:p,"data-discover":!Y&&o==="render"?"true":void 0});return F&&!Y?O.createElement(O.Fragment,null,ze,O.createElement(av,{page:L})):ze});Sl.displayName="Link";var fv=O.forwardRef(function({"aria-current":s="page",caseSensitive:o=!1,className:f="",end:d=!1,style:v,to:x,viewTransition:M,children:p,...h},z){let H=qu(x,{relative:h.relative}),N=Xl(),w=O.useContext(ui),{navigator:U,basename:Y}=O.useContext(Dt),Z=w!=null&&vv(H)&&M===!0,B=U.encodeLocation?U.encodeLocation(H).pathname:H.pathname,L=N.pathname,F=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;o||(L=L.toLowerCase(),F=F?F.toLowerCase():null,B=B.toLowerCase()),F&&Y&&(F=Jt(F,Y)||F);const ie=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let K=L===B||!d&&L.startsWith(B)&&L.charAt(ie)==="/",he=F!=null&&(F===B||!d&&F.startsWith(B)&&F.charAt(B.length)==="/"),Te={isActive:K,isPending:he,isTransitioning:Z},ze=K?s:void 0,Se;typeof f=="function"?Se=f(Te):Se=[f,K?"active":null,he?"pending":null,Z?"transitioning":null].filter(Boolean).join(" ");let Je=typeof v=="function"?v(Te):v;return O.createElement(Sl,{...h,"aria-current":ze,className:Se,ref:z,style:Je,to:x,viewTransition:M},typeof p=="function"?p(Te):p)});fv.displayName="NavLink";var rv=O.forwardRef(({discover:c="render",fetcherKey:s,navigate:o,reloadDocument:f,replace:d,state:v,method:x=ti,action:M,onSubmit:p,relative:h,preventScrollReset:z,viewTransition:H,...N},w)=>{let U=mv(),Y=yv(M,{relative:h}),Z=x.toLowerCase()==="get"?"get":"post",B=typeof M=="string"&&fh.test(M),L=F=>{if(p&&p(F),F.defaultPrevented)return;F.preventDefault();let ie=F.nativeEvent.submitter,K=(ie==null?void 0:ie.getAttribute("formmethod"))||x;U(ie||F.currentTarget,{fetcherKey:s,method:K,navigate:o,replace:d,state:v,relative:h,preventScrollReset:z,viewTransition:H})};return O.createElement("form",{ref:w,method:Z,action:Y,onSubmit:f?p:L,...N,"data-discover":!B&&c==="render"?"true":void 0})});rv.displayName="Form";function sv(c){return`${c} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function rh(c){let s=O.useContext(Da);return Re(s,sv(c)),s}function ov(c,{target:s,replace:o,state:f,preventScrollReset:d,relative:v,viewTransition:x}={}){let M=x0(),p=Xl(),h=qu(c,{relative:v});return O.useCallback(z=>{if(X0(z,s)){z.preventDefault();let H=o!==void 0?o:Cu(p)===Cu(h);M(c,{replace:H,state:f,preventScrollReset:d,relative:v,viewTransition:x})}},[p,M,h,o,f,s,c,d,v,x])}var dv=0,hv=()=>`__${String(++dv)}__`;function mv(){let{router:c}=rh("useSubmit"),{basename:s}=O.useContext(Dt),o=j0();return O.useCallback(async(f,d={})=>{let{action:v,method:x,encType:M,formData:p,body:h}=V0(f,s);if(d.navigate===!1){let z=d.fetcherKey||hv();await c.fetch(z,o,d.action||v,{preventScrollReset:d.preventScrollReset,formData:p,body:h,formMethod:d.method||x,formEncType:d.encType||M,flushSync:d.flushSync})}else await c.navigate(d.action||v,{preventScrollReset:d.preventScrollReset,formData:p,body:h,formMethod:d.method||x,formEncType:d.encType||M,replace:d.replace,state:d.state,fromRouteId:o,flushSync:d.flushSync,viewTransition:d.viewTransition})},[c,s,o])}function yv(c,{relative:s}={}){let{basename:o}=O.useContext(Dt),f=O.useContext(kt);Re(f,"useFormAction must be used inside a RouteContext");let[d]=f.matches.slice(-1),v={...qu(c||".",{relative:s})},x=Xl();if(c==null){v.search=x.search;let M=new URLSearchParams(v.search),p=M.getAll("index");if(p.some(z=>z==="")){M.delete("index"),p.filter(H=>H).forEach(H=>M.append("index",H));let z=M.toString();v.search=z?`?${z}`:""}}return(!c||c===".")&&d.route.index&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(v.pathname=v.pathname==="/"?o:Kt([o,v.pathname])),Cu(v)}function vv(c,s={}){let o=O.useContext(eh);Re(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:f}=rh("useViewTransitionState"),d=qu(c,{relative:s.relative});if(!o.isTransitioning)return!1;let v=Jt(o.currentLocation.pathname,f)||o.currentLocation.pathname,x=Jt(o.nextLocation.pathname,f)||o.nextLocation.pathname;return ai(d.pathname,x)!=null||ai(d.pathname,v)!=null}[...I0];const gv=()=>{const[c,s]=O.useState(!1),o=()=>{s(!c)},f=()=>{s(!1)};return y.jsx("nav",{className:"bg-gradient-to-r from-green-700 to-green-600 text-white p-4 shadow",children:y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"font-bold text-xl",children:"EVSE"}),y.jsxs("ul",{className:`flex-col md:flex-row md:flex gap-4 ${c?"flex":"hidden"} md:!flex`,children:[y.jsx("li",{children:y.jsx(Sl,{className:"hover:underline",to:"/dashboard",onClick:f,children:"Dashboard"})}),y.jsx("li",{children:y.jsx(Sl,{className:"hover:underline",to:"/settings",onClick:f,children:"Settings"})}),y.jsx("li",{children:y.jsx(Sl,{className:"hover:underline",to:"/security",onClick:f,children:"Security"})}),y.jsx("li",{children:y.jsx(Sl,{className:"hover:underline",to:"/connectivity",onClick:f,children:"Connectivity"})}),y.jsx("li",{children:y.jsx(Sl,{className:"hover:underline",to:"/ocpp",onClick:f,children:"OCPP"})}),y.jsx("li",{children:y.jsx(Sl,{className:"hover:underline",to:"/electrical-network",onClick:f,children:"Rede Elétrica"})})]}),y.jsx("button",{className:"md:hidden text-3xl",onClick:o,children:"☰"})]})})};function _a({title:c,children:s}){return y.jsxs("div",{className:"max-w-3xl mx-auto p-5 bg-white rounded shadow",children:[y.jsx("h1",{className:"text-2xl font-bold mb-5",children:c}),s]})}const bv=()=>{const[c,s]=O.useState({status:"Ativo",chargers:[{id:3,status:"Erro",current:0,power:0}],energyConsumed:0,chargingTime:0,alerts:[]}),o=async()=>{try{const f=await fetch("/api/v1/dashboard");if(f.ok){const d=await f.json();s(d)}else alert("Erro ao obter os dados do dashboard")}catch(f){console.error("Erro ao buscar dados do dashboard:",f),alert("Erro de conexão")}};return O.useEffect(()=>{o()},[]),y.jsxs(_a,{title:"Visão Geral",children:[y.jsxs("div",{className:"flex flex-wrap gap-4 mb-6",children:[y.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[y.jsx("h3",{children:"Status do Sistema"}),y.jsx("p",{children:c.status})]}),y.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[y.jsx("h3",{children:"Consumo de Energia"}),y.jsxs("p",{children:[c.energyConsumed," kWh"]})]}),y.jsxs("div",{className:"bg-white p-4 rounded shadow flex-1 min-w-[150px]",children:[y.jsx("h3",{children:"Tempo de Carregamento"}),y.jsxs("p",{children:[c.chargingTime," minutos"]})]})]}),y.jsxs("div",{className:"mb-6",children:[y.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Alertas"}),y.jsx("ul",{children:c.alerts.map((f,d)=>y.jsx("li",{className:"p-2 bg-red-500 text-white rounded mb-2",children:y.jsxs("span",{children:["⚠️ ",f]})},d))})]}),y.jsxs("div",{children:[y.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Carregadores"}),y.jsxs("table",{className:"min-w-full border border-gray-300 text-left",children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{className:"border-b p-2",children:"ID"}),y.jsx("th",{className:"border-b p-2",children:"Status"}),y.jsx("th",{className:"border-b p-2",children:"Corrente (A)"}),y.jsx("th",{className:"border-b p-2",children:"Potência (W)"})]})}),y.jsx("tbody",{children:c.chargers.map(f=>y.jsxs("tr",{children:[y.jsx("td",{className:"border-b p-2",children:f.id}),y.jsx("td",{className:"border-b p-2",children:f.status}),y.jsx("td",{className:"border-b p-2",children:f.current}),y.jsx("td",{className:"border-b p-2",children:f.power})]},f.id))})]})]})]})},pv=()=>{const[c,s]=O.useState(32),[o,f]=O.useState(0),[d,v]=O.useState(0),[x,M]=O.useState(0),[p,h]=O.useState(60),[z,H]=O.useState(""),[N,w]=O.useState(""),U=async()=>{const K=await fetch("/api/v1/config/settings");if(K.ok){const he=await K.json();s(he.currentLimit),f(he.powerLimit),v(he.energyLimit),M(he.chargingTimeLimit),h(he.temperatureLimit)}else alert("Erro ao obter as configurações")};O.useEffect(()=>{U()},[]);const Y=K=>s(K.target.value),Z=K=>f(K.target.value),B=K=>v(K.target.value),L=K=>M(K.target.value),F=K=>h(K.target.value),ie=async K=>{K.preventDefault();const he={currentLimit:c,powerLimit:o,energyLimit:d,chargingTimeLimit:x,temperatureLimit:p};try{(await fetch("/api/v1/config/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(he)})).ok?H("Configurações de energia atualizadas com sucesso!"):w("Erro ao atualizar configurações")}catch{w("Erro ao atualizar configurações")}};return y.jsxs(_a,{title:"Definições de Energia",children:[z&&y.jsx("div",{className:"p-2 mb-2 bg-green-600 text-white rounded",children:z}),N&&y.jsx("div",{className:"p-2 mb-2 bg-red-600 text-white rounded",children:N}),y.jsxs("form",{className:"flex flex-col gap-4",onSubmit:ie,children:[y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"currentLimit",children:"Limite de Corrente (A):"}),y.jsx("input",{id:"currentLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:c,onChange:Y})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"powerLimit",children:"Limite de Potência (W):"}),y.jsx("input",{id:"powerLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:o,onChange:Z})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"energyLimit",children:"Limite de Energia (kWh):"}),y.jsx("input",{id:"energyLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:d,onChange:B})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"chargingTimeLimit",children:"Tempo Máximo de Carregamento (min):"}),y.jsx("input",{id:"chargingTimeLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:x,onChange:L})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"temperatureLimit",children:"Temperatura Máxima (°C):"}),y.jsx("input",{id:"temperatureLimit",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:p,onChange:F})]}),y.jsx("div",{children:y.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})},sh="";let Sv="";function oh(c=!0){const s={Authorization:`Basic ${Sv}`};return c&&(s["Content-Type"]="application/json"),s}async function za(c){const s=await fetch(`${sh}${c}`,{headers:oh(!1)});if(!s.ok)throw new Error(`GET ${c} failed`);return await s.json()}async function Uu(c,s){const o=await fetch(`${sh}${c}`,{method:"POST",headers:oh(),body:JSON.stringify(s)});if(!o.ok)throw new Error(`POST ${c} failed`);return await o.text()}const xv=()=>{const[c,s]=O.useState({RFID:!1,App:!1,Password:!1}),[o,f]=O.useState([{username:"admin"}]),[d,v]=O.useState(""),x=H=>{s({...c,[H]:!c[H]})},M=async()=>{try{const H=await za("/api/v1/config/auth-methods");s(H)}catch(H){console.error("Erro ao buscar configurações de autenticação:",H),alert("Erro ao buscar configurações de autenticação.")}},p=async H=>{H.preventDefault();try{await Uu("/api/v1/config/auth-methods",c),alert("Configurações de Autorização salvas com sucesso!")}catch(N){console.error("Erro ao salvar configurações:",N),alert("Erro ao salvar configurações.")}},h=()=>{d.trim()!==""&&(f([...o,{username:d}]),v(""))},z=H=>{f(o.filter(N=>N.username!==H))};return O.useEffect(()=>{M()},[]),y.jsxs(_a,{title:"Segurança",children:[y.jsxs("div",{className:"mb-5",children:[y.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Métodos de Autorização"}),y.jsxs("form",{className:"flex flex-col gap-2",onSubmit:p,children:[y.jsxs("label",{className:"flex items-center gap-2",children:["RFID",y.jsx("input",{type:"checkbox",checked:c.RFID,onChange:()=>x("RFID")})]}),y.jsxs("label",{className:"flex items-center gap-2",children:["Aplicativo",y.jsx("input",{type:"checkbox",checked:c.App,onChange:()=>x("App")})]}),y.jsxs("label",{className:"flex items-center gap-2",children:["Senha",y.jsx("input",{type:"checkbox",checked:c.Password,onChange:()=>x("Password")})]}),y.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"})]})]}),y.jsxs("div",{className:"overflow-x-auto mb-5",children:[y.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Utilizadores"}),y.jsxs("table",{className:"min-w-full border border-gray-300 text-left table-auto",children:[y.jsx("thead",{className:"bg-gray-100",children:y.jsxs("tr",{children:[y.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Nome de Usuário"}),y.jsx("th",{className:"border-b p-2 text-sm font-medium text-gray-700",children:"Ações"})]})}),y.jsx("tbody",{children:o.map((H,N)=>y.jsxs("tr",{className:"hover:bg-gray-50",children:[y.jsx("td",{className:"border-b p-2 text-sm",children:H.username}),y.jsx("td",{className:"border-b p-2 text-sm text-red-600",children:y.jsx("button",{onClick:()=>z(H.username),children:"Remover"})})]},N))})]}),y.jsxs("div",{className:"mt-4",children:[y.jsx("input",{type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full mb-2",value:d,onChange:H=>v(H.target.value),placeholder:"Digite o nome de usuário"}),y.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700 w-full",onClick:h,children:"Adicionar Novo Usuário"})]})]})]})},Ev=()=>{const[c,s]=O.useState(!0),[o,f]=O.useState({enabled:!1,ssid:"",password:""}),[d,v]=O.useState(""),[x,M]=O.useState({enabled:!1,host:"",port:1883,username:"",password:"",topic:""}),[p,h]=O.useState("");O.useEffect(()=>{(async()=>{try{const w=await za("/api/v1/config/wifi");f(w)}catch(w){console.error("Erro ao carregar configurações Wi-Fi:",w)}try{const w=await za("/api/v1/config/mqtt");M(w)}catch(w){console.error("Erro ao carregar configurações MQTT:",w)}s(!1)})()},[]);const z=async()=>{try{await Uu("/api/v1/config/wifi",o),v("Configuração Wi-Fi gravada!")}catch{v("Erro ao gravar Wi-Fi.")}},H=async()=>{try{await Uu("/api/v1/config/mqtt",x),h("Configuração MQTT gravada!")}catch{h("Erro ao gravar MQTT.")}};return y.jsx(_a,{title:"Conectividade",children:c?y.jsx("p",{children:"A carregar..."}):y.jsxs(y.Fragment,{children:[y.jsx("h2",{className:"text-xl font-semibold mt-4",children:"Configuração Wi-Fi"}),d&&y.jsx("div",{className:"p-2 bg-gray-200 rounded mb-2",children:d}),y.jsxs("form",{className:"flex flex-col gap-4",onSubmit:N=>{N.preventDefault(),z()},children:[y.jsx("div",{children:y.jsxs("label",{className:"flex items-center gap-2",children:["Ativar WIFI",y.jsx("input",{type:"checkbox",checked:o.enabled,onChange:N=>f({...o,enabled:N.target.checked})})]})}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"wifi-ssid",children:"SSID:"}),y.jsx("input",{id:"wifi-ssid",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${o.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:o.ssid,onChange:N=>f({...o,ssid:N.target.value}),disabled:!o.enabled})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"wifi-password",children:"Palavra-passe:"}),y.jsx("input",{id:"wifi-password",type:"password",className:`border border-gray-300 rounded px-3 py-2 w-full ${o.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:o.password,onChange:N=>f({...o,password:N.target.value}),disabled:!o.enabled})]}),y.jsx("div",{children:y.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]}),y.jsx("h2",{className:"text-xl font-semibold mt-6",children:"Configuração MQTT"}),p&&y.jsx("div",{className:"p-2 bg-gray-200 rounded mb-2",children:p}),y.jsxs("form",{className:"flex flex-col gap-4",onSubmit:N=>{N.preventDefault(),H()},children:[y.jsx("div",{children:y.jsxs("label",{className:"flex items-center gap-2",children:["Ativar MQTT",y.jsx("input",{type:"checkbox",checked:x.enabled,onChange:N=>M({...x,enabled:N.target.checked})})]})}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"mqtt-host",children:"Host:"}),y.jsx("input",{id:"mqtt-host",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${x.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:x.host,onChange:N=>M({...x,host:N.target.value}),disabled:!x.enabled})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"mqtt-port",children:"Porta:"}),y.jsx("input",{id:"mqtt-port",type:"number",className:`border border-gray-300 rounded px-3 py-2 w-full ${x.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:x.port,onChange:N=>M({...x,port:parseInt(N.target.value||0)}),disabled:!x.enabled})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"mqtt-username",children:"Utilizador:"}),y.jsx("input",{id:"mqtt-username",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${x.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:x.username,onChange:N=>M({...x,username:N.target.value}),disabled:!x.enabled})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"mqtt-password",children:"Palavra-passe:"}),y.jsx("input",{id:"mqtt-password",type:"password",className:`border border-gray-300 rounded px-3 py-2 w-full ${x.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:x.password,onChange:N=>M({...x,password:N.target.value}),disabled:!x.enabled})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"mqtt-topic",children:"Tópico:"}),y.jsx("input",{id:"mqtt-topic",type:"text",className:`border border-gray-300 rounded px-3 py-2 w-full ${x.enabled?"":"bg-gray-200 text-gray-500 cursor-not-allowed"}`,value:x.topic,onChange:N=>M({...x,topic:N.target.value}),disabled:!x.enabled})]}),y.jsx("div",{children:y.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})})},Tv=()=>{const[c,s]=O.useState(null),[o,f]=O.useState(!0),[d,v]=O.useState({enabled:!1,url:"",chargeBoxId:"",certificate:"",privateKey:""}),[x,M]=O.useState("");O.useEffect(()=>{(async()=>{try{const z=await za("/api/v1/ocpp");s(z)}catch{}try{const z=await za("/api/v1/config/ocpp");v(z)}catch{}f(!1)})()},[]);const p=async()=>{M("");try{await Uu("/api/v1/config/ocpp",d),M("Configuração gravada com sucesso!")}catch{M("Erro ao gravar configuração.")}};return y.jsx(_a,{title:"OCPP",children:o?y.jsx("p",{children:"A carregar..."}):y.jsxs(y.Fragment,{children:[x&&y.jsx("div",{className:"p-2 mb-2 bg-gray-200 rounded",children:x}),y.jsxs("form",{className:"flex flex-col gap-4",onSubmit:h=>{h.preventDefault(),p()},children:[y.jsx("div",{children:y.jsxs("label",{className:"flex items-center gap-2",children:["Ativar OCPP",y.jsx("input",{type:"checkbox",checked:d.enabled,onChange:h=>v({...d,enabled:h.target.checked})})]})}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"ocpp-url",children:"Servidor:"}),y.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:h=>v({...d,url:h.target.value}),disabled:!d.enabled})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"ocpp-id",children:"Charge Box ID:"}),y.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:h=>v({...d,chargeBoxId:h.target.value}),disabled:!d.enabled})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"ocpp-cert",children:"Certificado:"}),y.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:h=>v({...d,certificate:h.target.value}),disabled:!d.enabled})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"ocpp-key",children:"Chave Privada:"}),y.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:h=>v({...d,privateKey:h.target.value}),disabled:!d.enabled})]}),y.jsx("div",{children:y.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})})};function Av(){const[c,s]=O.useState(!0),[o,f]=O.useState(""),[d,v]=O.useState(""),[x,M]=O.useState({voltage:"0",current:"0",quality:"0"}),[p,h]=O.useState(!1),[z,H]=O.useState({earthFault:!1,rcm:!1}),[N,w]=O.useState({enabled:!1,currentLimit:0}),[U,Y]=O.useState({capacity:0,useSolar:!1,handleExcess:!1});O.useEffect(()=>{(async()=>{try{const L=await za("/api/v1/config/electrical");L.monitor&&M(L.monitor),L.alerts!==void 0&&h(L.alerts),L.security&&H(L.security),L.loadBalancing&&w(L.loadBalancing),L.solar&&Y(L.solar)}catch(L){console.error("Erro ao carregar configurações:",L)}finally{s(!1)}})()},[]);const Z=async()=>{f(""),v("");try{await Uu("/api/v1/config/electrical",{monitor:x,alerts:p,security:z,loadBalancing:N,solar:U}),f("Configuração gravada com sucesso!")}catch(B){console.error("Erro ao salvar configuração:",B),v("Erro ao gravar configuração.")}};return y.jsxs(_a,{title:"Rede Elétrica",children:[o&&y.jsx("div",{className:"p-2 mb-2 bg-green-600 text-white rounded",children:o}),d&&y.jsx("div",{className:"p-2 mb-2 bg-red-600 text-white rounded",children:d}),c?y.jsx("p",{children:"A carregar..."}):y.jsxs("form",{className:"flex flex-col gap-4",onSubmit:B=>{B.preventDefault(),Z()},children:[y.jsx("h2",{className:"text-xl font-semibold",children:"Monitoramento da Rede Elétrica"}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",children:"Tensão de Entrada (V):"}),y.jsx("input",{type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:x.voltage,disabled:!0})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",children:"Corrente de Entrada (A):"}),y.jsx("input",{type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:x.current,disabled:!0})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",children:"Qualidade de Energia:"}),y.jsx("input",{type:"text",className:"border border-gray-300 rounded px-3 py-2 w-full",value:x.quality,disabled:!0})]}),y.jsx("div",{children:y.jsxs("label",{className:"flex items-center gap-2",children:["Alertas de Falha na Rede",y.jsx("input",{type:"checkbox",checked:p,onChange:B=>h(B.target.checked)})]})}),y.jsx("h2",{className:"text-xl font-semibold",children:"Proteção de Segurança Elétrica"}),y.jsx("div",{children:y.jsxs("label",{className:"flex items-center gap-2",children:["Detecção de Falha de Aterramento",y.jsx("input",{type:"checkbox",checked:z.earthFault,onChange:B=>H({...z,earthFault:B.target.checked})})]})}),y.jsx("div",{children:y.jsxs("label",{className:"flex items-center gap-2",children:["Proteção RCM",y.jsx("input",{type:"checkbox",checked:z.rcm,onChange:B=>H({...z,rcm:B.target.checked})})]})}),y.jsx("h2",{className:"text-xl font-semibold",children:"Balanceamento de Carga"}),y.jsx("div",{children:y.jsxs("label",{className:"flex items-center gap-2",children:["Habilitar Balanceamento de Carga",y.jsx("input",{type:"checkbox",checked:N.enabled,onChange:B=>w({...N,enabled:B.target.checked})})]})}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"lb-current",children:"Limite de Corrente (A):"}),y.jsx("input",{id:"lb-current",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:N.currentLimit,onChange:B=>w({...N,currentLimit:B.target.value})})]}),y.jsx("h2",{className:"text-xl font-semibold",children:"Energia Solar"}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1",htmlFor:"solar-capacity",children:"Capacidade Solar (kW):"}),y.jsx("input",{id:"solar-capacity",type:"number",className:"border border-gray-300 rounded px-3 py-2 w-full",value:U.capacity,onChange:B=>Y({...U,capacity:B.target.value})})]}),y.jsx("div",{children:y.jsxs("label",{className:"flex items-center gap-2",children:["Direcionar Energia Solar para o EVSE",y.jsx("input",{type:"checkbox",checked:U.useSolar,onChange:B=>Y({...U,useSolar:B.target.checked})})]})}),y.jsx("div",{children:y.jsxs("label",{className:"flex items-center gap-2",children:["Gerenciamento de Excesso de Energia Solar",y.jsx("input",{type:"checkbox",checked:U.handleExcess,onChange:B=>Y({...U,handleExcess:B.target.checked})})]})}),y.jsx("div",{children:y.jsx("button",{className:"bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700",type:"submit",children:"Guardar"})})]})]})}const Rv=()=>y.jsxs(cv,{children:[y.jsx(gv,{}),"  ",y.jsxs(q0,{children:[y.jsx(Gl,{path:"/dashboard",element:y.jsx(bv,{})}),y.jsx(Gl,{path:"/settings",element:y.jsx(pv,{})}),y.jsx(Gl,{path:"/security",element:y.jsx(xv,{})}),y.jsx(Gl,{path:"/connectivity",element:y.jsx(Ev,{})}),y.jsx(Gl,{path:"/ocpp",element:y.jsx(Tv,{})}),y.jsx(Gl,{path:"/electrical-network",element:y.jsx(Av,{})})]})]});Vy.createRoot(document.getElementById("root")).render(y.jsx(qy.StrictMode,{children:y.jsx(Rv,{})}));
