(function(){const H=document.createElement("link").relList;if(H&&H.supports&&H.supports("modulepreload"))return;for(const O of document.querySelectorAll('link[rel="modulepreload"]'))r(O);new MutationObserver(O=>{for(const G of O)if(G.type==="childList")for(const U of G.addedNodes)U.tagName==="LINK"&&U.rel==="modulepreload"&&r(U)}).observe(document,{childList:!0,subtree:!0});function D(O){const G={};return O.integrity&&(G.integrity=O.integrity),O.referrerPolicy&&(G.referrerPolicy=O.referrerPolicy),O.crossOrigin==="use-credentials"?G.credentials="include":O.crossOrigin==="anonymous"?G.credentials="omit":G.credentials="same-origin",G}function r(O){if(O.ep)return;O.ep=!0;const G=D(O);fetch(O.href,G)}})();function Or(m){return m&&m.__esModule&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m}var cf={exports:{}},Tu={};/**
 * @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 vr;function Pm(){if(vr)return Tu;vr=1;var m=Symbol.for("react.transitional.element"),H=Symbol.for("react.fragment");function D(r,O,G){var U=null;if(G!==void 0&&(U=""+G),O.key!==void 0&&(U=""+O.key),"key"in O){G={};for(var w in O)w!=="key"&&(G[w]=O[w])}else G=O;return O=G.ref,{$$typeof:m,type:r,key:U,ref:O!==void 0?O:null,props:G}}return Tu.Fragment=H,Tu.jsx=D,Tu.jsxs=D,Tu}var gr;function ly(){return gr||(gr=1,cf.exports=Pm()),cf.exports}var f=ly(),ff={exports:{}},L={};/**
 * @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 Sr;function ty(){if(Sr)return L;Sr=1;var m=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),U=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),_=Symbol.iterator;function F(d){return d===null||typeof d!="object"?null:(d=_&&d[_]||d["@@iterator"],typeof d=="function"?d:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},al=Object.assign,ll={};function pl(d,E,N){this.props=d,this.context=E,this.refs=ll,this.updater=N||Z}pl.prototype.isReactComponent={},pl.prototype.setState=function(d,E){if(typeof d!="object"&&typeof d!="function"&&d!=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,d,E,"setState")},pl.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function Ml(){}Ml.prototype=pl.prototype;function Gl(d,E,N){this.props=d,this.context=E,this.refs=ll,this.updater=N||Z}var st=Gl.prototype=new Ml;st.constructor=Gl,al(st,pl.prototype),st.isPureReactComponent=!0;var xt=Array.isArray;function Ll(){}var tl={H:null,A:null,T:null,S:null},Vl=Object.prototype.hasOwnProperty;function jt(d,E,N){var B=N.ref;return{$$typeof:m,type:d,key:E,ref:B!==void 0?B:null,props:N}}function Le(d,E){return jt(d.type,E,d.props)}function Ot(d){return typeof d=="object"&&d!==null&&d.$$typeof===m}function Kl(d){var E={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(N){return E[N]})}var Ae=/\/+/g;function Ut(d,E){return typeof d=="object"&&d!==null&&d.key!=null?Kl(""+d.key):E.toString(36)}function pt(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Ll,Ll):(d.status="pending",d.then(function(E){d.status==="pending"&&(d.status="fulfilled",d.value=E)},function(E){d.status==="pending"&&(d.status="rejected",d.reason=E)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function T(d,E,N,B,V){var k=typeof d;(k==="undefined"||k==="boolean")&&(d=null);var fl=!1;if(d===null)fl=!0;else switch(k){case"bigint":case"string":case"number":fl=!0;break;case"object":switch(d.$$typeof){case m:case H:fl=!0;break;case R:return fl=d._init,T(fl(d._payload),E,N,B,V)}}if(fl)return V=V(d),fl=B===""?"."+Ut(d,0):B,xt(V)?(N="",fl!=null&&(N=fl.replace(Ae,"$&/")+"/"),T(V,E,N,"",function(Oa){return Oa})):V!=null&&(Ot(V)&&(V=Le(V,N+(V.key==null||d&&d.key===V.key?"":(""+V.key).replace(Ae,"$&/")+"/")+fl)),E.push(V)),1;fl=0;var Ql=B===""?".":B+":";if(xt(d))for(var Al=0;Al<d.length;Al++)B=d[Al],k=Ql+Ut(B,Al),fl+=T(B,E,N,k,V);else if(Al=F(d),typeof Al=="function")for(d=Al.call(d),Al=0;!(B=d.next()).done;)B=B.value,k=Ql+Ut(B,Al++),fl+=T(B,E,N,k,V);else if(k==="object"){if(typeof d.then=="function")return T(pt(d),E,N,B,V);throw E=String(d),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return fl}function j(d,E,N){if(d==null)return d;var B=[],V=0;return T(d,B,"","",function(k){return E.call(N,k,V++)}),B}function Q(d){if(d._status===-1){var E=d._result;E=E(),E.then(function(N){(d._status===0||d._status===-1)&&(d._status=1,d._result=N)},function(N){(d._status===0||d._status===-1)&&(d._status=2,d._result=N)}),d._status===-1&&(d._status=0,d._result=E)}if(d._status===1)return d._result.default;throw d._result}var dl=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(E))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},yl={map:j,forEach:function(d,E,N){j(d,function(){E.apply(this,arguments)},N)},count:function(d){var E=0;return j(d,function(){E++}),E},toArray:function(d){return j(d,function(E){return E})||[]},only:function(d){if(!Ot(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return L.Activity=x,L.Children=yl,L.Component=pl,L.Fragment=D,L.Profiler=O,L.PureComponent=Gl,L.StrictMode=r,L.Suspense=M,L.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=tl,L.__COMPILER_RUNTIME={__proto__:null,c:function(d){return tl.H.useMemoCache(d)}},L.cache=function(d){return function(){return d.apply(null,arguments)}},L.cacheSignal=function(){return null},L.cloneElement=function(d,E,N){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var B=al({},d.props),V=d.key;if(E!=null)for(k in E.key!==void 0&&(V=""+E.key),E)!Vl.call(E,k)||k==="key"||k==="__self"||k==="__source"||k==="ref"&&E.ref===void 0||(B[k]=E[k]);var k=arguments.length-2;if(k===1)B.children=N;else if(1<k){for(var fl=Array(k),Ql=0;Ql<k;Ql++)fl[Ql]=arguments[Ql+2];B.children=fl}return jt(d.type,V,B)},L.createContext=function(d){return d={$$typeof:U,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:G,_context:d},d},L.createElement=function(d,E,N){var B,V={},k=null;if(E!=null)for(B in E.key!==void 0&&(k=""+E.key),E)Vl.call(E,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(V[B]=E[B]);var fl=arguments.length-2;if(fl===1)V.children=N;else if(1<fl){for(var Ql=Array(fl),Al=0;Al<fl;Al++)Ql[Al]=arguments[Al+2];V.children=Ql}if(d&&d.defaultProps)for(B in fl=d.defaultProps,fl)V[B]===void 0&&(V[B]=fl[B]);return jt(d,k,V)},L.createRef=function(){return{current:null}},L.forwardRef=function(d){return{$$typeof:w,render:d}},L.isValidElement=Ot,L.lazy=function(d){return{$$typeof:R,_payload:{_status:-1,_result:d},_init:Q}},L.memo=function(d,E){return{$$typeof:p,type:d,compare:E===void 0?null:E}},L.startTransition=function(d){var E=tl.T,N={};tl.T=N;try{var B=d(),V=tl.S;V!==null&&V(N,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(Ll,dl)}catch(k){dl(k)}finally{E!==null&&N.types!==null&&(E.types=N.types),tl.T=E}},L.unstable_useCacheRefresh=function(){return tl.H.useCacheRefresh()},L.use=function(d){return tl.H.use(d)},L.useActionState=function(d,E,N){return tl.H.useActionState(d,E,N)},L.useCallback=function(d,E){return tl.H.useCallback(d,E)},L.useContext=function(d){return tl.H.useContext(d)},L.useDebugValue=function(){},L.useDeferredValue=function(d,E){return tl.H.useDeferredValue(d,E)},L.useEffect=function(d,E){return tl.H.useEffect(d,E)},L.useEffectEvent=function(d){return tl.H.useEffectEvent(d)},L.useId=function(){return tl.H.useId()},L.useImperativeHandle=function(d,E,N){return tl.H.useImperativeHandle(d,E,N)},L.useInsertionEffect=function(d,E){return tl.H.useInsertionEffect(d,E)},L.useLayoutEffect=function(d,E){return tl.H.useLayoutEffect(d,E)},L.useMemo=function(d,E){return tl.H.useMemo(d,E)},L.useOptimistic=function(d,E){return tl.H.useOptimistic(d,E)},L.useReducer=function(d,E,N){return tl.H.useReducer(d,E,N)},L.useRef=function(d){return tl.H.useRef(d)},L.useState=function(d){return tl.H.useState(d)},L.useSyncExternalStore=function(d,E,N){return tl.H.useSyncExternalStore(d,E,N)},L.useTransition=function(){return tl.H.useTransition()},L.version="19.2.5",L}var br;function hf(){return br||(br=1,ff.exports=ty()),ff.exports}var ul=hf();const Nr=Or(ul);var sf={exports:{}},zu={},of={exports:{}},df={};/**
 * @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 pr;function ey(){return pr||(pr=1,(function(m){function H(T,j){var Q=T.length;T.push(j);l:for(;0<Q;){var dl=Q-1>>>1,yl=T[dl];if(0<O(yl,j))T[dl]=j,T[Q]=yl,Q=dl;else break l}}function D(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var j=T[0],Q=T.pop();if(Q!==j){T[0]=Q;l:for(var dl=0,yl=T.length,d=yl>>>1;dl<d;){var E=2*(dl+1)-1,N=T[E],B=E+1,V=T[B];if(0>O(N,Q))B<yl&&0>O(V,N)?(T[dl]=V,T[B]=Q,dl=B):(T[dl]=N,T[E]=Q,dl=E);else if(B<yl&&0>O(V,Q))T[dl]=V,T[B]=Q,dl=B;else break l}}return j}function O(T,j){var Q=T.sortIndex-j.sortIndex;return Q!==0?Q:T.id-j.id}if(m.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var G=performance;m.unstable_now=function(){return G.now()}}else{var U=Date,w=U.now();m.unstable_now=function(){return U.now()-w}}var M=[],p=[],R=1,x=null,_=3,F=!1,Z=!1,al=!1,ll=!1,pl=typeof setTimeout=="function"?setTimeout:null,Ml=typeof clearTimeout=="function"?clearTimeout:null,Gl=typeof setImmediate<"u"?setImmediate:null;function st(T){for(var j=D(p);j!==null;){if(j.callback===null)r(p);else if(j.startTime<=T)r(p),j.sortIndex=j.expirationTime,H(M,j);else break;j=D(p)}}function xt(T){if(al=!1,st(T),!Z)if(D(M)!==null)Z=!0,Ll||(Ll=!0,Kl());else{var j=D(p);j!==null&&pt(xt,j.startTime-T)}}var Ll=!1,tl=-1,Vl=5,jt=-1;function Le(){return ll?!0:!(m.unstable_now()-jt<Vl)}function Ot(){if(ll=!1,Ll){var T=m.unstable_now();jt=T;var j=!0;try{l:{Z=!1,al&&(al=!1,Ml(tl),tl=-1),F=!0;var Q=_;try{t:{for(st(T),x=D(M);x!==null&&!(x.expirationTime>T&&Le());){var dl=x.callback;if(typeof dl=="function"){x.callback=null,_=x.priorityLevel;var yl=dl(x.expirationTime<=T);if(T=m.unstable_now(),typeof yl=="function"){x.callback=yl,st(T),j=!0;break t}x===D(M)&&r(M),st(T)}else r(M);x=D(M)}if(x!==null)j=!0;else{var d=D(p);d!==null&&pt(xt,d.startTime-T),j=!1}}break l}finally{x=null,_=Q,F=!1}j=void 0}}finally{j?Kl():Ll=!1}}}var Kl;if(typeof Gl=="function")Kl=function(){Gl(Ot)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,Ut=Ae.port2;Ae.port1.onmessage=Ot,Kl=function(){Ut.postMessage(null)}}else Kl=function(){pl(Ot,0)};function pt(T,j){tl=pl(function(){T(m.unstable_now())},j)}m.unstable_IdlePriority=5,m.unstable_ImmediatePriority=1,m.unstable_LowPriority=4,m.unstable_NormalPriority=3,m.unstable_Profiling=null,m.unstable_UserBlockingPriority=2,m.unstable_cancelCallback=function(T){T.callback=null},m.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Vl=0<T?Math.floor(1e3/T):5},m.unstable_getCurrentPriorityLevel=function(){return _},m.unstable_next=function(T){switch(_){case 1:case 2:case 3:var j=3;break;default:j=_}var Q=_;_=j;try{return T()}finally{_=Q}},m.unstable_requestPaint=function(){ll=!0},m.unstable_runWithPriority=function(T,j){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var Q=_;_=T;try{return j()}finally{_=Q}},m.unstable_scheduleCallback=function(T,j,Q){var dl=m.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?dl+Q:dl):Q=dl,T){case 1:var yl=-1;break;case 2:yl=250;break;case 5:yl=1073741823;break;case 4:yl=1e4;break;default:yl=5e3}return yl=Q+yl,T={id:R++,callback:j,priorityLevel:T,startTime:Q,expirationTime:yl,sortIndex:-1},Q>dl?(T.sortIndex=Q,H(p,T),D(M)===null&&T===D(p)&&(al?(Ml(tl),tl=-1):al=!0,pt(xt,Q-dl))):(T.sortIndex=yl,H(M,T),Z||F||(Z=!0,Ll||(Ll=!0,Kl()))),T},m.unstable_shouldYield=Le,m.unstable_wrapCallback=function(T){var j=_;return function(){var Q=_;_=j;try{return T.apply(this,arguments)}finally{_=Q}}}})(df)),df}var Tr;function ay(){return Tr||(Tr=1,of.exports=ey()),of.exports}var rf={exports:{}},Xl={};/**
 * @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 zr;function uy(){if(zr)return Xl;zr=1;var m=hf();function H(M){var p="https://react.dev/errors/"+M;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)p+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+M+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function D(){}var r={d:{f:D,r:function(){throw Error(H(522))},D,C:D,L:D,m:D,X:D,S:D,M:D},p:0,findDOMNode:null},O=Symbol.for("react.portal");function G(M,p,R){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:x==null?null:""+x,children:M,containerInfo:p,implementation:R}}var U=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function w(M,p){if(M==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Xl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Xl.createPortal=function(M,p){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(H(299));return G(M,p,null,R)},Xl.flushSync=function(M){var p=U.T,R=r.p;try{if(U.T=null,r.p=2,M)return M()}finally{U.T=p,r.p=R,r.d.f()}},Xl.preconnect=function(M,p){typeof M=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(M,p))},Xl.prefetchDNS=function(M){typeof M=="string"&&r.d.D(M)},Xl.preinit=function(M,p){if(typeof M=="string"&&p&&typeof p.as=="string"){var R=p.as,x=w(R,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,F=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;R==="style"?r.d.S(M,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:_,fetchPriority:F}):R==="script"&&r.d.X(M,{crossOrigin:x,integrity:_,fetchPriority:F,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Xl.preinitModule=function(M,p){if(typeof M=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var R=w(p.as,p.crossOrigin);r.d.M(M,{crossOrigin:R,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(M)},Xl.preload=function(M,p){if(typeof M=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var R=p.as,x=w(R,p.crossOrigin);r.d.L(M,R,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Xl.preloadModule=function(M,p){if(typeof M=="string")if(p){var R=w(p.as,p.crossOrigin);r.d.m(M,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:R,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(M)},Xl.requestFormReset=function(M){r.d.r(M)},Xl.unstable_batchedUpdates=function(M,p){return M(p)},Xl.useFormState=function(M,p,R){return U.H.useFormState(M,p,R)},Xl.useFormStatus=function(){return U.H.useHostTransitionStatus()},Xl.version="19.2.5",Xl}var Ar;function ny(){if(Ar)return rf.exports;Ar=1;function m(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(m)}catch(H){console.error(H)}}return m(),rf.exports=uy(),rf.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 Er;function iy(){if(Er)return zu;Er=1;var m=ay(),H=hf(),D=ny();function r(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)t+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function O(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function G(l){var t=l,e=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;while(l)}return t.tag===3?e:null}function U(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function w(l){if(l.tag===31){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function M(l){if(G(l)!==l)throw Error(r(188))}function p(l){var t=l.alternate;if(!t){if(t=G(l),t===null)throw Error(r(188));return t!==l?null:l}for(var e=l,a=t;;){var u=e.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){e=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===e)return M(u),l;if(n===a)return M(u),t;n=n.sibling}throw Error(r(188))}if(e.return!==a.return)e=u,a=n;else{for(var i=!1,c=u.child;c;){if(c===e){i=!0,e=u,a=n;break}if(c===a){i=!0,a=u,e=n;break}c=c.sibling}if(!i){for(c=n.child;c;){if(c===e){i=!0,e=n,a=u;break}if(c===a){i=!0,a=n,e=u;break}c=c.sibling}if(!i)throw Error(r(189))}}if(e.alternate!==a)throw Error(r(190))}if(e.tag!==3)throw Error(r(188));return e.stateNode.current===e?l:t}function R(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=R(l),t!==null)return t;l=l.sibling}return null}var x=Object.assign,_=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),al=Symbol.for("react.fragment"),ll=Symbol.for("react.strict_mode"),pl=Symbol.for("react.profiler"),Ml=Symbol.for("react.consumer"),Gl=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),xt=Symbol.for("react.suspense"),Ll=Symbol.for("react.suspense_list"),tl=Symbol.for("react.memo"),Vl=Symbol.for("react.lazy"),jt=Symbol.for("react.activity"),Le=Symbol.for("react.memo_cache_sentinel"),Ot=Symbol.iterator;function Kl(l){return l===null||typeof l!="object"?null:(l=Ot&&l[Ot]||l["@@iterator"],typeof l=="function"?l:null)}var Ae=Symbol.for("react.client.reference");function Ut(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Ae?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case al:return"Fragment";case pl:return"Profiler";case ll:return"StrictMode";case xt:return"Suspense";case Ll:return"SuspenseList";case jt:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Z:return"Portal";case Gl:return l.displayName||"Context";case Ml:return(l._context.displayName||"Context")+".Consumer";case st:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case tl:return t=l.displayName||null,t!==null?t:Ut(l.type)||"Memo";case Vl:t=l._payload,l=l._init;try{return Ut(l(t))}catch{}}return null}var pt=Array.isArray,T=H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=D.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},dl=[],yl=-1;function d(l){return{current:l}}function E(l){0>yl||(l.current=dl[yl],dl[yl]=null,yl--)}function N(l,t){yl++,dl[yl]=l.current,l.current=t}var B=d(null),V=d(null),k=d(null),fl=d(null);function Ql(l,t){switch(N(k,t),N(V,l),N(B,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Gd(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Gd(t),l=Xd(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}E(B),N(B,l)}function Al(){E(B),E(V),E(k)}function Oa(l){l.memoizedState!==null&&N(fl,l);var t=B.current,e=Xd(t,l.type);t!==e&&(N(V,l),N(B,e))}function Au(l){V.current===l&&(E(B),E(V)),fl.current===l&&(E(fl),gu._currentValue=Q)}var Zn,mf;function Ee(l){if(Zn===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Zn=t&&t[1]||"",mf=-1<e.stack.indexOf(`
    at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Zn+l+mf}var Ln=!1;function Vn(l,t){if(!l||Ln)return"";Ln=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(S){var g=S}Reflect.construct(l,[],A)}else{try{A.call()}catch(S){g=S}l.call(A.prototype)}}else{try{throw Error()}catch(S){g=S}(A=l())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(S){if(S&&g&&typeof S.stack=="string")return[S.stack,g.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],c=n[1];if(i&&c){var s=i.split(`
`),v=c.split(`
`);for(u=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;u<v.length&&!v[u].includes("DetermineComponentFrameRoot");)u++;if(a===s.length||u===v.length)for(a=s.length-1,u=v.length-1;1<=a&&0<=u&&s[a]!==v[u];)u--;for(;1<=a&&0<=u;a--,u--)if(s[a]!==v[u]){if(a!==1||u!==1)do if(a--,u--,0>u||s[a]!==v[u]){var b=`
`+s[a].replace(" at new "," at ");return l.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",l.displayName)),b}while(1<=a&&0<=u);break}}}finally{Ln=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?Ee(e):""}function Mr(l,t){switch(l.tag){case 26:case 27:case 5:return Ee(l.type);case 16:return Ee("Lazy");case 13:return l.child!==t&&t!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return Vn(l.type,!1);case 11:return Vn(l.type.render,!1);case 1:return Vn(l.type,!0);case 31:return Ee("Activity");default:return""}}function yf(l){try{var t="",e=null;do t+=Mr(l,e),e=l,l=l.return;while(l);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Kn=Object.prototype.hasOwnProperty,Jn=m.unstable_scheduleCallback,wn=m.unstable_cancelCallback,Dr=m.unstable_shouldYield,Cr=m.unstable_requestPaint,Pl=m.unstable_now,Ur=m.unstable_getCurrentPriorityLevel,vf=m.unstable_ImmediatePriority,gf=m.unstable_UserBlockingPriority,Eu=m.unstable_NormalPriority,Rr=m.unstable_LowPriority,Sf=m.unstable_IdlePriority,Hr=m.log,Br=m.unstable_setDisableYieldValue,Na=null,lt=null;function It(l){if(typeof Hr=="function"&&Br(l),lt&&typeof lt.setStrictMode=="function")try{lt.setStrictMode(Na,l)}catch{}}var tt=Math.clz32?Math.clz32:Gr,qr=Math.log,Yr=Math.LN2;function Gr(l){return l>>>=0,l===0?32:31-(qr(l)/Yr|0)|0}var _u=256,xu=262144,ju=4194304;function _e(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Ou(l,t,e){var a=l.pendingLanes;if(a===0)return 0;var u=0,n=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?u=_e(a):(i&=c,i!==0?u=_e(i):e||(e=c&~l,e!==0&&(u=_e(e))))):(c=a&~n,c!==0?u=_e(c):i!==0?u=_e(i):e||(e=a&~l,e!==0&&(u=_e(e)))),u===0?0:t!==0&&t!==u&&(t&n)===0&&(n=u&-u,e=t&-t,n>=e||n===32&&(e&4194048)!==0)?t:u}function Ma(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Xr(l,t){switch(l){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 bf(){var l=ju;return ju<<=1,(ju&62914560)===0&&(ju=4194304),l}function kn(l){for(var t=[],e=0;31>e;e++)t.push(l);return t}function Da(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Qr(l,t,e,a,u,n){var i=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var c=l.entanglements,s=l.expirationTimes,v=l.hiddenUpdates;for(e=i&~e;0<e;){var b=31-tt(e),A=1<<b;c[b]=0,s[b]=-1;var g=v[b];if(g!==null)for(v[b]=null,b=0;b<g.length;b++){var S=g[b];S!==null&&(S.lane&=-536870913)}e&=~A}a!==0&&pf(l,a,0),n!==0&&u===0&&l.tag!==0&&(l.suspendedLanes|=n&~(i&~t))}function pf(l,t,e){l.pendingLanes|=t,l.suspendedLanes&=~t;var a=31-tt(t);l.entangledLanes|=t,l.entanglements[a]=l.entanglements[a]|1073741824|e&261930}function Tf(l,t){var e=l.entangledLanes|=t;for(l=l.entanglements;e;){var a=31-tt(e),u=1<<a;u&t|l[a]&t&&(l[a]|=t),e&=~u}}function zf(l,t){var e=t&-t;return e=(e&42)!==0?1:$n(e),(e&(l.suspendedLanes|t))!==0?0:e}function $n(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Wn(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Af(){var l=j.p;return l!==0?l:(l=window.event,l===void 0?32:sr(l.type))}function Ef(l,t){var e=j.p;try{return j.p=l,t()}finally{j.p=e}}var Pt=Math.random().toString(36).slice(2),Rl="__reactFiber$"+Pt,Jl="__reactProps$"+Pt,Ve="__reactContainer$"+Pt,Fn="__reactEvents$"+Pt,Zr="__reactListeners$"+Pt,Lr="__reactHandles$"+Pt,_f="__reactResources$"+Pt,Ca="__reactMarker$"+Pt;function In(l){delete l[Rl],delete l[Jl],delete l[Fn],delete l[Zr],delete l[Lr]}function Ke(l){var t=l[Rl];if(t)return t;for(var e=l.parentNode;e;){if(t=e[Ve]||e[Rl]){if(e=t.alternate,t.child!==null||e!==null&&e.child!==null)for(l=wd(l);l!==null;){if(e=l[Rl])return e;l=wd(l)}return t}l=e,e=l.parentNode}return null}function Je(l){if(l=l[Rl]||l[Ve]){var t=l.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return l}return null}function Ua(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l.stateNode;throw Error(r(33))}function we(l){var t=l[_f];return t||(t=l[_f]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Cl(l){l[Ca]=!0}var xf=new Set,jf={};function xe(l,t){ke(l,t),ke(l+"Capture",t)}function ke(l,t){for(jf[l]=t,l=0;l<t.length;l++)xf.add(t[l])}var Vr=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]*$"),Of={},Nf={};function Kr(l){return Kn.call(Nf,l)?!0:Kn.call(Of,l)?!1:Vr.test(l)?Nf[l]=!0:(Of[l]=!0,!1)}function Nu(l,t,e){if(Kr(t))if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":l.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){l.removeAttribute(t);return}}l.setAttribute(t,""+e)}}function Mu(l,t,e){if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(t);return}l.setAttribute(t,""+e)}}function Rt(l,t,e,a){if(a===null)l.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(e);return}l.setAttributeNS(t,e,""+a)}}function ot(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Mf(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jr(l,t,e){var a=Object.getOwnPropertyDescriptor(l.constructor.prototype,t);if(!l.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,n=a.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return u.call(this)},set:function(i){e=""+i,n.call(this,i)}}),Object.defineProperty(l,t,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function Pn(l){if(!l._valueTracker){var t=Mf(l)?"checked":"value";l._valueTracker=Jr(l,t,""+l[t])}}function Df(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var e=t.getValue(),a="";return l&&(a=Mf(l)?l.checked?"true":"false":l.value),l=a,l!==e?(t.setValue(l),!0):!1}function Du(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var wr=/[\n"\\]/g;function dt(l){return l.replace(wr,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function li(l,t,e,a,u,n,i,c){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+ot(t)):l.value!==""+ot(t)&&(l.value=""+ot(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?ti(l,i,ot(t)):e!=null?ti(l,i,ot(e)):a!=null&&l.removeAttribute("value"),u==null&&n!=null&&(l.defaultChecked=!!n),u!=null&&(l.checked=u&&typeof u!="function"&&typeof u!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+ot(c):l.removeAttribute("name")}function Cf(l,t,e,a,u,n,i,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||e!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){Pn(l);return}e=e!=null?""+ot(e):"",t=t!=null?""+ot(t):e,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i),Pn(l)}function ti(l,t,e){t==="number"&&Du(l.ownerDocument)===l||l.defaultValue===""+e||(l.defaultValue=""+e)}function $e(l,t,e,a){if(l=l.options,t){t={};for(var u=0;u<e.length;u++)t["$"+e[u]]=!0;for(e=0;e<l.length;e++)u=t.hasOwnProperty("$"+l[e].value),l[e].selected!==u&&(l[e].selected=u),u&&a&&(l[e].defaultSelected=!0)}else{for(e=""+ot(e),t=null,u=0;u<l.length;u++){if(l[u].value===e){l[u].selected=!0,a&&(l[u].defaultSelected=!0);return}t!==null||l[u].disabled||(t=l[u])}t!==null&&(t.selected=!0)}}function Uf(l,t,e){if(t!=null&&(t=""+ot(t),t!==l.value&&(l.value=t),e==null)){l.defaultValue!==t&&(l.defaultValue=t);return}l.defaultValue=e!=null?""+ot(e):""}function Rf(l,t,e,a){if(t==null){if(a!=null){if(e!=null)throw Error(r(92));if(pt(a)){if(1<a.length)throw Error(r(93));a=a[0]}e=a}e==null&&(e=""),t=e}e=ot(t),l.defaultValue=e,a=l.textContent,a===e&&a!==""&&a!==null&&(l.value=a),Pn(l)}function We(l,t){if(t){var e=l.firstChild;if(e&&e===l.lastChild&&e.nodeType===3){e.nodeValue=t;return}}l.textContent=t}var kr=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 Hf(l,t,e){var a=t.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?l.setProperty(t,""):t==="float"?l.cssFloat="":l[t]="":a?l.setProperty(t,e):typeof e!="number"||e===0||kr.has(t)?t==="float"?l.cssFloat=e:l[t]=(""+e).trim():l[t]=e+"px"}function Bf(l,t,e){if(t!=null&&typeof t!="object")throw Error(r(62));if(l=l.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?l.setProperty(a,""):a==="float"?l.cssFloat="":l[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&e[u]!==a&&Hf(l,u,a)}else for(var n in t)t.hasOwnProperty(n)&&Hf(l,n,t[n])}function ei(l){if(l.indexOf("-")===-1)return!1;switch(l){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 $r=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"]]),Wr=/^[\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 Cu(l){return Wr.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Ht(){}var ai=null;function ui(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Fe=null,Ie=null;function qf(l){var t=Je(l);if(t&&(l=t.stateNode)){var e=l[Jl]||null;l:switch(l=t.stateNode,t.type){case"input":if(li(l,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),t=e.name,e.type==="radio"&&t!=null){for(e=l;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+dt(""+t)+'"][type="radio"]'),t=0;t<e.length;t++){var a=e[t];if(a!==l&&a.form===l.form){var u=a[Jl]||null;if(!u)throw Error(r(90));li(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<e.length;t++)a=e[t],a.form===l.form&&Df(a)}break l;case"textarea":Uf(l,e.value,e.defaultValue);break l;case"select":t=e.value,t!=null&&$e(l,!!e.multiple,t,!1)}}}var ni=!1;function Yf(l,t,e){if(ni)return l(t,e);ni=!0;try{var a=l(t);return a}finally{if(ni=!1,(Fe!==null||Ie!==null)&&(pn(),Fe&&(t=Fe,l=Ie,Ie=Fe=null,qf(t),l)))for(t=0;t<l.length;t++)qf(l[t])}}function Ra(l,t){var e=l.stateNode;if(e===null)return null;var a=e[Jl]||null;if(a===null)return null;e=a[t];l: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)||(l=l.type,a=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!a;break l;default:l=!1}if(l)return null;if(e&&typeof e!="function")throw Error(r(231,t,typeof e));return e}var Bt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ii=!1;if(Bt)try{var Ha={};Object.defineProperty(Ha,"passive",{get:function(){ii=!0}}),window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{ii=!1}var le=null,ci=null,Uu=null;function Gf(){if(Uu)return Uu;var l,t=ci,e=t.length,a,u="value"in le?le.value:le.textContent,n=u.length;for(l=0;l<e&&t[l]===u[l];l++);var i=e-l;for(a=1;a<=i&&t[e-a]===u[n-a];a++);return Uu=u.slice(l,1<a?1-a:void 0)}function Ru(l){var t=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&t===13&&(l=13)):l=t,l===10&&(l=13),32<=l||l===13?l:0}function Hu(){return!0}function Xf(){return!1}function wl(l){function t(e,a,u,n,i){this._reactName=e,this._targetInst=u,this.type=a,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var c in l)l.hasOwnProperty(c)&&(e=l[c],this[c]=e?e(n):n[c]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Hu:Xf,this.isPropagationStopped=Xf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=Hu)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=Hu)},persist:function(){},isPersistent:Hu}),t}var je={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bu=wl(je),Ba=x({},je,{view:0,detail:0}),Fr=wl(Ba),fi,si,qa,qu=x({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:di,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==qa&&(qa&&l.type==="mousemove"?(fi=l.screenX-qa.screenX,si=l.screenY-qa.screenY):si=fi=0,qa=l),fi)},movementY:function(l){return"movementY"in l?l.movementY:si}}),Qf=wl(qu),Ir=x({},qu,{dataTransfer:0}),Pr=wl(Ir),lh=x({},Ba,{relatedTarget:0}),oi=wl(lh),th=x({},je,{animationName:0,elapsedTime:0,pseudoElement:0}),eh=wl(th),ah=x({},je,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),uh=wl(ah),nh=x({},je,{data:0}),Zf=wl(nh),ih={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ch={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"},fh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sh(l){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(l):(l=fh[l])?!!t[l]:!1}function di(){return sh}var oh=x({},Ba,{key:function(l){if(l.key){var t=ih[l.key]||l.key;if(t!=="Unidentified")return t}return l.type==="keypress"?(l=Ru(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?ch[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:di,charCode:function(l){return l.type==="keypress"?Ru(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Ru(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),dh=wl(oh),rh=x({},qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lf=wl(rh),hh=x({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:di}),mh=wl(hh),yh=x({},je,{propertyName:0,elapsedTime:0,pseudoElement:0}),vh=wl(yh),gh=x({},qu,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),Sh=wl(gh),bh=x({},je,{newState:0,oldState:0}),ph=wl(bh),Th=[9,13,27,32],ri=Bt&&"CompositionEvent"in window,Ya=null;Bt&&"documentMode"in document&&(Ya=document.documentMode);var zh=Bt&&"TextEvent"in window&&!Ya,Vf=Bt&&(!ri||Ya&&8<Ya&&11>=Ya),Kf=" ",Jf=!1;function wf(l,t){switch(l){case"keyup":return Th.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kf(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Pe=!1;function Ah(l,t){switch(l){case"compositionend":return kf(t);case"keypress":return t.which!==32?null:(Jf=!0,Kf);case"textInput":return l=t.data,l===Kf&&Jf?null:l;default:return null}}function Eh(l,t){if(Pe)return l==="compositionend"||!ri&&wf(l,t)?(l=Gf(),Uu=ci=le=null,Pe=!1,l):null;switch(l){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 Vf&&t.locale!=="ko"?null:t.data;default:return null}}var _h={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 $f(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t==="input"?!!_h[l.type]:t==="textarea"}function Wf(l,t,e,a){Fe?Ie?Ie.push(a):Ie=[a]:Fe=a,t=jn(t,"onChange"),0<t.length&&(e=new Bu("onChange","change",null,e,a),l.push({event:e,listeners:t}))}var Ga=null,Xa=null;function xh(l){Ud(l,0)}function Yu(l){var t=Ua(l);if(Df(t))return l}function Ff(l,t){if(l==="change")return t}var If=!1;if(Bt){var hi;if(Bt){var mi="oninput"in document;if(!mi){var Pf=document.createElement("div");Pf.setAttribute("oninput","return;"),mi=typeof Pf.oninput=="function"}hi=mi}else hi=!1;If=hi&&(!document.documentMode||9<document.documentMode)}function ls(){Ga&&(Ga.detachEvent("onpropertychange",ts),Xa=Ga=null)}function ts(l){if(l.propertyName==="value"&&Yu(Xa)){var t=[];Wf(t,Xa,l,ui(l)),Yf(xh,t)}}function jh(l,t,e){l==="focusin"?(ls(),Ga=t,Xa=e,Ga.attachEvent("onpropertychange",ts)):l==="focusout"&&ls()}function Oh(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Yu(Xa)}function Nh(l,t){if(l==="click")return Yu(t)}function Mh(l,t){if(l==="input"||l==="change")return Yu(t)}function Dh(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var et=typeof Object.is=="function"?Object.is:Dh;function Qa(l,t){if(et(l,t))return!0;if(typeof l!="object"||l===null||typeof t!="object"||t===null)return!1;var e=Object.keys(l),a=Object.keys(t);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var u=e[a];if(!Kn.call(t,u)||!et(l[u],t[u]))return!1}return!0}function es(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function as(l,t){var e=es(l);l=0;for(var a;e;){if(e.nodeType===3){if(a=l+e.textContent.length,l<=t&&a>=t)return{node:e,offset:t-l};l=a}l:{for(;e;){if(e.nextSibling){e=e.nextSibling;break l}e=e.parentNode}e=void 0}e=es(e)}}function us(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?us(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function ns(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Du(l.document);t instanceof l.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)l=t.contentWindow;else break;t=Du(l.document)}return t}function yi(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var Ch=Bt&&"documentMode"in document&&11>=document.documentMode,la=null,vi=null,Za=null,gi=!1;function is(l,t,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;gi||la==null||la!==Du(a)||(a=la,"selectionStart"in a&&yi(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}),Za&&Qa(Za,a)||(Za=a,a=jn(vi,"onSelect"),0<a.length&&(t=new Bu("onSelect","select",null,t,e),l.push({event:t,listeners:a}),t.target=la)))}function Oe(l,t){var e={};return e[l.toLowerCase()]=t.toLowerCase(),e["Webkit"+l]="webkit"+t,e["Moz"+l]="moz"+t,e}var ta={animationend:Oe("Animation","AnimationEnd"),animationiteration:Oe("Animation","AnimationIteration"),animationstart:Oe("Animation","AnimationStart"),transitionrun:Oe("Transition","TransitionRun"),transitionstart:Oe("Transition","TransitionStart"),transitioncancel:Oe("Transition","TransitionCancel"),transitionend:Oe("Transition","TransitionEnd")},Si={},cs={};Bt&&(cs=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 Ne(l){if(Si[l])return Si[l];if(!ta[l])return l;var t=ta[l],e;for(e in t)if(t.hasOwnProperty(e)&&e in cs)return Si[l]=t[e];return l}var fs=Ne("animationend"),ss=Ne("animationiteration"),os=Ne("animationstart"),Uh=Ne("transitionrun"),Rh=Ne("transitionstart"),Hh=Ne("transitioncancel"),ds=Ne("transitionend"),rs=new Map,bi="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(" ");bi.push("scrollEnd");function Tt(l,t){rs.set(l,t),xe(t,[l])}var Gu=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},rt=[],ea=0,pi=0;function Xu(){for(var l=ea,t=pi=ea=0;t<l;){var e=rt[t];rt[t++]=null;var a=rt[t];rt[t++]=null;var u=rt[t];rt[t++]=null;var n=rt[t];if(rt[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&&hs(e,u,n)}}function Qu(l,t,e,a){rt[ea++]=l,rt[ea++]=t,rt[ea++]=e,rt[ea++]=a,pi|=a,l.lanes|=a,l=l.alternate,l!==null&&(l.lanes|=a)}function Ti(l,t,e,a){return Qu(l,t,e,a),Zu(l)}function Me(l,t){return Qu(l,null,null,t),Zu(l)}function hs(l,t,e){l.lanes|=e;var a=l.alternate;a!==null&&(a.lanes|=e);for(var u=!1,n=l.return;n!==null;)n.childLanes|=e,a=n.alternate,a!==null&&(a.childLanes|=e),n.tag===22&&(l=n.stateNode,l===null||l._visibility&1||(u=!0)),l=n,n=n.return;return l.tag===3?(n=l.stateNode,u&&t!==null&&(u=31-tt(e),l=n.hiddenUpdates,a=l[u],a===null?l[u]=[t]:a.push(t),t.lane=e|536870912),n):null}function Zu(l){if(50<ou)throw ou=0,Mc=null,Error(r(185));for(var t=l.return;t!==null;)l=t,t=l.return;return l.tag===3?l.stateNode:null}var aa={};function Bh(l,t,e,a){this.tag=l,this.key=e,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 at(l,t,e,a){return new Bh(l,t,e,a)}function zi(l){return l=l.prototype,!(!l||!l.isReactComponent)}function qt(l,t){var e=l.alternate;return e===null?(e=at(l.tag,t,l.key,l.mode),e.elementType=l.elementType,e.type=l.type,e.stateNode=l.stateNode,e.alternate=l,l.alternate=e):(e.pendingProps=t,e.type=l.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=l.flags&65011712,e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=l.sibling,e.index=l.index,e.ref=l.ref,e.refCleanup=l.refCleanup,e}function ms(l,t){l.flags&=65011714;var e=l.alternate;return e===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,l.type=e.type,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l}function Lu(l,t,e,a,u,n){var i=0;if(a=l,typeof l=="function")zi(l)&&(i=1);else if(typeof l=="string")i=Qm(l,e,B.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case jt:return l=at(31,e,t,u),l.elementType=jt,l.lanes=n,l;case al:return De(e.children,u,n,t);case ll:i=8,u|=24;break;case pl:return l=at(12,e,t,u|2),l.elementType=pl,l.lanes=n,l;case xt:return l=at(13,e,t,u),l.elementType=xt,l.lanes=n,l;case Ll:return l=at(19,e,t,u),l.elementType=Ll,l.lanes=n,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Gl:i=10;break l;case Ml:i=9;break l;case st:i=11;break l;case tl:i=14;break l;case Vl:i=16,a=null;break l}i=29,e=Error(r(130,l===null?"null":typeof l,"")),a=null}return t=at(i,e,t,u),t.elementType=l,t.type=a,t.lanes=n,t}function De(l,t,e,a){return l=at(7,l,a,t),l.lanes=e,l}function Ai(l,t,e){return l=at(6,l,null,t),l.lanes=e,l}function ys(l){var t=at(18,null,null,0);return t.stateNode=l,t}function Ei(l,t,e){return t=at(4,l.children!==null?l.children:[],l.key,t),t.lanes=e,t.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},t}var vs=new WeakMap;function ht(l,t){if(typeof l=="object"&&l!==null){var e=vs.get(l);return e!==void 0?e:(t={value:l,source:t,stack:yf(t)},vs.set(l,t),t)}return{value:l,source:t,stack:yf(t)}}var ua=[],na=0,Vu=null,La=0,mt=[],yt=0,te=null,Nt=1,Mt="";function Yt(l,t){ua[na++]=La,ua[na++]=Vu,Vu=l,La=t}function gs(l,t,e){mt[yt++]=Nt,mt[yt++]=Mt,mt[yt++]=te,te=l;var a=Nt;l=Mt;var u=32-tt(a)-1;a&=~(1<<u),e+=1;var n=32-tt(t)+u;if(30<n){var i=u-u%5;n=(a&(1<<i)-1).toString(32),a>>=i,u-=i,Nt=1<<32-tt(t)+u|e<<u|a,Mt=n+l}else Nt=1<<n|e<<u|a,Mt=l}function _i(l){l.return!==null&&(Yt(l,1),gs(l,1,0))}function xi(l){for(;l===Vu;)Vu=ua[--na],ua[na]=null,La=ua[--na],ua[na]=null;for(;l===te;)te=mt[--yt],mt[yt]=null,Mt=mt[--yt],mt[yt]=null,Nt=mt[--yt],mt[yt]=null}function Ss(l,t){mt[yt++]=Nt,mt[yt++]=Mt,mt[yt++]=te,Nt=t.id,Mt=t.overflow,te=l}var Hl=null,gl=null,el=!1,ee=null,vt=!1,ji=Error(r(519));function ae(l){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(ht(t,l)),ji}function bs(l){var t=l.stateNode,e=l.type,a=l.memoizedProps;switch(t[Rl]=l,t[Jl]=a,e){case"dialog":W("cancel",t),W("close",t);break;case"iframe":case"object":case"embed":W("load",t);break;case"video":case"audio":for(e=0;e<ru.length;e++)W(ru[e],t);break;case"source":W("error",t);break;case"img":case"image":case"link":W("error",t),W("load",t);break;case"details":W("toggle",t);break;case"input":W("invalid",t),Cf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":W("invalid",t);break;case"textarea":W("invalid",t),Rf(t,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||t.textContent===""+e||a.suppressHydrationWarning===!0||qd(t.textContent,e)?(a.popover!=null&&(W("beforetoggle",t),W("toggle",t)),a.onScroll!=null&&W("scroll",t),a.onScrollEnd!=null&&W("scrollend",t),a.onClick!=null&&(t.onclick=Ht),t=!0):t=!1,t||ae(l,!0)}function ps(l){for(Hl=l.return;Hl;)switch(Hl.tag){case 5:case 31:case 13:vt=!1;return;case 27:case 3:vt=!0;return;default:Hl=Hl.return}}function ia(l){if(l!==Hl)return!1;if(!el)return ps(l),el=!0,!1;var t=l.tag,e;if((e=t!==3&&t!==27)&&((e=t===5)&&(e=l.type,e=!(e!=="form"&&e!=="button")||Kc(l.type,l.memoizedProps)),e=!e),e&&gl&&ae(l),ps(l),t===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));gl=Jd(l)}else if(t===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));gl=Jd(l)}else t===27?(t=gl,ge(l.type)?(l=Wc,Wc=null,gl=l):gl=t):gl=Hl?St(l.stateNode.nextSibling):null;return!0}function Ce(){gl=Hl=null,el=!1}function Oi(){var l=ee;return l!==null&&(Fl===null?Fl=l:Fl.push.apply(Fl,l),ee=null),l}function Va(l){ee===null?ee=[l]:ee.push(l)}var Ni=d(null),Ue=null,Gt=null;function ue(l,t,e){N(Ni,t._currentValue),t._currentValue=e}function Xt(l){l._currentValue=Ni.current,E(Ni)}function Mi(l,t,e){for(;l!==null;){var a=l.alternate;if((l.childLanes&t)!==t?(l.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),l===e)break;l=l.return}}function Di(l,t,e,a){var u=l.child;for(u!==null&&(u.return=l);u!==null;){var n=u.dependencies;if(n!==null){var i=u.child;n=n.firstContext;l:for(;n!==null;){var c=n;n=u;for(var s=0;s<t.length;s++)if(c.context===t[s]){n.lanes|=e,c=n.alternate,c!==null&&(c.lanes|=e),Mi(n.return,e,l),a||(i=null);break l}n=c.next}}else if(u.tag===18){if(i=u.return,i===null)throw Error(r(341));i.lanes|=e,n=i.alternate,n!==null&&(n.lanes|=e),Mi(i,e,l),i=null}else i=u.child;if(i!==null)i.return=u;else for(i=u;i!==null;){if(i===l){i=null;break}if(u=i.sibling,u!==null){u.return=i.return,i=u;break}i=i.return}u=i}}function ca(l,t,e,a){l=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(r(387));if(i=i.memoizedProps,i!==null){var c=u.type;et(u.pendingProps.value,i.value)||(l!==null?l.push(c):l=[c])}}else if(u===fl.current){if(i=u.alternate,i===null)throw Error(r(387));i.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(l!==null?l.push(gu):l=[gu])}u=u.return}l!==null&&Di(t,l,e,a),t.flags|=262144}function Ku(l){for(l=l.firstContext;l!==null;){if(!et(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Re(l){Ue=l,Gt=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Bl(l){return Ts(Ue,l)}function Ju(l,t){return Ue===null&&Re(l),Ts(l,t)}function Ts(l,t){var e=t._currentValue;if(t={context:t,memoizedValue:e,next:null},Gt===null){if(l===null)throw Error(r(308));Gt=t,l.dependencies={lanes:0,firstContext:t},l.flags|=524288}else Gt=Gt.next=t;return e}var qh=typeof AbortController<"u"?AbortController:function(){var l=[],t=this.signal={aborted:!1,addEventListener:function(e,a){l.push(a)}};this.abort=function(){t.aborted=!0,l.forEach(function(e){return e()})}},Yh=m.unstable_scheduleCallback,Gh=m.unstable_NormalPriority,xl={$$typeof:Gl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ci(){return{controller:new qh,data:new Map,refCount:0}}function Ka(l){l.refCount--,l.refCount===0&&Yh(Gh,function(){l.controller.abort()})}var Ja=null,Ui=0,fa=0,sa=null;function Xh(l,t){if(Ja===null){var e=Ja=[];Ui=0,fa=Bc(),sa={status:"pending",value:void 0,then:function(a){e.push(a)}}}return Ui++,t.then(zs,zs),t}function zs(){if(--Ui===0&&Ja!==null){sa!==null&&(sa.status="fulfilled");var l=Ja;Ja=null,fa=0,sa=null;for(var t=0;t<l.length;t++)(0,l[t])()}}function Qh(l,t){var e=[],a={status:"pending",value:null,reason:null,then:function(u){e.push(u)}};return l.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<e.length;u++)(0,e[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<e.length;u++)(0,e[u])(void 0)}),a}var As=T.S;T.S=function(l,t){cd=Pl(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Xh(l,t),As!==null&&As(l,t)};var He=d(null);function Ri(){var l=He.current;return l!==null?l:vl.pooledCache}function wu(l,t){t===null?N(He,He.current):N(He,t.pool)}function Es(){var l=Ri();return l===null?null:{parent:xl._currentValue,pool:l}}var oa=Error(r(460)),Hi=Error(r(474)),ku=Error(r(542)),$u={then:function(){}};function _s(l){return l=l.status,l==="fulfilled"||l==="rejected"}function xs(l,t,e){switch(e=l[e],e===void 0?l.push(t):e!==t&&(t.then(Ht,Ht),t=e),t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,Os(l),l;default:if(typeof t.status=="string")t.then(Ht,Ht);else{if(l=vl,l!==null&&100<l.shellSuspendCounter)throw Error(r(482));l=t,l.status="pending",l.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 l=t.reason,Os(l),l}throw qe=t,oa}}function Be(l){try{var t=l._init;return t(l._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(qe=e,oa):e}}var qe=null;function js(){if(qe===null)throw Error(r(459));var l=qe;return qe=null,l}function Os(l){if(l===oa||l===ku)throw Error(r(483))}var da=null,wa=0;function Wu(l){var t=wa;return wa+=1,da===null&&(da=[]),xs(da,l,t)}function ka(l,t){t=t.props.ref,l.ref=t!==void 0?t:null}function Fu(l,t){throw t.$$typeof===_?Error(r(525)):(l=Object.prototype.toString.call(t),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)))}function Ns(l){function t(h,o){if(l){var y=h.deletions;y===null?(h.deletions=[o],h.flags|=16):y.push(o)}}function e(h,o){if(!l)return null;for(;o!==null;)t(h,o),o=o.sibling;return null}function a(h){for(var o=new Map;h!==null;)h.key!==null?o.set(h.key,h):o.set(h.index,h),h=h.sibling;return o}function u(h,o){return h=qt(h,o),h.index=0,h.sibling=null,h}function n(h,o,y){return h.index=y,l?(y=h.alternate,y!==null?(y=y.index,y<o?(h.flags|=67108866,o):y):(h.flags|=67108866,o)):(h.flags|=1048576,o)}function i(h){return l&&h.alternate===null&&(h.flags|=67108866),h}function c(h,o,y,z){return o===null||o.tag!==6?(o=Ai(y,h.mode,z),o.return=h,o):(o=u(o,y),o.return=h,o)}function s(h,o,y,z){var Y=y.type;return Y===al?b(h,o,y.props.children,z,y.key):o!==null&&(o.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Vl&&Be(Y)===o.type)?(o=u(o,y.props),ka(o,y),o.return=h,o):(o=Lu(y.type,y.key,y.props,null,h.mode,z),ka(o,y),o.return=h,o)}function v(h,o,y,z){return o===null||o.tag!==4||o.stateNode.containerInfo!==y.containerInfo||o.stateNode.implementation!==y.implementation?(o=Ei(y,h.mode,z),o.return=h,o):(o=u(o,y.children||[]),o.return=h,o)}function b(h,o,y,z,Y){return o===null||o.tag!==7?(o=De(y,h.mode,z,Y),o.return=h,o):(o=u(o,y),o.return=h,o)}function A(h,o,y){if(typeof o=="string"&&o!==""||typeof o=="number"||typeof o=="bigint")return o=Ai(""+o,h.mode,y),o.return=h,o;if(typeof o=="object"&&o!==null){switch(o.$$typeof){case F:return y=Lu(o.type,o.key,o.props,null,h.mode,y),ka(y,o),y.return=h,y;case Z:return o=Ei(o,h.mode,y),o.return=h,o;case Vl:return o=Be(o),A(h,o,y)}if(pt(o)||Kl(o))return o=De(o,h.mode,y,null),o.return=h,o;if(typeof o.then=="function")return A(h,Wu(o),y);if(o.$$typeof===Gl)return A(h,Ju(h,o),y);Fu(h,o)}return null}function g(h,o,y,z){var Y=o!==null?o.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return Y!==null?null:c(h,o,""+y,z);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case F:return y.key===Y?s(h,o,y,z):null;case Z:return y.key===Y?v(h,o,y,z):null;case Vl:return y=Be(y),g(h,o,y,z)}if(pt(y)||Kl(y))return Y!==null?null:b(h,o,y,z,null);if(typeof y.then=="function")return g(h,o,Wu(y),z);if(y.$$typeof===Gl)return g(h,o,Ju(h,y),z);Fu(h,y)}return null}function S(h,o,y,z,Y){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return h=h.get(y)||null,c(o,h,""+z,Y);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case F:return h=h.get(z.key===null?y:z.key)||null,s(o,h,z,Y);case Z:return h=h.get(z.key===null?y:z.key)||null,v(o,h,z,Y);case Vl:return z=Be(z),S(h,o,y,z,Y)}if(pt(z)||Kl(z))return h=h.get(y)||null,b(o,h,z,Y,null);if(typeof z.then=="function")return S(h,o,y,Wu(z),Y);if(z.$$typeof===Gl)return S(h,o,y,Ju(o,z),Y);Fu(o,z)}return null}function C(h,o,y,z){for(var Y=null,nl=null,q=o,J=o=0,P=null;q!==null&&J<y.length;J++){q.index>J?(P=q,q=null):P=q.sibling;var il=g(h,q,y[J],z);if(il===null){q===null&&(q=P);break}l&&q&&il.alternate===null&&t(h,q),o=n(il,o,J),nl===null?Y=il:nl.sibling=il,nl=il,q=P}if(J===y.length)return e(h,q),el&&Yt(h,J),Y;if(q===null){for(;J<y.length;J++)q=A(h,y[J],z),q!==null&&(o=n(q,o,J),nl===null?Y=q:nl.sibling=q,nl=q);return el&&Yt(h,J),Y}for(q=a(q);J<y.length;J++)P=S(q,h,J,y[J],z),P!==null&&(l&&P.alternate!==null&&q.delete(P.key===null?J:P.key),o=n(P,o,J),nl===null?Y=P:nl.sibling=P,nl=P);return l&&q.forEach(function(ze){return t(h,ze)}),el&&Yt(h,J),Y}function X(h,o,y,z){if(y==null)throw Error(r(151));for(var Y=null,nl=null,q=o,J=o=0,P=null,il=y.next();q!==null&&!il.done;J++,il=y.next()){q.index>J?(P=q,q=null):P=q.sibling;var ze=g(h,q,il.value,z);if(ze===null){q===null&&(q=P);break}l&&q&&ze.alternate===null&&t(h,q),o=n(ze,o,J),nl===null?Y=ze:nl.sibling=ze,nl=ze,q=P}if(il.done)return e(h,q),el&&Yt(h,J),Y;if(q===null){for(;!il.done;J++,il=y.next())il=A(h,il.value,z),il!==null&&(o=n(il,o,J),nl===null?Y=il:nl.sibling=il,nl=il);return el&&Yt(h,J),Y}for(q=a(q);!il.done;J++,il=y.next())il=S(q,h,J,il.value,z),il!==null&&(l&&il.alternate!==null&&q.delete(il.key===null?J:il.key),o=n(il,o,J),nl===null?Y=il:nl.sibling=il,nl=il);return l&&q.forEach(function(Im){return t(h,Im)}),el&&Yt(h,J),Y}function ml(h,o,y,z){if(typeof y=="object"&&y!==null&&y.type===al&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case F:l:{for(var Y=y.key;o!==null;){if(o.key===Y){if(Y=y.type,Y===al){if(o.tag===7){e(h,o.sibling),z=u(o,y.props.children),z.return=h,h=z;break l}}else if(o.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Vl&&Be(Y)===o.type){e(h,o.sibling),z=u(o,y.props),ka(z,y),z.return=h,h=z;break l}e(h,o);break}else t(h,o);o=o.sibling}y.type===al?(z=De(y.props.children,h.mode,z,y.key),z.return=h,h=z):(z=Lu(y.type,y.key,y.props,null,h.mode,z),ka(z,y),z.return=h,h=z)}return i(h);case Z:l:{for(Y=y.key;o!==null;){if(o.key===Y)if(o.tag===4&&o.stateNode.containerInfo===y.containerInfo&&o.stateNode.implementation===y.implementation){e(h,o.sibling),z=u(o,y.children||[]),z.return=h,h=z;break l}else{e(h,o);break}else t(h,o);o=o.sibling}z=Ei(y,h.mode,z),z.return=h,h=z}return i(h);case Vl:return y=Be(y),ml(h,o,y,z)}if(pt(y))return C(h,o,y,z);if(Kl(y)){if(Y=Kl(y),typeof Y!="function")throw Error(r(150));return y=Y.call(y),X(h,o,y,z)}if(typeof y.then=="function")return ml(h,o,Wu(y),z);if(y.$$typeof===Gl)return ml(h,o,Ju(h,y),z);Fu(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,o!==null&&o.tag===6?(e(h,o.sibling),z=u(o,y),z.return=h,h=z):(e(h,o),z=Ai(y,h.mode,z),z.return=h,h=z),i(h)):e(h,o)}return function(h,o,y,z){try{wa=0;var Y=ml(h,o,y,z);return da=null,Y}catch(q){if(q===oa||q===ku)throw q;var nl=at(29,q,null,h.mode);return nl.lanes=z,nl.return=h,nl}finally{}}}var Ye=Ns(!0),Ms=Ns(!1),ne=!1;function Bi(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qi(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function ie(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function ce(l,t,e){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(cl&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=Zu(l),hs(l,null,e),t}return Qu(l,a,t,e),Zu(l)}function $a(l,t,e){if(t=t.updateQueue,t!==null&&(t=t.shared,(e&4194048)!==0)){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Tf(l,e)}}function Yi(l,t){var e=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var u=null,n=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};n===null?u=n=i:n=n.next=i,e=e.next}while(e!==null);n===null?u=n=t:n=n.next=t}else u=n=t;e={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:a.shared,callbacks:a.callbacks},l.updateQueue=e;return}l=e.lastBaseUpdate,l===null?e.firstBaseUpdate=t:l.next=t,e.lastBaseUpdate=t}var Gi=!1;function Wa(){if(Gi){var l=sa;if(l!==null)throw l}}function Fa(l,t,e,a){Gi=!1;var u=l.updateQueue;ne=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,c=u.shared.pending;if(c!==null){u.shared.pending=null;var s=c,v=s.next;s.next=null,i===null?n=v:i.next=v,i=s;var b=l.alternate;b!==null&&(b=b.updateQueue,c=b.lastBaseUpdate,c!==i&&(c===null?b.firstBaseUpdate=v:c.next=v,b.lastBaseUpdate=s))}if(n!==null){var A=u.baseState;i=0,b=v=s=null,c=n;do{var g=c.lane&-536870913,S=g!==c.lane;if(S?(I&g)===g:(a&g)===g){g!==0&&g===fa&&(Gi=!0),b!==null&&(b=b.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var C=l,X=c;g=t;var ml=e;switch(X.tag){case 1:if(C=X.payload,typeof C=="function"){A=C.call(ml,A,g);break l}A=C;break l;case 3:C.flags=C.flags&-65537|128;case 0:if(C=X.payload,g=typeof C=="function"?C.call(ml,A,g):C,g==null)break l;A=x({},A,g);break l;case 2:ne=!0}}g=c.callback,g!==null&&(l.flags|=64,S&&(l.flags|=8192),S=u.callbacks,S===null?u.callbacks=[g]:S.push(g))}else S={lane:g,tag:c.tag,payload:c.payload,callback:c.callback,next:null},b===null?(v=b=S,s=A):b=b.next=S,i|=g;if(c=c.next,c===null){if(c=u.shared.pending,c===null)break;S=c,c=S.next,S.next=null,u.lastBaseUpdate=S,u.shared.pending=null}}while(!0);b===null&&(s=A),u.baseState=s,u.firstBaseUpdate=v,u.lastBaseUpdate=b,n===null&&(u.shared.lanes=0),re|=i,l.lanes=i,l.memoizedState=A}}function Ds(l,t){if(typeof l!="function")throw Error(r(191,l));l.call(t)}function Cs(l,t){var e=l.callbacks;if(e!==null)for(l.callbacks=null,l=0;l<e.length;l++)Ds(e[l],t)}var ra=d(null),Iu=d(0);function Us(l,t){l=$t,N(Iu,l),N(ra,t),$t=l|t.baseLanes}function Xi(){N(Iu,$t),N(ra,ra.current)}function Qi(){$t=Iu.current,E(ra),E(Iu)}var ut=d(null),gt=null;function fe(l){var t=l.alternate;N(El,El.current&1),N(ut,l),gt===null&&(t===null||ra.current!==null||t.memoizedState!==null)&&(gt=l)}function Zi(l){N(El,El.current),N(ut,l),gt===null&&(gt=l)}function Rs(l){l.tag===22?(N(El,El.current),N(ut,l),gt===null&&(gt=l)):se()}function se(){N(El,El.current),N(ut,ut.current)}function nt(l){E(ut),gt===l&&(gt=null),E(El)}var El=d(0);function Pu(l){for(var t=l;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||kc(e)||$c(e)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Qt=0,K=null,rl=null,jl=null,ln=!1,ha=!1,Ge=!1,tn=0,Ia=0,ma=null,Zh=0;function Tl(){throw Error(r(321))}function Li(l,t){if(t===null)return!1;for(var e=0;e<t.length&&e<l.length;e++)if(!et(l[e],t[e]))return!1;return!0}function Vi(l,t,e,a,u,n){return Qt=n,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=l===null||l.memoizedState===null?So:nc,Ge=!1,n=e(a,u),Ge=!1,ha&&(n=Bs(t,e,a,u)),Hs(l),n}function Hs(l){T.H=tu;var t=rl!==null&&rl.next!==null;if(Qt=0,jl=rl=K=null,ln=!1,Ia=0,ma=null,t)throw Error(r(300));l===null||Ol||(l=l.dependencies,l!==null&&Ku(l)&&(Ol=!0))}function Bs(l,t,e,a){K=l;var u=0;do{if(ha&&(ma=null),Ia=0,ha=!1,25<=u)throw Error(r(301));if(u+=1,jl=rl=null,l.updateQueue!=null){var n=l.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}T.H=bo,n=t(e,a)}while(ha);return n}function Lh(){var l=T.H,t=l.useState()[0];return t=typeof t.then=="function"?Pa(t):t,l=l.useState()[0],(rl!==null?rl.memoizedState:null)!==l&&(K.flags|=1024),t}function Ki(){var l=tn!==0;return tn=0,l}function Ji(l,t,e){t.updateQueue=l.updateQueue,t.flags&=-2053,l.lanes&=~e}function wi(l){if(ln){for(l=l.memoizedState;l!==null;){var t=l.queue;t!==null&&(t.pending=null),l=l.next}ln=!1}Qt=0,jl=rl=K=null,ha=!1,Ia=tn=0,ma=null}function Zl(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jl===null?K.memoizedState=jl=l:jl=jl.next=l,jl}function _l(){if(rl===null){var l=K.alternate;l=l!==null?l.memoizedState:null}else l=rl.next;var t=jl===null?K.memoizedState:jl.next;if(t!==null)jl=t,rl=l;else{if(l===null)throw K.alternate===null?Error(r(467)):Error(r(310));rl=l,l={memoizedState:rl.memoizedState,baseState:rl.baseState,baseQueue:rl.baseQueue,queue:rl.queue,next:null},jl===null?K.memoizedState=jl=l:jl=jl.next=l}return jl}function en(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pa(l){var t=Ia;return Ia+=1,ma===null&&(ma=[]),l=xs(ma,l,t),t=K,(jl===null?t.memoizedState:jl.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?So:nc),l}function an(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return Pa(l);if(l.$$typeof===Gl)return Bl(l)}throw Error(r(438,String(l)))}function ki(l){var t=null,e=K.updateQueue;if(e!==null&&(t=e.memoCache),t==null){var a=K.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}),e===null&&(e=en(),K.updateQueue=e),e.memoCache=t,e=t.data[t.index],e===void 0)for(e=t.data[t.index]=Array(l),a=0;a<l;a++)e[a]=Le;return t.index++,e}function Zt(l,t){return typeof t=="function"?t(l):t}function un(l){var t=_l();return $i(t,rl,l)}function $i(l,t,e){var a=l.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var u=l.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=l.baseState,u===null)l.memoizedState=n;else{t=u.next;var c=i=null,s=null,v=t,b=!1;do{var A=v.lane&-536870913;if(A!==v.lane?(I&A)===A:(Qt&A)===A){var g=v.revertLane;if(g===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),A===fa&&(b=!0);else if((Qt&g)===g){v=v.next,g===fa&&(b=!0);continue}else A={lane:0,revertLane:v.revertLane,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},s===null?(c=s=A,i=n):s=s.next=A,K.lanes|=g,re|=g;A=v.action,Ge&&e(n,A),n=v.hasEagerState?v.eagerState:e(n,A)}else g={lane:A,revertLane:v.revertLane,gesture:v.gesture,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},s===null?(c=s=g,i=n):s=s.next=g,K.lanes|=A,re|=A;v=v.next}while(v!==null&&v!==t);if(s===null?i=n:s.next=c,!et(n,l.memoizedState)&&(Ol=!0,b&&(e=sa,e!==null)))throw e;l.memoizedState=n,l.baseState=i,l.baseQueue=s,a.lastRenderedState=n}return u===null&&(a.lanes=0),[l.memoizedState,a.dispatch]}function Wi(l){var t=_l(),e=t.queue;if(e===null)throw Error(r(311));e.lastRenderedReducer=l;var a=e.dispatch,u=e.pending,n=t.memoizedState;if(u!==null){e.pending=null;var i=u=u.next;do n=l(n,i.action),i=i.next;while(i!==u);et(n,t.memoizedState)||(Ol=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),e.lastRenderedState=n}return[n,a]}function qs(l,t,e){var a=K,u=_l(),n=el;if(n){if(e===void 0)throw Error(r(407));e=e()}else e=t();var i=!et((rl||u).memoizedState,e);if(i&&(u.memoizedState=e,Ol=!0),u=u.queue,Pi(Xs.bind(null,a,u,l),[l]),u.getSnapshot!==t||i||jl!==null&&jl.memoizedState.tag&1){if(a.flags|=2048,ya(9,{destroy:void 0},Gs.bind(null,a,u,e,t),null),vl===null)throw Error(r(349));n||(Qt&127)!==0||Ys(a,t,e)}return e}function Ys(l,t,e){l.flags|=16384,l={getSnapshot:t,value:e},t=K.updateQueue,t===null?(t=en(),K.updateQueue=t,t.stores=[l]):(e=t.stores,e===null?t.stores=[l]:e.push(l))}function Gs(l,t,e,a){t.value=e,t.getSnapshot=a,Qs(t)&&Zs(l)}function Xs(l,t,e){return e(function(){Qs(t)&&Zs(l)})}function Qs(l){var t=l.getSnapshot;l=l.value;try{var e=t();return!et(l,e)}catch{return!0}}function Zs(l){var t=Me(l,2);t!==null&&Il(t,l,2)}function Fi(l){var t=Zl();if(typeof l=="function"){var e=l;if(l=e(),Ge){It(!0);try{e()}finally{It(!1)}}}return t.memoizedState=t.baseState=l,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:l},t}function Ls(l,t,e,a){return l.baseState=e,$i(l,rl,typeof a=="function"?a:Zt)}function Vh(l,t,e,a,u){if(fn(l))throw Error(r(485));if(l=t.action,l!==null){var n={payload:u,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};T.T!==null?e(!0):n.isTransition=!1,a(n),e=t.pending,e===null?(n.next=t.pending=n,Vs(t,n)):(n.next=e.next,t.pending=e.next=n)}}function Vs(l,t){var e=t.action,a=t.payload,u=l.state;if(t.isTransition){var n=T.T,i={};T.T=i;try{var c=e(u,a),s=T.S;s!==null&&s(i,c),Ks(l,t,c)}catch(v){Ii(l,t,v)}finally{n!==null&&i.types!==null&&(n.types=i.types),T.T=n}}else try{n=e(u,a),Ks(l,t,n)}catch(v){Ii(l,t,v)}}function Ks(l,t,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){Js(l,t,a)},function(a){return Ii(l,t,a)}):Js(l,t,e)}function Js(l,t,e){t.status="fulfilled",t.value=e,ws(t),l.state=e,t=l.pending,t!==null&&(e=t.next,e===t?l.pending=null:(e=e.next,t.next=e,Vs(l,e)))}function Ii(l,t,e){var a=l.pending;if(l.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=e,ws(t),t=t.next;while(t!==a)}l.action=null}function ws(l){l=l.listeners;for(var t=0;t<l.length;t++)(0,l[t])()}function ks(l,t){return t}function $s(l,t){if(el){var e=vl.formState;if(e!==null){l:{var a=K;if(el){if(gl){t:{for(var u=gl,n=vt;u.nodeType!==8;){if(!n){u=null;break t}if(u=St(u.nextSibling),u===null){u=null;break t}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){gl=St(u.nextSibling),a=u.data==="F!";break l}}ae(a)}a=!1}a&&(t=e[0])}}return e=Zl(),e.memoizedState=e.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:t},e.queue=a,e=yo.bind(null,K,a),a.dispatch=e,a=Fi(!1),n=uc.bind(null,K,!1,a.queue),a=Zl(),u={state:t,dispatch:null,action:l,pending:null},a.queue=u,e=Vh.bind(null,K,u,n,e),u.dispatch=e,a.memoizedState=l,[t,e,!1]}function Ws(l){var t=_l();return Fs(t,rl,l)}function Fs(l,t,e){if(t=$i(l,t,ks)[0],l=un(Zt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Pa(t)}catch(i){throw i===oa?ku:i}else a=t;t=_l();var u=t.queue,n=u.dispatch;return e!==t.memoizedState&&(K.flags|=2048,ya(9,{destroy:void 0},Kh.bind(null,u,e),null)),[a,n,l]}function Kh(l,t){l.action=t}function Is(l){var t=_l(),e=rl;if(e!==null)return Fs(t,e,l);_l(),t=t.memoizedState,e=_l();var a=e.queue.dispatch;return e.memoizedState=l,[t,a,!1]}function ya(l,t,e,a){return l={tag:l,create:e,deps:a,inst:t,next:null},t=K.updateQueue,t===null&&(t=en(),K.updateQueue=t),e=t.lastEffect,e===null?t.lastEffect=l.next=l:(a=e.next,e.next=l,l.next=a,t.lastEffect=l),l}function Ps(){return _l().memoizedState}function nn(l,t,e,a){var u=Zl();K.flags|=l,u.memoizedState=ya(1|t,{destroy:void 0},e,a===void 0?null:a)}function cn(l,t,e,a){var u=_l();a=a===void 0?null:a;var n=u.memoizedState.inst;rl!==null&&a!==null&&Li(a,rl.memoizedState.deps)?u.memoizedState=ya(t,n,e,a):(K.flags|=l,u.memoizedState=ya(1|t,n,e,a))}function lo(l,t){nn(8390656,8,l,t)}function Pi(l,t){cn(2048,8,l,t)}function Jh(l){K.flags|=4;var t=K.updateQueue;if(t===null)t=en(),K.updateQueue=t,t.events=[l];else{var e=t.events;e===null?t.events=[l]:e.push(l)}}function to(l){var t=_l().memoizedState;return Jh({ref:t,nextImpl:l}),function(){if((cl&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function eo(l,t){return cn(4,2,l,t)}function ao(l,t){return cn(4,4,l,t)}function uo(l,t){if(typeof t=="function"){l=l();var e=t(l);return function(){typeof e=="function"?e():t(null)}}if(t!=null)return l=l(),t.current=l,function(){t.current=null}}function no(l,t,e){e=e!=null?e.concat([l]):null,cn(4,4,uo.bind(null,t,l),e)}function lc(){}function io(l,t){var e=_l();t=t===void 0?null:t;var a=e.memoizedState;return t!==null&&Li(t,a[1])?a[0]:(e.memoizedState=[l,t],l)}function co(l,t){var e=_l();t=t===void 0?null:t;var a=e.memoizedState;if(t!==null&&Li(t,a[1]))return a[0];if(a=l(),Ge){It(!0);try{l()}finally{It(!1)}}return e.memoizedState=[a,t],a}function tc(l,t,e){return e===void 0||(Qt&1073741824)!==0&&(I&261930)===0?l.memoizedState=t:(l.memoizedState=e,l=sd(),K.lanes|=l,re|=l,e)}function fo(l,t,e,a){return et(e,t)?e:ra.current!==null?(l=tc(l,e,a),et(l,t)||(Ol=!0),l):(Qt&42)===0||(Qt&1073741824)!==0&&(I&261930)===0?(Ol=!0,l.memoizedState=e):(l=sd(),K.lanes|=l,re|=l,t)}function so(l,t,e,a,u){var n=j.p;j.p=n!==0&&8>n?n:8;var i=T.T,c={};T.T=c,uc(l,!1,t,e);try{var s=u(),v=T.S;if(v!==null&&v(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var b=Qh(s,a);lu(l,t,b,ft(l))}else lu(l,t,a,ft(l))}catch(A){lu(l,t,{then:function(){},status:"rejected",reason:A},ft())}finally{j.p=n,i!==null&&c.types!==null&&(i.types=c.types),T.T=i}}function wh(){}function ec(l,t,e,a){if(l.tag!==5)throw Error(r(476));var u=oo(l).queue;so(l,u,t,Q,e===null?wh:function(){return ro(l),e(a)})}function oo(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:Q},next:null};var e={};return t.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:e},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function ro(l){var t=oo(l);t.next===null&&(t=l.alternate.memoizedState),lu(l,t.next.queue,{},ft())}function ac(){return Bl(gu)}function ho(){return _l().memoizedState}function mo(){return _l().memoizedState}function kh(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=ft();l=ie(e);var a=ce(t,l,e);a!==null&&(Il(a,t,e),$a(a,t,e)),t={cache:Ci()},l.payload=t;return}t=t.return}}function $h(l,t,e){var a=ft();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},fn(l)?vo(t,e):(e=Ti(l,t,e,a),e!==null&&(Il(e,l,a),go(e,t,a)))}function yo(l,t,e){var a=ft();lu(l,t,e,a)}function lu(l,t,e,a){var u={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(fn(l))vo(t,u);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,c=n(i,e);if(u.hasEagerState=!0,u.eagerState=c,et(c,i))return Qu(l,t,u,0),vl===null&&Xu(),!1}catch{}finally{}if(e=Ti(l,t,u,a),e!==null)return Il(e,l,a),go(e,t,a),!0}return!1}function uc(l,t,e,a){if(a={lane:2,revertLane:Bc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fn(l)){if(t)throw Error(r(479))}else t=Ti(l,e,a,2),t!==null&&Il(t,l,2)}function fn(l){var t=l.alternate;return l===K||t!==null&&t===K}function vo(l,t){ha=ln=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function go(l,t,e){if((e&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Tf(l,e)}}var tu={readContext:Bl,use:an,useCallback:Tl,useContext:Tl,useEffect:Tl,useImperativeHandle:Tl,useLayoutEffect:Tl,useInsertionEffect:Tl,useMemo:Tl,useReducer:Tl,useRef:Tl,useState:Tl,useDebugValue:Tl,useDeferredValue:Tl,useTransition:Tl,useSyncExternalStore:Tl,useId:Tl,useHostTransitionStatus:Tl,useFormState:Tl,useActionState:Tl,useOptimistic:Tl,useMemoCache:Tl,useCacheRefresh:Tl};tu.useEffectEvent=Tl;var So={readContext:Bl,use:an,useCallback:function(l,t){return Zl().memoizedState=[l,t===void 0?null:t],l},useContext:Bl,useEffect:lo,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,nn(4194308,4,uo.bind(null,t,l),e)},useLayoutEffect:function(l,t){return nn(4194308,4,l,t)},useInsertionEffect:function(l,t){nn(4,2,l,t)},useMemo:function(l,t){var e=Zl();t=t===void 0?null:t;var a=l();if(Ge){It(!0);try{l()}finally{It(!1)}}return e.memoizedState=[a,t],a},useReducer:function(l,t,e){var a=Zl();if(e!==void 0){var u=e(t);if(Ge){It(!0);try{e(t)}finally{It(!1)}}}else u=t;return a.memoizedState=a.baseState=u,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},a.queue=l,l=l.dispatch=$h.bind(null,K,l),[a.memoizedState,l]},useRef:function(l){var t=Zl();return l={current:l},t.memoizedState=l},useState:function(l){l=Fi(l);var t=l.queue,e=yo.bind(null,K,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:lc,useDeferredValue:function(l,t){var e=Zl();return tc(e,l,t)},useTransition:function(){var l=Fi(!1);return l=so.bind(null,K,l.queue,!0,!1),Zl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var a=K,u=Zl();if(el){if(e===void 0)throw Error(r(407));e=e()}else{if(e=t(),vl===null)throw Error(r(349));(I&127)!==0||Ys(a,t,e)}u.memoizedState=e;var n={value:e,getSnapshot:t};return u.queue=n,lo(Xs.bind(null,a,n,l),[l]),a.flags|=2048,ya(9,{destroy:void 0},Gs.bind(null,a,n,e,t),null),e},useId:function(){var l=Zl(),t=vl.identifierPrefix;if(el){var e=Mt,a=Nt;e=(a&~(1<<32-tt(a)-1)).toString(32)+e,t="_"+t+"R_"+e,e=tn++,0<e&&(t+="H"+e.toString(32)),t+="_"}else e=Zh++,t="_"+t+"r_"+e.toString(32)+"_";return l.memoizedState=t},useHostTransitionStatus:ac,useFormState:$s,useActionState:$s,useOptimistic:function(l){var t=Zl();t.memoizedState=t.baseState=l;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=e,t=uc.bind(null,K,!0,e),e.dispatch=t,[l,t]},useMemoCache:ki,useCacheRefresh:function(){return Zl().memoizedState=kh.bind(null,K)},useEffectEvent:function(l){var t=Zl(),e={impl:l};return t.memoizedState=e,function(){if((cl&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}},nc={readContext:Bl,use:an,useCallback:io,useContext:Bl,useEffect:Pi,useImperativeHandle:no,useInsertionEffect:eo,useLayoutEffect:ao,useMemo:co,useReducer:un,useRef:Ps,useState:function(){return un(Zt)},useDebugValue:lc,useDeferredValue:function(l,t){var e=_l();return fo(e,rl.memoizedState,l,t)},useTransition:function(){var l=un(Zt)[0],t=_l().memoizedState;return[typeof l=="boolean"?l:Pa(l),t]},useSyncExternalStore:qs,useId:ho,useHostTransitionStatus:ac,useFormState:Ws,useActionState:Ws,useOptimistic:function(l,t){var e=_l();return Ls(e,rl,l,t)},useMemoCache:ki,useCacheRefresh:mo};nc.useEffectEvent=to;var bo={readContext:Bl,use:an,useCallback:io,useContext:Bl,useEffect:Pi,useImperativeHandle:no,useInsertionEffect:eo,useLayoutEffect:ao,useMemo:co,useReducer:Wi,useRef:Ps,useState:function(){return Wi(Zt)},useDebugValue:lc,useDeferredValue:function(l,t){var e=_l();return rl===null?tc(e,l,t):fo(e,rl.memoizedState,l,t)},useTransition:function(){var l=Wi(Zt)[0],t=_l().memoizedState;return[typeof l=="boolean"?l:Pa(l),t]},useSyncExternalStore:qs,useId:ho,useHostTransitionStatus:ac,useFormState:Is,useActionState:Is,useOptimistic:function(l,t){var e=_l();return rl!==null?Ls(e,rl,l,t):(e.baseState=l,[l,e.queue.dispatch])},useMemoCache:ki,useCacheRefresh:mo};bo.useEffectEvent=to;function ic(l,t,e,a){t=l.memoizedState,e=e(a,t),e=e==null?t:x({},t,e),l.memoizedState=e,l.lanes===0&&(l.updateQueue.baseState=e)}var cc={enqueueSetState:function(l,t,e){l=l._reactInternals;var a=ft(),u=ie(a);u.payload=t,e!=null&&(u.callback=e),t=ce(l,u,a),t!==null&&(Il(t,l,a),$a(t,l,a))},enqueueReplaceState:function(l,t,e){l=l._reactInternals;var a=ft(),u=ie(a);u.tag=1,u.payload=t,e!=null&&(u.callback=e),t=ce(l,u,a),t!==null&&(Il(t,l,a),$a(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var e=ft(),a=ie(e);a.tag=2,t!=null&&(a.callback=t),t=ce(l,a,e),t!==null&&(Il(t,l,e),$a(t,l,e))}};function po(l,t,e,a,u,n,i){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,n,i):t.prototype&&t.prototype.isPureReactComponent?!Qa(e,a)||!Qa(u,n):!0}function To(l,t,e,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(e,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(e,a),t.state!==l&&cc.enqueueReplaceState(t,t.state,null)}function Xe(l,t){var e=t;if("ref"in t){e={};for(var a in t)a!=="ref"&&(e[a]=t[a])}if(l=l.defaultProps){e===t&&(e=x({},e));for(var u in l)e[u]===void 0&&(e[u]=l[u])}return e}function zo(l){Gu(l)}function Ao(l){console.error(l)}function Eo(l){Gu(l)}function sn(l,t){try{var e=l.onUncaughtError;e(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function _o(l,t,e){try{var a=l.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function fc(l,t,e){return e=ie(e),e.tag=3,e.payload={element:null},e.callback=function(){sn(l,t)},e}function xo(l){return l=ie(l),l.tag=3,l}function jo(l,t,e,a){var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var n=a.value;l.payload=function(){return u(n)},l.callback=function(){_o(t,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(l.callback=function(){_o(t,e,a),typeof u!="function"&&(he===null?he=new Set([this]):he.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function Wh(l,t,e,a,u){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=e.alternate,t!==null&&ca(t,e,u,!0),e=ut.current,e!==null){switch(e.tag){case 31:case 13:return gt===null?Tn():e.alternate===null&&zl===0&&(zl=3),e.flags&=-257,e.flags|=65536,e.lanes=u,a===$u?e.flags|=16384:(t=e.updateQueue,t===null?e.updateQueue=new Set([a]):t.add(a),Uc(l,a,u)),!1;case 22:return e.flags|=65536,a===$u?e.flags|=16384:(t=e.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=t):(e=t.retryQueue,e===null?t.retryQueue=new Set([a]):e.add(a)),Uc(l,a,u)),!1}throw Error(r(435,e.tag))}return Uc(l,a,u),Tn(),!1}if(el)return t=ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==ji&&(l=Error(r(422),{cause:a}),Va(ht(l,e)))):(a!==ji&&(t=Error(r(423),{cause:a}),Va(ht(t,e))),l=l.current.alternate,l.flags|=65536,u&=-u,l.lanes|=u,a=ht(a,e),u=fc(l.stateNode,a,u),Yi(l,u),zl!==4&&(zl=2)),!1;var n=Error(r(520),{cause:a});if(n=ht(n,e),su===null?su=[n]:su.push(n),zl!==4&&(zl=2),t===null)return!0;a=ht(a,e),e=t;do{switch(e.tag){case 3:return e.flags|=65536,l=u&-u,e.lanes|=l,l=fc(e.stateNode,a,l),Yi(e,l),!1;case 1:if(t=e.type,n=e.stateNode,(e.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(he===null||!he.has(n))))return e.flags|=65536,u&=-u,e.lanes|=u,u=xo(u),jo(u,l,e,a),Yi(e,u),!1}e=e.return}while(e!==null);return!1}var sc=Error(r(461)),Ol=!1;function ql(l,t,e,a){t.child=l===null?Ms(t,null,e,a):Ye(t,l.child,e,a)}function Oo(l,t,e,a,u){e=e.render;var n=t.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Re(t),a=Vi(l,t,e,i,n,u),c=Ki(),l!==null&&!Ol?(Ji(l,t,u),Lt(l,t,u)):(el&&c&&_i(t),t.flags|=1,ql(l,t,a,u),t.child)}function No(l,t,e,a,u){if(l===null){var n=e.type;return typeof n=="function"&&!zi(n)&&n.defaultProps===void 0&&e.compare===null?(t.tag=15,t.type=n,Mo(l,t,n,a,u)):(l=Lu(e.type,null,a,t,t.mode,u),l.ref=t.ref,l.return=t,t.child=l)}if(n=l.child,!gc(l,u)){var i=n.memoizedProps;if(e=e.compare,e=e!==null?e:Qa,e(i,a)&&l.ref===t.ref)return Lt(l,t,u)}return t.flags|=1,l=qt(n,a),l.ref=t.ref,l.return=t,t.child=l}function Mo(l,t,e,a,u){if(l!==null){var n=l.memoizedProps;if(Qa(n,a)&&l.ref===t.ref)if(Ol=!1,t.pendingProps=a=n,gc(l,u))(l.flags&131072)!==0&&(Ol=!0);else return t.lanes=l.lanes,Lt(l,t,u)}return oc(l,t,e,a,u)}function Do(l,t,e,a){var u=a.children,n=l!==null?l.memoizedState:null;if(l===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|e:e,l!==null){for(a=t.child=l.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~n}else a=0,t.child=null;return Co(l,t,n,e,a)}if((e&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&wu(t,n!==null?n.cachePool:null),n!==null?Us(t,n):Xi(),Rs(t);else return a=t.lanes=536870912,Co(l,t,n!==null?n.baseLanes|e:e,e,a)}else n!==null?(wu(t,n.cachePool),Us(t,n),se(),t.memoizedState=null):(l!==null&&wu(t,null),Xi(),se());return ql(l,t,u,e),t.child}function eu(l,t){return l!==null&&l.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Co(l,t,e,a,u){var n=Ri();return n=n===null?null:{parent:xl._currentValue,pool:n},t.memoizedState={baseLanes:e,cachePool:n},l!==null&&wu(t,null),Xi(),Rs(t),l!==null&&ca(l,t,a,!0),t.childLanes=u,null}function on(l,t){return t=rn({mode:t.mode,children:t.children},l.mode),t.ref=l.ref,l.child=t,t.return=l,t}function Uo(l,t,e){return Ye(t,l.child,null,e),l=on(t,t.pendingProps),l.flags|=2,nt(t),t.memoizedState=null,l}function Fh(l,t,e){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,l===null){if(el){if(a.mode==="hidden")return l=on(t,a),t.lanes=536870912,eu(null,l);if(Zi(t),(l=gl)?(l=Kd(l,vt),l=l!==null&&l.data==="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:te!==null?{id:Nt,overflow:Mt}:null,retryLane:536870912,hydrationErrors:null},e=ys(l),e.return=t,t.child=e,Hl=t,gl=null)):l=null,l===null)throw ae(t);return t.lanes=536870912,null}return on(t,a)}var n=l.memoizedState;if(n!==null){var i=n.dehydrated;if(Zi(t),u)if(t.flags&256)t.flags&=-257,t=Uo(l,t,e);else if(t.memoizedState!==null)t.child=l.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ol||ca(l,t,e,!1),u=(e&l.childLanes)!==0,Ol||u){if(a=vl,a!==null&&(i=zf(a,e),i!==0&&i!==n.retryLane))throw n.retryLane=i,Me(l,i),Il(a,l,i),sc;Tn(),t=Uo(l,t,e)}else l=n.treeContext,gl=St(i.nextSibling),Hl=t,el=!0,ee=null,vt=!1,l!==null&&Ss(t,l),t=on(t,a),t.flags|=4096;return t}return l=qt(l.child,{mode:a.mode,children:a.children}),l.ref=t.ref,t.child=l,l.return=t,l}function dn(l,t){var e=t.ref;if(e===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(r(284));(l===null||l.ref!==e)&&(t.flags|=4194816)}}function oc(l,t,e,a,u){return Re(t),e=Vi(l,t,e,a,void 0,u),a=Ki(),l!==null&&!Ol?(Ji(l,t,u),Lt(l,t,u)):(el&&a&&_i(t),t.flags|=1,ql(l,t,e,u),t.child)}function Ro(l,t,e,a,u,n){return Re(t),t.updateQueue=null,e=Bs(t,a,e,u),Hs(l),a=Ki(),l!==null&&!Ol?(Ji(l,t,n),Lt(l,t,n)):(el&&a&&_i(t),t.flags|=1,ql(l,t,e,n),t.child)}function Ho(l,t,e,a,u){if(Re(t),t.stateNode===null){var n=aa,i=e.contextType;typeof i=="object"&&i!==null&&(n=Bl(i)),n=new e(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=cc,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},Bi(t),i=e.contextType,n.context=typeof i=="object"&&i!==null?Bl(i):aa,n.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(ic(t,e,i,a),n.state=t.memoizedState),typeof e.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&&cc.enqueueReplaceState(n,n.state,null),Fa(t,a,n,u),Wa(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,s=Xe(e,c);n.props=s;var v=n.context,b=e.contextType;i=aa,typeof b=="object"&&b!==null&&(i=Bl(b));var A=e.getDerivedStateFromProps;b=typeof A=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,b||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||v!==i)&&To(t,n,a,i),ne=!1;var g=t.memoizedState;n.state=g,Fa(t,a,n,u),Wa(),v=t.memoizedState,c||g!==v||ne?(typeof A=="function"&&(ic(t,e,A,a),v=t.memoizedState),(s=ne||po(t,e,s,a,g,v,i))?(b||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=v),n.props=a,n.state=v,n.context=i,a=s):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,qi(l,t),i=t.memoizedProps,b=Xe(e,i),n.props=b,A=t.pendingProps,g=n.context,v=e.contextType,s=aa,typeof v=="object"&&v!==null&&(s=Bl(v)),c=e.getDerivedStateFromProps,(v=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==A||g!==s)&&To(t,n,a,s),ne=!1,g=t.memoizedState,n.state=g,Fa(t,a,n,u),Wa();var S=t.memoizedState;i!==A||g!==S||ne||l!==null&&l.dependencies!==null&&Ku(l.dependencies)?(typeof c=="function"&&(ic(t,e,c,a),S=t.memoizedState),(b=ne||po(t,e,b,a,g,S,s)||l!==null&&l.dependencies!==null&&Ku(l.dependencies))?(v||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,S,s),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,S,s)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=S),n.props=a,n.state=S,n.context=s,a=b):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=1024),a=!1)}return n=a,dn(l,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,l!==null&&a?(t.child=Ye(t,l.child,null,u),t.child=Ye(t,null,e,u)):ql(l,t,e,u),t.memoizedState=n.state,l=t.child):l=Lt(l,t,u),l}function Bo(l,t,e,a){return Ce(),t.flags|=256,ql(l,t,e,a),t.child}var dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rc(l){return{baseLanes:l,cachePool:Es()}}function hc(l,t,e){return l=l!==null?l.childLanes&~e:0,t&&(l|=ct),l}function qo(l,t,e){var a=t.pendingProps,u=!1,n=(t.flags&128)!==0,i;if((i=n)||(i=l!==null&&l.memoizedState===null?!1:(El.current&2)!==0),i&&(u=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,l===null){if(el){if(u?fe(t):se(),(l=gl)?(l=Kd(l,vt),l=l!==null&&l.data!=="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:te!==null?{id:Nt,overflow:Mt}:null,retryLane:536870912,hydrationErrors:null},e=ys(l),e.return=t,t.child=e,Hl=t,gl=null)):l=null,l===null)throw ae(t);return $c(l)?t.lanes=32:t.lanes=536870912,null}var c=a.children;return a=a.fallback,u?(se(),u=t.mode,c=rn({mode:"hidden",children:c},u),a=De(a,u,e,null),c.return=t,a.return=t,c.sibling=a,t.child=c,a=t.child,a.memoizedState=rc(e),a.childLanes=hc(l,i,e),t.memoizedState=dc,eu(null,a)):(fe(t),mc(t,c))}var s=l.memoizedState;if(s!==null&&(c=s.dehydrated,c!==null)){if(n)t.flags&256?(fe(t),t.flags&=-257,t=yc(l,t,e)):t.memoizedState!==null?(se(),t.child=l.child,t.flags|=128,t=null):(se(),c=a.fallback,u=t.mode,a=rn({mode:"visible",children:a.children},u),c=De(c,u,e,null),c.flags|=2,a.return=t,c.return=t,a.sibling=c,t.child=a,Ye(t,l.child,null,e),a=t.child,a.memoizedState=rc(e),a.childLanes=hc(l,i,e),t.memoizedState=dc,t=eu(null,a));else if(fe(t),$c(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var v=i.dgst;i=v,a=Error(r(419)),a.stack="",a.digest=i,Va({value:a,source:null,stack:null}),t=yc(l,t,e)}else if(Ol||ca(l,t,e,!1),i=(e&l.childLanes)!==0,Ol||i){if(i=vl,i!==null&&(a=zf(i,e),a!==0&&a!==s.retryLane))throw s.retryLane=a,Me(l,a),Il(i,l,a),sc;kc(c)||Tn(),t=yc(l,t,e)}else kc(c)?(t.flags|=192,t.child=l.child,t=null):(l=s.treeContext,gl=St(c.nextSibling),Hl=t,el=!0,ee=null,vt=!1,l!==null&&Ss(t,l),t=mc(t,a.children),t.flags|=4096);return t}return u?(se(),c=a.fallback,u=t.mode,s=l.child,v=s.sibling,a=qt(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,v!==null?c=qt(v,c):(c=De(c,u,e,null),c.flags|=2),c.return=t,a.return=t,a.sibling=c,t.child=a,eu(null,a),a=t.child,c=l.child.memoizedState,c===null?c=rc(e):(u=c.cachePool,u!==null?(s=xl._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=Es(),c={baseLanes:c.baseLanes|e,cachePool:u}),a.memoizedState=c,a.childLanes=hc(l,i,e),t.memoizedState=dc,eu(l.child,a)):(fe(t),e=l.child,l=e.sibling,e=qt(e,{mode:"visible",children:a.children}),e.return=t,e.sibling=null,l!==null&&(i=t.deletions,i===null?(t.deletions=[l],t.flags|=16):i.push(l)),t.child=e,t.memoizedState=null,e)}function mc(l,t){return t=rn({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function rn(l,t){return l=at(22,l,null,t),l.lanes=0,l}function yc(l,t,e){return Ye(t,l.child,null,e),l=mc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Yo(l,t,e){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Mi(l.return,t,e)}function vc(l,t,e,a,u,n){var i=l.memoizedState;i===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:u,treeForkCount:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=u,i.treeForkCount=n)}function Go(l,t,e){var a=t.pendingProps,u=a.revealOrder,n=a.tail;a=a.children;var i=El.current,c=(i&2)!==0;if(c?(i=i&1|2,t.flags|=128):i&=1,N(El,i),ql(l,t,a,e),a=el?La:0,!c&&l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Yo(l,e,t);else if(l.tag===19)Yo(l,e,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(u){case"forwards":for(e=t.child,u=null;e!==null;)l=e.alternate,l!==null&&Pu(l)===null&&(u=e),e=e.sibling;e=u,e===null?(u=t.child,t.child=null):(u=e.sibling,e.sibling=null),vc(t,!1,u,e,n,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,u=t.child,t.child=null;u!==null;){if(l=u.alternate,l!==null&&Pu(l)===null){t.child=u;break}l=u.sibling,u.sibling=e,e=u,u=l}vc(t,!0,e,null,n,a);break;case"together":vc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Lt(l,t,e){if(l!==null&&(t.dependencies=l.dependencies),re|=t.lanes,(e&t.childLanes)===0)if(l!==null){if(ca(l,t,e,!1),(e&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(r(153));if(t.child!==null){for(l=t.child,e=qt(l,l.pendingProps),t.child=e,e.return=t;l.sibling!==null;)l=l.sibling,e=e.sibling=qt(l,l.pendingProps),e.return=t;e.sibling=null}return t.child}function gc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Ku(l)))}function Ih(l,t,e){switch(t.tag){case 3:Ql(t,t.stateNode.containerInfo),ue(t,xl,l.memoizedState.cache),Ce();break;case 27:case 5:Oa(t);break;case 4:Ql(t,t.stateNode.containerInfo);break;case 10:ue(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Zi(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(fe(t),t.flags|=128,null):(e&t.child.childLanes)!==0?qo(l,t,e):(fe(t),l=Lt(l,t,e),l!==null?l.sibling:null);fe(t);break;case 19:var u=(l.flags&128)!==0;if(a=(e&t.childLanes)!==0,a||(ca(l,t,e,!1),a=(e&t.childLanes)!==0),u){if(a)return Go(l,t,e);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),N(El,El.current),a)break;return null;case 22:return t.lanes=0,Do(l,t,e,t.pendingProps);case 24:ue(t,xl,l.memoizedState.cache)}return Lt(l,t,e)}function Xo(l,t,e){if(l!==null)if(l.memoizedProps!==t.pendingProps)Ol=!0;else{if(!gc(l,e)&&(t.flags&128)===0)return Ol=!1,Ih(l,t,e);Ol=(l.flags&131072)!==0}else Ol=!1,el&&(t.flags&1048576)!==0&&gs(t,La,t.index);switch(t.lanes=0,t.tag){case 16:l:{var a=t.pendingProps;if(l=Be(t.elementType),t.type=l,typeof l=="function")zi(l)?(a=Xe(l,a),t.tag=1,t=Ho(null,t,l,a,e)):(t.tag=0,t=oc(null,t,l,a,e));else{if(l!=null){var u=l.$$typeof;if(u===st){t.tag=11,t=Oo(null,t,l,a,e);break l}else if(u===tl){t.tag=14,t=No(null,t,l,a,e);break l}}throw t=Ut(l)||l,Error(r(306,t,""))}}return t;case 0:return oc(l,t,t.type,t.pendingProps,e);case 1:return a=t.type,u=Xe(a,t.pendingProps),Ho(l,t,a,u,e);case 3:l:{if(Ql(t,t.stateNode.containerInfo),l===null)throw Error(r(387));a=t.pendingProps;var n=t.memoizedState;u=n.element,qi(l,t),Fa(t,a,null,e);var i=t.memoizedState;if(a=i.cache,ue(t,xl,a),a!==n.cache&&Di(t,[xl],e,!0),Wa(),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=Bo(l,t,a,e);break l}else if(a!==u){u=ht(Error(r(424)),t),Va(u),t=Bo(l,t,a,e);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(gl=St(l.firstChild),Hl=t,el=!0,ee=null,vt=!0,e=Ms(t,null,a,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ce(),a===u){t=Lt(l,t,e);break l}ql(l,t,a,e)}t=t.child}return t;case 26:return dn(l,t),l===null?(e=Fd(t.type,null,t.pendingProps,null))?t.memoizedState=e:el||(e=t.type,l=t.pendingProps,a=On(k.current).createElement(e),a[Rl]=t,a[Jl]=l,Yl(a,e,l),Cl(a),t.stateNode=a):t.memoizedState=Fd(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Oa(t),l===null&&el&&(a=t.stateNode=kd(t.type,t.pendingProps,k.current),Hl=t,vt=!0,u=gl,ge(t.type)?(Wc=u,gl=St(a.firstChild)):gl=u),ql(l,t,t.pendingProps.children,e),dn(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&el&&((u=a=gl)&&(a=Om(a,t.type,t.pendingProps,vt),a!==null?(t.stateNode=a,Hl=t,gl=St(a.firstChild),vt=!1,u=!0):u=!1),u||ae(t)),Oa(t),u=t.type,n=t.pendingProps,i=l!==null?l.memoizedProps:null,a=n.children,Kc(u,n)?a=null:i!==null&&Kc(u,i)&&(t.flags|=32),t.memoizedState!==null&&(u=Vi(l,t,Lh,null,null,e),gu._currentValue=u),dn(l,t),ql(l,t,a,e),t.child;case 6:return l===null&&el&&((l=e=gl)&&(e=Nm(e,t.pendingProps,vt),e!==null?(t.stateNode=e,Hl=t,gl=null,l=!0):l=!1),l||ae(t)),null;case 13:return qo(l,t,e);case 4:return Ql(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=Ye(t,null,a,e):ql(l,t,a,e),t.child;case 11:return Oo(l,t,t.type,t.pendingProps,e);case 7:return ql(l,t,t.pendingProps,e),t.child;case 8:return ql(l,t,t.pendingProps.children,e),t.child;case 12:return ql(l,t,t.pendingProps.children,e),t.child;case 10:return a=t.pendingProps,ue(t,t.type,a.value),ql(l,t,a.children,e),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Re(t),u=Bl(u),a=a(u),t.flags|=1,ql(l,t,a,e),t.child;case 14:return No(l,t,t.type,t.pendingProps,e);case 15:return Mo(l,t,t.type,t.pendingProps,e);case 19:return Go(l,t,e);case 31:return Fh(l,t,e);case 22:return Do(l,t,e,t.pendingProps);case 24:return Re(t),a=Bl(xl),l===null?(u=Ri(),u===null&&(u=vl,n=Ci(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=e),u=n),t.memoizedState={parent:a,cache:u},Bi(t),ue(t,xl,u)):((l.lanes&e)!==0&&(qi(l,t),Fa(t,null,null,e),Wa()),u=l.memoizedState,n=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ue(t,xl,a)):(a=n.cache,ue(t,xl,a),a!==u.cache&&Di(t,[xl],e,!0))),ql(l,t,t.pendingProps.children,e),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Vt(l){l.flags|=4}function Sc(l,t,e,a,u){if((t=(l.mode&32)!==0)&&(t=!1),t){if(l.flags|=16777216,(u&335544128)===u)if(l.stateNode.complete)l.flags|=8192;else if(hd())l.flags|=8192;else throw qe=$u,Hi}else l.flags&=-16777217}function Qo(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!er(t))if(hd())l.flags|=8192;else throw qe=$u,Hi}function hn(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?bf():536870912,l.lanes|=t,ba|=t)}function au(l,t){if(!el)switch(l.tailMode){case"hidden":t=l.tail;for(var e=null;t!==null;)t.alternate!==null&&(e=t),t=t.sibling;e===null?l.tail=null:e.sibling=null;break;case"collapsed":e=l.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function Sl(l){var t=l.alternate!==null&&l.alternate.child===l.child,e=0,a=0;if(t)for(var u=l.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=l,u=u.sibling;else for(u=l.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=l,u=u.sibling;return l.subtreeFlags|=a,l.childLanes=e,t}function Ph(l,t,e){var a=t.pendingProps;switch(xi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sl(t),null;case 1:return Sl(t),null;case 3:return e=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Xt(xl),Al(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(l===null||l.child===null)&&(ia(t)?Vt(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Oi())),Sl(t),null;case 26:var u=t.type,n=t.memoizedState;return l===null?(Vt(t),n!==null?(Sl(t),Qo(t,n)):(Sl(t),Sc(t,u,null,a,e))):n?n!==l.memoizedState?(Vt(t),Sl(t),Qo(t,n)):(Sl(t),t.flags&=-16777217):(l=l.memoizedProps,l!==a&&Vt(t),Sl(t),Sc(t,u,l,a,e)),null;case 27:if(Au(t),e=k.current,u=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Vt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Sl(t),null}l=B.current,ia(t)?bs(t):(l=kd(u,a,e),t.stateNode=l,Vt(t))}return Sl(t),null;case 5:if(Au(t),u=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Vt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Sl(t),null}if(n=B.current,ia(t))bs(t);else{var i=On(k.current);switch(n){case 1:n=i.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:n=i.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":n=i.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":n=i.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":n=i.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?n.multiple=!0:a.size&&(n.size=a.size);break;default:n=typeof a.is=="string"?i.createElement(u,{is:a.is}):i.createElement(u)}}n[Rl]=t,n[Jl]=a;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;l:switch(Yl(n,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break l;case"img":a=!0;break l;default:a=!1}a&&Vt(t)}}return Sl(t),Sc(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,e),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==a&&Vt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(l=k.current,ia(t)){if(l=t.stateNode,e=t.memoizedProps,a=null,u=Hl,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}l[Rl]=t,l=!!(l.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||qd(l.nodeValue,e)),l||ae(t,!0)}else l=On(l).createTextNode(a),l[Rl]=t,t.stateNode=l}return Sl(t),null;case 31:if(e=t.memoizedState,l===null||l.memoizedState!==null){if(a=ia(t),e!==null){if(l===null){if(!a)throw Error(r(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(557));l[Rl]=t}else Ce(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Sl(t),l=!1}else e=Oi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),l=!0;if(!l)return t.flags&256?(nt(t),t):(nt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Sl(t),null;case 13:if(a=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(u=ia(t),a!==null&&a.dehydrated!==null){if(l===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[Rl]=t}else Ce(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Sl(t),u=!1}else u=Oi(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(nt(t),t):(nt(t),null)}return nt(t),(t.flags&128)!==0?(t.lanes=e,t):(e=a!==null,l=l!==null&&l.memoizedState!==null,e&&(a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(a.flags|=2048)),e!==l&&e&&(t.child.flags|=8192),hn(t,t.updateQueue),Sl(t),null);case 4:return Al(),l===null&&Xc(t.stateNode.containerInfo),Sl(t),null;case 10:return Xt(t.type),Sl(t),null;case 19:if(E(El),a=t.memoizedState,a===null)return Sl(t),null;if(u=(t.flags&128)!==0,n=a.rendering,n===null)if(u)au(a,!1);else{if(zl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(n=Pu(l),n!==null){for(t.flags|=128,au(a,!1),l=n.updateQueue,t.updateQueue=l,hn(t,l),t.subtreeFlags=0,l=e,e=t.child;e!==null;)ms(e,l),e=e.sibling;return N(El,El.current&1|2),el&&Yt(t,a.treeForkCount),t.child}l=l.sibling}a.tail!==null&&Pl()>Sn&&(t.flags|=128,u=!0,au(a,!1),t.lanes=4194304)}else{if(!u)if(l=Pu(n),l!==null){if(t.flags|=128,u=!0,l=l.updateQueue,t.updateQueue=l,hn(t,l),au(a,!0),a.tail===null&&a.tailMode==="hidden"&&!n.alternate&&!el)return Sl(t),null}else 2*Pl()-a.renderingStartTime>Sn&&e!==536870912&&(t.flags|=128,u=!0,au(a,!1),t.lanes=4194304);a.isBackwards?(n.sibling=t.child,t.child=n):(l=a.last,l!==null?l.sibling=n:t.child=n,a.last=n)}return a.tail!==null?(l=a.tail,a.rendering=l,a.tail=l.sibling,a.renderingStartTime=Pl(),l.sibling=null,e=El.current,N(El,u?e&1|2:e&1),el&&Yt(t,a.treeForkCount),l):(Sl(t),null);case 22:case 23:return nt(t),Qi(),a=t.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(e&536870912)!==0&&(t.flags&128)===0&&(Sl(t),t.subtreeFlags&6&&(t.flags|=8192)):Sl(t),e=t.updateQueue,e!==null&&hn(t,e.retryQueue),e=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==e&&(t.flags|=2048),l!==null&&E(He),null;case 24:return e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),Xt(xl),Sl(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function lm(l,t){switch(xi(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return Xt(xl),Al(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return Au(t),null;case 31:if(t.memoizedState!==null){if(nt(t),t.alternate===null)throw Error(r(340));Ce()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(nt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ce()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return E(El),null;case 4:return Al(),null;case 10:return Xt(t.type),null;case 22:case 23:return nt(t),Qi(),l!==null&&E(He),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return Xt(xl),null;case 25:return null;default:return null}}function Zo(l,t){switch(xi(t),t.tag){case 3:Xt(xl),Al();break;case 26:case 27:case 5:Au(t);break;case 4:Al();break;case 31:t.memoizedState!==null&&nt(t);break;case 13:nt(t);break;case 19:E(El);break;case 10:Xt(t.type);break;case 22:case 23:nt(t),Qi(),l!==null&&E(He);break;case 24:Xt(xl)}}function uu(l,t){try{var e=t.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var u=a.next;e=u;do{if((e.tag&l)===l){a=void 0;var n=e.create,i=e.inst;a=n(),i.destroy=a}e=e.next}while(e!==u)}}catch(c){ol(t,t.return,c)}}function oe(l,t,e){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var n=u.next;a=n;do{if((a.tag&l)===l){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,u=t;var s=e,v=c;try{v()}catch(b){ol(u,s,b)}}}a=a.next}while(a!==n)}}catch(b){ol(t,t.return,b)}}function Lo(l){var t=l.updateQueue;if(t!==null){var e=l.stateNode;try{Cs(t,e)}catch(a){ol(l,l.return,a)}}}function Vo(l,t,e){e.props=Xe(l.type,l.memoizedProps),e.state=l.memoizedState;try{e.componentWillUnmount()}catch(a){ol(l,t,a)}}function nu(l,t){try{var e=l.ref;if(e!==null){switch(l.tag){case 26:case 27:case 5:var a=l.stateNode;break;case 30:a=l.stateNode;break;default:a=l.stateNode}typeof e=="function"?l.refCleanup=e(a):e.current=a}}catch(u){ol(l,t,u)}}function Dt(l,t){var e=l.ref,a=l.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(u){ol(l,t,u)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(u){ol(l,t,u)}else e.current=null}function Ko(l){var t=l.type,e=l.memoizedProps,a=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break l;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(u){ol(l,l.return,u)}}function bc(l,t,e){try{var a=l.stateNode;zm(a,l.type,e,t),a[Jl]=t}catch(u){ol(l,l.return,u)}}function Jo(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&ge(l.type)||l.tag===4}function pc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||Jo(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&ge(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Tc(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(l,t):(t=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.appendChild(l),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=Ht));else if(a!==4&&(a===27&&ge(l.type)&&(e=l.stateNode,t=null),l=l.child,l!==null))for(Tc(l,t,e),l=l.sibling;l!==null;)Tc(l,t,e),l=l.sibling}function mn(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?e.insertBefore(l,t):e.appendChild(l);else if(a!==4&&(a===27&&ge(l.type)&&(e=l.stateNode),l=l.child,l!==null))for(mn(l,t,e),l=l.sibling;l!==null;)mn(l,t,e),l=l.sibling}function wo(l){var t=l.stateNode,e=l.memoizedProps;try{for(var a=l.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Yl(t,a,e),t[Rl]=l,t[Jl]=e}catch(n){ol(l,l.return,n)}}var Kt=!1,Nl=!1,zc=!1,ko=typeof WeakSet=="function"?WeakSet:Set,Ul=null;function tm(l,t){if(l=l.containerInfo,Lc=Hn,l=ns(l),yi(l)){if("selectionStart"in l)var e={start:l.selectionStart,end:l.selectionEnd};else l:{e=(e=l.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var u=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{e.nodeType,n.nodeType}catch{e=null;break l}var i=0,c=-1,s=-1,v=0,b=0,A=l,g=null;t:for(;;){for(var S;A!==e||u!==0&&A.nodeType!==3||(c=i+u),A!==n||a!==0&&A.nodeType!==3||(s=i+a),A.nodeType===3&&(i+=A.nodeValue.length),(S=A.firstChild)!==null;)g=A,A=S;for(;;){if(A===l)break t;if(g===e&&++v===u&&(c=i),g===n&&++b===a&&(s=i),(S=A.nextSibling)!==null)break;A=g,g=A.parentNode}A=S}e=c===-1||s===-1?null:{start:c,end:s}}else e=null}e=e||{start:0,end:0}}else e=null;for(Vc={focusedElem:l,selectionRange:e},Hn=!1,Ul=t;Ul!==null;)if(t=Ul,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Ul=l;else for(;Ul!==null;){switch(t=Ul,n=t.alternate,l=t.flags,t.tag){case 0:if((l&4)!==0&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(e=0;e<l.length;e++)u=l[e],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&n!==null){l=void 0,e=t,u=n.memoizedProps,n=n.memoizedState,a=e.stateNode;try{var C=Xe(e.type,u);l=a.getSnapshotBeforeUpdate(C,n),a.__reactInternalSnapshotBeforeUpdate=l}catch(X){ol(e,e.return,X)}}break;case 3:if((l&1024)!==0){if(l=t.stateNode.containerInfo,e=l.nodeType,e===9)wc(l);else if(e===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":wc(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(r(163))}if(l=t.sibling,l!==null){l.return=t.return,Ul=l;break}Ul=t.return}}function $o(l,t,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:wt(l,e),a&4&&uu(5,e);break;case 1:if(wt(l,e),a&4)if(l=e.stateNode,t===null)try{l.componentDidMount()}catch(i){ol(e,e.return,i)}else{var u=Xe(e.type,t.memoizedProps);t=t.memoizedState;try{l.componentDidUpdate(u,t,l.__reactInternalSnapshotBeforeUpdate)}catch(i){ol(e,e.return,i)}}a&64&&Lo(e),a&512&&nu(e,e.return);break;case 3:if(wt(l,e),a&64&&(l=e.updateQueue,l!==null)){if(t=null,e.child!==null)switch(e.child.tag){case 27:case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}try{Cs(l,t)}catch(i){ol(e,e.return,i)}}break;case 27:t===null&&a&4&&wo(e);case 26:case 5:wt(l,e),t===null&&a&4&&Ko(e),a&512&&nu(e,e.return);break;case 12:wt(l,e);break;case 31:wt(l,e),a&4&&Io(l,e);break;case 13:wt(l,e),a&4&&Po(l,e),a&64&&(l=e.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(e=om.bind(null,e),Mm(l,e))));break;case 22:if(a=e.memoizedState!==null||Kt,!a){t=t!==null&&t.memoizedState!==null||Nl,u=Kt;var n=Nl;Kt=a,(Nl=t)&&!n?kt(l,e,(e.subtreeFlags&8772)!==0):wt(l,e),Kt=u,Nl=n}break;case 30:break;default:wt(l,e)}}function Wo(l){var t=l.alternate;t!==null&&(l.alternate=null,Wo(t)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(t=l.stateNode,t!==null&&In(t)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var bl=null,kl=!1;function Jt(l,t,e){for(e=e.child;e!==null;)Fo(l,t,e),e=e.sibling}function Fo(l,t,e){if(lt&&typeof lt.onCommitFiberUnmount=="function")try{lt.onCommitFiberUnmount(Na,e)}catch{}switch(e.tag){case 26:Nl||Dt(e,t),Jt(l,t,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:Nl||Dt(e,t);var a=bl,u=kl;ge(e.type)&&(bl=e.stateNode,kl=!1),Jt(l,t,e),mu(e.stateNode),bl=a,kl=u;break;case 5:Nl||Dt(e,t);case 6:if(a=bl,u=kl,bl=null,Jt(l,t,e),bl=a,kl=u,bl!==null)if(kl)try{(bl.nodeType===9?bl.body:bl.nodeName==="HTML"?bl.ownerDocument.body:bl).removeChild(e.stateNode)}catch(n){ol(e,t,n)}else try{bl.removeChild(e.stateNode)}catch(n){ol(e,t,n)}break;case 18:bl!==null&&(kl?(l=bl,Ld(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.stateNode),ja(l)):Ld(bl,e.stateNode));break;case 4:a=bl,u=kl,bl=e.stateNode.containerInfo,kl=!0,Jt(l,t,e),bl=a,kl=u;break;case 0:case 11:case 14:case 15:oe(2,e,t),Nl||oe(4,e,t),Jt(l,t,e);break;case 1:Nl||(Dt(e,t),a=e.stateNode,typeof a.componentWillUnmount=="function"&&Vo(e,t,a)),Jt(l,t,e);break;case 21:Jt(l,t,e);break;case 22:Nl=(a=Nl)||e.memoizedState!==null,Jt(l,t,e),Nl=a;break;default:Jt(l,t,e)}}function Io(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{ja(l)}catch(e){ol(t,t.return,e)}}}function Po(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{ja(l)}catch(e){ol(t,t.return,e)}}function em(l){switch(l.tag){case 31:case 13:case 19:var t=l.stateNode;return t===null&&(t=l.stateNode=new ko),t;case 22:return l=l.stateNode,t=l._retryCache,t===null&&(t=l._retryCache=new ko),t;default:throw Error(r(435,l.tag))}}function yn(l,t){var e=em(l);t.forEach(function(a){if(!e.has(a)){e.add(a);var u=dm.bind(null,l,a);a.then(u,u)}})}function $l(l,t){var e=t.deletions;if(e!==null)for(var a=0;a<e.length;a++){var u=e[a],n=l,i=t,c=i;l:for(;c!==null;){switch(c.tag){case 27:if(ge(c.type)){bl=c.stateNode,kl=!1;break l}break;case 5:bl=c.stateNode,kl=!1;break l;case 3:case 4:bl=c.stateNode.containerInfo,kl=!0;break l}c=c.return}if(bl===null)throw Error(r(160));Fo(n,i,u),bl=null,kl=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ld(t,l),t=t.sibling}var zt=null;function ld(l,t){var e=l.alternate,a=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:$l(t,l),Wl(l),a&4&&(oe(3,l,l.return),uu(3,l),oe(5,l,l.return));break;case 1:$l(t,l),Wl(l),a&512&&(Nl||e===null||Dt(e,e.return)),a&64&&Kt&&(l=l.updateQueue,l!==null&&(a=l.callbacks,a!==null&&(e=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var u=zt;if($l(t,l),Wl(l),a&512&&(Nl||e===null||Dt(e,e.return)),a&4){var n=e!==null?e.memoizedState:null;if(a=l.memoizedState,e===null)if(a===null)if(l.stateNode===null){l:{a=l.type,e=l.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":n=u.getElementsByTagName("title")[0],(!n||n[Ca]||n[Rl]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=u.createElement(a),u.head.insertBefore(n,u.querySelector("head > title"))),Yl(n,a,e),n[Rl]=l,Cl(n),a=n;break l;case"link":var i=lr("link","href",u).get(a+(e.href||""));if(i){for(var c=0;c<i.length;c++)if(n=i[c],n.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&n.getAttribute("rel")===(e.rel==null?null:e.rel)&&n.getAttribute("title")===(e.title==null?null:e.title)&&n.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(c,1);break t}}n=u.createElement(a),Yl(n,a,e),u.head.appendChild(n);break;case"meta":if(i=lr("meta","content",u).get(a+(e.content||""))){for(c=0;c<i.length;c++)if(n=i[c],n.getAttribute("content")===(e.content==null?null:""+e.content)&&n.getAttribute("name")===(e.name==null?null:e.name)&&n.getAttribute("property")===(e.property==null?null:e.property)&&n.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&n.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(c,1);break t}}n=u.createElement(a),Yl(n,a,e),u.head.appendChild(n);break;default:throw Error(r(468,a))}n[Rl]=l,Cl(n),a=n}l.stateNode=a}else tr(u,l.type,l.stateNode);else l.stateNode=Pd(u,a,l.memoizedProps);else n!==a?(n===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):n.count--,a===null?tr(u,l.type,l.stateNode):Pd(u,a,l.memoizedProps)):a===null&&l.stateNode!==null&&bc(l,l.memoizedProps,e.memoizedProps)}break;case 27:$l(t,l),Wl(l),a&512&&(Nl||e===null||Dt(e,e.return)),e!==null&&a&4&&bc(l,l.memoizedProps,e.memoizedProps);break;case 5:if($l(t,l),Wl(l),a&512&&(Nl||e===null||Dt(e,e.return)),l.flags&32){u=l.stateNode;try{We(u,"")}catch(C){ol(l,l.return,C)}}a&4&&l.stateNode!=null&&(u=l.memoizedProps,bc(l,u,e!==null?e.memoizedProps:u)),a&1024&&(zc=!0);break;case 6:if($l(t,l),Wl(l),a&4){if(l.stateNode===null)throw Error(r(162));a=l.memoizedProps,e=l.stateNode;try{e.nodeValue=a}catch(C){ol(l,l.return,C)}}break;case 3:if(Dn=null,u=zt,zt=Nn(t.containerInfo),$l(t,l),zt=u,Wl(l),a&4&&e!==null&&e.memoizedState.isDehydrated)try{ja(t.containerInfo)}catch(C){ol(l,l.return,C)}zc&&(zc=!1,td(l));break;case 4:a=zt,zt=Nn(l.stateNode.containerInfo),$l(t,l),Wl(l),zt=a;break;case 12:$l(t,l),Wl(l);break;case 31:$l(t,l),Wl(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,yn(l,a)));break;case 13:$l(t,l),Wl(l),l.child.flags&8192&&l.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(gn=Pl()),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,yn(l,a)));break;case 22:u=l.memoizedState!==null;var s=e!==null&&e.memoizedState!==null,v=Kt,b=Nl;if(Kt=v||u,Nl=b||s,$l(t,l),Nl=b,Kt=v,Wl(l),a&8192)l:for(t=l.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(e===null||s||Kt||Nl||Qe(l)),e=null,t=l;;){if(t.tag===5||t.tag===26){if(e===null){s=e=t;try{if(n=s.stateNode,u)i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=s.stateNode;var A=s.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null;c.style.display=g==null||typeof g=="boolean"?"":(""+g).trim()}}catch(C){ol(s,s.return,C)}}}else if(t.tag===6){if(e===null){s=t;try{s.stateNode.nodeValue=u?"":s.memoizedProps}catch(C){ol(s,s.return,C)}}}else if(t.tag===18){if(e===null){s=t;try{var S=s.stateNode;u?Vd(S,!0):Vd(s.stateNode,!1)}catch(C){ol(s,s.return,C)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===l)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break l;for(;t.sibling===null;){if(t.return===null||t.return===l)break l;e===t&&(e=null),t=t.return}e===t&&(e=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=l.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,yn(l,e))));break;case 19:$l(t,l),Wl(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,yn(l,a)));break;case 30:break;case 21:break;default:$l(t,l),Wl(l)}}function Wl(l){var t=l.flags;if(t&2){try{for(var e,a=l.return;a!==null;){if(Jo(a)){e=a;break}a=a.return}if(e==null)throw Error(r(160));switch(e.tag){case 27:var u=e.stateNode,n=pc(l);mn(l,n,u);break;case 5:var i=e.stateNode;e.flags&32&&(We(i,""),e.flags&=-33);var c=pc(l);mn(l,c,i);break;case 3:case 4:var s=e.stateNode.containerInfo,v=pc(l);Tc(l,v,s);break;default:throw Error(r(161))}}catch(b){ol(l,l.return,b)}l.flags&=-3}t&4096&&(l.flags&=-4097)}function td(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var t=l;td(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),l=l.sibling}}function wt(l,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$o(l,t.alternate,t),t=t.sibling}function Qe(l){for(l=l.child;l!==null;){var t=l;switch(t.tag){case 0:case 11:case 14:case 15:oe(4,t,t.return),Qe(t);break;case 1:Dt(t,t.return);var e=t.stateNode;typeof e.componentWillUnmount=="function"&&Vo(t,t.return,e),Qe(t);break;case 27:mu(t.stateNode);case 26:case 5:Dt(t,t.return),Qe(t);break;case 22:t.memoizedState===null&&Qe(t);break;case 30:Qe(t);break;default:Qe(t)}l=l.sibling}}function kt(l,t,e){for(e=e&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=l,n=t,i=n.flags;switch(n.tag){case 0:case 11:case 15:kt(u,n,e),uu(4,n);break;case 1:if(kt(u,n,e),a=n,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(v){ol(a,a.return,v)}if(a=n,u=a.updateQueue,u!==null){var c=a.stateNode;try{var s=u.shared.hiddenCallbacks;if(s!==null)for(u.shared.hiddenCallbacks=null,u=0;u<s.length;u++)Ds(s[u],c)}catch(v){ol(a,a.return,v)}}e&&i&64&&Lo(n),nu(n,n.return);break;case 27:wo(n);case 26:case 5:kt(u,n,e),e&&a===null&&i&4&&Ko(n),nu(n,n.return);break;case 12:kt(u,n,e);break;case 31:kt(u,n,e),e&&i&4&&Io(u,n);break;case 13:kt(u,n,e),e&&i&4&&Po(u,n);break;case 22:n.memoizedState===null&&kt(u,n,e),nu(n,n.return);break;case 30:break;default:kt(u,n,e)}t=t.sibling}}function Ac(l,t){var e=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==e&&(l!=null&&l.refCount++,e!=null&&Ka(e))}function Ec(l,t){l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&Ka(l))}function At(l,t,e,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ed(l,t,e,a),t=t.sibling}function ed(l,t,e,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:At(l,t,e,a),u&2048&&uu(9,t);break;case 1:At(l,t,e,a);break;case 3:At(l,t,e,a),u&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&Ka(l)));break;case 12:if(u&2048){At(l,t,e,a),l=t.stateNode;try{var n=t.memoizedProps,i=n.id,c=n.onPostCommit;typeof c=="function"&&c(i,t.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(s){ol(t,t.return,s)}}else At(l,t,e,a);break;case 31:At(l,t,e,a);break;case 13:At(l,t,e,a);break;case 23:break;case 22:n=t.stateNode,i=t.alternate,t.memoizedState!==null?n._visibility&2?At(l,t,e,a):iu(l,t):n._visibility&2?At(l,t,e,a):(n._visibility|=2,va(l,t,e,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Ac(i,t);break;case 24:At(l,t,e,a),u&2048&&Ec(t.alternate,t);break;default:At(l,t,e,a)}}function va(l,t,e,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var n=l,i=t,c=e,s=a,v=i.flags;switch(i.tag){case 0:case 11:case 15:va(n,i,c,s,u),uu(8,i);break;case 23:break;case 22:var b=i.stateNode;i.memoizedState!==null?b._visibility&2?va(n,i,c,s,u):iu(n,i):(b._visibility|=2,va(n,i,c,s,u)),u&&v&2048&&Ac(i.alternate,i);break;case 24:va(n,i,c,s,u),u&&v&2048&&Ec(i.alternate,i);break;default:va(n,i,c,s,u)}t=t.sibling}}function iu(l,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var e=l,a=t,u=a.flags;switch(a.tag){case 22:iu(e,a),u&2048&&Ac(a.alternate,a);break;case 24:iu(e,a),u&2048&&Ec(a.alternate,a);break;default:iu(e,a)}t=t.sibling}}var cu=8192;function ga(l,t,e){if(l.subtreeFlags&cu)for(l=l.child;l!==null;)ad(l,t,e),l=l.sibling}function ad(l,t,e){switch(l.tag){case 26:ga(l,t,e),l.flags&cu&&l.memoizedState!==null&&Zm(e,zt,l.memoizedState,l.memoizedProps);break;case 5:ga(l,t,e);break;case 3:case 4:var a=zt;zt=Nn(l.stateNode.containerInfo),ga(l,t,e),zt=a;break;case 22:l.memoizedState===null&&(a=l.alternate,a!==null&&a.memoizedState!==null?(a=cu,cu=16777216,ga(l,t,e),cu=a):ga(l,t,e));break;default:ga(l,t,e)}}function ud(l){var t=l.alternate;if(t!==null&&(l=t.child,l!==null)){t.child=null;do t=l.sibling,l.sibling=null,l=t;while(l!==null)}}function fu(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Ul=a,id(a,l)}ud(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)nd(l),l=l.sibling}function nd(l){switch(l.tag){case 0:case 11:case 15:fu(l),l.flags&2048&&oe(9,l,l.return);break;case 3:fu(l);break;case 12:fu(l);break;case 22:var t=l.stateNode;l.memoizedState!==null&&t._visibility&2&&(l.return===null||l.return.tag!==13)?(t._visibility&=-3,vn(l)):fu(l);break;default:fu(l)}}function vn(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Ul=a,id(a,l)}ud(l)}for(l=l.child;l!==null;){switch(t=l,t.tag){case 0:case 11:case 15:oe(8,t,t.return),vn(t);break;case 22:e=t.stateNode,e._visibility&2&&(e._visibility&=-3,vn(t));break;default:vn(t)}l=l.sibling}}function id(l,t){for(;Ul!==null;){var e=Ul;switch(e.tag){case 0:case 11:case 15:oe(8,e,t);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ka(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,Ul=a;else l:for(e=l;Ul!==null;){a=Ul;var u=a.sibling,n=a.return;if(Wo(a),a===e){Ul=null;break l}if(u!==null){u.return=n,Ul=u;break l}Ul=n}}}var am={getCacheForType:function(l){var t=Bl(xl),e=t.data.get(l);return e===void 0&&(e=l(),t.data.set(l,e)),e},cacheSignal:function(){return Bl(xl).controller.signal}},um=typeof WeakMap=="function"?WeakMap:Map,cl=0,vl=null,$=null,I=0,sl=0,it=null,de=!1,Sa=!1,_c=!1,$t=0,zl=0,re=0,Ze=0,xc=0,ct=0,ba=0,su=null,Fl=null,jc=!1,gn=0,cd=0,Sn=1/0,bn=null,he=null,Dl=0,me=null,pa=null,Wt=0,Oc=0,Nc=null,fd=null,ou=0,Mc=null;function ft(){return(cl&2)!==0&&I!==0?I&-I:T.T!==null?Bc():Af()}function sd(){if(ct===0)if((I&536870912)===0||el){var l=xu;xu<<=1,(xu&3932160)===0&&(xu=262144),ct=l}else ct=536870912;return l=ut.current,l!==null&&(l.flags|=32),ct}function Il(l,t,e){(l===vl&&(sl===2||sl===9)||l.cancelPendingCommit!==null)&&(Ta(l,0),ye(l,I,ct,!1)),Da(l,e),((cl&2)===0||l!==vl)&&(l===vl&&((cl&2)===0&&(Ze|=e),zl===4&&ye(l,I,ct,!1)),Ct(l))}function od(l,t,e){if((cl&6)!==0)throw Error(r(327));var a=!e&&(t&127)===0&&(t&l.expiredLanes)===0||Ma(l,t),u=a?cm(l,t):Cc(l,t,!0),n=a;do{if(u===0){Sa&&!a&&ye(l,t,0,!1);break}else{if(e=l.current.alternate,n&&!nm(e)){u=Cc(l,t,!1),n=!1;continue}if(u===2){if(n=t,l.errorRecoveryDisabledLanes&n)var i=0;else i=l.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;l:{var c=l;u=su;var s=c.current.memoizedState.isDehydrated;if(s&&(Ta(c,i).flags|=256),i=Cc(c,i,!1),i!==2){if(_c&&!s){c.errorRecoveryDisabledLanes|=n,Ze|=n,u=4;break l}n=Fl,Fl=u,n!==null&&(Fl===null?Fl=n:Fl.push.apply(Fl,n))}u=i}if(n=!1,u!==2)continue}}if(u===1){Ta(l,0),ye(l,t,0,!0);break}l:{switch(a=l,n=u,n){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:ye(a,t,ct,!de);break l;case 2:Fl=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=gn+300-Pl(),10<u)){if(ye(a,t,ct,!de),Ou(a,0,!0)!==0)break l;Wt=t,a.timeoutHandle=Qd(dd.bind(null,a,e,Fl,bn,jc,t,ct,Ze,ba,de,n,"Throttled",-0,0),u);break l}dd(a,e,Fl,bn,jc,t,ct,Ze,ba,de,n,null,-0,0)}}break}while(!0);Ct(l)}function dd(l,t,e,a,u,n,i,c,s,v,b,A,g,S){if(l.timeoutHandle=-1,A=t.subtreeFlags,A&8192||(A&16785408)===16785408){A={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ht},ad(t,n,A);var C=(n&62914560)===n?gn-Pl():(n&4194048)===n?cd-Pl():0;if(C=Lm(A,C),C!==null){Wt=n,l.cancelPendingCommit=C(bd.bind(null,l,t,n,e,a,u,i,c,s,b,A,null,g,S)),ye(l,n,i,!v);return}}bd(l,t,n,e,a,u,i,c,s)}function nm(l){for(var t=l;;){var e=t.tag;if((e===0||e===11||e===15)&&t.flags&16384&&(e=t.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var u=e[a],n=u.getSnapshot;u=u.value;try{if(!et(n(),u))return!1}catch{return!1}}if(e=t.child,t.subtreeFlags&16384&&e!==null)e.return=t,t=e;else{if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ye(l,t,e,a){t&=~xc,t&=~Ze,l.suspendedLanes|=t,l.pingedLanes&=~t,a&&(l.warmLanes|=t),a=l.expirationTimes;for(var u=t;0<u;){var n=31-tt(u),i=1<<n;a[n]=-1,u&=~i}e!==0&&pf(l,e,t)}function pn(){return(cl&6)===0?(du(0),!1):!0}function Dc(){if($!==null){if(sl===0)var l=$.return;else l=$,Gt=Ue=null,wi(l),da=null,wa=0,l=$;for(;l!==null;)Zo(l.alternate,l),l=l.return;$=null}}function Ta(l,t){var e=l.timeoutHandle;e!==-1&&(l.timeoutHandle=-1,_m(e)),e=l.cancelPendingCommit,e!==null&&(l.cancelPendingCommit=null,e()),Wt=0,Dc(),vl=l,$=e=qt(l.current,null),I=t,sl=0,it=null,de=!1,Sa=Ma(l,t),_c=!1,ba=ct=xc=Ze=re=zl=0,Fl=su=null,jc=!1,(t&8)!==0&&(t|=t&32);var a=l.entangledLanes;if(a!==0)for(l=l.entanglements,a&=t;0<a;){var u=31-tt(a),n=1<<u;t|=l[u],a&=~n}return $t=t,Xu(),e}function rd(l,t){K=null,T.H=tu,t===oa||t===ku?(t=js(),sl=3):t===Hi?(t=js(),sl=4):sl=t===sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,it=t,$===null&&(zl=1,sn(l,ht(t,l.current)))}function hd(){var l=ut.current;return l===null?!0:(I&4194048)===I?gt===null:(I&62914560)===I||(I&536870912)!==0?l===gt:!1}function md(){var l=T.H;return T.H=tu,l===null?tu:l}function yd(){var l=T.A;return T.A=am,l}function Tn(){zl=4,de||(I&4194048)!==I&&ut.current!==null||(Sa=!0),(re&134217727)===0&&(Ze&134217727)===0||vl===null||ye(vl,I,ct,!1)}function Cc(l,t,e){var a=cl;cl|=2;var u=md(),n=yd();(vl!==l||I!==t)&&(bn=null,Ta(l,t)),t=!1;var i=zl;l:do try{if(sl!==0&&$!==null){var c=$,s=it;switch(sl){case 8:Dc(),i=6;break l;case 3:case 2:case 9:case 6:ut.current===null&&(t=!0);var v=sl;if(sl=0,it=null,za(l,c,s,v),e&&Sa){i=0;break l}break;default:v=sl,sl=0,it=null,za(l,c,s,v)}}im(),i=zl;break}catch(b){rd(l,b)}while(!0);return t&&l.shellSuspendCounter++,Gt=Ue=null,cl=a,T.H=u,T.A=n,$===null&&(vl=null,I=0,Xu()),i}function im(){for(;$!==null;)vd($)}function cm(l,t){var e=cl;cl|=2;var a=md(),u=yd();vl!==l||I!==t?(bn=null,Sn=Pl()+500,Ta(l,t)):Sa=Ma(l,t);l:do try{if(sl!==0&&$!==null){t=$;var n=it;t:switch(sl){case 1:sl=0,it=null,za(l,t,n,1);break;case 2:case 9:if(_s(n)){sl=0,it=null,gd(t);break}t=function(){sl!==2&&sl!==9||vl!==l||(sl=7),Ct(l)},n.then(t,t);break l;case 3:sl=7;break l;case 4:sl=5;break l;case 7:_s(n)?(sl=0,it=null,gd(t)):(sl=0,it=null,za(l,t,n,7));break;case 5:var i=null;switch($.tag){case 26:i=$.memoizedState;case 5:case 27:var c=$;if(i?er(i):c.stateNode.complete){sl=0,it=null;var s=c.sibling;if(s!==null)$=s;else{var v=c.return;v!==null?($=v,zn(v)):$=null}break t}}sl=0,it=null,za(l,t,n,5);break;case 6:sl=0,it=null,za(l,t,n,6);break;case 8:Dc(),zl=6;break l;default:throw Error(r(462))}}fm();break}catch(b){rd(l,b)}while(!0);return Gt=Ue=null,T.H=a,T.A=u,cl=e,$!==null?0:(vl=null,I=0,Xu(),zl)}function fm(){for(;$!==null&&!Dr();)vd($)}function vd(l){var t=Xo(l.alternate,l,$t);l.memoizedProps=l.pendingProps,t===null?zn(l):$=t}function gd(l){var t=l,e=t.alternate;switch(t.tag){case 15:case 0:t=Ro(e,t,t.pendingProps,t.type,void 0,I);break;case 11:t=Ro(e,t,t.pendingProps,t.type.render,t.ref,I);break;case 5:wi(t);default:Zo(e,t),t=$=ms(t,$t),t=Xo(e,t,$t)}l.memoizedProps=l.pendingProps,t===null?zn(l):$=t}function za(l,t,e,a){Gt=Ue=null,wi(t),da=null,wa=0;var u=t.return;try{if(Wh(l,u,t,e,I)){zl=1,sn(l,ht(e,l.current)),$=null;return}}catch(n){if(u!==null)throw $=u,n;zl=1,sn(l,ht(e,l.current)),$=null;return}t.flags&32768?(el||a===1?l=!0:Sa||(I&536870912)!==0?l=!1:(de=l=!0,(a===2||a===9||a===3||a===6)&&(a=ut.current,a!==null&&a.tag===13&&(a.flags|=16384))),Sd(t,l)):zn(t)}function zn(l){var t=l;do{if((t.flags&32768)!==0){Sd(t,de);return}l=t.return;var e=Ph(t.alternate,t,$t);if(e!==null){$=e;return}if(t=t.sibling,t!==null){$=t;return}$=t=l}while(t!==null);zl===0&&(zl=5)}function Sd(l,t){do{var e=lm(l.alternate,l);if(e!==null){e.flags&=32767,$=e;return}if(e=l.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!t&&(l=l.sibling,l!==null)){$=l;return}$=l=e}while(l!==null);zl=6,$=null}function bd(l,t,e,a,u,n,i,c,s){l.cancelPendingCommit=null;do An();while(Dl!==0);if((cl&6)!==0)throw Error(r(327));if(t!==null){if(t===l.current)throw Error(r(177));if(n=t.lanes|t.childLanes,n|=pi,Qr(l,e,n,i,c,s),l===vl&&($=vl=null,I=0),pa=t,me=l,Wt=e,Oc=n,Nc=u,fd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,rm(Eu,function(){return Ed(),null})):(l.callbackNode=null,l.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,u=j.p,j.p=2,i=cl,cl|=4;try{tm(l,t,e)}finally{cl=i,j.p=u,T.T=a}}Dl=1,pd(),Td(),zd()}}function pd(){if(Dl===1){Dl=0;var l=me,t=pa,e=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||e){e=T.T,T.T=null;var a=j.p;j.p=2;var u=cl;cl|=4;try{ld(t,l);var n=Vc,i=ns(l.containerInfo),c=n.focusedElem,s=n.selectionRange;if(i!==c&&c&&c.ownerDocument&&us(c.ownerDocument.documentElement,c)){if(s!==null&&yi(c)){var v=s.start,b=s.end;if(b===void 0&&(b=v),"selectionStart"in c)c.selectionStart=v,c.selectionEnd=Math.min(b,c.value.length);else{var A=c.ownerDocument||document,g=A&&A.defaultView||window;if(g.getSelection){var S=g.getSelection(),C=c.textContent.length,X=Math.min(s.start,C),ml=s.end===void 0?X:Math.min(s.end,C);!S.extend&&X>ml&&(i=ml,ml=X,X=i);var h=as(c,X),o=as(c,ml);if(h&&o&&(S.rangeCount!==1||S.anchorNode!==h.node||S.anchorOffset!==h.offset||S.focusNode!==o.node||S.focusOffset!==o.offset)){var y=A.createRange();y.setStart(h.node,h.offset),S.removeAllRanges(),X>ml?(S.addRange(y),S.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),S.addRange(y))}}}}for(A=[],S=c;S=S.parentNode;)S.nodeType===1&&A.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<A.length;c++){var z=A[c];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}Hn=!!Lc,Vc=Lc=null}finally{cl=u,j.p=a,T.T=e}}l.current=t,Dl=2}}function Td(){if(Dl===2){Dl=0;var l=me,t=pa,e=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||e){e=T.T,T.T=null;var a=j.p;j.p=2;var u=cl;cl|=4;try{$o(l,t.alternate,t)}finally{cl=u,j.p=a,T.T=e}}Dl=3}}function zd(){if(Dl===4||Dl===3){Dl=0,Cr();var l=me,t=pa,e=Wt,a=fd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Dl=5:(Dl=0,pa=me=null,Ad(l,l.pendingLanes));var u=l.pendingLanes;if(u===0&&(he=null),Wn(e),t=t.stateNode,lt&&typeof lt.onCommitFiberRoot=="function")try{lt.onCommitFiberRoot(Na,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,u=j.p,j.p=2,T.T=null;try{for(var n=l.onRecoverableError,i=0;i<a.length;i++){var c=a[i];n(c.value,{componentStack:c.stack})}}finally{T.T=t,j.p=u}}(Wt&3)!==0&&An(),Ct(l),u=l.pendingLanes,(e&261930)!==0&&(u&42)!==0?l===Mc?ou++:(ou=0,Mc=l):ou=0,du(0)}}function Ad(l,t){(l.pooledCacheLanes&=t)===0&&(t=l.pooledCache,t!=null&&(l.pooledCache=null,Ka(t)))}function An(){return pd(),Td(),zd(),Ed()}function Ed(){if(Dl!==5)return!1;var l=me,t=Oc;Oc=0;var e=Wn(Wt),a=T.T,u=j.p;try{j.p=32>e?32:e,T.T=null,e=Nc,Nc=null;var n=me,i=Wt;if(Dl=0,pa=me=null,Wt=0,(cl&6)!==0)throw Error(r(331));var c=cl;if(cl|=4,nd(n.current),ed(n,n.current,i,e),cl=c,du(0,!1),lt&&typeof lt.onPostCommitFiberRoot=="function")try{lt.onPostCommitFiberRoot(Na,n)}catch{}return!0}finally{j.p=u,T.T=a,Ad(l,t)}}function _d(l,t,e){t=ht(e,t),t=fc(l.stateNode,t,2),l=ce(l,t,2),l!==null&&(Da(l,2),Ct(l))}function ol(l,t,e){if(l.tag===3)_d(l,l,e);else for(;t!==null;){if(t.tag===3){_d(t,l,e);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(he===null||!he.has(a))){l=ht(e,l),e=xo(2),a=ce(t,e,2),a!==null&&(jo(e,a,t,l),Da(a,2),Ct(a));break}}t=t.return}}function Uc(l,t,e){var a=l.pingCache;if(a===null){a=l.pingCache=new um;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(e)||(_c=!0,u.add(e),l=sm.bind(null,l,t,e),t.then(l,l))}function sm(l,t,e){var a=l.pingCache;a!==null&&a.delete(t),l.pingedLanes|=l.suspendedLanes&e,l.warmLanes&=~e,vl===l&&(I&e)===e&&(zl===4||zl===3&&(I&62914560)===I&&300>Pl()-gn?(cl&2)===0&&Ta(l,0):xc|=e,ba===I&&(ba=0)),Ct(l)}function xd(l,t){t===0&&(t=bf()),l=Me(l,t),l!==null&&(Da(l,t),Ct(l))}function om(l){var t=l.memoizedState,e=0;t!==null&&(e=t.retryLane),xd(l,e)}function dm(l,t){var e=0;switch(l.tag){case 31:case 13:var a=l.stateNode,u=l.memoizedState;u!==null&&(e=u.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),xd(l,e)}function rm(l,t){return Jn(l,t)}var En=null,Aa=null,Rc=!1,_n=!1,Hc=!1,ve=0;function Ct(l){l!==Aa&&l.next===null&&(Aa===null?En=Aa=l:Aa=Aa.next=l),_n=!0,Rc||(Rc=!0,mm())}function du(l,t){if(!Hc&&_n){Hc=!0;do for(var e=!1,a=En;a!==null;){if(l!==0){var u=a.pendingLanes;if(u===0)var n=0;else{var i=a.suspendedLanes,c=a.pingedLanes;n=(1<<31-tt(42|l)+1)-1,n&=u&~(i&~c),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(e=!0,Md(a,n))}else n=I,n=Ou(a,a===vl?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||Ma(a,n)||(e=!0,Md(a,n));a=a.next}while(e);Hc=!1}}function hm(){jd()}function jd(){_n=Rc=!1;var l=0;ve!==0&&Em()&&(l=ve);for(var t=Pl(),e=null,a=En;a!==null;){var u=a.next,n=Od(a,t);n===0?(a.next=null,e===null?En=u:e.next=u,u===null&&(Aa=e)):(e=a,(l!==0||(n&3)!==0)&&(_n=!0)),a=u}Dl!==0&&Dl!==5||du(l),ve!==0&&(ve=0)}function Od(l,t){for(var e=l.suspendedLanes,a=l.pingedLanes,u=l.expirationTimes,n=l.pendingLanes&-62914561;0<n;){var i=31-tt(n),c=1<<i,s=u[i];s===-1?((c&e)===0||(c&a)!==0)&&(u[i]=Xr(c,t)):s<=t&&(l.expiredLanes|=c),n&=~c}if(t=vl,e=I,e=Ou(l,l===t?e:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a=l.callbackNode,e===0||l===t&&(sl===2||sl===9)||l.cancelPendingCommit!==null)return a!==null&&a!==null&&wn(a),l.callbackNode=null,l.callbackPriority=0;if((e&3)===0||Ma(l,e)){if(t=e&-e,t===l.callbackPriority)return t;switch(a!==null&&wn(a),Wn(e)){case 2:case 8:e=gf;break;case 32:e=Eu;break;case 268435456:e=Sf;break;default:e=Eu}return a=Nd.bind(null,l),e=Jn(e,a),l.callbackPriority=t,l.callbackNode=e,t}return a!==null&&a!==null&&wn(a),l.callbackPriority=2,l.callbackNode=null,2}function Nd(l,t){if(Dl!==0&&Dl!==5)return l.callbackNode=null,l.callbackPriority=0,null;var e=l.callbackNode;if(An()&&l.callbackNode!==e)return null;var a=I;return a=Ou(l,l===vl?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a===0?null:(od(l,a,t),Od(l,Pl()),l.callbackNode!=null&&l.callbackNode===e?Nd.bind(null,l):null)}function Md(l,t){if(An())return null;od(l,t,!0)}function mm(){xm(function(){(cl&6)!==0?Jn(vf,hm):jd()})}function Bc(){if(ve===0){var l=fa;l===0&&(l=_u,_u<<=1,(_u&261888)===0&&(_u=256)),ve=l}return ve}function Dd(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Cu(""+l)}function Cd(l,t){var e=t.ownerDocument.createElement("input");return e.name=t.name,e.value=t.value,l.id&&e.setAttribute("form",l.id),t.parentNode.insertBefore(e,t),l=new FormData(l),e.parentNode.removeChild(e),l}function ym(l,t,e,a,u){if(t==="submit"&&e&&e.stateNode===u){var n=Dd((u[Jl]||null).action),i=a.submitter;i&&(t=(t=i[Jl]||null)?Dd(t.formAction):i.getAttribute("formAction"),t!==null&&(n=t,i=null));var c=new Bu("action","action",null,a,u);l.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ve!==0){var s=i?Cd(u,i):new FormData(u);ec(e,{pending:!0,data:s,method:u.method,action:n},null,s)}}else typeof n=="function"&&(c.preventDefault(),s=i?Cd(u,i):new FormData(u),ec(e,{pending:!0,data:s,method:u.method,action:n},n,s))},currentTarget:u}]})}}for(var qc=0;qc<bi.length;qc++){var Yc=bi[qc],vm=Yc.toLowerCase(),gm=Yc[0].toUpperCase()+Yc.slice(1);Tt(vm,"on"+gm)}Tt(fs,"onAnimationEnd"),Tt(ss,"onAnimationIteration"),Tt(os,"onAnimationStart"),Tt("dblclick","onDoubleClick"),Tt("focusin","onFocus"),Tt("focusout","onBlur"),Tt(Uh,"onTransitionRun"),Tt(Rh,"onTransitionStart"),Tt(Hh,"onTransitionCancel"),Tt(ds,"onTransitionEnd"),ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"]),xe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xe("onBeforeInput",["compositionend","keypress","textInput","paste"]),xe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ru="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(" "),Sm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ru));function Ud(l,t){t=(t&4)!==0;for(var e=0;e<l.length;e++){var a=l[e],u=a.event;a=a.listeners;l:{var n=void 0;if(t)for(var i=a.length-1;0<=i;i--){var c=a[i],s=c.instance,v=c.currentTarget;if(c=c.listener,s!==n&&u.isPropagationStopped())break l;n=c,u.currentTarget=v;try{n(u)}catch(b){Gu(b)}u.currentTarget=null,n=s}else for(i=0;i<a.length;i++){if(c=a[i],s=c.instance,v=c.currentTarget,c=c.listener,s!==n&&u.isPropagationStopped())break l;n=c,u.currentTarget=v;try{n(u)}catch(b){Gu(b)}u.currentTarget=null,n=s}}}}function W(l,t){var e=t[Fn];e===void 0&&(e=t[Fn]=new Set);var a=l+"__bubble";e.has(a)||(Rd(t,l,2,!1),e.add(a))}function Gc(l,t,e){var a=0;t&&(a|=4),Rd(e,l,a,t)}var xn="_reactListening"+Math.random().toString(36).slice(2);function Xc(l){if(!l[xn]){l[xn]=!0,xf.forEach(function(e){e!=="selectionchange"&&(Sm.has(e)||Gc(e,!1,l),Gc(e,!0,l))});var t=l.nodeType===9?l:l.ownerDocument;t===null||t[xn]||(t[xn]=!0,Gc("selectionchange",!1,t))}}function Rd(l,t,e,a){switch(sr(t)){case 2:var u=Jm;break;case 8:u=wm;break;default:u=tf}e=u.bind(null,t,e,l),u=void 0,!ii||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?l.addEventListener(t,e,{capture:!0,passive:u}):l.addEventListener(t,e,!0):u!==void 0?l.addEventListener(t,e,{passive:u}):l.addEventListener(t,e,!1)}function Qc(l,t,e,a,u){var n=a;if((t&1)===0&&(t&2)===0&&a!==null)l:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===u)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===u)return;i=i.return}for(;c!==null;){if(i=Ke(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=n=i;continue l}c=c.parentNode}}a=a.return}Yf(function(){var v=n,b=ui(e),A=[];l:{var g=rs.get(l);if(g!==void 0){var S=Bu,C=l;switch(l){case"keypress":if(Ru(e)===0)break l;case"keydown":case"keyup":S=dh;break;case"focusin":C="focus",S=oi;break;case"focusout":C="blur",S=oi;break;case"beforeblur":case"afterblur":S=oi;break;case"click":if(e.button===2)break l;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=Qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=Pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=mh;break;case fs:case ss:case os:S=eh;break;case ds:S=vh;break;case"scroll":case"scrollend":S=Fr;break;case"wheel":S=Sh;break;case"copy":case"cut":case"paste":S=uh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=Lf;break;case"toggle":case"beforetoggle":S=ph}var X=(t&4)!==0,ml=!X&&(l==="scroll"||l==="scrollend"),h=X?g!==null?g+"Capture":null:g;X=[];for(var o=v,y;o!==null;){var z=o;if(y=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||y===null||h===null||(z=Ra(o,h),z!=null&&X.push(hu(o,z,y))),ml)break;o=o.return}0<X.length&&(g=new S(g,C,null,e,b),A.push({event:g,listeners:X}))}}if((t&7)===0){l:{if(g=l==="mouseover"||l==="pointerover",S=l==="mouseout"||l==="pointerout",g&&e!==ai&&(C=e.relatedTarget||e.fromElement)&&(Ke(C)||C[Ve]))break l;if((S||g)&&(g=b.window===b?b:(g=b.ownerDocument)?g.defaultView||g.parentWindow:window,S?(C=e.relatedTarget||e.toElement,S=v,C=C?Ke(C):null,C!==null&&(ml=G(C),X=C.tag,C!==ml||X!==5&&X!==27&&X!==6)&&(C=null)):(S=null,C=v),S!==C)){if(X=Qf,z="onMouseLeave",h="onMouseEnter",o="mouse",(l==="pointerout"||l==="pointerover")&&(X=Lf,z="onPointerLeave",h="onPointerEnter",o="pointer"),ml=S==null?g:Ua(S),y=C==null?g:Ua(C),g=new X(z,o+"leave",S,e,b),g.target=ml,g.relatedTarget=y,z=null,Ke(b)===v&&(X=new X(h,o+"enter",C,e,b),X.target=y,X.relatedTarget=ml,z=X),ml=z,S&&C)t:{for(X=bm,h=S,o=C,y=0,z=h;z;z=X(z))y++;z=0;for(var Y=o;Y;Y=X(Y))z++;for(;0<y-z;)h=X(h),y--;for(;0<z-y;)o=X(o),z--;for(;y--;){if(h===o||o!==null&&h===o.alternate){X=h;break t}h=X(h),o=X(o)}X=null}else X=null;S!==null&&Hd(A,g,S,X,!1),C!==null&&ml!==null&&Hd(A,ml,C,X,!0)}}l:{if(g=v?Ua(v):window,S=g.nodeName&&g.nodeName.toLowerCase(),S==="select"||S==="input"&&g.type==="file")var nl=Ff;else if($f(g))if(If)nl=Mh;else{nl=Oh;var q=jh}else S=g.nodeName,!S||S.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?v&&ei(v.elementType)&&(nl=Ff):nl=Nh;if(nl&&(nl=nl(l,v))){Wf(A,nl,e,b);break l}q&&q(l,g,v),l==="focusout"&&v&&g.type==="number"&&v.memoizedProps.value!=null&&ti(g,"number",g.value)}switch(q=v?Ua(v):window,l){case"focusin":($f(q)||q.contentEditable==="true")&&(la=q,vi=v,Za=null);break;case"focusout":Za=vi=la=null;break;case"mousedown":gi=!0;break;case"contextmenu":case"mouseup":case"dragend":gi=!1,is(A,e,b);break;case"selectionchange":if(Ch)break;case"keydown":case"keyup":is(A,e,b)}var J;if(ri)l:{switch(l){case"compositionstart":var P="onCompositionStart";break l;case"compositionend":P="onCompositionEnd";break l;case"compositionupdate":P="onCompositionUpdate";break l}P=void 0}else Pe?wf(l,e)&&(P="onCompositionEnd"):l==="keydown"&&e.keyCode===229&&(P="onCompositionStart");P&&(Vf&&e.locale!=="ko"&&(Pe||P!=="onCompositionStart"?P==="onCompositionEnd"&&Pe&&(J=Gf()):(le=b,ci="value"in le?le.value:le.textContent,Pe=!0)),q=jn(v,P),0<q.length&&(P=new Zf(P,l,null,e,b),A.push({event:P,listeners:q}),J?P.data=J:(J=kf(e),J!==null&&(P.data=J)))),(J=zh?Ah(l,e):Eh(l,e))&&(P=jn(v,"onBeforeInput"),0<P.length&&(q=new Zf("onBeforeInput","beforeinput",null,e,b),A.push({event:q,listeners:P}),q.data=J)),ym(A,l,v,e,b)}Ud(A,t)})}function hu(l,t,e){return{instance:l,listener:t,currentTarget:e}}function jn(l,t){for(var e=t+"Capture",a=[];l!==null;){var u=l,n=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||n===null||(u=Ra(l,e),u!=null&&a.unshift(hu(l,u,n)),u=Ra(l,t),u!=null&&a.push(hu(l,u,n))),l.tag===3)return a;l=l.return}return[]}function bm(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Hd(l,t,e,a,u){for(var n=t._reactName,i=[];e!==null&&e!==a;){var c=e,s=c.alternate,v=c.stateNode;if(c=c.tag,s!==null&&s===a)break;c!==5&&c!==26&&c!==27||v===null||(s=v,u?(v=Ra(e,n),v!=null&&i.unshift(hu(e,v,s))):u||(v=Ra(e,n),v!=null&&i.push(hu(e,v,s)))),e=e.return}i.length!==0&&l.push({event:t,listeners:i})}var pm=/\r\n?/g,Tm=/\u0000|\uFFFD/g;function Bd(l){return(typeof l=="string"?l:""+l).replace(pm,`
`).replace(Tm,"")}function qd(l,t){return t=Bd(t),Bd(l)===t}function hl(l,t,e,a,u,n){switch(e){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||We(l,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&We(l,""+a);break;case"className":Mu(l,"class",a);break;case"tabIndex":Mu(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Mu(l,e,a);break;case"style":Bf(l,a,n);break;case"data":if(t!=="object"){Mu(l,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||e!=="href")){l.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Cu(""+a),l.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){l.setAttribute(e,"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"&&(e==="formAction"?(t!=="input"&&hl(l,t,"name",u.name,u,null),hl(l,t,"formEncType",u.formEncType,u,null),hl(l,t,"formMethod",u.formMethod,u,null),hl(l,t,"formTarget",u.formTarget,u,null)):(hl(l,t,"encType",u.encType,u,null),hl(l,t,"method",u.method,u,null),hl(l,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Cu(""+a),l.setAttribute(e,a);break;case"onClick":a!=null&&(l.onclick=Ht);break;case"onScroll":a!=null&&W("scroll",l);break;case"onScrollEnd":a!=null&&W("scrollend",l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(e=a.__html,e!=null){if(u.children!=null)throw Error(r(60));l.innerHTML=e}}break;case"multiple":l.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":l.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"){l.removeAttribute("xlink:href");break}e=Cu(""+a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);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"?l.setAttribute(e,""+a):l.removeAttribute(e);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"?l.setAttribute(e,""):l.removeAttribute(e);break;case"capture":case"download":a===!0?l.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,a):l.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?l.setAttribute(e,a):l.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?l.removeAttribute(e):l.setAttribute(e,a);break;case"popover":W("beforetoggle",l),W("toggle",l),Nu(l,"popover",a);break;case"xlinkActuate":Rt(l,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Rt(l,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Rt(l,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Rt(l,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Rt(l,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Rt(l,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Rt(l,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Rt(l,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Rt(l,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Nu(l,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=$r.get(e)||e,Nu(l,e,a))}}function Zc(l,t,e,a,u,n){switch(e){case"style":Bf(l,a,n);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(e=a.__html,e!=null){if(u.children!=null)throw Error(r(60));l.innerHTML=e}}break;case"children":typeof a=="string"?We(l,a):(typeof a=="number"||typeof a=="bigint")&&We(l,""+a);break;case"onScroll":a!=null&&W("scroll",l);break;case"onScrollEnd":a!=null&&W("scrollend",l);break;case"onClick":a!=null&&(l.onclick=Ht);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jf.hasOwnProperty(e))l:{if(e[0]==="o"&&e[1]==="n"&&(u=e.endsWith("Capture"),t=e.slice(2,u?e.length-7:void 0),n=l[Jl]||null,n=n!=null?n[e]:null,typeof n=="function"&&l.removeEventListener(t,n,u),typeof a=="function")){typeof n!="function"&&n!==null&&(e in l?l[e]=null:l.hasAttribute(e)&&l.removeAttribute(e)),l.addEventListener(t,a,u);break l}e in l?l[e]=a:a===!0?l.setAttribute(e,""):Nu(l,e,a)}}}function Yl(l,t,e){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":W("error",l),W("load",l);var a=!1,u=!1,n;for(n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i!=null)switch(n){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:hl(l,t,n,i,e,null)}}u&&hl(l,t,"srcSet",e.srcSet,e,null),a&&hl(l,t,"src",e.src,e,null);return;case"input":W("invalid",l);var c=n=i=u=null,s=null,v=null;for(a in e)if(e.hasOwnProperty(a)){var b=e[a];if(b!=null)switch(a){case"name":u=b;break;case"type":i=b;break;case"checked":s=b;break;case"defaultChecked":v=b;break;case"value":n=b;break;case"defaultValue":c=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(137,t));break;default:hl(l,t,a,b,e,null)}}Cf(l,n,c,s,v,i,u,!1);return;case"select":W("invalid",l),a=i=n=null;for(u in e)if(e.hasOwnProperty(u)&&(c=e[u],c!=null))switch(u){case"value":n=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:hl(l,t,u,c,e,null)}t=n,e=i,l.multiple=!!a,t!=null?$e(l,!!a,t,!1):e!=null&&$e(l,!!a,e,!0);return;case"textarea":W("invalid",l),n=u=a=null;for(i in e)if(e.hasOwnProperty(i)&&(c=e[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":u=c;break;case"children":n=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:hl(l,t,i,c,e,null)}Rf(l,a,u,n);return;case"option":for(s in e)if(e.hasOwnProperty(s)&&(a=e[s],a!=null))switch(s){case"selected":l.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:hl(l,t,s,a,e,null)}return;case"dialog":W("beforetoggle",l),W("toggle",l),W("cancel",l),W("close",l);break;case"iframe":case"object":W("load",l);break;case"video":case"audio":for(a=0;a<ru.length;a++)W(ru[a],l);break;case"image":W("error",l),W("load",l);break;case"details":W("toggle",l);break;case"embed":case"source":case"link":W("error",l),W("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(v in e)if(e.hasOwnProperty(v)&&(a=e[v],a!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:hl(l,t,v,a,e,null)}return;default:if(ei(t)){for(b in e)e.hasOwnProperty(b)&&(a=e[b],a!==void 0&&Zc(l,t,b,a,e,void 0));return}}for(c in e)e.hasOwnProperty(c)&&(a=e[c],a!=null&&hl(l,t,c,a,e,null))}function zm(l,t,e,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,c=null,s=null,v=null,b=null;for(S in e){var A=e[S];if(e.hasOwnProperty(S)&&A!=null)switch(S){case"checked":break;case"value":break;case"defaultValue":s=A;default:a.hasOwnProperty(S)||hl(l,t,S,null,a,A)}}for(var g in a){var S=a[g];if(A=e[g],a.hasOwnProperty(g)&&(S!=null||A!=null))switch(g){case"type":n=S;break;case"name":u=S;break;case"checked":v=S;break;case"defaultChecked":b=S;break;case"value":i=S;break;case"defaultValue":c=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(137,t));break;default:S!==A&&hl(l,t,g,S,a,A)}}li(l,i,c,s,v,b,n,u);return;case"select":S=i=c=g=null;for(n in e)if(s=e[n],e.hasOwnProperty(n)&&s!=null)switch(n){case"value":break;case"multiple":S=s;default:a.hasOwnProperty(n)||hl(l,t,n,null,a,s)}for(u in a)if(n=a[u],s=e[u],a.hasOwnProperty(u)&&(n!=null||s!=null))switch(u){case"value":g=n;break;case"defaultValue":c=n;break;case"multiple":i=n;default:n!==s&&hl(l,t,u,n,a,s)}t=c,e=i,a=S,g!=null?$e(l,!!e,g,!1):!!a!=!!e&&(t!=null?$e(l,!!e,t,!0):$e(l,!!e,e?[]:"",!1));return;case"textarea":S=g=null;for(c in e)if(u=e[c],e.hasOwnProperty(c)&&u!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:hl(l,t,c,null,a,u)}for(i in a)if(u=a[i],n=e[i],a.hasOwnProperty(i)&&(u!=null||n!=null))switch(i){case"value":g=u;break;case"defaultValue":S=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==n&&hl(l,t,i,u,a,n)}Uf(l,g,S);return;case"option":for(var C in e)if(g=e[C],e.hasOwnProperty(C)&&g!=null&&!a.hasOwnProperty(C))switch(C){case"selected":l.selected=!1;break;default:hl(l,t,C,null,a,g)}for(s in a)if(g=a[s],S=e[s],a.hasOwnProperty(s)&&g!==S&&(g!=null||S!=null))switch(s){case"selected":l.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:hl(l,t,s,g,a,S)}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 X in e)g=e[X],e.hasOwnProperty(X)&&g!=null&&!a.hasOwnProperty(X)&&hl(l,t,X,null,a,g);for(v in a)if(g=a[v],S=e[v],a.hasOwnProperty(v)&&g!==S&&(g!=null||S!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(137,t));break;default:hl(l,t,v,g,a,S)}return;default:if(ei(t)){for(var ml in e)g=e[ml],e.hasOwnProperty(ml)&&g!==void 0&&!a.hasOwnProperty(ml)&&Zc(l,t,ml,void 0,a,g);for(b in a)g=a[b],S=e[b],!a.hasOwnProperty(b)||g===S||g===void 0&&S===void 0||Zc(l,t,b,g,a,S);return}}for(var h in e)g=e[h],e.hasOwnProperty(h)&&g!=null&&!a.hasOwnProperty(h)&&hl(l,t,h,null,a,g);for(A in a)g=a[A],S=e[A],!a.hasOwnProperty(A)||g===S||g==null&&S==null||hl(l,t,A,g,a,S)}function Yd(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Am(){if(typeof performance.getEntriesByType=="function"){for(var l=0,t=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var u=e[a],n=u.transferSize,i=u.initiatorType,c=u.duration;if(n&&c&&Yd(i)){for(i=0,c=u.responseEnd,a+=1;a<e.length;a++){var s=e[a],v=s.startTime;if(v>c)break;var b=s.transferSize,A=s.initiatorType;b&&Yd(A)&&(s=s.responseEnd,i+=b*(s<c?1:(c-v)/(s-v)))}if(--a,t+=8*(n+i)/(u.duration/1e3),l++,10<l)break}}if(0<l)return t/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var Lc=null,Vc=null;function On(l){return l.nodeType===9?l:l.ownerDocument}function Gd(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xd(l,t){if(l===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&t==="foreignObject"?0:l}function Kc(l,t){return l==="textarea"||l==="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 Jc=null;function Em(){var l=window.event;return l&&l.type==="popstate"?l===Jc?!1:(Jc=l,!0):(Jc=null,!1)}var Qd=typeof setTimeout=="function"?setTimeout:void 0,_m=typeof clearTimeout=="function"?clearTimeout:void 0,Zd=typeof Promise=="function"?Promise:void 0,xm=typeof queueMicrotask=="function"?queueMicrotask:typeof Zd<"u"?function(l){return Zd.resolve(null).then(l).catch(jm)}:Qd;function jm(l){setTimeout(function(){throw l})}function ge(l){return l==="head"}function Ld(l,t){var e=t,a=0;do{var u=e.nextSibling;if(l.removeChild(e),u&&u.nodeType===8)if(e=u.data,e==="/$"||e==="/&"){if(a===0){l.removeChild(u),ja(t);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")mu(l.ownerDocument.documentElement);else if(e==="head"){e=l.ownerDocument.head,mu(e);for(var n=e.firstChild;n;){var i=n.nextSibling,c=n.nodeName;n[Ca]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&n.rel.toLowerCase()==="stylesheet"||e.removeChild(n),n=i}}else e==="body"&&mu(l.ownerDocument.body);e=u}while(e);ja(t)}function Vd(l,t){var e=l;l=0;do{var a=e.nextSibling;if(e.nodeType===1?t?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(t?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(l===0)break;l--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||l++;e=a}while(e)}function wc(l){var t=l.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var e=t;switch(t=t.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":wc(e),In(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}l.removeChild(e)}}function Om(l,t,e,a){for(;l.nodeType===1;){var u=e;if(l.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(a){if(!l[Ca])switch(t){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(n=l.getAttribute("rel"),n==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(n!==u.rel||l.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||l.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||l.getAttribute("title")!==(u.title==null?null:u.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(n=l.getAttribute("src"),(n!==(u.src==null?null:u.src)||l.getAttribute("type")!==(u.type==null?null:u.type)||l.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&n&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(t==="input"&&l.type==="hidden"){var n=u.name==null?null:""+u.name;if(u.type==="hidden"&&l.getAttribute("name")===n)return l}else return l;if(l=St(l.nextSibling),l===null)break}return null}function Nm(l,t,e){if(t==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!e||(l=St(l.nextSibling),l===null))return null;return l}function Kd(l,t){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!t||(l=St(l.nextSibling),l===null))return null;return l}function kc(l){return l.data==="$?"||l.data==="$~"}function $c(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function Mm(l,t){var e=l.ownerDocument;if(l.data==="$~")l._reactRetry=t;else if(l.data!=="$?"||e.readyState!=="loading")t();else{var a=function(){t(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),l._reactRetry=a}}function St(l){for(;l!=null;l=l.nextSibling){var t=l.nodeType;if(t===1||t===3)break;if(t===8){if(t=l.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return l}var Wc=null;function Jd(l){l=l.nextSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="/$"||e==="/&"){if(t===0)return St(l.nextSibling);t--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||t++}l=l.nextSibling}return null}function wd(l){l=l.previousSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(t===0)return l;t--}else e!=="/$"&&e!=="/&"||t++}l=l.previousSibling}return null}function kd(l,t,e){switch(t=On(e),l){case"html":if(l=t.documentElement,!l)throw Error(r(452));return l;case"head":if(l=t.head,!l)throw Error(r(453));return l;case"body":if(l=t.body,!l)throw Error(r(454));return l;default:throw Error(r(451))}}function mu(l){for(var t=l.attributes;t.length;)l.removeAttributeNode(t[0]);In(l)}var bt=new Map,$d=new Set;function Nn(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Ft=j.d;j.d={f:Dm,r:Cm,D:Um,C:Rm,L:Hm,m:Bm,X:Ym,S:qm,M:Gm};function Dm(){var l=Ft.f(),t=pn();return l||t}function Cm(l){var t=Je(l);t!==null&&t.tag===5&&t.type==="form"?ro(t):Ft.r(l)}var Ea=typeof document>"u"?null:document;function Wd(l,t,e){var a=Ea;if(a&&typeof t=="string"&&t){var u=dt(t);u='link[rel="'+l+'"][href="'+u+'"]',typeof e=="string"&&(u+='[crossorigin="'+e+'"]'),$d.has(u)||($d.add(u),l={rel:l,crossOrigin:e,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),Yl(t,"link",l),Cl(t),a.head.appendChild(t)))}}function Um(l){Ft.D(l),Wd("dns-prefetch",l,null)}function Rm(l,t){Ft.C(l,t),Wd("preconnect",l,t)}function Hm(l,t,e){Ft.L(l,t,e);var a=Ea;if(a&&l&&t){var u='link[rel="preload"][as="'+dt(t)+'"]';t==="image"&&e&&e.imageSrcSet?(u+='[imagesrcset="'+dt(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(u+='[imagesizes="'+dt(e.imageSizes)+'"]')):u+='[href="'+dt(l)+'"]';var n=u;switch(t){case"style":n=_a(l);break;case"script":n=xa(l)}bt.has(n)||(l=x({rel:"preload",href:t==="image"&&e&&e.imageSrcSet?void 0:l,as:t},e),bt.set(n,l),a.querySelector(u)!==null||t==="style"&&a.querySelector(yu(n))||t==="script"&&a.querySelector(vu(n))||(t=a.createElement("link"),Yl(t,"link",l),Cl(t),a.head.appendChild(t)))}}function Bm(l,t){Ft.m(l,t);var e=Ea;if(e&&l){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+dt(a)+'"][href="'+dt(l)+'"]',n=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=xa(l)}if(!bt.has(n)&&(l=x({rel:"modulepreload",href:l},t),bt.set(n,l),e.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(vu(n)))return}a=e.createElement("link"),Yl(a,"link",l),Cl(a),e.head.appendChild(a)}}}function qm(l,t,e){Ft.S(l,t,e);var a=Ea;if(a&&l){var u=we(a).hoistableStyles,n=_a(l);t=t||"default";var i=u.get(n);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(yu(n)))c.loading=5;else{l=x({rel:"stylesheet",href:l,"data-precedence":t},e),(e=bt.get(n))&&Fc(l,e);var s=i=a.createElement("link");Cl(s),Yl(s,"link",l),s._p=new Promise(function(v,b){s.onload=v,s.onerror=b}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Mn(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:c},u.set(n,i)}}}function Ym(l,t){Ft.X(l,t);var e=Ea;if(e&&l){var a=we(e).hoistableScripts,u=xa(l),n=a.get(u);n||(n=e.querySelector(vu(u)),n||(l=x({src:l,async:!0},t),(t=bt.get(u))&&Ic(l,t),n=e.createElement("script"),Cl(n),Yl(n,"link",l),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function Gm(l,t){Ft.M(l,t);var e=Ea;if(e&&l){var a=we(e).hoistableScripts,u=xa(l),n=a.get(u);n||(n=e.querySelector(vu(u)),n||(l=x({src:l,async:!0,type:"module"},t),(t=bt.get(u))&&Ic(l,t),n=e.createElement("script"),Cl(n),Yl(n,"link",l),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function Fd(l,t,e,a){var u=(u=k.current)?Nn(u):null;if(!u)throw Error(r(446));switch(l){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(t=_a(e.href),e=we(u).hoistableStyles,a=e.get(t),a||(a={type:"style",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){l=_a(e.href);var n=we(u).hoistableStyles,i=n.get(l);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(l,i),(n=u.querySelector(yu(l)))&&!n._p&&(i.instance=n,i.state.loading=5),bt.has(l)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},bt.set(l,e),n||Xm(u,l,e,i.state))),t&&a===null)throw Error(r(528,""));return i}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=e.async,e=e.src,typeof e=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xa(e),e=we(u).hoistableScripts,a=e.get(t),a||(a={type:"script",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,l))}}function _a(l){return'href="'+dt(l)+'"'}function yu(l){return'link[rel="stylesheet"]['+l+"]"}function Id(l){return x({},l,{"data-precedence":l.precedence,precedence:null})}function Xm(l,t,e,a){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=l.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Yl(t,"link",e),Cl(t),l.head.appendChild(t))}function xa(l){return'[src="'+dt(l)+'"]'}function vu(l){return"script[async]"+l}function Pd(l,t,e){if(t.count++,t.instance===null)switch(t.type){case"style":var a=l.querySelector('style[data-href~="'+dt(e.href)+'"]');if(a)return t.instance=a,Cl(a),a;var u=x({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Cl(a),Yl(a,"style",u),Mn(a,e.precedence,l),t.instance=a;case"stylesheet":u=_a(e.href);var n=l.querySelector(yu(u));if(n)return t.state.loading|=4,t.instance=n,Cl(n),n;a=Id(e),(u=bt.get(u))&&Fc(a,u),n=(l.ownerDocument||l).createElement("link"),Cl(n);var i=n;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Yl(n,"link",a),t.state.loading|=4,Mn(n,e.precedence,l),t.instance=n;case"script":return n=xa(e.src),(u=l.querySelector(vu(n)))?(t.instance=u,Cl(u),u):(a=e,(u=bt.get(n))&&(a=x({},e),Ic(a,u)),l=l.ownerDocument||l,u=l.createElement("script"),Cl(u),Yl(u,"link",a),l.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Mn(a,e.precedence,l));return t.instance}function Mn(l,t,e){for(var a=e.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 c=a[i];if(c.dataset.precedence===t)n=c;else if(n!==u)break}n?n.parentNode.insertBefore(l,n.nextSibling):(t=e.nodeType===9?e.head:e,t.insertBefore(l,t.firstChild))}function Fc(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.title==null&&(l.title=t.title)}function Ic(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.integrity==null&&(l.integrity=t.integrity)}var Dn=null;function lr(l,t,e){if(Dn===null){var a=new Map,u=Dn=new Map;u.set(e,a)}else u=Dn,a=u.get(e),a||(a=new Map,u.set(e,a));if(a.has(l))return a;for(a.set(l,null),e=e.getElementsByTagName(l),u=0;u<e.length;u++){var n=e[u];if(!(n[Ca]||n[Rl]||l==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(t)||"";i=l+i;var c=a.get(i);c?c.push(n):a.set(i,[n])}}return a}function tr(l,t,e){l=l.ownerDocument||l,l.head.insertBefore(e,t==="title"?l.querySelector("head > title"):null)}function Qm(l,t,e){if(e===1||t.itemProp!=null)return!1;switch(l){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 l=t.disabled,typeof t.precedence=="string"&&l==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 er(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function Zm(l,t,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var u=_a(a.href),n=t.querySelector(yu(u));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Cn.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=n,Cl(n);return}n=t.ownerDocument||t,a=Id(a),(u=bt.get(u))&&Fc(a,u),n=n.createElement("link"),Cl(n);var i=n;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Yl(n,"link",a),e.instance=n}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=Cn.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}var Pc=0;function Lm(l,t){return l.stylesheets&&l.count===0&&Rn(l,l.stylesheets),0<l.count||0<l.imgCount?function(e){var a=setTimeout(function(){if(l.stylesheets&&Rn(l,l.stylesheets),l.unsuspend){var n=l.unsuspend;l.unsuspend=null,n()}},6e4+t);0<l.imgBytes&&Pc===0&&(Pc=62500*Am());var u=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Rn(l,l.stylesheets),l.unsuspend)){var n=l.unsuspend;l.unsuspend=null,n()}},(l.imgBytes>Pc?50:800)+t);return l.unsuspend=e,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Cn(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rn(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Un=null;function Rn(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Un=new Map,t.forEach(Vm,l),Un=null,Cn.call(l))}function Vm(l,t){if(!(t.state.loading&4)){var e=Un.get(l);if(e)var a=e.get(null);else{e=new Map,Un.set(l,e);for(var u=l.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")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}u=t.instance,i=u.getAttribute("data-precedence"),n=e.get(i)||a,n===a&&e.set(null,u),e.set(i,u),this.count++,a=Cn.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),n?n.parentNode.insertBefore(u,n.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(u,l.firstChild)),t.state.loading|=4}}var gu={$$typeof:Gl,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Km(l,t,e,a,u,n,i,c,s){this.tag=1,this.containerInfo=l,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=kn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kn(0),this.hiddenUpdates=kn(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function ar(l,t,e,a,u,n,i,c,s,v,b,A){return l=new Km(l,t,e,i,s,v,b,A,c),t=1,n===!0&&(t|=24),n=at(3,null,null,t),l.current=n,n.stateNode=l,t=Ci(),t.refCount++,l.pooledCache=t,t.refCount++,n.memoizedState={element:a,isDehydrated:e,cache:t},Bi(n),l}function ur(l){return l?(l=aa,l):aa}function nr(l,t,e,a,u,n){u=ur(u),a.context===null?a.context=u:a.pendingContext=u,a=ie(t),a.payload={element:e},n=n===void 0?null:n,n!==null&&(a.callback=n),e=ce(l,a,t),e!==null&&(Il(e,l,t),$a(e,l,t))}function ir(l,t){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var e=l.retryLane;l.retryLane=e!==0&&e<t?e:t}}function lf(l,t){ir(l,t),(l=l.alternate)&&ir(l,t)}function cr(l){if(l.tag===13||l.tag===31){var t=Me(l,67108864);t!==null&&Il(t,l,67108864),lf(l,67108864)}}function fr(l){if(l.tag===13||l.tag===31){var t=ft();t=$n(t);var e=Me(l,t);e!==null&&Il(e,l,t),lf(l,t)}}var Hn=!0;function Jm(l,t,e,a){var u=T.T;T.T=null;var n=j.p;try{j.p=2,tf(l,t,e,a)}finally{j.p=n,T.T=u}}function wm(l,t,e,a){var u=T.T;T.T=null;var n=j.p;try{j.p=8,tf(l,t,e,a)}finally{j.p=n,T.T=u}}function tf(l,t,e,a){if(Hn){var u=ef(a);if(u===null)Qc(l,t,a,Bn,e),or(l,a);else if($m(u,l,t,e,a))a.stopPropagation();else if(or(l,a),t&4&&-1<km.indexOf(l)){for(;u!==null;){var n=Je(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=_e(n.pendingLanes);if(i!==0){var c=n;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-tt(i);c.entanglements[1]|=s,i&=~s}Ct(n),(cl&6)===0&&(Sn=Pl()+500,du(0))}}break;case 31:case 13:c=Me(n,2),c!==null&&Il(c,n,2),pn(),lf(n,2)}if(n=ef(a),n===null&&Qc(l,t,a,Bn,e),n===u)break;u=n}u!==null&&a.stopPropagation()}else Qc(l,t,a,null,e)}}function ef(l){return l=ui(l),af(l)}var Bn=null;function af(l){if(Bn=null,l=Ke(l),l!==null){var t=G(l);if(t===null)l=null;else{var e=t.tag;if(e===13){if(l=U(t),l!==null)return l;l=null}else if(e===31){if(l=w(t),l!==null)return l;l=null}else if(e===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;l=null}else t!==l&&(l=null)}}return Bn=l,null}function sr(l){switch(l){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(Ur()){case vf:return 2;case gf:return 8;case Eu:case Rr:return 32;case Sf:return 268435456;default:return 32}default:return 32}}var uf=!1,Se=null,be=null,pe=null,Su=new Map,bu=new Map,Te=[],km="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 or(l,t){switch(l){case"focusin":case"focusout":Se=null;break;case"dragenter":case"dragleave":be=null;break;case"mouseover":case"mouseout":pe=null;break;case"pointerover":case"pointerout":Su.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bu.delete(t.pointerId)}}function pu(l,t,e,a,u,n){return l===null||l.nativeEvent!==n?(l={blockedOn:t,domEventName:e,eventSystemFlags:a,nativeEvent:n,targetContainers:[u]},t!==null&&(t=Je(t),t!==null&&cr(t)),l):(l.eventSystemFlags|=a,t=l.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),l)}function $m(l,t,e,a,u){switch(t){case"focusin":return Se=pu(Se,l,t,e,a,u),!0;case"dragenter":return be=pu(be,l,t,e,a,u),!0;case"mouseover":return pe=pu(pe,l,t,e,a,u),!0;case"pointerover":var n=u.pointerId;return Su.set(n,pu(Su.get(n)||null,l,t,e,a,u)),!0;case"gotpointercapture":return n=u.pointerId,bu.set(n,pu(bu.get(n)||null,l,t,e,a,u)),!0}return!1}function dr(l){var t=Ke(l.target);if(t!==null){var e=G(t);if(e!==null){if(t=e.tag,t===13){if(t=U(e),t!==null){l.blockedOn=t,Ef(l.priority,function(){fr(e)});return}}else if(t===31){if(t=w(e),t!==null){l.blockedOn=t,Ef(l.priority,function(){fr(e)});return}}else if(t===3&&e.stateNode.current.memoizedState.isDehydrated){l.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}l.blockedOn=null}function qn(l){if(l.blockedOn!==null)return!1;for(var t=l.targetContainers;0<t.length;){var e=ef(l.nativeEvent);if(e===null){e=l.nativeEvent;var a=new e.constructor(e.type,e);ai=a,e.target.dispatchEvent(a),ai=null}else return t=Je(e),t!==null&&cr(t),l.blockedOn=e,!1;t.shift()}return!0}function rr(l,t,e){qn(l)&&e.delete(t)}function Wm(){uf=!1,Se!==null&&qn(Se)&&(Se=null),be!==null&&qn(be)&&(be=null),pe!==null&&qn(pe)&&(pe=null),Su.forEach(rr),bu.forEach(rr)}function Yn(l,t){l.blockedOn===t&&(l.blockedOn=null,uf||(uf=!0,m.unstable_scheduleCallback(m.unstable_NormalPriority,Wm)))}var Gn=null;function hr(l){Gn!==l&&(Gn=l,m.unstable_scheduleCallback(m.unstable_NormalPriority,function(){Gn===l&&(Gn=null);for(var t=0;t<l.length;t+=3){var e=l[t],a=l[t+1],u=l[t+2];if(typeof a!="function"){if(af(a||e)===null)continue;break}var n=Je(e);n!==null&&(l.splice(t,3),t-=3,ec(n,{pending:!0,data:u,method:e.method,action:a},a,u))}}))}function ja(l){function t(s){return Yn(s,l)}Se!==null&&Yn(Se,l),be!==null&&Yn(be,l),pe!==null&&Yn(pe,l),Su.forEach(t),bu.forEach(t);for(var e=0;e<Te.length;e++){var a=Te[e];a.blockedOn===l&&(a.blockedOn=null)}for(;0<Te.length&&(e=Te[0],e.blockedOn===null);)dr(e),e.blockedOn===null&&Te.shift();if(e=(l.ownerDocument||l).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var u=e[a],n=e[a+1],i=u[Jl]||null;if(typeof n=="function")i||hr(e);else if(i){var c=null;if(n&&n.hasAttribute("formAction")){if(u=n,i=n[Jl]||null)c=i.formAction;else if(af(u)!==null)continue}else c=i.action;typeof c=="function"?e[a+1]=c:(e.splice(a,3),a-=3),hr(e)}}}function mr(){function l(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(i){return u=i})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),a||setTimeout(e,20)}function e(){if(!a&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function nf(l){this._internalRoot=l}Xn.prototype.render=nf.prototype.render=function(l){var t=this._internalRoot;if(t===null)throw Error(r(409));var e=t.current,a=ft();nr(e,a,l,t,null,null)},Xn.prototype.unmount=nf.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var t=l.containerInfo;nr(l.current,2,null,l,null,null),pn(),t[Ve]=null}};function Xn(l){this._internalRoot=l}Xn.prototype.unstable_scheduleHydration=function(l){if(l){var t=Af();l={blockedOn:null,target:l,priority:t};for(var e=0;e<Te.length&&t!==0&&t<Te[e].priority;e++);Te.splice(e,0,l),e===0&&dr(l)}};var yr=H.version;if(yr!=="19.2.5")throw Error(r(527,yr,"19.2.5"));j.findDOMNode=function(l){var t=l._reactInternals;if(t===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=p(t),l=l!==null?R(l):null,l=l===null?null:l.stateNode,l};var Fm={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qn=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qn.isDisabled&&Qn.supportsFiber)try{Na=Qn.inject(Fm),lt=Qn}catch{}}return zu.createRoot=function(l,t){if(!O(l))throw Error(r(299));var e=!1,a="",u=zo,n=Ao,i=Eo;return t!=null&&(t.unstable_strictMode===!0&&(e=!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=ar(l,1,!1,null,null,e,a,null,u,n,i,mr),l[Ve]=t.current,Xc(l),new nf(t)},zu.hydrateRoot=function(l,t,e){if(!O(l))throw Error(r(299));var a=!1,u="",n=zo,i=Ao,c=Eo,s=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(u=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError),e.formState!==void 0&&(s=e.formState)),t=ar(l,1,!0,t,e??null,a,u,s,n,i,c,mr),t.context=ur(null),e=t.current,a=ft(),a=$n(a),u=ie(a),u.callback=null,ce(e,u,a),e=a,t.current.lanes=e,Da(t,e),Ct(t),l[Ve]=t.current,Xc(l),new Xn(t)},zu.version="19.2.5",zu}var _r;function cy(){if(_r)return sf.exports;_r=1;function m(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(m)}catch(H){console.error(H)}}return m(),sf.exports=iy(),sf.exports}var fy=cy();const sy=Or(fy),oy="";async function Et(m,H){const D=await fetch(`${oy}${m}`,{...H,credentials:"same-origin",headers:{"Content-Type":"application/json",...H==null?void 0:H.headers}});if(D.status===401)throw window.location.hash="#login",new Error("Unauthorized");if(!D.ok){const r=await D.json().catch(()=>({}));throw new Error(r.error||`HTTP ${D.status}`)}return D.json()}const _t={login:m=>Et("/admin/login",{method:"POST",body:JSON.stringify({token:m})}),signOutEverywhere:()=>Et("/admin/api/sign-out-everywhere",{method:"POST"}),stats:()=>Et("/admin/api/stats"),health:()=>Et("/admin/api/health-indicators"),agents:()=>Et("/admin/api/agents"),requests:(m=1,H="")=>Et(`/admin/api/requests?page=${m}${H}`),apiKeys:()=>Et("/admin/api/api-keys"),createApiKey:m=>Et("/admin/api/api-keys",{method:"POST",body:JSON.stringify({name:m})}),revokeApiKey:m=>Et("/admin/api/api-keys/revoke",{method:"POST",body:JSON.stringify({name:m})}),updateClientTtl:(m,H)=>Et("/admin/api/update-client-ttl",{method:"POST",body:JSON.stringify({clientId:m,tokenTtl:H})}),revokeClient:m=>Et("/admin/api/revoke-client",{method:"POST",body:JSON.stringify({clientId:m})})};function dy({onLogin:m}){const[H,D]=ul.useState(""),[r,O]=ul.useState(""),[G,U]=ul.useState(!1),w=async M=>{M.preventDefault(),O(""),U(!0);try{await _t.login(H),D(""),m()}catch{O("Invalid token.")}finally{U(!1)}};return f.jsx("div",{className:"login-page",children:f.jsxs("div",{className:"login-box",children:[f.jsx("div",{className:"login-logo",children:"GBrain"}),f.jsxs("div",{style:{background:"rgba(136, 170, 255, 0.08)",border:"1px solid rgba(136, 170, 255, 0.2)",borderRadius:8,padding:"14px 16px",marginBottom:20,fontSize:13,lineHeight:1.5,color:"var(--text-secondary)"},children:[f.jsx("div",{style:{fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"🔒 This is a protected dashboard"}),"Ask your AI agent for the admin login link:",f.jsx("div",{style:{background:"rgba(0,0,0,0.3)",borderRadius:6,padding:"8px 12px",marginTop:8,fontFamily:"var(--font-mono)",fontSize:12,color:"#88aaff",wordBreak:"break-all"},children:'"Give me the GBrain admin login link"'}),f.jsx("div",{style:{marginTop:8,fontSize:12,color:"var(--text-muted)"},children:"Each link is single-use. Your agent generates a fresh one each time."})]}),f.jsxs("details",{style:{marginBottom:16},children:[f.jsx("summary",{style:{cursor:"pointer",fontSize:13,color:"var(--text-muted)"},children:"Or paste bootstrap token manually"}),f.jsxs("form",{onSubmit:w,style:{marginTop:12},children:[f.jsx("div",{style:{marginBottom:12},children:f.jsx("input",{type:"password",placeholder:"Admin Token",value:H,onChange:M=>D(M.target.value)})}),f.jsx("button",{className:"btn btn-primary",style:{width:"100%"},disabled:G,children:G?"Authenticating...":"Submit"}),r&&f.jsx("div",{className:"login-error",children:r})]})]})]})})}function ry(){const[m,H]=ul.useState({connected_agents:0,requests_today:0,active_tokens:0}),[D,r]=ul.useState({expiring_soon:0,error_rate:"0%"}),[O,G]=ul.useState([]),[U,w]=ul.useState("connecting"),M=ul.useRef(null);ul.useEffect(()=>{_t.stats().then(H).catch(()=>{}),_t.health().then(r).catch(()=>{});const R=new EventSource("/admin/events");M.current=R,R.onopen=()=>w("connected"),R.onmessage=_=>{try{const F=JSON.parse(_.data);G(Z=>[F,...Z].slice(0,50))}catch{}},R.onerror=()=>{w("disconnected"),setTimeout(()=>{w("connecting"),R.close()},3e3)};const x=setInterval(()=>{_t.stats().then(H).catch(()=>{}),_t.health().then(r).catch(()=>{})},3e4);return()=>{R.close(),clearInterval(x)}},[]);const p=R=>{const x=Date.now()-new Date(R).getTime();return x<6e4?`${Math.floor(x/1e3)}s ago`:x<36e5?`${Math.floor(x/6e4)} min ago`:`${Math.floor(x/36e5)}h ago`};return f.jsxs(f.Fragment,{children:[f.jsx("h1",{className:"page-title",children:"Dashboard"}),f.jsxs("div",{style:{display:"flex",gap:24},children:[f.jsxs("div",{style:{flex:1},children:[f.jsxs("div",{className:"metrics",children:[f.jsxs("div",{className:"metric",children:[f.jsx("div",{className:"metric-value",children:m.connected_agents}),f.jsx("div",{className:"metric-label",children:"Connected Agents"})]}),f.jsxs("div",{className:"metric",children:[f.jsx("div",{className:"metric-value",children:m.requests_today}),f.jsx("div",{className:"metric-label",children:"Requests Today"})]}),f.jsxs("div",{className:"metric",children:[f.jsx("div",{className:"metric-value",children:m.active_tokens}),f.jsx("div",{className:"metric-label",children:"Active Tokens"})]})]}),f.jsxs("h2",{className:"section-title",children:["Live Activity",f.jsx("span",{style:{marginLeft:8,fontSize:10,color:U==="connected"?"var(--success)":U==="connecting"?"var(--warning)":"var(--error)"},children:U==="connected"?"● connected":U==="connecting"?"● connecting...":"● disconnected"})]}),f.jsx("div",{className:"feed",children:O.length===0?f.jsx("div",{className:"feed-empty",children:U==="connected"?"No requests yet. Agents will appear when they connect.":"Connecting..."}):f.jsxs("table",{children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"Agent"}),f.jsx("th",{children:"Operation"}),f.jsx("th",{children:"Scopes"}),f.jsx("th",{children:"Latency"}),f.jsx("th",{children:"Status"}),f.jsx("th",{children:"Time"})]})}),f.jsx("tbody",{children:O.map((R,x)=>f.jsxs("tr",{children:[f.jsx("td",{className:"mono",children:R.agent}),f.jsx("td",{className:"mono",children:R.operation}),f.jsx("td",{children:R.scopes.split(",").map(_=>f.jsx("span",{className:`badge badge-${_.trim()}`,style:{marginRight:4},children:_.trim()},_))}),f.jsxs("td",{className:"mono",children:[R.latency_ms," ms"]}),f.jsx("td",{children:f.jsx("span",{className:`badge badge-${R.status}`,children:R.status})}),f.jsx("td",{style:{color:"var(--text-secondary)"},children:p(R.timestamp)})]},x))})]})})]}),f.jsxs("div",{style:{width:220},children:[f.jsx("h2",{className:"section-title",children:"Token Health"}),f.jsxs("div",{className:"health-panel",children:[f.jsxs("div",{className:"health-row",children:[f.jsx("span",{style:{color:"var(--warning)"},children:"Expiring Soon"}),f.jsx("span",{className:"mono",children:D.expiring_soon})]}),f.jsxs("div",{className:"health-row",children:[f.jsx("span",{style:{color:"var(--error)"},children:"Error Rate"}),f.jsx("span",{className:"mono",children:D.error_rate})]})]})]})]})]})}const xr=["admin","read","sources_admin","users_admin","write"];function hy(m){const H=Math.floor((Date.now()-m.getTime())/1e3);return H<60?"just now":H<3600?`${Math.floor(H/60)}m ago`:H<86400?`${Math.floor(H/3600)}h ago`:`${Math.floor(H/86400)}d ago`}function my(){const[m,H]=ul.useState([]),[D,r]=ul.useState(!0),[O,G]=ul.useState(!1),[U,w]=ul.useState(null),[M,p]=ul.useState(!1),[R,x]=ul.useState(null),[_,F]=ul.useState(null);ul.useEffect(()=>{Z()},[]);const Z=()=>{_t.agents().then(H).catch(()=>{})};return f.jsxs(f.Fragment,{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:24},children:[f.jsx("h1",{className:"page-title",style:{marginBottom:0},children:"Agents"}),f.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[f.jsxs("label",{style:{fontSize:13,color:"var(--text-secondary)",display:"flex",alignItems:"center",gap:6,cursor:"pointer"},children:[f.jsx("input",{type:"checkbox",checked:D,onChange:al=>r(al.target.checked)})," Hide revoked"]}),f.jsx("button",{className:"btn btn-secondary",onClick:()=>p(!0),children:"+ API Key"}),f.jsx("button",{className:"btn btn-primary",onClick:()=>G(!0),children:"+ OAuth Client"})]})]}),(()=>{const al=m.filter(ll=>!D||ll.status!=="revoked");return m.length===0?f.jsx("div",{style:{textAlign:"center",padding:48,color:"var(--text-muted)"},children:"No agents registered. Register your first agent to get started."}):al.length===0?f.jsx("div",{style:{textAlign:"center",padding:48,color:"var(--text-muted)"},children:'All agents are revoked. Uncheck "Hide revoked" to view them.'}):f.jsxs(f.Fragment,{children:[f.jsxs("table",{children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"Name"}),f.jsx("th",{children:"Type"}),f.jsx("th",{children:"Scopes"}),f.jsx("th",{children:"Status"}),f.jsx("th",{children:"Requests"}),f.jsx("th",{children:"Last Used"})]})}),f.jsx("tbody",{children:al.map(ll=>f.jsxs("tr",{onClick:()=>F(ll),style:{cursor:"pointer"},children:[f.jsx("td",{style:{fontWeight:500},children:ll.name||ll.client_name}),f.jsx("td",{children:f.jsx("span",{className:`badge ${ll.auth_type==="oauth"?"badge-read":"badge-write"}`,style:{fontSize:11},children:ll.auth_type==="oauth"?"OAuth":"API Key"})}),f.jsx("td",{children:(ll.scope||"").split(" ").filter(Boolean).map(pl=>f.jsx("span",{className:`badge badge-${pl}`,style:{marginRight:4},children:pl},pl))}),f.jsx("td",{children:f.jsx("span",{className:`badge ${ll.status==="active"?"badge-success":"badge-danger"}`,children:ll.status})}),f.jsxs("td",{children:[f.jsx("span",{style:{fontWeight:500},children:ll.requests_today||0}),f.jsxs("span",{style:{color:"var(--text-muted)",fontSize:12},children:[" / ",ll.total_requests||0]})]}),f.jsx("td",{style:{color:"var(--text-secondary)"},children:ll.last_used_at?hy(new Date(ll.last_used_at)):"Never"})]},ll.id))})]}),f.jsxs("div",{style:{color:"var(--text-muted)",fontSize:13,marginTop:12},children:[m.filter(ll=>ll.status==="active").length," active / ",m.length," total"]})]})})(),O&&f.jsx(gy,{onClose:()=>G(!1),onRegistered:al=>{G(!1),w(al),Z()}}),U&&f.jsx(Sy,{credentials:U,onClose:()=>w(null)}),_&&f.jsx(by,{agent:_,onClose:()=>F(null),onRevoked:Z}),M&&f.jsx(yy,{onClose:()=>p(!1),onCreated:al=>{p(!1),x(al),Z()}}),R&&f.jsx(vy,{token:R,onClose:()=>x(null)})]})}function yy({onClose:m,onCreated:H}){const[D,r]=ul.useState(""),[O,G]=ul.useState(!1),[U,w]=ul.useState(""),M=async p=>{if(p.preventDefault(),!D.trim()){w("Name required");return}G(!0);try{const R=await _t.createApiKey(D.trim());H({name:R.name,token:R.token})}catch(R){w(R instanceof Error?R.message:"Failed")}finally{G(!1)}};return f.jsx("div",{className:"modal-overlay",onClick:m,children:f.jsxs("form",{className:"modal",onClick:p=>p.stopPropagation(),onSubmit:M,children:[f.jsx("div",{className:"modal-title",children:"Create API Key"}),f.jsx("p",{style:{color:"var(--text-secondary)",fontSize:13,marginBottom:16},children:"API keys use simple bearer token auth. They grant full read+write+admin access. For scoped access, use OAuth clients instead."}),f.jsxs("div",{style:{marginBottom:16},children:[f.jsx("label",{children:"Key Name"}),f.jsx("input",{placeholder:"e.g. claude-code-local",value:D,onChange:p=>r(p.target.value),autoFocus:!0})]}),U&&f.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:12},children:U}),f.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"flex-end"},children:[f.jsx("button",{type:"button",className:"btn btn-secondary",onClick:m,children:"Cancel"}),f.jsx("button",{type:"submit",className:"btn btn-primary",disabled:O,children:O?"Creating...":"Create Key"})]})]})})}function vy({token:m,onClose:H}){const D=r=>navigator.clipboard.writeText(r);return f.jsx("div",{className:"modal-overlay",children:f.jsxs("div",{className:"modal",style:{maxWidth:560},children:[f.jsxs("div",{style:{textAlign:"center",marginBottom:16},children:[f.jsx("div",{style:{fontSize:36,color:"var(--success)",marginBottom:8},children:"✓"}),f.jsx("div",{style:{fontSize:20,fontWeight:600},children:"API Key Created"})]}),f.jsxs("div",{style:{marginBottom:12},children:[f.jsx("label",{style:{fontSize:12},children:"Name"}),f.jsx("div",{className:"code-block",children:f.jsx("span",{children:m.name})})]}),f.jsxs("div",{style:{marginBottom:12},children:[f.jsx("label",{style:{fontSize:12},children:"Bearer Token"}),f.jsxs("div",{className:"code-block",children:[f.jsx("span",{children:m.token}),f.jsx("button",{className:"copy-btn",onClick:()=>D(m.token),children:"Copy"})]})]}),f.jsxs("div",{style:{marginBottom:12},children:[f.jsx("label",{style:{fontSize:12},children:"Usage"}),f.jsxs("div",{className:"code-block",children:[f.jsx("pre",{style:{whiteSpace:"pre-wrap",margin:0,fontSize:12},children:`Authorization: Bearer ${m.token}`}),f.jsx("button",{className:"copy-btn",onClick:()=>D(`Authorization: Bearer ${m.token}`),children:"Copy"})]})]}),f.jsx("div",{className:"warning-bar",children:"Save this token now. It will not be shown again."}),f.jsx("div",{style:{display:"flex",gap:12,justifyContent:"flex-end",marginTop:20},children:f.jsx("button",{className:"btn btn-primary",onClick:H,children:"Done"})})]})})}function gy({onClose:m,onRegistered:H}){const[D,r]=ul.useState(""),[O,G]=ul.useState(()=>Object.fromEntries(xr.map(Z=>[Z,Z==="read"]))),[U,w]=ul.useState("86400"),[M,p]=ul.useState(!1),[R,x]=ul.useState(""),_=[{label:"1 hour",value:"3600"},{label:"24 hours",value:"86400"},{label:"7 days",value:"604800"},{label:"30 days",value:"2592000"},{label:"1 year",value:"31536000"},{label:"No expiry",value:"0"}],F=async Z=>{if(Z.preventDefault(),!D.trim()){x("Name required");return}p(!0),x("");try{const al=Object.entries(O).filter(([,Ml])=>Ml).map(([Ml])=>Ml).join(" "),ll=await fetch("/admin/api/register-client",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:D.trim(),scopes:al,tokenTtl:U==="0"?31536e4:Number(U)})});if(!ll.ok)throw new Error("Registration failed");const pl=await ll.json();H({clientId:pl.clientId,clientSecret:pl.clientSecret,name:D.trim()})}catch(al){x(al instanceof Error?al.message:"Registration failed")}finally{p(!1)}};return f.jsx("div",{className:"modal-overlay",onClick:m,children:f.jsxs("form",{className:"modal",onClick:Z=>Z.stopPropagation(),onSubmit:F,children:[f.jsx("div",{className:"modal-title",children:"Register Agent"}),f.jsxs("div",{style:{marginBottom:16},children:[f.jsx("label",{children:"Agent Name"}),f.jsx("input",{placeholder:"e.g. perplexity-production",value:D,onChange:Z=>r(Z.target.value),autoFocus:!0})]}),f.jsxs("div",{style:{marginBottom:16},children:[f.jsx("label",{children:"Scopes"}),f.jsx("div",{className:"checkbox-group",children:xr.map(Z=>f.jsxs("label",{className:"checkbox-label",children:[f.jsx("input",{type:"checkbox",checked:O[Z],onChange:al=>G(ll=>({...ll,[Z]:al.target.checked}))}),Z]},Z))})]}),f.jsxs("div",{style:{marginBottom:20},children:[f.jsx("label",{children:"Token Lifetime"}),f.jsx("select",{value:U,onChange:Z=>w(Z.target.value),style:{width:"100%",background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:6,padding:"6px 10px",fontSize:14},children:_.map(Z=>f.jsx("option",{value:Z.value,children:Z.label},Z.value))})]}),R&&f.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:12},children:R}),f.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"flex-end"},children:[f.jsx("button",{type:"button",className:"btn btn-secondary",onClick:m,children:"Cancel"}),f.jsx("button",{type:"submit",className:"btn btn-primary",disabled:M,children:M?"Registering...":"Register"})]})]})})}function Sy({credentials:m,onClose:H}){const D=O=>navigator.clipboard.writeText(O),r=()=>{const O=new Blob([JSON.stringify(m,null,2)],{type:"application/json"}),G=URL.createObjectURL(O),U=document.createElement("a");U.href=G,U.download=`${m.name}-credentials.json`,U.click(),URL.revokeObjectURL(G)};return f.jsx("div",{className:"modal-overlay",children:f.jsxs("div",{className:"modal",style:{maxWidth:560},children:[f.jsxs("div",{style:{textAlign:"center",marginBottom:16},children:[f.jsx("div",{style:{fontSize:36,color:"var(--success)",marginBottom:8},children:"✓"}),f.jsx("div",{style:{fontSize:20,fontWeight:600},children:"Agent Registered"})]}),f.jsxs("div",{style:{marginBottom:12},children:[f.jsx("label",{style:{fontSize:12},children:"Client ID"}),f.jsxs("div",{className:"code-block",children:[f.jsx("span",{children:m.clientId}),f.jsx("button",{className:"copy-btn",onClick:()=>D(m.clientId),children:"Copy"})]})]}),f.jsxs("div",{style:{marginBottom:12},children:[f.jsx("label",{style:{fontSize:12},children:"Client Secret"}),f.jsxs("div",{className:"code-block",children:[f.jsx("span",{children:m.clientSecret}),f.jsx("button",{className:"copy-btn",onClick:()=>D(m.clientSecret),children:"Copy"})]})]}),f.jsx("div",{className:"warning-bar",children:"Save this secret now. It will not be shown again."}),f.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"flex-end",marginTop:20},children:[f.jsx("button",{className:"btn btn-secondary",onClick:r,children:"Download as JSON"}),f.jsx("button",{className:"btn btn-primary",onClick:H,children:"Done"})]})]})})}function by({agent:m,onClose:H,onRevoked:D}){const[r,O]=ul.useState("claude-code"),G=x=>navigator.clipboard.writeText(x),U=window.location.origin,w=m.id||m.client_id||"",M=m.auth_type==="oauth",p=m.name||m.client_name||"unknown",R={"claude-code":M?["The user wants to connect GBrain MCP to your context. Here's how.","","# Step 1 — read the client secret from the operator without putting it in shell history.","# read -s suppresses the echo; export keeps it scoped to this shell session.",'read -rs -p "Client Secret: " GBRAIN_CS && echo',"","# Step 2 — mint a token and register GBrain in one go.",`claude mcp add --transport http gbrain ${U}/mcp \\`,`  --header "Authorization: Bearer $(curl -s -X POST ${U}/token \\`,"    -d 'grant_type=client_credentials' \\",`    -d 'client_id=${w}' \\`,'    --data-urlencode "client_secret=$GBRAIN_CS" \\',`    -d 'scope=${m.scope||"read write"}' | jq -r .access_token)"`,"","# Step 3 — clear the secret from this shell.","unset GBRAIN_CS","",`The token will last ${m.token_ttl?m.token_ttl>=86400?Math.floor(m.token_ttl/86400)+" days":Math.floor(m.token_ttl/3600)+" hours":"1 hour (default)"}.`,"","─── Fallback: 2-step curl + paste ───","","If your shell doesn't support read -s, mint the token first, then paste:","",`curl -s -X POST ${U}/token \\`,"  -d 'grant_type=client_credentials' \\",`  -d 'client_id=${w}' \\`,"  -d 'client_secret=PASTE_YOUR_CLIENT_SECRET_HERE' \\",`  -d 'scope=${m.scope||"read write"}' | jq -r .access_token`,"",`claude mcp add --transport http gbrain ${U}/mcp \\`,'  --header "Authorization: Bearer PASTE_TOKEN_FROM_ABOVE"',"","# Then run: history -d $((HISTCMD-1))   # zsh: print -s -- '' && fc -p"].join(`
`):["The user wants to connect GBrain MCP to your context. Here's how.","","Run this command in terminal to register GBrain:","",`claude mcp add --transport http gbrain ${U}/mcp \\`,'  --header "Authorization: Bearer PASTE_YOUR_API_KEY_HERE"',"",`Replace PASTE_YOUR_API_KEY_HERE with the API key shown when "${p}" was created.`,"API keys never expire."].join(`
`),chatgpt:["The user wants to connect GBrain MCP to ChatGPT.","","1. Open ChatGPT > Settings > Tools & Integrations > Add MCP Server","2. Enter this URL — ChatGPT will auto-discover the OAuth configuration:","",`   ${U}/.well-known/oauth-authorization-server`,"","3. When prompted for credentials:",`   Client ID: ${w}`,"   Client Secret: (the secret from agent registration)","   Grant Type: client_credentials",`   Scope: ${m.scope||"read write"}`].join(`
`),"claude-cowork":["The user wants to connect GBrain MCP to Claude.ai.","","1. Open claude.ai > Settings > Connected Apps > Add MCP Server",`2. Server URL: ${U}/mcp`,"3. When prompted for auth:",`   Token endpoint: ${U}/token`,`   Client ID: ${w}`,"   Client Secret: (the secret from agent registration)",`   Scope: ${m.scope||"read write"}`,"",`Discovery URL: ${U}/.well-known/oauth-authorization-server`].join(`
`),cursor:M?["The user wants to connect GBrain MCP to Cursor.","","Cursor supports OAuth for remote MCP. Add to .cursor/mcp.json:","","{",'  "mcpServers": {','    "gbrain": {',`      "url": "${U}/mcp",`,'      "transport": "sse"',"    }","  }","}","","Cursor will auto-discover OAuth via:",`${U}/.well-known/oauth-authorization-server`,"",`When prompted: Client ID ${w}, use the secret from registration.`].join(`
`):["The user wants to connect GBrain MCP to Cursor.","","Add to .cursor/mcp.json:","","{",'  "mcpServers": {','    "gbrain": {',`      "url": "${U}/mcp",`,'      "transport": "sse",','      "headers": {','        "Authorization": "Bearer PASTE_YOUR_API_KEY_HERE"',"      }","    }","  }","}","",`Replace PASTE_YOUR_API_KEY_HERE with the API key shown when "${p}" was created.`].join(`
`),perplexity:["The user wants to connect GBrain MCP to Perplexity.","","1. Go to Settings > Connectors > Add MCP",`2. Server URL: ${U}/mcp`,`3. Client ID: ${w}`,"4. Client Secret: (the secret from agent registration)"].join(`
`),json:JSON.stringify({server_url:U+"/mcp",token_url:U+"/token",discovery_url:U+"/.well-known/oauth-authorization-server",client_id:w,client_name:p,auth_type:m.auth_type,scope:m.scope},null,2)};return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"drawer-overlay",onClick:H}),f.jsxs("div",{className:"drawer",children:[f.jsx("button",{className:"drawer-close",onClick:H,children:"✕"}),f.jsx("div",{style:{fontSize:18,fontWeight:600,marginBottom:4},children:m.name||m.client_name}),f.jsx("span",{className:`badge ${m.status==="active"?"badge-success":"badge-danger"}`,children:m.status}),f.jsx("div",{className:"section-title",children:"Details"}),f.jsxs("div",{style:{display:"grid",gridTemplateColumns:"100px 1fr",gap:"6px 12px",fontSize:13},children:[f.jsx("span",{style:{color:"var(--text-secondary)"},children:"Client ID"}),f.jsxs("span",{className:"mono",children:[(m.id||m.id||m.client_id||"").substring(0,24),"..."]}),f.jsx("span",{style:{color:"var(--text-secondary)"},children:"Scopes"}),f.jsx("span",{children:(m.scope||"").split(" ").filter(Boolean).map(x=>f.jsx("span",{className:`badge badge-${x}`,style:{marginRight:4},children:x},x))}),f.jsx("span",{style:{color:"var(--text-secondary)"},children:"Registered"}),f.jsx("span",{children:new Date(m.created_at).toLocaleDateString()}),f.jsx("span",{style:{color:"var(--text-secondary)"},children:"Token TTL"}),f.jsx("span",{children:m.token_ttl?m.token_ttl>=31536e3?"No expiry":m.token_ttl>=86400?`${Math.floor(m.token_ttl/86400)}d`:m.token_ttl>=3600?`${Math.floor(m.token_ttl/3600)}h`:`${m.token_ttl}s`:"1h (default)"})]}),f.jsx("div",{className:"section-title",children:"Config Export"}),f.jsxs("div",{className:"tabs",style:{flexWrap:"wrap"},children:[f.jsx("div",{className:`tab ${r==="claude-code"?"active":""}`,onClick:()=>O("claude-code"),children:"Claude Code"}),f.jsx("div",{className:`tab ${r==="chatgpt"?"active":""}`,onClick:()=>O("chatgpt"),children:"ChatGPT"}),f.jsx("div",{className:`tab ${r==="claude-cowork"?"active":""}`,onClick:()=>O("claude-cowork"),children:"Claude.ai"}),f.jsx("div",{className:`tab ${r==="cursor"?"active":""}`,onClick:()=>O("cursor"),children:"Cursor"}),f.jsx("div",{className:`tab ${r==="perplexity"?"active":""}`,onClick:()=>O("perplexity"),children:"Perplexity"}),f.jsx("div",{className:`tab ${r==="json"?"active":""}`,onClick:()=>O("json"),children:"JSON"})]}),(()=>{if(!M&&new Set(["chatgpt","claude-cowork","perplexity"]).has(r)){const _={chatgpt:"ChatGPT","claude-cowork":"Claude.ai",perplexity:"Perplexity"}[r]||r;return f.jsxs("div",{style:{background:"rgba(255, 200, 100, 0.08)",border:"1px solid rgba(255, 200, 100, 0.2)",borderRadius:8,padding:"14px 16px",marginTop:12,fontSize:13,lineHeight:1.6,color:"var(--text-secondary)"},children:[f.jsxs("div",{style:{fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:[_," requires an OAuth client"]}),_," only supports OAuth 2.0 (client_credentials). API keys use raw bearer tokens, which ",_," does not accept. Register a separate OAuth client and use that to connect this AI."]})}return f.jsxs("div",{className:"code-block",children:[f.jsx("pre",{style:{whiteSpace:"pre-wrap",margin:0},children:R[r]}),f.jsx("button",{className:"copy-btn",onClick:()=>G(R[r]),children:"Copy"})]})})(),f.jsxs("div",{style:{marginTop:32},children:[m.status==="active"&&f.jsx("button",{className:"btn btn-danger",onClick:async()=>{if(confirm(`Revoke ${m.name||m.client_name}? All active tokens will be invalidated.`))try{m.auth_type==="oauth"?await _t.revokeClient(m.id||m.client_id||""):await _t.revokeApiKey(m.name||""),D(),H()}catch(x){alert("Revoke failed: "+(x instanceof Error?x.message:"unknown error"))}},children:"Revoke Agent"}),m.status==="revoked"&&f.jsx("span",{style:{color:"var(--text-muted)",fontSize:13},children:"This agent has been revoked."})]})]})]})}function py(){const[m,H]=ul.useState({rows:[],total:0,page:1,pages:1}),[D,r]=ul.useState(1),[O,G]=ul.useState("all"),[U,w]=ul.useState(null);ul.useEffect(()=>{M(D)},[D,O]);const M=_=>{const F=O!=="all"?`&agent=${encodeURIComponent(O)}`:"";_t.requests(_,F).then(H).catch(()=>{})},p=_=>{const F=Date.now()-new Date(_).getTime();return F<6e4?`${Math.floor(F/1e3)}s ago`:F<36e5?`${Math.floor(F/6e4)} min ago`:F<864e5?`${Math.floor(F/36e5)}h ago`:new Date(_).toLocaleDateString()},R=_=>{if(!_)return null;const{query:F,slug:Z,partial:al,limit:ll,...pl}=_,Ml=[];return F&&Ml.push(`"${F}"`),Z&&Ml.push(Z),al&&Ml.push(`~${al}`),ll&&Ml.push(`limit=${ll}`),Object.keys(pl).length>0&&Ml.push(`+${Object.keys(pl).length} params`),Ml.join(" ")},x=new Map;return m.rows.forEach(_=>{_.token_name&&x.set(_.token_name,_.agent_name||_.token_name)}),f.jsxs(f.Fragment,{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:24},children:[f.jsx("h1",{className:"page-title",style:{marginBottom:0},children:"Request Log"}),f.jsxs("select",{value:O,onChange:_=>{G(_.target.value),r(1)},style:{background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:6,padding:"4px 8px",fontSize:13},children:[f.jsx("option",{value:"all",children:"All agents"}),[...x.entries()].map(([_,F])=>f.jsx("option",{value:_,children:F},_))]})]}),m.rows.length===0?f.jsx("div",{style:{textAlign:"center",padding:48,color:"var(--text-muted)"},children:"No requests yet."}):f.jsxs(f.Fragment,{children:[f.jsxs("table",{children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"Time"}),f.jsx("th",{children:"Agent"}),f.jsx("th",{children:"Operation"}),f.jsx("th",{children:"Params"}),f.jsx("th",{children:"Latency"}),f.jsx("th",{children:"Status"})]})}),f.jsx("tbody",{children:m.rows.map(_=>f.jsxs(Nr.Fragment,{children:[f.jsxs("tr",{onClick:()=>w(U===_.id?null:_.id),style:{cursor:"pointer"},children:[f.jsx("td",{style:{color:"var(--text-secondary)",whiteSpace:"nowrap"},children:p(_.created_at)}),f.jsx("td",{children:f.jsx("a",{style:{color:"var(--text-link, #88aaff)",cursor:"pointer",textDecoration:"none",fontWeight:500},onClick:F=>{F.stopPropagation(),G(_.token_name),r(1)},children:_.agent_name||_.token_name})}),f.jsx("td",{className:"mono",children:_.operation}),f.jsx("td",{style:{color:"var(--text-secondary)",fontSize:12,maxWidth:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R(_.params)}),f.jsxs("td",{className:"mono",children:[_.latency_ms,"ms"]}),f.jsx("td",{children:f.jsx("span",{className:`badge badge-${_.status}`,children:_.status})})]}),U===_.id&&f.jsx("tr",{children:f.jsx("td",{colSpan:6,style:{background:"var(--bg-secondary, #0f0f1a)",padding:16},children:f.jsxs("div",{style:{display:"grid",gridTemplateColumns:"100px 1fr",gap:"6px 12px",fontSize:13},children:[f.jsx("span",{style:{color:"var(--text-muted)"},children:"Time"}),f.jsx("span",{children:new Date(_.created_at).toLocaleString()}),f.jsx("span",{style:{color:"var(--text-muted)"},children:"Agent"}),f.jsx("span",{className:"mono",children:_.token_name}),f.jsx("span",{style:{color:"var(--text-muted)"},children:"Operation"}),f.jsx("span",{className:"mono",children:_.operation}),f.jsx("span",{style:{color:"var(--text-muted)"},children:"Latency"}),f.jsxs("span",{children:[_.latency_ms,"ms"]}),_.params&&f.jsxs(f.Fragment,{children:[f.jsx("span",{style:{color:"var(--text-muted)"},children:"Params"}),f.jsx("pre",{className:"mono",style:{margin:0,whiteSpace:"pre-wrap",fontSize:12},children:JSON.stringify(_.params,null,2)})]}),_.error_message&&f.jsxs(f.Fragment,{children:[f.jsx("span",{style:{color:"var(--error, #ff6b6b)"},children:"Error"}),f.jsx("span",{style:{color:"var(--error, #ff6b6b)"},children:_.error_message})]})]})})})]},_.id))})]}),f.jsxs("div",{className:"pagination",children:[f.jsxs("span",{children:["Page ",m.page," of ",m.pages," (",m.total," total)"]}),f.jsxs("div",{style:{display:"flex",gap:8},children:[f.jsx("button",{disabled:m.page<=1,onClick:()=>r(_=>_-1),children:"Previous"}),f.jsx("button",{disabled:m.page>=m.pages,onClick:()=>r(_=>_+1),children:"Next"})]})]})]})]})}function jr(){const m=window.location.hash.replace("#","")||"dashboard";return["login","dashboard","agents","log"].includes(m)?m:"dashboard"}function Ty(){const[m,H]=ul.useState(jr);ul.useEffect(()=>{const O=()=>H(jr());return window.addEventListener("hashchange",O),()=>window.removeEventListener("hashchange",O)},[]);const D=O=>{window.location.hash=O,H(O)};if(m==="login")return f.jsx(dy,{onLogin:()=>D("dashboard")});const r=async()=>{if(confirm("Sign out every active admin session, including other browsers and tabs? Each one will need to re-authenticate via a fresh magic link.")){try{await _t.signOutEverywhere()}catch{}D("login")}};return f.jsxs("div",{className:"app",children:[f.jsxs("nav",{className:"sidebar",children:[f.jsx("div",{className:"sidebar-logo",children:"GBrain"}),f.jsxs("div",{className:"sidebar-nav",children:[f.jsx("a",{className:`nav-item ${m==="dashboard"?"active":""}`,onClick:()=>D("dashboard"),children:"Dashboard"}),f.jsx("a",{className:`nav-item ${m==="agents"?"active":""}`,onClick:()=>D("agents"),children:"Agents"}),f.jsx("a",{className:`nav-item ${m==="log"?"active":""}`,onClick:()=>D("log"),children:"Request Log"})]}),f.jsx("div",{style:{marginTop:"auto",padding:"16px 12px",borderTop:"1px solid var(--border)"},children:f.jsx("button",{onClick:r,style:{background:"transparent",border:"1px solid var(--border)",color:"var(--text-secondary)",padding:"6px 10px",borderRadius:6,fontSize:12,cursor:"pointer",width:"100%"},title:"Revoke every active admin session — every browser, every tab",children:"Sign out everywhere"})})]}),f.jsxs("main",{className:"main",children:[m==="dashboard"&&f.jsx(ry,{}),m==="agents"&&f.jsx(my,{}),m==="log"&&f.jsx(py,{})]})]})}sy.createRoot(document.getElementById("root")).render(f.jsx(Nr.StrictMode,{children:f.jsx(Ty,{})}));
