Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

feat(admin): manage OAuth source grants (#3383)

jared-vossd014707e3cdd
diff --git a/admin/dist/assets/index-CoGEje3-.js b/admin/dist/assets/index-CoGEje3-.js
deleted file mode 100644
index 0f8a5879d3..0000000000
--- a/admin/dist/assets/index-CoGEje3-.js
+++ /dev/null
@@ -1,56 +0,0 @@
-(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",{withCredentials:!0});_.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,{})}));
diff --git a/admin/dist/assets/index-CviJXT-1.js b/admin/dist/assets/index-CviJXT-1.js
new file mode 100644
index 0000000000..674e927923
--- /dev/null
+++ b/admin/dist/assets/index-CviJXT-1.js
@@ -0,0 +1,56 @@
+(function(){const M=document.createElement("link").relList;if(M&&M.supports&&M.supports("modulepreload"))return;for(const N of document.querySelectorAll('link[rel="modulepreload"]'))h(N);new MutationObserver(N=>{for(const _ of N)if(_.type==="childList")for(const R of _.addedNodes)R.tagName==="LINK"&&R.rel==="modulepreload"&&h(R)}).observe(document,{childList:!0,subtree:!0});function E(N){const _={};return N.integrity&&(_.integrity=N.integrity),N.referrerPolicy&&(_.referrerPolicy=N.referrerPolicy),N.crossOrigin==="use-credentials"?_.credentials="include":N.crossOrigin==="anonymous"?_.credentials="omit":_.credentials="same-origin",_}function h(N){if(N.ep)return;N.ep=!0;const _=E(N);fetch(N.href,_)}})();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"),M=Symbol.for("react.fragment");function E(h,N,_){var R=null;if(_!==void 0&&(R=""+_),N.key!==void 0&&(R=""+N.key),"key"in N){_={};for(var K in N)K!=="key"&&(_[K]=N[K])}else _=N;return N=_.ref,{$$typeof:o,type:h,key:R,ref:N!==void 0?N:null,props:_}}return jn.Fragment=M,jn.jsx=E,jn.jsxs=E,jn}var Sd;function ay(){return Sd||(Sd=1,ff.exports=ey()),ff.exports}var c=ay(),sf={exports:{}},k={};/**
+ * @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 k;pd=1;var o=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),R=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),O=Symbol.iterator;function Q(d){return d===null||typeof d!="object"?null:(d=O&&d[O]||d["@@iterator"],typeof d=="function"?d:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},it=Object.assign,gt={};function ut(d,z,U){this.props=d,this.context=z,this.refs=gt,this.updater=U||V}ut.prototype.isReactComponent={},ut.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")},ut.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function w(){}w.prototype=ut.prototype;function X(d,z,U){this.props=d,this.context=z,this.refs=gt,this.updater=U||V}var Xt=X.prototype=new w;Xt.constructor=X,it(Xt,ut.prototype),Xt.isPureReactComponent=!0;var Vt=Array.isArray;function Qt(){}var at={H:null,A:null,T:null,S:null},kt=Object.prototype.hasOwnProperty;function El(d,z,U){var q=U.ref;return{$$typeof:o,type:d,key:z,ref:q!==void 0?q:null,props:U}}function Le(d,z){return El(d.type,z,d.props)}function Ol(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function $t(d){var z={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(U){return z[U]})}var Te=/\/+/g;function Ul(d,z){return typeof d=="object"&&d!==null&&d.key!=null?$t(""+d.key):z.toString(36)}function Tl(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Qt,Qt):(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,U,q,$){var I=typeof d;(I==="undefined"||I==="boolean")&&(d=null);var ot=!1;if(d===null)ot=!0;else switch(I){case"bigint":case"string":case"number":ot=!0;break;case"object":switch(d.$$typeof){case o:case M:ot=!0;break;case B:return ot=d._init,x(ot(d._payload),z,U,q,$)}}if(ot)return $=$(d),ot=q===""?"."+Ul(d,0):q,Vt($)?(U="",ot!=null&&(U=ot.replace(Te,"$&/")+"/"),x($,z,U,"",function(Oa){return Oa})):$!=null&&(Ol($)&&($=Le($,U+($.key==null||d&&d.key===$.key?"":(""+$.key).replace(Te,"$&/")+"/")+ot)),z.push($)),1;ot=0;var Kt=q===""?".":q+":";if(Vt(d))for(var At=0;At<d.length;At++)q=d[At],I=Kt+Ul(q,At),ot+=x(q,z,U,I,$);else if(At=Q(d),typeof At=="function")for(d=At.call(d),At=0;!(q=d.next()).done;)q=q.value,I=Kt+Ul(q,At++),ot+=x(q,z,U,I,$);else if(I==="object"){if(typeof d.then=="function")return x(Tl(d),z,U,q,$);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 ot}function C(d,z,U){if(d==null)return d;var q=[],$=0;return x(d,q,"","",function(I){return z.call(U,I,$++)}),q}function J(d){if(d._status===-1){var z=d._result;z=z(),z.then(function(U){(d._status===0||d._status===-1)&&(d._status=1,d._result=U)},function(U){(d._status===0||d._status===-1)&&(d._status=2,d._result=U)}),d._status===-1&&(d._status=0,d._result=z)}if(d._status===1)return d._result.default;throw d._result}var ht=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)},St={map:C,forEach:function(d,z,U){C(d,function(){z.apply(this,arguments)},U)},count:function(d){var z=0;return C(d,function(){z++}),z},toArray:function(d){return C(d,function(z){return z})||[]},only:function(d){if(!Ol(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return k.Activity=D,k.Children=St,k.Component=ut,k.Fragment=E,k.Profiler=N,k.PureComponent=X,k.StrictMode=h,k.Suspense=A,k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=at,k.__COMPILER_RUNTIME={__proto__:null,c:function(d){return at.H.useMemoCache(d)}},k.cache=function(d){return function(){return d.apply(null,arguments)}},k.cacheSignal=function(){return null},k.cloneElement=function(d,z,U){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var q=it({},d.props),$=d.key;if(z!=null)for(I in z.key!==void 0&&($=""+z.key),z)!kt.call(z,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&z.ref===void 0||(q[I]=z[I]);var I=arguments.length-2;if(I===1)q.children=U;else if(1<I){for(var ot=Array(I),Kt=0;Kt<I;Kt++)ot[Kt]=arguments[Kt+2];q.children=ot}return El(d.type,$,q)},k.createContext=function(d){return d={$$typeof:R,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:_,_context:d},d},k.createElement=function(d,z,U){var q,$={},I=null;if(z!=null)for(q in z.key!==void 0&&(I=""+z.key),z)kt.call(z,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&($[q]=z[q]);var ot=arguments.length-2;if(ot===1)$.children=U;else if(1<ot){for(var Kt=Array(ot),At=0;At<ot;At++)Kt[At]=arguments[At+2];$.children=Kt}if(d&&d.defaultProps)for(q in ot=d.defaultProps,ot)$[q]===void 0&&($[q]=ot[q]);return El(d,I,$)},k.createRef=function(){return{current:null}},k.forwardRef=function(d){return{$$typeof:K,render:d}},k.isValidElement=Ol,k.lazy=function(d){return{$$typeof:B,_payload:{_status:-1,_result:d},_init:J}},k.memo=function(d,z){return{$$typeof:p,type:d,compare:z===void 0?null:z}},k.startTransition=function(d){var z=at.T,U={};at.T=U;try{var q=d(),$=at.S;$!==null&&$(U,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(Qt,ht)}catch(I){ht(I)}finally{z!==null&&U.types!==null&&(z.types=U.types),at.T=z}},k.unstable_useCacheRefresh=function(){return at.H.useCacheRefresh()},k.use=function(d){return at.H.use(d)},k.useActionState=function(d,z,U){return at.H.useActionState(d,z,U)},k.useCallback=function(d,z){return at.H.useCallback(d,z)},k.useContext=function(d){return at.H.useContext(d)},k.useDebugValue=function(){},k.useDeferredValue=function(d,z){return at.H.useDeferredValue(d,z)},k.useEffect=function(d,z){return at.H.useEffect(d,z)},k.useEffectEvent=function(d){return at.H.useEffectEvent(d)},k.useId=function(){return at.H.useId()},k.useImperativeHandle=function(d,z,U){return at.H.useImperativeHandle(d,z,U)},k.useInsertionEffect=function(d,z){return at.H.useInsertionEffect(d,z)},k.useLayoutEffect=function(d,z){return at.H.useLayoutEffect(d,z)},k.useMemo=function(d,z){return at.H.useMemo(d,z)},k.useOptimistic=function(d,z){return at.H.useOptimistic(d,z)},k.useReducer=function(d,z,U){return at.H.useReducer(d,z,U)},k.useRef=function(d){return at.H.useRef(d)},k.useState=function(d){return at.H.useState(d)},k.useSyncExternalStore=function(d,z,U){return at.H.useSyncExternalStore(d,z,U)},k.useTransition=function(){return at.H.useTransition()},k.version="19.2.5",k}var bd;function mf(){return bd||(bd=1,sf.exports=ny()),sf.exports}var L=mf();const Dd=Md(L);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 M(x,C){var J=x.length;x.push(C);t:for(;0<J;){var ht=J-1>>>1,St=x[ht];if(0<N(St,C))x[ht]=C,x[J]=St,J=ht;else break t}}function E(x){return x.length===0?null:x[0]}function h(x){if(x.length===0)return null;var C=x[0],J=x.pop();if(J!==C){x[0]=J;t:for(var ht=0,St=x.length,d=St>>>1;ht<d;){var z=2*(ht+1)-1,U=x[z],q=z+1,$=x[q];if(0>N(U,J))q<St&&0>N($,U)?(x[ht]=$,x[q]=J,ht=q):(x[ht]=U,x[z]=J,ht=z);else if(q<St&&0>N($,J))x[ht]=$,x[q]=J,ht=q;else break t}}return C}function N(x,C){var J=x.sortIndex-C.sortIndex;return J!==0?J:x.id-C.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var _=performance;o.unstable_now=function(){return _.now()}}else{var R=Date,K=R.now();o.unstable_now=function(){return R.now()-K}}var A=[],p=[],B=1,D=null,O=3,Q=!1,V=!1,it=!1,gt=!1,ut=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Xt(x){for(var C=E(p);C!==null;){if(C.callback===null)h(p);else if(C.startTime<=x)h(p),C.sortIndex=C.expirationTime,M(A,C);else break;C=E(p)}}function Vt(x){if(it=!1,Xt(x),!V)if(E(A)!==null)V=!0,Qt||(Qt=!0,$t());else{var C=E(p);C!==null&&Tl(Vt,C.startTime-x)}}var Qt=!1,at=-1,kt=5,El=-1;function Le(){return gt?!0:!(o.unstable_now()-El<kt)}function Ol(){if(gt=!1,Qt){var x=o.unstable_now();El=x;var C=!0;try{t:{V=!1,it&&(it=!1,w(at),at=-1),Q=!0;var J=O;try{l:{for(Xt(x),D=E(A);D!==null&&!(D.expirationTime>x&&Le());){var ht=D.callback;if(typeof ht=="function"){D.callback=null,O=D.priorityLevel;var St=ht(D.expirationTime<=x);if(x=o.unstable_now(),typeof St=="function"){D.callback=St,Xt(x),C=!0;break l}D===E(A)&&h(A),Xt(x)}else h(A);D=E(A)}if(D!==null)C=!0;else{var d=E(p);d!==null&&Tl(Vt,d.startTime-x),C=!1}}break t}finally{D=null,O=J,Q=!1}C=void 0}}finally{C?$t():Qt=!1}}}var $t;if(typeof X=="function")$t=function(){X(Ol)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Ul=Te.port2;Te.port1.onmessage=Ol,$t=function(){Ul.postMessage(null)}}else $t=function(){ut(Ol,0)};function Tl(x,C){at=ut(function(){x(o.unstable_now())},C)}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"):kt=0<x?Math.floor(1e3/x):5},o.unstable_getCurrentPriorityLevel=function(){return O},o.unstable_next=function(x){switch(O){case 1:case 2:case 3:var C=3;break;default:C=O}var J=O;O=C;try{return x()}finally{O=J}},o.unstable_requestPaint=function(){gt=!0},o.unstable_runWithPriority=function(x,C){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var J=O;O=x;try{return C()}finally{O=J}},o.unstable_scheduleCallback=function(x,C,J){var ht=o.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ht+J:ht):J=ht,x){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=J+St,x={id:B++,callback:C,priorityLevel:x,startTime:J,expirationTime:St,sortIndex:-1},J>ht?(x.sortIndex=J,M(p,x),E(A)===null&&x===E(p)&&(it?(w(at),at=-1):it=!0,Tl(Vt,J-ht))):(x.sortIndex=St,M(A,x),V||Q||(V=!0,Qt||(Qt=!0,$t()))),x},o.unstable_shouldYield=Le,o.unstable_wrapCallback=function(x){var C=O;return function(){var J=O;O=C;try{return x.apply(this,arguments)}finally{O=J}}}})(df)),df}var jd;function iy(){return jd||(jd=1,rf.exports=uy()),rf.exports}var hf={exports:{}},Zt={};/**
+ * @license React
+ * react-dom.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Td;function cy(){if(Td)return Zt;Td=1;var o=mf();function M(A){var p="https://react.dev/errors/"+A;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var B=2;B<arguments.length;B++)p+="&args[]="+encodeURIComponent(arguments[B])}return"Minified React error #"+A+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function E(){}var h={d:{f:E,r:function(){throw Error(M(522))},D:E,C:E,L:E,m:E,X:E,S:E,M:E},p:0,findDOMNode:null},N=Symbol.for("react.portal");function _(A,p,B){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:N,key:D==null?null:""+D,children:A,containerInfo:p,implementation:B}}var R=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function K(A,p){if(A==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,Zt.createPortal=function(A,p){var B=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(M(299));return _(A,p,null,B)},Zt.flushSync=function(A){var p=R.T,B=h.p;try{if(R.T=null,h.p=2,A)return A()}finally{R.T=p,h.p=B,h.d.f()}},Zt.preconnect=function(A,p){typeof A=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,h.d.C(A,p))},Zt.prefetchDNS=function(A){typeof A=="string"&&h.d.D(A)},Zt.preinit=function(A,p){if(typeof A=="string"&&p&&typeof p.as=="string"){var B=p.as,D=K(B,p.crossOrigin),O=typeof p.integrity=="string"?p.integrity:void 0,Q=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;B==="style"?h.d.S(A,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:D,integrity:O,fetchPriority:Q}):B==="script"&&h.d.X(A,{crossOrigin:D,integrity:O,fetchPriority:Q,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Zt.preinitModule=function(A,p){if(typeof A=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var B=K(p.as,p.crossOrigin);h.d.M(A,{crossOrigin:B,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&h.d.M(A)},Zt.preload=function(A,p){if(typeof A=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var B=p.as,D=K(B,p.crossOrigin);h.d.L(A,B,{crossOrigin:D,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Zt.preloadModule=function(A,p){if(typeof A=="string")if(p){var B=K(p.as,p.crossOrigin);h.d.m(A,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:B,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else h.d.m(A)},Zt.requestFormReset=function(A){h.d.r(A)},Zt.unstable_batchedUpdates=function(A,p){return A(p)},Zt.useFormState=function(A,p,B){return R.H.useFormState(A,p,B)},Zt.useFormStatus=function(){return R.H.useHostTransitionStatus()},Zt.version="19.2.5",Zt}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(M){console.error(M)}}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(),M=mf(),E=fy();function h(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function N(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function _(t){var l=t,e=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(e=l.return),t=l.return;while(t)}return l.tag===3?e:null}function R(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function K(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function A(t){if(_(t)!==t)throw Error(h(188))}function p(t){var l=t.alternate;if(!l){if(l=_(t),l===null)throw Error(h(188));return l!==t?null:t}for(var e=t,a=l;;){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 A(n),t;if(u===a)return A(n),l;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?t:l}function B(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=B(t),l!==null)return l;t=t.sibling}return null}var D=Object.assign,O=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),it=Symbol.for("react.fragment"),gt=Symbol.for("react.strict_mode"),ut=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Xt=Symbol.for("react.forward_ref"),Vt=Symbol.for("react.suspense"),Qt=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),kt=Symbol.for("react.lazy"),El=Symbol.for("react.activity"),Le=Symbol.for("react.memo_cache_sentinel"),Ol=Symbol.iterator;function $t(t){return t===null||typeof t!="object"?null:(t=Ol&&t[Ol]||t["@@iterator"],typeof t=="function"?t:null)}var Te=Symbol.for("react.client.reference");function Ul(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Te?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case it:return"Fragment";case ut:return"Profiler";case gt:return"StrictMode";case Vt:return"Suspense";case Qt:return"SuspenseList";case El:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case X:return t.displayName||"Context";case w:return(t._context.displayName||"Context")+".Consumer";case Xt:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case at:return l=t.displayName||null,l!==null?l:Ul(t.type)||"Memo";case kt:l=t._payload,t=t._init;try{return Ul(t(l))}catch{}}return null}var Tl=Array.isArray,x=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ht=[],St=-1;function d(t){return{current:t}}function z(t){0>St||(t.current=ht[St],ht[St]=null,St--)}function U(t,l){St++,ht[St]=t.current,t.current=l}var q=d(null),$=d(null),I=d(null),ot=d(null);function Kt(t,l){switch(U(I,l),U($,t),U(q,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?Xr(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=Xr(l),t=Qr(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}z(q),U(q,t)}function At(){z(q),z($),z(I)}function Oa(t){t.memoizedState!==null&&U(ot,t);var l=q.current,e=Qr(l,t.type);l!==e&&(U($,t),U(q,e))}function zn(t){$.current===t&&(z(q),z($)),ot.current===t&&(z(ot),Sn._currentValue=J)}var Lu,yf;function ze(t){if(Lu===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\n( *(at )?)/);Lu=l&&l[1]||"",yf=-1<e.stack.indexOf(`
+ at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
+`+Lu+t+yf}var Vu=!1;function Ku(t,l){if(!t||Vu)return"";Vu=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){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(t,[],T)}else{try{T.call()}catch(S){g=S}t.call(T.prototype)}}else{try{throw Error()}catch(S){g=S}(T=t())&&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 b=`
+`+s[a].replace(" at new "," at ");return t.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",t.displayName)),b}while(1<=a&&0<=n);break}}}finally{Vu=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:"")?ze(e):""}function Ud(t,l){switch(t.tag){case 26:case 27:case 5:return ze(t.type);case 16:return ze("Lazy");case 13:return t.child!==l&&l!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return Ku(t.type,!1);case 11:return Ku(t.type.render,!1);case 1:return Ku(t.type,!0);case 31:return ze("Activity");default:return""}}function vf(t){try{var l="",e=null;do l+=Ud(t,e),e=t,t=t.return;while(t);return l}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,al=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,nl=null;function Il(t){if(typeof Yd=="function"&&Gd(t),nl&&typeof nl.setStrictMode=="function")try{nl.setStrictMode(Na,t)}catch{}}var ul=Math.clz32?Math.clz32:Zd,Xd=Math.log,Qd=Math.LN2;function Zd(t){return t>>>=0,t===0?32:31-(Xd(t)/Qd|0)|0}var _n=256,En=262144,On=4194304;function Ae(t){var l=t&42;if(l!==0)return l;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Nn(t,l,e){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.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&~t,e!==0&&(n=Ae(e))))):(f=a&~u,f!==0?n=Ae(f):i!==0?n=Ae(i):e||(e=a&~t,e!==0&&(n=Ae(e)))),n===0?0:l!==0&&l!==n&&(l&u)===0&&(u=n&-n,e=l&-l,u>=e||u===32&&(e&4194048)!==0)?l:n}function Ma(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function Ld(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 t=On;return On<<=1,(On&62914560)===0&&(On=4194304),t}function $u(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Da(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Vd(t,l,e,a,n,u){var i=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var f=t.entanglements,s=t.expirationTimes,v=t.hiddenUpdates;for(e=i&~e;0<e;){var b=31-ul(e),T=1<<b;f[b]=0,s[b]=-1;var g=v[b];if(g!==null)for(v[b]=null,b=0;b<g.length;b++){var S=g[b];S!==null&&(S.lane&=-536870913)}e&=~T}a!==0&&xf(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~l))}function xf(t,l,e){t.pendingLanes|=l,t.suspendedLanes&=~l;var a=31-ul(l);t.entangledLanes|=l,t.entanglements[a]=t.entanglements[a]|1073741824|e&261930}function jf(t,l){var e=t.entangledLanes|=l;for(t=t.entanglements;e;){var a=31-ul(e),n=1<<a;n&l|t[a]&l&&(t[a]|=l),e&=~n}}function Tf(t,l){var e=l&-l;return e=(e&42)!==0?1:Wu(e),(e&(t.suspendedLanes|l))!==0?0:e}function Wu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Fu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function zf(){var t=C.p;return t!==0?t:(t=window.event,t===void 0?32:od(t.type))}function Af(t,l){var e=C.p;try{return C.p=t,l()}finally{C.p=e}}var Pl=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Pl,Wt="__reactProps$"+Pl,Ve="__reactContainer$"+Pl,Iu="__reactEvents$"+Pl,Kd="__reactListeners$"+Pl,Jd="__reactHandles$"+Pl,_f="__reactResources$"+Pl,Ca="__reactMarker$"+Pl;function Pu(t){delete t[Bt],delete t[Wt],delete t[Iu],delete t[Kd],delete t[Jd]}function Ke(t){var l=t[Bt];if(l)return l;for(var e=t.parentNode;e;){if(l=e[Ve]||e[Bt]){if(e=l.alternate,l.child!==null||e!==null&&e.child!==null)for(t=kr(t);t!==null;){if(e=t[Bt])return e;t=kr(t)}return l}t=e,e=t.parentNode}return null}function Je(t){if(t=t[Bt]||t[Ve]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function Ua(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(h(33))}function we(t){var l=t[_f];return l||(l=t[_f]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Ut(t){t[Ca]=!0}var Ef=new Set,Of={};function _e(t,l){ke(t,l),ke(t+"Capture",l)}function ke(t,l){for(Of[t]=l,t=0;t<l.length;t++)Ef.add(l[t])}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(t){return Ju.call(Mf,t)?!0:Ju.call(Nf,t)?!1:wd.test(t)?Mf[t]=!0:(Nf[t]=!0,!1)}function Mn(t,l,e){if(kd(l))if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":t.removeAttribute(l);return;case"boolean":var a=l.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(l);return}}t.setAttribute(l,""+e)}}function Dn(t,l,e){if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttribute(l,""+e)}}function Rl(t,l,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttributeNS(l,e,""+a)}}function hl(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Df(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function $d(t,l,e){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return n.call(this)},set:function(i){e=""+i,u.call(this,i)}}),Object.defineProperty(t,l,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function ti(t){if(!t._valueTracker){var l=Df(t)?"checked":"value";t._valueTracker=$d(t,l,""+t[l])}}function Cf(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var e=l.getValue(),a="";return t&&(a=Df(t)?t.checked?"true":"false":t.value),t=a,t!==e?(l.setValue(t),!0):!1}function Cn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Wd=/[\n"\\]/g;function ml(t){return t.replace(Wd,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function li(t,l,e,a,n,u,i,f){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),l!=null?i==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+hl(l)):t.value!==""+hl(l)&&(t.value=""+hl(l)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),l!=null?ei(t,i,hl(l)):e!=null?ei(t,i,hl(e)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+hl(f):t.removeAttribute("name")}function Uf(t,l,e,a,n,u,i,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),l!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||l!=null)){ti(t);return}e=e!=null?""+hl(e):"",l=l!=null?""+hl(l):e,f||l===t.value||(t.value=l),t.defaultValue=l}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),ti(t)}function ei(t,l,e){l==="number"&&Cn(t.ownerDocument)===t||t.defaultValue===""+e||(t.defaultValue=""+e)}function $e(t,l,e,a){if(t=t.options,l){l={};for(var n=0;n<e.length;n++)l["$"+e[n]]=!0;for(e=0;e<t.length;e++)n=l.hasOwnProperty("$"+t[e].value),t[e].selected!==n&&(t[e].selected=n),n&&a&&(t[e].defaultSelected=!0)}else{for(e=""+hl(e),l=null,n=0;n<t.length;n++){if(t[n].value===e){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}l!==null||t[n].disabled||(l=t[n])}l!==null&&(l.selected=!0)}}function Rf(t,l,e){if(l!=null&&(l=""+hl(l),l!==t.value&&(t.value=l),e==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=e!=null?""+hl(e):""}function Bf(t,l,e,a){if(l==null){if(a!=null){if(e!=null)throw Error(h(92));if(Tl(a)){if(1<a.length)throw Error(h(93));a=a[0]}e=a}e==null&&(e=""),l=e}e=hl(l),t.defaultValue=e,a=t.textContent,a===e&&a!==""&&a!==null&&(t.value=a),ti(t)}function We(t,l){if(l){var e=t.firstChild;if(e&&e===t.lastChild&&e.nodeType===3){e.nodeValue=l;return}}t.textContent=l}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(t,l,e){var a=l.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="":a?t.setProperty(l,e):typeof e!="number"||e===0||Fd.has(l)?l==="float"?t.cssFloat=e:t[l]=(""+e).trim():t[l]=e+"px"}function qf(t,l,e){if(l!=null&&typeof l!="object")throw Error(h(62));if(t=t.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||l!=null&&l.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in l)a=l[n],l.hasOwnProperty(n)&&e[n]!==a&&Hf(t,n,a)}else for(var u in l)l.hasOwnProperty(u)&&Hf(t,u,l[u])}function ai(t){if(t.indexOf("-")===-1)return!1;switch(t){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(t){return Pd.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Bl(){}var ni=null;function ui(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fe=null,Ie=null;function Yf(t){var l=Je(t);if(l&&(t=l.stateNode)){var e=t[Wt]||null;t:switch(t=l.stateNode,l.type){case"input":if(li(t,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),l=e.name,e.type==="radio"&&l!=null){for(e=t;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+ml(""+l)+'"][type="radio"]'),l=0;l<e.length;l++){var a=e[l];if(a!==t&&a.form===t.form){var n=a[Wt]||null;if(!n)throw Error(h(90));li(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(l=0;l<e.length;l++)a=e[l],a.form===t.form&&Cf(a)}break t;case"textarea":Rf(t,e.value,e.defaultValue);break t;case"select":l=e.value,l!=null&&$e(t,!!e.multiple,l,!1)}}}var ii=!1;function Gf(t,l,e){if(ii)return t(l,e);ii=!0;try{var a=t(l);return a}finally{if(ii=!1,(Fe!==null||Ie!==null)&&(bu(),Fe&&(l=Fe,t=Ie,Ie=Fe=null,Yf(l),t)))for(l=0;l<t.length;l++)Yf(t[l])}}function Ra(t,l){var e=t.stateNode;if(e===null)return null;var a=e[Wt]||null;if(a===null)return null;e=a[l];t:switch(l){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(e&&typeof e!="function")throw Error(h(231,l,typeof e));return e}var Hl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ci=!1;if(Hl)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 te=null,fi=null,Rn=null;function Xf(){if(Rn)return Rn;var t,l=fi,e=l.length,a,n="value"in te?te.value:te.textContent,u=n.length;for(t=0;t<e&&l[t]===n[t];t++);var i=e-t;for(a=1;a<=i&&l[e-a]===n[u-a];a++);return Rn=n.slice(t,1<a?1-a:void 0)}function Bn(t){var l=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function Hn(){return!0}function Qf(){return!1}function Ft(t){function l(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 t)t.hasOwnProperty(f)&&(e=t[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 D(l.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}),l}var Ee={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qn=Ft(Ee),Ha=D({},Ee,{view:0,detail:0}),th=Ft(Ha),si,oi,qa,Yn=D({},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(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==qa&&(qa&&t.type==="mousemove"?(si=t.screenX-qa.screenX,oi=t.screenY-qa.screenY):oi=si=0,qa=t),si)},movementY:function(t){return"movementY"in t?t.movementY:oi}}),Zf=Ft(Yn),lh=D({},Yn,{dataTransfer:0}),eh=Ft(lh),ah=D({},Ha,{relatedTarget:0}),ri=Ft(ah),nh=D({},Ee,{animationName:0,elapsedTime:0,pseudoElement:0}),uh=Ft(nh),ih=D({},Ee,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ch=Ft(ih),fh=D({},Ee,{data:0}),Lf=Ft(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(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=rh[t])?!!l[t]:!1}function di(){return dh}var hh=D({},Ha,{key:function(t){if(t.key){var l=sh[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=Bn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?oh[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:di,charCode:function(t){return t.type==="keypress"?Bn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Bn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),mh=Ft(hh),yh=D({},Yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vf=Ft(yh),vh=D({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:di}),gh=Ft(vh),Sh=D({},Ee,{propertyName:0,elapsedTime:0,pseudoElement:0}),ph=Ft(Sh),bh=D({},Yn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),xh=Ft(bh),jh=D({},Ee,{newState:0,oldState:0}),Th=Ft(jh),zh=[9,13,27,32],hi=Hl&&"CompositionEvent"in window,Ya=null;Hl&&"documentMode"in document&&(Ya=document.documentMode);var Ah=Hl&&"TextEvent"in window&&!Ya,Kf=Hl&&(!hi||Ya&&8<Ya&&11>=Ya),Jf=" ",wf=!1;function kf(t,l){switch(t){case"keyup":return zh.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $f(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pe=!1;function _h(t,l){switch(t){case"compositionend":return $f(l);case"keypress":return l.which!==32?null:(wf=!0,Jf);case"textInput":return t=l.data,t===Jf&&wf?null:t;default:return null}}function Eh(t,l){if(Pe)return t==="compositionend"||!hi&&kf(t,l)?(t=Xf(),Rn=fi=te=null,Pe=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Kf&&l.locale!=="ko"?null:l.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(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!Oh[t.type]:l==="textarea"}function Ff(t,l,e,a){Fe?Ie?Ie.push(a):Ie=[a]:Fe=a,l=Eu(l,"onChange"),0<l.length&&(e=new qn("onChange","change",null,e,a),t.push({event:e,listeners:l}))}var Ga=null,Xa=null;function Nh(t){Rr(t,0)}function Gn(t){var l=Ua(t);if(Cf(l))return t}function If(t,l){if(t==="change")return l}var Pf=!1;if(Hl){var mi;if(Hl){var yi="oninput"in document;if(!yi){var ts=document.createElement("div");ts.setAttribute("oninput","return;"),yi=typeof ts.oninput=="function"}mi=yi}else mi=!1;Pf=mi&&(!document.documentMode||9<document.documentMode)}function ls(){Ga&&(Ga.detachEvent("onpropertychange",es),Xa=Ga=null)}function es(t){if(t.propertyName==="value"&&Gn(Xa)){var l=[];Ff(l,Xa,t,ui(t)),Gf(Nh,l)}}function Mh(t,l,e){t==="focusin"?(ls(),Ga=l,Xa=e,Ga.attachEvent("onpropertychange",es)):t==="focusout"&&ls()}function Dh(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gn(Xa)}function Ch(t,l){if(t==="click")return Gn(l)}function Uh(t,l){if(t==="input"||t==="change")return Gn(l)}function Rh(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var il=typeof Object.is=="function"?Object.is:Rh;function Qa(t,l){if(il(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;var e=Object.keys(t),a=Object.keys(l);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var n=e[a];if(!Ju.call(l,n)||!il(t[n],l[n]))return!1}return!0}function as(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ns(t,l){var e=as(t);t=0;for(var a;e;){if(e.nodeType===3){if(a=t+e.textContent.length,t<=l&&a>=l)return{node:e,offset:l-t};t=a}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=as(e)}}function us(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?us(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function is(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Cn(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href=="string"}catch{e=!1}if(e)t=l.contentWindow;else break;l=Cn(t.document)}return l}function vi(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var Bh=Hl&&"documentMode"in document&&11>=document.documentMode,ta=null,gi=null,Za=null,Si=!1;function cs(t,l,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Si||ta==null||ta!==Cn(a)||(a=ta,"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&&(l=new qn("onSelect","select",null,l,e),t.push({event:l,listeners:a}),l.target=ta)))}function Oe(t,l){var e={};return e[t.toLowerCase()]=l.toLowerCase(),e["Webkit"+t]="webkit"+l,e["Moz"+t]="moz"+l,e}var la={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={};Hl&&(fs=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function Ne(t){if(pi[t])return pi[t];if(!la[t])return t;var l=la[t],e;for(e in l)if(l.hasOwnProperty(e)&&e in fs)return pi[t]=l[e];return t}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 zl(t,l){hs.set(t,l),_e(l,[t])}var Xn=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},yl=[],ea=0,xi=0;function Qn(){for(var t=ea,l=xi=ea=0;l<t;){var e=yl[l];yl[l++]=null;var a=yl[l];yl[l++]=null;var n=yl[l];yl[l++]=null;var u=yl[l];if(yl[l++]=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(t,l,e,a){yl[ea++]=t,yl[ea++]=l,yl[ea++]=e,yl[ea++]=a,xi|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function ji(t,l,e,a){return Zn(t,l,e,a),Ln(t)}function Me(t,l){return Zn(t,null,null,l),Ln(t)}function ms(t,l,e){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e);for(var n=!1,u=t.return;u!==null;)u.childLanes|=e,a=u.alternate,a!==null&&(a.childLanes|=e),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&l!==null&&(n=31-ul(e),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[l]:a.push(l),l.lane=e|536870912),u):null}function Ln(t){if(50<rn)throw rn=0,Dc=null,Error(h(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var aa={};function Gh(t,l,e,a){this.tag=t,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=l,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 cl(t,l,e,a){return new Gh(t,l,e,a)}function Ti(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ql(t,l){var e=t.alternate;return e===null?(e=cl(t.tag,l,t.key,t.mode),e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.alternate=t,t.alternate=e):(e.pendingProps=l,e.type=t.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=t.flags&65011712,e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.refCleanup=t.refCleanup,e}function ys(t,l){t.flags&=65011714;var e=t.alternate;return e===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.type=e.type,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function Vn(t,l,e,a,n,u){var i=0;if(a=t,typeof t=="function")Ti(t)&&(i=1);else if(typeof t=="string")i=Vm(t,e,q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case El:return t=cl(31,e,l,n),t.elementType=El,t.lanes=u,t;case it:return De(e.children,n,u,l);case gt:i=8,n|=24;break;case ut:return t=cl(12,e,l,n|2),t.elementType=ut,t.lanes=u,t;case Vt:return t=cl(13,e,l,n),t.elementType=Vt,t.lanes=u,t;case Qt:return t=cl(19,e,l,n),t.elementType=Qt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:i=10;break t;case w:i=9;break t;case Xt:i=11;break t;case at:i=14;break t;case kt:i=16,a=null;break t}i=29,e=Error(h(130,t===null?"null":typeof t,"")),a=null}return l=cl(i,e,l,n),l.elementType=t,l.type=a,l.lanes=u,l}function De(t,l,e,a){return t=cl(7,t,a,l),t.lanes=e,t}function zi(t,l,e){return t=cl(6,t,null,l),t.lanes=e,t}function vs(t){var l=cl(18,null,null,0);return l.stateNode=t,l}function Ai(t,l,e){return l=cl(4,t.children!==null?t.children:[],t.key,l),l.lanes=e,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var gs=new WeakMap;function vl(t,l){if(typeof t=="object"&&t!==null){var e=gs.get(t);return e!==void 0?e:(l={value:t,source:l,stack:vf(l)},gs.set(t,l),l)}return{value:t,source:l,stack:vf(l)}}var na=[],ua=0,Kn=null,La=0,gl=[],Sl=0,le=null,Nl=1,Ml="";function Yl(t,l){na[ua++]=La,na[ua++]=Kn,Kn=t,La=l}function Ss(t,l,e){gl[Sl++]=Nl,gl[Sl++]=Ml,gl[Sl++]=le,le=t;var a=Nl;t=Ml;var n=32-ul(a)-1;a&=~(1<<n),e+=1;var u=32-ul(l)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Nl=1<<32-ul(l)+n|e<<n|a,Ml=u+t}else Nl=1<<u|e<<n|a,Ml=t}function _i(t){t.return!==null&&(Yl(t,1),Ss(t,1,0))}function Ei(t){for(;t===Kn;)Kn=na[--ua],na[ua]=null,La=na[--ua],na[ua]=null;for(;t===le;)le=gl[--Sl],gl[Sl]=null,Ml=gl[--Sl],gl[Sl]=null,Nl=gl[--Sl],gl[Sl]=null}function ps(t,l){gl[Sl++]=Nl,gl[Sl++]=Ml,gl[Sl++]=le,Nl=l.id,Ml=l.overflow,le=t}var Ht=null,bt=null,nt=!1,ee=null,pl=!1,Oi=Error(h(519));function ae(t){var l=Error(h(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(vl(l,t)),Oi}function bs(t){var l=t.stateNode,e=t.type,a=t.memoizedProps;switch(l[Bt]=t,l[Wt]=a,e){case"dialog":tt("cancel",l),tt("close",l);break;case"iframe":case"object":case"embed":tt("load",l);break;case"video":case"audio":for(e=0;e<hn.length;e++)tt(hn[e],l);break;case"source":tt("error",l);break;case"img":case"image":case"link":tt("error",l),tt("load",l);break;case"details":tt("toggle",l);break;case"input":tt("invalid",l),Uf(l,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":tt("invalid",l);break;case"textarea":tt("invalid",l),Bf(l,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||l.textContent===""+e||a.suppressHydrationWarning===!0||Yr(l.textContent,e)?(a.popover!=null&&(tt("beforetoggle",l),tt("toggle",l)),a.onScroll!=null&&tt("scroll",l),a.onScrollEnd!=null&&tt("scrollend",l),a.onClick!=null&&(l.onclick=Bl),l=!0):l=!1,l||ae(t,!0)}function xs(t){for(Ht=t.return;Ht;)switch(Ht.tag){case 5:case 31:case 13:pl=!1;return;case 27:case 3:pl=!0;return;default:Ht=Ht.return}}function ia(t){if(t!==Ht)return!1;if(!nt)return xs(t),nt=!0,!1;var l=t.tag,e;if((e=l!==3&&l!==27)&&((e=l===5)&&(e=t.type,e=!(e!=="form"&&e!=="button")||Jc(t.type,t.memoizedProps)),e=!e),e&&bt&&ae(t),xs(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(h(317));bt=wr(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(h(317));bt=wr(t)}else l===27?(l=bt,ge(t.type)?(t=Fc,Fc=null,bt=t):bt=l):bt=Ht?xl(t.stateNode.nextSibling):null;return!0}function Ce(){bt=Ht=null,nt=!1}function Ni(){var t=ee;return t!==null&&(ll===null?ll=t:ll.push.apply(ll,t),ee=null),t}function Va(t){ee===null?ee=[t]:ee.push(t)}var Mi=d(null),Ue=null,Gl=null;function ne(t,l,e){U(Mi,l._currentValue),l._currentValue=e}function Xl(t){t._currentValue=Mi.current,z(Mi)}function Di(t,l,e){for(;t!==null;){var a=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,a!==null&&(a.childLanes|=l)):a!==null&&(a.childLanes&l)!==l&&(a.childLanes|=l),t===e)break;t=t.return}}function Ci(t,l,e,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;t:for(;u!==null;){var f=u;u=n;for(var s=0;s<l.length;s++)if(f.context===l[s]){u.lanes|=e,f=u.alternate,f!==null&&(f.lanes|=e),Di(u.return,e,t),a||(i=null);break t}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,t),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ca(t,l,e,a){t=null;for(var n=l,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;il(n.pendingProps.value,i.value)||(t!==null?t.push(f):t=[f])}}else if(n===ot.current){if(i=n.alternate,i===null)throw Error(h(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Sn):t=[Sn])}n=n.return}t!==null&&Ci(l,t,e,a),l.flags|=262144}function Jn(t){for(t=t.firstContext;t!==null;){if(!il(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Re(t){Ue=t,Gl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function qt(t){return js(Ue,t)}function wn(t,l){return Ue===null&&Re(t),js(t,l)}function js(t,l){var e=l._currentValue;if(l={context:l,memoizedValue:e,next:null},Gl===null){if(t===null)throw Error(h(308));Gl=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Gl=Gl.next=l;return e}var Xh=typeof AbortController<"u"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(e,a){t.push(a)}};this.abort=function(){l.aborted=!0,t.forEach(function(e){return e()})}},Qh=o.unstable_scheduleCallback,Zh=o.unstable_NormalPriority,Ot={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ui(){return{controller:new Xh,data:new Map,refCount:0}}function Ka(t){t.refCount--,t.refCount===0&&Qh(Zh,function(){t.controller.abort()})}var Ja=null,Ri=0,fa=0,sa=null;function Lh(t,l){if(Ja===null){var e=Ja=[];Ri=0,fa=qc(),sa={status:"pending",value:void 0,then:function(a){e.push(a)}}}return Ri++,l.then(Ts,Ts),l}function Ts(){if(--Ri===0&&Ja!==null){sa!==null&&(sa.status="fulfilled");var t=Ja;Ja=null,fa=0,sa=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function Vh(t,l){var e=[],a={status:"pending",value:null,reason:null,then:function(n){e.push(n)}};return t.then(function(){a.status="fulfilled",a.value=l;for(var n=0;n<e.length;n++)(0,e[n])(l)},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(t,l){fr=al(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Lh(t,l),zs!==null&&zs(t,l)};var Be=d(null);function Bi(){var t=Be.current;return t!==null?t:pt.pooledCache}function kn(t,l){l===null?U(Be,Be.current):U(Be,l.pool)}function As(){var t=Bi();return t===null?null:{parent:Ot._currentValue,pool:t}}var oa=Error(h(460)),Hi=Error(h(474)),$n=Error(h(542)),Wn={then:function(){}};function _s(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Es(t,l,e){switch(e=t[e],e===void 0?t.push(l):e!==l&&(l.then(Bl,Bl),l=e),l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Ns(t),t;default:if(typeof l.status=="string")l.then(Bl,Bl);else{if(t=pt,t!==null&&100<t.shellSuspendCounter)throw Error(h(482));t=l,t.status="pending",t.then(function(a){if(l.status==="pending"){var n=l;n.status="fulfilled",n.value=a}},function(a){if(l.status==="pending"){var n=l;n.status="rejected",n.reason=a}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Ns(t),t}throw qe=l,oa}}function He(t){try{var l=t._init;return l(t._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 t=qe;return qe=null,t}function Ns(t){if(t===oa||t===$n)throw Error(h(483))}var ra=null,wa=0;function Fn(t){var l=wa;return wa+=1,ra===null&&(ra=[]),Es(ra,t,l)}function ka(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function In(t,l){throw l.$$typeof===O?Error(h(525)):(t=Object.prototype.toString.call(l),Error(h(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function Ms(t){function l(m,r){if(t){var y=m.deletions;y===null?(m.deletions=[r],m.flags|=16):y.push(r)}}function e(m,r){if(!t)return null;for(;r!==null;)l(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=ql(m,r),m.index=0,m.sibling=null,m}function u(m,r,y){return m.index=y,t?(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 t&&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===it?b(m,r,y.props.children,j,y.key):r!==null&&(r.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===kt&&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 b(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 Q:return y=Vn(r.type,r.key,r.props,null,m.mode,y),ka(y,r),y.return=m,y;case V:return r=Ai(r,m.mode,y),r.return=m,r;case kt:return r=He(r),T(m,r,y)}if(Tl(r)||$t(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===X)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 Q:return y.key===G?s(m,r,y,j):null;case V:return y.key===G?v(m,r,y,j):null;case kt:return y=He(y),g(m,r,y,j)}if(Tl(y)||$t(y))return G!==null?null:b(m,r,y,j,null);if(typeof y.then=="function")return g(m,r,Fn(y),j);if(y.$$typeof===X)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 Q:return m=m.get(j.key===null?y:j.key)||null,s(r,m,j,G);case V:return m=m.get(j.key===null?y:j.key)||null,v(r,m,j,G);case kt:return j=He(j),S(m,r,y,j,G)}if(Tl(j)||$t(j))return m=m.get(y)||null,b(r,m,j,G,null);if(typeof j.then=="function")return S(m,r,y,Fn(j),G);if(j.$$typeof===X)return S(m,r,y,wn(r,j),G);In(r,j)}return null}function H(m,r,y,j){for(var G=null,ct=null,Y=r,F=r=0,et=null;Y!==null&&F<y.length;F++){Y.index>F?(et=Y,Y=null):et=Y.sibling;var ft=g(m,Y,y[F],j);if(ft===null){Y===null&&(Y=et);break}t&&Y&&ft.alternate===null&&l(m,Y),r=u(ft,r,F),ct===null?G=ft:ct.sibling=ft,ct=ft,Y=et}if(F===y.length)return e(m,Y),nt&&Yl(m,F),G;if(Y===null){for(;F<y.length;F++)Y=T(m,y[F],j),Y!==null&&(r=u(Y,r,F),ct===null?G=Y:ct.sibling=Y,ct=Y);return nt&&Yl(m,F),G}for(Y=a(Y);F<y.length;F++)et=S(Y,m,F,y[F],j),et!==null&&(t&&et.alternate!==null&&Y.delete(et.key===null?F:et.key),r=u(et,r,F),ct===null?G=et:ct.sibling=et,ct=et);return t&&Y.forEach(function(je){return l(m,je)}),nt&&Yl(m,F),G}function Z(m,r,y,j){if(y==null)throw Error(h(151));for(var G=null,ct=null,Y=r,F=r=0,et=null,ft=y.next();Y!==null&&!ft.done;F++,ft=y.next()){Y.index>F?(et=Y,Y=null):et=Y.sibling;var je=g(m,Y,ft.value,j);if(je===null){Y===null&&(Y=et);break}t&&Y&&je.alternate===null&&l(m,Y),r=u(je,r,F),ct===null?G=je:ct.sibling=je,ct=je,Y=et}if(ft.done)return e(m,Y),nt&&Yl(m,F),G;if(Y===null){for(;!ft.done;F++,ft=y.next())ft=T(m,ft.value,j),ft!==null&&(r=u(ft,r,F),ct===null?G=ft:ct.sibling=ft,ct=ft);return nt&&Yl(m,F),G}for(Y=a(Y);!ft.done;F++,ft=y.next())ft=S(Y,m,F,ft.value,j),ft!==null&&(t&&ft.alternate!==null&&Y.delete(ft.key===null?F:ft.key),r=u(ft,r,F),ct===null?G=ft:ct.sibling=ft,ct=ft);return t&&Y.forEach(function(ly){return l(m,ly)}),nt&&Yl(m,F),G}function vt(m,r,y,j){if(typeof y=="object"&&y!==null&&y.type===it&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Q:t:{for(var G=y.key;r!==null;){if(r.key===G){if(G=y.type,G===it){if(r.tag===7){e(m,r.sibling),j=n(r,y.props.children),j.return=m,m=j;break t}}else if(r.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===kt&&He(G)===r.type){e(m,r.sibling),j=n(r,y.props),ka(j,y),j.return=m,m=j;break t}e(m,r);break}else l(m,r);r=r.sibling}y.type===it?(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 V:t:{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 t}else{e(m,r);break}else l(m,r);r=r.sibling}j=Ai(y,m.mode,j),j.return=m,m=j}return i(m);case kt:return y=He(y),vt(m,r,y,j)}if(Tl(y))return H(m,r,y,j);if($t(y)){if(G=$t(y),typeof G!="function")throw Error(h(150));return y=G.call(y),Z(m,r,y,j)}if(typeof y.then=="function")return vt(m,r,Fn(y),j);if(y.$$typeof===X)return vt(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=vt(m,r,y,j);return ra=null,G}catch(Y){if(Y===oa||Y===$n)throw Y;var ct=cl(29,Y,null,m.mode);return ct.lanes=j,ct.return=m,ct}finally{}}}var Ye=Ms(!0),Ds=Ms(!1),ue=!1;function qi(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yi(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ie(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ce(t,l,e){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(st&2)!==0){var n=a.pending;return n===null?l.next=l:(l.next=n.next,n.next=l),a.pending=l,l=Ln(t),ms(t,null,e),l}return Zn(t,a,l,e),Ln(t)}function $a(t,l,e){if(l=l.updateQueue,l!==null&&(l=l.shared,(e&4194048)!==0)){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,jf(t,e)}}function Gi(t,l){var e=t.updateQueue,a=t.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=l:u=u.next=l}else n=u=l;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=e;return}t=e.lastBaseUpdate,t===null?e.firstBaseUpdate=l:t.next=l,e.lastBaseUpdate=l}var Xi=!1;function Wa(){if(Xi){var t=sa;if(t!==null)throw t}}function Fa(t,l,e,a){Xi=!1;var n=t.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 b=t.alternate;b!==null&&(b=b.updateQueue,f=b.lastBaseUpdate,f!==i&&(f===null?b.firstBaseUpdate=v:f.next=v,b.lastBaseUpdate=s))}if(u!==null){var T=n.baseState;i=0,b=v=s=null,f=u;do{var g=f.lane&-536870913,S=g!==f.lane;if(S?(lt&g)===g:(a&g)===g){g!==0&&g===fa&&(Xi=!0),b!==null&&(b=b.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var H=t,Z=f;g=l;var vt=e;switch(Z.tag){case 1:if(H=Z.payload,typeof H=="function"){T=H.call(vt,T,g);break t}T=H;break t;case 3:H.flags=H.flags&-65537|128;case 0:if(H=Z.payload,g=typeof H=="function"?H.call(vt,T,g):H,g==null)break t;T=D({},T,g);break t;case 2:ue=!0}}g=f.callback,g!==null&&(t.flags|=64,S&&(t.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},b===null?(v=b=S,s=T):b=b.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);b===null&&(s=T),n.baseState=s,n.firstBaseUpdate=v,n.lastBaseUpdate=b,u===null&&(n.shared.lanes=0),de|=i,t.lanes=i,t.memoizedState=T}}function Cs(t,l){if(typeof t!="function")throw Error(h(191,t));t.call(l)}function Us(t,l){var e=t.callbacks;if(e!==null)for(t.callbacks=null,t=0;t<e.length;t++)Cs(e[t],l)}var da=d(null),Pn=d(0);function Rs(t,l){t=$l,U(Pn,t),U(da,l),$l=t|l.baseLanes}function Qi(){U(Pn,$l),U(da,da.current)}function Zi(){$l=Pn.current,z(da),z(Pn)}var fl=d(null),bl=null;function fe(t){var l=t.alternate;U(_t,_t.current&1),U(fl,t),bl===null&&(l===null||da.current!==null||l.memoizedState!==null)&&(bl=t)}function Li(t){U(_t,_t.current),U(fl,t),bl===null&&(bl=t)}function Bs(t){t.tag===22?(U(_t,_t.current),U(fl,t),bl===null&&(bl=t)):se()}function se(){U(_t,_t.current),U(fl,fl.current)}function sl(t){z(fl),bl===t&&(bl=null),z(_t)}var _t=d(0);function tu(t){for(var l=t;l!==null;){if(l.tag===13){var e=l.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||$c(e)||Wc(e)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ql=0,W=null,mt=null,Nt=null,lu=!1,ha=!1,Ge=!1,eu=0,Ia=0,ma=null,Kh=0;function Tt(){throw Error(h(321))}function Vi(t,l){if(l===null)return!1;for(var e=0;e<l.length&&e<t.length;e++)if(!il(t[e],l[e]))return!1;return!0}function Ki(t,l,e,a,n,u){return Ql=u,W=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,x.H=t===null||t.memoizedState===null?po:ic,Ge=!1,u=e(a,n),Ge=!1,ha&&(u=qs(l,e,a,n)),Hs(t),u}function Hs(t){x.H=ln;var l=mt!==null&&mt.next!==null;if(Ql=0,Nt=mt=W=null,lu=!1,Ia=0,ma=null,l)throw Error(h(300));t===null||Mt||(t=t.dependencies,t!==null&&Jn(t)&&(Mt=!0))}function qs(t,l,e,a){W=t;var n=0;do{if(ha&&(ma=null),Ia=0,ha=!1,25<=n)throw Error(h(301));if(n+=1,Nt=mt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}x.H=bo,u=l(e,a)}while(ha);return u}function Jh(){var t=x.H,l=t.useState()[0];return l=typeof l.then=="function"?Pa(l):l,t=t.useState()[0],(mt!==null?mt.memoizedState:null)!==t&&(W.flags|=1024),l}function Ji(){var t=eu!==0;return eu=0,t}function wi(t,l,e){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~e}function ki(t){if(lu){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}lu=!1}Ql=0,Nt=mt=W=null,ha=!1,Ia=eu=0,ma=null}function Jt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?W.memoizedState=Nt=t:Nt=Nt.next=t,Nt}function Et(){if(mt===null){var t=W.alternate;t=t!==null?t.memoizedState:null}else t=mt.next;var l=Nt===null?W.memoizedState:Nt.next;if(l!==null)Nt=l,mt=t;else{if(t===null)throw W.alternate===null?Error(h(467)):Error(h(310));mt=t,t={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Nt===null?W.memoizedState=Nt=t:Nt=Nt.next=t}return Nt}function au(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pa(t){var l=Ia;return Ia+=1,ma===null&&(ma=[]),t=Es(ma,t,l),l=W,(Nt===null?l.memoizedState:Nt.next)===null&&(l=l.alternate,x.H=l===null||l.memoizedState===null?po:ic),t}function nu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Pa(t);if(t.$$typeof===X)return qt(t)}throw Error(h(438,String(t)))}function $i(t){var l=null,e=W.updateQueue;if(e!==null&&(l=e.memoCache),l==null){var a=W.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(l={data:a.data.map(function(n){return n.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),e===null&&(e=au(),W.updateQueue=e),e.memoCache=l,e=l.data[l.index],e===void 0)for(e=l.data[l.index]=Array(t),a=0;a<t;a++)e[a]=Le;return l.index++,e}function Zl(t,l){return typeof l=="function"?l(t):l}function uu(t){var l=Et();return Wi(l,mt,t)}function Wi(t,l,e){var a=t.queue;if(a===null)throw Error(h(311));a.lastRenderedReducer=e;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}l.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{l=n.next;var f=i=null,s=null,v=l,b=!1;do{var T=v.lane&-536870913;if(T!==v.lane?(lt&T)===T:(Ql&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&&(b=!0);else if((Ql&g)===g){v=v.next,g===fa&&(b=!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!==l);if(s===null?i=u:s.next=f,!il(u,t.memoizedState)&&(Mt=!0,b&&(e=sa,e!==null)))throw e;t.memoizedState=u,t.baseState=i,t.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Fi(t){var l=Et(),e=l.queue;if(e===null)throw Error(h(311));e.lastRenderedReducer=t;var a=e.dispatch,n=e.pending,u=l.memoizedState;if(n!==null){e.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);il(u,l.memoizedState)||(Mt=!0),l.memoizedState=u,l.baseQueue===null&&(l.baseState=u),e.lastRenderedState=u}return[u,a]}function Ys(t,l,e){var a=W,n=Et(),u=nt;if(u){if(e===void 0)throw Error(h(407));e=e()}else e=l();var i=!il((mt||n).memoizedState,e);if(i&&(n.memoizedState=e,Mt=!0),n=n.queue,tc(Qs.bind(null,a,n,t),[t]),n.getSnapshot!==l||i||Nt!==null&&Nt.memoizedState.tag&1){if(a.flags|=2048,ya(9,{destroy:void 0},Xs.bind(null,a,n,e,l),null),pt===null)throw Error(h(349));u||(Ql&127)!==0||Gs(a,l,e)}return e}function Gs(t,l,e){t.flags|=16384,t={getSnapshot:l,value:e},l=W.updateQueue,l===null?(l=au(),W.updateQueue=l,l.stores=[t]):(e=l.stores,e===null?l.stores=[t]:e.push(t))}function Xs(t,l,e,a){l.value=e,l.getSnapshot=a,Zs(l)&&Ls(t)}function Qs(t,l,e){return e(function(){Zs(l)&&Ls(t)})}function Zs(t){var l=t.getSnapshot;t=t.value;try{var e=l();return!il(t,e)}catch{return!0}}function Ls(t){var l=Me(t,2);l!==null&&el(l,t,2)}function Ii(t){var l=Jt();if(typeof t=="function"){var e=t;if(t=e(),Ge){Il(!0);try{e()}finally{Il(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:t},l}function Vs(t,l,e,a){return t.baseState=e,Wi(t,mt,typeof a=="function"?a:Zl)}function wh(t,l,e,a,n){if(fu(t))throw Error(h(485));if(t=l.action,t!==null){var u={payload:n,action:t,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=l.pending,e===null?(u.next=l.pending=u,Ks(l,u)):(u.next=e.next,l.pending=e.next=u)}}function Ks(t,l){var e=l.action,a=l.payload,n=t.state;if(l.isTransition){var u=x.T,i={};x.T=i;try{var f=e(n,a),s=x.S;s!==null&&s(i,f),Js(t,l,f)}catch(v){Pi(t,l,v)}finally{u!==null&&i.types!==null&&(u.types=i.types),x.T=u}}else try{u=e(n,a),Js(t,l,u)}catch(v){Pi(t,l,v)}}function Js(t,l,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){ws(t,l,a)},function(a){return Pi(t,l,a)}):ws(t,l,e)}function ws(t,l,e){l.status="fulfilled",l.value=e,ks(l),t.state=e,l=t.pending,l!==null&&(e=l.next,e===l?t.pending=null:(e=e.next,l.next=e,Ks(t,e)))}function Pi(t,l,e){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do l.status="rejected",l.reason=e,ks(l),l=l.next;while(l!==a)}t.action=null}function ks(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function $s(t,l){return l}function Ws(t,l){if(nt){var e=pt.formState;if(e!==null){t:{var a=W;if(nt){if(bt){l:{for(var n=bt,u=pl;n.nodeType!==8;){if(!u){n=null;break l}if(n=xl(n.nextSibling),n===null){n=null;break l}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){bt=xl(n.nextSibling),a=n.data==="F!";break t}}ae(a)}a=!1}a&&(l=e[0])}}return e=Jt(),e.memoizedState=e.baseState=l,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$s,lastRenderedState:l},e.queue=a,e=vo.bind(null,W,a),a.dispatch=e,a=Ii(!1),u=uc.bind(null,W,!1,a.queue),a=Jt(),n={state:l,dispatch:null,action:t,pending:null},a.queue=n,e=wh.bind(null,W,n,u,e),n.dispatch=e,a.memoizedState=t,[l,e,!1]}function Fs(t){var l=Et();return Is(l,mt,t)}function Is(t,l,e){if(l=Wi(t,l,$s)[0],t=uu(Zl)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var a=Pa(l)}catch(i){throw i===oa?$n:i}else a=l;l=Et();var n=l.queue,u=n.dispatch;return e!==l.memoizedState&&(W.flags|=2048,ya(9,{destroy:void 0},kh.bind(null,n,e),null)),[a,u,t]}function kh(t,l){t.action=l}function Ps(t){var l=Et(),e=mt;if(e!==null)return Is(l,e,t);Et(),l=l.memoizedState,e=Et();var a=e.queue.dispatch;return e.memoizedState=t,[l,a,!1]}function ya(t,l,e,a){return t={tag:t,create:e,deps:a,inst:l,next:null},l=W.updateQueue,l===null&&(l=au(),W.updateQueue=l),e=l.lastEffect,e===null?l.lastEffect=t.next=t:(a=e.next,e.next=t,t.next=a,l.lastEffect=t),t}function to(){return Et().memoizedState}function iu(t,l,e,a){var n=Jt();W.flags|=t,n.memoizedState=ya(1|l,{destroy:void 0},e,a===void 0?null:a)}function cu(t,l,e,a){var n=Et();a=a===void 0?null:a;var u=n.memoizedState.inst;mt!==null&&a!==null&&Vi(a,mt.memoizedState.deps)?n.memoizedState=ya(l,u,e,a):(W.flags|=t,n.memoizedState=ya(1|l,u,e,a))}function lo(t,l){iu(8390656,8,t,l)}function tc(t,l){cu(2048,8,t,l)}function $h(t){W.flags|=4;var l=W.updateQueue;if(l===null)l=au(),W.updateQueue=l,l.events=[t];else{var e=l.events;e===null?l.events=[t]:e.push(t)}}function eo(t){var l=Et().memoizedState;return $h({ref:l,nextImpl:t}),function(){if((st&2)!==0)throw Error(h(440));return l.impl.apply(void 0,arguments)}}function ao(t,l){return cu(4,2,t,l)}function no(t,l){return cu(4,4,t,l)}function uo(t,l){if(typeof l=="function"){t=t();var e=l(t);return function(){typeof e=="function"?e():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function io(t,l,e){e=e!=null?e.concat([t]):null,cu(4,4,uo.bind(null,l,t),e)}function lc(){}function co(t,l){var e=Et();l=l===void 0?null:l;var a=e.memoizedState;return l!==null&&Vi(l,a[1])?a[0]:(e.memoizedState=[t,l],t)}function fo(t,l){var e=Et();l=l===void 0?null:l;var a=e.memoizedState;if(l!==null&&Vi(l,a[1]))return a[0];if(a=t(),Ge){Il(!0);try{t()}finally{Il(!1)}}return e.memoizedState=[a,l],a}function ec(t,l,e){return e===void 0||(Ql&1073741824)!==0&&(lt&261930)===0?t.memoizedState=l:(t.memoizedState=e,t=or(),W.lanes|=t,de|=t,e)}function so(t,l,e,a){return il(e,l)?e:da.current!==null?(t=ec(t,e,a),il(t,l)||(Mt=!0),t):(Ql&42)===0||(Ql&1073741824)!==0&&(lt&261930)===0?(Mt=!0,t.memoizedState=e):(t=or(),W.lanes|=t,de|=t,l)}function oo(t,l,e,a,n){var u=C.p;C.p=u!==0&&8>u?u:8;var i=x.T,f={};x.T=f,uc(t,!1,l,e);try{var s=n(),v=x.S;if(v!==null&&v(f,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var b=Vh(s,a);tn(t,l,b,dl(t))}else tn(t,l,a,dl(t))}catch(T){tn(t,l,{then:function(){},status:"rejected",reason:T},dl())}finally{C.p=u,i!==null&&f.types!==null&&(i.types=f.types),x.T=i}}function Wh(){}function ac(t,l,e,a){if(t.tag!==5)throw Error(h(476));var n=ro(t).queue;oo(t,n,l,J,e===null?Wh:function(){return ho(t),e(a)})}function ro(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:J},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function ho(t){var l=ro(t);l.next===null&&(l=t.alternate.memoizedState),tn(t,l.next.queue,{},dl())}function nc(){return qt(Sn)}function mo(){return Et().memoizedState}function yo(){return Et().memoizedState}function Fh(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=dl();t=ie(e);var a=ce(l,t,e);a!==null&&(el(a,l,e),$a(a,l,e)),l={cache:Ui()},t.payload=l;return}l=l.return}}function Ih(t,l,e){var a=dl();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},fu(t)?go(l,e):(e=ji(t,l,e,a),e!==null&&(el(e,t,a),So(e,l,a)))}function vo(t,l,e){var a=dl();tn(t,l,e,a)}function tn(t,l,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(fu(t))go(l,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=l.lastRenderedReducer,u!==null))try{var i=l.lastRenderedState,f=u(i,e);if(n.hasEagerState=!0,n.eagerState=f,il(f,i))return Zn(t,l,n,0),pt===null&&Qn(),!1}catch{}finally{}if(e=ji(t,l,n,a),e!==null)return el(e,t,a),So(e,l,a),!0}return!1}function uc(t,l,e,a){if(a={lane:2,revertLane:qc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fu(t)){if(l)throw Error(h(479))}else l=ji(t,e,a,2),l!==null&&el(l,t,2)}function fu(t){var l=t.alternate;return t===W||l!==null&&l===W}function go(t,l){ha=lu=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function So(t,l,e){if((e&4194048)!==0){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,jf(t,e)}}var ln={readContext:qt,use:nu,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt};ln.useEffectEvent=Tt;var po={readContext:qt,use:nu,useCallback:function(t,l){return Jt().memoizedState=[t,l===void 0?null:l],t},useContext:qt,useEffect:lo,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,iu(4194308,4,uo.bind(null,l,t),e)},useLayoutEffect:function(t,l){return iu(4194308,4,t,l)},useInsertionEffect:function(t,l){iu(4,2,t,l)},useMemo:function(t,l){var e=Jt();l=l===void 0?null:l;var a=t();if(Ge){Il(!0);try{t()}finally{Il(!1)}}return e.memoizedState=[a,l],a},useReducer:function(t,l,e){var a=Jt();if(e!==void 0){var n=e(l);if(Ge){Il(!0);try{e(l)}finally{Il(!1)}}}else n=l;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Ih.bind(null,W,t),[a.memoizedState,t]},useRef:function(t){var l=Jt();return t={current:t},l.memoizedState=t},useState:function(t){t=Ii(t);var l=t.queue,e=vo.bind(null,W,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:lc,useDeferredValue:function(t,l){var e=Jt();return ec(e,t,l)},useTransition:function(){var t=Ii(!1);return t=oo.bind(null,W,t.queue,!0,!1),Jt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var a=W,n=Jt();if(nt){if(e===void 0)throw Error(h(407));e=e()}else{if(e=l(),pt===null)throw Error(h(349));(lt&127)!==0||Gs(a,l,e)}n.memoizedState=e;var u={value:e,getSnapshot:l};return n.queue=u,lo(Qs.bind(null,a,u,t),[t]),a.flags|=2048,ya(9,{destroy:void 0},Xs.bind(null,a,u,e,l),null),e},useId:function(){var t=Jt(),l=pt.identifierPrefix;if(nt){var e=Ml,a=Nl;e=(a&~(1<<32-ul(a)-1)).toString(32)+e,l="_"+l+"R_"+e,e=eu++,0<e&&(l+="H"+e.toString(32)),l+="_"}else e=Kh++,l="_"+l+"r_"+e.toString(32)+"_";return t.memoizedState=l},useHostTransitionStatus:nc,useFormState:Ws,useActionState:Ws,useOptimistic:function(t){var l=Jt();l.memoizedState=l.baseState=t;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=e,l=uc.bind(null,W,!0,e),e.dispatch=l,[t,l]},useMemoCache:$i,useCacheRefresh:function(){return Jt().memoizedState=Fh.bind(null,W)},useEffectEvent:function(t){var l=Jt(),e={impl:t};return l.memoizedState=e,function(){if((st&2)!==0)throw Error(h(440));return e.impl.apply(void 0,arguments)}}},ic={readContext:qt,use:nu,useCallback:co,useContext:qt,useEffect:tc,useImperativeHandle:io,useInsertionEffect:ao,useLayoutEffect:no,useMemo:fo,useReducer:uu,useRef:to,useState:function(){return uu(Zl)},useDebugValue:lc,useDeferredValue:function(t,l){var e=Et();return so(e,mt.memoizedState,t,l)},useTransition:function(){var t=uu(Zl)[0],l=Et().memoizedState;return[typeof t=="boolean"?t:Pa(t),l]},useSyncExternalStore:Ys,useId:mo,useHostTransitionStatus:nc,useFormState:Fs,useActionState:Fs,useOptimistic:function(t,l){var e=Et();return Vs(e,mt,t,l)},useMemoCache:$i,useCacheRefresh:yo};ic.useEffectEvent=eo;var bo={readContext:qt,use:nu,useCallback:co,useContext:qt,useEffect:tc,useImperativeHandle:io,useInsertionEffect:ao,useLayoutEffect:no,useMemo:fo,useReducer:Fi,useRef:to,useState:function(){return Fi(Zl)},useDebugValue:lc,useDeferredValue:function(t,l){var e=Et();return mt===null?ec(e,t,l):so(e,mt.memoizedState,t,l)},useTransition:function(){var t=Fi(Zl)[0],l=Et().memoizedState;return[typeof t=="boolean"?t:Pa(t),l]},useSyncExternalStore:Ys,useId:mo,useHostTransitionStatus:nc,useFormState:Ps,useActionState:Ps,useOptimistic:function(t,l){var e=Et();return mt!==null?Vs(e,mt,t,l):(e.baseState=t,[t,e.queue.dispatch])},useMemoCache:$i,useCacheRefresh:yo};bo.useEffectEvent=eo;function cc(t,l,e,a){l=t.memoizedState,e=e(a,l),e=e==null?l:D({},l,e),t.memoizedState=e,t.lanes===0&&(t.updateQueue.baseState=e)}var fc={enqueueSetState:function(t,l,e){t=t._reactInternals;var a=dl(),n=ie(a);n.payload=l,e!=null&&(n.callback=e),l=ce(t,n,a),l!==null&&(el(l,t,a),$a(l,t,a))},enqueueReplaceState:function(t,l,e){t=t._reactInternals;var a=dl(),n=ie(a);n.tag=1,n.payload=l,e!=null&&(n.callback=e),l=ce(t,n,a),l!==null&&(el(l,t,a),$a(l,t,a))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var e=dl(),a=ie(e);a.tag=2,l!=null&&(a.callback=l),l=ce(t,a,e),l!==null&&(el(l,t,e),$a(l,t,e))}};function xo(t,l,e,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):l.prototype&&l.prototype.isPureReactComponent?!Qa(e,a)||!Qa(n,u):!0}function jo(t,l,e,a){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(e,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(e,a),l.state!==t&&fc.enqueueReplaceState(l,l.state,null)}function Xe(t,l){var e=l;if("ref"in l){e={};for(var a in l)a!=="ref"&&(e[a]=l[a])}if(t=t.defaultProps){e===l&&(e=D({},e));for(var n in t)e[n]===void 0&&(e[n]=t[n])}return e}function To(t){Xn(t)}function zo(t){console.error(t)}function Ao(t){Xn(t)}function su(t,l){try{var e=t.onUncaughtError;e(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function _o(t,l,e){try{var a=t.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function sc(t,l,e){return e=ie(e),e.tag=3,e.payload={element:null},e.callback=function(){su(t,l)},e}function Eo(t){return t=ie(t),t.tag=3,t}function Oo(t,l,e,a){var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){_o(l,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){_o(l,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(t,l,e,a,n){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=e.alternate,l!==null&&ca(l,e,n,!0),e=fl.current,e!==null){switch(e.tag){case 31:case 13:return bl===null?xu():e.alternate===null&&zt===0&&(zt=3),e.flags&=-257,e.flags|=65536,e.lanes=n,a===Wn?e.flags|=16384:(l=e.updateQueue,l===null?e.updateQueue=new Set([a]):l.add(a),Rc(t,a,n)),!1;case 22:return e.flags|=65536,a===Wn?e.flags|=16384:(l=e.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=l):(e=l.retryQueue,e===null?l.retryQueue=new Set([a]):e.add(a)),Rc(t,a,n)),!1}throw Error(h(435,e.tag))}return Rc(t,a,n),xu(),!1}if(nt)return l=fl.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=n,a!==Oi&&(t=Error(h(422),{cause:a}),Va(vl(t,e)))):(a!==Oi&&(l=Error(h(423),{cause:a}),Va(vl(l,e))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=vl(a,e),n=sc(t.stateNode,a,n),Gi(t,n),zt!==4&&(zt=2)),!1;var u=Error(h(520),{cause:a});if(u=vl(u,e),on===null?on=[u]:on.push(u),zt!==4&&(zt=2),l===null)return!0;a=vl(a,e),e=l;do{switch(e.tag){case 3:return e.flags|=65536,t=n&-n,e.lanes|=t,t=sc(e.stateNode,a,t),Gi(e,t),!1;case 1:if(l=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof l.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,t,e,a),Gi(e,n),!1}e=e.return}while(e!==null);return!1}var oc=Error(h(461)),Mt=!1;function Yt(t,l,e,a){l.child=t===null?Ds(l,null,e,a):Ye(l,t.child,e,a)}function No(t,l,e,a,n){e=e.render;var u=l.ref;if("ref"in a){var i={};for(var f in a)f!=="ref"&&(i[f]=a[f])}else i=a;return Re(l),a=Ki(t,l,e,i,u,n),f=Ji(),t!==null&&!Mt?(wi(t,l,n),Ll(t,l,n)):(nt&&f&&_i(l),l.flags|=1,Yt(t,l,a,n),l.child)}function Mo(t,l,e,a,n){if(t===null){var u=e.type;return typeof u=="function"&&!Ti(u)&&u.defaultProps===void 0&&e.compare===null?(l.tag=15,l.type=u,Do(t,l,u,a,n)):(t=Vn(e.type,null,a,l,l.mode,n),t.ref=l.ref,t.return=l,l.child=t)}if(u=t.child,!Sc(t,n)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:Qa,e(i,a)&&t.ref===l.ref)return Ll(t,l,n)}return l.flags|=1,t=ql(u,a),t.ref=l.ref,t.return=l,l.child=t}function Do(t,l,e,a,n){if(t!==null){var u=t.memoizedProps;if(Qa(u,a)&&t.ref===l.ref)if(Mt=!1,l.pendingProps=a=u,Sc(t,n))(t.flags&131072)!==0&&(Mt=!0);else return l.lanes=t.lanes,Ll(t,l,n)}return rc(t,l,e,a,n)}function Co(t,l,e,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((l.flags&128)!==0){if(u=u!==null?u.baseLanes|e:e,t!==null){for(a=l.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,l.child=null;return Uo(t,l,u,e,a)}if((e&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&kn(l,u!==null?u.cachePool:null),u!==null?Rs(l,u):Qi(),Bs(l);else return a=l.lanes=536870912,Uo(t,l,u!==null?u.baseLanes|e:e,e,a)}else u!==null?(kn(l,u.cachePool),Rs(l,u),se(),l.memoizedState=null):(t!==null&&kn(l,null),Qi(),se());return Yt(t,l,n,e),l.child}function en(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Uo(t,l,e,a,n){var u=Bi();return u=u===null?null:{parent:Ot._currentValue,pool:u},l.memoizedState={baseLanes:e,cachePool:u},t!==null&&kn(l,null),Qi(),Bs(l),t!==null&&ca(t,l,a,!0),l.childLanes=n,null}function ou(t,l){return l=du({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function Ro(t,l,e){return Ye(l,t.child,null,e),t=ou(l,l.pendingProps),t.flags|=2,sl(l),l.memoizedState=null,t}function tm(t,l,e){var a=l.pendingProps,n=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(nt){if(a.mode==="hidden")return t=ou(l,a),l.lanes=536870912,en(null,t);if(Li(l),(t=bt)?(t=Jr(t,pl),t=t!==null&&t.data==="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:le!==null?{id:Nl,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},e=vs(t),e.return=l,l.child=e,Ht=l,bt=null)):t=null,t===null)throw ae(l);return l.lanes=536870912,null}return ou(l,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(Li(l),n)if(l.flags&256)l.flags&=-257,l=Ro(t,l,e);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(h(558));else if(Mt||ca(t,l,e,!1),n=(e&t.childLanes)!==0,Mt||n){if(a=pt,a!==null&&(i=Tf(a,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,Me(t,i),el(a,t,i),oc;xu(),l=Ro(t,l,e)}else t=u.treeContext,bt=xl(i.nextSibling),Ht=l,nt=!0,ee=null,pl=!1,t!==null&&ps(l,t),l=ou(l,a),l.flags|=4096;return l}return t=ql(t.child,{mode:a.mode,children:a.children}),t.ref=l.ref,l.child=t,t.return=l,t}function ru(t,l){var e=l.ref;if(e===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(h(284));(t===null||t.ref!==e)&&(l.flags|=4194816)}}function rc(t,l,e,a,n){return Re(l),e=Ki(t,l,e,a,void 0,n),a=Ji(),t!==null&&!Mt?(wi(t,l,n),Ll(t,l,n)):(nt&&a&&_i(l),l.flags|=1,Yt(t,l,e,n),l.child)}function Bo(t,l,e,a,n,u){return Re(l),l.updateQueue=null,e=qs(l,a,e,n),Hs(t),a=Ji(),t!==null&&!Mt?(wi(t,l,u),Ll(t,l,u)):(nt&&a&&_i(l),l.flags|=1,Yt(t,l,e,u),l.child)}function Ho(t,l,e,a,n){if(Re(l),l.stateNode===null){var u=aa,i=e.contextType;typeof i=="object"&&i!==null&&(u=qt(i)),u=new e(a,u),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=fc,l.stateNode=u,u._reactInternals=l,u=l.stateNode,u.props=a,u.state=l.memoizedState,u.refs={},qi(l),i=e.contextType,u.context=typeof i=="object"&&i!==null?qt(i):aa,u.state=l.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(cc(l,e,i,a),u.state=l.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(l,a,u,n),Wa(),u.state=l.memoizedState),typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(t===null){u=l.stateNode;var f=l.memoizedProps,s=Xe(e,f);u.props=s;var v=u.context,b=e.contextType;i=aa,typeof b=="object"&&b!==null&&(i=qt(b));var T=e.getDerivedStateFromProps;b=typeof T=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=l.pendingProps!==f,b||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||v!==i)&&jo(l,u,a,i),ue=!1;var g=l.memoizedState;u.state=g,Fa(l,a,u,n),Wa(),v=l.memoizedState,f||g!==v||ue?(typeof T=="function"&&(cc(l,e,T,a),v=l.memoizedState),(s=ue||xo(l,e,s,a,g,v,i))?(b||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"&&(l.flags|=4194308)):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=v),u.props=a,u.state=v,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{u=l.stateNode,Yi(t,l),i=l.memoizedProps,b=Xe(e,i),u.props=b,T=l.pendingProps,g=u.context,v=e.contextType,s=aa,typeof v=="object"&&v!==null&&(s=qt(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(l,u,a,s),ue=!1,g=l.memoizedState,u.state=g,Fa(l,a,u,n),Wa();var S=l.memoizedState;i!==T||g!==S||ue||t!==null&&t.dependencies!==null&&Jn(t.dependencies)?(typeof f=="function"&&(cc(l,e,f,a),S=l.memoizedState),(b=ue||xo(l,e,b,a,g,S,s)||t!==null&&t.dependencies!==null&&Jn(t.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"&&(l.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&g===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&g===t.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=S),u.props=a,u.state=S,u.context=s,a=b):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&g===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&g===t.memoizedState||(l.flags|=1024),a=!1)}return u=a,ru(t,l),a=(l.flags&128)!==0,u||a?(u=l.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:u.render(),l.flags|=1,t!==null&&a?(l.child=Ye(l,t.child,null,n),l.child=Ye(l,null,e,n)):Yt(t,l,e,n),l.memoizedState=u.state,t=l.child):t=Ll(t,l,n),t}function qo(t,l,e,a){return Ce(),l.flags|=256,Yt(t,l,e,a),l.child}var dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hc(t){return{baseLanes:t,cachePool:As()}}function mc(t,l,e){return t=t!==null?t.childLanes&~e:0,l&&(t|=rl),t}function Yo(t,l,e){var a=l.pendingProps,n=!1,u=(l.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(_t.current&2)!==0),i&&(n=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(nt){if(n?fe(l):se(),(t=bt)?(t=Jr(t,pl),t=t!==null&&t.data!=="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:le!==null?{id:Nl,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},e=vs(t),e.return=l,l.child=e,Ht=l,bt=null)):t=null,t===null)throw ae(l);return Wc(t)?l.lanes=32:l.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(se(),n=l.mode,f=du({mode:"hidden",children:f},n),a=De(a,n,e,null),f.return=l,a.return=l,f.sibling=a,l.child=f,a=l.child,a.memoizedState=hc(e),a.childLanes=mc(t,i,e),l.memoizedState=dc,en(null,a)):(fe(l),yc(l,f))}var s=t.memoizedState;if(s!==null&&(f=s.dehydrated,f!==null)){if(u)l.flags&256?(fe(l),l.flags&=-257,l=vc(t,l,e)):l.memoizedState!==null?(se(),l.child=t.child,l.flags|=128,l=null):(se(),f=a.fallback,n=l.mode,a=du({mode:"visible",children:a.children},n),f=De(f,n,e,null),f.flags|=2,a.return=l,f.return=l,a.sibling=f,l.child=a,Ye(l,t.child,null,e),a=l.child,a.memoizedState=hc(e),a.childLanes=mc(t,i,e),l.memoizedState=dc,l=en(null,a));else if(fe(l),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}),l=vc(t,l,e)}else if(Mt||ca(t,l,e,!1),i=(e&t.childLanes)!==0,Mt||i){if(i=pt,i!==null&&(a=Tf(i,e),a!==0&&a!==s.retryLane))throw s.retryLane=a,Me(t,a),el(i,t,a),oc;$c(f)||xu(),l=vc(t,l,e)}else $c(f)?(l.flags|=192,l.child=t.child,l=null):(t=s.treeContext,bt=xl(f.nextSibling),Ht=l,nt=!0,ee=null,pl=!1,t!==null&&ps(l,t),l=yc(l,a.children),l.flags|=4096);return l}return n?(se(),f=a.fallback,n=l.mode,s=t.child,v=s.sibling,a=ql(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,v!==null?f=ql(v,f):(f=De(f,n,e,null),f.flags|=2),f.return=l,a.return=l,a.sibling=f,l.child=a,en(null,a),a=l.child,f=t.child.memoizedState,f===null?f=hc(e):(n=f.cachePool,n!==null?(s=Ot._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(t,i,e),l.memoizedState=dc,en(t.child,a)):(fe(l),e=t.child,t=e.sibling,e=ql(e,{mode:"visible",children:a.children}),e.return=l,e.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=e,l.memoizedState=null,e)}function yc(t,l){return l=du({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function du(t,l){return t=cl(22,t,null,l),t.lanes=0,t}function vc(t,l,e){return Ye(l,t.child,null,e),t=yc(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function Go(t,l,e){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l),Di(t.return,l,e)}function gc(t,l,e,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:n,treeForkCount:u}:(i.isBackwards=l,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=n,i.treeForkCount=u)}function Xo(t,l,e){var a=l.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=_t.current,f=(i&2)!==0;if(f?(i=i&1|2,l.flags|=128):i&=1,U(_t,i),Yt(t,l,a,e),a=nt?La:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Go(t,e,l);else if(t.tag===19)Go(t,e,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(e=l.child,n=null;e!==null;)t=e.alternate,t!==null&&tu(t)===null&&(n=e),e=e.sibling;e=n,e===null?(n=l.child,l.child=null):(n=e.sibling,e.sibling=null),gc(l,!1,n,e,u,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,n=l.child,l.child=null;n!==null;){if(t=n.alternate,t!==null&&tu(t)===null){l.child=n;break}t=n.sibling,n.sibling=e,e=n,n=t}gc(l,!0,e,null,u,a);break;case"together":gc(l,!1,null,null,void 0,a);break;default:l.memoizedState=null}return l.child}function Ll(t,l,e){if(t!==null&&(l.dependencies=t.dependencies),de|=l.lanes,(e&l.childLanes)===0)if(t!==null){if(ca(t,l,e,!1),(e&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(h(153));if(l.child!==null){for(t=l.child,e=ql(t,t.pendingProps),l.child=e,e.return=l;t.sibling!==null;)t=t.sibling,e=e.sibling=ql(t,t.pendingProps),e.return=l;e.sibling=null}return l.child}function Sc(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Jn(t)))}function lm(t,l,e){switch(l.tag){case 3:Kt(l,l.stateNode.containerInfo),ne(l,Ot,t.memoizedState.cache),Ce();break;case 27:case 5:Oa(l);break;case 4:Kt(l,l.stateNode.containerInfo);break;case 10:ne(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Li(l),null;break;case 13:var a=l.memoizedState;if(a!==null)return a.dehydrated!==null?(fe(l),l.flags|=128,null):(e&l.child.childLanes)!==0?Yo(t,l,e):(fe(l),t=Ll(t,l,e),t!==null?t.sibling:null);fe(l);break;case 19:var n=(t.flags&128)!==0;if(a=(e&l.childLanes)!==0,a||(ca(t,l,e,!1),a=(e&l.childLanes)!==0),n){if(a)return Xo(t,l,e);l.flags|=128}if(n=l.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),U(_t,_t.current),a)break;return null;case 22:return l.lanes=0,Co(t,l,e,l.pendingProps);case 24:ne(l,Ot,t.memoizedState.cache)}return Ll(t,l,e)}function Qo(t,l,e){if(t!==null)if(t.memoizedProps!==l.pendingProps)Mt=!0;else{if(!Sc(t,e)&&(l.flags&128)===0)return Mt=!1,lm(t,l,e);Mt=(t.flags&131072)!==0}else Mt=!1,nt&&(l.flags&1048576)!==0&&Ss(l,La,l.index);switch(l.lanes=0,l.tag){case 16:t:{var a=l.pendingProps;if(t=He(l.elementType),l.type=t,typeof t=="function")Ti(t)?(a=Xe(t,a),l.tag=1,l=Ho(null,l,t,a,e)):(l.tag=0,l=rc(null,l,t,a,e));else{if(t!=null){var n=t.$$typeof;if(n===Xt){l.tag=11,l=No(null,l,t,a,e);break t}else if(n===at){l.tag=14,l=Mo(null,l,t,a,e);break t}}throw l=Ul(t)||t,Error(h(306,l,""))}}return l;case 0:return rc(t,l,l.type,l.pendingProps,e);case 1:return a=l.type,n=Xe(a,l.pendingProps),Ho(t,l,a,n,e);case 3:t:{if(Kt(l,l.stateNode.containerInfo),t===null)throw Error(h(387));a=l.pendingProps;var u=l.memoizedState;n=u.element,Yi(t,l),Fa(l,a,null,e);var i=l.memoizedState;if(a=i.cache,ne(l,Ot,a),a!==u.cache&&Ci(l,[Ot],e,!0),Wa(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=qo(t,l,a,e);break t}else if(a!==n){n=vl(Error(h(424)),l),Va(n),l=qo(t,l,a,e);break t}else{switch(t=l.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(bt=xl(t.firstChild),Ht=l,nt=!0,ee=null,pl=!0,e=Ds(l,null,a,e),l.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ce(),a===n){l=Ll(t,l,e);break t}Yt(t,l,a,e)}l=l.child}return l;case 26:return ru(t,l),t===null?(e=Ir(l.type,null,l.pendingProps,null))?l.memoizedState=e:nt||(e=l.type,t=l.pendingProps,a=Ou(I.current).createElement(e),a[Bt]=l,a[Wt]=t,Gt(a,e,t),Ut(a),l.stateNode=a):l.memoizedState=Ir(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Oa(l),t===null&&nt&&(a=l.stateNode=$r(l.type,l.pendingProps,I.current),Ht=l,pl=!0,n=bt,ge(l.type)?(Fc=n,bt=xl(a.firstChild)):bt=n),Yt(t,l,l.pendingProps.children,e),ru(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&nt&&((n=a=bt)&&(a=Dm(a,l.type,l.pendingProps,pl),a!==null?(l.stateNode=a,Ht=l,bt=xl(a.firstChild),pl=!1,n=!0):n=!1),n||ae(l)),Oa(l),n=l.type,u=l.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,Jc(n,u)?a=null:i!==null&&Jc(n,i)&&(l.flags|=32),l.memoizedState!==null&&(n=Ki(t,l,Jh,null,null,e),Sn._currentValue=n),ru(t,l),Yt(t,l,a,e),l.child;case 6:return t===null&&nt&&((t=e=bt)&&(e=Cm(e,l.pendingProps,pl),e!==null?(l.stateNode=e,Ht=l,bt=null,t=!0):t=!1),t||ae(l)),null;case 13:return Yo(t,l,e);case 4:return Kt(l,l.stateNode.containerInfo),a=l.pendingProps,t===null?l.child=Ye(l,null,a,e):Yt(t,l,a,e),l.child;case 11:return No(t,l,l.type,l.pendingProps,e);case 7:return Yt(t,l,l.pendingProps,e),l.child;case 8:return Yt(t,l,l.pendingProps.children,e),l.child;case 12:return Yt(t,l,l.pendingProps.children,e),l.child;case 10:return a=l.pendingProps,ne(l,l.type,a.value),Yt(t,l,a.children,e),l.child;case 9:return n=l.type._context,a=l.pendingProps.children,Re(l),n=qt(n),a=a(n),l.flags|=1,Yt(t,l,a,e),l.child;case 14:return Mo(t,l,l.type,l.pendingProps,e);case 15:return Do(t,l,l.type,l.pendingProps,e);case 19:return Xo(t,l,e);case 31:return tm(t,l,e);case 22:return Co(t,l,e,l.pendingProps);case 24:return Re(l),a=qt(Ot),t===null?(n=Bi(),n===null&&(n=pt,u=Ui(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=e),n=u),l.memoizedState={parent:a,cache:n},qi(l),ne(l,Ot,n)):((t.lanes&e)!==0&&(Yi(t,l),Fa(l,null,null,e),Wa()),n=t.memoizedState,u=l.memoizedState,n.parent!==a?(n={parent:a,cache:a},l.memoizedState=n,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=n),ne(l,Ot,a)):(a=u.cache,ne(l,Ot,a),a!==n.cache&&Ci(l,[Ot],e,!0))),Yt(t,l,l.pendingProps.children,e),l.child;case 29:throw l.pendingProps}throw Error(h(156,l.tag))}function Vl(t){t.flags|=4}function pc(t,l,e,a,n){if((l=(t.mode&32)!==0)&&(l=!1),l){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(mr())t.flags|=8192;else throw qe=Wn,Hi}else t.flags&=-16777217}function Zo(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ad(l))if(mr())t.flags|=8192;else throw qe=Wn,Hi}function hu(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?bf():536870912,t.lanes|=l,pa|=l)}function an(t,l){if(!nt)switch(t.tailMode){case"hidden":l=t.tail;for(var e=null;l!==null;)l.alternate!==null&&(e=l),l=l.sibling;e===null?t.tail=null:e.sibling=null;break;case"collapsed":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function xt(t){var l=t.alternate!==null&&t.alternate.child===t.child,e=0,a=0;if(l)for(var n=t.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=e,l}function em(t,l,e){var a=l.pendingProps;switch(Ei(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(l),null;case 1:return xt(l),null;case 3:return e=l.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Xl(Ot),At(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(t===null||t.child===null)&&(ia(l)?Vl(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Ni())),xt(l),null;case 26:var n=l.type,u=l.memoizedState;return t===null?(Vl(l),u!==null?(xt(l),Zo(l,u)):(xt(l),pc(l,n,null,a,e))):u?u!==t.memoizedState?(Vl(l),xt(l),Zo(l,u)):(xt(l),l.flags&=-16777217):(t=t.memoizedProps,t!==a&&Vl(l),xt(l),pc(l,n,t,a,e)),null;case 27:if(zn(l),e=I.current,n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Vl(l);else{if(!a){if(l.stateNode===null)throw Error(h(166));return xt(l),null}t=q.current,ia(l)?bs(l):(t=$r(n,a,e),l.stateNode=t,Vl(l))}return xt(l),null;case 5:if(zn(l),n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Vl(l);else{if(!a){if(l.stateNode===null)throw Error(h(166));return xt(l),null}if(u=q.current,ia(l))bs(l);else{var i=Ou(I.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[Bt]=l,u[Wt]=a;t:for(i=l.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===l)break t;for(;i.sibling===null;){if(i.return===null||i.return===l)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}l.stateNode=u;t:switch(Gt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Vl(l)}}return xt(l),pc(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,e),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==a&&Vl(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(h(166));if(t=I.current,ia(l)){if(t=l.stateNode,e=l.memoizedProps,a=null,n=Ht,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Bt]=l,t=!!(t.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||Yr(t.nodeValue,e)),t||ae(l,!0)}else t=Ou(t).createTextNode(a),t[Bt]=l,l.stateNode=t}return xt(l),null;case 31:if(e=l.memoizedState,t===null||t.memoizedState!==null){if(a=ia(l),e!==null){if(t===null){if(!a)throw Error(h(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(h(557));t[Bt]=l}else Ce(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;xt(l),t=!1}else e=Ni(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=e),t=!0;if(!t)return l.flags&256?(sl(l),l):(sl(l),null);if((l.flags&128)!==0)throw Error(h(558))}return xt(l),null;case 13:if(a=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=ia(l),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(h(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));n[Bt]=l}else Ce(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;xt(l),n=!1}else n=Ni(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return l.flags&256?(sl(l),l):(sl(l),null)}return sl(l),(l.flags&128)!==0?(l.lanes=e,l):(e=a!==null,t=t!==null&&t.memoizedState!==null,e&&(a=l.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!==t&&e&&(l.child.flags|=8192),hu(l,l.updateQueue),xt(l),null);case 4:return At(),t===null&&Qc(l.stateNode.containerInfo),xt(l),null;case 10:return Xl(l.type),xt(l),null;case 19:if(z(_t),a=l.memoizedState,a===null)return xt(l),null;if(n=(l.flags&128)!==0,u=a.rendering,u===null)if(n)an(a,!1);else{if(zt!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(u=tu(t),u!==null){for(l.flags|=128,an(a,!1),t=u.updateQueue,l.updateQueue=t,hu(l,t),l.subtreeFlags=0,t=e,e=l.child;e!==null;)ys(e,t),e=e.sibling;return U(_t,_t.current&1|2),nt&&Yl(l,a.treeForkCount),l.child}t=t.sibling}a.tail!==null&&al()>Su&&(l.flags|=128,n=!0,an(a,!1),l.lanes=4194304)}else{if(!n)if(t=tu(u),t!==null){if(l.flags|=128,n=!0,t=t.updateQueue,l.updateQueue=t,hu(l,t),an(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!nt)return xt(l),null}else 2*al()-a.renderingStartTime>Su&&e!==536870912&&(l.flags|=128,n=!0,an(a,!1),l.lanes=4194304);a.isBackwards?(u.sibling=l.child,l.child=u):(t=a.last,t!==null?t.sibling=u:l.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=al(),t.sibling=null,e=_t.current,U(_t,n?e&1|2:e&1),nt&&Yl(l,a.treeForkCount),t):(xt(l),null);case 22:case 23:return sl(l),Zi(),a=l.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(e&536870912)!==0&&(l.flags&128)===0&&(xt(l),l.subtreeFlags&6&&(l.flags|=8192)):xt(l),e=l.updateQueue,e!==null&&hu(l,e.retryQueue),e=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==e&&(l.flags|=2048),t!==null&&z(Be),null;case 24:return e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Xl(Ot),xt(l),null;case 25:return null;case 30:return null}throw Error(h(156,l.tag))}function am(t,l){switch(Ei(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Xl(Ot),At(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return zn(l),null;case 31:if(l.memoizedState!==null){if(sl(l),l.alternate===null)throw Error(h(340));Ce()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(sl(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(h(340));Ce()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return z(_t),null;case 4:return At(),null;case 10:return Xl(l.type),null;case 22:case 23:return sl(l),Zi(),t!==null&&z(Be),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Xl(Ot),null;case 25:return null;default:return null}}function Lo(t,l){switch(Ei(l),l.tag){case 3:Xl(Ot),At();break;case 26:case 27:case 5:zn(l);break;case 4:At();break;case 31:l.memoizedState!==null&&sl(l);break;case 13:sl(l);break;case 19:z(_t);break;case 10:Xl(l.type);break;case 22:case 23:sl(l),Zi(),t!==null&&z(Be);break;case 24:Xl(Ot)}}function nn(t,l){try{var e=l.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&t)===t){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(f){dt(l,l.return,f)}}function oe(t,l,e){try{var a=l.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var i=a.inst,f=i.destroy;if(f!==void 0){i.destroy=void 0,n=l;var s=e,v=f;try{v()}catch(b){dt(n,s,b)}}}a=a.next}while(a!==u)}}catch(b){dt(l,l.return,b)}}function Vo(t){var l=t.updateQueue;if(l!==null){var e=t.stateNode;try{Us(l,e)}catch(a){dt(t,t.return,a)}}}function Ko(t,l,e){e.props=Xe(t.type,t.memoizedProps),e.state=t.memoizedState;try{e.componentWillUnmount()}catch(a){dt(t,l,a)}}function un(t,l){try{var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof e=="function"?t.refCleanup=e(a):e.current=a}}catch(n){dt(t,l,n)}}function Dl(t,l){var e=t.ref,a=t.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){dt(t,l,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){dt(t,l,n)}else e.current=null}function Jo(t){var l=t.type,e=t.memoizedProps,a=t.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break t;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(n){dt(t,t.return,n)}}function bc(t,l,e){try{var a=t.stateNode;Am(a,t.type,e,l),a[Wt]=l}catch(n){dt(t,t.return,n)}}function wo(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ge(t.type)||t.tag===4}function xc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||wo(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ge(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jc(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(t,l):(l=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.appendChild(t),e=e._reactRootContainer,e!=null||l.onclick!==null||(l.onclick=Bl));else if(a!==4&&(a===27&&ge(t.type)&&(e=t.stateNode,l=null),t=t.child,t!==null))for(jc(t,l,e),t=t.sibling;t!==null;)jc(t,l,e),t=t.sibling}function mu(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?e.insertBefore(t,l):e.appendChild(t);else if(a!==4&&(a===27&&ge(t.type)&&(e=t.stateNode),t=t.child,t!==null))for(mu(t,l,e),t=t.sibling;t!==null;)mu(t,l,e),t=t.sibling}function ko(t){var l=t.stateNode,e=t.memoizedProps;try{for(var a=t.type,n=l.attributes;n.length;)l.removeAttributeNode(n[0]);Gt(l,a,e),l[Bt]=t,l[Wt]=e}catch(u){dt(t,t.return,u)}}var Kl=!1,Dt=!1,Tc=!1,$o=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function nm(t,l){if(t=t.containerInfo,Vc=Bu,t=is(t),vi(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{e=(e=t.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 t}var i=0,f=-1,s=-1,v=0,b=0,T=t,g=null;l: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===t)break l;if(g===e&&++v===n&&(f=i),g===u&&++b===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:t,selectionRange:e},Bu=!1,Rt=l;Rt!==null;)if(l=Rt,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Rt=t;else for(;Rt!==null;){switch(l=Rt,u=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(e=0;e<t.length;e++)n=t[e],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,e=l,n=u.memoizedProps,u=u.memoizedState,a=e.stateNode;try{var H=Xe(e.type,n);t=a.getSnapshotBeforeUpdate(H,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(Z){dt(e,e.return,Z)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,e=t.nodeType,e===9)kc(t);else if(e===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":kc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(h(163))}if(t=l.sibling,t!==null){t.return=l.return,Rt=t;break}Rt=l.return}}function Wo(t,l,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:wl(t,e),a&4&&nn(5,e);break;case 1:if(wl(t,e),a&4)if(t=e.stateNode,l===null)try{t.componentDidMount()}catch(i){dt(e,e.return,i)}else{var n=Xe(e.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(n,l,t.__reactInternalSnapshotBeforeUpdate)}catch(i){dt(e,e.return,i)}}a&64&&Vo(e),a&512&&un(e,e.return);break;case 3:if(wl(t,e),a&64&&(t=e.updateQueue,t!==null)){if(l=null,e.child!==null)switch(e.child.tag){case 27:case 5:l=e.child.stateNode;break;case 1:l=e.child.stateNode}try{Us(t,l)}catch(i){dt(e,e.return,i)}}break;case 27:l===null&&a&4&&ko(e);case 26:case 5:wl(t,e),l===null&&a&4&&Jo(e),a&512&&un(e,e.return);break;case 12:wl(t,e);break;case 31:wl(t,e),a&4&&Po(t,e);break;case 13:wl(t,e),a&4&&tr(t,e),a&64&&(t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(e=hm.bind(null,e),Um(t,e))));break;case 22:if(a=e.memoizedState!==null||Kl,!a){l=l!==null&&l.memoizedState!==null||Dt,n=Kl;var u=Dt;Kl=a,(Dt=l)&&!u?kl(t,e,(e.subtreeFlags&8772)!==0):wl(t,e),Kl=n,Dt=u}break;case 30:break;default:wl(t,e)}}function Fo(t){var l=t.alternate;l!==null&&(t.alternate=null,Fo(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&Pu(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var jt=null,It=!1;function Jl(t,l,e){for(e=e.child;e!==null;)Io(t,l,e),e=e.sibling}function Io(t,l,e){if(nl&&typeof nl.onCommitFiberUnmount=="function")try{nl.onCommitFiberUnmount(Na,e)}catch{}switch(e.tag){case 26:Dt||Dl(e,l),Jl(t,l,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:Dt||Dl(e,l);var a=jt,n=It;ge(e.type)&&(jt=e.stateNode,It=!1),Jl(t,l,e),yn(e.stateNode),jt=a,It=n;break;case 5:Dt||Dl(e,l);case 6:if(a=jt,n=It,jt=null,Jl(t,l,e),jt=a,It=n,jt!==null)if(It)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(e.stateNode)}catch(u){dt(e,l,u)}else try{jt.removeChild(e.stateNode)}catch(u){dt(e,l,u)}break;case 18:jt!==null&&(It?(t=jt,Vr(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,e.stateNode),Ea(t)):Vr(jt,e.stateNode));break;case 4:a=jt,n=It,jt=e.stateNode.containerInfo,It=!0,Jl(t,l,e),jt=a,It=n;break;case 0:case 11:case 14:case 15:oe(2,e,l),Dt||oe(4,e,l),Jl(t,l,e);break;case 1:Dt||(Dl(e,l),a=e.stateNode,typeof a.componentWillUnmount=="function"&&Ko(e,l,a)),Jl(t,l,e);break;case 21:Jl(t,l,e);break;case 22:Dt=(a=Dt)||e.memoizedState!==null,Jl(t,l,e),Dt=a;break;default:Jl(t,l,e)}}function Po(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ea(t)}catch(e){dt(l,l.return,e)}}}function tr(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ea(t)}catch(e){dt(l,l.return,e)}}function um(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new $o),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new $o),l;default:throw Error(h(435,t.tag))}}function yu(t,l){var e=um(t);l.forEach(function(a){if(!e.has(a)){e.add(a);var n=mm.bind(null,t,a);a.then(n,n)}})}function Pt(t,l){var e=l.deletions;if(e!==null)for(var a=0;a<e.length;a++){var n=e[a],u=t,i=l,f=i;t:for(;f!==null;){switch(f.tag){case 27:if(ge(f.type)){jt=f.stateNode,It=!1;break t}break;case 5:jt=f.stateNode,It=!1;break t;case 3:case 4:jt=f.stateNode.containerInfo,It=!0;break t}f=f.return}if(jt===null)throw Error(h(160));Io(u,i,n),jt=null,It=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)lr(l,t),l=l.sibling}var Al=null;function lr(t,l){var e=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Pt(l,t),tl(t),a&4&&(oe(3,t,t.return),nn(3,t),oe(5,t,t.return));break;case 1:Pt(l,t),tl(t),a&512&&(Dt||e===null||Dl(e,e.return)),a&64&&Kl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(e=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var n=Al;if(Pt(l,t),tl(t),a&512&&(Dt||e===null||Dl(e,e.return)),a&4){var u=e!==null?e.memoizedState:null;if(a=t.memoizedState,e===null)if(a===null)if(t.stateNode===null){t:{a=t.type,e=t.memoizedProps,n=n.ownerDocument||n;l:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ca]||u[Bt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Gt(u,a,e),u[Bt]=t,Ut(u),a=u;break t;case"link":var i=ld("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 l}}u=n.createElement(a),Gt(u,a,e),n.head.appendChild(u);break;case"meta":if(i=ld("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 l}}u=n.createElement(a),Gt(u,a,e),n.head.appendChild(u);break;default:throw Error(h(468,a))}u[Bt]=t,Ut(u),a=u}t.stateNode=a}else ed(n,t.type,t.stateNode);else t.stateNode=td(n,a,t.memoizedProps);else u!==a?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,a===null?ed(n,t.type,t.stateNode):td(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&bc(t,t.memoizedProps,e.memoizedProps)}break;case 27:Pt(l,t),tl(t),a&512&&(Dt||e===null||Dl(e,e.return)),e!==null&&a&4&&bc(t,t.memoizedProps,e.memoizedProps);break;case 5:if(Pt(l,t),tl(t),a&512&&(Dt||e===null||Dl(e,e.return)),t.flags&32){n=t.stateNode;try{We(n,"")}catch(H){dt(t,t.return,H)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,bc(t,n,e!==null?e.memoizedProps:n)),a&1024&&(Tc=!0);break;case 6:if(Pt(l,t),tl(t),a&4){if(t.stateNode===null)throw Error(h(162));a=t.memoizedProps,e=t.stateNode;try{e.nodeValue=a}catch(H){dt(t,t.return,H)}}break;case 3:if(Du=null,n=Al,Al=Nu(l.containerInfo),Pt(l,t),Al=n,tl(t),a&4&&e!==null&&e.memoizedState.isDehydrated)try{Ea(l.containerInfo)}catch(H){dt(t,t.return,H)}Tc&&(Tc=!1,er(t));break;case 4:a=Al,Al=Nu(t.stateNode.containerInfo),Pt(l,t),tl(t),Al=a;break;case 12:Pt(l,t),tl(t);break;case 31:Pt(l,t),tl(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,yu(t,a)));break;case 13:Pt(l,t),tl(t),t.child.flags&8192&&t.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(gu=al()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,yu(t,a)));break;case 22:n=t.memoizedState!==null;var s=e!==null&&e.memoizedState!==null,v=Kl,b=Dt;if(Kl=v||n,Dt=b||s,Pt(l,t),Dt=b,Kl=v,tl(t),a&8192)t:for(l=t.stateNode,l._visibility=n?l._visibility&-2:l._visibility|1,n&&(e===null||s||Kl||Dt||Qe(t)),e=null,l=t;;){if(l.tag===5||l.tag===26){if(e===null){s=e=l;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(H){dt(s,s.return,H)}}}else if(l.tag===6){if(e===null){s=l;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(H){dt(s,s.return,H)}}}else if(l.tag===18){if(e===null){s=l;try{var S=s.stateNode;n?Kr(S,!0):Kr(s.stateNode,!1)}catch(H){dt(s,s.return,H)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;e===l&&(e=null),l=l.return}e===l&&(e=null),l.sibling.return=l.return,l=l.sibling}a&4&&(a=t.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,yu(t,e))));break;case 19:Pt(l,t),tl(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,yu(t,a)));break;case 30:break;case 21:break;default:Pt(l,t),tl(t)}}function tl(t){var l=t.flags;if(l&2){try{for(var e,a=t.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(t);mu(t,u,n);break;case 5:var i=e.stateNode;e.flags&32&&(We(i,""),e.flags&=-33);var f=xc(t);mu(t,f,i);break;case 3:case 4:var s=e.stateNode.containerInfo,v=xc(t);jc(t,v,s);break;default:throw Error(h(161))}}catch(b){dt(t,t.return,b)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function er(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;er(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function wl(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Wo(t,l.alternate,l),l=l.sibling}function Qe(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:oe(4,l,l.return),Qe(l);break;case 1:Dl(l,l.return);var e=l.stateNode;typeof e.componentWillUnmount=="function"&&Ko(l,l.return,e),Qe(l);break;case 27:yn(l.stateNode);case 26:case 5:Dl(l,l.return),Qe(l);break;case 22:l.memoizedState===null&&Qe(l);break;case 30:Qe(l);break;default:Qe(l)}t=t.sibling}}function kl(t,l,e){for(e=e&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var a=l.alternate,n=t,u=l,i=u.flags;switch(u.tag){case 0:case 11:case 15:kl(n,u,e),nn(4,u);break;case 1:if(kl(n,u,e),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(v){dt(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){dt(a,a.return,v)}}e&&i&64&&Vo(u),un(u,u.return);break;case 27:ko(u);case 26:case 5:kl(n,u,e),e&&a===null&&i&4&&Jo(u),un(u,u.return);break;case 12:kl(n,u,e);break;case 31:kl(n,u,e),e&&i&4&&Po(n,u);break;case 13:kl(n,u,e),e&&i&4&&tr(n,u);break;case 22:u.memoizedState===null&&kl(n,u,e),un(u,u.return);break;case 30:break;default:kl(n,u,e)}l=l.sibling}}function zc(t,l){var e=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==e&&(t!=null&&t.refCount++,e!=null&&Ka(e))}function Ac(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ka(t))}function _l(t,l,e,a){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)ar(t,l,e,a),l=l.sibling}function ar(t,l,e,a){var n=l.flags;switch(l.tag){case 0:case 11:case 15:_l(t,l,e,a),n&2048&&nn(9,l);break;case 1:_l(t,l,e,a);break;case 3:_l(t,l,e,a),n&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ka(t)));break;case 12:if(n&2048){_l(t,l,e,a),t=l.stateNode;try{var u=l.memoizedProps,i=u.id,f=u.onPostCommit;typeof f=="function"&&f(i,l.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(s){dt(l,l.return,s)}}else _l(t,l,e,a);break;case 31:_l(t,l,e,a);break;case 13:_l(t,l,e,a);break;case 23:break;case 22:u=l.stateNode,i=l.alternate,l.memoizedState!==null?u._visibility&2?_l(t,l,e,a):cn(t,l):u._visibility&2?_l(t,l,e,a):(u._visibility|=2,va(t,l,e,a,(l.subtreeFlags&10256)!==0||!1)),n&2048&&zc(i,l);break;case 24:_l(t,l,e,a),n&2048&&Ac(l.alternate,l);break;default:_l(t,l,e,a)}}function va(t,l,e,a,n){for(n=n&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var u=t,i=l,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 b=i.stateNode;i.memoizedState!==null?b._visibility&2?va(u,i,f,s,n):cn(u,i):(b._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)}l=l.sibling}}function cn(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var e=t,a=l,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)}l=l.sibling}}var fn=8192;function ga(t,l,e){if(t.subtreeFlags&fn)for(t=t.child;t!==null;)nr(t,l,e),t=t.sibling}function nr(t,l,e){switch(t.tag){case 26:ga(t,l,e),t.flags&fn&&t.memoizedState!==null&&Km(e,Al,t.memoizedState,t.memoizedProps);break;case 5:ga(t,l,e);break;case 3:case 4:var a=Al;Al=Nu(t.stateNode.containerInfo),ga(t,l,e),Al=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=fn,fn=16777216,ga(t,l,e),fn=a):ga(t,l,e));break;default:ga(t,l,e)}}function ur(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function sn(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Rt=a,cr(a,t)}ur(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ir(t),t=t.sibling}function ir(t){switch(t.tag){case 0:case 11:case 15:sn(t),t.flags&2048&&oe(9,t,t.return);break;case 3:sn(t);break;case 12:sn(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,vu(t)):sn(t);break;default:sn(t)}}function vu(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Rt=a,cr(a,t)}ur(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:oe(8,l,l.return),vu(l);break;case 22:e=l.stateNode,e._visibility&2&&(e._visibility&=-3,vu(l));break;default:vu(l)}t=t.sibling}}function cr(t,l){for(;Rt!==null;){var e=Rt;switch(e.tag){case 0:case 11:case 15:oe(8,e,l);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,Rt=a;else t:for(e=t;Rt!==null;){a=Rt;var n=a.sibling,u=a.return;if(Fo(a),a===e){Rt=null;break t}if(n!==null){n.return=u,Rt=n;break t}Rt=u}}}var im={getCacheForType:function(t){var l=qt(Ot),e=l.data.get(t);return e===void 0&&(e=t(),l.data.set(t,e)),e},cacheSignal:function(){return qt(Ot).controller.signal}},cm=typeof WeakMap=="function"?WeakMap:Map,st=0,pt=null,P=null,lt=0,rt=0,ol=null,re=!1,Sa=!1,_c=!1,$l=0,zt=0,de=0,Ze=0,Ec=0,rl=0,pa=0,on=null,ll=null,Oc=!1,gu=0,fr=0,Su=1/0,pu=null,he=null,Ct=0,me=null,ba=null,Wl=0,Nc=0,Mc=null,sr=null,rn=0,Dc=null;function dl(){return(st&2)!==0&&lt!==0?lt&-lt:x.T!==null?qc():zf()}function or(){if(rl===0)if((lt&536870912)===0||nt){var t=En;En<<=1,(En&3932160)===0&&(En=262144),rl=t}else rl=536870912;return t=fl.current,t!==null&&(t.flags|=32),rl}function el(t,l,e){(t===pt&&(rt===2||rt===9)||t.cancelPendingCommit!==null)&&(xa(t,0),ye(t,lt,rl,!1)),Da(t,e),((st&2)===0||t!==pt)&&(t===pt&&((st&2)===0&&(Ze|=e),zt===4&&ye(t,lt,rl,!1)),Cl(t))}function rr(t,l,e){if((st&6)!==0)throw Error(h(327));var a=!e&&(l&127)===0&&(l&t.expiredLanes)===0||Ma(t,l),n=a?om(t,l):Uc(t,l,!0),u=a;do{if(n===0){Sa&&!a&&ye(t,l,0,!1);break}else{if(e=t.current.alternate,u&&!fm(e)){n=Uc(t,l,!1),u=!1;continue}if(n===2){if(u=l,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var f=t;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 t}u=ll,ll=n,u!==null&&(ll===null?ll=u:ll.push.apply(ll,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){xa(t,0),ye(t,l,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(h(345));case 4:if((l&4194048)!==l)break;case 6:ye(a,l,rl,!re);break t;case 2:ll=null;break;case 3:case 5:break;default:throw Error(h(329))}if((l&62914560)===l&&(n=gu+300-al(),10<n)){if(ye(a,l,rl,!re),Nn(a,0,!0)!==0)break t;Wl=l,a.timeoutHandle=Zr(dr.bind(null,a,e,ll,pu,Oc,l,rl,Ze,pa,re,u,"Throttled",-0,0),n);break t}dr(a,e,ll,pu,Oc,l,rl,Ze,pa,re,u,null,-0,0)}}break}while(!0);Cl(t)}function dr(t,l,e,a,n,u,i,f,s,v,b,T,g,S){if(t.timeoutHandle=-1,T=l.subtreeFlags,T&8192||(T&16785408)===16785408){T={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bl},nr(l,u,T);var H=(u&62914560)===u?gu-al():(u&4194048)===u?fr-al():0;if(H=Jm(T,H),H!==null){Wl=u,t.cancelPendingCommit=H(br.bind(null,t,l,u,e,a,n,i,f,s,b,T,null,g,S)),ye(t,u,i,!v);return}}br(t,l,u,e,a,n,i,f,s)}function fm(t){for(var l=t;;){var e=l.tag;if((e===0||e===11||e===15)&&l.flags&16384&&(e=l.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(!il(u(),n))return!1}catch{return!1}}if(e=l.child,l.subtreeFlags&16384&&e!==null)e.return=l,l=e;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function ye(t,l,e,a){l&=~Ec,l&=~Ze,t.suspendedLanes|=l,t.pingedLanes&=~l,a&&(t.warmLanes|=l),a=t.expirationTimes;for(var n=l;0<n;){var u=31-ul(n),i=1<<u;a[u]=-1,n&=~i}e!==0&&xf(t,e,l)}function bu(){return(st&6)===0?(dn(0),!1):!0}function Cc(){if(P!==null){if(rt===0)var t=P.return;else t=P,Gl=Ue=null,ki(t),ra=null,wa=0,t=P;for(;t!==null;)Lo(t.alternate,t),t=t.return;P=null}}function xa(t,l){var e=t.timeoutHandle;e!==-1&&(t.timeoutHandle=-1,Om(e)),e=t.cancelPendingCommit,e!==null&&(t.cancelPendingCommit=null,e()),Wl=0,Cc(),pt=t,P=e=ql(t.current,null),lt=l,rt=0,ol=null,re=!1,Sa=Ma(t,l),_c=!1,pa=rl=Ec=Ze=de=zt=0,ll=on=null,Oc=!1,(l&8)!==0&&(l|=l&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=l;0<a;){var n=31-ul(a),u=1<<n;l|=t[n],a&=~u}return $l=l,Qn(),e}function hr(t,l){W=null,x.H=ln,l===oa||l===$n?(l=Os(),rt=3):l===Hi?(l=Os(),rt=4):rt=l===oc?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,ol=l,P===null&&(zt=1,su(t,vl(l,t.current)))}function mr(){var t=fl.current;return t===null?!0:(lt&4194048)===lt?bl===null:(lt&62914560)===lt||(lt&536870912)!==0?t===bl:!1}function yr(){var t=x.H;return x.H=ln,t===null?ln:t}function vr(){var t=x.A;return x.A=im,t}function xu(){zt=4,re||(lt&4194048)!==lt&&fl.current!==null||(Sa=!0),(de&134217727)===0&&(Ze&134217727)===0||pt===null||ye(pt,lt,rl,!1)}function Uc(t,l,e){var a=st;st|=2;var n=yr(),u=vr();(pt!==t||lt!==l)&&(pu=null,xa(t,l)),l=!1;var i=zt;t:do try{if(rt!==0&&P!==null){var f=P,s=ol;switch(rt){case 8:Cc(),i=6;break t;case 3:case 2:case 9:case 6:fl.current===null&&(l=!0);var v=rt;if(rt=0,ol=null,ja(t,f,s,v),e&&Sa){i=0;break t}break;default:v=rt,rt=0,ol=null,ja(t,f,s,v)}}sm(),i=zt;break}catch(b){hr(t,b)}while(!0);return l&&t.shellSuspendCounter++,Gl=Ue=null,st=a,x.H=n,x.A=u,P===null&&(pt=null,lt=0,Qn()),i}function sm(){for(;P!==null;)gr(P)}function om(t,l){var e=st;st|=2;var a=yr(),n=vr();pt!==t||lt!==l?(pu=null,Su=al()+500,xa(t,l)):Sa=Ma(t,l);t:do try{if(rt!==0&&P!==null){l=P;var u=ol;l:switch(rt){case 1:rt=0,ol=null,ja(t,l,u,1);break;case 2:case 9:if(_s(u)){rt=0,ol=null,Sr(l);break}l=function(){rt!==2&&rt!==9||pt!==t||(rt=7),Cl(t)},u.then(l,l);break t;case 3:rt=7;break t;case 4:rt=5;break t;case 7:_s(u)?(rt=0,ol=null,Sr(l)):(rt=0,ol=null,ja(t,l,u,7));break;case 5:var i=null;switch(P.tag){case 26:i=P.memoizedState;case 5:case 27:var f=P;if(i?ad(i):f.stateNode.complete){rt=0,ol=null;var s=f.sibling;if(s!==null)P=s;else{var v=f.return;v!==null?(P=v,ju(v)):P=null}break l}}rt=0,ol=null,ja(t,l,u,5);break;case 6:rt=0,ol=null,ja(t,l,u,6);break;case 8:Cc(),zt=6;break t;default:throw Error(h(462))}}rm();break}catch(b){hr(t,b)}while(!0);return Gl=Ue=null,x.H=a,x.A=n,st=e,P!==null?0:(pt=null,lt=0,Qn(),zt)}function rm(){for(;P!==null&&!Rd();)gr(P)}function gr(t){var l=Qo(t.alternate,t,$l);t.memoizedProps=t.pendingProps,l===null?ju(t):P=l}function Sr(t){var l=t,e=l.alternate;switch(l.tag){case 15:case 0:l=Bo(e,l,l.pendingProps,l.type,void 0,lt);break;case 11:l=Bo(e,l,l.pendingProps,l.type.render,l.ref,lt);break;case 5:ki(l);default:Lo(e,l),l=P=ys(l,$l),l=Qo(e,l,$l)}t.memoizedProps=t.pendingProps,l===null?ju(t):P=l}function ja(t,l,e,a){Gl=Ue=null,ki(l),ra=null,wa=0;var n=l.return;try{if(Ph(t,n,l,e,lt)){zt=1,su(t,vl(e,t.current)),P=null;return}}catch(u){if(n!==null)throw P=n,u;zt=1,su(t,vl(e,t.current)),P=null;return}l.flags&32768?(nt||a===1?t=!0:Sa||(lt&536870912)!==0?t=!1:(re=t=!0,(a===2||a===9||a===3||a===6)&&(a=fl.current,a!==null&&a.tag===13&&(a.flags|=16384))),pr(l,t)):ju(l)}function ju(t){var l=t;do{if((l.flags&32768)!==0){pr(l,re);return}t=l.return;var e=em(l.alternate,l,$l);if(e!==null){P=e;return}if(l=l.sibling,l!==null){P=l;return}P=l=t}while(l!==null);zt===0&&(zt=5)}function pr(t,l){do{var e=am(t.alternate,t);if(e!==null){e.flags&=32767,P=e;return}if(e=t.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!l&&(t=t.sibling,t!==null)){P=t;return}P=t=e}while(t!==null);zt=6,P=null}function br(t,l,e,a,n,u,i,f,s){t.cancelPendingCommit=null;do Tu();while(Ct!==0);if((st&6)!==0)throw Error(h(327));if(l!==null){if(l===t.current)throw Error(h(177));if(u=l.lanes|l.childLanes,u|=xi,Vd(t,e,u,i,f,s),t===pt&&(P=pt=null,lt=0),ba=l,me=t,Wl=e,Nc=u,Mc=n,sr=a,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ym(An,function(){return Ar(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||a){a=x.T,x.T=null,n=C.p,C.p=2,i=st,st|=4;try{nm(t,l,e)}finally{st=i,C.p=n,x.T=a}}Ct=1,xr(),jr(),Tr()}}function xr(){if(Ct===1){Ct=0;var t=me,l=ba,e=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||e){e=x.T,x.T=null;var a=C.p;C.p=2;var n=st;st|=4;try{lr(l,t);var u=Kc,i=is(t.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,b=s.end;if(b===void 0&&(b=v),"selectionStart"in f)f.selectionStart=v,f.selectionEnd=Math.min(b,f.value.length);else{var T=f.ownerDocument||document,g=T&&T.defaultView||window;if(g.getSelection){var S=g.getSelection(),H=f.textContent.length,Z=Math.min(s.start,H),vt=s.end===void 0?Z:Math.min(s.end,H);!S.extend&&Z>vt&&(i=vt,vt=Z,Z=i);var m=ns(f,Z),r=ns(f,vt);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(),Z>vt?(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{st=n,C.p=a,x.T=e}}t.current=l,Ct=2}}function jr(){if(Ct===2){Ct=0;var t=me,l=ba,e=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||e){e=x.T,x.T=null;var a=C.p;C.p=2;var n=st;st|=4;try{Wo(t,l.alternate,l)}finally{st=n,C.p=a,x.T=e}}Ct=3}}function Tr(){if(Ct===4||Ct===3){Ct=0,Bd();var t=me,l=ba,e=Wl,a=sr;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Ct=5:(Ct=0,ba=me=null,zr(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(he=null),Fu(e),l=l.stateNode,nl&&typeof nl.onCommitFiberRoot=="function")try{nl.onCommitFiberRoot(Na,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=x.T,n=C.p,C.p=2,x.T=null;try{for(var u=t.onRecoverableError,i=0;i<a.length;i++){var f=a[i];u(f.value,{componentStack:f.stack})}}finally{x.T=l,C.p=n}}(Wl&3)!==0&&Tu(),Cl(t),n=t.pendingLanes,(e&261930)!==0&&(n&42)!==0?t===Dc?rn++:(rn=0,Dc=t):rn=0,dn(0)}}function zr(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Ka(l)))}function Tu(){return xr(),jr(),Tr(),Ar()}function Ar(){if(Ct!==5)return!1;var t=me,l=Nc;Nc=0;var e=Fu(Wl),a=x.T,n=C.p;try{C.p=32>e?32:e,x.T=null,e=Mc,Mc=null;var u=me,i=Wl;if(Ct=0,ba=me=null,Wl=0,(st&6)!==0)throw Error(h(331));var f=st;if(st|=4,ir(u.current),ar(u,u.current,i,e),st=f,dn(0,!1),nl&&typeof nl.onPostCommitFiberRoot=="function")try{nl.onPostCommitFiberRoot(Na,u)}catch{}return!0}finally{C.p=n,x.T=a,zr(t,l)}}function _r(t,l,e){l=vl(e,l),l=sc(t.stateNode,l,2),t=ce(t,l,2),t!==null&&(Da(t,2),Cl(t))}function dt(t,l,e){if(t.tag===3)_r(t,t,e);else for(;l!==null;){if(l.tag===3){_r(l,t,e);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(he===null||!he.has(a))){t=vl(e,t),e=Eo(2),a=ce(l,e,2),a!==null&&(Oo(e,a,l,t),Da(a,2),Cl(a));break}}l=l.return}}function Rc(t,l,e){var a=t.pingCache;if(a===null){a=t.pingCache=new cm;var n=new Set;a.set(l,n)}else n=a.get(l),n===void 0&&(n=new Set,a.set(l,n));n.has(e)||(_c=!0,n.add(e),t=dm.bind(null,t,l,e),l.then(t,t))}function dm(t,l,e){var a=t.pingCache;a!==null&&a.delete(l),t.pingedLanes|=t.suspendedLanes&e,t.warmLanes&=~e,pt===t&&(lt&e)===e&&(zt===4||zt===3&&(lt&62914560)===lt&&300>al()-gu?(st&2)===0&&xa(t,0):Ec|=e,pa===lt&&(pa=0)),Cl(t)}function Er(t,l){l===0&&(l=bf()),t=Me(t,l),t!==null&&(Da(t,l),Cl(t))}function hm(t){var l=t.memoizedState,e=0;l!==null&&(e=l.retryLane),Er(t,e)}function mm(t,l){var e=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(h(314))}a!==null&&a.delete(l),Er(t,e)}function ym(t,l){return wu(t,l)}var zu=null,Ta=null,Bc=!1,Au=!1,Hc=!1,ve=0;function Cl(t){t!==Ta&&t.next===null&&(Ta===null?zu=Ta=t:Ta=Ta.next=t),Au=!0,Bc||(Bc=!0,gm())}function dn(t,l){if(!Hc&&Au){Hc=!0;do for(var e=!1,a=zu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-ul(42|t)+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=lt,u=Nn(a,a===pt?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 t=0;ve!==0&&Em()&&(t=ve);for(var l=al(),e=null,a=zu;a!==null;){var n=a.next,u=Nr(a,l);u===0?(a.next=null,e===null?zu=n:e.next=n,n===null&&(Ta=e)):(e=a,(t!==0||(u&3)!==0)&&(Au=!0)),a=n}Ct!==0&&Ct!==5||dn(t),ve!==0&&(ve=0)}function Nr(t,l){for(var e=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-ul(u),f=1<<i,s=n[i];s===-1?((f&e)===0||(f&a)!==0)&&(n[i]=Ld(f,l)):s<=l&&(t.expiredLanes|=f),u&=~f}if(l=pt,e=lt,e=Nn(t,t===l?e:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,e===0||t===l&&(rt===2||rt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&ku(a),t.callbackNode=null,t.callbackPriority=0;if((e&3)===0||Ma(t,e)){if(l=e&-e,l===t.callbackPriority)return l;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,t),e=wu(e,a),t.callbackPriority=l,t.callbackNode=e,l}return a!==null&&a!==null&&ku(a),t.callbackPriority=2,t.callbackNode=null,2}function Mr(t,l){if(Ct!==0&&Ct!==5)return t.callbackNode=null,t.callbackPriority=0,null;var e=t.callbackNode;if(Tu()&&t.callbackNode!==e)return null;var a=lt;return a=Nn(t,t===pt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(rr(t,a,l),Nr(t,al()),t.callbackNode!=null&&t.callbackNode===e?Mr.bind(null,t):null)}function Dr(t,l){if(Tu())return null;rr(t,l,!0)}function gm(){Nm(function(){(st&6)!==0?wu(gf,vm):Or()})}function qc(){if(ve===0){var t=fa;t===0&&(t=_n,_n<<=1,(_n&261888)===0&&(_n=256)),ve=t}return ve}function Cr(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Un(""+t)}function Ur(t,l){var e=l.ownerDocument.createElement("input");return e.name=l.name,e.value=l.value,t.id&&e.setAttribute("form",t.id),l.parentNode.insertBefore(e,l),t=new FormData(t),e.parentNode.removeChild(e),t}function Sm(t,l,e,a,n){if(l==="submit"&&e&&e.stateNode===n){var u=Cr((n[Wt]||null).action),i=a.submitter;i&&(l=(l=i[Wt]||null)?Cr(l.formAction):i.getAttribute("formAction"),l!==null&&(u=l,i=null));var f=new qn("action","action",null,a,n);t.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);zl(pm,"on"+bm)}zl(ss,"onAnimationEnd"),zl(os,"onAnimationIteration"),zl(rs,"onAnimationStart"),zl("dblclick","onDoubleClick"),zl("focusin","onFocus"),zl("focusout","onBlur"),zl(Hh,"onTransitionRun"),zl(qh,"onTransitionStart"),zl(Yh,"onTransitionCancel"),zl(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(t,l){l=(l&4)!==0;for(var e=0;e<t.length;e++){var a=t[e],n=a.event;a=a.listeners;t:{var u=void 0;if(l)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 t;u=f,n.currentTarget=v;try{u(n)}catch(b){Xn(b)}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 t;u=f,n.currentTarget=v;try{u(n)}catch(b){Xn(b)}n.currentTarget=null,u=s}}}}function tt(t,l){var e=l[Iu];e===void 0&&(e=l[Iu]=new Set);var a=t+"__bubble";e.has(a)||(Br(l,t,2,!1),e.add(a))}function Xc(t,l,e){var a=0;l&&(a|=4),Br(e,t,a,l)}var _u="_reactListening"+Math.random().toString(36).slice(2);function Qc(t){if(!t[_u]){t[_u]=!0,Ef.forEach(function(e){e!=="selectionchange"&&(xm.has(e)||Xc(e,!1,t),Xc(e,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[_u]||(l[_u]=!0,Xc("selectionchange",!1,l))}}function Br(t,l,e,a){switch(od(l)){case 2:var n=$m;break;case 8:n=Wm;break;default:n=ef}e=n.bind(null,l,e,t),n=void 0,!ci||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(l,e,{capture:!0,passive:n}):t.addEventListener(l,e,!0):n!==void 0?t.addEventListener(l,e,{passive:n}):t.addEventListener(l,e,!1)}function Zc(t,l,e,a,n){var u=a;if((l&1)===0&&(l&2)===0&&a!==null)t: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 t}f=f.parentNode}}a=a.return}Gf(function(){var v=u,b=ui(e),T=[];t:{var g=hs.get(t);if(g!==void 0){var S=qn,H=t;switch(t){case"keypress":if(Bn(e)===0)break t;case"keydown":case"keyup":S=mh;break;case"focusin":H="focus",S=ri;break;case"focusout":H="blur",S=ri;break;case"beforeblur":case"afterblur":S=ri;break;case"click":if(e.button===2)break t;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=th;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 Z=(l&4)!==0,vt=!Z&&(t==="scroll"||t==="scrollend"),m=Z?g!==null?g+"Capture":null:g;Z=[];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&&Z.push(mn(r,j,y))),vt)break;r=r.return}0<Z.length&&(g=new S(g,H,null,e,b),T.push({event:g,listeners:Z}))}}if((l&7)===0){t:{if(g=t==="mouseover"||t==="pointerover",S=t==="mouseout"||t==="pointerout",g&&e!==ni&&(H=e.relatedTarget||e.fromElement)&&(Ke(H)||H[Ve]))break t;if((S||g)&&(g=b.window===b?b:(g=b.ownerDocument)?g.defaultView||g.parentWindow:window,S?(H=e.relatedTarget||e.toElement,S=v,H=H?Ke(H):null,H!==null&&(vt=_(H),Z=H.tag,H!==vt||Z!==5&&Z!==27&&Z!==6)&&(H=null)):(S=null,H=v),S!==H)){if(Z=Zf,j="onMouseLeave",m="onMouseEnter",r="mouse",(t==="pointerout"||t==="pointerover")&&(Z=Vf,j="onPointerLeave",m="onPointerEnter",r="pointer"),vt=S==null?g:Ua(S),y=H==null?g:Ua(H),g=new Z(j,r+"leave",S,e,b),g.target=vt,g.relatedTarget=y,j=null,Ke(b)===v&&(Z=new Z(m,r+"enter",H,e,b),Z.target=y,Z.relatedTarget=vt,j=Z),vt=j,S&&H)l:{for(Z=jm,m=S,r=H,y=0,j=m;j;j=Z(j))y++;j=0;for(var G=r;G;G=Z(G))j++;for(;0<y-j;)m=Z(m),y--;for(;0<j-y;)r=Z(r),j--;for(;y--;){if(m===r||r!==null&&m===r.alternate){Z=m;break l}m=Z(m),r=Z(r)}Z=null}else Z=null;S!==null&&Hr(T,g,S,Z,!1),H!==null&&vt!==null&&Hr(T,vt,H,Z,!0)}}t:{if(g=v?Ua(v):window,S=g.nodeName&&g.nodeName.toLowerCase(),S==="select"||S==="input"&&g.type==="file")var ct=If;else if(Wf(g))if(Pf)ct=Uh;else{ct=Dh;var Y=Mh}else S=g.nodeName,!S||S.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?v&&ai(v.elementType)&&(ct=If):ct=Ch;if(ct&&(ct=ct(t,v))){Ff(T,ct,e,b);break t}Y&&Y(t,g,v),t==="focusout"&&v&&g.type==="number"&&v.memoizedProps.value!=null&&ei(g,"number",g.value)}switch(Y=v?Ua(v):window,t){case"focusin":(Wf(Y)||Y.contentEditable==="true")&&(ta=Y,gi=v,Za=null);break;case"focusout":Za=gi=ta=null;break;case"mousedown":Si=!0;break;case"contextmenu":case"mouseup":case"dragend":Si=!1,cs(T,e,b);break;case"selectionchange":if(Bh)break;case"keydown":case"keyup":cs(T,e,b)}var F;if(hi)t:{switch(t){case"compositionstart":var et="onCompositionStart";break t;case"compositionend":et="onCompositionEnd";break t;case"compositionupdate":et="onCompositionUpdate";break t}et=void 0}else Pe?kf(t,e)&&(et="onCompositionEnd"):t==="keydown"&&e.keyCode===229&&(et="onCompositionStart");et&&(Kf&&e.locale!=="ko"&&(Pe||et!=="onCompositionStart"?et==="onCompositionEnd"&&Pe&&(F=Xf()):(te=b,fi="value"in te?te.value:te.textContent,Pe=!0)),Y=Eu(v,et),0<Y.length&&(et=new Lf(et,t,null,e,b),T.push({event:et,listeners:Y}),F?et.data=F:(F=$f(e),F!==null&&(et.data=F)))),(F=Ah?_h(t,e):Eh(t,e))&&(et=Eu(v,"onBeforeInput"),0<et.length&&(Y=new Lf("onBeforeInput","beforeinput",null,e,b),T.push({event:Y,listeners:et}),Y.data=F)),Sm(T,t,v,e,b)}Rr(T,l)})}function mn(t,l,e){return{instance:t,listener:l,currentTarget:e}}function Eu(t,l){for(var e=l+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ra(t,e),n!=null&&a.unshift(mn(t,n,u)),n=Ra(t,l),n!=null&&a.push(mn(t,n,u))),t.tag===3)return a;t=t.return}return[]}function jm(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Hr(t,l,e,a,n){for(var u=l._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&&t.push({event:l,listeners:i})}var Tm=/\r\n?/g,zm=/\u0000|\uFFFD/g;function qr(t){return(typeof t=="string"?t:""+t).replace(Tm,`
+`).replace(zm,"")}function Yr(t,l){return l=qr(l),qr(t)===l}function yt(t,l,e,a,n,u){switch(e){case"children":typeof a=="string"?l==="body"||l==="textarea"&&a===""||We(t,a):(typeof a=="number"||typeof a=="bigint")&&l!=="body"&&We(t,""+a);break;case"className":Dn(t,"class",a);break;case"tabIndex":Dn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Dn(t,e,a);break;case"style":qf(t,a,u);break;case"data":if(l!=="object"){Dn(t,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||e!=="href")){t.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Un(""+a),t.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){t.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"?(l!=="input"&&yt(t,l,"name",n.name,n,null),yt(t,l,"formEncType",n.formEncType,n,null),yt(t,l,"formMethod",n.formMethod,n,null),yt(t,l,"formTarget",n.formTarget,n,null)):(yt(t,l,"encType",n.encType,n,null),yt(t,l,"method",n.method,n,null),yt(t,l,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Un(""+a),t.setAttribute(e,a);break;case"onClick":a!=null&&(t.onclick=Bl);break;case"onScroll":a!=null&&tt("scroll",t);break;case"onScrollEnd":a!=null&&tt("scrollend",t);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));t.innerHTML=e}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}e=Un(""+a),t.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"?t.setAttribute(e,""+a):t.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"?t.setAttribute(e,""):t.removeAttribute(e);break;case"capture":case"download":a===!0?t.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,a):t.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(e,a):t.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(e):t.setAttribute(e,a);break;case"popover":tt("beforetoggle",t),tt("toggle",t),Mn(t,"popover",a);break;case"xlinkActuate":Rl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Rl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Rl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Rl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Rl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Rl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Rl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Rl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Rl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Mn(t,"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(t,e,a))}}function Lc(t,l,e,a,n,u){switch(e){case"style":qf(t,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));t.innerHTML=e}}break;case"children":typeof a=="string"?We(t,a):(typeof a=="number"||typeof a=="bigint")&&We(t,""+a);break;case"onScroll":a!=null&&tt("scroll",t);break;case"onScrollEnd":a!=null&&tt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Bl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Of.hasOwnProperty(e))t:{if(e[0]==="o"&&e[1]==="n"&&(n=e.endsWith("Capture"),l=e.slice(2,n?e.length-7:void 0),u=t[Wt]||null,u=u!=null?u[e]:null,typeof u=="function"&&t.removeEventListener(l,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(e in t?t[e]=null:t.hasAttribute(e)&&t.removeAttribute(e)),t.addEventListener(l,a,n);break t}e in t?t[e]=a:a===!0?t.setAttribute(e,""):Mn(t,e,a)}}}function Gt(t,l,e){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",t),tt("load",t);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,l));default:yt(t,l,u,i,e,null)}}n&&yt(t,l,"srcSet",e.srcSet,e,null),a&&yt(t,l,"src",e.src,e,null);return;case"input":tt("invalid",t);var f=u=i=n=null,s=null,v=null;for(a in e)if(e.hasOwnProperty(a)){var b=e[a];if(b!=null)switch(a){case"name":n=b;break;case"type":i=b;break;case"checked":s=b;break;case"defaultChecked":v=b;break;case"value":u=b;break;case"defaultValue":f=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(h(137,l));break;default:yt(t,l,a,b,e,null)}}Uf(t,u,f,s,v,i,n,!1);return;case"select":tt("invalid",t),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:yt(t,l,n,f,e,null)}l=u,e=i,t.multiple=!!a,l!=null?$e(t,!!a,l,!1):e!=null&&$e(t,!!a,e,!0);return;case"textarea":tt("invalid",t),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:yt(t,l,i,f,e,null)}Bf(t,a,n,u);return;case"option":for(s in e)if(e.hasOwnProperty(s)&&(a=e[s],a!=null))switch(s){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:yt(t,l,s,a,e,null)}return;case"dialog":tt("beforetoggle",t),tt("toggle",t),tt("cancel",t),tt("close",t);break;case"iframe":case"object":tt("load",t);break;case"video":case"audio":for(a=0;a<hn.length;a++)tt(hn[a],t);break;case"image":tt("error",t),tt("load",t);break;case"details":tt("toggle",t);break;case"embed":case"source":case"link":tt("error",t),tt("load",t);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,l));default:yt(t,l,v,a,e,null)}return;default:if(ai(l)){for(b in e)e.hasOwnProperty(b)&&(a=e[b],a!==void 0&&Lc(t,l,b,a,e,void 0));return}}for(f in e)e.hasOwnProperty(f)&&(a=e[f],a!=null&&yt(t,l,f,a,e,null))}function Am(t,l,e,a){switch(l){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,b=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)||yt(t,l,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":b=S;break;case"value":i=S;break;case"defaultValue":f=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(h(137,l));break;default:S!==T&&yt(t,l,g,S,a,T)}}li(t,i,f,s,v,b,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)||yt(t,l,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&&yt(t,l,n,u,a,s)}l=f,e=i,a=S,g!=null?$e(t,!!e,g,!1):!!a!=!!e&&(l!=null?$e(t,!!e,l,!0):$e(t,!!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:yt(t,l,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&&yt(t,l,i,n,a,u)}Rf(t,g,S);return;case"option":for(var H in e)if(g=e[H],e.hasOwnProperty(H)&&g!=null&&!a.hasOwnProperty(H))switch(H){case"selected":t.selected=!1;break;default:yt(t,l,H,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":t.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:yt(t,l,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 Z in e)g=e[Z],e.hasOwnProperty(Z)&&g!=null&&!a.hasOwnProperty(Z)&&yt(t,l,Z,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,l));break;default:yt(t,l,v,g,a,S)}return;default:if(ai(l)){for(var vt in e)g=e[vt],e.hasOwnProperty(vt)&&g!==void 0&&!a.hasOwnProperty(vt)&&Lc(t,l,vt,void 0,a,g);for(b in a)g=a[b],S=e[b],!a.hasOwnProperty(b)||g===S||g===void 0&&S===void 0||Lc(t,l,b,g,a,S);return}}for(var m in e)g=e[m],e.hasOwnProperty(m)&&g!=null&&!a.hasOwnProperty(m)&&yt(t,l,m,null,a,g);for(T in a)g=a[T],S=e[T],!a.hasOwnProperty(T)||g===S||g==null&&S==null||yt(t,l,T,g,a,S)}function Gr(t){switch(t){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 t=0,l=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 b=s.transferSize,T=s.initiatorType;b&&Gr(T)&&(s=s.responseEnd,i+=b*(s<f?1:(f-v)/(s-v)))}if(--a,l+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Vc=null,Kc=null;function Ou(t){return t.nodeType===9?t:t.ownerDocument}function Xr(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qr(t,l){if(t===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&l==="foreignObject"?0:t}function Jc(t,l){return t==="textarea"||t==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var wc=null;function Em(){var t=window.event;return t&&t.type==="popstate"?t===wc?!1:(wc=t,!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(t){return Lr.resolve(null).then(t).catch(Mm)}:Zr;function Mm(t){setTimeout(function(){throw t})}function ge(t){return t==="head"}function Vr(t,l){var e=l,a=0;do{var n=e.nextSibling;if(t.removeChild(e),n&&n.nodeType===8)if(e=n.data,e==="/$"||e==="/&"){if(a===0){t.removeChild(n),Ea(l);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")yn(t.ownerDocument.documentElement);else if(e==="head"){e=t.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(t.ownerDocument.body);e=n}while(e);Ea(l)}function Kr(t,l){var e=t;t=0;do{var a=e.nextSibling;if(e.nodeType===1?l?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(l?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(t===0)break;t--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||t++;e=a}while(e)}function kc(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var e=l;switch(l=l.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}t.removeChild(e)}}function Dm(t,l,e,a){for(;t.nodeType===1;){var n=e;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ca])switch(l){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(l==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=xl(t.nextSibling),t===null)break}return null}function Cm(t,l,e){if(l==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=xl(t.nextSibling),t===null))return null;return t}function Jr(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=xl(t.nextSibling),t===null))return null;return t}function $c(t){return t.data==="$?"||t.data==="$~"}function Wc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Um(t,l){var e=t.ownerDocument;if(t.data==="$~")t._reactRetry=l;else if(t.data!=="$?"||e.readyState!=="loading")l();else{var a=function(){l(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function xl(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return t}var Fc=null;function wr(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="/$"||e==="/&"){if(l===0)return xl(t.nextSibling);l--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||l++}t=t.nextSibling}return null}function kr(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(l===0)return t;l--}else e!=="/$"&&e!=="/&"||l++}t=t.previousSibling}return null}function $r(t,l,e){switch(l=Ou(e),t){case"html":if(t=l.documentElement,!t)throw Error(h(452));return t;case"head":if(t=l.head,!t)throw Error(h(453));return t;case"body":if(t=l.body,!t)throw Error(h(454));return t;default:throw Error(h(451))}}function yn(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);Pu(t)}var jl=new Map,Wr=new Set;function Nu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Fl=C.d;C.d={f:Rm,r:Bm,D:Hm,C:qm,L:Ym,m:Gm,X:Qm,S:Xm,M:Zm};function Rm(){var t=Fl.f(),l=bu();return t||l}function Bm(t){var l=Je(t);l!==null&&l.tag===5&&l.type==="form"?ho(l):Fl.r(t)}var za=typeof document>"u"?null:document;function Fr(t,l,e){var a=za;if(a&&typeof l=="string"&&l){var n=ml(l);n='link[rel="'+t+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),Wr.has(n)||(Wr.add(n),t={rel:t,crossOrigin:e,href:l},a.querySelector(n)===null&&(l=a.createElement("link"),Gt(l,"link",t),Ut(l),a.head.appendChild(l)))}}function Hm(t){Fl.D(t),Fr("dns-prefetch",t,null)}function qm(t,l){Fl.C(t,l),Fr("preconnect",t,l)}function Ym(t,l,e){Fl.L(t,l,e);var a=za;if(a&&t&&l){var n='link[rel="preload"][as="'+ml(l)+'"]';l==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+ml(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+ml(e.imageSizes)+'"]')):n+='[href="'+ml(t)+'"]';var u=n;switch(l){case"style":u=Aa(t);break;case"script":u=_a(t)}jl.has(u)||(t=D({rel:"preload",href:l==="image"&&e&&e.imageSrcSet?void 0:t,as:l},e),jl.set(u,t),a.querySelector(n)!==null||l==="style"&&a.querySelector(vn(u))||l==="script"&&a.querySelector(gn(u))||(l=a.createElement("link"),Gt(l,"link",t),Ut(l),a.head.appendChild(l)))}}function Gm(t,l){Fl.m(t,l);var e=za;if(e&&t){var a=l&&typeof l.as=="string"?l.as:"script",n='link[rel="modulepreload"][as="'+ml(a)+'"][href="'+ml(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=_a(t)}if(!jl.has(u)&&(t=D({rel:"modulepreload",href:t},l),jl.set(u,t),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"),Gt(a,"link",t),Ut(a),e.head.appendChild(a)}}}function Xm(t,l,e){Fl.S(t,l,e);var a=za;if(a&&t){var n=we(a).hoistableStyles,u=Aa(t);l=l||"default";var i=n.get(u);if(!i){var f={loading:0,preload:null};if(i=a.querySelector(vn(u)))f.loading=5;else{t=D({rel:"stylesheet",href:t,"data-precedence":l},e),(e=jl.get(u))&&Ic(t,e);var s=i=a.createElement("link");Ut(s),Gt(s,"link",t),s._p=new Promise(function(v,b){s.onload=v,s.onerror=b}),s.addEventListener("load",function(){f.loading|=1}),s.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Mu(i,l,a)}i={type:"stylesheet",instance:i,count:1,state:f},n.set(u,i)}}}function Qm(t,l){Fl.X(t,l);var e=za;if(e&&t){var a=we(e).hoistableScripts,n=_a(t),u=a.get(n);u||(u=e.querySelector(gn(n)),u||(t=D({src:t,async:!0},l),(l=jl.get(n))&&Pc(t,l),u=e.createElement("script"),Ut(u),Gt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Zm(t,l){Fl.M(t,l);var e=za;if(e&&t){var a=we(e).hoistableScripts,n=_a(t),u=a.get(n);u||(u=e.querySelector(gn(n)),u||(t=D({src:t,async:!0,type:"module"},l),(l=jl.get(n))&&Pc(t,l),u=e.createElement("script"),Ut(u),Gt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Ir(t,l,e,a){var n=(n=I.current)?Nu(n):null;if(!n)throw Error(h(446));switch(t){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(l=Aa(e.href),e=we(n).hoistableStyles,a=e.get(l),a||(a={type:"style",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){t=Aa(e.href);var u=we(n).hoistableStyles,i=u.get(t);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=n.querySelector(vn(t)))&&!u._p&&(i.instance=u,i.state.loading=5),jl.has(t)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},jl.set(t,e),u||Lm(n,t,e,i.state))),l&&a===null)throw Error(h(528,""));return i}if(l&&a!==null)throw Error(h(529,""));return null;case"script":return l=e.async,e=e.src,typeof e=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=_a(e),e=we(n).hoistableScripts,a=e.get(l),a||(a={type:"script",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(h(444,t))}}function Aa(t){return'href="'+ml(t)+'"'}function vn(t){return'link[rel="stylesheet"]['+t+"]"}function Pr(t){return D({},t,{"data-precedence":t.precedence,precedence:null})}function Lm(t,l,e,a){t.querySelector('link[rel="preload"][as="style"]['+l+"]")?a.loading=1:(l=t.createElement("link"),a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2}),Gt(l,"link",e),Ut(l),t.head.appendChild(l))}function _a(t){return'[src="'+ml(t)+'"]'}function gn(t){return"script[async]"+t}function td(t,l,e){if(l.count++,l.instance===null)switch(l.type){case"style":var a=t.querySelector('style[data-href~="'+ml(e.href)+'"]');if(a)return l.instance=a,Ut(a),a;var n=D({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ut(a),Gt(a,"style",n),Mu(a,e.precedence,t),l.instance=a;case"stylesheet":n=Aa(e.href);var u=t.querySelector(vn(n));if(u)return l.state.loading|=4,l.instance=u,Ut(u),u;a=Pr(e),(n=jl.get(n))&&Ic(a,n),u=(t.ownerDocument||t).createElement("link"),Ut(u);var i=u;return i._p=new Promise(function(f,s){i.onload=f,i.onerror=s}),Gt(u,"link",a),l.state.loading|=4,Mu(u,e.precedence,t),l.instance=u;case"script":return u=_a(e.src),(n=t.querySelector(gn(u)))?(l.instance=n,Ut(n),n):(a=e,(n=jl.get(u))&&(a=D({},e),Pc(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Ut(n),Gt(n,"link",a),t.head.appendChild(n),l.instance=n);case"void":return null;default:throw Error(h(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,Mu(a,e.precedence,t));return l.instance}function Mu(t,l,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===l)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(l=e.nodeType===9?e.head:e,l.insertBefore(t,l.firstChild))}function Ic(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function Pc(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var Du=null;function ld(t,l,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(t))return a;for(a.set(t,null),e=e.getElementsByTagName(t),n=0;n<e.length;n++){var u=e[n];if(!(u[Ca]||u[Bt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(l)||"";i=t+i;var f=a.get(i);f?f.push(u):a.set(i,[u])}}return a}function ed(t,l,e){t=t.ownerDocument||t,t.head.insertBefore(e,l==="title"?t.querySelector("head > title"):null)}function Vm(t,l,e){if(e===1||l.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return t=l.disabled,typeof l.precedence=="string"&&t==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function ad(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Km(t,l,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=l.querySelector(vn(n));if(u){l=u._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(t.count++,t=Cu.bind(t),l.then(t,t)),e.state.loading|=4,e.instance=u,Ut(u);return}u=l.ownerDocument||l,a=Pr(a),(n=jl.get(n))&&Ic(a,n),u=u.createElement("link"),Ut(u);var i=u;i._p=new Promise(function(f,s){i.onload=f,i.onerror=s}),Gt(u,"link",a),e.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(e,l),(l=e.state.preload)&&(e.state.loading&3)===0&&(t.count++,e=Cu.bind(t),l.addEventListener("load",e),l.addEventListener("error",e))}}var tf=0;function Jm(t,l){return t.stylesheets&&t.count===0&&Ru(t,t.stylesheets),0<t.count||0<t.imgCount?function(e){var a=setTimeout(function(){if(t.stylesheets&&Ru(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+l);0<t.imgBytes&&tf===0&&(tf=62500*_m());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ru(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>tf?50:800)+l);return t.unsuspend=e,function(){t.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 t=this.unsuspend;this.unsuspend=null,t()}}}var Uu=null;function Ru(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Uu=new Map,l.forEach(wm,t),Uu=null,Cu.call(t))}function wm(t,l){if(!(l.state.loading&4)){var e=Uu.get(t);if(e)var a=e.get(null);else{e=new Map,Uu.set(t,e);for(var n=t.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=l.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):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),l.state.loading|=4}}var Sn={$$typeof:X,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function km(t,l,e,a,n,u,i,f,s){this.tag=1,this.containerInfo=t,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(t,l,e,a,n,u,i,f,s,v,b,T){return t=new km(t,l,e,i,s,v,b,T,f),l=1,u===!0&&(l|=24),u=cl(3,null,null,l),t.current=u,u.stateNode=t,l=Ui(),l.refCount++,t.pooledCache=l,l.refCount++,u.memoizedState={element:a,isDehydrated:e,cache:l},qi(u),t}function ud(t){return t?(t=aa,t):aa}function id(t,l,e,a,n,u){n=ud(n),a.context===null?a.context=n:a.pendingContext=n,a=ie(l),a.payload={element:e},u=u===void 0?null:u,u!==null&&(a.callback=u),e=ce(t,a,l),e!==null&&(el(e,t,l),$a(e,t,l))}function cd(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var e=t.retryLane;t.retryLane=e!==0&&e<l?e:l}}function lf(t,l){cd(t,l),(t=t.alternate)&&cd(t,l)}function fd(t){if(t.tag===13||t.tag===31){var l=Me(t,67108864);l!==null&&el(l,t,67108864),lf(t,67108864)}}function sd(t){if(t.tag===13||t.tag===31){var l=dl();l=Wu(l);var e=Me(t,l);e!==null&&el(e,t,l),lf(t,l)}}var Bu=!0;function $m(t,l,e,a){var n=x.T;x.T=null;var u=C.p;try{C.p=2,ef(t,l,e,a)}finally{C.p=u,x.T=n}}function Wm(t,l,e,a){var n=x.T;x.T=null;var u=C.p;try{C.p=8,ef(t,l,e,a)}finally{C.p=u,x.T=n}}function ef(t,l,e,a){if(Bu){var n=af(a);if(n===null)Zc(t,l,a,Hu,e),rd(t,a);else if(Im(n,t,l,e,a))a.stopPropagation();else if(rd(t,a),l&4&&-1<Fm.indexOf(t)){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-ul(i);f.entanglements[1]|=s,i&=~s}Cl(u),(st&6)===0&&(Su=al()+500,dn(0))}}break;case 31:case 13:f=Me(u,2),f!==null&&el(f,u,2),bu(),lf(u,2)}if(u=af(a),u===null&&Zc(t,l,a,Hu,e),u===n)break;n=u}n!==null&&a.stopPropagation()}else Zc(t,l,a,null,e)}}function af(t){return t=ui(t),nf(t)}var Hu=null;function nf(t){if(Hu=null,t=Ke(t),t!==null){var l=_(t);if(l===null)t=null;else{var e=l.tag;if(e===13){if(t=R(l),t!==null)return t;t=null}else if(e===31){if(t=K(l),t!==null)return t;t=null}else if(e===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return Hu=t,null}function od(t){switch(t){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(t,l){switch(t){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(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":bn.delete(l.pointerId)}}function xn(t,l,e,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:l,domEventName:e,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},l!==null&&(l=Je(l),l!==null&&fd(l)),t):(t.eventSystemFlags|=a,l=t.targetContainers,n!==null&&l.indexOf(n)===-1&&l.push(n),t)}function Im(t,l,e,a,n){switch(l){case"focusin":return Se=xn(Se,t,l,e,a,n),!0;case"dragenter":return pe=xn(pe,t,l,e,a,n),!0;case"mouseover":return be=xn(be,t,l,e,a,n),!0;case"pointerover":var u=n.pointerId;return pn.set(u,xn(pn.get(u)||null,t,l,e,a,n)),!0;case"gotpointercapture":return u=n.pointerId,bn.set(u,xn(bn.get(u)||null,t,l,e,a,n)),!0}return!1}function dd(t){var l=Ke(t.target);if(l!==null){var e=_(l);if(e!==null){if(l=e.tag,l===13){if(l=R(e),l!==null){t.blockedOn=l,Af(t.priority,function(){sd(e)});return}}else if(l===31){if(l=K(e),l!==null){t.blockedOn=l,Af(t.priority,function(){sd(e)});return}}else if(l===3&&e.stateNode.current.memoizedState.isDehydrated){t.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qu(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var e=af(t.nativeEvent);if(e===null){e=t.nativeEvent;var a=new e.constructor(e.type,e);ni=a,e.target.dispatchEvent(a),ni=null}else return l=Je(e),l!==null&&fd(l),t.blockedOn=e,!1;l.shift()}return!0}function hd(t,l,e){qu(t)&&e.delete(l)}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(t,l){t.blockedOn===l&&(t.blockedOn=null,uf||(uf=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Pm)))}var Gu=null;function md(t){Gu!==t&&(Gu=t,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Gu===t&&(Gu=null);for(var l=0;l<t.length;l+=3){var e=t[l],a=t[l+1],n=t[l+2];if(typeof a!="function"){if(nf(a||e)===null)continue;break}var u=Je(e);u!==null&&(t.splice(l,3),l-=3,ac(u,{pending:!0,data:n,method:e.method,action:a},a,n))}}))}function Ea(t){function l(s){return Yu(s,t)}Se!==null&&Yu(Se,t),pe!==null&&Yu(pe,t),be!==null&&Yu(be,t),pn.forEach(l),bn.forEach(l);for(var e=0;e<xe.length;e++){var a=xe[e];a.blockedOn===t&&(a.blockedOn=null)}for(;0<xe.length&&(e=xe[0],e.blockedOn===null);)dd(e),e.blockedOn===null&&xe.shift();if(e=(t.ownerDocument||t).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var n=e[a],u=e[a+1],i=n[Wt]||null;if(typeof u=="function")i||md(e);else if(i){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Wt]||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 t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function l(){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",t),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),n!==null&&(n(),n=null)}}}function cf(t){this._internalRoot=t}Xu.prototype.render=cf.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(h(409));var e=l.current,a=dl();id(e,a,t,l,null,null)},Xu.prototype.unmount=cf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;id(t.current,2,null,t,null,null),bu(),l[Ve]=null}};function Xu(t){this._internalRoot=t}Xu.prototype.unstable_scheduleHydration=function(t){if(t){var l=zf();t={blockedOn:null,target:t,priority:l};for(var e=0;e<xe.length&&l!==0&&l<xe[e].priority;e++);xe.splice(e,0,t),e===0&&dd(t)}};var vd=M.version;if(vd!=="19.2.5")throw Error(h(527,vd,"19.2.5"));C.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(h(188)):(t=Object.keys(t).join(","),Error(h(268,t)));return t=p(l),t=t!==null?B(t):null,t=t===null?null:t.stateNode,t};var ty={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(ty),nl=Qu}catch{}}return Tn.createRoot=function(t,l){if(!N(t))throw Error(h(299));var e=!1,a="",n=To,u=zo,i=Ao;return l!=null&&(l.unstable_strictMode===!0&&(e=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError)),l=nd(t,1,!1,null,null,e,a,null,n,u,i,yd),t[Ve]=l.current,Qc(t),new cf(l)},Tn.hydrateRoot=function(t,l,e){if(!N(t))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)),l=nd(t,1,!0,l,e??null,a,n,s,u,i,f,yd),l.context=ud(null),e=l.current,a=dl(),a=Wu(a),n=ie(a),n.callback=null,ce(e,n,a),e=a,l.current.lanes=e,Da(l,e),Cl(l),t[Ve]=l.current,Qc(t),new Xu(l)},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(M){console.error(M)}}return o(),of.exports=sy(),of.exports}var ry=oy();const dy=Md(ry),Cd="";async function wt(o,M){const E=await fetch(`${Cd}${o}`,{...M,credentials:"same-origin",headers:{"Content-Type":"application/json",...M==null?void 0:M.headers}});if(E.status===401)throw window.location.hash="#login",new Error("Unauthorized");if(!E.ok){const h=await E.json().catch(()=>({}));throw new Error(h.error||`HTTP ${E.status}`)}return E.json()}async function hy(o){const M=await fetch(`${Cd}${o}`,{credentials:"same-origin"});if(M.status===401)throw window.location.hash="#login",new Error("Unauthorized");if(!M.ok)throw new Error(`HTTP ${M.status}`);return M.text()}const Lt={login:o=>wt("/admin/login",{method:"POST",body:JSON.stringify({token:o})}),signOutEverywhere:()=>wt("/admin/api/sign-out-everywhere",{method:"POST"}),stats:()=>wt("/admin/api/stats"),health:()=>wt("/admin/api/health-indicators"),agents:()=>wt("/admin/api/agents"),sources:()=>wt("/admin/api/sources"),requests:(o=1,M="")=>wt(`/admin/api/requests?page=${o}${M}`),apiKeys:()=>wt("/admin/api/api-keys"),createApiKey(o){return wt("/admin/api/api-keys",{method:"POST",body:JSON.stringify({name:o})})},revokeApiKey(o){return wt("/admin/api/api-keys/revoke",{method:"POST",body:JSON.stringify({name:o})})},updateClientTtl:(o,M)=>wt("/admin/api/update-client-ttl",{method:"POST",body:JSON.stringify({clientId:o,tokenTtl:M})}),rescopeClient:(o,M,E)=>wt("/admin/api/rescope-client",{method:"POST",body:JSON.stringify({clientId:o,sourceId:M,federatedRead:E})}),revokeClient:o=>wt("/admin/api/revoke-client",{method:"POST",body:JSON.stringify({clientId:o})}),calibrationProfile:o=>wt(`/admin/api/calibration/profile${o?`?holder=${encodeURIComponent(o)}`:""}`),calibrationChart:(o,M)=>hy(`/admin/api/calibration/charts/${encodeURIComponent(o)}${M?`?holder=${encodeURIComponent(M)}`:""}`),jobsWatch:()=>wt("/admin/api/jobs/watch")};function my({onLogin:o}){const[M,E]=L.useState(""),[h,N]=L.useState(""),[_,R]=L.useState(!1),K=async A=>{A.preventDefault(),N(""),R(!0);try{await Lt.login(M),E(""),o()}catch{N("Invalid token.")}finally{R(!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:K,style:{marginTop:12},children:[c.jsx("div",{style:{marginBottom:12},children:c.jsx("input",{type:"password",placeholder:"Admin Token",value:M,onChange:A=>E(A.target.value)})}),c.jsx("button",{className:"btn btn-primary",style:{width:"100%"},disabled:_,children:_?"Authenticating...":"Submit"}),h&&c.jsx("div",{className:"login-error",children:h})]})]})]})})}function yy(){const[o,M]=L.useState({connected_agents:0,requests_today:0,active_tokens:0}),[E,h]=L.useState({expiring_soon:0,error_rate:"0%"}),[N,_]=L.useState([]),[R,K]=L.useState("connecting"),A=L.useRef(null);L.useEffect(()=>{Lt.stats().then(M).catch(()=>{}),Lt.health().then(h).catch(()=>{});const B=new EventSource("/admin/events",{withCredentials:!0});A.current=B,B.onopen=()=>K("connected"),B.onmessage=O=>{try{const Q=JSON.parse(O.data);_(V=>[Q,...V].slice(0,50))}catch{}},B.onerror=()=>{K("disconnected"),setTimeout(()=>{K("connecting"),B.close()},3e3)};const D=setInterval(()=>{Lt.stats().then(M).catch(()=>{}),Lt.health().then(h).catch(()=>{})},3e4);return()=>{B.close(),clearInterval(D)}},[]);const p=B=>{const D=Date.now()-new Date(B).getTime();return D<6e4?`${Math.floor(D/1e3)}s ago`:D<36e5?`${Math.floor(D/6e4)} min ago`:`${Math.floor(D/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:R==="connected"?"var(--success)":R==="connecting"?"var(--warning)":"var(--error)"},children:R==="connected"?"● connected":R==="connecting"?"● connecting...":"● disconnected"})]}),c.jsx("div",{className:"feed",children:N.length===0?c.jsx("div",{className:"feed-empty",children:R==="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:N.map((B,D)=>c.jsxs("tr",{children:[c.jsx("td",{className:"mono",children:B.agent}),c.jsx("td",{className:"mono",children:B.operation}),c.jsx("td",{children:B.scopes.split(",").map(O=>c.jsx("span",{className:`badge badge-${O.trim()}`,style:{marginRight:4},children:O.trim()},O))}),c.jsxs("td",{className:"mono",children:[B.latency_ms," ms"]}),c.jsx("td",{children:c.jsx("span",{className:`badge badge-${B.status}`,children:B.status})}),c.jsx("td",{style:{color:"var(--text-secondary)"},children:p(B.timestamp)})]},D))})]})})]}),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:E.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:E.error_rate})]})]})]})]})]})}const Ed=["admin","agent","read","sources_admin","users_admin","write"];function vy(o){const M=Math.floor((Date.now()-o.getTime())/1e3);return M<60?"just now":M<3600?`${Math.floor(M/60)}m ago`:M<86400?`${Math.floor(M/3600)}h ago`:`${Math.floor(M/86400)}d ago`}function gy(){const[o,M]=L.useState([]),[E,h]=L.useState([]),[N,_]=L.useState(!0),[R,K]=L.useState(!1),[A,p]=L.useState(null),[B,D]=L.useState(!1),[O,Q]=L.useState(null),[V,it]=L.useState(null);L.useEffect(()=>{gt(),Lt.sources().then(h).catch(()=>{})},[]);const gt=()=>{Lt.agents().then(M).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:N,onChange:ut=>_(ut.target.checked)})," Hide revoked"]}),c.jsx("button",{className:"btn btn-secondary",onClick:()=>D(!0),children:"+ API Key"}),c.jsx("button",{className:"btn btn-primary",onClick:()=>K(!0),children:"+ OAuth Client"})]})]}),(()=>{const ut=o.filter(w=>!N||w.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."}):ut.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:"Sources"}),c.jsx("th",{children:"Status"}),c.jsx("th",{children:"Requests"}),c.jsx("th",{children:"Last Used"})]})}),c.jsx("tbody",{children:ut.map(w=>c.jsxs("tr",{onClick:()=>it(w),style:{cursor:"pointer"},children:[c.jsx("td",{style:{fontWeight:500},children:w.name||w.client_name}),c.jsx("td",{children:c.jsx("span",{className:`badge ${w.auth_type==="oauth"?"badge-read":"badge-write"}`,style:{fontSize:11},children:w.auth_type==="oauth"?"OAuth":"API Key"})}),c.jsx("td",{children:(w.scope||"").split(" ").filter(Boolean).map(X=>c.jsx("span",{className:`badge badge-${X}`,style:{marginRight:4},children:X},X))}),c.jsx("td",{style:{color:"var(--text-secondary)",fontSize:12},children:w.auth_type==="oauth"?`${w.source_id||"none"} · ${(w.federated_read||[]).length} readable`:"Unscoped"}),c.jsx("td",{children:c.jsx("span",{className:`badge ${w.status==="active"?"badge-success":"badge-danger"}`,children:w.status})}),c.jsxs("td",{children:[c.jsx("span",{style:{fontWeight:500},children:w.requests_today||0}),c.jsxs("span",{style:{color:"var(--text-muted)",fontSize:12},children:[" / ",w.total_requests||0]})]}),c.jsx("td",{style:{color:"var(--text-secondary)"},children:w.last_used_at?vy(new Date(w.last_used_at)):"Never"})]},w.id))})]}),c.jsxs("div",{style:{color:"var(--text-muted)",fontSize:13,marginTop:12},children:[o.filter(w=>w.status==="active").length," active / ",o.length," total"]})]})})(),R&&c.jsx(by,{onClose:()=>K(!1),onRegistered:ut=>{K(!1),p(ut),gt()}}),A&&c.jsx(xy,{credentials:A,onClose:()=>p(null)}),V&&c.jsx(Ty,{agent:V,sources:E,onClose:()=>it(null),onRevoked:gt,onRescoped:({sourceId:ut,federatedRead:w})=>{it(X=>X&&{...X,source_id:ut,federated_read:w}),gt()}},V.id),B&&c.jsx(Sy,{onClose:()=>D(!1),onCreated:ut=>{D(!1),Q(ut),gt()}}),O&&c.jsx(py,{token:O,onClose:()=>Q(null)})]})}function Sy({onClose:o,onCreated:M}){const[E,h]=L.useState(""),[N,_]=L.useState(!1),[R,K]=L.useState(""),A=async p=>{if(p.preventDefault(),!E.trim()){K("Name required");return}_(!0);try{const B=await Lt.createApiKey(E.trim());M({name:B.name,token:B.token})}catch(B){K(B instanceof Error?B.message:"Failed")}finally{_(!1)}};return c.jsx("div",{className:"modal-overlay",onClick:o,children:c.jsxs("form",{className:"modal",onClick:p=>p.stopPropagation(),onSubmit:A,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:E,onChange:p=>h(p.target.value),autoFocus:!0})]}),R&&c.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:12},children:R}),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:N,children:N?"Creating...":"Create Key"})]})]})})}function py({token:o,onClose:M}){const E=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:()=>E(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:()=>E(`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:M,children:"Done"})})]})})}function by({onClose:o,onRegistered:M}){const[E,h]=L.useState(""),[N,_]=L.useState(()=>Object.fromEntries(Ed.map(V=>[V,V==="read"]))),[R,K]=L.useState("86400"),[A,p]=L.useState(!1),[B,D]=L.useState(""),O=[{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"}],Q=async V=>{if(V.preventDefault(),!E.trim()){D("Name required");return}p(!0),D("");try{const it=Object.entries(N).filter(([,w])=>w).map(([w])=>w).join(" "),gt=await fetch("/admin/api/register-client",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:E.trim(),scopes:it,tokenTtl:R==="0"?31536e4:Number(R)})});if(!gt.ok)throw new Error("Registration failed");const ut=await gt.json();M({clientId:ut.clientId,clientSecret:ut.clientSecret,name:E.trim()})}catch(it){D(it instanceof Error?it.message:"Registration failed")}finally{p(!1)}};return c.jsx("div",{className:"modal-overlay",onClick:o,children:c.jsxs("form",{className:"modal",onClick:V=>V.stopPropagation(),onSubmit:Q,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:E,onChange:V=>h(V.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(V=>c.jsxs("label",{className:"checkbox-label",children:[c.jsx("input",{type:"checkbox",checked:N[V],onChange:it=>_(gt=>({...gt,[V]:it.target.checked}))}),V]},V))})]}),c.jsxs("div",{style:{marginBottom:20},children:[c.jsx("label",{children:"Token Lifetime"}),c.jsx("select",{value:R,onChange:V=>K(V.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:O.map(V=>c.jsx("option",{value:V.value,children:V.label},V.value))})]}),B&&c.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:12},children:B}),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:A,children:A?"Registering...":"Register"})]})]})})}function xy({credentials:o,onClose:M}){const E=N=>navigator.clipboard.writeText(N),h=()=>{const N=new Blob([JSON.stringify(o,null,2)],{type:"application/json"}),_=URL.createObjectURL(N),R=document.createElement("a");R.href=_,R.download=`${o.name}-credentials.json`,R.click(),URL.revokeObjectURL(_)};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:()=>E(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:()=>E(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:M,children:"Done"})]})]})})}function jy({clientId:o,agent:M,sources:E,onRescoped:h}){const[N,_]=L.useState(M.source_id||"default"),[R,K]=L.useState(M.federated_read||[]),[A,p]=L.useState(!1),[B,D]=L.useState(""),[O,Q]=L.useState(!1),V=new Set(R),it=new Set(E.map(X=>X.id)),gt=R.filter(X=>!it.has(X)),ut=!it.has(N),w=async()=>{if(R.length===0){D("Select at least one readable source.");return}p(!0),D(""),Q(!1);try{const X=await Lt.rescopeClient(o,N,R);_(X.sourceId),K(X.federatedRead),Q(!0),h(X)}catch(X){D(X instanceof Error?X.message:"Failed to save source access")}finally{p(!1)}};return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"section-title",children:"Source Access"}),c.jsx("div",{style:{color:"var(--text-secondary)",fontSize:12,lineHeight:1.5,marginBottom:12},children:"The primary source is the write destination. Read access is an explicit allowlist and does not widen automatically."}),c.jsxs("div",{style:{marginBottom:14},children:[c.jsx("label",{htmlFor:"agent-write-source",children:"Primary / write source"}),c.jsxs("select",{id:"agent-write-source",value:N,onChange:X=>{_(X.target.value),Q(!1)},style:{width:"100%",background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:6,padding:"6px 10px",fontSize:14},children:[ut&&c.jsxs("option",{value:N,disabled:!0,children:[N," · unavailable"]}),E.map(X=>c.jsxs("option",{value:X.id,children:[X.name," (",X.id,")"]},X.id))]})]}),c.jsxs("fieldset",{style:{border:0,padding:0,margin:"0 0 14px"},children:[c.jsx("legend",{children:"Readable sources"}),c.jsxs("div",{className:"checkbox-group",style:{marginTop:6},children:[E.map(X=>c.jsxs("label",{className:"checkbox-label",children:[c.jsx("input",{type:"checkbox",checked:V.has(X.id),onChange:Xt=>{Q(!1),K(Vt=>Xt.target.checked?[...Vt,X.id]:Vt.filter(Qt=>Qt!==X.id))}}),X.name," (",X.id,")",X.federated?" · federated":" · private"]},X.id)),gt.map(X=>c.jsxs("label",{className:"checkbox-label",style:{color:"var(--warning)"},children:[c.jsx("input",{type:"checkbox",checked:!0,onChange:()=>{Q(!1),K(Xt=>Xt.filter(Vt=>Vt!==X))}}),X," · unavailable (clear to remove grant)"]},X))]})]}),(ut||gt.length>0)&&c.jsx("div",{style:{color:"var(--warning)",fontSize:13,marginBottom:10},children:"This client references unavailable or archived sources. Choose an active primary source and clear unavailable read grants before saving."}),B&&c.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:10},children:B}),O&&c.jsx("div",{style:{color:"var(--success)",fontSize:13,marginBottom:10},children:"Source access saved."}),c.jsx("button",{type:"button",className:"btn btn-primary",disabled:A||R.length===0||E.length===0||ut||gt.length>0,onClick:w,children:A?"Saving...":"Save Source Access"})]})}function Ty({agent:o,sources:M,onClose:E,onRevoked:h,onRescoped:N}){const[_,R]=L.useState("claude-code"),K=Q=>navigator.clipboard.writeText(Q),A=window.location.origin,p=o.id||o.client_id||"",B=o.auth_type==="oauth",D=o.name||o.client_name||"unknown",O={"claude-code":B?["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 ${A}/mcp \\`,` --header "Authorization: Bearer $(curl -s -X POST ${A}/token \\`," -d 'grant_type=client_credentials' \\",` -d 'client_id=${p}' \\`,' --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 ${A}/token \\`," -d 'grant_type=client_credentials' \\",` -d 'client_id=${p}' \\`," -d 'client_secret=PASTE_YOUR_CLIENT_SECRET_HERE' \\",` -d 'scope=${o.scope||"read write"}' | jq -r .access_token`,"",`claude mcp add --transport http gbrain ${A}/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 ${A}/mcp \\`,' --header "Authorization: Bearer PASTE_YOUR_API_KEY_HERE"',"",`Replace PASTE_YOUR_API_KEY_HERE with the API key shown when "${D}" 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:","",` ${A}/.well-known/oauth-authorization-server`,"","3. When prompted for credentials:",` Client ID: ${p}`," 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: ${A}/mcp`,"3. When prompted for auth:",` Token endpoint: ${A}/token`,` Client ID: ${p}`," Client Secret: (the secret from agent registration)",` Scope: ${o.scope||"read write"}`,"",`Discovery URL: ${A}/.well-known/oauth-authorization-server`].join(`
+`),cursor:B?["The user wants to connect GBrain MCP to Cursor.","","Cursor supports OAuth for remote MCP. Add to .cursor/mcp.json:","","{",' "mcpServers": {',' "gbrain": {',` "url": "${A}/mcp",`,' "transport": "sse"'," }"," }","}","","Cursor will auto-discover OAuth via:",`${A}/.well-known/oauth-authorization-server`,"",`When prompted: Client ID ${p}, use the secret from registration.`].join(`
+`):["The user wants to connect GBrain MCP to Cursor.","","Add to .cursor/mcp.json:","","{",' "mcpServers": {',' "gbrain": {',` "url": "${A}/mcp",`,' "transport": "sse",',' "headers": {',' "Authorization": "Bearer PASTE_YOUR_API_KEY_HERE"'," }"," }"," }","}","",`Replace PASTE_YOUR_API_KEY_HERE with the API key shown when "${D}" was created.`].join(`
+`),perplexity:["The user wants to connect GBrain MCP to Perplexity.","","1. Go to Settings > Connectors > Add MCP",`2. Server URL: ${A}/mcp`,`3. Client ID: ${p}`,"4. Client Secret: (the secret from agent registration)"].join(`
+`),json:JSON.stringify({server_url:A+"/mcp",token_url:A+"/token",discovery_url:A+"/.well-known/oauth-authorization-server",client_id:p,client_name:D,auth_type:o.auth_type,scope:o.scope},null,2)};return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"drawer-overlay",onClick:E}),c.jsxs("div",{className:"drawer",children:[c.jsx("button",{className:"drawer-close",onClick:E,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(Q=>c.jsx("span",{className:`badge badge-${Q}`,style:{marginRight:4},children:Q},Q))}),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)"})]}),B&&c.jsx(jy,{clientId:p,agent:o,sources:M,onRescoped:N}),c.jsx("div",{className:"section-title",children:"Config Export"}),c.jsxs("div",{className:"tabs",style:{flexWrap:"wrap"},children:[c.jsx("div",{className:`tab ${_==="claude-code"?"active":""}`,onClick:()=>R("claude-code"),children:"Claude Code"}),c.jsx("div",{className:`tab ${_==="chatgpt"?"active":""}`,onClick:()=>R("chatgpt"),children:"ChatGPT"}),c.jsx("div",{className:`tab ${_==="claude-cowork"?"active":""}`,onClick:()=>R("claude-cowork"),children:"Claude.ai"}),c.jsx("div",{className:`tab ${_==="cursor"?"active":""}`,onClick:()=>R("cursor"),children:"Cursor"}),c.jsx("div",{className:`tab ${_==="perplexity"?"active":""}`,onClick:()=>R("perplexity"),children:"Perplexity"}),c.jsx("div",{className:`tab ${_==="json"?"active":""}`,onClick:()=>R("json"),children:"JSON"})]}),(()=>{if(!B&&new Set(["chatgpt","claude-cowork","perplexity"]).has(_)){const V=_==="chatgpt"?"ChatGPT":_==="claude-cowork"?"Claude.ai":"Perplexity";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:[V," requires an OAuth client"]}),V," only supports OAuth 2.0 (client_credentials). API keys use raw bearer tokens, which ",V," 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:O[_]}),c.jsx("button",{className:"copy-btn",onClick:()=>K(O[_]),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 Lt.revokeClient(o.id||o.client_id||""):await Lt.revokeApiKey(o.name||""),h(),E()}catch(Q){alert("Revoke failed: "+(Q instanceof Error?Q.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 zy(){const[o,M]=L.useState({rows:[],total:0,page:1,pages:1}),[E,h]=L.useState(1),[N,_]=L.useState("all"),[R,K]=L.useState(null);L.useEffect(()=>{A(E)},[E,N]);const A=O=>{const Q=N!=="all"?`&agent=${encodeURIComponent(N)}`:"";Lt.requests(O,Q).then(M).catch(()=>{})},p=O=>{const Q=Date.now()-new Date(O).getTime();return Q<6e4?`${Math.floor(Q/1e3)}s ago`:Q<36e5?`${Math.floor(Q/6e4)} min ago`:Q<864e5?`${Math.floor(Q/36e5)}h ago`:new Date(O).toLocaleDateString()},B=O=>{if(!O)return null;const{query:Q,slug:V,partial:it,limit:gt,...ut}=O,w=[];return Q&&w.push(`"${Q}"`),V&&w.push(V),it&&w.push(`~${it}`),gt&&w.push(`limit=${gt}`),Object.keys(ut).length>0&&w.push(`+${Object.keys(ut).length} params`),w.join(" ")},D=new Map;return o.rows.forEach(O=>{O.token_name&&D.set(O.token_name,O.agent_name||O.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:N,onChange:O=>{_(O.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"}),[...D.entries()].map(([O,Q])=>c.jsx("option",{value:O,children:Q},O))]})]}),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(O=>c.jsxs(Dd.Fragment,{children:[c.jsxs("tr",{onClick:()=>K(R===O.id?null:O.id),style:{cursor:"pointer"},children:[c.jsx("td",{style:{color:"var(--text-secondary)",whiteSpace:"nowrap"},children:p(O.created_at)}),c.jsx("td",{children:c.jsx("a",{style:{color:"var(--text-link, #88aaff)",cursor:"pointer",textDecoration:"none",fontWeight:500},onClick:Q=>{Q.stopPropagation(),_(O.token_name),h(1)},children:O.agent_name||O.token_name})}),c.jsx("td",{className:"mono",children:O.operation}),c.jsx("td",{style:{color:"var(--text-secondary)",fontSize:12,maxWidth:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B(O.params)}),c.jsxs("td",{className:"mono",children:[O.latency_ms,"ms"]}),c.jsx("td",{children:c.jsx("span",{className:`badge badge-${O.status}`,children:O.status})})]}),R===O.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(O.created_at).toLocaleString()}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Agent"}),c.jsx("span",{className:"mono",children:O.token_name}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Operation"}),c.jsx("span",{className:"mono",children:O.operation}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Latency"}),c.jsxs("span",{children:[O.latency_ms,"ms"]}),O.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(O.params,null,2)})]}),O.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:O.error_message})]})]})})})]},O.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(O=>O-1),children:"Previous"}),c.jsx("button",{disabled:o.page>=o.pages,onClick:()=>h(O=>O+1),children:"Next"})]})]})]})]})}function Ay({markup:o}){return c.jsx("div",{style:{width:"100%",overflow:"auto"},dangerouslySetInnerHTML:{__html:o}})}function Zu({type:o,ariaLabel:M}){const[E,h]=L.useState(""),[N,_]=L.useState("");return L.useEffect(()=>{let R=!1;return Lt.calibrationChart(o).then(K=>{R||h(K)}).catch(K=>{R||_(K.message??"fetch failed")}),()=>{R=!0}},[o]),N?c.jsxs("div",{style:{padding:16,color:"var(--error)"},role:"alert",children:[M,": ",N]}):E?c.jsx(Ay,{markup:E}):c.jsxs("div",{style:{padding:16,color:"var(--text-muted)"},children:[M," loading..."]})}function _y(){const[o,M]=L.useState(null),[E,h]=L.useState(!0),[N,_]=L.useState("");if(L.useEffect(()=>{Lt.calibrationProfile().then(A=>{M(A),h(!1)}).catch(A=>{_(A.message??"fetch failed"),h(!1)})},[]),E)return c.jsx("div",{style:{padding:24,color:"var(--text-secondary)"},children:"Loading calibration profile…"});if(N)return c.jsxs("div",{style:{padding:24,color:"var(--error)"},role:"alert",children:["Could not load calibration profile: ",N]});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 R=new Date(o.generated_at),K=Math.floor((Date.now()-R.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 ",K===0?"today":`${K}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 Ey(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 Oy(){const[o,M]=L.useState(null),[E,h]=L.useState(null);if(L.useEffect(()=>{let _=!0,R=null;const K=async()=>{try{const A=await Lt.jobsWatch();_&&(M(A),h(null))}catch(A){_&&h(A instanceof Error?A.message:String(A))}_&&(R=setTimeout(K,1e3))};return K(),()=>{_=!1,R&&clearTimeout(R)}},[]),E)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:E})]});if(!o)return c.jsx("div",{style:{padding:24,color:"var(--text-muted, #777)"},children:"Loading jobs watch…"});const N=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 ",N]})]}),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(_=>c.jsxs("tr",{children:[c.jsx("td",{style:{padding:"4px 12px 4px 0"},children:_.name}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:_.total}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:_.completed}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:_.failed}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:_.dead})]},_.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:Ey(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(_=>c.jsxs("tr",{children:[c.jsxs("td",{style:{textAlign:"right",padding:"4px 12px 4px 0",color:"var(--text-muted, #777)"},children:[_.count,"×"]}),c.jsx("td",{style:{padding:"4px 12px 4px 0"},children:_.cluster})]},_.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(_=>c.jsxs("tr",{children:[c.jsx("td",{style:{padding:"4px 12px 4px 0"},children:_.owner_id}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:Od(_.total_spent_cents)}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:Od(_.remaining_cents)})]},_.owner_id))})]})]})]})}function Nd(){const o=window.location.hash.replace("#","")||"dashboard";return["login","dashboard","agents","log","calibration","jobs"].includes(o)?o:"dashboard"}function Ny(){const[o,M]=L.useState(Nd);L.useEffect(()=>{const N=()=>M(Nd());return window.addEventListener("hashchange",N),()=>window.removeEventListener("hashchange",N)},[]);const E=N=>{window.location.hash=N,M(N)};if(o==="login")return c.jsx(my,{onLogin:()=>E("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 Lt.signOutEverywhere()}catch{}E("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:()=>E("dashboard"),children:"Dashboard"}),c.jsx("a",{className:`nav-item ${o==="agents"?"active":""}`,onClick:()=>E("agents"),children:"Agents"}),c.jsx("a",{className:`nav-item ${o==="log"?"active":""}`,onClick:()=>E("log"),children:"Request Log"}),c.jsx("a",{className:`nav-item ${o==="calibration"?"active":""}`,onClick:()=>E("calibration"),children:"Calibration"}),c.jsx("a",{className:`nav-item ${o==="jobs"?"active":""}`,onClick:()=>E("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(zy,{}),o==="calibration"&&c.jsx(_y,{}),o==="jobs"&&c.jsx(Oy,{})]})]})}dy.createRoot(document.getElementById("root")).render(c.jsx(Dd.StrictMode,{children:c.jsx(Ny,{})}));
diff --git a/admin/dist/index.html b/admin/dist/index.html
index 5456a1cab0..b6fcad3e88 100644
--- a/admin/dist/index.html
+++ b/admin/dist/index.html
@@ -7,7 +7,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
- <script type="module" crossorigin src="/admin/assets/index-CoGEje3-.js"></script>
+ <script type="module" crossorigin src="/admin/assets/index-CviJXT-1.js"></script>
<link rel="stylesheet" crossorigin href="/admin/assets/index-GxkWX7v3.css">
</head>
<body>
diff --git a/admin/src/api.ts b/admin/src/api.ts
index 9cf24a9eee..3c15d5859d 100644
--- a/admin/src/api.ts
+++ b/admin/src/api.ts
@@ -39,11 +39,21 @@ export const api = {
stats: () => apiFetch('/admin/api/stats'),
health: () => apiFetch('/admin/api/health-indicators'),
agents: () => apiFetch('/admin/api/agents'),
+ sources: () => apiFetch('/admin/api/sources'),
requests: (page = 1, qs = '') => apiFetch(`/admin/api/requests?page=${page}${qs}`),
apiKeys: () => apiFetch('/admin/api/api-keys'),
- createApiKey: (name: string) => apiFetch('/admin/api/api-keys', { method: 'POST', body: JSON.stringify({ name }) }),
- revokeApiKey: (name: string) => apiFetch('/admin/api/api-keys/revoke', { method: 'POST', body: JSON.stringify({ name }) }),
+ createApiKey(keyName: string) {
+ return apiFetch('/admin/api/api-keys', { method: 'POST', body: JSON.stringify({ name: keyName }) });
+ },
+ revokeApiKey(keyName: string) {
+ return apiFetch('/admin/api/api-keys/revoke', { method: 'POST', body: JSON.stringify({ name: keyName }) });
+ },
updateClientTtl: (clientId: string, tokenTtl: number | null) => apiFetch('/admin/api/update-client-ttl', { method: 'POST', body: JSON.stringify({ clientId, tokenTtl }) }),
+ rescopeClient: (clientId: string, sourceId: string, federatedRead: string[]) =>
+ apiFetch('/admin/api/rescope-client', {
+ method: 'POST',
+ body: JSON.stringify({ clientId, sourceId, federatedRead }),
+ }),
revokeClient: (clientId: string) => apiFetch('/admin/api/revoke-client', { method: 'POST', body: JSON.stringify({ clientId }) }),
// v0.36.1.0 (T15 / E6) — calibration endpoints.
calibrationProfile: (holder?: string) =>
diff --git a/admin/src/pages/Agents.tsx b/admin/src/pages/Agents.tsx
index c0680006c2..ccde9adb1f 100644
--- a/admin/src/pages/Agents.tsx
+++ b/admin/src/pages/Agents.tsx
@@ -18,6 +18,8 @@ interface Agent {
client_name?: string; // compat
grant_types: string[];
scope: string;
+ source_id: string | null;
+ federated_read: string[];
created_at: string;
last_used_at: string | null;
total_requests: number;
@@ -26,6 +28,12 @@ interface Agent {
status: 'active' | 'revoked';
}
+interface Source {
+ id: string;
+ name: string;
+ federated: boolean;
+}
+
interface ApiKey {
id: string;
name: string;
@@ -36,6 +44,7 @@ interface ApiKey {
export function AgentsPage() {
const [agents, setAgents] = useState<Agent[]>([]);
+ const [sources, setSources] = useState<Source[]>([]);
const [hideRevoked, setHideRevoked] = useState(true);
const [showRegister, setShowRegister] = useState(false);
const [showCredentials, setShowCredentials] = useState<{ clientId: string; clientSecret: string; name: string } | null>(null);
@@ -43,7 +52,10 @@ export function AgentsPage() {
const [showApiKeyToken, setShowApiKeyToken] = useState<{ name: string; token: string } | null>(null);
const [selectedAgent, setSelectedAgent] = useState<Agent | null>(null);
- useEffect(() => { loadAgents(); }, []);
+ useEffect(() => {
+ loadAgents();
+ api.sources().then(setSources).catch(() => {});
+ }, []);
const loadAgents = () => { api.agents().then(setAgents).catch(() => {}); };
@@ -88,6 +100,7 @@ export function AgentsPage() {
<th>Name</th>
<th>Type</th>
<th>Scopes</th>
+ <th>Sources</th>
<th>Status</th>
<th>Requests</th>
<th>Last Used</th>
@@ -108,6 +121,11 @@ export function AgentsPage() {
<span key={s} className={`badge badge-${s}`} style={{ marginRight: 4 }}>{s}</span>
))}
</td>
+ <td style={{ color: 'var(--text-secondary)', fontSize: 12 }}>
+ {a.auth_type === 'oauth'
+ ? `${a.source_id || 'none'} · ${(a.federated_read || []).length} readable`
+ : 'Unscoped'}
+ </td>
<td>
<span className={`badge ${a.status === 'active' ? 'badge-success' : 'badge-danger'}`}>{a.status}</span>
</td>
@@ -144,7 +162,21 @@ export function AgentsPage() {
)}
{selectedAgent && (
- <AgentDrawer agent={selectedAgent} onClose={() => setSelectedAgent(null)} onRevoked={loadAgents} />
+ <AgentDrawer
+ key={selectedAgent.id}
+ agent={selectedAgent}
+ sources={sources}
+ onClose={() => setSelectedAgent(null)}
+ onRevoked={loadAgents}
+ onRescoped={({ sourceId, federatedRead }) => {
+ setSelectedAgent(current => current ? {
+ ...current,
+ source_id: sourceId,
+ federated_read: federatedRead,
+ } : current);
+ loadAgents();
+ }}
+ />
)}
{showApiKeyCreate && (
@@ -381,7 +413,127 @@ function CredentialsModal({ credentials, onClose }: {
);
}
-function AgentDrawer({ agent, onClose, onRevoked }: { agent: Agent; onClose: () => void; onRevoked: () => void }) {
+function SourceAccessEditor({ clientId, agent, sources, onRescoped }: {
+ clientId: string;
+ agent: Agent;
+ sources: Source[];
+ onRescoped: (scope: { sourceId: string; federatedRead: string[] }) => void;
+}) {
+ const [writeSource, setWriteSource] = useState(agent.source_id || 'default');
+ const [readSources, setReadSources] = useState<string[]>(agent.federated_read || []);
+ const [saving, setSaving] = useState(false);
+ const [error, setError] = useState('');
+ const [saved, setSaved] = useState(false);
+ const readableSet = new Set(readSources);
+ const activeSourceIds = new Set(sources.map(source => source.id));
+ const unavailableReadSources = readSources.filter(sourceId => !activeSourceIds.has(sourceId));
+ const primaryUnavailable = !activeSourceIds.has(writeSource);
+
+ const save = async () => {
+ if (readSources.length === 0) {
+ setError('Select at least one readable source.');
+ return;
+ }
+ setSaving(true);
+ setError('');
+ setSaved(false);
+ try {
+ const result = await api.rescopeClient(clientId, writeSource, readSources) as {
+ sourceId: string;
+ federatedRead: string[];
+ };
+ setWriteSource(result.sourceId);
+ setReadSources(result.federatedRead);
+ setSaved(true);
+ onRescoped(result);
+ } catch (e) {
+ setError(e instanceof Error ? e.message : 'Failed to save source access');
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ return (
+ <>
+ <div className="section-title">Source Access</div>
+ <div style={{ color: 'var(--text-secondary)', fontSize: 12, lineHeight: 1.5, marginBottom: 12 }}>
+ The primary source is the write destination. Read access is an explicit allowlist and does not widen automatically.
+ </div>
+ <div style={{ marginBottom: 14 }}>
+ <label htmlFor="agent-write-source">Primary / write source</label>
+ <select
+ id="agent-write-source"
+ value={writeSource}
+ onChange={e => { setWriteSource(e.target.value); setSaved(false); }}
+ style={{ width: '100%', background: 'var(--bg-secondary)', color: 'var(--text-primary)', border: '1px solid var(--border)', borderRadius: 6, padding: '6px 10px', fontSize: 14 }}
+ >
+ {primaryUnavailable && (
+ <option value={writeSource} disabled>{writeSource} · unavailable</option>
+ )}
+ {sources.map(source => (
+ <option key={source.id} value={source.id}>{source.name} ({source.id})</option>
+ ))}
+ </select>
+ </div>
+ <fieldset style={{ border: 0, padding: 0, margin: '0 0 14px' }}>
+ <legend>Readable sources</legend>
+ <div className="checkbox-group" style={{ marginTop: 6 }}>
+ {sources.map(source => (
+ <label key={source.id} className="checkbox-label">
+ <input
+ type="checkbox"
+ checked={readableSet.has(source.id)}
+ onChange={e => {
+ setSaved(false);
+ setReadSources(current => e.target.checked
+ ? [...current, source.id]
+ : current.filter(id => id !== source.id));
+ }}
+ />
+ {source.name} ({source.id}){source.federated ? ' · federated' : ' · private'}
+ </label>
+ ))}
+ {unavailableReadSources.map(sourceId => (
+ <label key={sourceId} className="checkbox-label" style={{ color: 'var(--warning)' }}>
+ <input
+ type="checkbox"
+ checked
+ onChange={() => {
+ setSaved(false);
+ setReadSources(current => current.filter(id => id !== sourceId));
+ }}
+ />
+ {sourceId} · unavailable (clear to remove grant)
+ </label>
+ ))}
+ </div>
+ </fieldset>
+ {(primaryUnavailable || unavailableReadSources.length > 0) && (
+ <div style={{ color: 'var(--warning)', fontSize: 13, marginBottom: 10 }}>
+ This client references unavailable or archived sources. Choose an active primary source and clear unavailable read grants before saving.
+ </div>
+ )}
+ {error && <div style={{ color: 'var(--error)', fontSize: 13, marginBottom: 10 }}>{error}</div>}
+ {saved && <div style={{ color: 'var(--success)', fontSize: 13, marginBottom: 10 }}>Source access saved.</div>}
+ <button
+ type="button"
+ className="btn btn-primary"
+ disabled={saving || readSources.length === 0 || sources.length === 0 || primaryUnavailable || unavailableReadSources.length > 0}
+ onClick={save}
+ >
+ {saving ? 'Saving...' : 'Save Source Access'}
+ </button>
+ </>
+ );
+}
+
+function AgentDrawer({ agent, sources, onClose, onRevoked, onRescoped }: {
+ agent: Agent;
+ sources: Source[];
+ onClose: () => void;
+ onRevoked: () => void;
+ onRescoped: (scope: { sourceId: string; federatedRead: string[] }) => void;
+}) {
const [tab, setTab] = useState<'claude-code' | 'chatgpt' | 'claude-cowork' | 'perplexity' | 'cursor' | 'json'>('claude-code');
const copy = (text: string) => navigator.clipboard.writeText(text);
const serverUrl = window.location.origin;
@@ -553,6 +705,15 @@ function AgentDrawer({ agent, onClose, onRevoked }: { agent: Agent; onClose: ()
<span>{agent.token_ttl ? (agent.token_ttl >= 31536000 ? 'No expiry' : agent.token_ttl >= 86400 ? `${Math.floor(agent.token_ttl / 86400)}d` : agent.token_ttl >= 3600 ? `${Math.floor(agent.token_ttl / 3600)}h` : `${agent.token_ttl}s`) : '1h (default)'}</span>
</div>
+ {isOAuth && (
+ <SourceAccessEditor
+ clientId={cid}
+ agent={agent}
+ sources={sources}
+ onRescoped={onRescoped}
+ />
+ )}
+
{/*
Config Export visible for both auth_type=oauth AND auth_type=api_key.
Claude Code + Cursor + JSON tabs render real snippets regardless
@@ -579,7 +740,11 @@ function AgentDrawer({ agent, onClose, onRevoked }: { agent: Agent; onClose: ()
{(() => {
const oauthOnlyTabs = new Set(['chatgpt', 'claude-cowork', 'perplexity']);
if (!isOAuth && oauthOnlyTabs.has(tab)) {
- const clientName = { chatgpt: 'ChatGPT', 'claude-cowork': 'Claude.ai', perplexity: 'Perplexity' }[tab] || tab;
+ const clientName = tab === 'chatgpt'
+ ? 'ChatGPT'
+ : tab === 'claude-cowork'
+ ? 'Claude.ai'
+ : 'Perplexity';
return (
<div style={{
background: 'rgba(255, 200, 100, 0.08)',
diff --git a/src/admin-embedded.ts b/src/admin-embedded.ts
index 00ea5865f9..8385535e21 100644
--- a/src/admin-embedded.ts
+++ b/src/admin-embedded.ts
@@ -1,13 +1,13 @@
// AUTO-GENERATED — do not edit by hand.
// Run `bun run scripts/build-admin-embedded.ts` to regenerate.
-// Source: admin/dist/ at 2026-05-27.
+// Source: admin/dist/ at 2026-07-24.
//
// Bun resolves the file: imports to a path that works at runtime even
// inside a compiled binary (`bun build --compile`). The manifest maps
// the request path the express handler sees to (resolved-path, mime).
// @ts-ignore — type: 'file' is Bun ESM, not in lib.d.ts
-import A_0_assets_index_CoGEje3__js from '../admin/dist/assets/index-CoGEje3-.js' with { type: 'file' };
+import A_0_assets_index_CviJXT_1_js from '../admin/dist/assets/index-CviJXT-1.js' with { type: 'file' };
// @ts-ignore — type: 'file' is Bun ESM, not in lib.d.ts
import A_1_assets_index_GxkWX7v3_css from '../admin/dist/assets/index-GxkWX7v3.css' with { type: 'file' };
// @ts-ignore — type: 'file' is Bun ESM, not in lib.d.ts
@@ -19,7 +19,7 @@ export interface AdminAsset {
}
export const ADMIN_ASSETS: Record<string, AdminAsset> = {
- "/admin/assets/index-CoGEje3-.js": { path: A_0_assets_index_CoGEje3__js as unknown as string, mime: "application/javascript; charset=utf-8" },
+ "/admin/assets/index-CviJXT-1.js": { path: A_0_assets_index_CviJXT_1_js as unknown as string, mime: "application/javascript; charset=utf-8" },
"/admin/assets/index-GxkWX7v3.css": { path: A_1_assets_index_GxkWX7v3_css as unknown as string, mime: "text/css; charset=utf-8" },
"/admin/index.html": { path: A_2_index_html as unknown as string, mime: "text/html; charset=utf-8" },
};
diff --git a/src/commands/serve-http.ts b/src/commands/serve-http.ts
index 5e30794f58..19f2d74a7d 100644
--- a/src/commands/serve-http.ts
+++ b/src/commands/serve-http.ts
@@ -1156,7 +1156,8 @@ export async function runServeHttp(engine: BrainEngine, options: ServeHttpOption
// Unified view: OAuth clients + legacy API keys
const oauthClients = await sql`
SELECT c.client_id as id, c.client_name as name, 'oauth' as auth_type,
- c.grant_types, c.scope, c.created_at, c.token_ttl,
+ c.grant_types, c.scope, c.source_id, c.federated_read,
+ c.created_at, c.token_ttl,
CASE WHEN c.deleted_at IS NOT NULL THEN 'revoked' ELSE 'active' END as status,
(SELECT max(created_at) FROM mcp_request_log WHERE token_name = c.client_id) as last_used_at,
(SELECT count(*)::int FROM mcp_request_log WHERE token_name = c.client_id) as total_requests,
@@ -1172,12 +1173,25 @@ export async function runServeHttp(engine: BrainEngine, options: ServeHttpOption
(SELECT count(*)::int FROM mcp_request_log WHERE token_name = a.name AND created_at > now() - interval '24 hours') as requests_today
FROM access_tokens a ORDER BY a.created_at DESC
`;
- res.json([...oauthClients, ...legacyKeys]);
+ res.json([
+ ...oauthClients,
+ ...legacyKeys.map((key) => ({ ...key, source_id: null, federated_read: [] })),
+ ]);
} catch (e) {
res.status(503).json({ error: 'service_unavailable' });
}
});
+ app.get('/admin/api/sources', requireAdmin, async (_req: Request, res: Response) => {
+ try {
+ const { listSources } = await import('../core/sources-ops.ts');
+ const sources = await listSources(engine);
+ res.json(sources.map(({ id, name, federated }) => ({ id, name, federated })));
+ } catch {
+ res.status(503).json({ error: 'service_unavailable' });
+ }
+ });
+
// v0.38 Slice 4 — per-OAuth-client agent spend viewer. Pre-computes today's
// spend (committed + pending reservations) per client so the Agents tab
// can render a "$X / $Y today" cell. Read-side endpoint only — no mutation.
diff --git a/test/e2e/serve-http-oauth.test.ts b/test/e2e/serve-http-oauth.test.ts
index cca6d9f3e2..c3e8444efa 100644
--- a/test/e2e/serve-http-oauth.test.ts
+++ b/test/e2e/serve-http-oauth.test.ts
@@ -25,6 +25,7 @@ if (skip) {
const PORT = 19131; // Avoid collision with production 3131
const BASE = `http://localhost:${PORT}`;
+const ADMIN_BOOTSTRAP_TOKEN = 'e2e-admin-bootstrap-token-000000000000';
describeE2E('serve-http OAuth 2.1 E2E (v0.26.1 + v0.26.2 + v0.26.3)', () => {
let serverProcess: ReturnType<typeof import('child_process').spawn> | null = null;
@@ -72,7 +73,7 @@ describeE2E('serve-http OAuth 2.1 E2E (v0.26.1 + v0.26.2 + v0.26.3)', () => {
'--enable-dcr',
], {
cwd: process.cwd(),
- env: process.env,
+ env: { ...process.env, GBRAIN_ADMIN_BOOTSTRAP_TOKEN: ADMIN_BOOTSTRAP_TOKEN },
stdio: ['ignore', 'pipe', 'pipe'],
});
@@ -141,6 +142,18 @@ describeE2E('serve-http OAuth 2.1 E2E (v0.26.1 + v0.26.2 + v0.26.3)', () => {
});
}
+ async function adminCookie(): Promise<string> {
+ const login = await fetch(`${BASE}/admin/login`, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ token: ADMIN_BOOTSTRAP_TOKEN }),
+ });
+ expect(login.ok).toBe(true);
+ const match = (login.headers.get('set-cookie') || '').match(/gbrain_admin=([^;]+)/);
+ expect(match).toBeTruthy();
+ return `gbrain_admin=${match![1]}`;
+ }
+
// =========================================================================
// Fix 1: client_credentials tokens validate at /mcp
// =========================================================================
@@ -261,6 +274,46 @@ describeE2E('serve-http OAuth 2.1 E2E (v0.26.1 + v0.26.2 + v0.26.3)', () => {
expect(html).toContain('GBrain Admin');
});
+ test('admin source access APIs enumerate sources and rescope an OAuth client', async () => {
+ const cookie = await adminCookie();
+ const sourcesRes = await fetch(`${BASE}/admin/api/sources`, {
+ headers: { Cookie: cookie },
+ });
+ expect(sourcesRes.ok).toBe(true);
+ const sources = await sourcesRes.json() as Array<{ id: string; name: string; federated: boolean }>;
+ expect(sources.some(source => source.id === 'default')).toBe(true);
+
+ const rescopeRes = await fetch(`${BASE}/admin/api/rescope-client`, {
+ method: 'POST',
+ headers: { Cookie: cookie, 'Content-Type': 'application/json' },
+ body: JSON.stringify({
+ clientId,
+ sourceId: 'default',
+ federatedRead: ['default'],
+ }),
+ });
+ expect(rescopeRes.ok).toBe(true);
+ expect(await rescopeRes.json()).toEqual({
+ clientId,
+ clientName: 'e2e-oauth-test',
+ sourceId: 'default',
+ federatedRead: ['default'],
+ });
+
+ const agentsRes = await fetch(`${BASE}/admin/api/agents`, {
+ headers: { Cookie: cookie },
+ });
+ expect(agentsRes.ok).toBe(true);
+ const agents = await agentsRes.json() as Array<{
+ id: string;
+ source_id: string | null;
+ federated_read: string[];
+ }>;
+ const agent = agents.find(row => row.id === clientId);
+ expect(agent?.source_id).toBe('default');
+ expect(agent?.federated_read).toEqual(['default']);
+ }, 15_000);
+
// v0.36.1.x #1076: GET /mcp must return 405 (Method Not Allowed) per the
// MCP Streamable HTTP spec, not 404. claude.ai + other probing clients
// distinguish "endpoint exists, no SSE channel" from "endpoint missing"
@@ -347,34 +400,10 @@ describeE2E('serve-http OAuth 2.1 E2E (v0.26.1 + v0.26.2 + v0.26.3)', () => {
});
test('v0.28.10: /admin/api/full-stats with valid admin cookie returns getStats() body', async () => {
- // Same magic-link cookie dance the existing single-use test uses.
- // Skip gracefully if the bootstrap token isn't extractable — the 401
- // case above pins the auth gate; this test pins the happy path.
- const stderrBuf = (serverProcess as any)?._stderrBuffer || '';
- const tokenMatch = String(stderrBuf).match(/Admin Token[\s\S]*?([a-f0-9]{32,64})/);
- if (!tokenMatch) {
- console.warn('[e2e] skipped /admin/api/full-stats happy path: could not extract bootstrap token');
- return;
- }
- const bootstrapToken = tokenMatch[1];
-
- const issueRes = await fetch(`${BASE}/admin/api/issue-magic-link`, {
- method: 'POST',
- headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${bootstrapToken}` },
- body: '{}',
- });
- expect(issueRes.ok).toBe(true);
- const { url } = await issueRes.json() as any;
-
- const click = await fetch(url, { redirect: 'manual' });
- expect(click.status).toBe(302);
- const setCookie = click.headers.get('set-cookie') || '';
- const cookieMatch = setCookie.match(/gbrain_admin=([^;]+)/);
- expect(cookieMatch).toBeTruthy();
- const cookieValue = cookieMatch![1];
+ const cookie = await adminCookie();
const statsRes = await fetch(`${BASE}/admin/api/full-stats`, {
- headers: { Cookie: `gbrain_admin=${cookieValue}` },
+ headers: { Cookie: cookie },
});
expect(statsRes.ok).toBe(true);
const stats = await statsRes.json() as any;
@@ -920,32 +949,10 @@ describeE2E('serve-http OAuth 2.1 E2E (v0.26.1 + v0.26.2 + v0.26.3)', () => {
});
test('v0.26.3: magic-link nonce is single-use (second click fails)', async () => {
- // Get a real bootstrap token from the spawned server's environment.
- // The server prints it to stderr at startup but commit 16 removed our
- // regex extractor. Use the issue-magic-link endpoint directly with the
- // bootstrap token from process env — except that env var doesn't exist
- // in the test fixture. The portable approach: extract from the server
- // process's stderr.
-
- // Pull the bootstrap token from server stderr by re-reading the
- // spawn handle. The spawn already started so stderr has flushed.
- // Skip if we can't extract — the test is best-effort coverage of the
- // single-use semantic; the styled-401 test above covers the negative path.
- const stderrBuf = (serverProcess as any)?._stderrBuffer || '';
- const tokenMatch = String(stderrBuf).match(/Admin Token[\s\S]*?([a-f0-9]{32,64})/);
- if (!tokenMatch) {
- // No way to get the bootstrap token in this test fixture — skip gracefully.
- // The unit-level coverage for nonce single-use is in oauth.test.ts and
- // the styled-401 test above pins the consumed-nonce path.
- console.warn('[e2e] skipped magic-link single-use: could not extract bootstrap token');
- return;
- }
- const bootstrapToken = tokenMatch[1];
-
// Mint a one-time nonce.
const issueRes = await fetch(`${BASE}/admin/api/issue-magic-link`, {
method: 'POST',
- headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${bootstrapToken}` },
+ headers: { 'Content-Type': 'application/json', Authorization: ['Bearer', ADMIN_BOOTSTRAP_TOKEN].join(' ') },
body: '{}',
});
expect(issueRes.ok).toBe(true);