(function(){const D=document.createElement("link").relList;if(D&&D.supports&&D.supports("modulepreload"))return;for(const E of document.querySelectorAll('link[rel="modulepreload"]'))h(E);new MutationObserver(E=>{for(const N of E)if(N.type==="childList")for(const C of N.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&h(C)}).observe(document,{childList:!0,subtree:!0});function O(E){const N={};return E.integrity&&(N.integrity=E.integrity),E.referrerPolicy&&(N.referrerPolicy=E.referrerPolicy),E.crossOrigin==="use-credentials"?N.credentials="include":E.crossOrigin==="anonymous"?N.credentials="omit":N.credentials="same-origin",N}function h(E){if(E.ep)return;E.ep=!0;const N=O(E);fetch(E.href,N)}})();function Md(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ff={exports:{}},jn={};/**
 * @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 gd;function ey(){if(gd)return jn;gd=1;var o=Symbol.for("react.transitional.element"),D=Symbol.for("react.fragment");function O(h,E,N){var C=null;if(N!==void 0&&(C=""+N),E.key!==void 0&&(C=""+E.key),"key"in E){N={};for(var Q in E)Q!=="key"&&(N[Q]=E[Q])}else N=E;return E=N.ref,{$$typeof:o,type:h,key:C,ref:E!==void 0?E:null,props:N}}return jn.Fragment=D,jn.jsx=O,jn.jsxs=O,jn}var Sd;function ay(){return Sd||(Sd=1,ff.exports=ey()),ff.exports}var c=ay(),sf={exports:{}},V={};/**
 * @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 pd;function ny(){if(pd)return V;pd=1;var o=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),C=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),A=Symbol.iterator;function I(d){return d===null||typeof d!="object"?null:(d=A&&d[A]||d["@@iterator"],typeof d=="function"?d:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nl=Object.assign,tl={};function bl(d,z,R){this.props=d,this.context=z,this.refs=tl,this.updater=R||L}bl.prototype.isReactComponent={},bl.prototype.setState=function(d,z){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,z,"setState")},bl.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function Ml(){}Ml.prototype=bl.prototype;function Gl(d,z,R){this.props=d,this.context=z,this.refs=tl,this.updater=R||L}var rt=Gl.prototype=new Ml;rt.constructor=Gl,nl(rt,bl.prototype),rt.isPureReactComponent=!0;var _t=Array.isArray;function Ll(){}var el={H:null,A:null,T:null,S:null},Vl=Object.prototype.hasOwnProperty;function Et(d,z,R){var q=R.ref;return{$$typeof:o,type:d,key:z,ref:q!==void 0?q:null,props:R}}function Le(d,z){return Et(d.type,z,d.props)}function Ot(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function Kl(d){var z={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(R){return z[R]})}var Te=/\/+/g;function Ut(d,z){return typeof d=="object"&&d!==null&&d.key!=null?Kl(""+d.key):z.toString(36)}function jt(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(z){d.status==="pending"&&(d.status="fulfilled",d.value=z)},function(z){d.status==="pending"&&(d.status="rejected",d.reason=z)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function x(d,z,R,q,J){var $=typeof d;($==="undefined"||$==="boolean")&&(d=null);var fl=!1;if(d===null)fl=!0;else switch($){case"bigint":case"string":case"number":fl=!0;break;case"object":switch(d.$$typeof){case o:case D:fl=!0;break;case H:return fl=d._init,x(fl(d._payload),z,R,q,J)}}if(fl)return J=J(d),fl=q===""?"."+Ut(d,0):q,_t(J)?(R="",fl!=null&&(R=fl.replace(Te,"$&/")+"/"),x(J,z,R,"",function(Oa){return Oa})):J!=null&&(Ot(J)&&(J=Le(J,R+(J.key==null||d&&d.key===J.key?"":(""+J.key).replace(Te,"$&/")+"/")+fl)),z.push(J)),1;fl=0;var Ql=q===""?".":q+":";if(_t(d))for(var Tl=0;Tl<d.length;Tl++)q=d[Tl],$=Ql+Ut(q,Tl),fl+=x(q,z,R,$,J);else if(Tl=I(d),typeof Tl=="function")for(d=Tl.call(d),Tl=0;!(q=d.next()).done;)q=q.value,$=Ql+Ut(q,Tl++),fl+=x(q,z,R,$,J);else if($==="object"){if(typeof d.then=="function")return x(jt(d),z,R,q,J);throw z=String(d),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return fl}function U(d,z,R){if(d==null)return d;var q=[],J=0;return x(d,q,"","",function($){return z.call(R,$,J++)}),q}function Z(d){if(d._status===-1){var z=d._result;z=z(),z.then(function(R){(d._status===0||d._status===-1)&&(d._status=1,d._result=R)},function(R){(d._status===0||d._status===-1)&&(d._status=2,d._result=R)}),d._status===-1&&(d._status=0,d._result=z)}if(d._status===1)return d._result.default;throw d._result}var rl=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=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(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},yl={map:U,forEach:function(d,z,R){U(d,function(){z.apply(this,arguments)},R)},count:function(d){var z=0;return U(d,function(){z++}),z},toArray:function(d){return U(d,function(z){return z})||[]},only:function(d){if(!Ot(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return V.Activity=M,V.Children=yl,V.Component=bl,V.Fragment=O,V.Profiler=E,V.PureComponent=Gl,V.StrictMode=h,V.Suspense=_,V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=el,V.__COMPILER_RUNTIME={__proto__:null,c:function(d){return el.H.useMemoCache(d)}},V.cache=function(d){return function(){return d.apply(null,arguments)}},V.cacheSignal=function(){return null},V.cloneElement=function(d,z,R){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var q=nl({},d.props),J=d.key;if(z!=null)for($ in z.key!==void 0&&(J=""+z.key),z)!Vl.call(z,$)||$==="key"||$==="__self"||$==="__source"||$==="ref"&&z.ref===void 0||(q[$]=z[$]);var $=arguments.length-2;if($===1)q.children=R;else if(1<$){for(var fl=Array($),Ql=0;Ql<$;Ql++)fl[Ql]=arguments[Ql+2];q.children=fl}return Et(d.type,J,q)},V.createContext=function(d){return d={$$typeof:C,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:N,_context:d},d},V.createElement=function(d,z,R){var q,J={},$=null;if(z!=null)for(q in z.key!==void 0&&($=""+z.key),z)Vl.call(z,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(J[q]=z[q]);var fl=arguments.length-2;if(fl===1)J.children=R;else if(1<fl){for(var Ql=Array(fl),Tl=0;Tl<fl;Tl++)Ql[Tl]=arguments[Tl+2];J.children=Ql}if(d&&d.defaultProps)for(q in fl=d.defaultProps,fl)J[q]===void 0&&(J[q]=fl[q]);return Et(d,$,J)},V.createRef=function(){return{current:null}},V.forwardRef=function(d){return{$$typeof:Q,render:d}},V.isValidElement=Ot,V.lazy=function(d){return{$$typeof:H,_payload:{_status:-1,_result:d},_init:Z}},V.memo=function(d,z){return{$$typeof:b,type:d,compare:z===void 0?null:z}},V.startTransition=function(d){var z=el.T,R={};el.T=R;try{var q=d(),J=el.S;J!==null&&J(R,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(Ll,rl)}catch($){rl($)}finally{z!==null&&R.types!==null&&(z.types=R.types),el.T=z}},V.unstable_useCacheRefresh=function(){return el.H.useCacheRefresh()},V.use=function(d){return el.H.use(d)},V.useActionState=function(d,z,R){return el.H.useActionState(d,z,R)},V.useCallback=function(d,z){return el.H.useCallback(d,z)},V.useContext=function(d){return el.H.useContext(d)},V.useDebugValue=function(){},V.useDeferredValue=function(d,z){return el.H.useDeferredValue(d,z)},V.useEffect=function(d,z){return el.H.useEffect(d,z)},V.useEffectEvent=function(d){return el.H.useEffectEvent(d)},V.useId=function(){return el.H.useId()},V.useImperativeHandle=function(d,z,R){return el.H.useImperativeHandle(d,z,R)},V.useInsertionEffect=function(d,z){return el.H.useInsertionEffect(d,z)},V.useLayoutEffect=function(d,z){return el.H.useLayoutEffect(d,z)},V.useMemo=function(d,z){return el.H.useMemo(d,z)},V.useOptimistic=function(d,z){return el.H.useOptimistic(d,z)},V.useReducer=function(d,z,R){return el.H.useReducer(d,z,R)},V.useRef=function(d){return el.H.useRef(d)},V.useState=function(d){return el.H.useState(d)},V.useSyncExternalStore=function(d,z,R){return el.H.useSyncExternalStore(d,z,R)},V.useTransition=function(){return el.H.useTransition()},V.version="19.2.5",V}var bd;function mf(){return bd||(bd=1,sf.exports=ny()),sf.exports}var K=mf();const Dd=Md(K);var of={exports:{}},Tn={},rf={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 xd;function uy(){return xd||(xd=1,(function(o){function D(x,U){var Z=x.length;x.push(U);l:for(;0<Z;){var rl=Z-1>>>1,yl=x[rl];if(0<E(yl,U))x[rl]=U,x[Z]=yl,Z=rl;else break l}}function O(x){return x.length===0?null:x[0]}function h(x){if(x.length===0)return null;var U=x[0],Z=x.pop();if(Z!==U){x[0]=Z;l:for(var rl=0,yl=x.length,d=yl>>>1;rl<d;){var z=2*(rl+1)-1,R=x[z],q=z+1,J=x[q];if(0>E(R,Z))q<yl&&0>E(J,R)?(x[rl]=J,x[q]=Z,rl=q):(x[rl]=R,x[z]=Z,rl=z);else if(q<yl&&0>E(J,Z))x[rl]=J,x[q]=Z,rl=q;else break l}}return U}function E(x,U){var Z=x.sortIndex-U.sortIndex;return Z!==0?Z:x.id-U.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var N=performance;o.unstable_now=function(){return N.now()}}else{var C=Date,Q=C.now();o.unstable_now=function(){return C.now()-Q}}var _=[],b=[],H=1,M=null,A=3,I=!1,L=!1,nl=!1,tl=!1,bl=typeof setTimeout=="function"?setTimeout:null,Ml=typeof clearTimeout=="function"?clearTimeout:null,Gl=typeof setImmediate<"u"?setImmediate:null;function rt(x){for(var U=O(b);U!==null;){if(U.callback===null)h(b);else if(U.startTime<=x)h(b),U.sortIndex=U.expirationTime,D(_,U);else break;U=O(b)}}function _t(x){if(nl=!1,rt(x),!L)if(O(_)!==null)L=!0,Ll||(Ll=!0,Kl());else{var U=O(b);U!==null&&jt(_t,U.startTime-x)}}var Ll=!1,el=-1,Vl=5,Et=-1;function Le(){return tl?!0:!(o.unstable_now()-Et<Vl)}function Ot(){if(tl=!1,Ll){var x=o.unstable_now();Et=x;var U=!0;try{l:{L=!1,nl&&(nl=!1,Ml(el),el=-1),I=!0;var Z=A;try{t:{for(rt(x),M=O(_);M!==null&&!(M.expirationTime>x&&Le());){var rl=M.callback;if(typeof rl=="function"){M.callback=null,A=M.priorityLevel;var yl=rl(M.expirationTime<=x);if(x=o.unstable_now(),typeof yl=="function"){M.callback=yl,rt(x),U=!0;break t}M===O(_)&&h(_),rt(x)}else h(_);M=O(_)}if(M!==null)U=!0;else{var d=O(b);d!==null&&jt(_t,d.startTime-x),U=!1}}break l}finally{M=null,A=Z,I=!1}U=void 0}}finally{U?Kl():Ll=!1}}}var Kl;if(typeof Gl=="function")Kl=function(){Gl(Ot)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Ut=Te.port2;Te.port1.onmessage=Ot,Kl=function(){Ut.postMessage(null)}}else Kl=function(){bl(Ot,0)};function jt(x,U){el=bl(function(){x(o.unstable_now())},U)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(x){x.callback=null},o.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Vl=0<x?Math.floor(1e3/x):5},o.unstable_getCurrentPriorityLevel=function(){return A},o.unstable_next=function(x){switch(A){case 1:case 2:case 3:var U=3;break;default:U=A}var Z=A;A=U;try{return x()}finally{A=Z}},o.unstable_requestPaint=function(){tl=!0},o.unstable_runWithPriority=function(x,U){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var Z=A;A=x;try{return U()}finally{A=Z}},o.unstable_scheduleCallback=function(x,U,Z){var rl=o.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?rl+Z:rl):Z=rl,x){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=Z+yl,x={id:H++,callback:U,priorityLevel:x,startTime:Z,expirationTime:yl,sortIndex:-1},Z>rl?(x.sortIndex=Z,D(b,x),O(_)===null&&x===O(b)&&(nl?(Ml(el),el=-1):nl=!0,jt(_t,Z-rl))):(x.sortIndex=yl,D(_,x),L||I||(L=!0,Ll||(Ll=!0,Kl()))),x},o.unstable_shouldYield=Le,o.unstable_wrapCallback=function(x){var U=A;return function(){var Z=A;A=U;try{return x.apply(this,arguments)}finally{A=Z}}}})(df)),df}var jd;function iy(){return jd||(jd=1,rf.exports=uy()),rf.exports}var hf={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 Td;function cy(){if(Td)return Xl;Td=1;var o=mf();function D(_){var b="https://react.dev/errors/"+_;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var H=2;H<arguments.length;H++)b+="&args[]="+encodeURIComponent(arguments[H])}return"Minified React error #"+_+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function O(){}var h={d:{f:O,r:function(){throw Error(D(522))},D:O,C:O,L:O,m:O,X:O,S:O,M:O},p:0,findDOMNode:null},E=Symbol.for("react.portal");function N(_,b,H){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:M==null?null:""+M,children:_,containerInfo:b,implementation:H}}var C=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Q(_,b){if(_==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return Xl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,Xl.createPortal=function(_,b){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(D(299));return N(_,b,null,H)},Xl.flushSync=function(_){var b=C.T,H=h.p;try{if(C.T=null,h.p=2,_)return _()}finally{C.T=b,h.p=H,h.d.f()}},Xl.preconnect=function(_,b){typeof _=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,h.d.C(_,b))},Xl.prefetchDNS=function(_){typeof _=="string"&&h.d.D(_)},Xl.preinit=function(_,b){if(typeof _=="string"&&b&&typeof b.as=="string"){var H=b.as,M=Q(H,b.crossOrigin),A=typeof b.integrity=="string"?b.integrity:void 0,I=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;H==="style"?h.d.S(_,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:M,integrity:A,fetchPriority:I}):H==="script"&&h.d.X(_,{crossOrigin:M,integrity:A,fetchPriority:I,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},Xl.preinitModule=function(_,b){if(typeof _=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var H=Q(b.as,b.crossOrigin);h.d.M(_,{crossOrigin:H,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&h.d.M(_)},Xl.preload=function(_,b){if(typeof _=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var H=b.as,M=Q(H,b.crossOrigin);h.d.L(_,H,{crossOrigin:M,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},Xl.preloadModule=function(_,b){if(typeof _=="string")if(b){var H=Q(b.as,b.crossOrigin);h.d.m(_,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:H,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else h.d.m(_)},Xl.requestFormReset=function(_){h.d.r(_)},Xl.unstable_batchedUpdates=function(_,b){return _(b)},Xl.useFormState=function(_,b,H){return C.H.useFormState(_,b,H)},Xl.useFormStatus=function(){return C.H.useHostTransitionStatus()},Xl.version="19.2.5",Xl}var zd;function fy(){if(zd)return hf.exports;zd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(D){console.error(D)}}return o(),hf.exports=cy(),hf.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 Ad;function sy(){if(Ad)return Tn;Ad=1;var o=iy(),D=mf(),O=fy();function h(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 E(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function N(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 C(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 Q(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 _(l){if(N(l)!==l)throw Error(h(188))}function b(l){var t=l.alternate;if(!t){if(t=N(l),t===null)throw Error(h(188));return t!==l?null:l}for(var e=l,a=t;;){var n=e.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){e=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===e)return _(n),l;if(u===a)return _(n),t;u=u.sibling}throw Error(h(188))}if(e.return!==a.return)e=n,a=u;else{for(var i=!1,f=n.child;f;){if(f===e){i=!0,e=n,a=u;break}if(f===a){i=!0,a=n,e=u;break}f=f.sibling}if(!i){for(f=u.child;f;){if(f===e){i=!0,e=u,a=n;break}if(f===a){i=!0,a=u,e=n;break}f=f.sibling}if(!i)throw Error(h(189))}}if(e.alternate!==a)throw Error(h(190))}if(e.tag!==3)throw Error(h(188));return e.stateNode.current===e?l:t}function H(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=H(l),t!==null)return t;l=l.sibling}return null}var M=Object.assign,A=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),nl=Symbol.for("react.fragment"),tl=Symbol.for("react.strict_mode"),bl=Symbol.for("react.profiler"),Ml=Symbol.for("react.consumer"),Gl=Symbol.for("react.context"),rt=Symbol.for("react.forward_ref"),_t=Symbol.for("react.suspense"),Ll=Symbol.for("react.suspense_list"),el=Symbol.for("react.memo"),Vl=Symbol.for("react.lazy"),Et=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 Te=Symbol.for("react.client.reference");function Ut(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Te?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case nl:return"Fragment";case bl:return"Profiler";case tl:return"StrictMode";case _t:return"Suspense";case Ll:return"SuspenseList";case Et:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case L:return"Portal";case Gl:return l.displayName||"Context";case Ml:return(l._context.displayName||"Context")+".Consumer";case rt:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case el: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 jt=Array.isArray,x=D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},rl=[],yl=-1;function d(l){return{current:l}}function z(l){0>yl||(l.current=rl[yl],rl[yl]=null,yl--)}function R(l,t){yl++,rl[yl]=l.current,l.current=t}var q=d(null),J=d(null),$=d(null),fl=d(null);function Ql(l,t){switch(R($,t),R(J,l),R(q,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Xr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Xr(t),l=Qr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}z(q),R(q,l)}function Tl(){z(q),z(J),z($)}function Oa(l){l.memoizedState!==null&&R(fl,l);var t=q.current,e=Qr(t,l.type);t!==e&&(R(J,l),R(q,e))}function zn(l){J.current===l&&(z(q),z(J)),fl.current===l&&(z(fl),Sn._currentValue=Z)}var Lu,yf;function ze(l){if(Lu===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Lu=t&&t[1]||"",yf=-1<e.stack.indexOf(`
    at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Lu+l+yf}var Vu=!1;function Ku(l,t){if(!l||Vu)return"";Vu=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(S){var g=S}Reflect.construct(l,[],T)}else{try{T.call()}catch(S){g=S}l.call(T.prototype)}}else{try{throw Error()}catch(S){g=S}(T=l())&&typeof T.catch=="function"&&T.catch(function(){})}}catch(S){if(S&&g&&typeof S.stack=="string")return[S.stack,g.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],f=u[1];if(i&&f){var s=i.split(`
`),v=f.split(`
`);for(n=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;if(a===s.length||n===v.length)for(a=s.length-1,n=v.length-1;1<=a&&0<=n&&s[a]!==v[n];)n--;for(;1<=a&&0<=n;a--,n--)if(s[a]!==v[n]){if(a!==1||n!==1)do if(a--,n--,0>n||s[a]!==v[n]){var p=`
`+s[a].replace(" at new "," at ");return l.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",l.displayName)),p}while(1<=a&&0<=n);break}}}finally{Vu=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?ze(e):""}function Ud(l,t){switch(l.tag){case 26:case 27:case 5:return ze(l.type);case 16:return ze("Lazy");case 13:return l.child!==t&&t!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return Ku(l.type,!1);case 11:return Ku(l.type.render,!1);case 1:return Ku(l.type,!0);case 31:return ze("Activity");default:return""}}function vf(l){try{var t="",e=null;do t+=Ud(l,e),e=l,l=l.return;while(l);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ju=Object.prototype.hasOwnProperty,wu=o.unstable_scheduleCallback,ku=o.unstable_cancelCallback,Rd=o.unstable_shouldYield,Bd=o.unstable_requestPaint,lt=o.unstable_now,Hd=o.unstable_getCurrentPriorityLevel,gf=o.unstable_ImmediatePriority,Sf=o.unstable_UserBlockingPriority,An=o.unstable_NormalPriority,qd=o.unstable_LowPriority,pf=o.unstable_IdlePriority,Yd=o.log,Gd=o.unstable_setDisableYieldValue,Na=null,tt=null;function It(l){if(typeof Yd=="function"&&Gd(l),tt&&typeof tt.setStrictMode=="function")try{tt.setStrictMode(Na,l)}catch{}}var et=Math.clz32?Math.clz32:Zd,Xd=Math.log,Qd=Math.LN2;function Zd(l){return l>>>=0,l===0?32:31-(Xd(l)/Qd|0)|0}var _n=256,En=262144,On=4194304;function Ae(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 Nn(l,t,e){var a=l.pendingLanes;if(a===0)return 0;var n=0,u=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=Ae(a):(i&=f,i!==0?n=Ae(i):e||(e=f&~l,e!==0&&(n=Ae(e))))):(f=a&~u,f!==0?n=Ae(f):i!==0?n=Ae(i):e||(e=a&~l,e!==0&&(n=Ae(e)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,e=t&-t,u>=e||u===32&&(e&4194048)!==0)?t:n}function Ma(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Ld(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=On;return On<<=1,(On&62914560)===0&&(On=4194304),l}function $u(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 Vd(l,t,e,a,n,u){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 f=l.entanglements,s=l.expirationTimes,v=l.hiddenUpdates;for(e=i&~e;0<e;){var p=31-et(e),T=1<<p;f[p]=0,s[p]=-1;var g=v[p];if(g!==null)for(v[p]=null,p=0;p<g.length;p++){var S=g[p];S!==null&&(S.lane&=-536870913)}e&=~T}a!==0&&xf(l,a,0),u!==0&&n===0&&l.tag!==0&&(l.suspendedLanes|=u&~(i&~t))}function xf(l,t,e){l.pendingLanes|=t,l.suspendedLanes&=~t;var a=31-et(t);l.entangledLanes|=t,l.entanglements[a]=l.entanglements[a]|1073741824|e&261930}function jf(l,t){var e=l.entangledLanes|=t;for(l=l.entanglements;e;){var a=31-et(e),n=1<<a;n&t|l[a]&t&&(l[a]|=t),e&=~n}}function Tf(l,t){var e=t&-t;return e=(e&42)!==0?1:Wu(e),(e&(l.suspendedLanes|t))!==0?0:e}function Wu(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 Fu(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function zf(){var l=U.p;return l!==0?l:(l=window.event,l===void 0?32:od(l.type))}function Af(l,t){var e=U.p;try{return U.p=l,t()}finally{U.p=e}}var Pt=Math.random().toString(36).slice(2),Rl="__reactFiber$"+Pt,Jl="__reactProps$"+Pt,Ve="__reactContainer$"+Pt,Iu="__reactEvents$"+Pt,Kd="__reactListeners$"+Pt,Jd="__reactHandles$"+Pt,_f="__reactResources$"+Pt,Ca="__reactMarker$"+Pt;function Pu(l){delete l[Rl],delete l[Jl],delete l[Iu],delete l[Kd],delete l[Jd]}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=kr(l);l!==null;){if(e=l[Rl])return e;l=kr(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(h(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 Ef=new Set,Of={};function _e(l,t){ke(l,t),ke(l+"Capture",t)}function ke(l,t){for(Of[l]=t,l=0;l<t.length;l++)Ef.add(t[l])}var wd=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]*$"),Nf={},Mf={};function kd(l){return Ju.call(Mf,l)?!0:Ju.call(Nf,l)?!1:wd.test(l)?Mf[l]=!0:(Nf[l]=!0,!1)}function Mn(l,t,e){if(kd(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 Dn(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 dt(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Df(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $d(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 n=a.get,u=a.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){e=""+i,u.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 li(l){if(!l._valueTracker){var t=Df(l)?"checked":"value";l._valueTracker=$d(l,t,""+l[t])}}function Cf(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var e=t.getValue(),a="";return l&&(a=Df(l)?l.checked?"true":"false":l.value),l=a,l!==e?(t.setValue(l),!0):!1}function Cn(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 Wd=/[\n"\\]/g;function ht(l){return l.replace(Wd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ti(l,t,e,a,n,u,i,f){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=""+dt(t)):l.value!==""+dt(t)&&(l.value=""+dt(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?ei(l,i,dt(t)):e!=null?ei(l,i,dt(e)):a!=null&&l.removeAttribute("value"),n==null&&u!=null&&(l.defaultChecked=!!u),n!=null&&(l.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?l.name=""+dt(f):l.removeAttribute("name")}function Uf(l,t,e,a,n,u,i,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(l.type=u),t!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){li(l);return}e=e!=null?""+dt(e):"",t=t!=null?""+dt(t):e,f||t===l.value||(l.value=t),l.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=f?l.checked:!!a,l.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i),li(l)}function ei(l,t,e){t==="number"&&Cn(l.ownerDocument)===l||l.defaultValue===""+e||(l.defaultValue=""+e)}function $e(l,t,e,a){if(l=l.options,t){t={};for(var n=0;n<e.length;n++)t["$"+e[n]]=!0;for(e=0;e<l.length;e++)n=t.hasOwnProperty("$"+l[e].value),l[e].selected!==n&&(l[e].selected=n),n&&a&&(l[e].defaultSelected=!0)}else{for(e=""+dt(e),t=null,n=0;n<l.length;n++){if(l[n].value===e){l[n].selected=!0,a&&(l[n].defaultSelected=!0);return}t!==null||l[n].disabled||(t=l[n])}t!==null&&(t.selected=!0)}}function Rf(l,t,e){if(t!=null&&(t=""+dt(t),t!==l.value&&(l.value=t),e==null)){l.defaultValue!==t&&(l.defaultValue=t);return}l.defaultValue=e!=null?""+dt(e):""}function Bf(l,t,e,a){if(t==null){if(a!=null){if(e!=null)throw Error(h(92));if(jt(a)){if(1<a.length)throw Error(h(93));a=a[0]}e=a}e==null&&(e=""),t=e}e=dt(t),l.defaultValue=e,a=l.textContent,a===e&&a!==""&&a!==null&&(l.value=a),li(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 Fd=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||Fd.has(t)?t==="float"?l.cssFloat=e:l[t]=(""+e).trim():l[t]=e+"px"}function qf(l,t,e){if(t!=null&&typeof t!="object")throw Error(h(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 n in t)a=t[n],t.hasOwnProperty(n)&&e[n]!==a&&Hf(l,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Hf(l,u,t[u])}function ai(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 Id=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"]]),Pd=/^[\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 Un(l){return Pd.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Bt(){}var ni=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 Yf(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(ti(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="'+ht(""+t)+'"][type="radio"]'),t=0;t<e.length;t++){var a=e[t];if(a!==l&&a.form===l.form){var n=a[Jl]||null;if(!n)throw Error(h(90));ti(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<e.length;t++)a=e[t],a.form===l.form&&Cf(a)}break l;case"textarea":Rf(l,e.value,e.defaultValue);break l;case"select":t=e.value,t!=null&&$e(l,!!e.multiple,t,!1)}}}var ii=!1;function Gf(l,t,e){if(ii)return l(t,e);ii=!0;try{var a=l(t);return a}finally{if(ii=!1,(Fe!==null||Ie!==null)&&(bu(),Fe&&(t=Fe,l=Ie,Ie=Fe=null,Yf(t),l)))for(t=0;t<l.length;t++)Yf(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(h(231,t,typeof e));return e}var Ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ci=!1;if(Ht)try{var Ba={};Object.defineProperty(Ba,"passive",{get:function(){ci=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{ci=!1}var le=null,fi=null,Rn=null;function Xf(){if(Rn)return Rn;var l,t=fi,e=t.length,a,n="value"in le?le.value:le.textContent,u=n.length;for(l=0;l<e&&t[l]===n[l];l++);var i=e-l;for(a=1;a<=i&&t[e-a]===n[u-a];a++);return Rn=n.slice(l,1<a?1-a:void 0)}function Bn(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 Hn(){return!0}function Qf(){return!1}function wl(l){function t(e,a,n,u,i){this._reactName=e,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var f in l)l.hasOwnProperty(f)&&(e=l[f],this[f]=e?e(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Hn:Qf,this.isPropagationStopped=Qf,this}return M(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=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){},isPersistent:Hn}),t}var Ee={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qn=wl(Ee),Ha=M({},Ee,{view:0,detail:0}),lh=wl(Ha),si,oi,qa,Yn=M({},Ha,{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"?(si=l.screenX-qa.screenX,oi=l.screenY-qa.screenY):oi=si=0,qa=l),si)},movementY:function(l){return"movementY"in l?l.movementY:oi}}),Zf=wl(Yn),th=M({},Yn,{dataTransfer:0}),eh=wl(th),ah=M({},Ha,{relatedTarget:0}),ri=wl(ah),nh=M({},Ee,{animationName:0,elapsedTime:0,pseudoElement:0}),uh=wl(nh),ih=M({},Ee,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),ch=wl(ih),fh=M({},Ee,{data:0}),Lf=wl(fh),sh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oh={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"},rh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dh(l){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(l):(l=rh[l])?!!t[l]:!1}function di(){return dh}var hh=M({},Ha,{key:function(l){if(l.key){var t=sh[l.key]||l.key;if(t!=="Unidentified")return t}return l.type==="keypress"?(l=Bn(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?oh[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"?Bn(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Bn(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),mh=wl(hh),yh=M({},Yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vf=wl(yh),vh=M({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:di}),gh=wl(vh),Sh=M({},Ee,{propertyName:0,elapsedTime:0,pseudoElement:0}),ph=wl(Sh),bh=M({},Yn,{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}),xh=wl(bh),jh=M({},Ee,{newState:0,oldState:0}),Th=wl(jh),zh=[9,13,27,32],hi=Ht&&"CompositionEvent"in window,Ya=null;Ht&&"documentMode"in document&&(Ya=document.documentMode);var Ah=Ht&&"TextEvent"in window&&!Ya,Kf=Ht&&(!hi||Ya&&8<Ya&&11>=Ya),Jf=" ",wf=!1;function kf(l,t){switch(l){case"keyup":return zh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $f(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Pe=!1;function _h(l,t){switch(l){case"compositionend":return $f(t);case"keypress":return t.which!==32?null:(wf=!0,Jf);case"textInput":return l=t.data,l===Jf&&wf?null:l;default:return null}}function Eh(l,t){if(Pe)return l==="compositionend"||!hi&&kf(l,t)?(l=Xf(),Rn=fi=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 Kf&&t.locale!=="ko"?null:t.data;default:return null}}var Oh={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 Wf(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t==="input"?!!Oh[l.type]:t==="textarea"}function Ff(l,t,e,a){Fe?Ie?Ie.push(a):Ie=[a]:Fe=a,t=Eu(t,"onChange"),0<t.length&&(e=new qn("onChange","change",null,e,a),l.push({event:e,listeners:t}))}var Ga=null,Xa=null;function Nh(l){Rr(l,0)}function Gn(l){var t=Ua(l);if(Cf(t))return l}function If(l,t){if(l==="change")return t}var Pf=!1;if(Ht){var mi;if(Ht){var yi="oninput"in document;if(!yi){var ls=document.createElement("div");ls.setAttribute("oninput","return;"),yi=typeof ls.oninput=="function"}mi=yi}else mi=!1;Pf=mi&&(!document.documentMode||9<document.documentMode)}function ts(){Ga&&(Ga.detachEvent("onpropertychange",es),Xa=Ga=null)}function es(l){if(l.propertyName==="value"&&Gn(Xa)){var t=[];Ff(t,Xa,l,ui(l)),Gf(Nh,t)}}function Mh(l,t,e){l==="focusin"?(ts(),Ga=t,Xa=e,Ga.attachEvent("onpropertychange",es)):l==="focusout"&&ts()}function Dh(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Gn(Xa)}function Ch(l,t){if(l==="click")return Gn(t)}function Uh(l,t){if(l==="input"||l==="change")return Gn(t)}function Rh(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var at=typeof Object.is=="function"?Object.is:Rh;function Qa(l,t){if(at(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 n=e[a];if(!Ju.call(t,n)||!at(l[n],t[n]))return!1}return!0}function as(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function ns(l,t){var e=as(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=as(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 is(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Cn(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=Cn(l.document)}return t}function vi(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 Bh=Ht&&"documentMode"in document&&11>=document.documentMode,la=null,gi=null,Za=null,Si=!1;function cs(l,t,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Si||la==null||la!==Cn(a)||(a=la,"selectionStart"in a&&vi(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=Eu(gi,"onSelect"),0<a.length&&(t=new qn("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")},pi={},fs={};Ht&&(fs=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(pi[l])return pi[l];if(!ta[l])return l;var t=ta[l],e;for(e in t)if(t.hasOwnProperty(e)&&e in fs)return pi[l]=t[e];return l}var ss=Ne("animationend"),os=Ne("animationiteration"),rs=Ne("animationstart"),Hh=Ne("transitionrun"),qh=Ne("transitionstart"),Yh=Ne("transitioncancel"),ds=Ne("transitionend"),hs=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){hs.set(l,t),_e(t,[l])}var Xn=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)},mt=[],ea=0,xi=0;function Qn(){for(var l=ea,t=xi=ea=0;t<l;){var e=mt[t];mt[t++]=null;var a=mt[t];mt[t++]=null;var n=mt[t];mt[t++]=null;var u=mt[t];if(mt[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&ms(e,n,u)}}function Zn(l,t,e,a){mt[ea++]=l,mt[ea++]=t,mt[ea++]=e,mt[ea++]=a,xi|=a,l.lanes|=a,l=l.alternate,l!==null&&(l.lanes|=a)}function ji(l,t,e,a){return Zn(l,t,e,a),Ln(l)}function Me(l,t){return Zn(l,null,null,t),Ln(l)}function ms(l,t,e){l.lanes|=e;var a=l.alternate;a!==null&&(a.lanes|=e);for(var n=!1,u=l.return;u!==null;)u.childLanes|=e,a=u.alternate,a!==null&&(a.childLanes|=e),u.tag===22&&(l=u.stateNode,l===null||l._visibility&1||(n=!0)),l=u,u=u.return;return l.tag===3?(u=l.stateNode,n&&t!==null&&(n=31-et(e),l=u.hiddenUpdates,a=l[n],a===null?l[n]=[t]:a.push(t),t.lane=e|536870912),u):null}function Ln(l){if(50<rn)throw rn=0,Dc=null,Error(h(185));for(var t=l.return;t!==null;)l=t,t=l.return;return l.tag===3?l.stateNode:null}var aa={};function Gh(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 nt(l,t,e,a){return new Gh(l,t,e,a)}function Ti(l){return l=l.prototype,!(!l||!l.isReactComponent)}function qt(l,t){var e=l.alternate;return e===null?(e=nt(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 ys(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 Vn(l,t,e,a,n,u){var i=0;if(a=l,typeof l=="function")Ti(l)&&(i=1);else if(typeof l=="string")i=Vm(l,e,q.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case Et:return l=nt(31,e,t,n),l.elementType=Et,l.lanes=u,l;case nl:return De(e.children,n,u,t);case tl:i=8,n|=24;break;case bl:return l=nt(12,e,t,n|2),l.elementType=bl,l.lanes=u,l;case _t:return l=nt(13,e,t,n),l.elementType=_t,l.lanes=u,l;case Ll:return l=nt(19,e,t,n),l.elementType=Ll,l.lanes=u,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Gl:i=10;break l;case Ml:i=9;break l;case rt:i=11;break l;case el:i=14;break l;case Vl:i=16,a=null;break l}i=29,e=Error(h(130,l===null?"null":typeof l,"")),a=null}return t=nt(i,e,t,n),t.elementType=l,t.type=a,t.lanes=u,t}function De(l,t,e,a){return l=nt(7,l,a,t),l.lanes=e,l}function zi(l,t,e){return l=nt(6,l,null,t),l.lanes=e,l}function vs(l){var t=nt(18,null,null,0);return t.stateNode=l,t}function Ai(l,t,e){return t=nt(4,l.children!==null?l.children:[],l.key,t),t.lanes=e,t.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},t}var gs=new WeakMap;function yt(l,t){if(typeof l=="object"&&l!==null){var e=gs.get(l);return e!==void 0?e:(t={value:l,source:t,stack:vf(t)},gs.set(l,t),t)}return{value:l,source:t,stack:vf(t)}}var na=[],ua=0,Kn=null,La=0,vt=[],gt=0,te=null,Nt=1,Mt="";function Yt(l,t){na[ua++]=La,na[ua++]=Kn,Kn=l,La=t}function Ss(l,t,e){vt[gt++]=Nt,vt[gt++]=Mt,vt[gt++]=te,te=l;var a=Nt;l=Mt;var n=32-et(a)-1;a&=~(1<<n),e+=1;var u=32-et(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Nt=1<<32-et(t)+n|e<<n|a,Mt=u+l}else Nt=1<<u|e<<n|a,Mt=l}function _i(l){l.return!==null&&(Yt(l,1),Ss(l,1,0))}function Ei(l){for(;l===Kn;)Kn=na[--ua],na[ua]=null,La=na[--ua],na[ua]=null;for(;l===te;)te=vt[--gt],vt[gt]=null,Mt=vt[--gt],vt[gt]=null,Nt=vt[--gt],vt[gt]=null}function ps(l,t){vt[gt++]=Nt,vt[gt++]=Mt,vt[gt++]=te,Nt=t.id,Mt=t.overflow,te=l}var Bl=null,gl=null,al=!1,ee=null,St=!1,Oi=Error(h(519));function ae(l){var t=Error(h(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(yt(t,l)),Oi}function bs(l){var t=l.stateNode,e=l.type,a=l.memoizedProps;switch(t[Rl]=l,t[Jl]=a,e){case"dialog":F("cancel",t),F("close",t);break;case"iframe":case"object":case"embed":F("load",t);break;case"video":case"audio":for(e=0;e<hn.length;e++)F(hn[e],t);break;case"source":F("error",t);break;case"img":case"image":case"link":F("error",t),F("load",t);break;case"details":F("toggle",t);break;case"input":F("invalid",t),Uf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":F("invalid",t);break;case"textarea":F("invalid",t),Bf(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||Yr(t.textContent,e)?(a.popover!=null&&(F("beforetoggle",t),F("toggle",t)),a.onScroll!=null&&F("scroll",t),a.onScrollEnd!=null&&F("scrollend",t),a.onClick!=null&&(t.onclick=Bt),t=!0):t=!1,t||ae(l,!0)}function xs(l){for(Bl=l.return;Bl;)switch(Bl.tag){case 5:case 31:case 13:St=!1;return;case 27:case 3:St=!0;return;default:Bl=Bl.return}}function ia(l){if(l!==Bl)return!1;if(!al)return xs(l),al=!0,!1;var t=l.tag,e;if((e=t!==3&&t!==27)&&((e=t===5)&&(e=l.type,e=!(e!=="form"&&e!=="button")||Jc(l.type,l.memoizedProps)),e=!e),e&&gl&&ae(l),xs(l),t===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(h(317));gl=wr(l)}else if(t===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(h(317));gl=wr(l)}else t===27?(t=gl,ge(l.type)?(l=Fc,Fc=null,gl=l):gl=t):gl=Bl?bt(l.stateNode.nextSibling):null;return!0}function Ce(){gl=Bl=null,al=!1}function Ni(){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 Mi=d(null),Ue=null,Gt=null;function ne(l,t,e){R(Mi,t._currentValue),t._currentValue=e}function Xt(l){l._currentValue=Mi.current,z(Mi)}function Di(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 Ci(l,t,e,a){var n=l.child;for(n!==null&&(n.return=l);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;l:for(;u!==null;){var f=u;u=n;for(var s=0;s<t.length;s++)if(f.context===t[s]){u.lanes|=e,f=u.alternate,f!==null&&(f.lanes|=e),Di(u.return,e,l),a||(i=null);break l}u=f.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(h(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),Di(i,e,l),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===l){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ca(l,t,e,a){l=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(h(387));if(i=i.memoizedProps,i!==null){var f=n.type;at(n.pendingProps.value,i.value)||(l!==null?l.push(f):l=[f])}}else if(n===fl.current){if(i=n.alternate,i===null)throw Error(h(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(l!==null?l.push(Sn):l=[Sn])}n=n.return}l!==null&&Ci(t,l,e,a),t.flags|=262144}function Jn(l){for(l=l.firstContext;l!==null;){if(!at(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 Hl(l){return js(Ue,l)}function wn(l,t){return Ue===null&&Re(l),js(l,t)}function js(l,t){var e=t._currentValue;if(t={context:t,memoizedValue:e,next:null},Gt===null){if(l===null)throw Error(h(308));Gt=t,l.dependencies={lanes:0,firstContext:t},l.flags|=524288}else Gt=Gt.next=t;return e}var Xh=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()})}},Qh=o.unstable_scheduleCallback,Zh=o.unstable_NormalPriority,_l={$$typeof:Gl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ui(){return{controller:new Xh,data:new Map,refCount:0}}function Ka(l){l.refCount--,l.refCount===0&&Qh(Zh,function(){l.controller.abort()})}var Ja=null,Ri=0,fa=0,sa=null;function Lh(l,t){if(Ja===null){var e=Ja=[];Ri=0,fa=qc(),sa={status:"pending",value:void 0,then:function(a){e.push(a)}}}return Ri++,t.then(Ts,Ts),t}function Ts(){if(--Ri===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 Vh(l,t){var e=[],a={status:"pending",value:null,reason:null,then:function(n){e.push(n)}};return l.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<e.length;n++)(0,e[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<e.length;n++)(0,e[n])(void 0)}),a}var zs=x.S;x.S=function(l,t){fr=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Lh(l,t),zs!==null&&zs(l,t)};var Be=d(null);function Bi(){var l=Be.current;return l!==null?l:vl.pooledCache}function kn(l,t){t===null?R(Be,Be.current):R(Be,t.pool)}function As(){var l=Bi();return l===null?null:{parent:_l._currentValue,pool:l}}var oa=Error(h(460)),Hi=Error(h(474)),$n=Error(h(542)),Wn={then:function(){}};function _s(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Es(l,t,e){switch(e=l[e],e===void 0?l.push(t):e!==t&&(t.then(Bt,Bt),t=e),t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,Ns(l),l;default:if(typeof t.status=="string")t.then(Bt,Bt);else{if(l=vl,l!==null&&100<l.shellSuspendCounter)throw Error(h(482));l=t,l.status="pending",l.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,Ns(l),l}throw qe=t,oa}}function He(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 Os(){if(qe===null)throw Error(h(459));var l=qe;return qe=null,l}function Ns(l){if(l===oa||l===$n)throw Error(h(483))}var ra=null,wa=0;function Fn(l){var t=wa;return wa+=1,ra===null&&(ra=[]),Es(ra,l,t)}function ka(l,t){t=t.props.ref,l.ref=t!==void 0?t:null}function In(l,t){throw t.$$typeof===A?Error(h(525)):(l=Object.prototype.toString.call(t),Error(h(31,l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)))}function Ms(l){function t(m,r){if(l){var y=m.deletions;y===null?(m.deletions=[r],m.flags|=16):y.push(r)}}function e(m,r){if(!l)return null;for(;r!==null;)t(m,r),r=r.sibling;return null}function a(m){for(var r=new Map;m!==null;)m.key!==null?r.set(m.key,m):r.set(m.index,m),m=m.sibling;return r}function n(m,r){return m=qt(m,r),m.index=0,m.sibling=null,m}function u(m,r,y){return m.index=y,l?(y=m.alternate,y!==null?(y=y.index,y<r?(m.flags|=67108866,r):y):(m.flags|=67108866,r)):(m.flags|=1048576,r)}function i(m){return l&&m.alternate===null&&(m.flags|=67108866),m}function f(m,r,y,j){return r===null||r.tag!==6?(r=zi(y,m.mode,j),r.return=m,r):(r=n(r,y),r.return=m,r)}function s(m,r,y,j){var G=y.type;return G===nl?p(m,r,y.props.children,j,y.key):r!==null&&(r.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===Vl&&He(G)===r.type)?(r=n(r,y.props),ka(r,y),r.return=m,r):(r=Vn(y.type,y.key,y.props,null,m.mode,j),ka(r,y),r.return=m,r)}function v(m,r,y,j){return r===null||r.tag!==4||r.stateNode.containerInfo!==y.containerInfo||r.stateNode.implementation!==y.implementation?(r=Ai(y,m.mode,j),r.return=m,r):(r=n(r,y.children||[]),r.return=m,r)}function p(m,r,y,j,G){return r===null||r.tag!==7?(r=De(y,m.mode,j,G),r.return=m,r):(r=n(r,y),r.return=m,r)}function T(m,r,y){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=zi(""+r,m.mode,y),r.return=m,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case I:return y=Vn(r.type,r.key,r.props,null,m.mode,y),ka(y,r),y.return=m,y;case L:return r=Ai(r,m.mode,y),r.return=m,r;case Vl:return r=He(r),T(m,r,y)}if(jt(r)||Kl(r))return r=De(r,m.mode,y,null),r.return=m,r;if(typeof r.then=="function")return T(m,Fn(r),y);if(r.$$typeof===Gl)return T(m,wn(m,r),y);In(m,r)}return null}function g(m,r,y,j){var G=r!==null?r.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return G!==null?null:f(m,r,""+y,j);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case I:return y.key===G?s(m,r,y,j):null;case L:return y.key===G?v(m,r,y,j):null;case Vl:return y=He(y),g(m,r,y,j)}if(jt(y)||Kl(y))return G!==null?null:p(m,r,y,j,null);if(typeof y.then=="function")return g(m,r,Fn(y),j);if(y.$$typeof===Gl)return g(m,r,wn(m,y),j);In(m,y)}return null}function S(m,r,y,j,G){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return m=m.get(y)||null,f(r,m,""+j,G);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case I:return m=m.get(j.key===null?y:j.key)||null,s(r,m,j,G);case L:return m=m.get(j.key===null?y:j.key)||null,v(r,m,j,G);case Vl:return j=He(j),S(m,r,y,j,G)}if(jt(j)||Kl(j))return m=m.get(y)||null,p(r,m,j,G,null);if(typeof j.then=="function")return S(m,r,y,Fn(j),G);if(j.$$typeof===Gl)return S(m,r,y,wn(r,j),G);In(r,j)}return null}function B(m,r,y,j){for(var G=null,ul=null,Y=r,k=r=0,ll=null;Y!==null&&k<y.length;k++){Y.index>k?(ll=Y,Y=null):ll=Y.sibling;var il=g(m,Y,y[k],j);if(il===null){Y===null&&(Y=ll);break}l&&Y&&il.alternate===null&&t(m,Y),r=u(il,r,k),ul===null?G=il:ul.sibling=il,ul=il,Y=ll}if(k===y.length)return e(m,Y),al&&Yt(m,k),G;if(Y===null){for(;k<y.length;k++)Y=T(m,y[k],j),Y!==null&&(r=u(Y,r,k),ul===null?G=Y:ul.sibling=Y,ul=Y);return al&&Yt(m,k),G}for(Y=a(Y);k<y.length;k++)ll=S(Y,m,k,y[k],j),ll!==null&&(l&&ll.alternate!==null&&Y.delete(ll.key===null?k:ll.key),r=u(ll,r,k),ul===null?G=ll:ul.sibling=ll,ul=ll);return l&&Y.forEach(function(je){return t(m,je)}),al&&Yt(m,k),G}function X(m,r,y,j){if(y==null)throw Error(h(151));for(var G=null,ul=null,Y=r,k=r=0,ll=null,il=y.next();Y!==null&&!il.done;k++,il=y.next()){Y.index>k?(ll=Y,Y=null):ll=Y.sibling;var je=g(m,Y,il.value,j);if(je===null){Y===null&&(Y=ll);break}l&&Y&&je.alternate===null&&t(m,Y),r=u(je,r,k),ul===null?G=je:ul.sibling=je,ul=je,Y=ll}if(il.done)return e(m,Y),al&&Yt(m,k),G;if(Y===null){for(;!il.done;k++,il=y.next())il=T(m,il.value,j),il!==null&&(r=u(il,r,k),ul===null?G=il:ul.sibling=il,ul=il);return al&&Yt(m,k),G}for(Y=a(Y);!il.done;k++,il=y.next())il=S(Y,m,k,il.value,j),il!==null&&(l&&il.alternate!==null&&Y.delete(il.key===null?k:il.key),r=u(il,r,k),ul===null?G=il:ul.sibling=il,ul=il);return l&&Y.forEach(function(ty){return t(m,ty)}),al&&Yt(m,k),G}function ml(m,r,y,j){if(typeof y=="object"&&y!==null&&y.type===nl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case I:l:{for(var G=y.key;r!==null;){if(r.key===G){if(G=y.type,G===nl){if(r.tag===7){e(m,r.sibling),j=n(r,y.props.children),j.return=m,m=j;break l}}else if(r.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===Vl&&He(G)===r.type){e(m,r.sibling),j=n(r,y.props),ka(j,y),j.return=m,m=j;break l}e(m,r);break}else t(m,r);r=r.sibling}y.type===nl?(j=De(y.props.children,m.mode,j,y.key),j.return=m,m=j):(j=Vn(y.type,y.key,y.props,null,m.mode,j),ka(j,y),j.return=m,m=j)}return i(m);case L:l:{for(G=y.key;r!==null;){if(r.key===G)if(r.tag===4&&r.stateNode.containerInfo===y.containerInfo&&r.stateNode.implementation===y.implementation){e(m,r.sibling),j=n(r,y.children||[]),j.return=m,m=j;break l}else{e(m,r);break}else t(m,r);r=r.sibling}j=Ai(y,m.mode,j),j.return=m,m=j}return i(m);case Vl:return y=He(y),ml(m,r,y,j)}if(jt(y))return B(m,r,y,j);if(Kl(y)){if(G=Kl(y),typeof G!="function")throw Error(h(150));return y=G.call(y),X(m,r,y,j)}if(typeof y.then=="function")return ml(m,r,Fn(y),j);if(y.$$typeof===Gl)return ml(m,r,wn(m,y),j);In(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,r!==null&&r.tag===6?(e(m,r.sibling),j=n(r,y),j.return=m,m=j):(e(m,r),j=zi(y,m.mode,j),j.return=m,m=j),i(m)):e(m,r)}return function(m,r,y,j){try{wa=0;var G=ml(m,r,y,j);return ra=null,G}catch(Y){if(Y===oa||Y===$n)throw Y;var ul=nt(29,Y,null,m.mode);return ul.lanes=j,ul.return=m,ul}finally{}}}var Ye=Ms(!0),Ds=Ms(!1),ue=!1;function qi(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yi(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 n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Ln(l),ms(l,null,e),t}return Zn(l,a,t,e),Ln(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,jf(l,e)}}function Gi(l,t){var e=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var n=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?n=u=t:u=u.next=t}else n=u=t;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,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 Xi=!1;function Wa(){if(Xi){var l=sa;if(l!==null)throw l}}function Fa(l,t,e,a){Xi=!1;var n=l.updateQueue;ue=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var s=f,v=s.next;s.next=null,i===null?u=v:i.next=v,i=s;var p=l.alternate;p!==null&&(p=p.updateQueue,f=p.lastBaseUpdate,f!==i&&(f===null?p.firstBaseUpdate=v:f.next=v,p.lastBaseUpdate=s))}if(u!==null){var T=n.baseState;i=0,p=v=s=null,f=u;do{var g=f.lane&-536870913,S=g!==f.lane;if(S?(P&g)===g:(a&g)===g){g!==0&&g===fa&&(Xi=!0),p!==null&&(p=p.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});l:{var B=l,X=f;g=t;var ml=e;switch(X.tag){case 1:if(B=X.payload,typeof B=="function"){T=B.call(ml,T,g);break l}T=B;break l;case 3:B.flags=B.flags&-65537|128;case 0:if(B=X.payload,g=typeof B=="function"?B.call(ml,T,g):B,g==null)break l;T=M({},T,g);break l;case 2:ue=!0}}g=f.callback,g!==null&&(l.flags|=64,S&&(l.flags|=8192),S=n.callbacks,S===null?n.callbacks=[g]:S.push(g))}else S={lane:g,tag:f.tag,payload:f.payload,callback:f.callback,next:null},p===null?(v=p=S,s=T):p=p.next=S,i|=g;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;S=f,f=S.next,S.next=null,n.lastBaseUpdate=S,n.shared.pending=null}}while(!0);p===null&&(s=T),n.baseState=s,n.firstBaseUpdate=v,n.lastBaseUpdate=p,u===null&&(n.shared.lanes=0),de|=i,l.lanes=i,l.memoizedState=T}}function Cs(l,t){if(typeof l!="function")throw Error(h(191,l));l.call(t)}function Us(l,t){var e=l.callbacks;if(e!==null)for(l.callbacks=null,l=0;l<e.length;l++)Cs(e[l],t)}var da=d(null),Pn=d(0);function Rs(l,t){l=$t,R(Pn,l),R(da,t),$t=l|t.baseLanes}function Qi(){R(Pn,$t),R(da,da.current)}function Zi(){$t=Pn.current,z(da),z(Pn)}var ut=d(null),pt=null;function fe(l){var t=l.alternate;R(zl,zl.current&1),R(ut,l),pt===null&&(t===null||da.current!==null||t.memoizedState!==null)&&(pt=l)}function Li(l){R(zl,zl.current),R(ut,l),pt===null&&(pt=l)}function Bs(l){l.tag===22?(R(zl,zl.current),R(ut,l),pt===null&&(pt=l)):se()}function se(){R(zl,zl.current),R(ut,ut.current)}function it(l){z(ut),pt===l&&(pt=null),z(zl)}var zl=d(0);function lu(l){for(var t=l;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||$c(e)||Wc(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,w=null,dl=null,El=null,tu=!1,ha=!1,Ge=!1,eu=0,Ia=0,ma=null,Kh=0;function xl(){throw Error(h(321))}function Vi(l,t){if(t===null)return!1;for(var e=0;e<t.length&&e<l.length;e++)if(!at(l[e],t[e]))return!1;return!0}function Ki(l,t,e,a,n,u){return Qt=u,w=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,x.H=l===null||l.memoizedState===null?po:ic,Ge=!1,u=e(a,n),Ge=!1,ha&&(u=qs(t,e,a,n)),Hs(l),u}function Hs(l){x.H=tn;var t=dl!==null&&dl.next!==null;if(Qt=0,El=dl=w=null,tu=!1,Ia=0,ma=null,t)throw Error(h(300));l===null||Ol||(l=l.dependencies,l!==null&&Jn(l)&&(Ol=!0))}function qs(l,t,e,a){w=l;var n=0;do{if(ha&&(ma=null),Ia=0,ha=!1,25<=n)throw Error(h(301));if(n+=1,El=dl=null,l.updateQueue!=null){var u=l.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}x.H=bo,u=t(e,a)}while(ha);return u}function Jh(){var l=x.H,t=l.useState()[0];return t=typeof t.then=="function"?Pa(t):t,l=l.useState()[0],(dl!==null?dl.memoizedState:null)!==l&&(w.flags|=1024),t}function Ji(){var l=eu!==0;return eu=0,l}function wi(l,t,e){t.updateQueue=l.updateQueue,t.flags&=-2053,l.lanes&=~e}function ki(l){if(tu){for(l=l.memoizedState;l!==null;){var t=l.queue;t!==null&&(t.pending=null),l=l.next}tu=!1}Qt=0,El=dl=w=null,ha=!1,Ia=eu=0,ma=null}function Zl(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return El===null?w.memoizedState=El=l:El=El.next=l,El}function Al(){if(dl===null){var l=w.alternate;l=l!==null?l.memoizedState:null}else l=dl.next;var t=El===null?w.memoizedState:El.next;if(t!==null)El=t,dl=l;else{if(l===null)throw w.alternate===null?Error(h(467)):Error(h(310));dl=l,l={memoizedState:dl.memoizedState,baseState:dl.baseState,baseQueue:dl.baseQueue,queue:dl.queue,next:null},El===null?w.memoizedState=El=l:El=El.next=l}return El}function au(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pa(l){var t=Ia;return Ia+=1,ma===null&&(ma=[]),l=Es(ma,l,t),t=w,(El===null?t.memoizedState:El.next)===null&&(t=t.alternate,x.H=t===null||t.memoizedState===null?po:ic),l}function nu(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return Pa(l);if(l.$$typeof===Gl)return Hl(l)}throw Error(h(438,String(l)))}function $i(l){var t=null,e=w.updateQueue;if(e!==null&&(t=e.memoCache),t==null){var a=w.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),e===null&&(e=au(),w.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 uu(l){var t=Al();return Wi(t,dl,l)}function Wi(l,t,e){var a=l.queue;if(a===null)throw Error(h(311));a.lastRenderedReducer=e;var n=l.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=l.baseState,n===null)l.memoizedState=u;else{t=n.next;var f=i=null,s=null,v=t,p=!1;do{var T=v.lane&-536870913;if(T!==v.lane?(P&T)===T:(Qt&T)===T){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}),T===fa&&(p=!0);else if((Qt&g)===g){v=v.next,g===fa&&(p=!0);continue}else T={lane:0,revertLane:v.revertLane,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},s===null?(f=s=T,i=u):s=s.next=T,w.lanes|=g,de|=g;T=v.action,Ge&&e(u,T),u=v.hasEagerState?v.eagerState:e(u,T)}else g={lane:T,revertLane:v.revertLane,gesture:v.gesture,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},s===null?(f=s=g,i=u):s=s.next=g,w.lanes|=T,de|=T;v=v.next}while(v!==null&&v!==t);if(s===null?i=u:s.next=f,!at(u,l.memoizedState)&&(Ol=!0,p&&(e=sa,e!==null)))throw e;l.memoizedState=u,l.baseState=i,l.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[l.memoizedState,a.dispatch]}function Fi(l){var t=Al(),e=t.queue;if(e===null)throw Error(h(311));e.lastRenderedReducer=l;var a=e.dispatch,n=e.pending,u=t.memoizedState;if(n!==null){e.pending=null;var i=n=n.next;do u=l(u,i.action),i=i.next;while(i!==n);at(u,t.memoizedState)||(Ol=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),e.lastRenderedState=u}return[u,a]}function Ys(l,t,e){var a=w,n=Al(),u=al;if(u){if(e===void 0)throw Error(h(407));e=e()}else e=t();var i=!at((dl||n).memoizedState,e);if(i&&(n.memoizedState=e,Ol=!0),n=n.queue,lc(Qs.bind(null,a,n,l),[l]),n.getSnapshot!==t||i||El!==null&&El.memoizedState.tag&1){if(a.flags|=2048,ya(9,{destroy:void 0},Xs.bind(null,a,n,e,t),null),vl===null)throw Error(h(349));u||(Qt&127)!==0||Gs(a,t,e)}return e}function Gs(l,t,e){l.flags|=16384,l={getSnapshot:t,value:e},t=w.updateQueue,t===null?(t=au(),w.updateQueue=t,t.stores=[l]):(e=t.stores,e===null?t.stores=[l]:e.push(l))}function Xs(l,t,e,a){t.value=e,t.getSnapshot=a,Zs(t)&&Ls(l)}function Qs(l,t,e){return e(function(){Zs(t)&&Ls(l)})}function Zs(l){var t=l.getSnapshot;l=l.value;try{var e=t();return!at(l,e)}catch{return!0}}function Ls(l){var t=Me(l,2);t!==null&&Il(t,l,2)}function Ii(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 Vs(l,t,e,a){return l.baseState=e,Wi(l,dl,typeof a=="function"?a:Zt)}function wh(l,t,e,a,n){if(fu(l))throw Error(h(485));if(l=t.action,l!==null){var u={payload:n,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};x.T!==null?e(!0):u.isTransition=!1,a(u),e=t.pending,e===null?(u.next=t.pending=u,Ks(t,u)):(u.next=e.next,t.pending=e.next=u)}}function Ks(l,t){var e=t.action,a=t.payload,n=l.state;if(t.isTransition){var u=x.T,i={};x.T=i;try{var f=e(n,a),s=x.S;s!==null&&s(i,f),Js(l,t,f)}catch(v){Pi(l,t,v)}finally{u!==null&&i.types!==null&&(u.types=i.types),x.T=u}}else try{u=e(n,a),Js(l,t,u)}catch(v){Pi(l,t,v)}}function Js(l,t,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){ws(l,t,a)},function(a){return Pi(l,t,a)}):ws(l,t,e)}function ws(l,t,e){t.status="fulfilled",t.value=e,ks(t),l.state=e,t=l.pending,t!==null&&(e=t.next,e===t?l.pending=null:(e=e.next,t.next=e,Ks(l,e)))}function Pi(l,t,e){var a=l.pending;if(l.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=e,ks(t),t=t.next;while(t!==a)}l.action=null}function ks(l){l=l.listeners;for(var t=0;t<l.length;t++)(0,l[t])()}function $s(l,t){return t}function Ws(l,t){if(al){var e=vl.formState;if(e!==null){l:{var a=w;if(al){if(gl){t:{for(var n=gl,u=St;n.nodeType!==8;){if(!u){n=null;break t}if(n=bt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){gl=bt(n.nextSibling),a=n.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:$s,lastRenderedState:t},e.queue=a,e=vo.bind(null,w,a),a.dispatch=e,a=Ii(!1),u=uc.bind(null,w,!1,a.queue),a=Zl(),n={state:t,dispatch:null,action:l,pending:null},a.queue=n,e=wh.bind(null,w,n,u,e),n.dispatch=e,a.memoizedState=l,[t,e,!1]}function Fs(l){var t=Al();return Is(t,dl,l)}function Is(l,t,e){if(t=Wi(l,t,$s)[0],l=uu(Zt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Pa(t)}catch(i){throw i===oa?$n:i}else a=t;t=Al();var n=t.queue,u=n.dispatch;return e!==t.memoizedState&&(w.flags|=2048,ya(9,{destroy:void 0},kh.bind(null,n,e),null)),[a,u,l]}function kh(l,t){l.action=t}function Ps(l){var t=Al(),e=dl;if(e!==null)return Is(t,e,l);Al(),t=t.memoizedState,e=Al();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=w.updateQueue,t===null&&(t=au(),w.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 lo(){return Al().memoizedState}function iu(l,t,e,a){var n=Zl();w.flags|=l,n.memoizedState=ya(1|t,{destroy:void 0},e,a===void 0?null:a)}function cu(l,t,e,a){var n=Al();a=a===void 0?null:a;var u=n.memoizedState.inst;dl!==null&&a!==null&&Vi(a,dl.memoizedState.deps)?n.memoizedState=ya(t,u,e,a):(w.flags|=l,n.memoizedState=ya(1|t,u,e,a))}function to(l,t){iu(8390656,8,l,t)}function lc(l,t){cu(2048,8,l,t)}function $h(l){w.flags|=4;var t=w.updateQueue;if(t===null)t=au(),w.updateQueue=t,t.events=[l];else{var e=t.events;e===null?t.events=[l]:e.push(l)}}function eo(l){var t=Al().memoizedState;return $h({ref:t,nextImpl:l}),function(){if((cl&2)!==0)throw Error(h(440));return t.impl.apply(void 0,arguments)}}function ao(l,t){return cu(4,2,l,t)}function no(l,t){return cu(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 io(l,t,e){e=e!=null?e.concat([l]):null,cu(4,4,uo.bind(null,t,l),e)}function tc(){}function co(l,t){var e=Al();t=t===void 0?null:t;var a=e.memoizedState;return t!==null&&Vi(t,a[1])?a[0]:(e.memoizedState=[l,t],l)}function fo(l,t){var e=Al();t=t===void 0?null:t;var a=e.memoizedState;if(t!==null&&Vi(t,a[1]))return a[0];if(a=l(),Ge){It(!0);try{l()}finally{It(!1)}}return e.memoizedState=[a,t],a}function ec(l,t,e){return e===void 0||(Qt&1073741824)!==0&&(P&261930)===0?l.memoizedState=t:(l.memoizedState=e,l=or(),w.lanes|=l,de|=l,e)}function so(l,t,e,a){return at(e,t)?e:da.current!==null?(l=ec(l,e,a),at(l,t)||(Ol=!0),l):(Qt&42)===0||(Qt&1073741824)!==0&&(P&261930)===0?(Ol=!0,l.memoizedState=e):(l=or(),w.lanes|=l,de|=l,t)}function oo(l,t,e,a,n){var u=U.p;U.p=u!==0&&8>u?u:8;var i=x.T,f={};x.T=f,uc(l,!1,t,e);try{var s=n(),v=x.S;if(v!==null&&v(f,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var p=Vh(s,a);ln(l,t,p,st(l))}else ln(l,t,a,st(l))}catch(T){ln(l,t,{then:function(){},status:"rejected",reason:T},st())}finally{U.p=u,i!==null&&f.types!==null&&(i.types=f.types),x.T=i}}function Wh(){}function ac(l,t,e,a){if(l.tag!==5)throw Error(h(476));var n=ro(l).queue;oo(l,n,t,Z,e===null?Wh:function(){return ho(l),e(a)})}function ro(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:Z},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 ho(l){var t=ro(l);t.next===null&&(t=l.alternate.memoizedState),ln(l,t.next.queue,{},st())}function nc(){return Hl(Sn)}function mo(){return Al().memoizedState}function yo(){return Al().memoizedState}function Fh(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=st();l=ie(e);var a=ce(t,l,e);a!==null&&(Il(a,t,e),$a(a,t,e)),t={cache:Ui()},l.payload=t;return}t=t.return}}function Ih(l,t,e){var a=st();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},fu(l)?go(t,e):(e=ji(l,t,e,a),e!==null&&(Il(e,l,a),So(e,t,a)))}function vo(l,t,e){var a=st();ln(l,t,e,a)}function ln(l,t,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(fu(l))go(t,n);else{var u=l.alternate;if(l.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,f=u(i,e);if(n.hasEagerState=!0,n.eagerState=f,at(f,i))return Zn(l,t,n,0),vl===null&&Qn(),!1}catch{}finally{}if(e=ji(l,t,n,a),e!==null)return Il(e,l,a),So(e,t,a),!0}return!1}function uc(l,t,e,a){if(a={lane:2,revertLane:qc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fu(l)){if(t)throw Error(h(479))}else t=ji(l,e,a,2),t!==null&&Il(t,l,2)}function fu(l){var t=l.alternate;return l===w||t!==null&&t===w}function go(l,t){ha=tu=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function So(l,t,e){if((e&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,jf(l,e)}}var tn={readContext:Hl,use:nu,useCallback:xl,useContext:xl,useEffect:xl,useImperativeHandle:xl,useLayoutEffect:xl,useInsertionEffect:xl,useMemo:xl,useReducer:xl,useRef:xl,useState:xl,useDebugValue:xl,useDeferredValue:xl,useTransition:xl,useSyncExternalStore:xl,useId:xl,useHostTransitionStatus:xl,useFormState:xl,useActionState:xl,useOptimistic:xl,useMemoCache:xl,useCacheRefresh:xl};tn.useEffectEvent=xl;var po={readContext:Hl,use:nu,useCallback:function(l,t){return Zl().memoizedState=[l,t===void 0?null:t],l},useContext:Hl,useEffect:to,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,iu(4194308,4,uo.bind(null,t,l),e)},useLayoutEffect:function(l,t){return iu(4194308,4,l,t)},useInsertionEffect:function(l,t){iu(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 n=e(t);if(Ge){It(!0);try{e(t)}finally{It(!1)}}}else n=t;return a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:n},a.queue=l,l=l.dispatch=Ih.bind(null,w,l),[a.memoizedState,l]},useRef:function(l){var t=Zl();return l={current:l},t.memoizedState=l},useState:function(l){l=Ii(l);var t=l.queue,e=vo.bind(null,w,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:tc,useDeferredValue:function(l,t){var e=Zl();return ec(e,l,t)},useTransition:function(){var l=Ii(!1);return l=oo.bind(null,w,l.queue,!0,!1),Zl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var a=w,n=Zl();if(al){if(e===void 0)throw Error(h(407));e=e()}else{if(e=t(),vl===null)throw Error(h(349));(P&127)!==0||Gs(a,t,e)}n.memoizedState=e;var u={value:e,getSnapshot:t};return n.queue=u,to(Qs.bind(null,a,u,l),[l]),a.flags|=2048,ya(9,{destroy:void 0},Xs.bind(null,a,u,e,t),null),e},useId:function(){var l=Zl(),t=vl.identifierPrefix;if(al){var e=Mt,a=Nt;e=(a&~(1<<32-et(a)-1)).toString(32)+e,t="_"+t+"R_"+e,e=eu++,0<e&&(t+="H"+e.toString(32)),t+="_"}else e=Kh++,t="_"+t+"r_"+e.toString(32)+"_";return l.memoizedState=t},useHostTransitionStatus:nc,useFormState:Ws,useActionState:Ws,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,w,!0,e),e.dispatch=t,[l,t]},useMemoCache:$i,useCacheRefresh:function(){return Zl().memoizedState=Fh.bind(null,w)},useEffectEvent:function(l){var t=Zl(),e={impl:l};return t.memoizedState=e,function(){if((cl&2)!==0)throw Error(h(440));return e.impl.apply(void 0,arguments)}}},ic={readContext:Hl,use:nu,useCallback:co,useContext:Hl,useEffect:lc,useImperativeHandle:io,useInsertionEffect:ao,useLayoutEffect:no,useMemo:fo,useReducer:uu,useRef:lo,useState:function(){return uu(Zt)},useDebugValue:tc,useDeferredValue:function(l,t){var e=Al();return so(e,dl.memoizedState,l,t)},useTransition:function(){var l=uu(Zt)[0],t=Al().memoizedState;return[typeof l=="boolean"?l:Pa(l),t]},useSyncExternalStore:Ys,useId:mo,useHostTransitionStatus:nc,useFormState:Fs,useActionState:Fs,useOptimistic:function(l,t){var e=Al();return Vs(e,dl,l,t)},useMemoCache:$i,useCacheRefresh:yo};ic.useEffectEvent=eo;var bo={readContext:Hl,use:nu,useCallback:co,useContext:Hl,useEffect:lc,useImperativeHandle:io,useInsertionEffect:ao,useLayoutEffect:no,useMemo:fo,useReducer:Fi,useRef:lo,useState:function(){return Fi(Zt)},useDebugValue:tc,useDeferredValue:function(l,t){var e=Al();return dl===null?ec(e,l,t):so(e,dl.memoizedState,l,t)},useTransition:function(){var l=Fi(Zt)[0],t=Al().memoizedState;return[typeof l=="boolean"?l:Pa(l),t]},useSyncExternalStore:Ys,useId:mo,useHostTransitionStatus:nc,useFormState:Ps,useActionState:Ps,useOptimistic:function(l,t){var e=Al();return dl!==null?Vs(e,dl,l,t):(e.baseState=l,[l,e.queue.dispatch])},useMemoCache:$i,useCacheRefresh:yo};bo.useEffectEvent=eo;function cc(l,t,e,a){t=l.memoizedState,e=e(a,t),e=e==null?t:M({},t,e),l.memoizedState=e,l.lanes===0&&(l.updateQueue.baseState=e)}var fc={enqueueSetState:function(l,t,e){l=l._reactInternals;var a=st(),n=ie(a);n.payload=t,e!=null&&(n.callback=e),t=ce(l,n,a),t!==null&&(Il(t,l,a),$a(t,l,a))},enqueueReplaceState:function(l,t,e){l=l._reactInternals;var a=st(),n=ie(a);n.tag=1,n.payload=t,e!=null&&(n.callback=e),t=ce(l,n,a),t!==null&&(Il(t,l,a),$a(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var e=st(),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 xo(l,t,e,a,n,u,i){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!Qa(e,a)||!Qa(n,u):!0}function jo(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&&fc.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=M({},e));for(var n in l)e[n]===void 0&&(e[n]=l[n])}return e}function To(l){Xn(l)}function zo(l){console.error(l)}function Ao(l){Xn(l)}function su(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(n){setTimeout(function(){throw n})}}function sc(l,t,e){return e=ie(e),e.tag=3,e.payload={element:null},e.callback=function(){su(l,t)},e}function Eo(l){return l=ie(l),l.tag=3,l}function Oo(l,t,e,a){var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;l.payload=function(){return n(u)},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 n!="function"&&(he===null?he=new Set([this]):he.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function Ph(l,t,e,a,n){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=e.alternate,t!==null&&ca(t,e,n,!0),e=ut.current,e!==null){switch(e.tag){case 31:case 13:return pt===null?xu():e.alternate===null&&jl===0&&(jl=3),e.flags&=-257,e.flags|=65536,e.lanes=n,a===Wn?e.flags|=16384:(t=e.updateQueue,t===null?e.updateQueue=new Set([a]):t.add(a),Rc(l,a,n)),!1;case 22:return e.flags|=65536,a===Wn?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)),Rc(l,a,n)),!1}throw Error(h(435,e.tag))}return Rc(l,a,n),xu(),!1}if(al)return t=ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Oi&&(l=Error(h(422),{cause:a}),Va(yt(l,e)))):(a!==Oi&&(t=Error(h(423),{cause:a}),Va(yt(t,e))),l=l.current.alternate,l.flags|=65536,n&=-n,l.lanes|=n,a=yt(a,e),n=sc(l.stateNode,a,n),Gi(l,n),jl!==4&&(jl=2)),!1;var u=Error(h(520),{cause:a});if(u=yt(u,e),on===null?on=[u]:on.push(u),jl!==4&&(jl=2),t===null)return!0;a=yt(a,e),e=t;do{switch(e.tag){case 3:return e.flags|=65536,l=n&-n,e.lanes|=l,l=sc(e.stateNode,a,l),Gi(e,l),!1;case 1:if(t=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(he===null||!he.has(u))))return e.flags|=65536,n&=-n,e.lanes|=n,n=Eo(n),Oo(n,l,e,a),Gi(e,n),!1}e=e.return}while(e!==null);return!1}var oc=Error(h(461)),Ol=!1;function ql(l,t,e,a){t.child=l===null?Ds(t,null,e,a):Ye(t,l.child,e,a)}function No(l,t,e,a,n){e=e.render;var u=t.ref;if("ref"in a){var i={};for(var f in a)f!=="ref"&&(i[f]=a[f])}else i=a;return Re(t),a=Ki(l,t,e,i,u,n),f=Ji(),l!==null&&!Ol?(wi(l,t,n),Lt(l,t,n)):(al&&f&&_i(t),t.flags|=1,ql(l,t,a,n),t.child)}function Mo(l,t,e,a,n){if(l===null){var u=e.type;return typeof u=="function"&&!Ti(u)&&u.defaultProps===void 0&&e.compare===null?(t.tag=15,t.type=u,Do(l,t,u,a,n)):(l=Vn(e.type,null,a,t,t.mode,n),l.ref=t.ref,l.return=t,t.child=l)}if(u=l.child,!Sc(l,n)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:Qa,e(i,a)&&l.ref===t.ref)return Lt(l,t,n)}return t.flags|=1,l=qt(u,a),l.ref=t.ref,l.return=t,t.child=l}function Do(l,t,e,a,n){if(l!==null){var u=l.memoizedProps;if(Qa(u,a)&&l.ref===t.ref)if(Ol=!1,t.pendingProps=a=u,Sc(l,n))(l.flags&131072)!==0&&(Ol=!0);else return t.lanes=l.lanes,Lt(l,t,n)}return rc(l,t,e,a,n)}function Co(l,t,e,a){var n=a.children,u=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(u=u!==null?u.baseLanes|e:e,l!==null){for(a=t.child=l.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Uo(l,t,u,e,a)}if((e&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&kn(t,u!==null?u.cachePool:null),u!==null?Rs(t,u):Qi(),Bs(t);else return a=t.lanes=536870912,Uo(l,t,u!==null?u.baseLanes|e:e,e,a)}else u!==null?(kn(t,u.cachePool),Rs(t,u),se(),t.memoizedState=null):(l!==null&&kn(t,null),Qi(),se());return ql(l,t,n,e),t.child}function en(l,t){return l!==null&&l.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Uo(l,t,e,a,n){var u=Bi();return u=u===null?null:{parent:_l._currentValue,pool:u},t.memoizedState={baseLanes:e,cachePool:u},l!==null&&kn(t,null),Qi(),Bs(t),l!==null&&ca(l,t,a,!0),t.childLanes=n,null}function ou(l,t){return t=du({mode:t.mode,children:t.children},l.mode),t.ref=l.ref,l.child=t,t.return=l,t}function Ro(l,t,e){return Ye(t,l.child,null,e),l=ou(t,t.pendingProps),l.flags|=2,it(t),t.memoizedState=null,l}function lm(l,t,e){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,l===null){if(al){if(a.mode==="hidden")return l=ou(t,a),t.lanes=536870912,en(null,l);if(Li(t),(l=gl)?(l=Jr(l,St),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=vs(l),e.return=t,t.child=e,Bl=t,gl=null)):l=null,l===null)throw ae(t);return t.lanes=536870912,null}return ou(t,a)}var u=l.memoizedState;if(u!==null){var i=u.dehydrated;if(Li(t),n)if(t.flags&256)t.flags&=-257,t=Ro(l,t,e);else if(t.memoizedState!==null)t.child=l.child,t.flags|=128,t=null;else throw Error(h(558));else if(Ol||ca(l,t,e,!1),n=(e&l.childLanes)!==0,Ol||n){if(a=vl,a!==null&&(i=Tf(a,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,Me(l,i),Il(a,l,i),oc;xu(),t=Ro(l,t,e)}else l=u.treeContext,gl=bt(i.nextSibling),Bl=t,al=!0,ee=null,St=!1,l!==null&&ps(t,l),t=ou(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 ru(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(h(284));(l===null||l.ref!==e)&&(t.flags|=4194816)}}function rc(l,t,e,a,n){return Re(t),e=Ki(l,t,e,a,void 0,n),a=Ji(),l!==null&&!Ol?(wi(l,t,n),Lt(l,t,n)):(al&&a&&_i(t),t.flags|=1,ql(l,t,e,n),t.child)}function Bo(l,t,e,a,n,u){return Re(t),t.updateQueue=null,e=qs(t,a,e,n),Hs(l),a=Ji(),l!==null&&!Ol?(wi(l,t,u),Lt(l,t,u)):(al&&a&&_i(t),t.flags|=1,ql(l,t,e,u),t.child)}function Ho(l,t,e,a,n){if(Re(t),t.stateNode===null){var u=aa,i=e.contextType;typeof i=="object"&&i!==null&&(u=Hl(i)),u=new e(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=fc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},qi(t),i=e.contextType,u.context=typeof i=="object"&&i!==null?Hl(i):aa,u.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(cc(t,e,i,a),u.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&fc.enqueueReplaceState(u,u.state,null),Fa(t,a,u,n),Wa(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){u=t.stateNode;var f=t.memoizedProps,s=Xe(e,f);u.props=s;var v=u.context,p=e.contextType;i=aa,typeof p=="object"&&p!==null&&(i=Hl(p));var T=e.getDerivedStateFromProps;p=typeof T=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,p||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||v!==i)&&jo(t,u,a,i),ue=!1;var g=t.memoizedState;u.state=g,Fa(t,a,u,n),Wa(),v=t.memoizedState,f||g!==v||ue?(typeof T=="function"&&(cc(t,e,T,a),v=t.memoizedState),(s=ue||xo(t,e,s,a,g,v,i))?(p||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=v),u.props=a,u.state=v,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Yi(l,t),i=t.memoizedProps,p=Xe(e,i),u.props=p,T=t.pendingProps,g=u.context,v=e.contextType,s=aa,typeof v=="object"&&v!==null&&(s=Hl(v)),f=e.getDerivedStateFromProps,(v=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==T||g!==s)&&jo(t,u,a,s),ue=!1,g=t.memoizedState,u.state=g,Fa(t,a,u,n),Wa();var S=t.memoizedState;i!==T||g!==S||ue||l!==null&&l.dependencies!==null&&Jn(l.dependencies)?(typeof f=="function"&&(cc(t,e,f,a),S=t.memoizedState),(p=ue||xo(t,e,p,a,g,S,s)||l!==null&&l.dependencies!==null&&Jn(l.dependencies))?(v||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,S,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,S,s)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=S),u.props=a,u.state=S,u.context=s,a=p):(typeof u.componentDidUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&g===l.memoizedState||(t.flags|=1024),a=!1)}return u=a,ru(l,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,l!==null&&a?(t.child=Ye(t,l.child,null,n),t.child=Ye(t,null,e,n)):ql(l,t,e,n),t.memoizedState=u.state,l=t.child):l=Lt(l,t,n),l}function qo(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 hc(l){return{baseLanes:l,cachePool:As()}}function mc(l,t,e){return l=l!==null?l.childLanes&~e:0,t&&(l|=ft),l}function Yo(l,t,e){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=l!==null&&l.memoizedState===null?!1:(zl.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,l===null){if(al){if(n?fe(t):se(),(l=gl)?(l=Jr(l,St),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=vs(l),e.return=t,t.child=e,Bl=t,gl=null)):l=null,l===null)throw ae(t);return Wc(l)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(se(),n=t.mode,f=du({mode:"hidden",children:f},n),a=De(a,n,e,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=hc(e),a.childLanes=mc(l,i,e),t.memoizedState=dc,en(null,a)):(fe(t),yc(t,f))}var s=l.memoizedState;if(s!==null&&(f=s.dehydrated,f!==null)){if(u)t.flags&256?(fe(t),t.flags&=-257,t=vc(l,t,e)):t.memoizedState!==null?(se(),t.child=l.child,t.flags|=128,t=null):(se(),f=a.fallback,n=t.mode,a=du({mode:"visible",children:a.children},n),f=De(f,n,e,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,Ye(t,l.child,null,e),a=t.child,a.memoizedState=hc(e),a.childLanes=mc(l,i,e),t.memoizedState=dc,t=en(null,a));else if(fe(t),Wc(f)){if(i=f.nextSibling&&f.nextSibling.dataset,i)var v=i.dgst;i=v,a=Error(h(419)),a.stack="",a.digest=i,Va({value:a,source:null,stack:null}),t=vc(l,t,e)}else if(Ol||ca(l,t,e,!1),i=(e&l.childLanes)!==0,Ol||i){if(i=vl,i!==null&&(a=Tf(i,e),a!==0&&a!==s.retryLane))throw s.retryLane=a,Me(l,a),Il(i,l,a),oc;$c(f)||xu(),t=vc(l,t,e)}else $c(f)?(t.flags|=192,t.child=l.child,t=null):(l=s.treeContext,gl=bt(f.nextSibling),Bl=t,al=!0,ee=null,St=!1,l!==null&&ps(t,l),t=yc(t,a.children),t.flags|=4096);return t}return n?(se(),f=a.fallback,n=t.mode,s=l.child,v=s.sibling,a=qt(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,v!==null?f=qt(v,f):(f=De(f,n,e,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,en(null,a),a=t.child,f=l.child.memoizedState,f===null?f=hc(e):(n=f.cachePool,n!==null?(s=_l._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=As(),f={baseLanes:f.baseLanes|e,cachePool:n}),a.memoizedState=f,a.childLanes=mc(l,i,e),t.memoizedState=dc,en(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 yc(l,t){return t=du({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function du(l,t){return l=nt(22,l,null,t),l.lanes=0,l}function vc(l,t,e){return Ye(t,l.child,null,e),l=yc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function Go(l,t,e){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Di(l.return,t,e)}function gc(l,t,e,a,n,u){var i=l.memoizedState;i===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=n,i.treeForkCount=u)}function Xo(l,t,e){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=zl.current,f=(i&2)!==0;if(f?(i=i&1|2,t.flags|=128):i&=1,R(zl,i),ql(l,t,a,e),a=al?La:0,!f&&l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Go(l,e,t);else if(l.tag===19)Go(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(n){case"forwards":for(e=t.child,n=null;e!==null;)l=e.alternate,l!==null&&lu(l)===null&&(n=e),e=e.sibling;e=n,e===null?(n=t.child,t.child=null):(n=e.sibling,e.sibling=null),gc(t,!1,n,e,u,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,n=t.child,t.child=null;n!==null;){if(l=n.alternate,l!==null&&lu(l)===null){t.child=n;break}l=n.sibling,n.sibling=e,e=n,n=l}gc(t,!0,e,null,u,a);break;case"together":gc(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),de|=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(h(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 Sc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Jn(l)))}function tm(l,t,e){switch(t.tag){case 3:Ql(t,t.stateNode.containerInfo),ne(t,_l,l.memoizedState.cache),Ce();break;case 27:case 5:Oa(t);break;case 4:Ql(t,t.stateNode.containerInfo);break;case 10:ne(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Li(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?Yo(l,t,e):(fe(t),l=Lt(l,t,e),l!==null?l.sibling:null);fe(t);break;case 19:var n=(l.flags&128)!==0;if(a=(e&t.childLanes)!==0,a||(ca(l,t,e,!1),a=(e&t.childLanes)!==0),n){if(a)return Xo(l,t,e);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),R(zl,zl.current),a)break;return null;case 22:return t.lanes=0,Co(l,t,e,t.pendingProps);case 24:ne(t,_l,l.memoizedState.cache)}return Lt(l,t,e)}function Qo(l,t,e){if(l!==null)if(l.memoizedProps!==t.pendingProps)Ol=!0;else{if(!Sc(l,e)&&(t.flags&128)===0)return Ol=!1,tm(l,t,e);Ol=(l.flags&131072)!==0}else Ol=!1,al&&(t.flags&1048576)!==0&&Ss(t,La,t.index);switch(t.lanes=0,t.tag){case 16:l:{var a=t.pendingProps;if(l=He(t.elementType),t.type=l,typeof l=="function")Ti(l)?(a=Xe(l,a),t.tag=1,t=Ho(null,t,l,a,e)):(t.tag=0,t=rc(null,t,l,a,e));else{if(l!=null){var n=l.$$typeof;if(n===rt){t.tag=11,t=No(null,t,l,a,e);break l}else if(n===el){t.tag=14,t=Mo(null,t,l,a,e);break l}}throw t=Ut(l)||l,Error(h(306,t,""))}}return t;case 0:return rc(l,t,t.type,t.pendingProps,e);case 1:return a=t.type,n=Xe(a,t.pendingProps),Ho(l,t,a,n,e);case 3:l:{if(Ql(t,t.stateNode.containerInfo),l===null)throw Error(h(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Yi(l,t),Fa(t,a,null,e);var i=t.memoizedState;if(a=i.cache,ne(t,_l,a),a!==u.cache&&Ci(t,[_l],e,!0),Wa(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=qo(l,t,a,e);break l}else if(a!==n){n=yt(Error(h(424)),t),Va(n),t=qo(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=bt(l.firstChild),Bl=t,al=!0,ee=null,St=!0,e=Ds(t,null,a,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ce(),a===n){t=Lt(l,t,e);break l}ql(l,t,a,e)}t=t.child}return t;case 26:return ru(l,t),l===null?(e=Ir(t.type,null,t.pendingProps,null))?t.memoizedState=e:al||(e=t.type,l=t.pendingProps,a=Ou($.current).createElement(e),a[Rl]=t,a[Jl]=l,Yl(a,e,l),Cl(a),t.stateNode=a):t.memoizedState=Ir(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Oa(t),l===null&&al&&(a=t.stateNode=$r(t.type,t.pendingProps,$.current),Bl=t,St=!0,n=gl,ge(t.type)?(Fc=n,gl=bt(a.firstChild)):gl=n),ql(l,t,t.pendingProps.children,e),ru(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&al&&((n=a=gl)&&(a=Dm(a,t.type,t.pendingProps,St),a!==null?(t.stateNode=a,Bl=t,gl=bt(a.firstChild),St=!1,n=!0):n=!1),n||ae(t)),Oa(t),n=t.type,u=t.pendingProps,i=l!==null?l.memoizedProps:null,a=u.children,Jc(n,u)?a=null:i!==null&&Jc(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=Ki(l,t,Jh,null,null,e),Sn._currentValue=n),ru(l,t),ql(l,t,a,e),t.child;case 6:return l===null&&al&&((l=e=gl)&&(e=Cm(e,t.pendingProps,St),e!==null?(t.stateNode=e,Bl=t,gl=null,l=!0):l=!1),l||ae(t)),null;case 13:return Yo(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 No(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,ne(t,t.type,a.value),ql(l,t,a.children,e),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Re(t),n=Hl(n),a=a(n),t.flags|=1,ql(l,t,a,e),t.child;case 14:return Mo(l,t,t.type,t.pendingProps,e);case 15:return Do(l,t,t.type,t.pendingProps,e);case 19:return Xo(l,t,e);case 31:return lm(l,t,e);case 22:return Co(l,t,e,t.pendingProps);case 24:return Re(t),a=Hl(_l),l===null?(n=Bi(),n===null&&(n=vl,u=Ui(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=e),n=u),t.memoizedState={parent:a,cache:n},qi(t),ne(t,_l,n)):((l.lanes&e)!==0&&(Yi(l,t),Fa(t,null,null,e),Wa()),n=l.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ne(t,_l,a)):(a=u.cache,ne(t,_l,a),a!==n.cache&&Ci(t,[_l],e,!0))),ql(l,t,t.pendingProps.children,e),t.child;case 29:throw t.pendingProps}throw Error(h(156,t.tag))}function Vt(l){l.flags|=4}function pc(l,t,e,a,n){if((t=(l.mode&32)!==0)&&(t=!1),t){if(l.flags|=16777216,(n&335544128)===n)if(l.stateNode.complete)l.flags|=8192;else if(mr())l.flags|=8192;else throw qe=Wn,Hi}else l.flags&=-16777217}function Zo(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!ad(t))if(mr())l.flags|=8192;else throw qe=Wn,Hi}function hu(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?bf():536870912,l.lanes|=t,pa|=t)}function an(l,t){if(!al)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 n=l.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=l,n=n.sibling;else for(n=l.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=l,n=n.sibling;return l.subtreeFlags|=a,l.childLanes=e,t}function em(l,t,e){var a=t.pendingProps;switch(Ei(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(_l),Tl(),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,Ni())),Sl(t),null;case 26:var n=t.type,u=t.memoizedState;return l===null?(Vt(t),u!==null?(Sl(t),Zo(t,u)):(Sl(t),pc(t,n,null,a,e))):u?u!==l.memoizedState?(Vt(t),Sl(t),Zo(t,u)):(Sl(t),t.flags&=-16777217):(l=l.memoizedProps,l!==a&&Vt(t),Sl(t),pc(t,n,l,a,e)),null;case 27:if(zn(t),e=$.current,n=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Vt(t);else{if(!a){if(t.stateNode===null)throw Error(h(166));return Sl(t),null}l=q.current,ia(t)?bs(t):(l=$r(n,a,e),t.stateNode=l,Vt(t))}return Sl(t),null;case 5:if(zn(t),n=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Vt(t);else{if(!a){if(t.stateNode===null)throw Error(h(166));return Sl(t),null}if(u=q.current,ia(t))bs(t);else{var i=Ou($.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Rl]=t,u[Jl]=a;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.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=u;l:switch(Yl(u,n,a),n){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),pc(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(h(166));if(l=$.current,ia(t)){if(l=t.stateNode,e=t.memoizedProps,a=null,n=Bl,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}l[Rl]=t,l=!!(l.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||Yr(l.nodeValue,e)),l||ae(t,!0)}else l=Ou(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(h(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(h(557));l[Rl]=t}else Ce(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Sl(t),l=!1}else e=Ni(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),l=!0;if(!l)return t.flags&256?(it(t),t):(it(t),null);if((t.flags&128)!==0)throw Error(h(558))}return Sl(t),null;case 13:if(a=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(n=ia(t),a!==null&&a.dehydrated!==null){if(l===null){if(!n)throw Error(h(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));n[Rl]=t}else Ce(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Sl(t),n=!1}else n=Ni(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(it(t),t):(it(t),null)}return it(t),(t.flags&128)!==0?(t.lanes=e,t):(e=a!==null,l=l!==null&&l.memoizedState!==null,e&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),e!==l&&e&&(t.child.flags|=8192),hu(t,t.updateQueue),Sl(t),null);case 4:return Tl(),l===null&&Qc(t.stateNode.containerInfo),Sl(t),null;case 10:return Xt(t.type),Sl(t),null;case 19:if(z(zl),a=t.memoizedState,a===null)return Sl(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)an(a,!1);else{if(jl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(u=lu(l),u!==null){for(t.flags|=128,an(a,!1),l=u.updateQueue,t.updateQueue=l,hu(t,l),t.subtreeFlags=0,l=e,e=t.child;e!==null;)ys(e,l),e=e.sibling;return R(zl,zl.current&1|2),al&&Yt(t,a.treeForkCount),t.child}l=l.sibling}a.tail!==null&&lt()>Su&&(t.flags|=128,n=!0,an(a,!1),t.lanes=4194304)}else{if(!n)if(l=lu(u),l!==null){if(t.flags|=128,n=!0,l=l.updateQueue,t.updateQueue=l,hu(t,l),an(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!al)return Sl(t),null}else 2*lt()-a.renderingStartTime>Su&&e!==536870912&&(t.flags|=128,n=!0,an(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(l=a.last,l!==null?l.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(l=a.tail,a.rendering=l,a.tail=l.sibling,a.renderingStartTime=lt(),l.sibling=null,e=zl.current,R(zl,n?e&1|2:e&1),al&&Yt(t,a.treeForkCount),l):(Sl(t),null);case 22:case 23:return it(t),Zi(),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&&hu(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&&z(Be),null;case 24:return e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),Xt(_l),Sl(t),null;case 25:return null;case 30:return null}throw Error(h(156,t.tag))}function am(l,t){switch(Ei(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return Xt(_l),Tl(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return zn(t),null;case 31:if(t.memoizedState!==null){if(it(t),t.alternate===null)throw Error(h(340));Ce()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(it(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(h(340));Ce()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return z(zl),null;case 4:return Tl(),null;case 10:return Xt(t.type),null;case 22:case 23:return it(t),Zi(),l!==null&&z(Be),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return Xt(_l),null;case 25:return null;default:return null}}function Lo(l,t){switch(Ei(t),t.tag){case 3:Xt(_l),Tl();break;case 26:case 27:case 5:zn(t);break;case 4:Tl();break;case 31:t.memoizedState!==null&&it(t);break;case 13:it(t);break;case 19:z(zl);break;case 10:Xt(t.type);break;case 22:case 23:it(t),Zi(),l!==null&&z(Be);break;case 24:Xt(_l)}}function nn(l,t){try{var e=t.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&l)===l){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(f){ol(t,t.return,f)}}function oe(l,t,e){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&l)===l){var i=a.inst,f=i.destroy;if(f!==void 0){i.destroy=void 0,n=t;var s=e,v=f;try{v()}catch(p){ol(n,s,p)}}}a=a.next}while(a!==u)}}catch(p){ol(t,t.return,p)}}function Vo(l){var t=l.updateQueue;if(t!==null){var e=l.stateNode;try{Us(t,e)}catch(a){ol(l,l.return,a)}}}function Ko(l,t,e){e.props=Xe(l.type,l.memoizedProps),e.state=l.memoizedState;try{e.componentWillUnmount()}catch(a){ol(l,t,a)}}function un(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(n){ol(l,t,n)}}function Dt(l,t){var e=l.ref,a=l.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){ol(l,t,n)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){ol(l,t,n)}else e.current=null}function Jo(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(n){ol(l,l.return,n)}}function bc(l,t,e){try{var a=l.stateNode;Am(a,l.type,e,t),a[Jl]=t}catch(n){ol(l,l.return,n)}}function wo(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&ge(l.type)||l.tag===4}function xc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||wo(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 jc(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=Bt));else if(a!==4&&(a===27&&ge(l.type)&&(e=l.stateNode,t=null),l=l.child,l!==null))for(jc(l,t,e),l=l.sibling;l!==null;)jc(l,t,e),l=l.sibling}function mu(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(mu(l,t,e),l=l.sibling;l!==null;)mu(l,t,e),l=l.sibling}function ko(l){var t=l.stateNode,e=l.memoizedProps;try{for(var a=l.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Yl(t,a,e),t[Rl]=l,t[Jl]=e}catch(u){ol(l,l.return,u)}}var Kt=!1,Nl=!1,Tc=!1,$o=typeof WeakSet=="function"?WeakSet:Set,Ul=null;function nm(l,t){if(l=l.containerInfo,Vc=Bu,l=is(l),vi(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 n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break l}var i=0,f=-1,s=-1,v=0,p=0,T=l,g=null;t:for(;;){for(var S;T!==e||n!==0&&T.nodeType!==3||(f=i+n),T!==u||a!==0&&T.nodeType!==3||(s=i+a),T.nodeType===3&&(i+=T.nodeValue.length),(S=T.firstChild)!==null;)g=T,T=S;for(;;){if(T===l)break t;if(g===e&&++v===n&&(f=i),g===u&&++p===a&&(s=i),(S=T.nextSibling)!==null)break;T=g,g=T.parentNode}T=S}e=f===-1||s===-1?null:{start:f,end:s}}else e=null}e=e||{start:0,end:0}}else e=null;for(Kc={focusedElem:l,selectionRange:e},Bu=!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,u=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++)n=l[e],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&u!==null){l=void 0,e=t,n=u.memoizedProps,u=u.memoizedState,a=e.stateNode;try{var B=Xe(e.type,n);l=a.getSnapshotBeforeUpdate(B,u),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)kc(l);else if(e===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":kc(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(h(163))}if(l=t.sibling,l!==null){l.return=t.return,Ul=l;break}Ul=t.return}}function Wo(l,t,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:wt(l,e),a&4&&nn(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 n=Xe(e.type,t.memoizedProps);t=t.memoizedState;try{l.componentDidUpdate(n,t,l.__reactInternalSnapshotBeforeUpdate)}catch(i){ol(e,e.return,i)}}a&64&&Vo(e),a&512&&un(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{Us(l,t)}catch(i){ol(e,e.return,i)}}break;case 27:t===null&&a&4&&ko(e);case 26:case 5:wt(l,e),t===null&&a&4&&Jo(e),a&512&&un(e,e.return);break;case 12:wt(l,e);break;case 31:wt(l,e),a&4&&Po(l,e);break;case 13:wt(l,e),a&4&&lr(l,e),a&64&&(l=e.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(e=hm.bind(null,e),Um(l,e))));break;case 22:if(a=e.memoizedState!==null||Kt,!a){t=t!==null&&t.memoizedState!==null||Nl,n=Kt;var u=Nl;Kt=a,(Nl=t)&&!u?kt(l,e,(e.subtreeFlags&8772)!==0):wt(l,e),Kt=n,Nl=u}break;case 30:break;default:wt(l,e)}}function Fo(l){var t=l.alternate;t!==null&&(l.alternate=null,Fo(t)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(t=l.stateNode,t!==null&&Pu(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 pl=null,kl=!1;function Jt(l,t,e){for(e=e.child;e!==null;)Io(l,t,e),e=e.sibling}function Io(l,t,e){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.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=pl,n=kl;ge(e.type)&&(pl=e.stateNode,kl=!1),Jt(l,t,e),yn(e.stateNode),pl=a,kl=n;break;case 5:Nl||Dt(e,t);case 6:if(a=pl,n=kl,pl=null,Jt(l,t,e),pl=a,kl=n,pl!==null)if(kl)try{(pl.nodeType===9?pl.body:pl.nodeName==="HTML"?pl.ownerDocument.body:pl).removeChild(e.stateNode)}catch(u){ol(e,t,u)}else try{pl.removeChild(e.stateNode)}catch(u){ol(e,t,u)}break;case 18:pl!==null&&(kl?(l=pl,Vr(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.stateNode),Ea(l)):Vr(pl,e.stateNode));break;case 4:a=pl,n=kl,pl=e.stateNode.containerInfo,kl=!0,Jt(l,t,e),pl=a,kl=n;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"&&Ko(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 Po(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{Ea(l)}catch(e){ol(t,t.return,e)}}}function lr(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Ea(l)}catch(e){ol(t,t.return,e)}}function um(l){switch(l.tag){case 31:case 13:case 19:var t=l.stateNode;return t===null&&(t=l.stateNode=new $o),t;case 22:return l=l.stateNode,t=l._retryCache,t===null&&(t=l._retryCache=new $o),t;default:throw Error(h(435,l.tag))}}function yu(l,t){var e=um(l);t.forEach(function(a){if(!e.has(a)){e.add(a);var n=mm.bind(null,l,a);a.then(n,n)}})}function $l(l,t){var e=t.deletions;if(e!==null)for(var a=0;a<e.length;a++){var n=e[a],u=l,i=t,f=i;l:for(;f!==null;){switch(f.tag){case 27:if(ge(f.type)){pl=f.stateNode,kl=!1;break l}break;case 5:pl=f.stateNode,kl=!1;break l;case 3:case 4:pl=f.stateNode.containerInfo,kl=!0;break l}f=f.return}if(pl===null)throw Error(h(160));Io(u,i,n),pl=null,kl=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)tr(t,l),t=t.sibling}var zt=null;function tr(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),nn(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 n=zt;if($l(t,l),Wl(l),a&512&&(Nl||e===null||Dt(e,e.return)),a&4){var u=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,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ca]||u[Rl]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Yl(u,a,e),u[Rl]=l,Cl(u),a=u;break l;case"link":var i=td("link","href",n).get(a+(e.href||""));if(i){for(var f=0;f<i.length;f++)if(u=i[f],u.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&u.getAttribute("rel")===(e.rel==null?null:e.rel)&&u.getAttribute("title")===(e.title==null?null:e.title)&&u.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(f,1);break t}}u=n.createElement(a),Yl(u,a,e),n.head.appendChild(u);break;case"meta":if(i=td("meta","content",n).get(a+(e.content||""))){for(f=0;f<i.length;f++)if(u=i[f],u.getAttribute("content")===(e.content==null?null:""+e.content)&&u.getAttribute("name")===(e.name==null?null:e.name)&&u.getAttribute("property")===(e.property==null?null:e.property)&&u.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(f,1);break t}}u=n.createElement(a),Yl(u,a,e),n.head.appendChild(u);break;default:throw Error(h(468,a))}u[Rl]=l,Cl(u),a=u}l.stateNode=a}else ed(n,l.type,l.stateNode);else l.stateNode=ld(n,a,l.memoizedProps);else u!==a?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,a===null?ed(n,l.type,l.stateNode):ld(n,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){n=l.stateNode;try{We(n,"")}catch(B){ol(l,l.return,B)}}a&4&&l.stateNode!=null&&(n=l.memoizedProps,bc(l,n,e!==null?e.memoizedProps:n)),a&1024&&(Tc=!0);break;case 6:if($l(t,l),Wl(l),a&4){if(l.stateNode===null)throw Error(h(162));a=l.memoizedProps,e=l.stateNode;try{e.nodeValue=a}catch(B){ol(l,l.return,B)}}break;case 3:if(Du=null,n=zt,zt=Nu(t.containerInfo),$l(t,l),zt=n,Wl(l),a&4&&e!==null&&e.memoizedState.isDehydrated)try{Ea(t.containerInfo)}catch(B){ol(l,l.return,B)}Tc&&(Tc=!1,er(l));break;case 4:a=zt,zt=Nu(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,yu(l,a)));break;case 13:$l(t,l),Wl(l),l.child.flags&8192&&l.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(gu=lt()),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,yu(l,a)));break;case 22:n=l.memoizedState!==null;var s=e!==null&&e.memoizedState!==null,v=Kt,p=Nl;if(Kt=v||n,Nl=p||s,$l(t,l),Nl=p,Kt=v,Wl(l),a&8192)l:for(t=l.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(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(u=s.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{f=s.stateNode;var T=s.memoizedProps.style,g=T!=null&&T.hasOwnProperty("display")?T.display:null;f.style.display=g==null||typeof g=="boolean"?"":(""+g).trim()}}catch(B){ol(s,s.return,B)}}}else if(t.tag===6){if(e===null){s=t;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(B){ol(s,s.return,B)}}}else if(t.tag===18){if(e===null){s=t;try{var S=s.stateNode;n?Kr(S,!0):Kr(s.stateNode,!1)}catch(B){ol(s,s.return,B)}}}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,yu(l,e))));break;case 19:$l(t,l),Wl(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,yu(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(wo(a)){e=a;break}a=a.return}if(e==null)throw Error(h(160));switch(e.tag){case 27:var n=e.stateNode,u=xc(l);mu(l,u,n);break;case 5:var i=e.stateNode;e.flags&32&&(We(i,""),e.flags&=-33);var f=xc(l);mu(l,f,i);break;case 3:case 4:var s=e.stateNode.containerInfo,v=xc(l);jc(l,v,s);break;default:throw Error(h(161))}}catch(p){ol(l,l.return,p)}l.flags&=-3}t&4096&&(l.flags&=-4097)}function er(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var t=l;er(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;)Wo(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"&&Ko(t,t.return,e),Qe(t);break;case 27:yn(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,n=l,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:kt(n,u,e),nn(4,u);break;case 1:if(kt(n,u,e),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(v){ol(a,a.return,v)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)Cs(s[n],f)}catch(v){ol(a,a.return,v)}}e&&i&64&&Vo(u),un(u,u.return);break;case 27:ko(u);case 26:case 5:kt(n,u,e),e&&a===null&&i&4&&Jo(u),un(u,u.return);break;case 12:kt(n,u,e);break;case 31:kt(n,u,e),e&&i&4&&Po(n,u);break;case 13:kt(n,u,e),e&&i&4&&lr(n,u);break;case 22:u.memoizedState===null&&kt(n,u,e),un(u,u.return);break;case 30:break;default:kt(n,u,e)}t=t.sibling}}function zc(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 Ac(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;)ar(l,t,e,a),t=t.sibling}function ar(l,t,e,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:At(l,t,e,a),n&2048&&nn(9,t);break;case 1:At(l,t,e,a);break;case 3:At(l,t,e,a),n&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(n&2048){At(l,t,e,a),l=t.stateNode;try{var u=t.memoizedProps,i=u.id,f=u.onPostCommit;typeof f=="function"&&f(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:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?At(l,t,e,a):cn(l,t):u._visibility&2?At(l,t,e,a):(u._visibility|=2,va(l,t,e,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&zc(i,t);break;case 24:At(l,t,e,a),n&2048&&Ac(t.alternate,t);break;default:At(l,t,e,a)}}function va(l,t,e,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=l,i=t,f=e,s=a,v=i.flags;switch(i.tag){case 0:case 11:case 15:va(u,i,f,s,n),nn(8,i);break;case 23:break;case 22:var p=i.stateNode;i.memoizedState!==null?p._visibility&2?va(u,i,f,s,n):cn(u,i):(p._visibility|=2,va(u,i,f,s,n)),n&&v&2048&&zc(i.alternate,i);break;case 24:va(u,i,f,s,n),n&&v&2048&&Ac(i.alternate,i);break;default:va(u,i,f,s,n)}t=t.sibling}}function cn(l,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var e=l,a=t,n=a.flags;switch(a.tag){case 22:cn(e,a),n&2048&&zc(a.alternate,a);break;case 24:cn(e,a),n&2048&&Ac(a.alternate,a);break;default:cn(e,a)}t=t.sibling}}var fn=8192;function ga(l,t,e){if(l.subtreeFlags&fn)for(l=l.child;l!==null;)nr(l,t,e),l=l.sibling}function nr(l,t,e){switch(l.tag){case 26:ga(l,t,e),l.flags&fn&&l.memoizedState!==null&&Km(e,zt,l.memoizedState,l.memoizedProps);break;case 5:ga(l,t,e);break;case 3:case 4:var a=zt;zt=Nu(l.stateNode.containerInfo),ga(l,t,e),zt=a;break;case 22:l.memoizedState===null&&(a=l.alternate,a!==null&&a.memoizedState!==null?(a=fn,fn=16777216,ga(l,t,e),fn=a):ga(l,t,e));break;default:ga(l,t,e)}}function ur(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 sn(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,cr(a,l)}ur(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)ir(l),l=l.sibling}function ir(l){switch(l.tag){case 0:case 11:case 15:sn(l),l.flags&2048&&oe(9,l,l.return);break;case 3:sn(l);break;case 12:sn(l);break;case 22:var t=l.stateNode;l.memoizedState!==null&&t._visibility&2&&(l.return===null||l.return.tag!==13)?(t._visibility&=-3,vu(l)):sn(l);break;default:sn(l)}}function vu(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,cr(a,l)}ur(l)}for(l=l.child;l!==null;){switch(t=l,t.tag){case 0:case 11:case 15:oe(8,t,t.return),vu(t);break;case 22:e=t.stateNode,e._visibility&2&&(e._visibility&=-3,vu(t));break;default:vu(t)}l=l.sibling}}function cr(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 n=a.sibling,u=a.return;if(Fo(a),a===e){Ul=null;break l}if(n!==null){n.return=u,Ul=n;break l}Ul=u}}}var im={getCacheForType:function(l){var t=Hl(_l),e=t.data.get(l);return e===void 0&&(e=l(),t.data.set(l,e)),e},cacheSignal:function(){return Hl(_l).controller.signal}},cm=typeof WeakMap=="function"?WeakMap:Map,cl=0,vl=null,W=null,P=0,sl=0,ct=null,re=!1,Sa=!1,_c=!1,$t=0,jl=0,de=0,Ze=0,Ec=0,ft=0,pa=0,on=null,Fl=null,Oc=!1,gu=0,fr=0,Su=1/0,pu=null,he=null,Dl=0,me=null,ba=null,Wt=0,Nc=0,Mc=null,sr=null,rn=0,Dc=null;function st(){return(cl&2)!==0&&P!==0?P&-P:x.T!==null?qc():zf()}function or(){if(ft===0)if((P&536870912)===0||al){var l=En;En<<=1,(En&3932160)===0&&(En=262144),ft=l}else ft=536870912;return l=ut.current,l!==null&&(l.flags|=32),ft}function Il(l,t,e){(l===vl&&(sl===2||sl===9)||l.cancelPendingCommit!==null)&&(xa(l,0),ye(l,P,ft,!1)),Da(l,e),((cl&2)===0||l!==vl)&&(l===vl&&((cl&2)===0&&(Ze|=e),jl===4&&ye(l,P,ft,!1)),Ct(l))}function rr(l,t,e){if((cl&6)!==0)throw Error(h(327));var a=!e&&(t&127)===0&&(t&l.expiredLanes)===0||Ma(l,t),n=a?om(l,t):Uc(l,t,!0),u=a;do{if(n===0){Sa&&!a&&ye(l,t,0,!1);break}else{if(e=l.current.alternate,u&&!fm(e)){n=Uc(l,t,!1),u=!1;continue}if(n===2){if(u=t,l.errorRecoveryDisabledLanes&u)var i=0;else i=l.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;l:{var f=l;n=on;var s=f.current.memoizedState.isDehydrated;if(s&&(xa(f,i).flags|=256),i=Uc(f,i,!1),i!==2){if(_c&&!s){f.errorRecoveryDisabledLanes|=u,Ze|=u,n=4;break l}u=Fl,Fl=n,u!==null&&(Fl===null?Fl=u:Fl.push.apply(Fl,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){xa(l,0),ye(l,t,0,!0);break}l:{switch(a=l,u=n,u){case 0:case 1:throw Error(h(345));case 4:if((t&4194048)!==t)break;case 6:ye(a,t,ft,!re);break l;case 2:Fl=null;break;case 3:case 5:break;default:throw Error(h(329))}if((t&62914560)===t&&(n=gu+300-lt(),10<n)){if(ye(a,t,ft,!re),Nn(a,0,!0)!==0)break l;Wt=t,a.timeoutHandle=Zr(dr.bind(null,a,e,Fl,pu,Oc,t,ft,Ze,pa,re,u,"Throttled",-0,0),n);break l}dr(a,e,Fl,pu,Oc,t,ft,Ze,pa,re,u,null,-0,0)}}break}while(!0);Ct(l)}function dr(l,t,e,a,n,u,i,f,s,v,p,T,g,S){if(l.timeoutHandle=-1,T=t.subtreeFlags,T&8192||(T&16785408)===16785408){T={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bt},nr(t,u,T);var B=(u&62914560)===u?gu-lt():(u&4194048)===u?fr-lt():0;if(B=Jm(T,B),B!==null){Wt=u,l.cancelPendingCommit=B(br.bind(null,l,t,u,e,a,n,i,f,s,p,T,null,g,S)),ye(l,u,i,!v);return}}br(l,t,u,e,a,n,i,f,s)}function fm(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 n=e[a],u=n.getSnapshot;n=n.value;try{if(!at(u(),n))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&=~Ec,t&=~Ze,l.suspendedLanes|=t,l.pingedLanes&=~t,a&&(l.warmLanes|=t),a=l.expirationTimes;for(var n=t;0<n;){var u=31-et(n),i=1<<u;a[u]=-1,n&=~i}e!==0&&xf(l,e,t)}function bu(){return(cl&6)===0?(dn(0),!1):!0}function Cc(){if(W!==null){if(sl===0)var l=W.return;else l=W,Gt=Ue=null,ki(l),ra=null,wa=0,l=W;for(;l!==null;)Lo(l.alternate,l),l=l.return;W=null}}function xa(l,t){var e=l.timeoutHandle;e!==-1&&(l.timeoutHandle=-1,Om(e)),e=l.cancelPendingCommit,e!==null&&(l.cancelPendingCommit=null,e()),Wt=0,Cc(),vl=l,W=e=qt(l.current,null),P=t,sl=0,ct=null,re=!1,Sa=Ma(l,t),_c=!1,pa=ft=Ec=Ze=de=jl=0,Fl=on=null,Oc=!1,(t&8)!==0&&(t|=t&32);var a=l.entangledLanes;if(a!==0)for(l=l.entanglements,a&=t;0<a;){var n=31-et(a),u=1<<n;t|=l[n],a&=~u}return $t=t,Qn(),e}function hr(l,t){w=null,x.H=tn,t===oa||t===$n?(t=Os(),sl=3):t===Hi?(t=Os(),sl=4):sl=t===oc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ct=t,W===null&&(jl=1,su(l,yt(t,l.current)))}function mr(){var l=ut.current;return l===null?!0:(P&4194048)===P?pt===null:(P&62914560)===P||(P&536870912)!==0?l===pt:!1}function yr(){var l=x.H;return x.H=tn,l===null?tn:l}function vr(){var l=x.A;return x.A=im,l}function xu(){jl=4,re||(P&4194048)!==P&&ut.current!==null||(Sa=!0),(de&134217727)===0&&(Ze&134217727)===0||vl===null||ye(vl,P,ft,!1)}function Uc(l,t,e){var a=cl;cl|=2;var n=yr(),u=vr();(vl!==l||P!==t)&&(pu=null,xa(l,t)),t=!1;var i=jl;l:do try{if(sl!==0&&W!==null){var f=W,s=ct;switch(sl){case 8:Cc(),i=6;break l;case 3:case 2:case 9:case 6:ut.current===null&&(t=!0);var v=sl;if(sl=0,ct=null,ja(l,f,s,v),e&&Sa){i=0;break l}break;default:v=sl,sl=0,ct=null,ja(l,f,s,v)}}sm(),i=jl;break}catch(p){hr(l,p)}while(!0);return t&&l.shellSuspendCounter++,Gt=Ue=null,cl=a,x.H=n,x.A=u,W===null&&(vl=null,P=0,Qn()),i}function sm(){for(;W!==null;)gr(W)}function om(l,t){var e=cl;cl|=2;var a=yr(),n=vr();vl!==l||P!==t?(pu=null,Su=lt()+500,xa(l,t)):Sa=Ma(l,t);l:do try{if(sl!==0&&W!==null){t=W;var u=ct;t:switch(sl){case 1:sl=0,ct=null,ja(l,t,u,1);break;case 2:case 9:if(_s(u)){sl=0,ct=null,Sr(t);break}t=function(){sl!==2&&sl!==9||vl!==l||(sl=7),Ct(l)},u.then(t,t);break l;case 3:sl=7;break l;case 4:sl=5;break l;case 7:_s(u)?(sl=0,ct=null,Sr(t)):(sl=0,ct=null,ja(l,t,u,7));break;case 5:var i=null;switch(W.tag){case 26:i=W.memoizedState;case 5:case 27:var f=W;if(i?ad(i):f.stateNode.complete){sl=0,ct=null;var s=f.sibling;if(s!==null)W=s;else{var v=f.return;v!==null?(W=v,ju(v)):W=null}break t}}sl=0,ct=null,ja(l,t,u,5);break;case 6:sl=0,ct=null,ja(l,t,u,6);break;case 8:Cc(),jl=6;break l;default:throw Error(h(462))}}rm();break}catch(p){hr(l,p)}while(!0);return Gt=Ue=null,x.H=a,x.A=n,cl=e,W!==null?0:(vl=null,P=0,Qn(),jl)}function rm(){for(;W!==null&&!Rd();)gr(W)}function gr(l){var t=Qo(l.alternate,l,$t);l.memoizedProps=l.pendingProps,t===null?ju(l):W=t}function Sr(l){var t=l,e=t.alternate;switch(t.tag){case 15:case 0:t=Bo(e,t,t.pendingProps,t.type,void 0,P);break;case 11:t=Bo(e,t,t.pendingProps,t.type.render,t.ref,P);break;case 5:ki(t);default:Lo(e,t),t=W=ys(t,$t),t=Qo(e,t,$t)}l.memoizedProps=l.pendingProps,t===null?ju(l):W=t}function ja(l,t,e,a){Gt=Ue=null,ki(t),ra=null,wa=0;var n=t.return;try{if(Ph(l,n,t,e,P)){jl=1,su(l,yt(e,l.current)),W=null;return}}catch(u){if(n!==null)throw W=n,u;jl=1,su(l,yt(e,l.current)),W=null;return}t.flags&32768?(al||a===1?l=!0:Sa||(P&536870912)!==0?l=!1:(re=l=!0,(a===2||a===9||a===3||a===6)&&(a=ut.current,a!==null&&a.tag===13&&(a.flags|=16384))),pr(t,l)):ju(t)}function ju(l){var t=l;do{if((t.flags&32768)!==0){pr(t,re);return}l=t.return;var e=em(t.alternate,t,$t);if(e!==null){W=e;return}if(t=t.sibling,t!==null){W=t;return}W=t=l}while(t!==null);jl===0&&(jl=5)}function pr(l,t){do{var e=am(l.alternate,l);if(e!==null){e.flags&=32767,W=e;return}if(e=l.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!t&&(l=l.sibling,l!==null)){W=l;return}W=l=e}while(l!==null);jl=6,W=null}function br(l,t,e,a,n,u,i,f,s){l.cancelPendingCommit=null;do Tu();while(Dl!==0);if((cl&6)!==0)throw Error(h(327));if(t!==null){if(t===l.current)throw Error(h(177));if(u=t.lanes|t.childLanes,u|=xi,Vd(l,e,u,i,f,s),l===vl&&(W=vl=null,P=0),ba=t,me=l,Wt=e,Nc=u,Mc=n,sr=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,ym(An,function(){return Ar(),null})):(l.callbackNode=null,l.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=x.T,x.T=null,n=U.p,U.p=2,i=cl,cl|=4;try{nm(l,t,e)}finally{cl=i,U.p=n,x.T=a}}Dl=1,xr(),jr(),Tr()}}function xr(){if(Dl===1){Dl=0;var l=me,t=ba,e=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||e){e=x.T,x.T=null;var a=U.p;U.p=2;var n=cl;cl|=4;try{tr(t,l);var u=Kc,i=is(l.containerInfo),f=u.focusedElem,s=u.selectionRange;if(i!==f&&f&&f.ownerDocument&&us(f.ownerDocument.documentElement,f)){if(s!==null&&vi(f)){var v=s.start,p=s.end;if(p===void 0&&(p=v),"selectionStart"in f)f.selectionStart=v,f.selectionEnd=Math.min(p,f.value.length);else{var T=f.ownerDocument||document,g=T&&T.defaultView||window;if(g.getSelection){var S=g.getSelection(),B=f.textContent.length,X=Math.min(s.start,B),ml=s.end===void 0?X:Math.min(s.end,B);!S.extend&&X>ml&&(i=ml,ml=X,X=i);var m=ns(f,X),r=ns(f,ml);if(m&&r&&(S.rangeCount!==1||S.anchorNode!==m.node||S.anchorOffset!==m.offset||S.focusNode!==r.node||S.focusOffset!==r.offset)){var y=T.createRange();y.setStart(m.node,m.offset),S.removeAllRanges(),X>ml?(S.addRange(y),S.extend(r.node,r.offset)):(y.setEnd(r.node,r.offset),S.addRange(y))}}}}for(T=[],S=f;S=S.parentNode;)S.nodeType===1&&T.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<T.length;f++){var j=T[f];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}Bu=!!Vc,Kc=Vc=null}finally{cl=n,U.p=a,x.T=e}}l.current=t,Dl=2}}function jr(){if(Dl===2){Dl=0;var l=me,t=ba,e=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||e){e=x.T,x.T=null;var a=U.p;U.p=2;var n=cl;cl|=4;try{Wo(l,t.alternate,t)}finally{cl=n,U.p=a,x.T=e}}Dl=3}}function Tr(){if(Dl===4||Dl===3){Dl=0,Bd();var l=me,t=ba,e=Wt,a=sr;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Dl=5:(Dl=0,ba=me=null,zr(l,l.pendingLanes));var n=l.pendingLanes;if(n===0&&(he=null),Fu(e),t=t.stateNode,tt&&typeof tt.onCommitFiberRoot=="function")try{tt.onCommitFiberRoot(Na,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=x.T,n=U.p,U.p=2,x.T=null;try{for(var u=l.onRecoverableError,i=0;i<a.length;i++){var f=a[i];u(f.value,{componentStack:f.stack})}}finally{x.T=t,U.p=n}}(Wt&3)!==0&&Tu(),Ct(l),n=l.pendingLanes,(e&261930)!==0&&(n&42)!==0?l===Dc?rn++:(rn=0,Dc=l):rn=0,dn(0)}}function zr(l,t){(l.pooledCacheLanes&=t)===0&&(t=l.pooledCache,t!=null&&(l.pooledCache=null,Ka(t)))}function Tu(){return xr(),jr(),Tr(),Ar()}function Ar(){if(Dl!==5)return!1;var l=me,t=Nc;Nc=0;var e=Fu(Wt),a=x.T,n=U.p;try{U.p=32>e?32:e,x.T=null,e=Mc,Mc=null;var u=me,i=Wt;if(Dl=0,ba=me=null,Wt=0,(cl&6)!==0)throw Error(h(331));var f=cl;if(cl|=4,ir(u.current),ar(u,u.current,i,e),cl=f,dn(0,!1),tt&&typeof tt.onPostCommitFiberRoot=="function")try{tt.onPostCommitFiberRoot(Na,u)}catch{}return!0}finally{U.p=n,x.T=a,zr(l,t)}}function _r(l,t,e){t=yt(e,t),t=sc(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)_r(l,l,e);else for(;t!==null;){if(t.tag===3){_r(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=yt(e,l),e=Eo(2),a=ce(t,e,2),a!==null&&(Oo(e,a,t,l),Da(a,2),Ct(a));break}}t=t.return}}function Rc(l,t,e){var a=l.pingCache;if(a===null){a=l.pingCache=new cm;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(e)||(_c=!0,n.add(e),l=dm.bind(null,l,t,e),t.then(l,l))}function dm(l,t,e){var a=l.pingCache;a!==null&&a.delete(t),l.pingedLanes|=l.suspendedLanes&e,l.warmLanes&=~e,vl===l&&(P&e)===e&&(jl===4||jl===3&&(P&62914560)===P&&300>lt()-gu?(cl&2)===0&&xa(l,0):Ec|=e,pa===P&&(pa=0)),Ct(l)}function Er(l,t){t===0&&(t=bf()),l=Me(l,t),l!==null&&(Da(l,t),Ct(l))}function hm(l){var t=l.memoizedState,e=0;t!==null&&(e=t.retryLane),Er(l,e)}function mm(l,t){var e=0;switch(l.tag){case 31:case 13:var a=l.stateNode,n=l.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(h(314))}a!==null&&a.delete(t),Er(l,e)}function ym(l,t){return wu(l,t)}var zu=null,Ta=null,Bc=!1,Au=!1,Hc=!1,ve=0;function Ct(l){l!==Ta&&l.next===null&&(Ta===null?zu=Ta=l:Ta=Ta.next=l),Au=!0,Bc||(Bc=!0,gm())}function dn(l,t){if(!Hc&&Au){Hc=!0;do for(var e=!1,a=zu;a!==null;){if(l!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-et(42|l)+1)-1,u&=n&~(i&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,Dr(a,u))}else u=P,u=Nn(a,a===vl?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ma(a,u)||(e=!0,Dr(a,u));a=a.next}while(e);Hc=!1}}function vm(){Or()}function Or(){Au=Bc=!1;var l=0;ve!==0&&Em()&&(l=ve);for(var t=lt(),e=null,a=zu;a!==null;){var n=a.next,u=Nr(a,t);u===0?(a.next=null,e===null?zu=n:e.next=n,n===null&&(Ta=e)):(e=a,(l!==0||(u&3)!==0)&&(Au=!0)),a=n}Dl!==0&&Dl!==5||dn(l),ve!==0&&(ve=0)}function Nr(l,t){for(var e=l.suspendedLanes,a=l.pingedLanes,n=l.expirationTimes,u=l.pendingLanes&-62914561;0<u;){var i=31-et(u),f=1<<i,s=n[i];s===-1?((f&e)===0||(f&a)!==0)&&(n[i]=Ld(f,t)):s<=t&&(l.expiredLanes|=f),u&=~f}if(t=vl,e=P,e=Nn(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&&ku(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&&ku(a),Fu(e)){case 2:case 8:e=Sf;break;case 32:e=An;break;case 268435456:e=pf;break;default:e=An}return a=Mr.bind(null,l),e=wu(e,a),l.callbackPriority=t,l.callbackNode=e,t}return a!==null&&a!==null&&ku(a),l.callbackPriority=2,l.callbackNode=null,2}function Mr(l,t){if(Dl!==0&&Dl!==5)return l.callbackNode=null,l.callbackPriority=0,null;var e=l.callbackNode;if(Tu()&&l.callbackNode!==e)return null;var a=P;return a=Nn(l,l===vl?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a===0?null:(rr(l,a,t),Nr(l,lt()),l.callbackNode!=null&&l.callbackNode===e?Mr.bind(null,l):null)}function Dr(l,t){if(Tu())return null;rr(l,t,!0)}function gm(){Nm(function(){(cl&6)!==0?wu(gf,vm):Or()})}function qc(){if(ve===0){var l=fa;l===0&&(l=_n,_n<<=1,(_n&261888)===0&&(_n=256)),ve=l}return ve}function Cr(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Un(""+l)}function Ur(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 Sm(l,t,e,a,n){if(t==="submit"&&e&&e.stateNode===n){var u=Cr((n[Jl]||null).action),i=a.submitter;i&&(t=(t=i[Jl]||null)?Cr(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var f=new qn("action","action",null,a,n);l.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ve!==0){var s=i?Ur(n,i):new FormData(n);ac(e,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(f.preventDefault(),s=i?Ur(n,i):new FormData(n),ac(e,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var Yc=0;Yc<bi.length;Yc++){var Gc=bi[Yc],pm=Gc.toLowerCase(),bm=Gc[0].toUpperCase()+Gc.slice(1);Tt(pm,"on"+bm)}Tt(ss,"onAnimationEnd"),Tt(os,"onAnimationIteration"),Tt(rs,"onAnimationStart"),Tt("dblclick","onDoubleClick"),Tt("focusin","onFocus"),Tt("focusout","onBlur"),Tt(Hh,"onTransitionRun"),Tt(qh,"onTransitionStart"),Tt(Yh,"onTransitionCancel"),Tt(ds,"onTransitionEnd"),ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"]),_e("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_e("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_e("onBeforeInput",["compositionend","keypress","textInput","paste"]),_e("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_e("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_e("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hn="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(" "),xm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hn));function Rr(l,t){t=(t&4)!==0;for(var e=0;e<l.length;e++){var a=l[e],n=a.event;a=a.listeners;l:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var f=a[i],s=f.instance,v=f.currentTarget;if(f=f.listener,s!==u&&n.isPropagationStopped())break l;u=f,n.currentTarget=v;try{u(n)}catch(p){Xn(p)}n.currentTarget=null,u=s}else for(i=0;i<a.length;i++){if(f=a[i],s=f.instance,v=f.currentTarget,f=f.listener,s!==u&&n.isPropagationStopped())break l;u=f,n.currentTarget=v;try{u(n)}catch(p){Xn(p)}n.currentTarget=null,u=s}}}}function F(l,t){var e=t[Iu];e===void 0&&(e=t[Iu]=new Set);var a=l+"__bubble";e.has(a)||(Br(t,l,2,!1),e.add(a))}function Xc(l,t,e){var a=0;t&&(a|=4),Br(e,l,a,t)}var _u="_reactListening"+Math.random().toString(36).slice(2);function Qc(l){if(!l[_u]){l[_u]=!0,Ef.forEach(function(e){e!=="selectionchange"&&(xm.has(e)||Xc(e,!1,l),Xc(e,!0,l))});var t=l.nodeType===9?l:l.ownerDocument;t===null||t[_u]||(t[_u]=!0,Xc("selectionchange",!1,t))}}function Br(l,t,e,a){switch(od(t)){case 2:var n=$m;break;case 8:n=Wm;break;default:n=ef}e=n.bind(null,t,e,l),n=void 0,!ci||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?l.addEventListener(t,e,{capture:!0,passive:n}):l.addEventListener(t,e,!0):n!==void 0?l.addEventListener(t,e,{passive:n}):l.addEventListener(t,e,!1)}function Zc(l,t,e,a,n){var u=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 f=a.stateNode.containerInfo;if(f===n)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;f!==null;){if(i=Ke(f),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=u=i;continue l}f=f.parentNode}}a=a.return}Gf(function(){var v=u,p=ui(e),T=[];l:{var g=hs.get(l);if(g!==void 0){var S=qn,B=l;switch(l){case"keypress":if(Bn(e)===0)break l;case"keydown":case"keyup":S=mh;break;case"focusin":B="focus",S=ri;break;case"focusout":B="blur",S=ri;break;case"beforeblur":case"afterblur":S=ri;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=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=eh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=gh;break;case ss:case os:case rs:S=uh;break;case ds:S=ph;break;case"scroll":case"scrollend":S=lh;break;case"wheel":S=xh;break;case"copy":case"cut":case"paste":S=ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=Vf;break;case"toggle":case"beforetoggle":S=Th}var X=(t&4)!==0,ml=!X&&(l==="scroll"||l==="scrollend"),m=X?g!==null?g+"Capture":null:g;X=[];for(var r=v,y;r!==null;){var j=r;if(y=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||y===null||m===null||(j=Ra(r,m),j!=null&&X.push(mn(r,j,y))),ml)break;r=r.return}0<X.length&&(g=new S(g,B,null,e,p),T.push({event:g,listeners:X}))}}if((t&7)===0){l:{if(g=l==="mouseover"||l==="pointerover",S=l==="mouseout"||l==="pointerout",g&&e!==ni&&(B=e.relatedTarget||e.fromElement)&&(Ke(B)||B[Ve]))break l;if((S||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,S?(B=e.relatedTarget||e.toElement,S=v,B=B?Ke(B):null,B!==null&&(ml=N(B),X=B.tag,B!==ml||X!==5&&X!==27&&X!==6)&&(B=null)):(S=null,B=v),S!==B)){if(X=Zf,j="onMouseLeave",m="onMouseEnter",r="mouse",(l==="pointerout"||l==="pointerover")&&(X=Vf,j="onPointerLeave",m="onPointerEnter",r="pointer"),ml=S==null?g:Ua(S),y=B==null?g:Ua(B),g=new X(j,r+"leave",S,e,p),g.target=ml,g.relatedTarget=y,j=null,Ke(p)===v&&(X=new X(m,r+"enter",B,e,p),X.target=y,X.relatedTarget=ml,j=X),ml=j,S&&B)t:{for(X=jm,m=S,r=B,y=0,j=m;j;j=X(j))y++;j=0;for(var G=r;G;G=X(G))j++;for(;0<y-j;)m=X(m),y--;for(;0<j-y;)r=X(r),j--;for(;y--;){if(m===r||r!==null&&m===r.alternate){X=m;break t}m=X(m),r=X(r)}X=null}else X=null;S!==null&&Hr(T,g,S,X,!1),B!==null&&ml!==null&&Hr(T,ml,B,X,!0)}}l:{if(g=v?Ua(v):window,S=g.nodeName&&g.nodeName.toLowerCase(),S==="select"||S==="input"&&g.type==="file")var ul=If;else if(Wf(g))if(Pf)ul=Uh;else{ul=Dh;var Y=Mh}else S=g.nodeName,!S||S.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?v&&ai(v.elementType)&&(ul=If):ul=Ch;if(ul&&(ul=ul(l,v))){Ff(T,ul,e,p);break l}Y&&Y(l,g,v),l==="focusout"&&v&&g.type==="number"&&v.memoizedProps.value!=null&&ei(g,"number",g.value)}switch(Y=v?Ua(v):window,l){case"focusin":(Wf(Y)||Y.contentEditable==="true")&&(la=Y,gi=v,Za=null);break;case"focusout":Za=gi=la=null;break;case"mousedown":Si=!0;break;case"contextmenu":case"mouseup":case"dragend":Si=!1,cs(T,e,p);break;case"selectionchange":if(Bh)break;case"keydown":case"keyup":cs(T,e,p)}var k;if(hi)l:{switch(l){case"compositionstart":var ll="onCompositionStart";break l;case"compositionend":ll="onCompositionEnd";break l;case"compositionupdate":ll="onCompositionUpdate";break l}ll=void 0}else Pe?kf(l,e)&&(ll="onCompositionEnd"):l==="keydown"&&e.keyCode===229&&(ll="onCompositionStart");ll&&(Kf&&e.locale!=="ko"&&(Pe||ll!=="onCompositionStart"?ll==="onCompositionEnd"&&Pe&&(k=Xf()):(le=p,fi="value"in le?le.value:le.textContent,Pe=!0)),Y=Eu(v,ll),0<Y.length&&(ll=new Lf(ll,l,null,e,p),T.push({event:ll,listeners:Y}),k?ll.data=k:(k=$f(e),k!==null&&(ll.data=k)))),(k=Ah?_h(l,e):Eh(l,e))&&(ll=Eu(v,"onBeforeInput"),0<ll.length&&(Y=new Lf("onBeforeInput","beforeinput",null,e,p),T.push({event:Y,listeners:ll}),Y.data=k)),Sm(T,l,v,e,p)}Rr(T,t)})}function mn(l,t,e){return{instance:l,listener:t,currentTarget:e}}function Eu(l,t){for(var e=t+"Capture",a=[];l!==null;){var n=l,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ra(l,e),n!=null&&a.unshift(mn(l,n,u)),n=Ra(l,t),n!=null&&a.push(mn(l,n,u))),l.tag===3)return a;l=l.return}return[]}function jm(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Hr(l,t,e,a,n){for(var u=t._reactName,i=[];e!==null&&e!==a;){var f=e,s=f.alternate,v=f.stateNode;if(f=f.tag,s!==null&&s===a)break;f!==5&&f!==26&&f!==27||v===null||(s=v,n?(v=Ra(e,u),v!=null&&i.unshift(mn(e,v,s))):n||(v=Ra(e,u),v!=null&&i.push(mn(e,v,s)))),e=e.return}i.length!==0&&l.push({event:t,listeners:i})}var Tm=/\r\n?/g,zm=/\u0000|\uFFFD/g;function qr(l){return(typeof l=="string"?l:""+l).replace(Tm,`
`).replace(zm,"")}function Yr(l,t){return t=qr(t),qr(l)===t}function hl(l,t,e,a,n,u){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":Dn(l,"class",a);break;case"tabIndex":Dn(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Dn(l,e,a);break;case"style":qf(l,a,u);break;case"data":if(t!=="object"){Dn(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=Un(""+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 u=="function"&&(e==="formAction"?(t!=="input"&&hl(l,t,"name",n.name,n,null),hl(l,t,"formEncType",n.formEncType,n,null),hl(l,t,"formMethod",n.formMethod,n,null),hl(l,t,"formTarget",n.formTarget,n,null)):(hl(l,t,"encType",n.encType,n,null),hl(l,t,"method",n.method,n,null),hl(l,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Un(""+a),l.setAttribute(e,a);break;case"onClick":a!=null&&(l.onclick=Bt);break;case"onScroll":a!=null&&F("scroll",l);break;case"onScrollEnd":a!=null&&F("scrollend",l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(h(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(h(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=Un(""+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":F("beforetoggle",l),F("toggle",l),Mn(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":Mn(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=Id.get(e)||e,Mn(l,e,a))}}function Lc(l,t,e,a,n,u){switch(e){case"style":qf(l,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(h(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(h(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&&F("scroll",l);break;case"onScrollEnd":a!=null&&F("scrollend",l);break;case"onClick":a!=null&&(l.onclick=Bt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Of.hasOwnProperty(e))l:{if(e[0]==="o"&&e[1]==="n"&&(n=e.endsWith("Capture"),t=e.slice(2,n?e.length-7:void 0),u=l[Jl]||null,u=u!=null?u[e]:null,typeof u=="function"&&l.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(e in l?l[e]=null:l.hasAttribute(e)&&l.removeAttribute(e)),l.addEventListener(t,a,n);break l}e in l?l[e]=a:a===!0?l.setAttribute(e,""):Mn(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":F("error",l),F("load",l);var a=!1,n=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(h(137,t));default:hl(l,t,u,i,e,null)}}n&&hl(l,t,"srcSet",e.srcSet,e,null),a&&hl(l,t,"src",e.src,e,null);return;case"input":F("invalid",l);var f=u=i=n=null,s=null,v=null;for(a in e)if(e.hasOwnProperty(a)){var p=e[a];if(p!=null)switch(a){case"name":n=p;break;case"type":i=p;break;case"checked":s=p;break;case"defaultChecked":v=p;break;case"value":u=p;break;case"defaultValue":f=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(h(137,t));break;default:hl(l,t,a,p,e,null)}}Uf(l,u,f,s,v,i,n,!1);return;case"select":F("invalid",l),a=i=u=null;for(n in e)if(e.hasOwnProperty(n)&&(f=e[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":i=f;break;case"multiple":a=f;default:hl(l,t,n,f,e,null)}t=u,e=i,l.multiple=!!a,t!=null?$e(l,!!a,t,!1):e!=null&&$e(l,!!a,e,!0);return;case"textarea":F("invalid",l),u=n=a=null;for(i in e)if(e.hasOwnProperty(i)&&(f=e[i],f!=null))switch(i){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(h(91));break;default:hl(l,t,i,f,e,null)}Bf(l,a,n,u);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":F("beforetoggle",l),F("toggle",l),F("cancel",l),F("close",l);break;case"iframe":case"object":F("load",l);break;case"video":case"audio":for(a=0;a<hn.length;a++)F(hn[a],l);break;case"image":F("error",l),F("load",l);break;case"details":F("toggle",l);break;case"embed":case"source":case"link":F("error",l),F("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(h(137,t));default:hl(l,t,v,a,e,null)}return;default:if(ai(t)){for(p in e)e.hasOwnProperty(p)&&(a=e[p],a!==void 0&&Lc(l,t,p,a,e,void 0));return}}for(f in e)e.hasOwnProperty(f)&&(a=e[f],a!=null&&hl(l,t,f,a,e,null))}function Am(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 n=null,u=null,i=null,f=null,s=null,v=null,p=null;for(S in e){var T=e[S];if(e.hasOwnProperty(S)&&T!=null)switch(S){case"checked":break;case"value":break;case"defaultValue":s=T;default:a.hasOwnProperty(S)||hl(l,t,S,null,a,T)}}for(var g in a){var S=a[g];if(T=e[g],a.hasOwnProperty(g)&&(S!=null||T!=null))switch(g){case"type":u=S;break;case"name":n=S;break;case"checked":v=S;break;case"defaultChecked":p=S;break;case"value":i=S;break;case"defaultValue":f=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(h(137,t));break;default:S!==T&&hl(l,t,g,S,a,T)}}ti(l,i,f,s,v,p,u,n);return;case"select":S=i=f=g=null;for(u in e)if(s=e[u],e.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":S=s;default:a.hasOwnProperty(u)||hl(l,t,u,null,a,s)}for(n in a)if(u=a[n],s=e[n],a.hasOwnProperty(n)&&(u!=null||s!=null))switch(n){case"value":g=u;break;case"defaultValue":f=u;break;case"multiple":i=u;default:u!==s&&hl(l,t,n,u,a,s)}t=f,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(f in e)if(n=e[f],e.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:hl(l,t,f,null,a,n)}for(i in a)if(n=a[i],u=e[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":g=n;break;case"defaultValue":S=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(h(91));break;default:n!==u&&hl(l,t,i,n,a,u)}Rf(l,g,S);return;case"option":for(var B in e)if(g=e[B],e.hasOwnProperty(B)&&g!=null&&!a.hasOwnProperty(B))switch(B){case"selected":l.selected=!1;break;default:hl(l,t,B,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(h(137,t));break;default:hl(l,t,v,g,a,S)}return;default:if(ai(t)){for(var ml in e)g=e[ml],e.hasOwnProperty(ml)&&g!==void 0&&!a.hasOwnProperty(ml)&&Lc(l,t,ml,void 0,a,g);for(p in a)g=a[p],S=e[p],!a.hasOwnProperty(p)||g===S||g===void 0&&S===void 0||Lc(l,t,p,g,a,S);return}}for(var m in e)g=e[m],e.hasOwnProperty(m)&&g!=null&&!a.hasOwnProperty(m)&&hl(l,t,m,null,a,g);for(T in a)g=a[T],S=e[T],!a.hasOwnProperty(T)||g===S||g==null&&S==null||hl(l,t,T,g,a,S)}function Gr(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _m(){if(typeof performance.getEntriesByType=="function"){for(var l=0,t=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var n=e[a],u=n.transferSize,i=n.initiatorType,f=n.duration;if(u&&f&&Gr(i)){for(i=0,f=n.responseEnd,a+=1;a<e.length;a++){var s=e[a],v=s.startTime;if(v>f)break;var p=s.transferSize,T=s.initiatorType;p&&Gr(T)&&(s=s.responseEnd,i+=p*(s<f?1:(f-v)/(s-v)))}if(--a,t+=8*(u+i)/(n.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 Vc=null,Kc=null;function Ou(l){return l.nodeType===9?l:l.ownerDocument}function Xr(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 Qr(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 Jc(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 wc=null;function Em(){var l=window.event;return l&&l.type==="popstate"?l===wc?!1:(wc=l,!0):(wc=null,!1)}var Zr=typeof setTimeout=="function"?setTimeout:void 0,Om=typeof clearTimeout=="function"?clearTimeout:void 0,Lr=typeof Promise=="function"?Promise:void 0,Nm=typeof queueMicrotask=="function"?queueMicrotask:typeof Lr<"u"?function(l){return Lr.resolve(null).then(l).catch(Mm)}:Zr;function Mm(l){setTimeout(function(){throw l})}function ge(l){return l==="head"}function Vr(l,t){var e=t,a=0;do{var n=e.nextSibling;if(l.removeChild(e),n&&n.nodeType===8)if(e=n.data,e==="/$"||e==="/&"){if(a===0){l.removeChild(n),Ea(t);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")yn(l.ownerDocument.documentElement);else if(e==="head"){e=l.ownerDocument.head,yn(e);for(var u=e.firstChild;u;){var i=u.nextSibling,f=u.nodeName;u[Ca]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||e.removeChild(u),u=i}}else e==="body"&&yn(l.ownerDocument.body);e=n}while(e);Ea(t)}function Kr(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 kc(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":kc(e),Pu(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}l.removeChild(e)}}function Dm(l,t,e,a){for(;l.nodeType===1;){var n=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(u=l.getAttribute("rel"),u==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(u!==n.rel||l.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||l.getAttribute("title")!==(n.title==null?null:n.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(u=l.getAttribute("src"),(u!==(n.src==null?null:n.src)||l.getAttribute("type")!==(n.type==null?null:n.type)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(t==="input"&&l.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&l.getAttribute("name")===u)return l}else return l;if(l=bt(l.nextSibling),l===null)break}return null}function Cm(l,t,e){if(t==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!e||(l=bt(l.nextSibling),l===null))return null;return l}function Jr(l,t){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!t||(l=bt(l.nextSibling),l===null))return null;return l}function $c(l){return l.data==="$?"||l.data==="$~"}function Wc(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function Um(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 bt(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 Fc=null;function wr(l){l=l.nextSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="/$"||e==="/&"){if(t===0)return bt(l.nextSibling);t--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||t++}l=l.nextSibling}return null}function kr(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 $r(l,t,e){switch(t=Ou(e),l){case"html":if(l=t.documentElement,!l)throw Error(h(452));return l;case"head":if(l=t.head,!l)throw Error(h(453));return l;case"body":if(l=t.body,!l)throw Error(h(454));return l;default:throw Error(h(451))}}function yn(l){for(var t=l.attributes;t.length;)l.removeAttributeNode(t[0]);Pu(l)}var xt=new Map,Wr=new Set;function Nu(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Ft=U.d;U.d={f:Rm,r:Bm,D:Hm,C:qm,L:Ym,m:Gm,X:Qm,S:Xm,M:Zm};function Rm(){var l=Ft.f(),t=bu();return l||t}function Bm(l){var t=Je(l);t!==null&&t.tag===5&&t.type==="form"?ho(t):Ft.r(l)}var za=typeof document>"u"?null:document;function Fr(l,t,e){var a=za;if(a&&typeof t=="string"&&t){var n=ht(t);n='link[rel="'+l+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),Wr.has(n)||(Wr.add(n),l={rel:l,crossOrigin:e,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Yl(t,"link",l),Cl(t),a.head.appendChild(t)))}}function Hm(l){Ft.D(l),Fr("dns-prefetch",l,null)}function qm(l,t){Ft.C(l,t),Fr("preconnect",l,t)}function Ym(l,t,e){Ft.L(l,t,e);var a=za;if(a&&l&&t){var n='link[rel="preload"][as="'+ht(t)+'"]';t==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+ht(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+ht(e.imageSizes)+'"]')):n+='[href="'+ht(l)+'"]';var u=n;switch(t){case"style":u=Aa(l);break;case"script":u=_a(l)}xt.has(u)||(l=M({rel:"preload",href:t==="image"&&e&&e.imageSrcSet?void 0:l,as:t},e),xt.set(u,l),a.querySelector(n)!==null||t==="style"&&a.querySelector(vn(u))||t==="script"&&a.querySelector(gn(u))||(t=a.createElement("link"),Yl(t,"link",l),Cl(t),a.head.appendChild(t)))}}function Gm(l,t){Ft.m(l,t);var e=za;if(e&&l){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+ht(a)+'"][href="'+ht(l)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=_a(l)}if(!xt.has(u)&&(l=M({rel:"modulepreload",href:l},t),xt.set(u,l),e.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(gn(u)))return}a=e.createElement("link"),Yl(a,"link",l),Cl(a),e.head.appendChild(a)}}}function Xm(l,t,e){Ft.S(l,t,e);var a=za;if(a&&l){var n=we(a).hoistableStyles,u=Aa(l);t=t||"default";var i=n.get(u);if(!i){var f={loading:0,preload:null};if(i=a.querySelector(vn(u)))f.loading=5;else{l=M({rel:"stylesheet",href:l,"data-precedence":t},e),(e=xt.get(u))&&Ic(l,e);var s=i=a.createElement("link");Cl(s),Yl(s,"link",l),s._p=new Promise(function(v,p){s.onload=v,s.onerror=p}),s.addEventListener("load",function(){f.loading|=1}),s.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Mu(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:f},n.set(u,i)}}}function Qm(l,t){Ft.X(l,t);var e=za;if(e&&l){var a=we(e).hoistableScripts,n=_a(l),u=a.get(n);u||(u=e.querySelector(gn(n)),u||(l=M({src:l,async:!0},t),(t=xt.get(n))&&Pc(l,t),u=e.createElement("script"),Cl(u),Yl(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Zm(l,t){Ft.M(l,t);var e=za;if(e&&l){var a=we(e).hoistableScripts,n=_a(l),u=a.get(n);u||(u=e.querySelector(gn(n)),u||(l=M({src:l,async:!0,type:"module"},t),(t=xt.get(n))&&Pc(l,t),u=e.createElement("script"),Cl(u),Yl(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Ir(l,t,e,a){var n=(n=$.current)?Nu(n):null;if(!n)throw Error(h(446));switch(l){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(t=Aa(e.href),e=we(n).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=Aa(e.href);var u=we(n).hoistableStyles,i=u.get(l);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(l,i),(u=n.querySelector(vn(l)))&&!u._p&&(i.instance=u,i.state.loading=5),xt.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},xt.set(l,e),u||Lm(n,l,e,i.state))),t&&a===null)throw Error(h(528,""));return i}if(t&&a!==null)throw Error(h(529,""));return null;case"script":return t=e.async,e=e.src,typeof e=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_a(e),e=we(n).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(h(444,l))}}function Aa(l){return'href="'+ht(l)+'"'}function vn(l){return'link[rel="stylesheet"]['+l+"]"}function Pr(l){return M({},l,{"data-precedence":l.precedence,precedence:null})}function Lm(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 _a(l){return'[src="'+ht(l)+'"]'}function gn(l){return"script[async]"+l}function ld(l,t,e){if(t.count++,t.instance===null)switch(t.type){case"style":var a=l.querySelector('style[data-href~="'+ht(e.href)+'"]');if(a)return t.instance=a,Cl(a),a;var n=M({},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",n),Mu(a,e.precedence,l),t.instance=a;case"stylesheet":n=Aa(e.href);var u=l.querySelector(vn(n));if(u)return t.state.loading|=4,t.instance=u,Cl(u),u;a=Pr(e),(n=xt.get(n))&&Ic(a,n),u=(l.ownerDocument||l).createElement("link"),Cl(u);var i=u;return i._p=new Promise(function(f,s){i.onload=f,i.onerror=s}),Yl(u,"link",a),t.state.loading|=4,Mu(u,e.precedence,l),t.instance=u;case"script":return u=_a(e.src),(n=l.querySelector(gn(u)))?(t.instance=n,Cl(n),n):(a=e,(n=xt.get(u))&&(a=M({},e),Pc(a,n)),l=l.ownerDocument||l,n=l.createElement("script"),Cl(n),Yl(n,"link",a),l.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(h(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Mu(a,e.precedence,l));return t.instance}function Mu(l,t,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var f=a[i];if(f.dataset.precedence===t)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(l,u.nextSibling):(t=e.nodeType===9?e.head:e,t.insertBefore(l,t.firstChild))}function Ic(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.title==null&&(l.title=t.title)}function Pc(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.integrity==null&&(l.integrity=t.integrity)}var Du=null;function td(l,t,e){if(Du===null){var a=new Map,n=Du=new Map;n.set(e,a)}else n=Du,a=n.get(e),a||(a=new Map,n.set(e,a));if(a.has(l))return a;for(a.set(l,null),e=e.getElementsByTagName(l),n=0;n<e.length;n++){var u=e[n];if(!(u[Ca]||u[Rl]||l==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=l+i;var f=a.get(i);f?f.push(u):a.set(i,[u])}}return a}function ed(l,t,e){l=l.ownerDocument||l,l.head.insertBefore(e,t==="title"?l.querySelector("head > title"):null)}function Vm(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 ad(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function Km(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 n=Aa(a.href),u=t.querySelector(vn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Cu.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,Cl(u);return}u=t.ownerDocument||t,a=Pr(a),(n=xt.get(n))&&Ic(a,n),u=u.createElement("link"),Cl(u);var i=u;i._p=new Promise(function(f,s){i.onload=f,i.onerror=s}),Yl(u,"link",a),e.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=Cu.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}var lf=0;function Jm(l,t){return l.stylesheets&&l.count===0&&Ru(l,l.stylesheets),0<l.count||0<l.imgCount?function(e){var a=setTimeout(function(){if(l.stylesheets&&Ru(l,l.stylesheets),l.unsuspend){var u=l.unsuspend;l.unsuspend=null,u()}},6e4+t);0<l.imgBytes&&lf===0&&(lf=62500*_m());var n=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Ru(l,l.stylesheets),l.unsuspend)){var u=l.unsuspend;l.unsuspend=null,u()}},(l.imgBytes>lf?50:800)+t);return l.unsuspend=e,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Cu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ru(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Uu=null;function Ru(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Uu=new Map,t.forEach(wm,l),Uu=null,Cu.call(l))}function wm(l,t){if(!(t.state.loading&4)){var e=Uu.get(l);if(e)var a=e.get(null);else{e=new Map,Uu.set(l,e);for(var n=l.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=e.get(i)||a,u===a&&e.set(null,n),e.set(i,n),this.count++,a=Cu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(n,l.firstChild)),t.state.loading|=4}}var Sn={$$typeof:Gl,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function km(l,t,e,a,n,u,i,f,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=$u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.hiddenUpdates=$u(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function nd(l,t,e,a,n,u,i,f,s,v,p,T){return l=new km(l,t,e,i,s,v,p,T,f),t=1,u===!0&&(t|=24),u=nt(3,null,null,t),l.current=u,u.stateNode=l,t=Ui(),t.refCount++,l.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:e,cache:t},qi(u),l}function ud(l){return l?(l=aa,l):aa}function id(l,t,e,a,n,u){n=ud(n),a.context===null?a.context=n:a.pendingContext=n,a=ie(t),a.payload={element:e},u=u===void 0?null:u,u!==null&&(a.callback=u),e=ce(l,a,t),e!==null&&(Il(e,l,t),$a(e,l,t))}function cd(l,t){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var e=l.retryLane;l.retryLane=e!==0&&e<t?e:t}}function tf(l,t){cd(l,t),(l=l.alternate)&&cd(l,t)}function fd(l){if(l.tag===13||l.tag===31){var t=Me(l,67108864);t!==null&&Il(t,l,67108864),tf(l,67108864)}}function sd(l){if(l.tag===13||l.tag===31){var t=st();t=Wu(t);var e=Me(l,t);e!==null&&Il(e,l,t),tf(l,t)}}var Bu=!0;function $m(l,t,e,a){var n=x.T;x.T=null;var u=U.p;try{U.p=2,ef(l,t,e,a)}finally{U.p=u,x.T=n}}function Wm(l,t,e,a){var n=x.T;x.T=null;var u=U.p;try{U.p=8,ef(l,t,e,a)}finally{U.p=u,x.T=n}}function ef(l,t,e,a){if(Bu){var n=af(a);if(n===null)Zc(l,t,a,Hu,e),rd(l,a);else if(Im(n,l,t,e,a))a.stopPropagation();else if(rd(l,a),t&4&&-1<Fm.indexOf(l)){for(;n!==null;){var u=Je(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Ae(u.pendingLanes);if(i!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;i;){var s=1<<31-et(i);f.entanglements[1]|=s,i&=~s}Ct(u),(cl&6)===0&&(Su=lt()+500,dn(0))}}break;case 31:case 13:f=Me(u,2),f!==null&&Il(f,u,2),bu(),tf(u,2)}if(u=af(a),u===null&&Zc(l,t,a,Hu,e),u===n)break;n=u}n!==null&&a.stopPropagation()}else Zc(l,t,a,null,e)}}function af(l){return l=ui(l),nf(l)}var Hu=null;function nf(l){if(Hu=null,l=Ke(l),l!==null){var t=N(l);if(t===null)l=null;else{var e=t.tag;if(e===13){if(l=C(t),l!==null)return l;l=null}else if(e===31){if(l=Q(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 Hu=l,null}function od(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(Hd()){case gf:return 2;case Sf:return 8;case An:case qd:return 32;case pf:return 268435456;default:return 32}default:return 32}}var uf=!1,Se=null,pe=null,be=null,pn=new Map,bn=new Map,xe=[],Fm="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 rd(l,t){switch(l){case"focusin":case"focusout":Se=null;break;case"dragenter":case"dragleave":pe=null;break;case"mouseover":case"mouseout":be=null;break;case"pointerover":case"pointerout":pn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bn.delete(t.pointerId)}}function xn(l,t,e,a,n,u){return l===null||l.nativeEvent!==u?(l={blockedOn:t,domEventName:e,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=Je(t),t!==null&&fd(t)),l):(l.eventSystemFlags|=a,t=l.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),l)}function Im(l,t,e,a,n){switch(t){case"focusin":return Se=xn(Se,l,t,e,a,n),!0;case"dragenter":return pe=xn(pe,l,t,e,a,n),!0;case"mouseover":return be=xn(be,l,t,e,a,n),!0;case"pointerover":var u=n.pointerId;return pn.set(u,xn(pn.get(u)||null,l,t,e,a,n)),!0;case"gotpointercapture":return u=n.pointerId,bn.set(u,xn(bn.get(u)||null,l,t,e,a,n)),!0}return!1}function dd(l){var t=Ke(l.target);if(t!==null){var e=N(t);if(e!==null){if(t=e.tag,t===13){if(t=C(e),t!==null){l.blockedOn=t,Af(l.priority,function(){sd(e)});return}}else if(t===31){if(t=Q(e),t!==null){l.blockedOn=t,Af(l.priority,function(){sd(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 qu(l){if(l.blockedOn!==null)return!1;for(var t=l.targetContainers;0<t.length;){var e=af(l.nativeEvent);if(e===null){e=l.nativeEvent;var a=new e.constructor(e.type,e);ni=a,e.target.dispatchEvent(a),ni=null}else return t=Je(e),t!==null&&fd(t),l.blockedOn=e,!1;t.shift()}return!0}function hd(l,t,e){qu(l)&&e.delete(t)}function Pm(){uf=!1,Se!==null&&qu(Se)&&(Se=null),pe!==null&&qu(pe)&&(pe=null),be!==null&&qu(be)&&(be=null),pn.forEach(hd),bn.forEach(hd)}function Yu(l,t){l.blockedOn===t&&(l.blockedOn=null,uf||(uf=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Pm)))}var Gu=null;function md(l){Gu!==l&&(Gu=l,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Gu===l&&(Gu=null);for(var t=0;t<l.length;t+=3){var e=l[t],a=l[t+1],n=l[t+2];if(typeof a!="function"){if(nf(a||e)===null)continue;break}var u=Je(e);u!==null&&(l.splice(t,3),t-=3,ac(u,{pending:!0,data:n,method:e.method,action:a},a,n))}}))}function Ea(l){function t(s){return Yu(s,l)}Se!==null&&Yu(Se,l),pe!==null&&Yu(pe,l),be!==null&&Yu(be,l),pn.forEach(t),bn.forEach(t);for(var e=0;e<xe.length;e++){var a=xe[e];a.blockedOn===l&&(a.blockedOn=null)}for(;0<xe.length&&(e=xe[0],e.blockedOn===null);)dd(e),e.blockedOn===null&&xe.shift();if(e=(l.ownerDocument||l).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var n=e[a],u=e[a+1],i=n[Jl]||null;if(typeof u=="function")i||md(e);else if(i){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Jl]||null)f=i.formAction;else if(nf(n)!==null)continue}else f=i.action;typeof f=="function"?e[a+1]=f:(e.splice(a,3),a-=3),md(e)}}}function yd(){function l(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(e,20)}function e(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",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),n!==null&&(n(),n=null)}}}function cf(l){this._internalRoot=l}Xu.prototype.render=cf.prototype.render=function(l){var t=this._internalRoot;if(t===null)throw Error(h(409));var e=t.current,a=st();id(e,a,l,t,null,null)},Xu.prototype.unmount=cf.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var t=l.containerInfo;id(l.current,2,null,l,null,null),bu(),t[Ve]=null}};function Xu(l){this._internalRoot=l}Xu.prototype.unstable_scheduleHydration=function(l){if(l){var t=zf();l={blockedOn:null,target:l,priority:t};for(var e=0;e<xe.length&&t!==0&&t<xe[e].priority;e++);xe.splice(e,0,l),e===0&&dd(l)}};var vd=D.version;if(vd!=="19.2.5")throw Error(h(527,vd,"19.2.5"));U.findDOMNode=function(l){var t=l._reactInternals;if(t===void 0)throw typeof l.render=="function"?Error(h(188)):(l=Object.keys(l).join(","),Error(h(268,l)));return l=b(t),l=l!==null?H(l):null,l=l===null?null:l.stateNode,l};var ly={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qu.isDisabled&&Qu.supportsFiber)try{Na=Qu.inject(ly),tt=Qu}catch{}}return Tn.createRoot=function(l,t){if(!E(l))throw Error(h(299));var e=!1,a="",n=To,u=zo,i=Ao;return t!=null&&(t.unstable_strictMode===!0&&(e=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=nd(l,1,!1,null,null,e,a,null,n,u,i,yd),l[Ve]=t.current,Qc(l),new cf(t)},Tn.hydrateRoot=function(l,t,e){if(!E(l))throw Error(h(299));var a=!1,n="",u=To,i=zo,f=Ao,s=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError),e.formState!==void 0&&(s=e.formState)),t=nd(l,1,!0,t,e??null,a,n,s,u,i,f,yd),t.context=ud(null),e=t.current,a=st(),a=Wu(a),n=ie(a),n.callback=null,ce(e,n,a),e=a,t.current.lanes=e,Da(t,e),Ct(t),l[Ve]=t.current,Qc(l),new Xu(t)},Tn.version="19.2.5",Tn}var _d;function oy(){if(_d)return of.exports;_d=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(D){console.error(D)}}return o(),of.exports=sy(),of.exports}var ry=oy();const dy=Md(ry),Cd="";async function ot(o,D){const O=await fetch(`${Cd}${o}`,{...D,credentials:"same-origin",headers:{"Content-Type":"application/json",...D==null?void 0:D.headers}});if(O.status===401)throw window.location.hash="#login",new Error("Unauthorized");if(!O.ok){const h=await O.json().catch(()=>({}));throw new Error(h.error||`HTTP ${O.status}`)}return O.json()}async function hy(o){const D=await fetch(`${Cd}${o}`,{credentials:"same-origin"});if(D.status===401)throw window.location.hash="#login",new Error("Unauthorized");if(!D.ok)throw new Error(`HTTP ${D.status}`);return D.text()}const Pl={login:o=>ot("/admin/login",{method:"POST",body:JSON.stringify({token:o})}),signOutEverywhere:()=>ot("/admin/api/sign-out-everywhere",{method:"POST"}),stats:()=>ot("/admin/api/stats"),health:()=>ot("/admin/api/health-indicators"),agents:()=>ot("/admin/api/agents"),requests:(o=1,D="")=>ot(`/admin/api/requests?page=${o}${D}`),apiKeys:()=>ot("/admin/api/api-keys"),createApiKey:o=>ot("/admin/api/api-keys",{method:"POST",body:JSON.stringify({name:o})}),revokeApiKey:o=>ot("/admin/api/api-keys/revoke",{method:"POST",body:JSON.stringify({name:o})}),updateClientTtl:(o,D)=>ot("/admin/api/update-client-ttl",{method:"POST",body:JSON.stringify({clientId:o,tokenTtl:D})}),revokeClient:o=>ot("/admin/api/revoke-client",{method:"POST",body:JSON.stringify({clientId:o})}),calibrationProfile:o=>ot(`/admin/api/calibration/profile${o?`?holder=${encodeURIComponent(o)}`:""}`),calibrationChart:(o,D)=>hy(`/admin/api/calibration/charts/${encodeURIComponent(o)}${D?`?holder=${encodeURIComponent(D)}`:""}`),jobsWatch:()=>ot("/admin/api/jobs/watch")};function my({onLogin:o}){const[D,O]=K.useState(""),[h,E]=K.useState(""),[N,C]=K.useState(!1),Q=async _=>{_.preventDefault(),E(""),C(!0);try{await Pl.login(D),O(""),o()}catch{E("Invalid token.")}finally{C(!1)}};return c.jsx("div",{className:"login-page",children:c.jsxs("div",{className:"login-box",children:[c.jsx("div",{className:"login-logo",children:"GBrain"}),c.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:[c.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:",c.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"'}),c.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."})]}),c.jsxs("details",{style:{marginBottom:16},children:[c.jsx("summary",{style:{cursor:"pointer",fontSize:13,color:"var(--text-muted)"},children:"Or paste bootstrap token manually"}),c.jsxs("form",{onSubmit:Q,style:{marginTop:12},children:[c.jsx("div",{style:{marginBottom:12},children:c.jsx("input",{type:"password",placeholder:"Admin Token",value:D,onChange:_=>O(_.target.value)})}),c.jsx("button",{className:"btn btn-primary",style:{width:"100%"},disabled:N,children:N?"Authenticating...":"Submit"}),h&&c.jsx("div",{className:"login-error",children:h})]})]})]})})}function yy(){const[o,D]=K.useState({connected_agents:0,requests_today:0,active_tokens:0}),[O,h]=K.useState({expiring_soon:0,error_rate:"0%"}),[E,N]=K.useState([]),[C,Q]=K.useState("connecting"),_=K.useRef(null);K.useEffect(()=>{Pl.stats().then(D).catch(()=>{}),Pl.health().then(h).catch(()=>{});const H=new EventSource("/admin/events");_.current=H,H.onopen=()=>Q("connected"),H.onmessage=A=>{try{const I=JSON.parse(A.data);N(L=>[I,...L].slice(0,50))}catch{}},H.onerror=()=>{Q("disconnected"),setTimeout(()=>{Q("connecting"),H.close()},3e3)};const M=setInterval(()=>{Pl.stats().then(D).catch(()=>{}),Pl.health().then(h).catch(()=>{})},3e4);return()=>{H.close(),clearInterval(M)}},[]);const b=H=>{const M=Date.now()-new Date(H).getTime();return M<6e4?`${Math.floor(M/1e3)}s ago`:M<36e5?`${Math.floor(M/6e4)} min ago`:`${Math.floor(M/36e5)}h ago`};return c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"page-title",children:"Dashboard"}),c.jsxs("div",{style:{display:"flex",gap:24},children:[c.jsxs("div",{style:{flex:1},children:[c.jsxs("div",{className:"metrics",children:[c.jsxs("div",{className:"metric",children:[c.jsx("div",{className:"metric-value",children:o.connected_agents}),c.jsx("div",{className:"metric-label",children:"Connected Agents"})]}),c.jsxs("div",{className:"metric",children:[c.jsx("div",{className:"metric-value",children:o.requests_today}),c.jsx("div",{className:"metric-label",children:"Requests Today"})]}),c.jsxs("div",{className:"metric",children:[c.jsx("div",{className:"metric-value",children:o.active_tokens}),c.jsx("div",{className:"metric-label",children:"Active Tokens"})]})]}),c.jsxs("h2",{className:"section-title",children:["Live Activity",c.jsx("span",{style:{marginLeft:8,fontSize:10,color:C==="connected"?"var(--success)":C==="connecting"?"var(--warning)":"var(--error)"},children:C==="connected"?"● connected":C==="connecting"?"● connecting...":"● disconnected"})]}),c.jsx("div",{className:"feed",children:E.length===0?c.jsx("div",{className:"feed-empty",children:C==="connected"?"No requests yet. Agents will appear when they connect.":"Connecting..."}):c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Agent"}),c.jsx("th",{children:"Operation"}),c.jsx("th",{children:"Scopes"}),c.jsx("th",{children:"Latency"}),c.jsx("th",{children:"Status"}),c.jsx("th",{children:"Time"})]})}),c.jsx("tbody",{children:E.map((H,M)=>c.jsxs("tr",{children:[c.jsx("td",{className:"mono",children:H.agent}),c.jsx("td",{className:"mono",children:H.operation}),c.jsx("td",{children:H.scopes.split(",").map(A=>c.jsx("span",{className:`badge badge-${A.trim()}`,style:{marginRight:4},children:A.trim()},A))}),c.jsxs("td",{className:"mono",children:[H.latency_ms," ms"]}),c.jsx("td",{children:c.jsx("span",{className:`badge badge-${H.status}`,children:H.status})}),c.jsx("td",{style:{color:"var(--text-secondary)"},children:b(H.timestamp)})]},M))})]})})]}),c.jsxs("div",{style:{width:220},children:[c.jsx("h2",{className:"section-title",children:"Token Health"}),c.jsxs("div",{className:"health-panel",children:[c.jsxs("div",{className:"health-row",children:[c.jsx("span",{style:{color:"var(--warning)"},children:"Expiring Soon"}),c.jsx("span",{className:"mono",children:O.expiring_soon})]}),c.jsxs("div",{className:"health-row",children:[c.jsx("span",{style:{color:"var(--error)"},children:"Error Rate"}),c.jsx("span",{className:"mono",children:O.error_rate})]})]})]})]})]})}const Ed=["admin","agent","read","sources_admin","users_admin","write"];function vy(o){const D=Math.floor((Date.now()-o.getTime())/1e3);return D<60?"just now":D<3600?`${Math.floor(D/60)}m ago`:D<86400?`${Math.floor(D/3600)}h ago`:`${Math.floor(D/86400)}d ago`}function gy(){const[o,D]=K.useState([]),[O,h]=K.useState(!0),[E,N]=K.useState(!1),[C,Q]=K.useState(null),[_,b]=K.useState(!1),[H,M]=K.useState(null),[A,I]=K.useState(null);K.useEffect(()=>{L()},[]);const L=()=>{Pl.agents().then(D).catch(()=>{})};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:24},children:[c.jsx("h1",{className:"page-title",style:{marginBottom:0},children:"Agents"}),c.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[c.jsxs("label",{style:{fontSize:13,color:"var(--text-secondary)",display:"flex",alignItems:"center",gap:6,cursor:"pointer"},children:[c.jsx("input",{type:"checkbox",checked:O,onChange:nl=>h(nl.target.checked)})," Hide revoked"]}),c.jsx("button",{className:"btn btn-secondary",onClick:()=>b(!0),children:"+ API Key"}),c.jsx("button",{className:"btn btn-primary",onClick:()=>N(!0),children:"+ OAuth Client"})]})]}),(()=>{const nl=o.filter(tl=>!O||tl.status!=="revoked");return o.length===0?c.jsx("div",{style:{textAlign:"center",padding:48,color:"var(--text-muted)"},children:"No agents registered. Register your first agent to get started."}):nl.length===0?c.jsx("div",{style:{textAlign:"center",padding:48,color:"var(--text-muted)"},children:'All agents are revoked. Uncheck "Hide revoked" to view them.'}):c.jsxs(c.Fragment,{children:[c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Name"}),c.jsx("th",{children:"Type"}),c.jsx("th",{children:"Scopes"}),c.jsx("th",{children:"Status"}),c.jsx("th",{children:"Requests"}),c.jsx("th",{children:"Last Used"})]})}),c.jsx("tbody",{children:nl.map(tl=>c.jsxs("tr",{onClick:()=>I(tl),style:{cursor:"pointer"},children:[c.jsx("td",{style:{fontWeight:500},children:tl.name||tl.client_name}),c.jsx("td",{children:c.jsx("span",{className:`badge ${tl.auth_type==="oauth"?"badge-read":"badge-write"}`,style:{fontSize:11},children:tl.auth_type==="oauth"?"OAuth":"API Key"})}),c.jsx("td",{children:(tl.scope||"").split(" ").filter(Boolean).map(bl=>c.jsx("span",{className:`badge badge-${bl}`,style:{marginRight:4},children:bl},bl))}),c.jsx("td",{children:c.jsx("span",{className:`badge ${tl.status==="active"?"badge-success":"badge-danger"}`,children:tl.status})}),c.jsxs("td",{children:[c.jsx("span",{style:{fontWeight:500},children:tl.requests_today||0}),c.jsxs("span",{style:{color:"var(--text-muted)",fontSize:12},children:[" / ",tl.total_requests||0]})]}),c.jsx("td",{style:{color:"var(--text-secondary)"},children:tl.last_used_at?vy(new Date(tl.last_used_at)):"Never"})]},tl.id))})]}),c.jsxs("div",{style:{color:"var(--text-muted)",fontSize:13,marginTop:12},children:[o.filter(tl=>tl.status==="active").length," active / ",o.length," total"]})]})})(),E&&c.jsx(by,{onClose:()=>N(!1),onRegistered:nl=>{N(!1),Q(nl),L()}}),C&&c.jsx(xy,{credentials:C,onClose:()=>Q(null)}),A&&c.jsx(jy,{agent:A,onClose:()=>I(null),onRevoked:L}),_&&c.jsx(Sy,{onClose:()=>b(!1),onCreated:nl=>{b(!1),M(nl),L()}}),H&&c.jsx(py,{token:H,onClose:()=>M(null)})]})}function Sy({onClose:o,onCreated:D}){const[O,h]=K.useState(""),[E,N]=K.useState(!1),[C,Q]=K.useState(""),_=async b=>{if(b.preventDefault(),!O.trim()){Q("Name required");return}N(!0);try{const H=await Pl.createApiKey(O.trim());D({name:H.name,token:H.token})}catch(H){Q(H instanceof Error?H.message:"Failed")}finally{N(!1)}};return c.jsx("div",{className:"modal-overlay",onClick:o,children:c.jsxs("form",{className:"modal",onClick:b=>b.stopPropagation(),onSubmit:_,children:[c.jsx("div",{className:"modal-title",children:"Create API Key"}),c.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."}),c.jsxs("div",{style:{marginBottom:16},children:[c.jsx("label",{children:"Key Name"}),c.jsx("input",{placeholder:"e.g. claude-code-local",value:O,onChange:b=>h(b.target.value),autoFocus:!0})]}),C&&c.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:12},children:C}),c.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"flex-end"},children:[c.jsx("button",{type:"button",className:"btn btn-secondary",onClick:o,children:"Cancel"}),c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:E,children:E?"Creating...":"Create Key"})]})]})})}function py({token:o,onClose:D}){const O=h=>navigator.clipboard.writeText(h);return c.jsx("div",{className:"modal-overlay",children:c.jsxs("div",{className:"modal",style:{maxWidth:560},children:[c.jsxs("div",{style:{textAlign:"center",marginBottom:16},children:[c.jsx("div",{style:{fontSize:36,color:"var(--success)",marginBottom:8},children:"✓"}),c.jsx("div",{style:{fontSize:20,fontWeight:600},children:"API Key Created"})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Name"}),c.jsx("div",{className:"code-block",children:c.jsx("span",{children:o.name})})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Bearer Token"}),c.jsxs("div",{className:"code-block",children:[c.jsx("span",{children:o.token}),c.jsx("button",{className:"copy-btn",onClick:()=>O(o.token),children:"Copy"})]})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Usage"}),c.jsxs("div",{className:"code-block",children:[c.jsx("pre",{style:{whiteSpace:"pre-wrap",margin:0,fontSize:12},children:`Authorization: Bearer ${o.token}`}),c.jsx("button",{className:"copy-btn",onClick:()=>O(`Authorization: Bearer ${o.token}`),children:"Copy"})]})]}),c.jsx("div",{className:"warning-bar",children:"Save this token now. It will not be shown again."}),c.jsx("div",{style:{display:"flex",gap:12,justifyContent:"flex-end",marginTop:20},children:c.jsx("button",{className:"btn btn-primary",onClick:D,children:"Done"})})]})})}function by({onClose:o,onRegistered:D}){const[O,h]=K.useState(""),[E,N]=K.useState(()=>Object.fromEntries(Ed.map(L=>[L,L==="read"]))),[C,Q]=K.useState("86400"),[_,b]=K.useState(!1),[H,M]=K.useState(""),A=[{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"}],I=async L=>{if(L.preventDefault(),!O.trim()){M("Name required");return}b(!0),M("");try{const nl=Object.entries(E).filter(([,Ml])=>Ml).map(([Ml])=>Ml).join(" "),tl=await fetch("/admin/api/register-client",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:O.trim(),scopes:nl,tokenTtl:C==="0"?31536e4:Number(C)})});if(!tl.ok)throw new Error("Registration failed");const bl=await tl.json();D({clientId:bl.clientId,clientSecret:bl.clientSecret,name:O.trim()})}catch(nl){M(nl instanceof Error?nl.message:"Registration failed")}finally{b(!1)}};return c.jsx("div",{className:"modal-overlay",onClick:o,children:c.jsxs("form",{className:"modal",onClick:L=>L.stopPropagation(),onSubmit:I,children:[c.jsx("div",{className:"modal-title",children:"Register Agent"}),c.jsxs("div",{style:{marginBottom:16},children:[c.jsx("label",{children:"Agent Name"}),c.jsx("input",{placeholder:"e.g. perplexity-production",value:O,onChange:L=>h(L.target.value),autoFocus:!0})]}),c.jsxs("div",{style:{marginBottom:16},children:[c.jsx("label",{children:"Scopes"}),c.jsx("div",{className:"checkbox-group",children:Ed.map(L=>c.jsxs("label",{className:"checkbox-label",children:[c.jsx("input",{type:"checkbox",checked:E[L],onChange:nl=>N(tl=>({...tl,[L]:nl.target.checked}))}),L]},L))})]}),c.jsxs("div",{style:{marginBottom:20},children:[c.jsx("label",{children:"Token Lifetime"}),c.jsx("select",{value:C,onChange:L=>Q(L.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:A.map(L=>c.jsx("option",{value:L.value,children:L.label},L.value))})]}),H&&c.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:12},children:H}),c.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"flex-end"},children:[c.jsx("button",{type:"button",className:"btn btn-secondary",onClick:o,children:"Cancel"}),c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:_,children:_?"Registering...":"Register"})]})]})})}function xy({credentials:o,onClose:D}){const O=E=>navigator.clipboard.writeText(E),h=()=>{const E=new Blob([JSON.stringify(o,null,2)],{type:"application/json"}),N=URL.createObjectURL(E),C=document.createElement("a");C.href=N,C.download=`${o.name}-credentials.json`,C.click(),URL.revokeObjectURL(N)};return c.jsx("div",{className:"modal-overlay",children:c.jsxs("div",{className:"modal",style:{maxWidth:560},children:[c.jsxs("div",{style:{textAlign:"center",marginBottom:16},children:[c.jsx("div",{style:{fontSize:36,color:"var(--success)",marginBottom:8},children:"✓"}),c.jsx("div",{style:{fontSize:20,fontWeight:600},children:"Agent Registered"})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Client ID"}),c.jsxs("div",{className:"code-block",children:[c.jsx("span",{children:o.clientId}),c.jsx("button",{className:"copy-btn",onClick:()=>O(o.clientId),children:"Copy"})]})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Client Secret"}),c.jsxs("div",{className:"code-block",children:[c.jsx("span",{children:o.clientSecret}),c.jsx("button",{className:"copy-btn",onClick:()=>O(o.clientSecret),children:"Copy"})]})]}),c.jsx("div",{className:"warning-bar",children:"Save this secret now. It will not be shown again."}),c.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"flex-end",marginTop:20},children:[c.jsx("button",{className:"btn btn-secondary",onClick:h,children:"Download as JSON"}),c.jsx("button",{className:"btn btn-primary",onClick:D,children:"Done"})]})]})})}function jy({agent:o,onClose:D,onRevoked:O}){const[h,E]=K.useState("claude-code"),N=M=>navigator.clipboard.writeText(M),C=window.location.origin,Q=o.id||o.client_id||"",_=o.auth_type==="oauth",b=o.name||o.client_name||"unknown",H={"claude-code":_?["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 ${C}/mcp \\`,`  --header "Authorization: Bearer $(curl -s -X POST ${C}/token \\`,"    -d 'grant_type=client_credentials' \\",`    -d 'client_id=${Q}' \\`,'    --data-urlencode "client_secret=$GBRAIN_CS" \\',`    -d 'scope=${o.scope||"read write"}' | jq -r .access_token)"`,"","# Step 3 — clear the secret from this shell.","unset GBRAIN_CS","",`The token will last ${o.token_ttl?o.token_ttl>=86400?Math.floor(o.token_ttl/86400)+" days":Math.floor(o.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 ${C}/token \\`,"  -d 'grant_type=client_credentials' \\",`  -d 'client_id=${Q}' \\`,"  -d 'client_secret=PASTE_YOUR_CLIENT_SECRET_HERE' \\",`  -d 'scope=${o.scope||"read write"}' | jq -r .access_token`,"",`claude mcp add --transport http gbrain ${C}/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 ${C}/mcp \\`,'  --header "Authorization: Bearer PASTE_YOUR_API_KEY_HERE"',"",`Replace PASTE_YOUR_API_KEY_HERE with the API key shown when "${b}" 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:","",`   ${C}/.well-known/oauth-authorization-server`,"","3. When prompted for credentials:",`   Client ID: ${Q}`,"   Client Secret: (the secret from agent registration)","   Grant Type: client_credentials",`   Scope: ${o.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: ${C}/mcp`,"3. When prompted for auth:",`   Token endpoint: ${C}/token`,`   Client ID: ${Q}`,"   Client Secret: (the secret from agent registration)",`   Scope: ${o.scope||"read write"}`,"",`Discovery URL: ${C}/.well-known/oauth-authorization-server`].join(`
`),cursor:_?["The user wants to connect GBrain MCP to Cursor.","","Cursor supports OAuth for remote MCP. Add to .cursor/mcp.json:","","{",'  "mcpServers": {','    "gbrain": {',`      "url": "${C}/mcp",`,'      "transport": "sse"',"    }","  }","}","","Cursor will auto-discover OAuth via:",`${C}/.well-known/oauth-authorization-server`,"",`When prompted: Client ID ${Q}, use the secret from registration.`].join(`
`):["The user wants to connect GBrain MCP to Cursor.","","Add to .cursor/mcp.json:","","{",'  "mcpServers": {','    "gbrain": {',`      "url": "${C}/mcp",`,'      "transport": "sse",','      "headers": {','        "Authorization": "Bearer PASTE_YOUR_API_KEY_HERE"',"      }","    }","  }","}","",`Replace PASTE_YOUR_API_KEY_HERE with the API key shown when "${b}" was created.`].join(`
`),perplexity:["The user wants to connect GBrain MCP to Perplexity.","","1. Go to Settings > Connectors > Add MCP",`2. Server URL: ${C}/mcp`,`3. Client ID: ${Q}`,"4. Client Secret: (the secret from agent registration)"].join(`
`),json:JSON.stringify({server_url:C+"/mcp",token_url:C+"/token",discovery_url:C+"/.well-known/oauth-authorization-server",client_id:Q,client_name:b,auth_type:o.auth_type,scope:o.scope},null,2)};return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"drawer-overlay",onClick:D}),c.jsxs("div",{className:"drawer",children:[c.jsx("button",{className:"drawer-close",onClick:D,children:"✕"}),c.jsx("div",{style:{fontSize:18,fontWeight:600,marginBottom:4},children:o.name||o.client_name}),c.jsx("span",{className:`badge ${o.status==="active"?"badge-success":"badge-danger"}`,children:o.status}),c.jsx("div",{className:"section-title",children:"Details"}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"100px 1fr",gap:"6px 12px",fontSize:13},children:[c.jsx("span",{style:{color:"var(--text-secondary)"},children:"Client ID"}),c.jsxs("span",{className:"mono",children:[(o.id||o.id||o.client_id||"").substring(0,24),"..."]}),c.jsx("span",{style:{color:"var(--text-secondary)"},children:"Scopes"}),c.jsx("span",{children:(o.scope||"").split(" ").filter(Boolean).map(M=>c.jsx("span",{className:`badge badge-${M}`,style:{marginRight:4},children:M},M))}),c.jsx("span",{style:{color:"var(--text-secondary)"},children:"Registered"}),c.jsx("span",{children:new Date(o.created_at).toLocaleDateString()}),c.jsx("span",{style:{color:"var(--text-secondary)"},children:"Token TTL"}),c.jsx("span",{children:o.token_ttl?o.token_ttl>=31536e3?"No expiry":o.token_ttl>=86400?`${Math.floor(o.token_ttl/86400)}d`:o.token_ttl>=3600?`${Math.floor(o.token_ttl/3600)}h`:`${o.token_ttl}s`:"1h (default)"})]}),c.jsx("div",{className:"section-title",children:"Config Export"}),c.jsxs("div",{className:"tabs",style:{flexWrap:"wrap"},children:[c.jsx("div",{className:`tab ${h==="claude-code"?"active":""}`,onClick:()=>E("claude-code"),children:"Claude Code"}),c.jsx("div",{className:`tab ${h==="chatgpt"?"active":""}`,onClick:()=>E("chatgpt"),children:"ChatGPT"}),c.jsx("div",{className:`tab ${h==="claude-cowork"?"active":""}`,onClick:()=>E("claude-cowork"),children:"Claude.ai"}),c.jsx("div",{className:`tab ${h==="cursor"?"active":""}`,onClick:()=>E("cursor"),children:"Cursor"}),c.jsx("div",{className:`tab ${h==="perplexity"?"active":""}`,onClick:()=>E("perplexity"),children:"Perplexity"}),c.jsx("div",{className:`tab ${h==="json"?"active":""}`,onClick:()=>E("json"),children:"JSON"})]}),(()=>{if(!_&&new Set(["chatgpt","claude-cowork","perplexity"]).has(h)){const A={chatgpt:"ChatGPT","claude-cowork":"Claude.ai",perplexity:"Perplexity"}[h]||h;return c.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:[c.jsxs("div",{style:{fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:[A," requires an OAuth client"]}),A," only supports OAuth 2.0 (client_credentials). API keys use raw bearer tokens, which ",A," does not accept. Register a separate OAuth client and use that to connect this AI."]})}return c.jsxs("div",{className:"code-block",children:[c.jsx("pre",{style:{whiteSpace:"pre-wrap",margin:0},children:H[h]}),c.jsx("button",{className:"copy-btn",onClick:()=>N(H[h]),children:"Copy"})]})})(),c.jsxs("div",{style:{marginTop:32},children:[o.status==="active"&&c.jsx("button",{className:"btn btn-danger",onClick:async()=>{if(confirm(`Revoke ${o.name||o.client_name}? All active tokens will be invalidated.`))try{o.auth_type==="oauth"?await Pl.revokeClient(o.id||o.client_id||""):await Pl.revokeApiKey(o.name||""),O(),D()}catch(M){alert("Revoke failed: "+(M instanceof Error?M.message:"unknown error"))}},children:"Revoke Agent"}),o.status==="revoked"&&c.jsx("span",{style:{color:"var(--text-muted)",fontSize:13},children:"This agent has been revoked."})]})]})]})}function Ty(){const[o,D]=K.useState({rows:[],total:0,page:1,pages:1}),[O,h]=K.useState(1),[E,N]=K.useState("all"),[C,Q]=K.useState(null);K.useEffect(()=>{_(O)},[O,E]);const _=A=>{const I=E!=="all"?`&agent=${encodeURIComponent(E)}`:"";Pl.requests(A,I).then(D).catch(()=>{})},b=A=>{const I=Date.now()-new Date(A).getTime();return I<6e4?`${Math.floor(I/1e3)}s ago`:I<36e5?`${Math.floor(I/6e4)} min ago`:I<864e5?`${Math.floor(I/36e5)}h ago`:new Date(A).toLocaleDateString()},H=A=>{if(!A)return null;const{query:I,slug:L,partial:nl,limit:tl,...bl}=A,Ml=[];return I&&Ml.push(`"${I}"`),L&&Ml.push(L),nl&&Ml.push(`~${nl}`),tl&&Ml.push(`limit=${tl}`),Object.keys(bl).length>0&&Ml.push(`+${Object.keys(bl).length} params`),Ml.join(" ")},M=new Map;return o.rows.forEach(A=>{A.token_name&&M.set(A.token_name,A.agent_name||A.token_name)}),c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:24},children:[c.jsx("h1",{className:"page-title",style:{marginBottom:0},children:"Request Log"}),c.jsxs("select",{value:E,onChange:A=>{N(A.target.value),h(1)},style:{background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:6,padding:"4px 8px",fontSize:13},children:[c.jsx("option",{value:"all",children:"All agents"}),[...M.entries()].map(([A,I])=>c.jsx("option",{value:A,children:I},A))]})]}),o.rows.length===0?c.jsx("div",{style:{textAlign:"center",padding:48,color:"var(--text-muted)"},children:"No requests yet."}):c.jsxs(c.Fragment,{children:[c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Time"}),c.jsx("th",{children:"Agent"}),c.jsx("th",{children:"Operation"}),c.jsx("th",{children:"Params"}),c.jsx("th",{children:"Latency"}),c.jsx("th",{children:"Status"})]})}),c.jsx("tbody",{children:o.rows.map(A=>c.jsxs(Dd.Fragment,{children:[c.jsxs("tr",{onClick:()=>Q(C===A.id?null:A.id),style:{cursor:"pointer"},children:[c.jsx("td",{style:{color:"var(--text-secondary)",whiteSpace:"nowrap"},children:b(A.created_at)}),c.jsx("td",{children:c.jsx("a",{style:{color:"var(--text-link, #88aaff)",cursor:"pointer",textDecoration:"none",fontWeight:500},onClick:I=>{I.stopPropagation(),N(A.token_name),h(1)},children:A.agent_name||A.token_name})}),c.jsx("td",{className:"mono",children:A.operation}),c.jsx("td",{style:{color:"var(--text-secondary)",fontSize:12,maxWidth:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:H(A.params)}),c.jsxs("td",{className:"mono",children:[A.latency_ms,"ms"]}),c.jsx("td",{children:c.jsx("span",{className:`badge badge-${A.status}`,children:A.status})})]}),C===A.id&&c.jsx("tr",{children:c.jsx("td",{colSpan:6,style:{background:"var(--bg-secondary, #0f0f1a)",padding:16},children:c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"100px 1fr",gap:"6px 12px",fontSize:13},children:[c.jsx("span",{style:{color:"var(--text-muted)"},children:"Time"}),c.jsx("span",{children:new Date(A.created_at).toLocaleString()}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Agent"}),c.jsx("span",{className:"mono",children:A.token_name}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Operation"}),c.jsx("span",{className:"mono",children:A.operation}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Latency"}),c.jsxs("span",{children:[A.latency_ms,"ms"]}),A.params&&c.jsxs(c.Fragment,{children:[c.jsx("span",{style:{color:"var(--text-muted)"},children:"Params"}),c.jsx("pre",{className:"mono",style:{margin:0,whiteSpace:"pre-wrap",fontSize:12},children:JSON.stringify(A.params,null,2)})]}),A.error_message&&c.jsxs(c.Fragment,{children:[c.jsx("span",{style:{color:"var(--error, #ff6b6b)"},children:"Error"}),c.jsx("span",{style:{color:"var(--error, #ff6b6b)"},children:A.error_message})]})]})})})]},A.id))})]}),c.jsxs("div",{className:"pagination",children:[c.jsxs("span",{children:["Page ",o.page," of ",o.pages," (",o.total," total)"]}),c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("button",{disabled:o.page<=1,onClick:()=>h(A=>A-1),children:"Previous"}),c.jsx("button",{disabled:o.page>=o.pages,onClick:()=>h(A=>A+1),children:"Next"})]})]})]})]})}function zy({markup:o}){return c.jsx("div",{style:{width:"100%",overflow:"auto"},dangerouslySetInnerHTML:{__html:o}})}function Zu({type:o,ariaLabel:D}){const[O,h]=K.useState(""),[E,N]=K.useState("");return K.useEffect(()=>{let C=!1;return Pl.calibrationChart(o).then(Q=>{C||h(Q)}).catch(Q=>{C||N(Q.message??"fetch failed")}),()=>{C=!0}},[o]),E?c.jsxs("div",{style:{padding:16,color:"var(--error)"},role:"alert",children:[D,": ",E]}):O?c.jsx(zy,{markup:O}):c.jsxs("div",{style:{padding:16,color:"var(--text-muted)"},children:[D," loading..."]})}function Ay(){const[o,D]=K.useState(null),[O,h]=K.useState(!0),[E,N]=K.useState("");if(K.useEffect(()=>{Pl.calibrationProfile().then(_=>{D(_),h(!1)}).catch(_=>{N(_.message??"fetch failed"),h(!1)})},[]),O)return c.jsx("div",{style:{padding:24,color:"var(--text-secondary)"},children:"Loading calibration profile…"});if(E)return c.jsxs("div",{style:{padding:24,color:"var(--error)"},role:"alert",children:["Could not load calibration profile: ",E]});if(!o)return c.jsxs("div",{style:{padding:24,maxWidth:700},children:[c.jsx("h1",{style:{marginBottom:16},children:"Calibration"}),c.jsx("p",{style:{color:"var(--text-secondary)"},children:"No calibration profile yet. Builds after 5+ resolved takes."}),c.jsx("pre",{style:{background:"var(--bg-secondary)",padding:12,borderRadius:4,color:"var(--text-primary)",marginTop:12,fontFamily:"var(--font-mono)"},children:"gbrain dream --phase calibration_profile"})]});const C=new Date(o.generated_at),Q=Math.floor((Date.now()-C.getTime())/(1e3*60*60*24));return c.jsxs("div",{style:{padding:32,maxWidth:720},children:[c.jsx("h1",{style:{marginBottom:8},children:"Calibration"}),c.jsxs("div",{style:{color:"var(--text-muted)",fontSize:13,marginBottom:24},children:["Holder: ",o.holder," · ","Updated ",Q===0?"today":`${Q}d ago`,o.published&&" · published",o.grade_completion<.9&&` · ~${Math.round(o.grade_completion*100)}% graded`,!o.voice_gate_passed&&" · voice gate fell back to template"]}),c.jsx("section",{style:{marginBottom:32},children:c.jsx(Zu,{type:"brier-trend",ariaLabel:"Brier trend"})}),c.jsxs("section",{style:{marginBottom:32},children:[c.jsx("h2",{style:{fontSize:14,color:"var(--text-secondary)",marginBottom:12,fontWeight:400},children:"Pattern statements"}),c.jsx(Zu,{type:"pattern-statements",ariaLabel:"Pattern statements"})]}),c.jsx("section",{style:{marginBottom:32},children:c.jsx(Zu,{type:"domain-bars",ariaLabel:"Per-domain accuracy"})}),c.jsx("section",{style:{marginBottom:32},children:c.jsx(Zu,{type:"abandoned-threads",ariaLabel:"Abandoned threads"})}),o.active_bias_tags.length>0&&c.jsxs("section",{style:{marginBottom:32,color:"var(--text-muted)",fontSize:13},children:["Active bias tags: ",o.active_bias_tags.join(", ")]})]})}function _y(o){return o===0?"var(--accent-success, #2ea043)":o>=100?"var(--accent-danger, #f85149)":"var(--accent-warn, #d29922)"}function Od(o){return`$${(o/100).toFixed(2)}`}function Ey(){const[o,D]=K.useState(null),[O,h]=K.useState(null);if(K.useEffect(()=>{let N=!0,C=null;const Q=async()=>{try{const _=await Pl.jobsWatch();N&&(D(_),h(null))}catch(_){N&&h(_ instanceof Error?_.message:String(_))}N&&(C=setTimeout(Q,1e3))};return Q(),()=>{N=!1,C&&clearTimeout(C)}},[]),O)return c.jsxs("div",{style:{padding:24,color:"var(--accent-danger, #f85149)"},children:[c.jsx("h2",{children:"Jobs Watch — error"}),c.jsx("pre",{style:{whiteSpace:"pre-wrap"},children:O})]});if(!o)return c.jsx("div",{style:{padding:24,color:"var(--text-muted, #777)"},children:"Loading jobs watch…"});const E=new Date(o.ts_ms).toLocaleTimeString();return c.jsxs("div",{style:{padding:24,fontFamily:'var(--font-mono, "JetBrains Mono", monospace)'},children:[c.jsxs("h1",{style:{fontSize:18,marginBottom:4},children:["Jobs Watch",c.jsxs("span",{style:{marginLeft:12,color:"var(--text-muted, #777)",fontSize:12,fontWeight:"normal"},children:["updated ",E]})]}),c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"Queue"}),c.jsxs("div",{children:["waiting=",c.jsx("b",{children:o.queue_health.waiting}),"  ","active=",c.jsx("b",{children:o.queue_health.active}),"  ","stalled=",c.jsx("b",{style:{color:o.queue_health.stalled>0?"var(--accent-warn, #d29922)":void 0},children:o.queue_health.stalled})]})]}),o.by_type.length>0&&c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"By type (24h)"}),c.jsxs("table",{style:{borderCollapse:"collapse"},children:[c.jsx("thead",{children:c.jsxs("tr",{style:{color:"var(--text-muted, #777)",fontSize:12},children:[c.jsx("th",{style:{textAlign:"left",padding:"4px 12px 4px 0"},children:"name"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"total"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"done"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"fail"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"dead"})]})}),c.jsx("tbody",{children:o.by_type.slice(0,6).map(N=>c.jsxs("tr",{children:[c.jsx("td",{style:{padding:"4px 12px 4px 0"},children:N.name}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:N.total}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:N.completed}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:N.failed}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:N.dead})]},N.name))})]})]}),c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"Lease pressure (1h)"}),c.jsxs("div",{style:{color:_y(o.lease_pressure_1h)},children:[o.lease_pressure_1h," bounce",o.lease_pressure_1h===1?"":"s"]})]}),o.top_errors.length>0&&c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"Top errors (24h)"}),c.jsx("table",{style:{borderCollapse:"collapse"},children:c.jsx("tbody",{children:o.top_errors.slice(0,5).map(N=>c.jsxs("tr",{children:[c.jsxs("td",{style:{textAlign:"right",padding:"4px 12px 4px 0",color:"var(--text-muted, #777)"},children:[N.count,"×"]}),c.jsx("td",{style:{padding:"4px 12px 4px 0"},children:N.cluster})]},N.cluster))})})]}),o.budget_owners.length>0&&c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"Budget owners"}),c.jsxs("table",{style:{borderCollapse:"collapse"},children:[c.jsx("thead",{children:c.jsxs("tr",{style:{color:"var(--text-muted, #777)",fontSize:12},children:[c.jsx("th",{style:{textAlign:"left",padding:"4px 12px 4px 0"},children:"owner"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"spent"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"remaining"})]})}),c.jsx("tbody",{children:o.budget_owners.slice(0,5).map(N=>c.jsxs("tr",{children:[c.jsx("td",{style:{padding:"4px 12px 4px 0"},children:N.owner_id}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:Od(N.total_spent_cents)}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:Od(N.remaining_cents)})]},N.owner_id))})]})]})]})}function Nd(){const o=window.location.hash.replace("#","")||"dashboard";return["login","dashboard","agents","log","calibration","jobs"].includes(o)?o:"dashboard"}function Oy(){const[o,D]=K.useState(Nd);K.useEffect(()=>{const E=()=>D(Nd());return window.addEventListener("hashchange",E),()=>window.removeEventListener("hashchange",E)},[]);const O=E=>{window.location.hash=E,D(E)};if(o==="login")return c.jsx(my,{onLogin:()=>O("dashboard")});const h=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 Pl.signOutEverywhere()}catch{}O("login")}};return c.jsxs("div",{className:"app",children:[c.jsxs("nav",{className:"sidebar",children:[c.jsx("div",{className:"sidebar-logo",children:"GBrain"}),c.jsxs("div",{className:"sidebar-nav",children:[c.jsx("a",{className:`nav-item ${o==="dashboard"?"active":""}`,onClick:()=>O("dashboard"),children:"Dashboard"}),c.jsx("a",{className:`nav-item ${o==="agents"?"active":""}`,onClick:()=>O("agents"),children:"Agents"}),c.jsx("a",{className:`nav-item ${o==="log"?"active":""}`,onClick:()=>O("log"),children:"Request Log"}),c.jsx("a",{className:`nav-item ${o==="calibration"?"active":""}`,onClick:()=>O("calibration"),children:"Calibration"}),c.jsx("a",{className:`nav-item ${o==="jobs"?"active":""}`,onClick:()=>O("jobs"),children:"Jobs Watch"})]}),c.jsx("div",{style:{marginTop:"auto",padding:"16px 12px",borderTop:"1px solid var(--border)"},children:c.jsx("button",{onClick:h,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"})})]}),c.jsxs("main",{className:"main",children:[o==="dashboard"&&c.jsx(yy,{}),o==="agents"&&c.jsx(gy,{}),o==="log"&&c.jsx(Ty,{}),o==="calibration"&&c.jsx(Ay,{}),o==="jobs"&&c.jsx(Ey,{})]})]})}dy.createRoot(document.getElementById("root")).render(c.jsx(Dd.StrictMode,{children:c.jsx(Oy,{})}));
