@futurx/openclaw-operator-ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,295 @@
1
+ var Gy=Object.defineProperty;var Xy=(i,f,o)=>f in i?Gy(i,f,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[f]=o;var Dt=(i,f,o)=>Xy(i,typeof f!="symbol"?f+"":f,o);(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const g of m.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function o(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(h){if(h.ep)return;h.ep=!0;const m=o(h);fetch(h.href,m)}})();var Vc={exports:{}},Xn={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var xh;function Qy(){if(xh)return Xn;xh=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function o(r,h,m){var g=null;if(m!==void 0&&(g=""+m),h.key!==void 0&&(g=""+h.key),"key"in h){m={};for(var x in h)x!=="key"&&(m[x]=h[x])}else m=h;return h=m.ref,{$$typeof:i,type:r,key:g,ref:h!==void 0?h:null,props:m}}return Xn.Fragment=f,Xn.jsx=o,Xn.jsxs=o,Xn}var bh;function Zy(){return bh||(bh=1,Vc.exports=Qy()),Vc.exports}var s=Zy(),Kc={exports:{}},te={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Sh;function Vy(){if(Sh)return te;Sh=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=T&&E[T]||E["@@iterator"],typeof E=="function"?E:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,Y={};function H(E,L,Z){this.props=E,this.context=L,this.refs=Y,this.updater=Z||z}H.prototype.isReactComponent={},H.prototype.setState=function(E,L){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,L,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function V(){}V.prototype=H.prototype;function G(E,L,Z){this.props=E,this.context=L,this.refs=Y,this.updater=Z||z}var k=G.prototype=new V;k.constructor=G,B(k,H.prototype),k.isPureReactComponent=!0;var ee=Array.isArray;function ie(){}var F={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function se(E,L,Z){var J=Z.ref;return{$$typeof:i,type:E,key:L,ref:J!==void 0?J:null,props:Z}}function Te(E,L){return se(E.type,L,E.props)}function ze(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function Qe(E){var L={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Z){return L[Z]})}var ke=/\/+/g;function at(E,L){return typeof E=="object"&&E!==null&&E.key!=null?Qe(""+E.key):L.toString(36)}function Re(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ie,ie):(E.status="pending",E.then(function(L){E.status==="pending"&&(E.status="fulfilled",E.value=L)},function(L){E.status==="pending"&&(E.status="rejected",E.reason=L)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function w(E,L,Z,J,ae){var ce=typeof E;(ce==="undefined"||ce==="boolean")&&(E=null);var ve=!1;if(E===null)ve=!0;else switch(ce){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(E.$$typeof){case i:case f:ve=!0;break;case j:return ve=E._init,w(ve(E._payload),L,Z,J,ae)}}if(ve)return ae=ae(E),ve=J===""?"."+at(E,0):J,ee(ae)?(Z="",ve!=null&&(Z=ve.replace(ke,"$&/")+"/"),w(ae,L,Z,"",function(Ja){return Ja})):ae!=null&&(ze(ae)&&(ae=Te(ae,Z+(ae.key==null||E&&E.key===ae.key?"":(""+ae.key).replace(ke,"$&/")+"/")+ve)),L.push(ae)),1;ve=0;var et=J===""?".":J+":";if(ee(E))for(var Ue=0;Ue<E.length;Ue++)J=E[Ue],ce=et+at(J,Ue),ve+=w(J,L,Z,ce,ae);else if(Ue=R(E),typeof Ue=="function")for(E=Ue.call(E),Ue=0;!(J=E.next()).done;)J=J.value,ce=et+at(J,Ue++),ve+=w(J,L,Z,ce,ae);else if(ce==="object"){if(typeof E.then=="function")return w(Re(E),L,Z,J,ae);throw L=String(E),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ve}function Q(E,L,Z){if(E==null)return E;var J=[],ae=0;return w(E,J,"","",function(ce){return L.call(Z,ce,ae++)}),J}function P(E){if(E._status===-1){var L=E._result;L=L(),L.then(function(Z){(E._status===0||E._status===-1)&&(E._status=1,E._result=Z)},function(Z){(E._status===0||E._status===-1)&&(E._status=2,E._result=Z)}),E._status===-1&&(E._status=0,E._result=L)}if(E._status===1)return E._result.default;throw E._result}var be=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Ee={map:Q,forEach:function(E,L,Z){Q(E,function(){L.apply(this,arguments)},Z)},count:function(E){var L=0;return Q(E,function(){L++}),L},toArray:function(E){return Q(E,function(L){return L})||[]},only:function(E){if(!ze(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return te.Activity=b,te.Children=Ee,te.Component=H,te.Fragment=o,te.Profiler=h,te.PureComponent=G,te.StrictMode=r,te.Suspense=v,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,te.__COMPILER_RUNTIME={__proto__:null,c:function(E){return F.H.useMemoCache(E)}},te.cache=function(E){return function(){return E.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(E,L,Z){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var J=B({},E.props),ae=E.key;if(L!=null)for(ce in L.key!==void 0&&(ae=""+L.key),L)!X.call(L,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&L.ref===void 0||(J[ce]=L[ce]);var ce=arguments.length-2;if(ce===1)J.children=Z;else if(1<ce){for(var ve=Array(ce),et=0;et<ce;et++)ve[et]=arguments[et+2];J.children=ve}return se(E.type,ae,J)},te.createContext=function(E){return E={$$typeof:g,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:m,_context:E},E},te.createElement=function(E,L,Z){var J,ae={},ce=null;if(L!=null)for(J in L.key!==void 0&&(ce=""+L.key),L)X.call(L,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ae[J]=L[J]);var ve=arguments.length-2;if(ve===1)ae.children=Z;else if(1<ve){for(var et=Array(ve),Ue=0;Ue<ve;Ue++)et[Ue]=arguments[Ue+2];ae.children=et}if(E&&E.defaultProps)for(J in ve=E.defaultProps,ve)ae[J]===void 0&&(ae[J]=ve[J]);return se(E,ce,ae)},te.createRef=function(){return{current:null}},te.forwardRef=function(E){return{$$typeof:x,render:E}},te.isValidElement=ze,te.lazy=function(E){return{$$typeof:j,_payload:{_status:-1,_result:E},_init:P}},te.memo=function(E,L){return{$$typeof:y,type:E,compare:L===void 0?null:L}},te.startTransition=function(E){var L=F.T,Z={};F.T=Z;try{var J=E(),ae=F.S;ae!==null&&ae(Z,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ie,be)}catch(ce){be(ce)}finally{L!==null&&Z.types!==null&&(L.types=Z.types),F.T=L}},te.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},te.use=function(E){return F.H.use(E)},te.useActionState=function(E,L,Z){return F.H.useActionState(E,L,Z)},te.useCallback=function(E,L){return F.H.useCallback(E,L)},te.useContext=function(E){return F.H.useContext(E)},te.useDebugValue=function(){},te.useDeferredValue=function(E,L){return F.H.useDeferredValue(E,L)},te.useEffect=function(E,L){return F.H.useEffect(E,L)},te.useEffectEvent=function(E){return F.H.useEffectEvent(E)},te.useId=function(){return F.H.useId()},te.useImperativeHandle=function(E,L,Z){return F.H.useImperativeHandle(E,L,Z)},te.useInsertionEffect=function(E,L){return F.H.useInsertionEffect(E,L)},te.useLayoutEffect=function(E,L){return F.H.useLayoutEffect(E,L)},te.useMemo=function(E,L){return F.H.useMemo(E,L)},te.useOptimistic=function(E,L){return F.H.useOptimistic(E,L)},te.useReducer=function(E,L,Z){return F.H.useReducer(E,L,Z)},te.useRef=function(E){return F.H.useRef(E)},te.useState=function(E){return F.H.useState(E)},te.useSyncExternalStore=function(E,L,Z){return F.H.useSyncExternalStore(E,L,Z)},te.useTransition=function(){return F.H.useTransition()},te.version="19.2.4",te}var jh;function ur(){return jh||(jh=1,Kc.exports=Vy()),Kc.exports}var S=ur(),kc={exports:{}},Qn={},Jc={exports:{}},$c={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Nh;function Ky(){return Nh||(Nh=1,(function(i){function f(w,Q){var P=w.length;w.push(Q);e:for(;0<P;){var be=P-1>>>1,Ee=w[be];if(0<h(Ee,Q))w[be]=Q,w[P]=Ee,P=be;else break e}}function o(w){return w.length===0?null:w[0]}function r(w){if(w.length===0)return null;var Q=w[0],P=w.pop();if(P!==Q){w[0]=P;e:for(var be=0,Ee=w.length,E=Ee>>>1;be<E;){var L=2*(be+1)-1,Z=w[L],J=L+1,ae=w[J];if(0>h(Z,P))J<Ee&&0>h(ae,Z)?(w[be]=ae,w[J]=P,be=J):(w[be]=Z,w[L]=P,be=L);else if(J<Ee&&0>h(ae,P))w[be]=ae,w[J]=P,be=J;else break e}}return Q}function h(w,Q){var P=w.sortIndex-Q.sortIndex;return P!==0?P:w.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var g=Date,x=g.now();i.unstable_now=function(){return g.now()-x}}var v=[],y=[],j=1,b=null,T=3,R=!1,z=!1,B=!1,Y=!1,H=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function k(w){for(var Q=o(y);Q!==null;){if(Q.callback===null)r(y);else if(Q.startTime<=w)r(y),Q.sortIndex=Q.expirationTime,f(v,Q);else break;Q=o(y)}}function ee(w){if(B=!1,k(w),!z)if(o(v)!==null)z=!0,ie||(ie=!0,Qe());else{var Q=o(y);Q!==null&&Re(ee,Q.startTime-w)}}var ie=!1,F=-1,X=5,se=-1;function Te(){return Y?!0:!(i.unstable_now()-se<X)}function ze(){if(Y=!1,ie){var w=i.unstable_now();se=w;var Q=!0;try{e:{z=!1,B&&(B=!1,V(F),F=-1),R=!0;var P=T;try{t:{for(k(w),b=o(v);b!==null&&!(b.expirationTime>w&&Te());){var be=b.callback;if(typeof be=="function"){b.callback=null,T=b.priorityLevel;var Ee=be(b.expirationTime<=w);if(w=i.unstable_now(),typeof Ee=="function"){b.callback=Ee,k(w),Q=!0;break t}b===o(v)&&r(v),k(w)}else r(v);b=o(v)}if(b!==null)Q=!0;else{var E=o(y);E!==null&&Re(ee,E.startTime-w),Q=!1}}break e}finally{b=null,T=P,R=!1}Q=void 0}}finally{Q?Qe():ie=!1}}}var Qe;if(typeof G=="function")Qe=function(){G(ze)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,at=ke.port2;ke.port1.onmessage=ze,Qe=function(){at.postMessage(null)}}else Qe=function(){H(ze,0)};function Re(w,Q){F=H(function(){w(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(w){w.callback=null},i.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<w?Math.floor(1e3/w):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(w){switch(T){case 1:case 2:case 3:var Q=3;break;default:Q=T}var P=T;T=Q;try{return w()}finally{T=P}},i.unstable_requestPaint=function(){Y=!0},i.unstable_runWithPriority=function(w,Q){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var P=T;T=w;try{return Q()}finally{T=P}},i.unstable_scheduleCallback=function(w,Q,P){var be=i.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?be+P:be):P=be,w){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=P+Ee,w={id:j++,callback:Q,priorityLevel:w,startTime:P,expirationTime:Ee,sortIndex:-1},P>be?(w.sortIndex=P,f(y,w),o(v)===null&&w===o(y)&&(B?(V(F),F=-1):B=!0,Re(ee,P-be))):(w.sortIndex=Ee,f(v,w),z||R||(z=!0,ie||(ie=!0,Qe()))),w},i.unstable_shouldYield=Te,i.unstable_wrapCallback=function(w){var Q=T;return function(){var P=T;T=Q;try{return w.apply(this,arguments)}finally{T=P}}}})($c)),$c}var Eh;function ky(){return Eh||(Eh=1,Jc.exports=Ky()),Jc.exports}var Wc={exports:{}},Pe={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Ah;function Jy(){if(Ah)return Pe;Ah=1;var i=ur();function f(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)y+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(f(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},h=Symbol.for("react.portal");function m(v,y,j){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:b==null?null:""+b,children:v,containerInfo:y,implementation:j}}var g=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Pe.createPortal=function(v,y){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(f(299));return m(v,y,null,j)},Pe.flushSync=function(v){var y=g.T,j=r.p;try{if(g.T=null,r.p=2,v)return v()}finally{g.T=y,r.p=j,r.d.f()}},Pe.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(v,y))},Pe.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},Pe.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var j=y.as,b=x(j,y.crossOrigin),T=typeof y.integrity=="string"?y.integrity:void 0,R=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;j==="style"?r.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:R}):j==="script"&&r.d.X(v,{crossOrigin:b,integrity:T,fetchPriority:R,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Pe.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var j=x(y.as,y.crossOrigin);r.d.M(v,{crossOrigin:j,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(v)},Pe.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var j=y.as,b=x(j,y.crossOrigin);r.d.L(v,j,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Pe.preloadModule=function(v,y){if(typeof v=="string")if(y){var j=x(y.as,y.crossOrigin);r.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:j,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(v)},Pe.requestFormReset=function(v){r.d.r(v)},Pe.unstable_batchedUpdates=function(v,y){return v(y)},Pe.useFormState=function(v,y,j){return g.H.useFormState(v,y,j)},Pe.useFormStatus=function(){return g.H.useHostTransitionStatus()},Pe.version="19.2.4",Pe}var Th;function $y(){if(Th)return Wc.exports;Th=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Wc.exports=Jy(),Wc.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var zh;function Wy(){if(zh)return Qn;zh=1;var i=ky(),f=ur(),o=$y();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(m(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return v(n),e;if(u===a)return v(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=u;break}if(d===a){c=!0,a=n,l=u;break}d=d.sibling}if(!c){for(d=u.child;d;){if(d===l){c=!0,l=u,a=n;break}if(d===a){c=!0,a=u,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function j(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=j(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,T=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),G=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),ze=Symbol.iterator;function Qe(e){return e===null||typeof e!="object"?null:(e=ze&&e[ze]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function at(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case H:return"Profiler";case Y:return"StrictMode";case ee:return"Suspense";case ie:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case G:return e.displayName||"Context";case V:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:at(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return at(e(t))}catch{}}return null}var Re=Array.isArray,w=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},be=[],Ee=-1;function E(e){return{current:e}}function L(e){0>Ee||(e.current=be[Ee],be[Ee]=null,Ee--)}function Z(e,t){Ee++,be[Ee]=e.current,e.current=t}var J=E(null),ae=E(null),ce=E(null),ve=E(null);function et(e,t){switch(Z(ce,t),Z(ae,e),Z(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xd(t),e=Qd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(J),Z(J,e)}function Ue(){L(J),L(ae),L(ce)}function Ja(e){e.memoizedState!==null&&Z(ve,e);var t=J.current,l=Qd(t,e.type);t!==l&&(Z(ae,e),Z(J,l))}function $n(e){ae.current===e&&(L(J),L(ae)),ve.current===e&&(L(ve),Bn._currentValue=P)}var zi,gr;function Yl(e){if(zi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);zi=t&&t[1]||"",gr=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+zi+e+gr}var Ci=!1;function Mi(e,t){if(!e||Ci)return"";Ci=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(_){var O=_}Reflect.construct(e,[],q)}else{try{q.call()}catch(_){O=_}e.call(q.prototype)}}else{try{throw Error()}catch(_){O=_}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(_){if(_&&O&&typeof _.stack=="string")return[_.stack,O.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(),c=u[0],d=u[1];if(c&&d){var p=c.split(`
44
+ `),M=d.split(`
45
+ `);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<M.length&&!M[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===M.length)for(a=p.length-1,n=M.length-1;1<=a&&0<=n&&p[a]!==M[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==M[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==M[n]){var D=`
46
+ `+p[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=n);break}}}finally{Ci=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Yl(l):""}function pm(e,t){switch(e.tag){case 26:case 27:case 5:return Yl(e.type);case 16:return Yl("Lazy");case 13:return e.child!==t&&t!==null?Yl("Suspense Fallback"):Yl("Suspense");case 19:return Yl("SuspenseList");case 0:case 15:return Mi(e.type,!1);case 11:return Mi(e.type.render,!1);case 1:return Mi(e.type,!0);case 31:return Yl("Activity");default:return""}}function vr(e){try{var t="",l=null;do t+=pm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var Oi=Object.prototype.hasOwnProperty,_i=i.unstable_scheduleCallback,Ri=i.unstable_cancelCallback,xm=i.unstable_shouldYield,bm=i.unstable_requestPaint,dt=i.unstable_now,Sm=i.unstable_getCurrentPriorityLevel,pr=i.unstable_ImmediatePriority,xr=i.unstable_UserBlockingPriority,Wn=i.unstable_NormalPriority,jm=i.unstable_LowPriority,br=i.unstable_IdlePriority,Nm=i.log,Em=i.unstable_setDisableYieldValue,$a=null,ht=null;function ml(e){if(typeof Nm=="function"&&Em(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode($a,e)}catch{}}var mt=Math.clz32?Math.clz32:zm,Am=Math.log,Tm=Math.LN2;function zm(e){return e>>>=0,e===0?32:31-(Am(e)/Tm|0)|0}var Fn=256,In=262144,Pn=4194304;function Gl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function eu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Gl(a):(c&=d,c!==0?n=Gl(c):l||(l=d&~e,l!==0&&(n=Gl(l))))):(d=a&~u,d!==0?n=Gl(d):c!==0?n=Gl(c):l||(l=a&~e,l!==0&&(n=Gl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Wa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Cm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sr(){var e=Pn;return Pn<<=1,(Pn&62914560)===0&&(Pn=4194304),e}function Di(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Mm(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,p=e.expirationTimes,M=e.hiddenUpdates;for(l=c&~l;0<l;){var D=31-mt(l),q=1<<D;d[D]=0,p[D]=-1;var O=M[D];if(O!==null)for(M[D]=null,D=0;D<O.length;D++){var _=O[D];_!==null&&(_.lane&=-536870913)}l&=~q}a!==0&&jr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function jr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-mt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Nr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-mt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Er(e,t){var l=t&-t;return l=(l&42)!==0?1:wi(l),(l&(e.suspendedLanes|t))!==0?0:l}function wi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ui(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ar(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:dh(e.type))}function Tr(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var yl=Math.random().toString(36).slice(2),Je="__reactFiber$"+yl,nt="__reactProps$"+yl,sa="__reactContainer$"+yl,Hi="__reactEvents$"+yl,Om="__reactListeners$"+yl,_m="__reactHandles$"+yl,zr="__reactResources$"+yl,Ia="__reactMarker$"+yl;function qi(e){delete e[Je],delete e[nt],delete e[Hi],delete e[Om],delete e[_m]}function ca(e){var t=e[Je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[sa]||l[Je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Wd(e);e!==null;){if(l=e[Je])return l;e=Wd(e)}return t}e=l,l=e.parentNode}return null}function ra(e){if(e=e[Je]||e[sa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function fa(e){var t=e[zr];return t||(t=e[zr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[Ia]=!0}var Cr=new Set,Mr={};function Xl(e,t){oa(e,t),oa(e+"Capture",t)}function oa(e,t){for(Mr[e]=t,e=0;e<t.length;e++)Cr.add(t[e])}var Rm=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]*$"),Or={},_r={};function Dm(e){return Oi.call(_r,e)?!0:Oi.call(Or,e)?!1:Rm.test(e)?_r[e]=!0:(Or[e]=!0,!1)}function tu(e,t,l){if(Dm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function lu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Jt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bi(e){if(!e._valueTracker){var t=Rr(e)?"checked":"value";e._valueTracker=wm(e,t,""+e[t])}}function Dr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Rr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function au(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Um=/[\n"\\]/g;function Et(e){return e.replace(Um,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Li(e,t,l,a,n,u,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Yi(e,c,Nt(t)):l!=null?Yi(e,c,Nt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Nt(d):e.removeAttribute("name")}function wr(e,t,l,a,n,u,c,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Bi(e);return}l=l!=null?""+Nt(l):"",t=t!=null?""+Nt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Bi(e)}function Yi(e,t,l){t==="number"&&au(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function da(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Nt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Ur(e,t,l){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Nt(l):""}function Hr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Re(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Nt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Bi(e)}function ha(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Hm=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 qr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Hm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Br(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&qr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&qr(e,u,t[u])}function Gi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qm=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"]]),Bm=/^[\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 nu(e){return Bm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var Xi=null;function Qi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,ya=null;function Lr(e){var t=ra(e);if(t&&(e=t.stateNode)){var l=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Li(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Et(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[nt]||null;if(!n)throw Error(r(90));Li(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Dr(a)}break e;case"textarea":Ur(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&da(e,!!l.multiple,t,!1)}}}var Zi=!1;function Yr(e,t,l){if(Zi)return e(t,l);Zi=!0;try{var a=e(t);return a}finally{if(Zi=!1,(ma!==null||ya!==null)&&(Vu(),ma&&(t=ma,e=ya,ya=ma=null,Lr(t),e)))for(t=0;t<e.length;t++)Lr(e[t])}}function en(e,t){var l=e.stateNode;if(l===null)return null;var a=l[nt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vi=!1;if(Wt)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){Vi=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch{Vi=!1}var gl=null,Ki=null,uu=null;function Gr(){if(uu)return uu;var e,t=Ki,l=t.length,a,n="value"in gl?gl.value:gl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return uu=n.slice(e,1<a?1-a:void 0)}function iu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function su(){return!0}function Xr(){return!1}function ut(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?su:Xr,this.isPropagationStopped=Xr,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=su)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=su)},persist:function(){},isPersistent:su}),t}var Ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cu=ut(Ql),ln=b({},Ql,{view:0,detail:0}),Lm=ut(ln),ki,Ji,an,ru=b({},ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&e.type==="mousemove"?(ki=e.screenX-an.screenX,Ji=e.screenY-an.screenY):Ji=ki=0,an=e),ki)},movementY:function(e){return"movementY"in e?e.movementY:Ji}}),Qr=ut(ru),Ym=b({},ru,{dataTransfer:0}),Gm=ut(Ym),Xm=b({},ln,{relatedTarget:0}),$i=ut(Xm),Qm=b({},Ql,{animationName:0,elapsedTime:0,pseudoElement:0}),Zm=ut(Qm),Vm=b({},Ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Km=ut(Vm),km=b({},Ql,{data:0}),Zr=ut(km),Jm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$m={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"},Wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wm[e])?!!t[e]:!1}function Wi(){return Fm}var Im=b({},ln,{key:function(e){if(e.key){var t=Jm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=iu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$m[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wi,charCode:function(e){return e.type==="keypress"?iu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?iu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pm=ut(Im),e0=b({},ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vr=ut(e0),t0=b({},ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wi}),l0=ut(t0),a0=b({},Ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0=ut(a0),u0=b({},ru,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),i0=ut(u0),s0=b({},Ql,{newState:0,oldState:0}),c0=ut(s0),r0=[9,13,27,32],Fi=Wt&&"CompositionEvent"in window,nn=null;Wt&&"documentMode"in document&&(nn=document.documentMode);var f0=Wt&&"TextEvent"in window&&!nn,Kr=Wt&&(!Fi||nn&&8<nn&&11>=nn),kr=" ",Jr=!1;function $r(e,t){switch(e){case"keyup":return r0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ga=!1;function o0(e,t){switch(e){case"compositionend":return Wr(t);case"keypress":return t.which!==32?null:(Jr=!0,kr);case"textInput":return e=t.data,e===kr&&Jr?null:e;default:return null}}function d0(e,t){if(ga)return e==="compositionend"||!Fi&&$r(e,t)?(e=Gr(),uu=Ki=gl=null,ga=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Kr&&t.locale!=="ko"?null:t.data;default:return null}}var h0={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 Fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!h0[e.type]:t==="textarea"}function Ir(e,t,l,a){ma?ya?ya.push(a):ya=[a]:ma=a,t=Iu(t,"onChange"),0<t.length&&(l=new cu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var un=null,sn=null;function m0(e){Hd(e,0)}function fu(e){var t=Pa(e);if(Dr(t))return e}function Pr(e,t){if(e==="change")return t}var ef=!1;if(Wt){var Ii;if(Wt){var Pi="oninput"in document;if(!Pi){var tf=document.createElement("div");tf.setAttribute("oninput","return;"),Pi=typeof tf.oninput=="function"}Ii=Pi}else Ii=!1;ef=Ii&&(!document.documentMode||9<document.documentMode)}function lf(){un&&(un.detachEvent("onpropertychange",af),sn=un=null)}function af(e){if(e.propertyName==="value"&&fu(sn)){var t=[];Ir(t,sn,e,Qi(e)),Yr(m0,t)}}function y0(e,t,l){e==="focusin"?(lf(),un=t,sn=l,un.attachEvent("onpropertychange",af)):e==="focusout"&&lf()}function g0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fu(sn)}function v0(e,t){if(e==="click")return fu(t)}function p0(e,t){if(e==="input"||e==="change")return fu(t)}function x0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:x0;function cn(e,t){if(yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Oi.call(t,n)||!yt(e[n],t[n]))return!1}return!0}function nf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uf(e,t){var l=nf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=nf(l)}}function sf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=au(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=au(e.document)}return t}function es(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var b0=Wt&&"documentMode"in document&&11>=document.documentMode,va=null,ts=null,rn=null,ls=!1;function rf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ls||va==null||va!==au(a)||(a=va,"selectionStart"in a&&es(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}),rn&&cn(rn,a)||(rn=a,a=Iu(ts,"onSelect"),0<a.length&&(t=new cu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=va)))}function Zl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var pa={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionrun:Zl("Transition","TransitionRun"),transitionstart:Zl("Transition","TransitionStart"),transitioncancel:Zl("Transition","TransitionCancel"),transitionend:Zl("Transition","TransitionEnd")},as={},ff={};Wt&&(ff=document.createElement("div").style,"AnimationEvent"in window||(delete pa.animationend.animation,delete pa.animationiteration.animation,delete pa.animationstart.animation),"TransitionEvent"in window||delete pa.transitionend.transition);function Vl(e){if(as[e])return as[e];if(!pa[e])return e;var t=pa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ff)return as[e]=t[l];return e}var of=Vl("animationend"),df=Vl("animationiteration"),hf=Vl("animationstart"),S0=Vl("transitionrun"),j0=Vl("transitionstart"),N0=Vl("transitioncancel"),mf=Vl("transitionend"),yf=new Map,ns="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(" ");ns.push("scrollEnd");function Ht(e,t){yf.set(e,t),Xl(t,[e])}var ou=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},At=[],xa=0,us=0;function du(){for(var e=xa,t=us=xa=0;t<e;){var l=At[t];At[t++]=null;var a=At[t];At[t++]=null;var n=At[t];At[t++]=null;var u=At[t];if(At[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&gf(l,n,u)}}function hu(e,t,l,a){At[xa++]=e,At[xa++]=t,At[xa++]=l,At[xa++]=a,us|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function is(e,t,l,a){return hu(e,t,l,a),mu(e)}function Kl(e,t){return hu(e,null,null,t),mu(e)}function gf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-mt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function mu(e){if(50<_n)throw _n=0,yc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ba={};function E0(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,l,a){return new E0(e,t,l,a)}function ss(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=gt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function vf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")ss(e)&&(c=1);else if(typeof e=="string")c=My(e,l,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=gt(31,l,t,n),e.elementType=se,e.lanes=u,e;case B:return kl(l.children,n,u,t);case Y:c=8,n|=24;break;case H:return e=gt(12,l,t,n|2),e.elementType=H,e.lanes=u,e;case ee:return e=gt(13,l,t,n),e.elementType=ee,e.lanes=u,e;case ie:return e=gt(19,l,t,n),e.elementType=ie,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:c=10;break e;case V:c=9;break e;case k:c=11;break e;case F:c=14;break e;case X:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=gt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function kl(e,t,l,a){return e=gt(7,e,a,t),e.lanes=l,e}function cs(e,t,l){return e=gt(6,e,null,t),e.lanes=l,e}function pf(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function rs(e,t,l){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xf=new WeakMap;function Tt(e,t){if(typeof e=="object"&&e!==null){var l=xf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:vr(t)},xf.set(e,t),t)}return{value:e,source:t,stack:vr(t)}}var Sa=[],ja=0,gu=null,fn=0,zt=[],Ct=0,vl=null,Gt=1,Xt="";function It(e,t){Sa[ja++]=fn,Sa[ja++]=gu,gu=e,fn=t}function bf(e,t,l){zt[Ct++]=Gt,zt[Ct++]=Xt,zt[Ct++]=vl,vl=e;var a=Gt;e=Xt;var n=32-mt(a)-1;a&=~(1<<n),l+=1;var u=32-mt(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Gt=1<<32-mt(t)+n|l<<n|a,Xt=u+e}else Gt=1<<u|l<<n|a,Xt=e}function fs(e){e.return!==null&&(It(e,1),bf(e,1,0))}function os(e){for(;e===gu;)gu=Sa[--ja],Sa[ja]=null,fn=Sa[--ja],Sa[ja]=null;for(;e===vl;)vl=zt[--Ct],zt[Ct]=null,Xt=zt[--Ct],zt[Ct]=null,Gt=zt[--Ct],zt[Ct]=null}function Sf(e,t){zt[Ct++]=Gt,zt[Ct++]=Xt,zt[Ct++]=vl,Gt=t.id,Xt=t.overflow,vl=e}var $e=null,Ce=null,he=!1,pl=null,Mt=!1,ds=Error(r(519));function xl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw on(Tt(t,e)),ds}function jf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Je]=e,t[nt]=a,l){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(l=0;l<Dn.length;l++)fe(Dn[l],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),wr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),Hr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Yd(t.textContent,l)?(a.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),a.onScroll!=null&&fe("scroll",t),a.onScrollEnd!=null&&fe("scrollend",t),a.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||xl(e,!0)}function Nf(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:Mt=!1;return;case 27:case 3:Mt=!0;return;default:$e=$e.return}}function Na(e){if(e!==$e)return!1;if(!he)return Nf(e),he=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Oc(e.type,e.memoizedProps)),l=!l),l&&Ce&&xl(e),Nf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ce=$d(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ce=$d(e)}else t===27?(t=Ce,Dl(e.type)?(e=Uc,Uc=null,Ce=e):Ce=t):Ce=$e?_t(e.stateNode.nextSibling):null;return!0}function Jl(){Ce=$e=null,he=!1}function hs(){var e=pl;return e!==null&&(rt===null?rt=e:rt.push.apply(rt,e),pl=null),e}function on(e){pl===null?pl=[e]:pl.push(e)}var ms=E(null),$l=null,Pt=null;function bl(e,t,l){Z(ms,t._currentValue),t._currentValue=l}function el(e){e._currentValue=ms.current,L(ms)}function ys(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function gs(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var p=0;p<t.length;p++)if(d.context===t[p]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),ys(u.return,l,e),a||(c=null);break e}u=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),ys(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Ea(e,t,l,a){e=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 c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;yt(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===ve.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Bn):e=[Bn])}n=n.return}e!==null&&gs(t,e,l,a),t.flags|=262144}function vu(e){for(e=e.firstContext;e!==null;){if(!yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wl(e){$l=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return Ef($l,e)}function pu(e,t){return $l===null&&Wl(e),Ef(e,t)}function Ef(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Pt===null){if(e===null)throw Error(r(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return l}var A0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},T0=i.unstable_scheduleCallback,z0=i.unstable_NormalPriority,Le={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vs(){return{controller:new A0,data:new Map,refCount:0}}function dn(e){e.refCount--,e.refCount===0&&T0(z0,function(){e.controller.abort()})}var hn=null,ps=0,Aa=0,Ta=null;function C0(e,t){if(hn===null){var l=hn=[];ps=0,Aa=Sc(),Ta={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ps++,t.then(Af,Af),t}function Af(){if(--ps===0&&hn!==null){Ta!==null&&(Ta.status="fulfilled");var e=hn;hn=null,Aa=0,Ta=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function M0(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Tf=w.S;w.S=function(e,t){fd=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&C0(e,t),Tf!==null&&Tf(e,t)};var Fl=E(null);function xs(){var e=Fl.current;return e!==null?e:Ae.pooledCache}function xu(e,t){t===null?Z(Fl,Fl.current):Z(Fl,t.pool)}function zf(){var e=xs();return e===null?null:{parent:Le._currentValue,pool:e}}var za=Error(r(460)),bs=Error(r(474)),bu=Error(r(542)),Su={then:function(){}};function Cf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then($t,$t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_f(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.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 e=t.reason,_f(e),e}throw Pl=t,za}}function Il(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Pl=l,za):l}}var Pl=null;function Of(){if(Pl===null)throw Error(r(459));var e=Pl;return Pl=null,e}function _f(e){if(e===za||e===bu)throw Error(r(483))}var Ca=null,mn=0;function ju(e){var t=mn;return mn+=1,Ca===null&&(Ca=[]),Mf(Ca,e,t)}function yn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Nu(e,t){throw t.$$typeof===T?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Rf(e){function t(A,N){if(e){var C=A.deletions;C===null?(A.deletions=[N],A.flags|=16):C.push(N)}}function l(A,N){if(!e)return null;for(;N!==null;)t(A,N),N=N.sibling;return null}function a(A){for(var N=new Map;A!==null;)A.key!==null?N.set(A.key,A):N.set(A.index,A),A=A.sibling;return N}function n(A,N){return A=Ft(A,N),A.index=0,A.sibling=null,A}function u(A,N,C){return A.index=C,e?(C=A.alternate,C!==null?(C=C.index,C<N?(A.flags|=67108866,N):C):(A.flags|=67108866,N)):(A.flags|=1048576,N)}function c(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function d(A,N,C,U){return N===null||N.tag!==6?(N=cs(C,A.mode,U),N.return=A,N):(N=n(N,C),N.return=A,N)}function p(A,N,C,U){var W=C.type;return W===B?D(A,N,C.props.children,U,C.key):N!==null&&(N.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===X&&Il(W)===N.type)?(N=n(N,C.props),yn(N,C),N.return=A,N):(N=yu(C.type,C.key,C.props,null,A.mode,U),yn(N,C),N.return=A,N)}function M(A,N,C,U){return N===null||N.tag!==4||N.stateNode.containerInfo!==C.containerInfo||N.stateNode.implementation!==C.implementation?(N=rs(C,A.mode,U),N.return=A,N):(N=n(N,C.children||[]),N.return=A,N)}function D(A,N,C,U,W){return N===null||N.tag!==7?(N=kl(C,A.mode,U,W),N.return=A,N):(N=n(N,C),N.return=A,N)}function q(A,N,C){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=cs(""+N,A.mode,C),N.return=A,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case R:return C=yu(N.type,N.key,N.props,null,A.mode,C),yn(C,N),C.return=A,C;case z:return N=rs(N,A.mode,C),N.return=A,N;case X:return N=Il(N),q(A,N,C)}if(Re(N)||Qe(N))return N=kl(N,A.mode,C,null),N.return=A,N;if(typeof N.then=="function")return q(A,ju(N),C);if(N.$$typeof===G)return q(A,pu(A,N),C);Nu(A,N)}return null}function O(A,N,C,U){var W=N!==null?N.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return W!==null?null:d(A,N,""+C,U);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case R:return C.key===W?p(A,N,C,U):null;case z:return C.key===W?M(A,N,C,U):null;case X:return C=Il(C),O(A,N,C,U)}if(Re(C)||Qe(C))return W!==null?null:D(A,N,C,U,null);if(typeof C.then=="function")return O(A,N,ju(C),U);if(C.$$typeof===G)return O(A,N,pu(A,C),U);Nu(A,C)}return null}function _(A,N,C,U,W){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return A=A.get(C)||null,d(N,A,""+U,W);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case R:return A=A.get(U.key===null?C:U.key)||null,p(N,A,U,W);case z:return A=A.get(U.key===null?C:U.key)||null,M(N,A,U,W);case X:return U=Il(U),_(A,N,C,U,W)}if(Re(U)||Qe(U))return A=A.get(C)||null,D(N,A,U,W,null);if(typeof U.then=="function")return _(A,N,C,ju(U),W);if(U.$$typeof===G)return _(A,N,C,pu(N,U),W);Nu(N,U)}return null}function K(A,N,C,U){for(var W=null,me=null,$=N,ue=N=0,de=null;$!==null&&ue<C.length;ue++){$.index>ue?(de=$,$=null):de=$.sibling;var ye=O(A,$,C[ue],U);if(ye===null){$===null&&($=de);break}e&&$&&ye.alternate===null&&t(A,$),N=u(ye,N,ue),me===null?W=ye:me.sibling=ye,me=ye,$=de}if(ue===C.length)return l(A,$),he&&It(A,ue),W;if($===null){for(;ue<C.length;ue++)$=q(A,C[ue],U),$!==null&&(N=u($,N,ue),me===null?W=$:me.sibling=$,me=$);return he&&It(A,ue),W}for($=a($);ue<C.length;ue++)de=_($,A,ue,C[ue],U),de!==null&&(e&&de.alternate!==null&&$.delete(de.key===null?ue:de.key),N=u(de,N,ue),me===null?W=de:me.sibling=de,me=de);return e&&$.forEach(function(Bl){return t(A,Bl)}),he&&It(A,ue),W}function I(A,N,C,U){if(C==null)throw Error(r(151));for(var W=null,me=null,$=N,ue=N=0,de=null,ye=C.next();$!==null&&!ye.done;ue++,ye=C.next()){$.index>ue?(de=$,$=null):de=$.sibling;var Bl=O(A,$,ye.value,U);if(Bl===null){$===null&&($=de);break}e&&$&&Bl.alternate===null&&t(A,$),N=u(Bl,N,ue),me===null?W=Bl:me.sibling=Bl,me=Bl,$=de}if(ye.done)return l(A,$),he&&It(A,ue),W;if($===null){for(;!ye.done;ue++,ye=C.next())ye=q(A,ye.value,U),ye!==null&&(N=u(ye,N,ue),me===null?W=ye:me.sibling=ye,me=ye);return he&&It(A,ue),W}for($=a($);!ye.done;ue++,ye=C.next())ye=_($,A,ue,ye.value,U),ye!==null&&(e&&ye.alternate!==null&&$.delete(ye.key===null?ue:ye.key),N=u(ye,N,ue),me===null?W=ye:me.sibling=ye,me=ye);return e&&$.forEach(function(Yy){return t(A,Yy)}),he&&It(A,ue),W}function Ne(A,N,C,U){if(typeof C=="object"&&C!==null&&C.type===B&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case R:e:{for(var W=C.key;N!==null;){if(N.key===W){if(W=C.type,W===B){if(N.tag===7){l(A,N.sibling),U=n(N,C.props.children),U.return=A,A=U;break e}}else if(N.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===X&&Il(W)===N.type){l(A,N.sibling),U=n(N,C.props),yn(U,C),U.return=A,A=U;break e}l(A,N);break}else t(A,N);N=N.sibling}C.type===B?(U=kl(C.props.children,A.mode,U,C.key),U.return=A,A=U):(U=yu(C.type,C.key,C.props,null,A.mode,U),yn(U,C),U.return=A,A=U)}return c(A);case z:e:{for(W=C.key;N!==null;){if(N.key===W)if(N.tag===4&&N.stateNode.containerInfo===C.containerInfo&&N.stateNode.implementation===C.implementation){l(A,N.sibling),U=n(N,C.children||[]),U.return=A,A=U;break e}else{l(A,N);break}else t(A,N);N=N.sibling}U=rs(C,A.mode,U),U.return=A,A=U}return c(A);case X:return C=Il(C),Ne(A,N,C,U)}if(Re(C))return K(A,N,C,U);if(Qe(C)){if(W=Qe(C),typeof W!="function")throw Error(r(150));return C=W.call(C),I(A,N,C,U)}if(typeof C.then=="function")return Ne(A,N,ju(C),U);if(C.$$typeof===G)return Ne(A,N,pu(A,C),U);Nu(A,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,N!==null&&N.tag===6?(l(A,N.sibling),U=n(N,C),U.return=A,A=U):(l(A,N),U=cs(C,A.mode,U),U.return=A,A=U),c(A)):l(A,N)}return function(A,N,C,U){try{mn=0;var W=Ne(A,N,C,U);return Ca=null,W}catch($){if($===za||$===bu)throw $;var me=gt(29,$,null,A.mode);return me.lanes=U,me.return=A,me}finally{}}}var ea=Rf(!0),Df=Rf(!1),Sl=!1;function Ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function js(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function jl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Nl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ge&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=mu(e),gf(e,null,l),t}return hu(e,a,t,l),mu(e)}function gn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Nr(e,l)}}function Ns(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Es=!1;function vn(){if(Es){var e=Ta;if(e!==null)throw e}}function pn(e,t,l,a){Es=!1;var n=e.updateQueue;Sl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var p=d,M=p.next;p.next=null,c===null?u=M:c.next=M,c=p;var D=e.alternate;D!==null&&(D=D.updateQueue,d=D.lastBaseUpdate,d!==c&&(d===null?D.firstBaseUpdate=M:d.next=M,D.lastBaseUpdate=p))}if(u!==null){var q=n.baseState;c=0,D=M=p=null,d=u;do{var O=d.lane&-536870913,_=O!==d.lane;if(_?(oe&O)===O:(a&O)===O){O!==0&&O===Aa&&(Es=!0),D!==null&&(D=D.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var K=e,I=d;O=t;var Ne=l;switch(I.tag){case 1:if(K=I.payload,typeof K=="function"){q=K.call(Ne,q,O);break e}q=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=I.payload,O=typeof K=="function"?K.call(Ne,q,O):K,O==null)break e;q=b({},q,O);break e;case 2:Sl=!0}}O=d.callback,O!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[O]:_.push(O))}else _={lane:O,tag:d.tag,payload:d.payload,callback:d.callback,next:null},D===null?(M=D=_,p=q):D=D.next=_,c|=O;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;_=d,d=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);D===null&&(p=q),n.baseState=p,n.firstBaseUpdate=M,n.lastBaseUpdate=D,u===null&&(n.shared.lanes=0),Cl|=c,e.lanes=c,e.memoizedState=q}}function wf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Uf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)wf(l[e],t)}var Ma=E(null),Eu=E(0);function Hf(e,t){e=rl,Z(Eu,e),Z(Ma,t),rl=e|t.baseLanes}function As(){Z(Eu,rl),Z(Ma,Ma.current)}function Ts(){rl=Eu.current,L(Ma),L(Eu)}var vt=E(null),Ot=null;function El(e){var t=e.alternate;Z(He,He.current&1),Z(vt,e),Ot===null&&(t===null||Ma.current!==null||t.memoizedState!==null)&&(Ot=e)}function zs(e){Z(He,He.current),Z(vt,e),Ot===null&&(Ot=e)}function qf(e){e.tag===22?(Z(He,He.current),Z(vt,e),Ot===null&&(Ot=e)):Al()}function Al(){Z(He,He.current),Z(vt,vt.current)}function pt(e){L(vt),Ot===e&&(Ot=null),L(He)}var He=E(0);function Au(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Dc(l)||wc(l)))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===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tl=0,ne=null,Se=null,Ye=null,Tu=!1,Oa=!1,ta=!1,zu=0,xn=0,_a=null,O0=0;function De(){throw Error(r(321))}function Cs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!yt(e[l],t[l]))return!1;return!0}function Ms(e,t,l,a,n,u){return tl=u,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?So:Zs,ta=!1,u=l(a,n),ta=!1,Oa&&(u=Lf(t,l,a,n)),Bf(e),u}function Bf(e){w.H=jn;var t=Se!==null&&Se.next!==null;if(tl=0,Ye=Se=ne=null,Tu=!1,xn=0,_a=null,t)throw Error(r(300));e===null||Ge||(e=e.dependencies,e!==null&&vu(e)&&(Ge=!0))}function Lf(e,t,l,a){ne=e;var n=0;do{if(Oa&&(_a=null),xn=0,Oa=!1,25<=n)throw Error(r(301));if(n+=1,Ye=Se=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}w.H=jo,u=t(l,a)}while(Oa);return u}function _0(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?bn(t):t,e=e.useState()[0],(Se!==null?Se.memoizedState:null)!==e&&(ne.flags|=1024),t}function Os(){var e=zu!==0;return zu=0,e}function _s(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Rs(e){if(Tu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Tu=!1}tl=0,Ye=Se=ne=null,Oa=!1,xn=zu=0,_a=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?ne.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function qe(){if(Se===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=Ye===null?ne.memoizedState:Ye.next;if(t!==null)Ye=t,Se=e;else{if(e===null)throw ne.alternate===null?Error(r(467)):Error(r(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Ye===null?ne.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bn(e){var t=xn;return xn+=1,_a===null&&(_a=[]),e=Mf(_a,e,t),t=ne,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?So:Zs),e}function Mu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bn(e);if(e.$$typeof===G)return We(e)}throw Error(r(438,String(e)))}function Ds(e){var t=null,l=ne.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ne.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}),l===null&&(l=Cu(),ne.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Te;return t.index++,l}function ll(e,t){return typeof t=="function"?t(e):t}function Ou(e){var t=qe();return ws(t,Se,e)}function ws(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=c=null,p=null,M=t,D=!1;do{var q=M.lane&-536870913;if(q!==M.lane?(oe&q)===q:(tl&q)===q){var O=M.revertLane;if(O===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),q===Aa&&(D=!0);else if((tl&O)===O){M=M.next,O===Aa&&(D=!0);continue}else q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},p===null?(d=p=q,c=u):p=p.next=q,ne.lanes|=O,Cl|=O;q=M.action,ta&&l(u,q),u=M.hasEagerState?M.eagerState:l(u,q)}else O={lane:q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},p===null?(d=p=O,c=u):p=p.next=O,ne.lanes|=q,Cl|=q;M=M.next}while(M!==null&&M!==t);if(p===null?c=u:p.next=d,!yt(u,e.memoizedState)&&(Ge=!0,D&&(l=Ta,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Us(e){var t=qe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);yt(u,t.memoizedState)||(Ge=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Yf(e,t,l){var a=ne,n=qe(),u=he;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!yt((Se||n).memoizedState,l);if(c&&(n.memoizedState=l,Ge=!0),n=n.queue,Bs(Qf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ye!==null&&Ye.memoizedState.tag&1){if(a.flags|=2048,Ra(9,{destroy:void 0},Xf.bind(null,a,n,l,t),null),Ae===null)throw Error(r(349));u||(tl&127)!==0||Gf(a,t,l)}return l}function Gf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ne.updateQueue,t===null?(t=Cu(),ne.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Xf(e,t,l,a){t.value=l,t.getSnapshot=a,Zf(t)&&Vf(e)}function Qf(e,t,l){return l(function(){Zf(t)&&Vf(e)})}function Zf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!yt(e,l)}catch{return!0}}function Vf(e){var t=Kl(e,2);t!==null&&ft(t,e,2)}function Hs(e){var t=tt();if(typeof e=="function"){var l=e;if(e=l(),ta){ml(!0);try{l()}finally{ml(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},t}function Kf(e,t,l,a){return e.baseState=l,ws(e,Se,typeof a=="function"?a:ll)}function R0(e,t,l,a,n){if(Du(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};w.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,kf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function kf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=w.T,c={};w.T=c;try{var d=l(n,a),p=w.S;p!==null&&p(c,d),Jf(e,t,d)}catch(M){qs(e,t,M)}finally{u!==null&&c.types!==null&&(u.types=c.types),w.T=u}}else try{u=l(n,a),Jf(e,t,u)}catch(M){qs(e,t,M)}}function Jf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){$f(e,t,a)},function(a){return qs(e,t,a)}):$f(e,t,l)}function $f(e,t,l){t.status="fulfilled",t.value=l,Wf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,kf(e,l)))}function qs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Wf(t),t=t.next;while(t!==a)}e.action=null}function Wf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ff(e,t){return t}function If(e,t){if(he){var l=Ae.formState;if(l!==null){e:{var a=ne;if(he){if(Ce){t:{for(var n=Ce,u=Mt;n.nodeType!==8;){if(!u){n=null;break t}if(n=_t(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ce=_t(n.nextSibling),a=n.data==="F!";break e}}xl(a)}a=!1}a&&(t=l[0])}}return l=tt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ff,lastRenderedState:t},l.queue=a,l=po.bind(null,ne,a),a.dispatch=l,a=Hs(!1),u=Qs.bind(null,ne,!1,a.queue),a=tt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=R0.bind(null,ne,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Pf(e){var t=qe();return eo(t,Se,e)}function eo(e,t,l){if(t=ws(e,t,Ff)[0],e=Ou(ll)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=bn(t)}catch(c){throw c===za?bu:c}else a=t;t=qe();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ne.flags|=2048,Ra(9,{destroy:void 0},D0.bind(null,n,l),null)),[a,u,e]}function D0(e,t){e.action=t}function to(e){var t=qe(),l=Se;if(l!==null)return eo(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ra(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ne.updateQueue,t===null&&(t=Cu(),ne.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function lo(){return qe().memoizedState}function _u(e,t,l,a){var n=tt();ne.flags|=e,n.memoizedState=Ra(1|t,{destroy:void 0},l,a===void 0?null:a)}function Ru(e,t,l,a){var n=qe();a=a===void 0?null:a;var u=n.memoizedState.inst;Se!==null&&a!==null&&Cs(a,Se.memoizedState.deps)?n.memoizedState=Ra(t,u,l,a):(ne.flags|=e,n.memoizedState=Ra(1|t,u,l,a))}function ao(e,t){_u(8390656,8,e,t)}function Bs(e,t){Ru(2048,8,e,t)}function w0(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=Cu(),ne.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function no(e){var t=qe().memoizedState;return w0({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function uo(e,t){return Ru(4,2,e,t)}function io(e,t){return Ru(4,4,e,t)}function so(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function co(e,t,l){l=l!=null?l.concat([e]):null,Ru(4,4,so.bind(null,t,e),l)}function Ls(){}function ro(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Cs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function fo(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Cs(t,a[1]))return a[0];if(a=e(),ta){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a}function Ys(e,t,l){return l===void 0||(tl&1073741824)!==0&&(oe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=dd(),ne.lanes|=e,Cl|=e,l)}function oo(e,t,l,a){return yt(l,t)?l:Ma.current!==null?(e=Ys(e,l,a),yt(e,t)||(Ge=!0),e):(tl&42)===0||(tl&1073741824)!==0&&(oe&261930)===0?(Ge=!0,e.memoizedState=l):(e=dd(),ne.lanes|=e,Cl|=e,t)}function ho(e,t,l,a,n){var u=Q.p;Q.p=u!==0&&8>u?u:8;var c=w.T,d={};w.T=d,Qs(e,!1,t,l);try{var p=n(),M=w.S;if(M!==null&&M(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var D=M0(p,a);Sn(e,t,D,St(e))}else Sn(e,t,a,St(e))}catch(q){Sn(e,t,{then:function(){},status:"rejected",reason:q},St())}finally{Q.p=u,c!==null&&d.types!==null&&(c.types=d.types),w.T=c}}function U0(){}function Gs(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=mo(e).queue;ho(e,n,t,P,l===null?U0:function(){return yo(e),l(a)})}function mo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:P},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yo(e){var t=mo(e);t.next===null&&(t=e.alternate.memoizedState),Sn(e,t.next.queue,{},St())}function Xs(){return We(Bn)}function go(){return qe().memoizedState}function vo(){return qe().memoizedState}function H0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=St();e=jl(l);var a=Nl(t,e,l);a!==null&&(ft(a,t,l),gn(a,t,l)),t={cache:vs()},e.payload=t;return}t=t.return}}function q0(e,t,l){var a=St();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Du(e)?xo(t,l):(l=is(e,t,l,a),l!==null&&(ft(l,e,a),bo(l,t,a)))}function po(e,t,l){var a=St();Sn(e,t,l,a)}function Sn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Du(e))xo(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,d=u(c,l);if(n.hasEagerState=!0,n.eagerState=d,yt(d,c))return hu(e,t,n,0),Ae===null&&du(),!1}catch{}finally{}if(l=is(e,t,n,a),l!==null)return ft(l,e,a),bo(l,t,a),!0}return!1}function Qs(e,t,l,a){if(a={lane:2,revertLane:Sc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Du(e)){if(t)throw Error(r(479))}else t=is(e,l,a,2),t!==null&&ft(t,e,2)}function Du(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function xo(e,t){Oa=Tu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function bo(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Nr(e,l)}}var jn={readContext:We,use:Mu,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};jn.useEffectEvent=De;var So={readContext:We,use:Mu,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:ao,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,_u(4194308,4,so.bind(null,t,e),l)},useLayoutEffect:function(e,t){return _u(4194308,4,e,t)},useInsertionEffect:function(e,t){_u(4,2,e,t)},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var a=e();if(ta){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=tt();if(l!==void 0){var n=l(t);if(ta){ml(!0);try{l(t)}finally{ml(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=q0.bind(null,ne,e),[a.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Hs(e);var t=e.queue,l=po.bind(null,ne,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ls,useDeferredValue:function(e,t){var l=tt();return Ys(l,e,t)},useTransition:function(){var e=Hs(!1);return e=ho.bind(null,ne,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ne,n=tt();if(he){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ae===null)throw Error(r(349));(oe&127)!==0||Gf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,ao(Qf.bind(null,a,u,e),[e]),a.flags|=2048,Ra(9,{destroy:void 0},Xf.bind(null,a,u,l,t),null),l},useId:function(){var e=tt(),t=Ae.identifierPrefix;if(he){var l=Xt,a=Gt;l=(a&~(1<<32-mt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=O0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xs,useFormState:If,useActionState:If,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Qs.bind(null,ne,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ds,useCacheRefresh:function(){return tt().memoizedState=H0.bind(null,ne)},useEffectEvent:function(e){var t=tt(),l={impl:e};return t.memoizedState=l,function(){if((ge&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Zs={readContext:We,use:Mu,useCallback:ro,useContext:We,useEffect:Bs,useImperativeHandle:co,useInsertionEffect:uo,useLayoutEffect:io,useMemo:fo,useReducer:Ou,useRef:lo,useState:function(){return Ou(ll)},useDebugValue:Ls,useDeferredValue:function(e,t){var l=qe();return oo(l,Se.memoizedState,e,t)},useTransition:function(){var e=Ou(ll)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Yf,useId:go,useHostTransitionStatus:Xs,useFormState:Pf,useActionState:Pf,useOptimistic:function(e,t){var l=qe();return Kf(l,Se,e,t)},useMemoCache:Ds,useCacheRefresh:vo};Zs.useEffectEvent=no;var jo={readContext:We,use:Mu,useCallback:ro,useContext:We,useEffect:Bs,useImperativeHandle:co,useInsertionEffect:uo,useLayoutEffect:io,useMemo:fo,useReducer:Us,useRef:lo,useState:function(){return Us(ll)},useDebugValue:Ls,useDeferredValue:function(e,t){var l=qe();return Se===null?Ys(l,e,t):oo(l,Se.memoizedState,e,t)},useTransition:function(){var e=Us(ll)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Yf,useId:go,useHostTransitionStatus:Xs,useFormState:to,useActionState:to,useOptimistic:function(e,t){var l=qe();return Se!==null?Kf(l,Se,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ds,useCacheRefresh:vo};jo.useEffectEvent=no;function Vs(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ks={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=St(),n=jl(a);n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(ft(t,e,a),gn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=St(),n=jl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(ft(t,e,a),gn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=St(),a=jl(l);a.tag=2,t!=null&&(a.callback=t),t=Nl(e,a,l),t!==null&&(ft(t,e,l),gn(t,e,l))}};function No(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!cn(l,a)||!cn(n,u):!0}function Eo(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Ks.enqueueReplaceState(t,t.state,null)}function la(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Ao(e){ou(e)}function To(e){console.error(e)}function zo(e){ou(e)}function wu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Co(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ks(e,t,l){return l=jl(l),l.tag=3,l.payload={element:null},l.callback=function(){wu(e,t)},l}function Mo(e){return e=jl(e),e.tag=3,e}function Oo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Co(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Co(t,l,a),typeof n!="function"&&(Ml===null?Ml=new Set([this]):Ml.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function B0(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ea(t,l,n,!0),l=vt.current,l!==null){switch(l.tag){case 31:case 13:return Ot===null?Ku():l.alternate===null&&we===0&&(we=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Su?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),pc(e,a,n)),!1;case 22:return l.flags|=65536,a===Su?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),pc(e,a,n)),!1}throw Error(r(435,l.tag))}return pc(e,a,n),Ku(),!1}if(he)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==ds&&(e=Error(r(422),{cause:a}),on(Tt(e,l)))):(a!==ds&&(t=Error(r(423),{cause:a}),on(Tt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Tt(a,l),n=ks(e.stateNode,a,n),Ns(e,n),we!==4&&(we=2)),!1;var u=Error(r(520),{cause:a});if(u=Tt(u,l),On===null?On=[u]:On.push(u),we!==4&&(we=2),t===null)return!0;a=Tt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=ks(l.stateNode,a,e),Ns(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ml===null||!Ml.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Mo(n),Oo(n,e,l,a),Ns(l,n),!1}l=l.return}while(l!==null);return!1}var Js=Error(r(461)),Ge=!1;function Fe(e,t,l,a){t.child=e===null?Df(t,null,l,a):ea(t,e.child,l,a)}function _o(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Wl(t),a=Ms(e,t,l,c,u,n),d=Os(),e!==null&&!Ge?(_s(e,t,n),al(e,t,n)):(he&&d&&fs(t),t.flags|=1,Fe(e,t,a,n),t.child)}function Ro(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!ss(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Do(e,t,u,a,n)):(e=yu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!lc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:cn,l(c,a)&&e.ref===t.ref)return al(e,t,n)}return t.flags|=1,e=Ft(u,a),e.ref=t.ref,e.return=t,t.child=e}function Do(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(cn(u,a)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=a=u,lc(e,n))(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,al(e,t,n)}return $s(e,t,l,a,n)}function wo(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===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|l:l,e!==null){for(a=t.child=e.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(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xu(t,u!==null?u.cachePool:null),u!==null?Hf(t,u):As(),qf(t);else return a=t.lanes=536870912,Uo(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(xu(t,u.cachePool),Hf(t,u),Al(),t.memoizedState=null):(e!==null&&xu(t,null),As(),Al());return Fe(e,t,n,l),t.child}function Nn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Uo(e,t,l,a,n){var u=xs();return u=u===null?null:{parent:Le._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&xu(t,null),As(),qf(t),e!==null&&Ea(e,t,a,!0),t.childLanes=n,null}function Uu(e,t){return t=qu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ho(e,t,l){return ea(t,e.child,null,l),e=Uu(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function L0(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(he){if(a.mode==="hidden")return e=Uu(t,a),t.lanes=536870912,Nn(null,e);if(zs(t),(e=Ce)?(e=Jd(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=pf(e),l.return=t,t.child=l,$e=t,Ce=null)):e=null,e===null)throw xl(t);return t.lanes=536870912,null}return Uu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(zs(t),n)if(t.flags&256)t.flags&=-257,t=Ho(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ge||Ea(e,t,l,!1),n=(l&e.childLanes)!==0,Ge||n){if(a=Ae,a!==null&&(c=Er(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Kl(e,c),ft(a,e,c),Js;Ku(),t=Ho(e,t,l)}else e=u.treeContext,Ce=_t(c.nextSibling),$e=t,he=!0,pl=null,Mt=!1,e!==null&&Sf(t,e),t=Uu(t,a),t.flags|=4096;return t}return e=Ft(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function $s(e,t,l,a,n){return Wl(t),l=Ms(e,t,l,a,void 0,n),a=Os(),e!==null&&!Ge?(_s(e,t,n),al(e,t,n)):(he&&a&&fs(t),t.flags|=1,Fe(e,t,l,n),t.child)}function qo(e,t,l,a,n,u){return Wl(t),t.updateQueue=null,l=Lf(t,a,l,n),Bf(e),a=Os(),e!==null&&!Ge?(_s(e,t,u),al(e,t,u)):(he&&a&&fs(t),t.flags|=1,Fe(e,t,l,u),t.child)}function Bo(e,t,l,a,n){if(Wl(t),t.stateNode===null){var u=ba,c=l.contextType;typeof c=="object"&&c!==null&&(u=We(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ks,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Ss(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?We(c):ba,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Vs(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Ks.enqueueReplaceState(u,u.state,null),pn(t,a,u,n),vn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,p=la(l,d);u.props=p;var M=u.context,D=l.contextType;c=ba,typeof D=="object"&&D!==null&&(c=We(D));var q=l.getDerivedStateFromProps;D=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,D||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||M!==c)&&Eo(t,u,a,c),Sl=!1;var O=t.memoizedState;u.state=O,pn(t,a,u,n),vn(),M=t.memoizedState,d||O!==M||Sl?(typeof q=="function"&&(Vs(t,l,q,a),M=t.memoizedState),(p=Sl||No(t,l,p,a,O,M,c))?(D||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=M),u.props=a,u.state=M,u.context=c,a=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,js(e,t),c=t.memoizedProps,D=la(l,c),u.props=D,q=t.pendingProps,O=u.context,M=l.contextType,p=ba,typeof M=="object"&&M!==null&&(p=We(M)),d=l.getDerivedStateFromProps,(M=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==q||O!==p)&&Eo(t,u,a,p),Sl=!1,O=t.memoizedState,u.state=O,pn(t,a,u,n),vn();var _=t.memoizedState;c!==q||O!==_||Sl||e!==null&&e.dependencies!==null&&vu(e.dependencies)?(typeof d=="function"&&(Vs(t,l,d,a),_=t.memoizedState),(D=Sl||No(t,l,D,a,O,_,p)||e!==null&&e.dependencies!==null&&vu(e.dependencies))?(M||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,_,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,_,p)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),u.props=a,u.state=_,u.context=p,a=D):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Hu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=ea(t,e.child,null,n),t.child=ea(t,null,l,n)):Fe(e,t,l,n),t.memoizedState=u.state,e=t.child):e=al(e,t,n),e}function Lo(e,t,l,a){return Jl(),t.flags|=256,Fe(e,t,l,a),t.child}var Ws={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fs(e){return{baseLanes:e,cachePool:zf()}}function Is(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=bt),e}function Yo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(He.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(he){if(n?El(t):Al(),(e=Ce)?(e=Jd(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=pf(e),l.return=t,t.child=l,$e=t,Ce=null)):e=null,e===null)throw xl(t);return wc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(Al(),n=t.mode,d=qu({mode:"hidden",children:d},n),a=kl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Fs(l),a.childLanes=Is(e,c,l),t.memoizedState=Ws,Nn(null,a)):(El(t),Ps(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(u)t.flags&256?(El(t),t.flags&=-257,t=ec(e,t,l)):t.memoizedState!==null?(Al(),t.child=e.child,t.flags|=128,t=null):(Al(),d=a.fallback,n=t.mode,a=qu({mode:"visible",children:a.children},n),d=kl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ea(t,e.child,null,l),a=t.child,a.memoizedState=Fs(l),a.childLanes=Is(e,c,l),t.memoizedState=Ws,t=Nn(null,a));else if(El(t),wc(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var M=c.dgst;c=M,a=Error(r(419)),a.stack="",a.digest=c,on({value:a,source:null,stack:null}),t=ec(e,t,l)}else if(Ge||Ea(e,t,l,!1),c=(l&e.childLanes)!==0,Ge||c){if(c=Ae,c!==null&&(a=Er(c,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Kl(e,a),ft(c,e,a),Js;Dc(d)||Ku(),t=ec(e,t,l)}else Dc(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Ce=_t(d.nextSibling),$e=t,he=!0,pl=null,Mt=!1,e!==null&&Sf(t,e),t=Ps(t,a.children),t.flags|=4096);return t}return n?(Al(),d=a.fallback,n=t.mode,p=e.child,M=p.sibling,a=Ft(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,M!==null?d=Ft(M,d):(d=kl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Nn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Fs(l):(n=d.cachePool,n!==null?(p=Le._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=zf(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Is(e,c,l),t.memoizedState=Ws,Nn(e.child,a)):(El(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Ps(e,t){return t=qu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function qu(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function ec(e,t,l){return ea(t,e.child,null,l),e=Ps(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Go(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ys(e.return,t,l)}function tc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Xo(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=He.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,Z(He,c),Fe(e,t,a,l),a=he?fn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Go(e,l,t);else if(e.tag===19)Go(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Au(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),tc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Au(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}tc(t,!0,l,null,u,a);break;case"together":tc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function al(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Cl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ea(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function lc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vu(e)))}function Y0(e,t,l){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),bl(t,Le,e.memoizedState.cache),Jl();break;case 27:case 5:Ja(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(El(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Yo(e,t,l):(El(t),e=al(e,t,l),e!==null?e.sibling:null);El(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ea(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Xo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Z(He,He.current),a)break;return null;case 22:return t.lanes=0,wo(e,t,l,t.pendingProps);case 24:bl(t,Le,e.memoizedState.cache)}return al(e,t,l)}function Qo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ge=!0;else{if(!lc(e,l)&&(t.flags&128)===0)return Ge=!1,Y0(e,t,l);Ge=(e.flags&131072)!==0}else Ge=!1,he&&(t.flags&1048576)!==0&&bf(t,fn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Il(t.elementType),t.type=e,typeof e=="function")ss(e)?(a=la(e,a),t.tag=1,t=Bo(null,t,e,a,l)):(t.tag=0,t=$s(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===k){t.tag=11,t=_o(null,t,e,a,l);break e}else if(n===F){t.tag=14,t=Ro(null,t,e,a,l);break e}}throw t=at(e)||e,Error(r(306,t,""))}}return t;case 0:return $s(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=la(a,t.pendingProps),Bo(e,t,a,n,l);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,js(e,t),pn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,bl(t,Le,a),a!==u.cache&&gs(t,[Le],l,!0),vn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Lo(e,t,a,l);break e}else if(a!==n){n=Tt(Error(r(424)),t),on(n),t=Lo(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ce=_t(e.firstChild),$e=t,he=!0,pl=null,Mt=!0,l=Df(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Jl(),a===n){t=al(e,t,l);break e}Fe(e,t,a,l)}t=t.child}return t;case 26:return Hu(e,t),e===null?(l=eh(t.type,null,t.pendingProps,null))?t.memoizedState=l:he||(l=t.type,e=t.pendingProps,a=Pu(ce.current).createElement(l),a[Je]=t,a[nt]=e,Ie(a,l,e),Ve(a),t.stateNode=a):t.memoizedState=eh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ja(t),e===null&&he&&(a=t.stateNode=Fd(t.type,t.pendingProps,ce.current),$e=t,Mt=!0,n=Ce,Dl(t.type)?(Uc=n,Ce=_t(a.firstChild)):Ce=n),Fe(e,t,t.pendingProps.children,l),Hu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&he&&((n=a=Ce)&&(a=gy(a,t.type,t.pendingProps,Mt),a!==null?(t.stateNode=a,$e=t,Ce=_t(a.firstChild),Mt=!1,n=!0):n=!1),n||xl(t)),Ja(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,Oc(n,u)?a=null:c!==null&&Oc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Ms(e,t,_0,null,null,l),Bn._currentValue=n),Hu(e,t),Fe(e,t,a,l),t.child;case 6:return e===null&&he&&((e=l=Ce)&&(l=vy(l,t.pendingProps,Mt),l!==null?(t.stateNode=l,$e=t,Ce=null,e=!0):e=!1),e||xl(t)),null;case 13:return Yo(e,t,l);case 4:return et(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ea(t,null,a,l):Fe(e,t,a,l),t.child;case 11:return _o(e,t,t.type,t.pendingProps,l);case 7:return Fe(e,t,t.pendingProps,l),t.child;case 8:return Fe(e,t,t.pendingProps.children,l),t.child;case 12:return Fe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,bl(t,t.type,a.value),Fe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Wl(t),n=We(n),a=a(n),t.flags|=1,Fe(e,t,a,l),t.child;case 14:return Ro(e,t,t.type,t.pendingProps,l);case 15:return Do(e,t,t.type,t.pendingProps,l);case 19:return Xo(e,t,l);case 31:return L0(e,t,l);case 22:return wo(e,t,l,t.pendingProps);case 24:return Wl(t),a=We(Le),e===null?(n=xs(),n===null&&(n=Ae,u=vs(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Ss(t),bl(t,Le,n)):((e.lanes&l)!==0&&(js(e,t),pn(t,null,null,l),vn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),bl(t,Le,a)):(a=u.cache,bl(t,Le,a),a!==n.cache&&gs(t,[Le],l,!0))),Fe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function nl(e){e.flags|=4}function ac(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(gd())e.flags|=8192;else throw Pl=Su,bs}else e.flags&=-16777217}function Zo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!uh(t))if(gd())e.flags|=8192;else throw Pl=Su,bs}function Bu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Sr():536870912,e.lanes|=t,Ha|=t)}function En(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function G0(e,t,l){var a=t.pendingProps;switch(os(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),el(Le),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Na(t)?nl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hs())),Me(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(nl(t),u!==null?(Me(t),Zo(t,u)):(Me(t),ac(t,n,null,a,l))):u?u!==e.memoizedState?(nl(t),Me(t),Zo(t,u)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&nl(t),Me(t),ac(t,n,e,a,l)),null;case 27:if($n(t),l=ce.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}e=J.current,Na(t)?jf(t):(e=Fd(n,a,l),t.stateNode=e,nl(t))}return Me(t),null;case 5:if($n(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}if(u=J.current,Na(t))jf(t);else{var c=Pu(ce.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Je]=t,u[nt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Ie(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&nl(t)}}return Me(t),ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ce.current,Na(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=$e,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Yd(e.nodeValue,l)),e||xl(t,!0)}else e=Pu(e).createTextNode(a),e[Je]=t,t.stateNode=e}return Me(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Na(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Je]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else l=hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Me(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Na(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Je]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),n=!1}else n=hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(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)),l!==e&&l&&(t.child.flags|=8192),Bu(t,t.updateQueue),Me(t),null);case 4:return Ue(),e===null&&Ac(t.stateNode.containerInfo),Me(t),null;case 10:return el(t.type),Me(t),null;case 19:if(L(He),a=t.memoizedState,a===null)return Me(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)En(a,!1);else{if(we!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Au(e),u!==null){for(t.flags|=128,En(a,!1),e=u.updateQueue,t.updateQueue=e,Bu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)vf(l,e),l=l.sibling;return Z(He,He.current&1|2),he&&It(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&dt()>Qu&&(t.flags|=128,n=!0,En(a,!1),t.lanes=4194304)}else{if(!n)if(e=Au(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Bu(t,e),En(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!he)return Me(t),null}else 2*dt()-a.renderingStartTime>Qu&&l!==536870912&&(t.flags|=128,n=!0,En(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=dt(),e.sibling=null,l=He.current,Z(He,n?l&1|2:l&1),he&&It(t,a.treeForkCount),e):(Me(t),null);case 22:case 23:return pt(t),Ts(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),l=t.updateQueue,l!==null&&Bu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&L(Fl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),el(Le),Me(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function X0(e,t){switch(os(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return el(Le),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $n(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(He),null;case 4:return Ue(),null;case 10:return el(t.type),null;case 22:case 23:return pt(t),Ts(),e!==null&&L(Fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return el(Le),null;case 25:return null;default:return null}}function Vo(e,t){switch(os(t),t.tag){case 3:el(Le),Ue();break;case 26:case 27:case 5:$n(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:L(He);break;case 10:el(t.type);break;case 22:case 23:pt(t),Ts(),e!==null&&L(Fl);break;case 24:el(Le)}}function An(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){xe(t,t.return,d)}}function Tl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var p=l,M=d;try{M()}catch(D){xe(n,p,D)}}}a=a.next}while(a!==u)}}catch(D){xe(t,t.return,D)}}function Ko(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Uf(t,l)}catch(a){xe(e,e.return,a)}}}function ko(e,t,l){l.props=la(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){xe(e,t,a)}}function Tn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){xe(e,t,n)}}function Qt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){xe(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){xe(e,t,n)}else l.current=null}function Jo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){xe(e,e.return,n)}}function nc(e,t,l){try{var a=e.stateNode;fy(a,e.type,l,t),a[nt]=t}catch(n){xe(e,e.return,n)}}function $o(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$o(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ic(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=$t));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ic(e,t,l),e=e.sibling;e!==null;)ic(e,t,l),e=e.sibling}function Lu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Lu(e,t,l),e=e.sibling;e!==null;)Lu(e,t,l),e=e.sibling}function Wo(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ie(t,a,l),t[Je]=e,t[nt]=l}catch(u){xe(e,e.return,u)}}var ul=!1,Xe=!1,sc=!1,Fo=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Q0(e,t){if(e=e.containerInfo,Cc=ii,e=cf(e),es(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,d=-1,p=-1,M=0,D=0,q=e,O=null;t:for(;;){for(var _;q!==l||n!==0&&q.nodeType!==3||(d=c+n),q!==u||a!==0&&q.nodeType!==3||(p=c+a),q.nodeType===3&&(c+=q.nodeValue.length),(_=q.firstChild)!==null;)O=q,q=_;for(;;){if(q===e)break t;if(O===l&&++M===n&&(d=c),O===u&&++D===a&&(p=c),(_=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=_}l=d===-1||p===-1?null:{start:d,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Mc={focusedElem:e,selectionRange:l},ii=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){switch(t=Ke,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var K=la(l.type,n);e=a.getSnapshotBeforeUpdate(K,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(I){xe(l,l.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Rc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}}function Io(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:sl(e,l),a&4&&An(5,l);break;case 1:if(sl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){xe(l,l.return,c)}else{var n=la(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){xe(l,l.return,c)}}a&64&&Ko(l),a&512&&Tn(l,l.return);break;case 3:if(sl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Uf(e,t)}catch(c){xe(l,l.return,c)}}break;case 27:t===null&&a&4&&Wo(l);case 26:case 5:sl(e,l),t===null&&a&4&&Jo(l),a&512&&Tn(l,l.return);break;case 12:sl(e,l);break;case 31:sl(e,l),a&4&&td(e,l);break;case 13:sl(e,l),a&4&&ld(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=I0.bind(null,l),py(e,l))));break;case 22:if(a=l.memoizedState!==null||ul,!a){t=t!==null&&t.memoizedState!==null||Xe,n=ul;var u=Xe;ul=a,(Xe=t)&&!u?cl(e,l,(l.subtreeFlags&8772)!==0):sl(e,l),ul=n,Xe=u}break;case 30:break;default:sl(e,l)}}function Po(e){var t=e.alternate;t!==null&&(e.alternate=null,Po(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&qi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Oe=null,it=!1;function il(e,t,l){for(l=l.child;l!==null;)ed(e,t,l),l=l.sibling}function ed(e,t,l){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount($a,l)}catch{}switch(l.tag){case 26:Xe||Qt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Xe||Qt(l,t);var a=Oe,n=it;Dl(l.type)&&(Oe=l.stateNode,it=!1),il(e,t,l),Un(l.stateNode),Oe=a,it=n;break;case 5:Xe||Qt(l,t);case 6:if(a=Oe,n=it,Oe=null,il(e,t,l),Oe=a,it=n,Oe!==null)if(it)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(l.stateNode)}catch(u){xe(l,t,u)}else try{Oe.removeChild(l.stateNode)}catch(u){xe(l,t,u)}break;case 18:Oe!==null&&(it?(e=Oe,Kd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Za(e)):Kd(Oe,l.stateNode));break;case 4:a=Oe,n=it,Oe=l.stateNode.containerInfo,it=!0,il(e,t,l),Oe=a,it=n;break;case 0:case 11:case 14:case 15:Tl(2,l,t),Xe||Tl(4,l,t),il(e,t,l);break;case 1:Xe||(Qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ko(l,t,a)),il(e,t,l);break;case 21:il(e,t,l);break;case 22:Xe=(a=Xe)||l.memoizedState!==null,il(e,t,l),Xe=a;break;default:il(e,t,l)}}function td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Za(e)}catch(l){xe(t,t.return,l)}}}function ld(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Za(e)}catch(l){xe(t,t.return,l)}}function Z0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Fo),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Fo),t;default:throw Error(r(435,e.tag))}}function Yu(e,t){var l=Z0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=P0.bind(null,e,a);a.then(n,n)}})}function st(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Dl(d.type)){Oe=d.stateNode,it=!1;break e}break;case 5:Oe=d.stateNode,it=!1;break e;case 3:case 4:Oe=d.stateNode.containerInfo,it=!0;break e}d=d.return}if(Oe===null)throw Error(r(160));ed(u,c,n),Oe=null,it=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ad(t,e),t=t.sibling}var qt=null;function ad(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:st(t,e),ct(e),a&4&&(Tl(3,e,e.return),An(3,e),Tl(5,e,e.return));break;case 1:st(t,e),ct(e),a&512&&(Xe||l===null||Qt(l,l.return)),a&64&&ul&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=qt;if(st(t,e),ct(e),a&512&&(Xe||l===null||Qt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ia]||u[Je]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ie(u,a,l),u[Je]=e,Ve(u),a=u;break e;case"link":var c=ah("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(u=c[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}u=n.createElement(a),Ie(u,a,l),n.head.appendChild(u);break;case"meta":if(c=ah("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(u=c[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}u=n.createElement(a),Ie(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Je]=e,Ve(u),a=u}e.stateNode=a}else nh(n,e.type,e.stateNode);else e.stateNode=lh(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?nh(n,e.type,e.stateNode):lh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&nc(e,e.memoizedProps,l.memoizedProps)}break;case 27:st(t,e),ct(e),a&512&&(Xe||l===null||Qt(l,l.return)),l!==null&&a&4&&nc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(st(t,e),ct(e),a&512&&(Xe||l===null||Qt(l,l.return)),e.flags&32){n=e.stateNode;try{ha(n,"")}catch(K){xe(e,e.return,K)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,nc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(sc=!0);break;case 6:if(st(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(K){xe(e,e.return,K)}}break;case 3:if(li=null,n=qt,qt=ei(t.containerInfo),st(t,e),qt=n,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Za(t.containerInfo)}catch(K){xe(e,e.return,K)}sc&&(sc=!1,nd(e));break;case 4:a=qt,qt=ei(e.stateNode.containerInfo),st(t,e),ct(e),qt=a;break;case 12:st(t,e),ct(e);break;case 31:st(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Yu(e,a)));break;case 13:st(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Xu=dt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Yu(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,M=ul,D=Xe;if(ul=M||n,Xe=D||p,st(t,e),Xe=D,ul=M,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||ul||Xe||aa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=p.stateNode;var q=p.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;d.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(K){xe(p,p.return,K)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(K){xe(p,p.return,K)}}}else if(t.tag===18){if(l===null){p=t;try{var _=p.stateNode;n?kd(_,!0):kd(p.stateNode,!1)}catch(K){xe(p,p.return,K)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Yu(e,l))));break;case 19:st(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Yu(e,a)));break;case 30:break;case 21:break;default:st(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if($o(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=uc(e);Lu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ha(c,""),l.flags&=-33);var d=uc(e);Lu(e,d,c);break;case 3:case 4:var p=l.stateNode.containerInfo,M=uc(e);ic(e,M,p);break;default:throw Error(r(161))}}catch(D){xe(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function nd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;nd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Io(e,t.alternate,t),t=t.sibling}function aa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tl(4,t,t.return),aa(t);break;case 1:Qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ko(t,t.return,l),aa(t);break;case 27:Un(t.stateNode);case 26:case 5:Qt(t,t.return),aa(t);break;case 22:t.memoizedState===null&&aa(t);break;case 30:aa(t);break;default:aa(t)}e=e.sibling}}function cl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:cl(n,u,l),An(4,u);break;case 1:if(cl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(M){xe(a,a.return,M)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)wf(p[n],d)}catch(M){xe(a,a.return,M)}}l&&c&64&&Ko(u),Tn(u,u.return);break;case 27:Wo(u);case 26:case 5:cl(n,u,l),l&&a===null&&c&4&&Jo(u),Tn(u,u.return);break;case 12:cl(n,u,l);break;case 31:cl(n,u,l),l&&c&4&&td(n,u);break;case 13:cl(n,u,l),l&&c&4&&ld(n,u);break;case 22:u.memoizedState===null&&cl(n,u,l),Tn(u,u.return);break;case 30:break;default:cl(n,u,l)}t=t.sibling}}function cc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&dn(l))}function rc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e))}function Bt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ud(e,t,l,a),t=t.sibling}function ud(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,l,a),n&2048&&An(9,t);break;case 1:Bt(e,t,l,a);break;case 3:Bt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e)));break;case 12:if(n&2048){Bt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,d=u.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){xe(t,t.return,p)}}else Bt(e,t,l,a);break;case 31:Bt(e,t,l,a);break;case 13:Bt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Bt(e,t,l,a):zn(e,t):u._visibility&2?Bt(e,t,l,a):(u._visibility|=2,Da(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&cc(c,t);break;case 24:Bt(e,t,l,a),n&2048&&rc(t.alternate,t);break;default:Bt(e,t,l,a)}}function Da(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,d=l,p=a,M=c.flags;switch(c.tag){case 0:case 11:case 15:Da(u,c,d,p,n),An(8,c);break;case 23:break;case 22:var D=c.stateNode;c.memoizedState!==null?D._visibility&2?Da(u,c,d,p,n):zn(u,c):(D._visibility|=2,Da(u,c,d,p,n)),n&&M&2048&&cc(c.alternate,c);break;case 24:Da(u,c,d,p,n),n&&M&2048&&rc(c.alternate,c);break;default:Da(u,c,d,p,n)}t=t.sibling}}function zn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:zn(l,a),n&2048&&cc(a.alternate,a);break;case 24:zn(l,a),n&2048&&rc(a.alternate,a);break;default:zn(l,a)}t=t.sibling}}var Cn=8192;function wa(e,t,l){if(e.subtreeFlags&Cn)for(e=e.child;e!==null;)id(e,t,l),e=e.sibling}function id(e,t,l){switch(e.tag){case 26:wa(e,t,l),e.flags&Cn&&e.memoizedState!==null&&Oy(l,qt,e.memoizedState,e.memoizedProps);break;case 5:wa(e,t,l);break;case 3:case 4:var a=qt;qt=ei(e.stateNode.containerInfo),wa(e,t,l),qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Cn,Cn=16777216,wa(e,t,l),Cn=a):wa(e,t,l));break;default:wa(e,t,l)}}function sd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Mn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ke=a,rd(a,e)}sd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cd(e),e=e.sibling}function cd(e){switch(e.tag){case 0:case 11:case 15:Mn(e),e.flags&2048&&Tl(9,e,e.return);break;case 3:Mn(e);break;case 12:Mn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gu(e)):Mn(e);break;default:Mn(e)}}function Gu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ke=a,rd(a,e)}sd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tl(8,t,t.return),Gu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Gu(t));break;default:Gu(t)}e=e.sibling}}function rd(e,t){for(;Ke!==null;){var l=Ke;switch(l.tag){case 0:case 11:case 15:Tl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:dn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ke=a;else e:for(l=e;Ke!==null;){a=Ke;var n=a.sibling,u=a.return;if(Po(a),a===l){Ke=null;break e}if(n!==null){n.return=u,Ke=n;break e}Ke=u}}}var V0={getCacheForType:function(e){var t=We(Le),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return We(Le).controller.signal}},K0=typeof WeakMap=="function"?WeakMap:Map,ge=0,Ae=null,re=null,oe=0,pe=0,xt=null,zl=!1,Ua=!1,fc=!1,rl=0,we=0,Cl=0,na=0,oc=0,bt=0,Ha=0,On=null,rt=null,dc=!1,Xu=0,fd=0,Qu=1/0,Zu=null,Ml=null,Ze=0,Ol=null,qa=null,fl=0,hc=0,mc=null,od=null,_n=0,yc=null;function St(){return(ge&2)!==0&&oe!==0?oe&-oe:w.T!==null?Sc():Ar()}function dd(){if(bt===0)if((oe&536870912)===0||he){var e=In;In<<=1,(In&3932160)===0&&(In=262144),bt=e}else bt=536870912;return e=vt.current,e!==null&&(e.flags|=32),bt}function ft(e,t,l){(e===Ae&&(pe===2||pe===9)||e.cancelPendingCommit!==null)&&(Ba(e,0),_l(e,oe,bt,!1)),Fa(e,l),((ge&2)===0||e!==Ae)&&(e===Ae&&((ge&2)===0&&(na|=l),we===4&&_l(e,oe,bt,!1)),Zt(e))}function hd(e,t,l){if((ge&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Wa(e,t),n=a?$0(e,t):vc(e,t,!0),u=a;do{if(n===0){Ua&&!a&&_l(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!k0(l)){n=vc(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=On;var p=d.current.memoizedState.isDehydrated;if(p&&(Ba(d,c).flags|=256),c=vc(d,c,!1),c!==2){if(fc&&!p){d.errorRecoveryDisabledLanes|=u,na|=u,n=4;break e}u=rt,rt=n,u!==null&&(rt===null?rt=u:rt.push.apply(rt,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Ba(e,0),_l(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:_l(a,t,bt,!zl);break e;case 2:rt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Xu+300-dt(),10<n)){if(_l(a,t,bt,!zl),eu(a,0,!0)!==0)break e;fl=t,a.timeoutHandle=Zd(md.bind(null,a,l,rt,Zu,dc,t,bt,na,Ha,zl,u,"Throttled",-0,0),n);break e}md(a,l,rt,Zu,dc,t,bt,na,Ha,zl,u,null,-0,0)}}break}while(!0);Zt(e)}function md(e,t,l,a,n,u,c,d,p,M,D,q,O,_){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},id(t,u,q);var K=(u&62914560)===u?Xu-dt():(u&4194048)===u?fd-dt():0;if(K=_y(q,K),K!==null){fl=u,e.cancelPendingCommit=K(jd.bind(null,e,t,u,l,a,n,c,d,p,D,q,null,O,_)),_l(e,u,c,!M);return}}jd(e,t,u,l,a,n,c,d,p)}function k0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!yt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _l(e,t,l,a){t&=~oc,t&=~na,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-mt(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&jr(e,l,t)}function Vu(){return(ge&6)===0?(Rn(0),!1):!0}function gc(){if(re!==null){if(pe===0)var e=re.return;else e=re,Pt=$l=null,Rs(e),Ca=null,mn=0,e=re;for(;e!==null;)Vo(e.alternate,e),e=e.return;re=null}}function Ba(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,hy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),fl=0,gc(),Ae=e,re=l=Ft(e.current,null),oe=t,pe=0,xt=null,zl=!1,Ua=Wa(e,t),fc=!1,Ha=bt=oc=na=Cl=we=0,rt=On=null,dc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-mt(a),u=1<<n;t|=e[n],a&=~u}return rl=t,du(),l}function yd(e,t){ne=null,w.H=jn,t===za||t===bu?(t=Of(),pe=3):t===bs?(t=Of(),pe=4):pe=t===Js?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,xt=t,re===null&&(we=1,wu(e,Tt(t,e.current)))}function gd(){var e=vt.current;return e===null?!0:(oe&4194048)===oe?Ot===null:(oe&62914560)===oe||(oe&536870912)!==0?e===Ot:!1}function vd(){var e=w.H;return w.H=jn,e===null?jn:e}function pd(){var e=w.A;return w.A=V0,e}function Ku(){we=4,zl||(oe&4194048)!==oe&&vt.current!==null||(Ua=!0),(Cl&134217727)===0&&(na&134217727)===0||Ae===null||_l(Ae,oe,bt,!1)}function vc(e,t,l){var a=ge;ge|=2;var n=vd(),u=pd();(Ae!==e||oe!==t)&&(Zu=null,Ba(e,t)),t=!1;var c=we;e:do try{if(pe!==0&&re!==null){var d=re,p=xt;switch(pe){case 8:gc(),c=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var M=pe;if(pe=0,xt=null,La(e,d,p,M),l&&Ua){c=0;break e}break;default:M=pe,pe=0,xt=null,La(e,d,p,M)}}J0(),c=we;break}catch(D){yd(e,D)}while(!0);return t&&e.shellSuspendCounter++,Pt=$l=null,ge=a,w.H=n,w.A=u,re===null&&(Ae=null,oe=0,du()),c}function J0(){for(;re!==null;)xd(re)}function $0(e,t){var l=ge;ge|=2;var a=vd(),n=pd();Ae!==e||oe!==t?(Zu=null,Qu=dt()+500,Ba(e,t)):Ua=Wa(e,t);e:do try{if(pe!==0&&re!==null){t=re;var u=xt;t:switch(pe){case 1:pe=0,xt=null,La(e,t,u,1);break;case 2:case 9:if(Cf(u)){pe=0,xt=null,bd(t);break}t=function(){pe!==2&&pe!==9||Ae!==e||(pe=7),Zt(e)},u.then(t,t);break e;case 3:pe=7;break e;case 4:pe=5;break e;case 7:Cf(u)?(pe=0,xt=null,bd(t)):(pe=0,xt=null,La(e,t,u,7));break;case 5:var c=null;switch(re.tag){case 26:c=re.memoizedState;case 5:case 27:var d=re;if(c?uh(c):d.stateNode.complete){pe=0,xt=null;var p=d.sibling;if(p!==null)re=p;else{var M=d.return;M!==null?(re=M,ku(M)):re=null}break t}}pe=0,xt=null,La(e,t,u,5);break;case 6:pe=0,xt=null,La(e,t,u,6);break;case 8:gc(),we=6;break e;default:throw Error(r(462))}}W0();break}catch(D){yd(e,D)}while(!0);return Pt=$l=null,w.H=a,w.A=n,ge=l,re!==null?0:(Ae=null,oe=0,du(),we)}function W0(){for(;re!==null&&!xm();)xd(re)}function xd(e){var t=Qo(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?ku(e):re=t}function bd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=qo(l,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=qo(l,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:Rs(t);default:Vo(l,t),t=re=vf(t,rl),t=Qo(l,t,rl)}e.memoizedProps=e.pendingProps,t===null?ku(e):re=t}function La(e,t,l,a){Pt=$l=null,Rs(t),Ca=null,mn=0;var n=t.return;try{if(B0(e,n,t,l,oe)){we=1,wu(e,Tt(l,e.current)),re=null;return}}catch(u){if(n!==null)throw re=n,u;we=1,wu(e,Tt(l,e.current)),re=null;return}t.flags&32768?(he||a===1?e=!0:Ua||(oe&536870912)!==0?e=!1:(zl=e=!0,(a===2||a===9||a===3||a===6)&&(a=vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Sd(t,e)):ku(t)}function ku(e){var t=e;do{if((t.flags&32768)!==0){Sd(t,zl);return}e=t.return;var l=G0(t.alternate,t,rl);if(l!==null){re=l;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);we===0&&(we=5)}function Sd(e,t){do{var l=X0(e.alternate,e);if(l!==null){l.flags&=32767,re=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){re=e;return}re=e=l}while(e!==null);we=6,re=null}function jd(e,t,l,a,n,u,c,d,p){e.cancelPendingCommit=null;do Ju();while(Ze!==0);if((ge&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=us,Mm(e,l,u,c,d,p),e===Ae&&(re=Ae=null,oe=0),qa=t,Ol=e,fl=l,hc=u,mc=n,od=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ey(Wn,function(){return zd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=w.T,w.T=null,n=Q.p,Q.p=2,c=ge,ge|=4;try{Q0(e,t,l)}finally{ge=c,Q.p=n,w.T=a}}Ze=1,Nd(),Ed(),Ad()}}function Nd(){if(Ze===1){Ze=0;var e=Ol,t=qa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=w.T,w.T=null;var a=Q.p;Q.p=2;var n=ge;ge|=4;try{ad(t,e);var u=Mc,c=cf(e.containerInfo),d=u.focusedElem,p=u.selectionRange;if(c!==d&&d&&d.ownerDocument&&sf(d.ownerDocument.documentElement,d)){if(p!==null&&es(d)){var M=p.start,D=p.end;if(D===void 0&&(D=M),"selectionStart"in d)d.selectionStart=M,d.selectionEnd=Math.min(D,d.value.length);else{var q=d.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var _=O.getSelection(),K=d.textContent.length,I=Math.min(p.start,K),Ne=p.end===void 0?I:Math.min(p.end,K);!_.extend&&I>Ne&&(c=Ne,Ne=I,I=c);var A=uf(d,I),N=uf(d,Ne);if(A&&N&&(_.rangeCount!==1||_.anchorNode!==A.node||_.anchorOffset!==A.offset||_.focusNode!==N.node||_.focusOffset!==N.offset)){var C=q.createRange();C.setStart(A.node,A.offset),_.removeAllRanges(),I>Ne?(_.addRange(C),_.extend(N.node,N.offset)):(C.setEnd(N.node,N.offset),_.addRange(C))}}}}for(q=[],_=d;_=_.parentNode;)_.nodeType===1&&q.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<q.length;d++){var U=q[d];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}ii=!!Cc,Mc=Cc=null}finally{ge=n,Q.p=a,w.T=l}}e.current=t,Ze=2}}function Ed(){if(Ze===2){Ze=0;var e=Ol,t=qa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=w.T,w.T=null;var a=Q.p;Q.p=2;var n=ge;ge|=4;try{Io(e,t.alternate,t)}finally{ge=n,Q.p=a,w.T=l}}Ze=3}}function Ad(){if(Ze===4||Ze===3){Ze=0,bm();var e=Ol,t=qa,l=fl,a=od;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,qa=Ol=null,Td(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ml=null),Ui(l),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot($a,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=w.T,n=Q.p,Q.p=2,w.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];u(d.value,{componentStack:d.stack})}}finally{w.T=t,Q.p=n}}(fl&3)!==0&&Ju(),Zt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===yc?_n++:(_n=0,yc=e):_n=0,Rn(0)}}function Td(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,dn(t)))}function Ju(){return Nd(),Ed(),Ad(),zd()}function zd(){if(Ze!==5)return!1;var e=Ol,t=hc;hc=0;var l=Ui(fl),a=w.T,n=Q.p;try{Q.p=32>l?32:l,w.T=null,l=mc,mc=null;var u=Ol,c=fl;if(Ze=0,qa=Ol=null,fl=0,(ge&6)!==0)throw Error(r(331));var d=ge;if(ge|=4,cd(u.current),ud(u,u.current,c,l),ge=d,Rn(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot($a,u)}catch{}return!0}finally{Q.p=n,w.T=a,Td(e,t)}}function Cd(e,t,l){t=Tt(l,t),t=ks(e.stateNode,t,2),e=Nl(e,t,2),e!==null&&(Fa(e,2),Zt(e))}function xe(e,t,l){if(e.tag===3)Cd(e,e,l);else for(;t!==null;){if(t.tag===3){Cd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ml===null||!Ml.has(a))){e=Tt(l,e),l=Mo(2),a=Nl(t,l,2),a!==null&&(Oo(l,a,t,e),Fa(a,2),Zt(a));break}}t=t.return}}function pc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new K0;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(l)||(fc=!0,n.add(l),e=F0.bind(null,e,t,l),t.then(e,e))}function F0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ae===e&&(oe&l)===l&&(we===4||we===3&&(oe&62914560)===oe&&300>dt()-Xu?(ge&2)===0&&Ba(e,0):oc|=l,Ha===oe&&(Ha=0)),Zt(e)}function Md(e,t){t===0&&(t=Sr()),e=Kl(e,t),e!==null&&(Fa(e,t),Zt(e))}function I0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Md(e,l)}function P0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Md(e,l)}function ey(e,t){return _i(e,t)}var $u=null,Ya=null,xc=!1,Wu=!1,bc=!1,Rl=0;function Zt(e){e!==Ya&&e.next===null&&(Ya===null?$u=Ya=e:Ya=Ya.next=e),Wu=!0,xc||(xc=!0,ly())}function Rn(e,t){if(!bc&&Wu){bc=!0;do for(var l=!1,a=$u;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-mt(42|e)+1)-1,u&=n&~(c&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Dd(a,u))}else u=oe,u=eu(a,a===Ae?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Wa(a,u)||(l=!0,Dd(a,u));a=a.next}while(l);bc=!1}}function ty(){Od()}function Od(){Wu=xc=!1;var e=0;Rl!==0&&dy()&&(e=Rl);for(var t=dt(),l=null,a=$u;a!==null;){var n=a.next,u=_d(a,t);u===0?(a.next=null,l===null?$u=n:l.next=n,n===null&&(Ya=l)):(l=a,(e!==0||(u&3)!==0)&&(Wu=!0)),a=n}Ze!==0&&Ze!==5||Rn(e),Rl!==0&&(Rl=0)}function _d(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-mt(u),d=1<<c,p=n[c];p===-1?((d&l)===0||(d&a)!==0)&&(n[c]=Cm(d,t)):p<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ae,l=oe,l=eu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(pe===2||pe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ri(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Wa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ri(a),Ui(l)){case 2:case 8:l=xr;break;case 32:l=Wn;break;case 268435456:l=br;break;default:l=Wn}return a=Rd.bind(null,e),l=_i(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ri(a),e.callbackPriority=2,e.callbackNode=null,2}function Rd(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ju()&&e.callbackNode!==l)return null;var a=oe;return a=eu(e,e===Ae?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(hd(e,a,t),_d(e,dt()),e.callbackNode!=null&&e.callbackNode===l?Rd.bind(null,e):null)}function Dd(e,t){if(Ju())return null;hd(e,t,!0)}function ly(){my(function(){(ge&6)!==0?_i(pr,ty):Od()})}function Sc(){if(Rl===0){var e=Aa;e===0&&(e=Fn,Fn<<=1,(Fn&261888)===0&&(Fn=256)),Rl=e}return Rl}function wd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:nu(""+e)}function Ud(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function ay(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=wd((n[nt]||null).action),c=a.submitter;c&&(t=(t=c[nt]||null)?wd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var d=new cu("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Rl!==0){var p=c?Ud(n,c):new FormData(n);Gs(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(d.preventDefault(),p=c?Ud(n,c):new FormData(n),Gs(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var jc=0;jc<ns.length;jc++){var Nc=ns[jc],ny=Nc.toLowerCase(),uy=Nc[0].toUpperCase()+Nc.slice(1);Ht(ny,"on"+uy)}Ht(of,"onAnimationEnd"),Ht(df,"onAnimationIteration"),Ht(hf,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(S0,"onTransitionRun"),Ht(j0,"onTransitionStart"),Ht(N0,"onTransitionCancel"),Ht(mf,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("onPointerLeave",["pointerout","pointerover"]),Xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="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(" "),iy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dn));function Hd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],p=d.instance,M=d.currentTarget;if(d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=M;try{u(n)}catch(D){ou(D)}n.currentTarget=null,u=p}else for(c=0;c<a.length;c++){if(d=a[c],p=d.instance,M=d.currentTarget,d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=M;try{u(n)}catch(D){ou(D)}n.currentTarget=null,u=p}}}}function fe(e,t){var l=t[Hi];l===void 0&&(l=t[Hi]=new Set);var a=e+"__bubble";l.has(a)||(qd(t,e,2,!1),l.add(a))}function Ec(e,t,l){var a=0;t&&(a|=4),qd(l,e,a,t)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function Ac(e){if(!e[Fu]){e[Fu]=!0,Cr.forEach(function(l){l!=="selectionchange"&&(iy.has(l)||Ec(l,!1,e),Ec(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fu]||(t[Fu]=!0,Ec("selectionchange",!1,t))}}function qd(e,t,l,a){switch(dh(t)){case 2:var n=wy;break;case 8:n=Uy;break;default:n=Yc}l=n.bind(null,t,l,e),n=void 0,!Vi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Tc(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var p=c.tag;if((p===3||p===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=ca(d),c===null)return;if(p=c.tag,p===5||p===6||p===26||p===27){a=u=c;continue e}d=d.parentNode}}a=a.return}Yr(function(){var M=u,D=Qi(l),q=[];e:{var O=yf.get(e);if(O!==void 0){var _=cu,K=e;switch(e){case"keypress":if(iu(l)===0)break e;case"keydown":case"keyup":_=Pm;break;case"focusin":K="focus",_=$i;break;case"focusout":K="blur",_=$i;break;case"beforeblur":case"afterblur":_=$i;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Qr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Gm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=l0;break;case of:case df:case hf:_=Zm;break;case mf:_=n0;break;case"scroll":case"scrollend":_=Lm;break;case"wheel":_=i0;break;case"copy":case"cut":case"paste":_=Km;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Vr;break;case"toggle":case"beforetoggle":_=c0}var I=(t&4)!==0,Ne=!I&&(e==="scroll"||e==="scrollend"),A=I?O!==null?O+"Capture":null:O;I=[];for(var N=M,C;N!==null;){var U=N;if(C=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||C===null||A===null||(U=en(N,A),U!=null&&I.push(wn(N,U,C))),Ne)break;N=N.return}0<I.length&&(O=new _(O,K,null,l,D),q.push({event:O,listeners:I}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",O&&l!==Xi&&(K=l.relatedTarget||l.fromElement)&&(ca(K)||K[sa]))break e;if((_||O)&&(O=D.window===D?D:(O=D.ownerDocument)?O.defaultView||O.parentWindow:window,_?(K=l.relatedTarget||l.toElement,_=M,K=K?ca(K):null,K!==null&&(Ne=m(K),I=K.tag,K!==Ne||I!==5&&I!==27&&I!==6)&&(K=null)):(_=null,K=M),_!==K)){if(I=Qr,U="onMouseLeave",A="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(I=Vr,U="onPointerLeave",A="onPointerEnter",N="pointer"),Ne=_==null?O:Pa(_),C=K==null?O:Pa(K),O=new I(U,N+"leave",_,l,D),O.target=Ne,O.relatedTarget=C,U=null,ca(D)===M&&(I=new I(A,N+"enter",K,l,D),I.target=C,I.relatedTarget=Ne,U=I),Ne=U,_&&K)t:{for(I=sy,A=_,N=K,C=0,U=A;U;U=I(U))C++;U=0;for(var W=N;W;W=I(W))U++;for(;0<C-U;)A=I(A),C--;for(;0<U-C;)N=I(N),U--;for(;C--;){if(A===N||N!==null&&A===N.alternate){I=A;break t}A=I(A),N=I(N)}I=null}else I=null;_!==null&&Bd(q,O,_,I,!1),K!==null&&Ne!==null&&Bd(q,Ne,K,I,!0)}}e:{if(O=M?Pa(M):window,_=O.nodeName&&O.nodeName.toLowerCase(),_==="select"||_==="input"&&O.type==="file")var me=Pr;else if(Fr(O))if(ef)me=p0;else{me=g0;var $=y0}else _=O.nodeName,!_||_.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?M&&Gi(M.elementType)&&(me=Pr):me=v0;if(me&&(me=me(e,M))){Ir(q,me,l,D);break e}$&&$(e,O,M),e==="focusout"&&M&&O.type==="number"&&M.memoizedProps.value!=null&&Yi(O,"number",O.value)}switch($=M?Pa(M):window,e){case"focusin":(Fr($)||$.contentEditable==="true")&&(va=$,ts=M,rn=null);break;case"focusout":rn=ts=va=null;break;case"mousedown":ls=!0;break;case"contextmenu":case"mouseup":case"dragend":ls=!1,rf(q,l,D);break;case"selectionchange":if(b0)break;case"keydown":case"keyup":rf(q,l,D)}var ue;if(Fi)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else ga?$r(e,l)&&(de="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(de="onCompositionStart");de&&(Kr&&l.locale!=="ko"&&(ga||de!=="onCompositionStart"?de==="onCompositionEnd"&&ga&&(ue=Gr()):(gl=D,Ki="value"in gl?gl.value:gl.textContent,ga=!0)),$=Iu(M,de),0<$.length&&(de=new Zr(de,e,null,l,D),q.push({event:de,listeners:$}),ue?de.data=ue:(ue=Wr(l),ue!==null&&(de.data=ue)))),(ue=f0?o0(e,l):d0(e,l))&&(de=Iu(M,"onBeforeInput"),0<de.length&&($=new Zr("onBeforeInput","beforeinput",null,l,D),q.push({event:$,listeners:de}),$.data=ue)),ay(q,e,M,l,D)}Hd(q,t)})}function wn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Iu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=en(e,l),n!=null&&a.unshift(wn(e,n,u)),n=en(e,t),n!=null&&a.push(wn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function sy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var d=l,p=d.alternate,M=d.stateNode;if(d=d.tag,p!==null&&p===a)break;d!==5&&d!==26&&d!==27||M===null||(p=M,n?(M=en(l,u),M!=null&&c.unshift(wn(l,M,p))):n||(M=en(l,u),M!=null&&c.push(wn(l,M,p)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var cy=/\r\n?/g,ry=/\u0000|\uFFFD/g;function Ld(e){return(typeof e=="string"?e:""+e).replace(cy,`
49
+ `).replace(ry,"")}function Yd(e,t){return t=Ld(t),Ld(e)===t}function je(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ha(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ha(e,""+a);break;case"className":lu(e,"class",a);break;case"tabIndex":lu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":lu(e,l,a);break;case"style":Br(e,a,u);break;case"data":if(t!=="object"){lu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=nu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&je(e,t,"name",n.name,n,null),je(e,t,"formEncType",n.formEncType,n,null),je(e,t,"formMethod",n.formMethod,n,null),je(e,t,"formTarget",n.formTarget,n,null)):(je(e,t,"encType",n.encType,n,null),je(e,t,"method",n.method,n,null),je(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=nu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=$t);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=nu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":fe("beforetoggle",e),fe("toggle",e),tu(e,"popover",a);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":tu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=qm.get(l)||l,tu(e,l,a))}}function zc(e,t,l,a,n,u){switch(l){case"style":Br(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ha(e,a):(typeof a=="number"||typeof a=="bigint")&&ha(e,""+a);break;case"onScroll":a!=null&&fe("scroll",e);break;case"onScrollEnd":a!=null&&fe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[nt]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):tu(e,l,a)}}}function Ie(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:je(e,t,u,c,l,null)}}n&&je(e,t,"srcSet",l.srcSet,l,null),a&&je(e,t,"src",l.src,l,null);return;case"input":fe("invalid",e);var d=u=c=n=null,p=null,M=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":n=D;break;case"type":c=D;break;case"checked":p=D;break;case"defaultChecked":M=D;break;case"value":u=D;break;case"defaultValue":d=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:je(e,t,a,D,l,null)}}wr(e,u,d,p,M,c,n,!1);return;case"select":fe("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:je(e,t,n,d,l,null)}t=u,l=c,e.multiple=!!a,t!=null?da(e,!!a,t,!1):l!=null&&da(e,!!a,l,!0);return;case"textarea":fe("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:je(e,t,c,d,l,null)}Hr(e,a,n,u);return;case"option":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:je(e,t,p,a,l,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(a=0;a<Dn.length;a++)fe(Dn[a],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in l)if(l.hasOwnProperty(M)&&(a=l[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:je(e,t,M,a,l,null)}return;default:if(Gi(t)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&zc(e,t,D,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&je(e,t,d,a,l,null))}function fy(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,d=null,p=null,M=null,D=null;for(_ in l){var q=l[_];if(l.hasOwnProperty(_)&&q!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":p=q;default:a.hasOwnProperty(_)||je(e,t,_,null,a,q)}}for(var O in a){var _=a[O];if(q=l[O],a.hasOwnProperty(O)&&(_!=null||q!=null))switch(O){case"type":u=_;break;case"name":n=_;break;case"checked":M=_;break;case"defaultChecked":D=_;break;case"value":c=_;break;case"defaultValue":d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_!==q&&je(e,t,O,_,a,q)}}Li(e,c,d,p,M,D,u,n);return;case"select":_=c=d=O=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":_=p;default:a.hasOwnProperty(u)||je(e,t,u,null,a,p)}for(n in a)if(u=a[n],p=l[n],a.hasOwnProperty(n)&&(u!=null||p!=null))switch(n){case"value":O=u;break;case"defaultValue":d=u;break;case"multiple":c=u;default:u!==p&&je(e,t,n,u,a,p)}t=d,l=c,a=_,O!=null?da(e,!!l,O,!1):!!a!=!!l&&(t!=null?da(e,!!l,t,!0):da(e,!!l,l?[]:"",!1));return;case"textarea":_=O=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:je(e,t,d,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":O=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&je(e,t,c,n,a,u)}Ur(e,O,_);return;case"option":for(var K in l)if(O=l[K],l.hasOwnProperty(K)&&O!=null&&!a.hasOwnProperty(K))switch(K){case"selected":e.selected=!1;break;default:je(e,t,K,null,a,O)}for(p in a)if(O=a[p],_=l[p],a.hasOwnProperty(p)&&O!==_&&(O!=null||_!=null))switch(p){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:je(e,t,p,O,a,_)}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 I in l)O=l[I],l.hasOwnProperty(I)&&O!=null&&!a.hasOwnProperty(I)&&je(e,t,I,null,a,O);for(M in a)if(O=a[M],_=l[M],a.hasOwnProperty(M)&&O!==_&&(O!=null||_!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:je(e,t,M,O,a,_)}return;default:if(Gi(t)){for(var Ne in l)O=l[Ne],l.hasOwnProperty(Ne)&&O!==void 0&&!a.hasOwnProperty(Ne)&&zc(e,t,Ne,void 0,a,O);for(D in a)O=a[D],_=l[D],!a.hasOwnProperty(D)||O===_||O===void 0&&_===void 0||zc(e,t,D,O,a,_);return}}for(var A in l)O=l[A],l.hasOwnProperty(A)&&O!=null&&!a.hasOwnProperty(A)&&je(e,t,A,null,a,O);for(q in a)O=a[q],_=l[q],!a.hasOwnProperty(q)||O===_||O==null&&_==null||je(e,t,q,O,a,_)}function Gd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function oy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,d=n.duration;if(u&&d&&Gd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],M=p.startTime;if(M>d)break;var D=p.transferSize,q=p.initiatorType;D&&Gd(q)&&(p=p.responseEnd,c+=D*(p<d?1:(d-M)/(p-M)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cc=null,Mc=null;function Pu(e){return e.nodeType===9?e:e.ownerDocument}function Xd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Oc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _c=null;function dy(){var e=window.event;return e&&e.type==="popstate"?e===_c?!1:(_c=e,!0):(_c=null,!1)}var Zd=typeof setTimeout=="function"?setTimeout:void 0,hy=typeof clearTimeout=="function"?clearTimeout:void 0,Vd=typeof Promise=="function"?Promise:void 0,my=typeof queueMicrotask=="function"?queueMicrotask:typeof Vd<"u"?function(e){return Vd.resolve(null).then(e).catch(yy)}:Zd;function yy(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function Kd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Za(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Un(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Un(l);for(var u=l.firstChild;u;){var c=u.nextSibling,d=u.nodeName;u[Ia]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Un(e.ownerDocument.body);l=n}while(l);Za(t)}function kd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Rc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Rc(l),qi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function gy(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ia])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=_t(e.nextSibling),e===null)break}return null}function vy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=_t(e.nextSibling),e===null))return null;return e}function Jd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function Dc(e){return e.data==="$?"||e.data==="$~"}function wc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function py(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function _t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Uc=null;function $d(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return _t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Wd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Fd(e,t,l){switch(t=Pu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Un(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);qi(e)}var Rt=new Map,Id=new Set;function ei(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ol=Q.d;Q.d={f:xy,r:by,D:Sy,C:jy,L:Ny,m:Ey,X:Ty,S:Ay,M:zy};function xy(){var e=ol.f(),t=Vu();return e||t}function by(e){var t=ra(e);t!==null&&t.tag===5&&t.type==="form"?yo(t):ol.r(e)}var Ga=typeof document>"u"?null:document;function Pd(e,t,l){var a=Ga;if(a&&typeof t=="string"&&t){var n=Et(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Id.has(n)||(Id.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ie(t,"link",e),Ve(t),a.head.appendChild(t)))}}function Sy(e){ol.D(e),Pd("dns-prefetch",e,null)}function jy(e,t){ol.C(e,t),Pd("preconnect",e,t)}function Ny(e,t,l){ol.L(e,t,l);var a=Ga;if(a&&e&&t){var n='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Et(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Et(l.imageSizes)+'"]')):n+='[href="'+Et(e)+'"]';var u=n;switch(t){case"style":u=Xa(e);break;case"script":u=Qa(e)}Rt.has(u)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Rt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Hn(u))||t==="script"&&a.querySelector(qn(u))||(t=a.createElement("link"),Ie(t,"link",e),Ve(t),a.head.appendChild(t)))}}function Ey(e,t){ol.m(e,t);var l=Ga;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Et(a)+'"][href="'+Et(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Qa(e)}if(!Rt.has(u)&&(e=b({rel:"modulepreload",href:e},t),Rt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(qn(u)))return}a=l.createElement("link"),Ie(a,"link",e),Ve(a),l.head.appendChild(a)}}}function Ay(e,t,l){ol.S(e,t,l);var a=Ga;if(a&&e){var n=fa(a).hoistableStyles,u=Xa(e);t=t||"default";var c=n.get(u);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(Hn(u)))d.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Rt.get(u))&&Hc(e,l);var p=c=a.createElement("link");Ve(p),Ie(p,"link",e),p._p=new Promise(function(M,D){p.onload=M,p.onerror=D}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,ti(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(u,c)}}}function Ty(e,t){ol.X(e,t);var l=Ga;if(l&&e){var a=fa(l).hoistableScripts,n=Qa(e),u=a.get(n);u||(u=l.querySelector(qn(n)),u||(e=b({src:e,async:!0},t),(t=Rt.get(n))&&qc(e,t),u=l.createElement("script"),Ve(u),Ie(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function zy(e,t){ol.M(e,t);var l=Ga;if(l&&e){var a=fa(l).hoistableScripts,n=Qa(e),u=a.get(n);u||(u=l.querySelector(qn(n)),u||(e=b({src:e,async:!0,type:"module"},t),(t=Rt.get(n))&&qc(e,t),u=l.createElement("script"),Ve(u),Ie(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function eh(e,t,l,a){var n=(n=ce.current)?ei(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Xa(l.href),l=fa(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Xa(l.href);var u=fa(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(Hn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Rt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Rt.set(e,l),u||Cy(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Qa(l),l=fa(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Xa(e){return'href="'+Et(e)+'"'}function Hn(e){return'link[rel="stylesheet"]['+e+"]"}function th(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Cy(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ie(t,"link",l),Ve(t),e.head.appendChild(t))}function Qa(e){return'[src="'+Et(e)+'"]'}function qn(e){return"script[async]"+e}function lh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Et(l.href)+'"]');if(a)return t.instance=a,Ve(a),a;var n=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ve(a),Ie(a,"style",n),ti(a,l.precedence,e),t.instance=a;case"stylesheet":n=Xa(l.href);var u=e.querySelector(Hn(n));if(u)return t.state.loading|=4,t.instance=u,Ve(u),u;a=th(l),(n=Rt.get(n))&&Hc(a,n),u=(e.ownerDocument||e).createElement("link"),Ve(u);var c=u;return c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),Ie(u,"link",a),t.state.loading|=4,ti(u,l.precedence,e),t.instance=u;case"script":return u=Qa(l.src),(n=e.querySelector(qn(u)))?(t.instance=n,Ve(n),n):(a=l,(n=Rt.get(u))&&(a=b({},l),qc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ve(n),Ie(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ti(a,l.precedence,e));return t.instance}function ti(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Hc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var li=null;function ah(e,t,l){if(li===null){var a=new Map,n=li=new Map;n.set(l,a)}else n=li,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ia]||u[Je]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(u):a.set(c,[u])}}return a}function nh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function My(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function uh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Oy(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Xa(a.href),u=t.querySelector(Hn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ai.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ve(u);return}u=t.ownerDocument||t,a=th(a),(n=Rt.get(n))&&Hc(a,n),u=u.createElement("link"),Ve(u);var c=u;c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),Ie(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ai.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Bc=0;function _y(e,t){return e.stylesheets&&e.count===0&&ui(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Bc===0&&(Bc=62500*oy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Bc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ai(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ui(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ni=null;function ui(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ni=new Map,t.forEach(Ry,e),ni=null,ai.call(e))}function Ry(e,t){if(!(t.state.loading&4)){var l=ni.get(e);if(l)var a=l.get(null);else{l=new Map,ni.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=ai.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Bn={$$typeof:G,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Dy(e,t,l,a,n,u,c,d,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Di(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Di(0),this.hiddenUpdates=Di(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function ih(e,t,l,a,n,u,c,d,p,M,D,q){return e=new Dy(e,t,l,c,p,M,D,q,d),t=1,u===!0&&(t|=24),u=gt(3,null,null,t),e.current=u,u.stateNode=e,t=vs(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Ss(u),e}function sh(e){return e?(e=ba,e):ba}function ch(e,t,l,a,n,u){n=sh(n),a.context===null?a.context=n:a.pendingContext=n,a=jl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Nl(e,a,t),l!==null&&(ft(l,e,t),gn(l,e,t))}function rh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Lc(e,t){rh(e,t),(e=e.alternate)&&rh(e,t)}function fh(e){if(e.tag===13||e.tag===31){var t=Kl(e,67108864);t!==null&&ft(t,e,67108864),Lc(e,67108864)}}function oh(e){if(e.tag===13||e.tag===31){var t=St();t=wi(t);var l=Kl(e,t);l!==null&&ft(l,e,t),Lc(e,t)}}var ii=!0;function wy(e,t,l,a){var n=w.T;w.T=null;var u=Q.p;try{Q.p=2,Yc(e,t,l,a)}finally{Q.p=u,w.T=n}}function Uy(e,t,l,a){var n=w.T;w.T=null;var u=Q.p;try{Q.p=8,Yc(e,t,l,a)}finally{Q.p=u,w.T=n}}function Yc(e,t,l,a){if(ii){var n=Gc(a);if(n===null)Tc(e,t,a,si,l),hh(e,a);else if(qy(n,e,t,l,a))a.stopPropagation();else if(hh(e,a),t&4&&-1<Hy.indexOf(e)){for(;n!==null;){var u=ra(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Gl(u.pendingLanes);if(c!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var p=1<<31-mt(c);d.entanglements[1]|=p,c&=~p}Zt(u),(ge&6)===0&&(Qu=dt()+500,Rn(0))}}break;case 31:case 13:d=Kl(u,2),d!==null&&ft(d,u,2),Vu(),Lc(u,2)}if(u=Gc(a),u===null&&Tc(e,t,a,si,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Tc(e,t,a,null,l)}}function Gc(e){return e=Qi(e),Xc(e)}var si=null;function Xc(e){if(si=null,e=ca(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=g(t),e!==null)return e;e=null}else if(l===31){if(e=x(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return si=e,null}function dh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Sm()){case pr:return 2;case xr:return 8;case Wn:case jm:return 32;case br:return 268435456;default:return 32}default:return 32}}var Qc=!1,wl=null,Ul=null,Hl=null,Ln=new Map,Yn=new Map,ql=[],Hy="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 hh(e,t){switch(e){case"focusin":case"focusout":wl=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":Ln.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yn.delete(t.pointerId)}}function Gn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ra(t),t!==null&&fh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function qy(e,t,l,a,n){switch(t){case"focusin":return wl=Gn(wl,e,t,l,a,n),!0;case"dragenter":return Ul=Gn(Ul,e,t,l,a,n),!0;case"mouseover":return Hl=Gn(Hl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Ln.set(u,Gn(Ln.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Yn.set(u,Gn(Yn.get(u)||null,e,t,l,a,n)),!0}return!1}function mh(e){var t=ca(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=g(l),t!==null){e.blockedOn=t,Tr(e.priority,function(){oh(l)});return}}else if(t===31){if(t=x(l),t!==null){e.blockedOn=t,Tr(e.priority,function(){oh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Gc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Xi=a,l.target.dispatchEvent(a),Xi=null}else return t=ra(l),t!==null&&fh(t),e.blockedOn=l,!1;t.shift()}return!0}function yh(e,t,l){ci(e)&&l.delete(t)}function By(){Qc=!1,wl!==null&&ci(wl)&&(wl=null),Ul!==null&&ci(Ul)&&(Ul=null),Hl!==null&&ci(Hl)&&(Hl=null),Ln.forEach(yh),Yn.forEach(yh)}function ri(e,t){e.blockedOn===t&&(e.blockedOn=null,Qc||(Qc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,By)))}var fi=null;function gh(e){fi!==e&&(fi=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){fi===e&&(fi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Xc(a||l)===null)continue;break}var u=ra(l);u!==null&&(e.splice(t,3),t-=3,Gs(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Za(e){function t(p){return ri(p,e)}wl!==null&&ri(wl,e),Ul!==null&&ri(Ul,e),Hl!==null&&ri(Hl,e),Ln.forEach(t),Yn.forEach(t);for(var l=0;l<ql.length;l++){var a=ql[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ql.length&&(l=ql[0],l.blockedOn===null);)mh(l),l.blockedOn===null&&ql.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[nt]||null;if(typeof u=="function")c||gh(l);else if(c){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[nt]||null)d=c.formAction;else if(Xc(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),gh(l)}}}function vh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){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",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Zc(e){this._internalRoot=e}oi.prototype.render=Zc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=St();ch(l,a,e,t,null,null)},oi.prototype.unmount=Zc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ch(e.current,2,null,e,null,null),Vu(),t[sa]=null}};function oi(e){this._internalRoot=e}oi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ar();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ql.length&&t!==0&&t<ql[l].priority;l++);ql.splice(l,0,e),l===0&&mh(e)}};var ph=f.version;if(ph!=="19.2.4")throw Error(r(527,ph,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?j(e):null,e=e===null?null:e.stateNode,e};var Ly={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var di=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!di.isDisabled&&di.supportsFiber)try{$a=di.inject(Ly),ht=di}catch{}}return Qn.createRoot=function(e,t){if(!h(e))throw Error(r(299));var l=!1,a="",n=Ao,u=To,c=zo;return t!=null&&(t.unstable_strictMode===!0&&(l=!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&&(c=t.onRecoverableError)),t=ih(e,1,!1,null,null,l,a,null,n,u,c,vh),e[sa]=t.current,Ac(e),new Zc(t)},Qn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(r(299));var a=!1,n="",u=Ao,c=To,d=zo,p=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=ih(e,1,!0,t,l??null,a,n,p,u,c,d,vh),t.context=sh(null),l=t.current,a=St(),a=wi(a),n=jl(a),n.callback=null,Nl(l,n,a),l=a,t.current.lanes=l,Fa(t,l),Zt(t),e[sa]=t.current,Ac(e),new oi(t)},Qn.version="19.2.4",Qn}var Ch;function Fy(){if(Ch)return kc.exports;Ch=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),kc.exports=Wy(),kc.exports}var Iy=Fy();/**
50
+ * react-router v7.13.1
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var Mh="popstate";function Oh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Py(i={}){function f(r,h){var y;let m=(y=h.state)==null?void 0:y.masked,{pathname:g,search:x,hash:v}=m||r.location;return tr("",{pathname:g,search:x,hash:v},h.state&&h.state.usr||null,h.state&&h.state.key||"default",m?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function o(r,h){return typeof h=="string"?h:Kn(h)}return tg(f,o,null,i)}function _e(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Lt(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function eg(){return Math.random().toString(36).substring(2,10)}function _h(i,f){return{usr:i.state,key:i.key,idx:f,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function tr(i,f,o=null,r,h){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?Va(f):f,state:o,key:f&&f.key||r||eg(),unstable_mask:h}}function Kn({pathname:i="/",search:f="",hash:o=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function Va(i){let f={};if(i){let o=i.indexOf("#");o>=0&&(f.hash=i.substring(o),i=i.substring(0,o));let r=i.indexOf("?");r>=0&&(f.search=i.substring(r),i=i.substring(0,r)),i&&(f.pathname=i)}return f}function tg(i,f,o,r={}){let{window:h=document.defaultView,v5Compat:m=!1}=r,g=h.history,x="POP",v=null,y=j();y==null&&(y=0,g.replaceState({...g.state,idx:y},""));function j(){return(g.state||{idx:null}).idx}function b(){x="POP";let Y=j(),H=Y==null?null:Y-y;y=Y,v&&v({action:x,location:B.location,delta:H})}function T(Y,H){x="PUSH";let V=Oh(Y)?Y:tr(B.location,Y,H);y=j()+1;let G=_h(V,y),k=B.createHref(V.unstable_mask||V);try{g.pushState(G,"",k)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;h.location.assign(k)}m&&v&&v({action:x,location:B.location,delta:1})}function R(Y,H){x="REPLACE";let V=Oh(Y)?Y:tr(B.location,Y,H);y=j();let G=_h(V,y),k=B.createHref(V.unstable_mask||V);g.replaceState(G,"",k),m&&v&&v({action:x,location:B.location,delta:0})}function z(Y){return lg(Y)}let B={get action(){return x},get location(){return i(h,g)},listen(Y){if(v)throw new Error("A history only accepts one active listener");return h.addEventListener(Mh,b),v=Y,()=>{h.removeEventListener(Mh,b),v=null}},createHref(Y){return f(h,Y)},createURL:z,encodeLocation(Y){let H=z(Y);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:T,replace:R,go(Y){return g.go(Y)}};return B}function lg(i,f=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),_e(o,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Kn(i);return r=r.replace(/ $/,"%20"),!f&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function Xh(i,f,o="/"){return ag(i,f,o,!1)}function ag(i,f,o,r){let h=typeof f=="string"?Va(f):f,m=dl(h.pathname||"/",o);if(m==null)return null;let g=Qh(i);ng(g);let x=null;for(let v=0;x==null&&v<g.length;++v){let y=yg(m);x=hg(g[v],y,r)}return x}function Qh(i,f=[],o=[],r="",h=!1){let m=(g,x,v=h,y)=>{let j={relativePath:y===void 0?g.path||"":y,caseSensitive:g.caseSensitive===!0,childrenIndex:x,route:g};if(j.relativePath.startsWith("/")){if(!j.relativePath.startsWith(r)&&v)return;_e(j.relativePath.startsWith(r),`Absolute route path "${j.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),j.relativePath=j.relativePath.slice(r.length)}let b=Kt([r,j.relativePath]),T=o.concat(j);g.children&&g.children.length>0&&(_e(g.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Qh(g.children,f,T,b,v)),!(g.path==null&&!g.index)&&f.push({path:b,score:og(b,g.index),routesMeta:T})};return i.forEach((g,x)=>{var v;if(g.path===""||!((v=g.path)!=null&&v.includes("?")))m(g,x);else for(let y of Zh(g.path))m(g,x,!0,y)}),f}function Zh(i){let f=i.split("/");if(f.length===0)return[];let[o,...r]=f,h=o.endsWith("?"),m=o.replace(/\?$/,"");if(r.length===0)return h?[m,""]:[m];let g=Zh(r.join("/")),x=[];return x.push(...g.map(v=>v===""?m:[m,v].join("/"))),h&&x.push(...g),x.map(v=>i.startsWith("/")&&v===""?"/":v)}function ng(i){i.sort((f,o)=>f.score!==o.score?o.score-f.score:dg(f.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var ug=/^:[\w-]+$/,ig=3,sg=2,cg=1,rg=10,fg=-2,Rh=i=>i==="*";function og(i,f){let o=i.split("/"),r=o.length;return o.some(Rh)&&(r+=fg),f&&(r+=sg),o.filter(h=>!Rh(h)).reduce((h,m)=>h+(ug.test(m)?ig:m===""?cg:rg),r)}function dg(i,f){return i.length===f.length&&i.slice(0,-1).every((r,h)=>r===f[h])?i[i.length-1]-f[f.length-1]:0}function hg(i,f,o=!1){let{routesMeta:r}=i,h={},m="/",g=[];for(let x=0;x<r.length;++x){let v=r[x],y=x===r.length-1,j=m==="/"?f:f.slice(m.length)||"/",b=pi({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},j),T=v.route;if(!b&&y&&o&&!r[r.length-1].route.index&&(b=pi({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},j)),!b)return null;Object.assign(h,b.params),g.push({params:h,pathname:Kt([m,b.pathname]),pathnameBase:xg(Kt([m,b.pathnameBase])),route:T}),b.pathnameBase!=="/"&&(m=Kt([m,b.pathnameBase]))}return g}function pi(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,r]=mg(i.path,i.caseSensitive,i.end),h=f.match(o);if(!h)return null;let m=h[0],g=m.replace(/(.)\/+$/,"$1"),x=h.slice(1);return{params:r.reduce((y,{paramName:j,isOptional:b},T)=>{if(j==="*"){let z=x[T]||"";g=m.slice(0,m.length-z.length).replace(/(.)\/+$/,"$1")}const R=x[T];return b&&!R?y[j]=void 0:y[j]=(R||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:g,pattern:i}}function mg(i,f=!1,o=!0){Lt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],h="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,x,v,y,j)=>{if(r.push({paramName:x,isOptional:v!=null}),v){let b=j.charAt(y+g.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),h+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?h+="\\/*$":i!==""&&i!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,f?void 0:"i"),r]}function yg(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Lt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),i}}function dl(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let o=f.endsWith("/")?f.length-1:f.length,r=i.charAt(o);return r&&r!=="/"?null:i.slice(o)||"/"}var gg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function vg(i,f="/"){let{pathname:o,search:r="",hash:h=""}=typeof i=="string"?Va(i):i,m;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?m=Dh(o.substring(1),"/"):m=Dh(o,f)):m=f,{pathname:m,search:bg(r),hash:Sg(h)}}function Dh(i,f){let o=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(h=>{h===".."?o.length>1&&o.pop():h!=="."&&o.push(h)}),o.length>1?o.join("/"):"/"}function Fc(i,f,o,r){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function pg(i){return i.filter((f,o)=>o===0||f.route.path&&f.route.path.length>0)}function ir(i){let f=pg(i);return f.map((o,r)=>r===f.length-1?o.pathname:o.pathnameBase)}function xi(i,f,o,r=!1){let h;typeof i=="string"?h=Va(i):(h={...i},_e(!h.pathname||!h.pathname.includes("?"),Fc("?","pathname","search",h)),_e(!h.pathname||!h.pathname.includes("#"),Fc("#","pathname","hash",h)),_e(!h.search||!h.search.includes("#"),Fc("#","search","hash",h)));let m=i===""||h.pathname==="",g=m?"/":h.pathname,x;if(g==null)x=o;else{let b=f.length-1;if(!r&&g.startsWith("..")){let T=g.split("/");for(;T[0]==="..";)T.shift(),b-=1;h.pathname=T.join("/")}x=b>=0?f[b]:"/"}let v=vg(h,x),y=g&&g!=="/"&&g.endsWith("/"),j=(m||g===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(y||j)&&(v.pathname+="/"),v}var Kt=i=>i.join("/").replace(/\/\/+/g,"/"),xg=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),bg=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Sg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,jg=class{constructor(i,f,o,r=!1){this.status=i,this.statusText=f||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Ng(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Eg(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Vh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Kh(i,f){let o=i;if(typeof o!="string"||!gg.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,h=!1;if(Vh)try{let m=new URL(window.location.href),g=o.startsWith("//")?new URL(m.protocol+o):new URL(o),x=dl(g.pathname,f);g.origin===m.origin&&x!=null?o=x+g.search+g.hash:h=!0}catch{Lt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:h,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var kh=["POST","PUT","PATCH","DELETE"];new Set(kh);var Ag=["GET",...kh];new Set(Ag);var Ka=S.createContext(null);Ka.displayName="DataRouter";var bi=S.createContext(null);bi.displayName="DataRouterState";var Tg=S.createContext(!1),Jh=S.createContext({isTransitioning:!1});Jh.displayName="ViewTransition";var zg=S.createContext(new Map);zg.displayName="Fetchers";var Cg=S.createContext(null);Cg.displayName="Await";var jt=S.createContext(null);jt.displayName="Navigation";var kn=S.createContext(null);kn.displayName="Location";var Ut=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ut.displayName="Route";var sr=S.createContext(null);sr.displayName="RouteError";var $h="REACT_ROUTER_ERROR",Mg="REDIRECT",Og="ROUTE_ERROR_RESPONSE";function _g(i){if(i.startsWith(`${$h}:${Mg}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function Rg(i){if(i.startsWith(`${$h}:${Og}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new jg(f.status,f.statusText,f.data)}catch{}}function Dg(i,{relative:f}={}){_e(ka(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=S.useContext(jt),{hash:h,pathname:m,search:g}=Jn(i,{relative:f}),x=m;return o!=="/"&&(x=m==="/"?o:Kt([o,m])),r.createHref({pathname:x,search:g,hash:h})}function ka(){return S.useContext(kn)!=null}function kt(){return _e(ka(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(kn).location}var Wh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fh(i){S.useContext(jt).static||S.useLayoutEffect(i)}function Si(){let{isDataRoute:i}=S.useContext(Ut);return i?$g():wg()}function wg(){_e(ka(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(Ka),{basename:f,navigator:o}=S.useContext(jt),{matches:r}=S.useContext(Ut),{pathname:h}=kt(),m=JSON.stringify(ir(r)),g=S.useRef(!1);return Fh(()=>{g.current=!0}),S.useCallback((v,y={})=>{if(Lt(g.current,Wh),!g.current)return;if(typeof v=="number"){o.go(v);return}let j=xi(v,JSON.parse(m),h,y.relative==="path");i==null&&f!=="/"&&(j.pathname=j.pathname==="/"?f:Kt([f,j.pathname])),(y.replace?o.replace:o.push)(j,y.state,y)},[f,o,m,h,i])}var Ug=S.createContext(null);function Hg(i){let f=S.useContext(Ut).outlet;return S.useMemo(()=>f&&S.createElement(Ug.Provider,{value:i},f),[f,i])}function qg(){let{matches:i}=S.useContext(Ut),f=i[i.length-1];return f?f.params:{}}function Jn(i,{relative:f}={}){let{matches:o}=S.useContext(Ut),{pathname:r}=kt(),h=JSON.stringify(ir(o));return S.useMemo(()=>xi(i,JSON.parse(h),r,f==="path"),[i,h,r,f])}function Bg(i,f){return Ih(i,f)}function Ih(i,f,o){var Y;_e(ka(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=S.useContext(jt),{matches:h}=S.useContext(Ut),m=h[h.length-1],g=m?m.params:{},x=m?m.pathname:"/",v=m?m.pathnameBase:"/",y=m&&m.route;{let H=y&&y.path||"";em(x,!y||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${H}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let j=kt(),b;if(f){let H=typeof f=="string"?Va(f):f;_e(v==="/"||((Y=H.pathname)==null?void 0:Y.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${H.pathname}" was given in the \`location\` prop.`),b=H}else b=j;let T=b.pathname||"/",R=T;if(v!=="/"){let H=v.replace(/^\//,"").split("/");R="/"+T.replace(/^\//,"").split("/").slice(H.length).join("/")}let z=Xh(i,{pathname:R});Lt(y||z!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Lt(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=Qg(z&&z.map(H=>Object.assign({},H,{params:Object.assign({},g,H.params),pathname:Kt([v,r.encodeLocation?r.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?v:Kt([v,r.encodeLocation?r.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),h,o);return f&&B?S.createElement(kn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},B):B}function Lg(){let i=Jg(),f=Ng(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:r},m={padding:"2px 4px",backgroundColor:r},g=null;return console.error("Error handled by React Router default ErrorBoundary:",i),g=S.createElement(S.Fragment,null,S.createElement("p",null,"๐Ÿ’ฟ Hey developer ๐Ÿ‘‹"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:m},"ErrorBoundary")," or"," ",S.createElement("code",{style:m},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},f),o?S.createElement("pre",{style:h},o):null,g)}var Yg=S.createElement(Lg,null),Ph=class extends S.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=Rg(i.digest);o&&(i=o)}let f=i!==void 0?S.createElement(Ut.Provider,{value:this.props.routeContext},S.createElement(sr.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?S.createElement(Gg,{error:i},f):f}};Ph.contextType=Tg;var Ic=new WeakMap;function Gg({children:i,error:f}){let{basename:o}=S.useContext(jt);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let r=_g(f.digest);if(r){let h=Ic.get(f);if(h)throw h;let m=Kh(r.location,o);if(Vh&&!Ic.get(f))if(m.isExternal||r.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:r.replace}));throw Ic.set(f,g),g}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function Xg({routeContext:i,match:f,children:o}){let r=S.useContext(Ka);return r&&r.static&&r.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=f.route.id),S.createElement(Ut.Provider,{value:i},o)}function Qg(i,f=[],o){let r=o==null?void 0:o.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(f.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let h=i,m=r==null?void 0:r.errors;if(m!=null){let j=h.findIndex(b=>b.route.id&&(m==null?void 0:m[b.route.id])!==void 0);_e(j>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),h=h.slice(0,Math.min(h.length,j+1))}let g=!1,x=-1;if(o&&r){g=r.renderFallback;for(let j=0;j<h.length;j++){let b=h[j];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(x=j),b.route.id){let{loaderData:T,errors:R}=r,z=b.route.loader&&!T.hasOwnProperty(b.route.id)&&(!R||R[b.route.id]===void 0);if(b.route.lazy||z){o.isStatic&&(g=!0),x>=0?h=h.slice(0,x+1):h=[h[0]];break}}}}let v=o==null?void 0:o.onError,y=r&&v?(j,b)=>{var T,R;v(j,{location:r.location,params:((R=(T=r.matches)==null?void 0:T[0])==null?void 0:R.params)??{},unstable_pattern:Eg(r.matches),errorInfo:b})}:void 0;return h.reduceRight((j,b,T)=>{let R,z=!1,B=null,Y=null;r&&(R=m&&b.route.id?m[b.route.id]:void 0,B=b.route.errorElement||Yg,g&&(x<0&&T===0?(em("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,Y=null):x===T&&(z=!0,Y=b.route.hydrateFallbackElement||null)));let H=f.concat(h.slice(0,T+1)),V=()=>{let G;return R?G=B:z?G=Y:b.route.Component?G=S.createElement(b.route.Component,null):b.route.element?G=b.route.element:G=j,S.createElement(Xg,{match:b,routeContext:{outlet:j,matches:H,isDataRoute:r!=null},children:G})};return r&&(b.route.ErrorBoundary||b.route.errorElement||T===0)?S.createElement(Ph,{location:r.location,revalidation:r.revalidation,component:B,error:R,children:V(),routeContext:{outlet:null,matches:H,isDataRoute:!0},onError:y}):V()},null)}function cr(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zg(i){let f=S.useContext(Ka);return _e(f,cr(i)),f}function Vg(i){let f=S.useContext(bi);return _e(f,cr(i)),f}function Kg(i){let f=S.useContext(Ut);return _e(f,cr(i)),f}function rr(i){let f=Kg(i),o=f.matches[f.matches.length-1];return _e(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function kg(){return rr("useRouteId")}function Jg(){var r;let i=S.useContext(sr),f=Vg("useRouteError"),o=rr("useRouteError");return i!==void 0?i:(r=f.errors)==null?void 0:r[o]}function $g(){let{router:i}=Zg("useNavigate"),f=rr("useNavigate"),o=S.useRef(!1);return Fh(()=>{o.current=!0}),S.useCallback(async(h,m={})=>{Lt(o.current,Wh),o.current&&(typeof h=="number"?await i.navigate(h):await i.navigate(h,{fromRouteId:f,...m}))},[i,f])}var wh={};function em(i,f,o){!f&&!wh[i]&&(wh[i]=!0,Lt(!1,o))}S.memo(Wg);function Wg({routes:i,future:f,state:o,isStatic:r,onError:h}){return Ih(i,void 0,{state:o,isStatic:r,onError:h})}function Fg({to:i,replace:f,state:o,relative:r}){_e(ka(),"<Navigate> may be used only in the context of a <Router> component.");let{static:h}=S.useContext(jt);Lt(!h,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=S.useContext(Ut),{pathname:g}=kt(),x=Si(),v=xi(i,ir(m),g,r==="path"),y=JSON.stringify(v);return S.useEffect(()=>{x(JSON.parse(y),{replace:f,state:o,relative:r})},[x,y,r,f,o]),null}function Ig(i){return Hg(i.context)}function ot(i){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Pg({basename:i="/",children:f=null,location:o,navigationType:r="POP",navigator:h,static:m=!1,unstable_useTransitions:g}){_e(!ka(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=i.replace(/^\/*/,"/"),v=S.useMemo(()=>({basename:x,navigator:h,static:m,unstable_useTransitions:g,future:{}}),[x,h,m,g]);typeof o=="string"&&(o=Va(o));let{pathname:y="/",search:j="",hash:b="",state:T=null,key:R="default",unstable_mask:z}=o,B=S.useMemo(()=>{let Y=dl(y,x);return Y==null?null:{location:{pathname:Y,search:j,hash:b,state:T,key:R,unstable_mask:z},navigationType:r}},[x,y,j,b,T,R,r,z]);return Lt(B!=null,`<Router basename="${x}"> is not able to match the URL "${y}${j}${b}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:S.createElement(jt.Provider,{value:v},S.createElement(kn.Provider,{children:f,value:B}))}function e1({children:i,location:f}){return Bg(lr(i),f)}function lr(i,f=[]){let o=[];return S.Children.forEach(i,(r,h)=>{if(!S.isValidElement(r))return;let m=[...f,h];if(r.type===S.Fragment){o.push.apply(o,lr(r.props.children,m));return}_e(r.type===ot,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!r.props.index||!r.props.children,"An index route cannot have child routes.");let g={id:r.props.id||m.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(g.children=lr(r.props.children,m)),o.push(g)}),o}var gi="get",vi="application/x-www-form-urlencoded";function ji(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function t1(i){return ji(i)&&i.tagName.toLowerCase()==="button"}function l1(i){return ji(i)&&i.tagName.toLowerCase()==="form"}function a1(i){return ji(i)&&i.tagName.toLowerCase()==="input"}function n1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function u1(i,f){return i.button===0&&(!f||f==="_self")&&!n1(i)}var hi=null;function i1(){if(hi===null)try{new FormData(document.createElement("form"),0),hi=!1}catch{hi=!0}return hi}var s1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Pc(i){return i!=null&&!s1.has(i)?(Lt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vi}"`),null):i}function c1(i,f){let o,r,h,m,g;if(l1(i)){let x=i.getAttribute("action");r=x?dl(x,f):null,o=i.getAttribute("method")||gi,h=Pc(i.getAttribute("enctype"))||vi,m=new FormData(i)}else if(t1(i)||a1(i)&&(i.type==="submit"||i.type==="image")){let x=i.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=i.getAttribute("formaction")||x.getAttribute("action");if(r=v?dl(v,f):null,o=i.getAttribute("formmethod")||x.getAttribute("method")||gi,h=Pc(i.getAttribute("formenctype"))||Pc(x.getAttribute("enctype"))||vi,m=new FormData(x,i),!i1()){let{name:y,type:j,value:b}=i;if(j==="image"){let T=y?`${y}.`:"";m.append(`${T}x`,"0"),m.append(`${T}y`,"0")}else y&&m.append(y,b)}}else{if(ji(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=gi,r=null,h=vi,g=i}return m&&h==="text/plain"&&(g=m,m=void 0),{action:r,method:o.toLowerCase(),encType:h,formData:m,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function fr(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function r1(i,f,o,r){let h=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?h.pathname.endsWith("/")?h.pathname=`${h.pathname}_.${r}`:h.pathname=`${h.pathname}.${r}`:h.pathname==="/"?h.pathname=`_root.${r}`:f&&dl(h.pathname,f)==="/"?h.pathname=`${f.replace(/\/$/,"")}/_root.${r}`:h.pathname=`${h.pathname.replace(/\/$/,"")}.${r}`,h}async function f1(i,f){if(i.id in f)return f[i.id];try{let o=await import(i.module);return f[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function o1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function d1(i,f,o){let r=await Promise.all(i.map(async h=>{let m=f.routes[h.route.id];if(m){let g=await f1(m,o);return g.links?g.links():[]}return[]}));return g1(r.flat(1).filter(o1).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function Uh(i,f,o,r,h,m){let g=(v,y)=>o[y]?v.route.id!==o[y].route.id:!0,x=(v,y)=>{var j;return o[y].pathname!==v.pathname||((j=o[y].route.path)==null?void 0:j.endsWith("*"))&&o[y].params["*"]!==v.params["*"]};return m==="assets"?f.filter((v,y)=>g(v,y)||x(v,y)):m==="data"?f.filter((v,y)=>{var b;let j=r.routes[v.route.id];if(!j||!j.hasLoader)return!1;if(g(v,y)||x(v,y))return!0;if(v.route.shouldRevalidate){let T=v.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((b=o[0])==null?void 0:b.params)||{},nextUrl:new URL(i,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof T=="boolean")return T}return!0}):[]}function h1(i,f,{includeHydrateFallback:o}={}){return m1(i.map(r=>{let h=f.routes[r.route.id];if(!h)return[];let m=[h.module];return h.clientActionModule&&(m=m.concat(h.clientActionModule)),h.clientLoaderModule&&(m=m.concat(h.clientLoaderModule)),o&&h.hydrateFallbackModule&&(m=m.concat(h.hydrateFallbackModule)),h.imports&&(m=m.concat(h.imports)),m}).flat(1))}function m1(i){return[...new Set(i)]}function y1(i){let f={},o=Object.keys(i).sort();for(let r of o)f[r]=i[r];return f}function g1(i,f){let o=new Set;return new Set(f),i.reduce((r,h)=>{let m=JSON.stringify(y1(h));return o.has(m)||(o.add(m),r.push({key:m,link:h})),r},[])}function tm(){let i=S.useContext(Ka);return fr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function v1(){let i=S.useContext(bi);return fr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var or=S.createContext(void 0);or.displayName="FrameworkContext";function lm(){let i=S.useContext(or);return fr(i,"You must render this element inside a <HydratedRouter> element"),i}function p1(i,f){let o=S.useContext(or),[r,h]=S.useState(!1),[m,g]=S.useState(!1),{onFocus:x,onBlur:v,onMouseEnter:y,onMouseLeave:j,onTouchStart:b}=f,T=S.useRef(null);S.useEffect(()=>{if(i==="render"&&g(!0),i==="viewport"){let B=H=>{H.forEach(V=>{g(V.isIntersecting)})},Y=new IntersectionObserver(B,{threshold:.5});return T.current&&Y.observe(T.current),()=>{Y.disconnect()}}},[i]),S.useEffect(()=>{if(r){let B=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(B)}}},[r]);let R=()=>{h(!0)},z=()=>{h(!1),g(!1)};return o?i!=="intent"?[m,T,{}]:[m,T,{onFocus:Zn(x,R),onBlur:Zn(v,z),onMouseEnter:Zn(y,R),onMouseLeave:Zn(j,z),onTouchStart:Zn(b,R)}]:[!1,T,{}]}function Zn(i,f){return o=>{i&&i(o),o.defaultPrevented||f(o)}}function x1({page:i,...f}){let{router:o}=tm(),r=S.useMemo(()=>Xh(o.routes,i,o.basename),[o.routes,i,o.basename]);return r?S.createElement(S1,{page:i,matches:r,...f}):null}function b1(i){let{manifest:f,routeModules:o}=lm(),[r,h]=S.useState([]);return S.useEffect(()=>{let m=!1;return d1(i,f,o).then(g=>{m||h(g)}),()=>{m=!0}},[i,f,o]),r}function S1({page:i,matches:f,...o}){let r=kt(),{future:h,manifest:m,routeModules:g}=lm(),{basename:x}=tm(),{loaderData:v,matches:y}=v1(),j=S.useMemo(()=>Uh(i,f,y,m,r,"data"),[i,f,y,m,r]),b=S.useMemo(()=>Uh(i,f,y,m,r,"assets"),[i,f,y,m,r]),T=S.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let B=new Set,Y=!1;if(f.forEach(V=>{var k;let G=m.routes[V.route.id];!G||!G.hasLoader||(!j.some(ee=>ee.route.id===V.route.id)&&V.route.id in v&&((k=g[V.route.id])!=null&&k.shouldRevalidate)||G.hasClientLoader?Y=!0:B.add(V.route.id))}),B.size===0)return[];let H=r1(i,x,h.unstable_trailingSlashAwareDataRequests,"data");return Y&&B.size>0&&H.searchParams.set("_routes",f.filter(V=>B.has(V.route.id)).map(V=>V.route.id).join(",")),[H.pathname+H.search]},[x,h.unstable_trailingSlashAwareDataRequests,v,r,m,j,f,i,g]),R=S.useMemo(()=>h1(b,m),[b,m]),z=b1(b);return S.createElement(S.Fragment,null,T.map(B=>S.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...o})),R.map(B=>S.createElement("link",{key:B,rel:"modulepreload",href:B,...o})),z.map(({key:B,link:Y})=>S.createElement("link",{key:B,nonce:o.nonce,...Y,crossOrigin:Y.crossOrigin??o.crossOrigin})))}function j1(...i){return f=>{i.forEach(o=>{typeof o=="function"?o(f):o!=null&&(o.current=f)})}}var N1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{N1&&(window.__reactRouterVersion="7.13.1")}catch{}function E1({basename:i,children:f,unstable_useTransitions:o,window:r}){let h=S.useRef();h.current==null&&(h.current=Py({window:r,v5Compat:!0}));let m=h.current,[g,x]=S.useState({action:m.action,location:m.location}),v=S.useCallback(y=>{o===!1?x(y):S.startTransition(()=>x(y))},[o]);return S.useLayoutEffect(()=>m.listen(v),[m,v]),S.createElement(Pg,{basename:i,children:f,location:g.location,navigationType:g.action,navigator:m,unstable_useTransitions:o})}var am=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vt=S.forwardRef(function({onClick:f,discover:o="render",prefetch:r="none",relative:h,reloadDocument:m,replace:g,unstable_mask:x,state:v,target:y,to:j,preventScrollReset:b,viewTransition:T,unstable_defaultShouldRevalidate:R,...z},B){let{basename:Y,navigator:H,unstable_useTransitions:V}=S.useContext(jt),G=typeof j=="string"&&am.test(j),k=Kh(j,Y);j=k.to;let ee=Dg(j,{relative:h}),ie=kt(),F=null;if(x){let Re=xi(x,[],ie.unstable_mask?ie.unstable_mask.pathname:"/",!0);Y!=="/"&&(Re.pathname=Re.pathname==="/"?Y:Kt([Y,Re.pathname])),F=H.createHref(Re)}let[X,se,Te]=p1(r,z),ze=z1(j,{replace:g,unstable_mask:x,state:v,target:y,preventScrollReset:b,relative:h,viewTransition:T,unstable_defaultShouldRevalidate:R,unstable_useTransitions:V});function Qe(Re){f&&f(Re),Re.defaultPrevented||ze(Re)}let ke=!(k.isExternal||m),at=S.createElement("a",{...z,...Te,href:(ke?F:void 0)||k.absoluteURL||ee,onClick:ke?Qe:f,ref:j1(B,se),target:y,"data-discover":!G&&o==="render"?"true":void 0});return X&&!G?S.createElement(S.Fragment,null,at,S.createElement(x1,{page:ee})):at});Vt.displayName="Link";var nm=S.forwardRef(function({"aria-current":f="page",caseSensitive:o=!1,className:r="",end:h=!1,style:m,to:g,viewTransition:x,children:v,...y},j){let b=Jn(g,{relative:y.relative}),T=kt(),R=S.useContext(bi),{navigator:z,basename:B}=S.useContext(jt),Y=R!=null&&R1(b)&&x===!0,H=z.encodeLocation?z.encodeLocation(b).pathname:b.pathname,V=T.pathname,G=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;o||(V=V.toLowerCase(),G=G?G.toLowerCase():null,H=H.toLowerCase()),G&&B&&(G=dl(G,B)||G);const k=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let ee=V===H||!h&&V.startsWith(H)&&V.charAt(k)==="/",ie=G!=null&&(G===H||!h&&G.startsWith(H)&&G.charAt(H.length)==="/"),F={isActive:ee,isPending:ie,isTransitioning:Y},X=ee?f:void 0,se;typeof r=="function"?se=r(F):se=[r,ee?"active":null,ie?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let Te=typeof m=="function"?m(F):m;return S.createElement(Vt,{...y,"aria-current":X,className:se,ref:j,style:Te,to:g,viewTransition:x},typeof v=="function"?v(F):v)});nm.displayName="NavLink";var A1=S.forwardRef(({discover:i="render",fetcherKey:f,navigate:o,reloadDocument:r,replace:h,state:m,method:g=gi,action:x,onSubmit:v,relative:y,preventScrollReset:j,viewTransition:b,unstable_defaultShouldRevalidate:T,...R},z)=>{let{unstable_useTransitions:B}=S.useContext(jt),Y=O1(),H=_1(x,{relative:y}),V=g.toLowerCase()==="get"?"get":"post",G=typeof x=="string"&&am.test(x),k=ee=>{if(v&&v(ee),ee.defaultPrevented)return;ee.preventDefault();let ie=ee.nativeEvent.submitter,F=(ie==null?void 0:ie.getAttribute("formmethod"))||g,X=()=>Y(ie||ee.currentTarget,{fetcherKey:f,method:F,navigate:o,replace:h,state:m,relative:y,preventScrollReset:j,viewTransition:b,unstable_defaultShouldRevalidate:T});B&&o!==!1?S.startTransition(()=>X()):X()};return S.createElement("form",{ref:z,method:V,action:H,onSubmit:r?v:k,...R,"data-discover":!G&&i==="render"?"true":void 0})});A1.displayName="Form";function T1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function um(i){let f=S.useContext(Ka);return _e(f,T1(i)),f}function z1(i,{target:f,replace:o,unstable_mask:r,state:h,preventScrollReset:m,relative:g,viewTransition:x,unstable_defaultShouldRevalidate:v,unstable_useTransitions:y}={}){let j=Si(),b=kt(),T=Jn(i,{relative:g});return S.useCallback(R=>{if(u1(R,f)){R.preventDefault();let z=o!==void 0?o:Kn(b)===Kn(T),B=()=>j(i,{replace:z,unstable_mask:r,state:h,preventScrollReset:m,relative:g,viewTransition:x,unstable_defaultShouldRevalidate:v});y?S.startTransition(()=>B()):B()}},[b,j,T,o,r,h,f,i,m,g,x,v,y])}var C1=0,M1=()=>`__${String(++C1)}__`;function O1(){let{router:i}=um("useSubmit"),{basename:f}=S.useContext(jt),o=kg(),r=i.fetch,h=i.navigate;return S.useCallback(async(m,g={})=>{let{action:x,method:v,encType:y,formData:j,body:b}=c1(m,f);if(g.navigate===!1){let T=g.fetcherKey||M1();await r(T,o,g.action||x,{unstable_defaultShouldRevalidate:g.unstable_defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:j,body:b,formMethod:g.method||v,formEncType:g.encType||y,flushSync:g.flushSync})}else await h(g.action||x,{unstable_defaultShouldRevalidate:g.unstable_defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:j,body:b,formMethod:g.method||v,formEncType:g.encType||y,replace:g.replace,state:g.state,fromRouteId:o,flushSync:g.flushSync,viewTransition:g.viewTransition})},[r,h,f,o])}function _1(i,{relative:f}={}){let{basename:o}=S.useContext(jt),r=S.useContext(Ut);_e(r,"useFormAction must be used inside a RouteContext");let[h]=r.matches.slice(-1),m={...Jn(i||".",{relative:f})},g=kt();if(i==null){m.search=g.search;let x=new URLSearchParams(m.search),v=x.getAll("index");if(v.some(j=>j==="")){x.delete("index"),v.filter(b=>b).forEach(b=>x.append("index",b));let j=x.toString();m.search=j?`?${j}`:""}}return(!i||i===".")&&h.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(m.pathname=m.pathname==="/"?o:Kt([o,m.pathname])),Kn(m)}function R1(i,{relative:f}={}){let o=S.useContext(Jh);_e(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=um("useViewTransitionState"),h=Jn(i,{relative:f});if(!o.isTransitioning)return!1;let m=dl(o.currentLocation.pathname,r)||o.currentLocation.pathname,g=dl(o.nextLocation.pathname,r)||o.nextLocation.pathname;return pi(h.pathname,g)!=null||pi(h.pathname,m)!=null}/**
61
+ * @license lucide-react v0.468.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const D1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),im=(...i)=>i.filter((f,o,r)=>!!f&&f.trim()!==""&&r.indexOf(f)===o).join(" ").trim();/**
66
+ * @license lucide-react v0.468.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */var w1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
71
+ * @license lucide-react v0.468.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const U1=S.forwardRef(({color:i="currentColor",size:f=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:h="",children:m,iconNode:g,...x},v)=>S.createElement("svg",{ref:v,...w1,width:f,height:f,stroke:i,strokeWidth:r?Number(o)*24/Number(f):o,className:im("lucide",h),...x},[...g.map(([y,j])=>S.createElement(y,j)),...Array.isArray(m)?m:[m]]));/**
76
+ * @license lucide-react v0.468.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const le=(i,f)=>{const o=S.forwardRef(({className:r,...h},m)=>S.createElement(U1,{ref:m,iconNode:f,className:im(`lucide-${D1(i)}`,r),...h}));return o.displayName=`${i}`,o};/**
81
+ * @license lucide-react v0.468.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const H1=le("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
86
+ * @license lucide-react v0.468.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const q1=le("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
91
+ * @license lucide-react v0.468.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const B1=le("AtSign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]);/**
96
+ * @license lucide-react v0.468.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const ua=le("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
101
+ * @license lucide-react v0.468.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const sm=le("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
106
+ * @license lucide-react v0.468.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const L1=le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
111
+ * @license lucide-react v0.468.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const cm=le("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
116
+ * @license lucide-react v0.468.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const Ni=le("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
121
+ * @license lucide-react v0.468.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const ar=le("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
126
+ * @license lucide-react v0.468.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Hh=le("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
131
+ * @license lucide-react v0.468.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const nr=le("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
136
+ * @license lucide-react v0.468.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Y1=le("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
141
+ * @license lucide-react v0.468.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const qh=le("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
146
+ * @license lucide-react v0.468.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const G1=le("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
151
+ * @license lucide-react v0.468.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const X1=le("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
156
+ * @license lucide-react v0.468.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const Q1=le("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
161
+ * @license lucide-react v0.468.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const Yt=le("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
166
+ * @license lucide-react v0.468.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const Z1=le("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
171
+ * @license lucide-react v0.468.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const rm=le("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
176
+ * @license lucide-react v0.468.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const V1=le("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
181
+ * @license lucide-react v0.468.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const K1=le("MessageSquareMore",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M16 10h.01",key:"1m94wz"}]]);/**
186
+ * @license lucide-react v0.468.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const Ei=le("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
191
+ * @license lucide-react v0.468.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const k1=le("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]);/**
196
+ * @license lucide-react v0.468.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const J1=le("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
201
+ * @license lucide-react v0.468.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const Bh=le("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
206
+ * @license lucide-react v0.468.0 - ISC
207
+ *
208
+ * This source code is licensed under the ISC license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */const Lh=le("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
211
+ * @license lucide-react v0.468.0 - ISC
212
+ *
213
+ * This source code is licensed under the ISC license.
214
+ * See the LICENSE file in the root directory of this source tree.
215
+ */const Ai=le("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
216
+ * @license lucide-react v0.468.0 - ISC
217
+ *
218
+ * This source code is licensed under the ISC license.
219
+ * See the LICENSE file in the root directory of this source tree.
220
+ */const ia=le("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
221
+ * @license lucide-react v0.468.0 - ISC
222
+ *
223
+ * This source code is licensed under the ISC license.
224
+ * See the LICENSE file in the root directory of this source tree.
225
+ */const dr=le("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
226
+ * @license lucide-react v0.468.0 - ISC
227
+ *
228
+ * This source code is licensed under the ISC license.
229
+ * See the LICENSE file in the root directory of this source tree.
230
+ */const $1=le("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
231
+ * @license lucide-react v0.468.0 - ISC
232
+ *
233
+ * This source code is licensed under the ISC license.
234
+ * See the LICENSE file in the root directory of this source tree.
235
+ */const fm=le("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
236
+ * @license lucide-react v0.468.0 - ISC
237
+ *
238
+ * This source code is licensed under the ISC license.
239
+ * See the LICENSE file in the root directory of this source tree.
240
+ */const om=le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
241
+ * @license lucide-react v0.468.0 - ISC
242
+ *
243
+ * This source code is licensed under the ISC license.
244
+ * See the LICENSE file in the root directory of this source tree.
245
+ */const hr=le("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
246
+ * @license lucide-react v0.468.0 - ISC
247
+ *
248
+ * This source code is licensed under the ISC license.
249
+ * See the LICENSE file in the root directory of this source tree.
250
+ */const W1=le("ShieldOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]);/**
251
+ * @license lucide-react v0.468.0 - ISC
252
+ *
253
+ * This source code is licensed under the ISC license.
254
+ * See the LICENSE file in the root directory of this source tree.
255
+ */const F1=le("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
256
+ * @license lucide-react v0.468.0 - ISC
257
+ *
258
+ * This source code is licensed under the ISC license.
259
+ * See the LICENSE file in the root directory of this source tree.
260
+ */const I1=le("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
261
+ * @license lucide-react v0.468.0 - ISC
262
+ *
263
+ * This source code is licensed under the ISC license.
264
+ * See the LICENSE file in the root directory of this source tree.
265
+ */const P1=le("ToggleRight",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]]);/**
266
+ * @license lucide-react v0.468.0 - ISC
267
+ *
268
+ * This source code is licensed under the ISC license.
269
+ * See the LICENSE file in the root directory of this source tree.
270
+ */const mr=le("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
271
+ * @license lucide-react v0.468.0 - ISC
272
+ *
273
+ * This source code is licensed under the ISC license.
274
+ * See the LICENSE file in the root directory of this source tree.
275
+ */const ev=le("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
276
+ * @license lucide-react v0.468.0 - ISC
277
+ *
278
+ * This source code is licensed under the ISC license.
279
+ * See the LICENSE file in the root directory of this source tree.
280
+ */const Ti=le("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
281
+ * @license lucide-react v0.468.0 - ISC
282
+ *
283
+ * This source code is licensed under the ISC license.
284
+ * See the LICENSE file in the root directory of this source tree.
285
+ */const dm=le("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
286
+ * @license lucide-react v0.468.0 - ISC
287
+ *
288
+ * This source code is licensed under the ISC license.
289
+ * See the LICENSE file in the root directory of this source tree.
290
+ */const hm=le("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
291
+ * @license lucide-react v0.468.0 - ISC
292
+ *
293
+ * This source code is licensed under the ISC license.
294
+ * See the LICENSE file in the root directory of this source tree.
295
+ */const tv=le("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);let lv=0;function Yh(){return`op-${++lv}-${Date.now().toString(36)}`}const av="openclaw-operator-ui";class nv{constructor(f,o){Dt(this,"ws",null);Dt(this,"pending",new Map);Dt(this,"eventHandlers",new Map);Dt(this,"closed",!1);Dt(this,"connectSent",!1);Dt(this,"connectTimer",null);Dt(this,"_connected",!1);Dt(this,"_snapshot",null);Dt(this,"reconnectTimer",null);Dt(this,"onConnectedChange");Dt(this,"onConnectError");this.url=f,this.password=o}get connected(){return this._connected}get snapshot(){return this._snapshot}setCallbacks(f){this.onConnectedChange=f.onConnectedChange,this.onConnectError=f.onConnectError}start(){this.closed=!1,this.doConnect()}stop(){var f;this.closed=!0,this._connected=!1,this.reconnectTimer!==null&&(window.clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.connectTimer!==null&&(window.clearTimeout(this.connectTimer),this.connectTimer=null),(f=this.ws)==null||f.close(),this.ws=null;for(const[,o]of this.pending)o.reject(new Error("client stopped"));this.pending.clear()}on(f,o){let r=this.eventHandlers.get(f);return r||(r=new Set,this.eventHandlers.set(f,r)),r.add(o),()=>r.delete(o)}async request(f,o){if(!this.ws||this.ws.readyState!==WebSocket.OPEN||!this._connected)throw new Error("gateway not connected");const r=Yh(),h={type:"req",id:r,method:f,params:o};return new Promise((m,g)=>{this.pending.set(r,{resolve:x=>m(x),reject:g}),this.ws.send(JSON.stringify(h))})}doConnect(){if(this.closed)return;const f=new WebSocket(this.url);this.ws=f,this.connectSent=!1,f.addEventListener("open",()=>{this.ws===f&&this.scheduleConnect()}),f.addEventListener("message",o=>{this.ws===f&&this.handleMessage(String(o.data??""))}),f.addEventListener("close",o=>{var h;if(this.ws!==f)return;this.ws=null;const r=this._connected;this._connected=!1,r&&((h=this.onConnectedChange)==null||h.call(this,!1));for(const[,m]of this.pending)m.reject(new Error(`closed: ${o.code}`));this.pending.clear(),this.closed||(this.reconnectTimer=window.setTimeout(()=>this.doConnect(),2e3))}),f.addEventListener("error",()=>{})}scheduleConnect(){this.connectTimer!==null&&window.clearTimeout(this.connectTimer),this.connectTimer=window.setTimeout(()=>{this.sendConnect()},100)}async sendConnect(){var o,r,h;if(this.connectSent||!this.ws||this.ws.readyState!==WebSocket.OPEN)return;this.connectSent=!0,this.connectTimer!==null&&(window.clearTimeout(this.connectTimer),this.connectTimer=null);const f={minProtocol:3,maxProtocol:3,client:{id:av,version:"0.1.0",platform:navigator.platform??"web",mode:"ui"},role:"operator",scopes:["operator.admin","operator.approvals","operator.pairing"],caps:[],auth:{password:this.password},userAgent:navigator.userAgent,locale:navigator.language};try{const m=await this.request_internal("connect",f);this._connected=!0,this._snapshot=(m==null?void 0:m.snapshot)??null,(o=this.onConnectedChange)==null||o.call(this,!0)}catch(m){const g=m instanceof Error?m.message:"connect failed";(r=this.onConnectError)==null||r.call(this,g),(h=this.ws)==null||h.close(4008,"connect failed")}}async request_internal(f,o){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("gateway not connected");const r=Yh(),h={type:"req",id:r,method:f,params:o};return new Promise((m,g)=>{this.pending.set(r,{resolve:x=>m(x),reject:g}),this.ws.send(JSON.stringify(h))})}handleMessage(f){var h;let o;try{o=JSON.parse(f)}catch{return}const r=o;if(r.type==="event"){const m=o;if(m.event==="connect.challenge"){const v=m.payload;v!=null&&v.nonce&&(this.connectSent=!1,this.sendConnect());return}const g=this.eventHandlers.get(m.event);if(g)for(const v of g)try{v(m.payload)}catch{}const x=this.eventHandlers.get("*");if(x)for(const v of x)try{v(m)}catch{}return}if(r.type==="res"){const m=o,g=this.pending.get(m.id);if(!g)return;this.pending.delete(m.id),m.ok?g.resolve(m.payload):g.reject(new Error(((h=m.error)==null?void 0:h.message)??"request failed"))}}}const mm=S.createContext({authenticated:!1,connected:!1,connecting:!1,error:null,gateway:null,login:()=>{},logout:()=>{}});function Be(){return S.useContext(mm)}function uv(){return`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}`}const mi="operator-ui-auth";function iv({children:i}){const[f,o]=S.useState(!1),[r,h]=S.useState(!1),[m,g]=S.useState(!1),[x,v]=S.useState(null),y=S.useRef(null),j=S.useRef(null);S.useEffect(()=>{const R=sessionStorage.getItem(mi);return R&&b(R),()=>{var z;(z=y.current)==null||z.stop()}},[]);const b=S.useCallback(R=>{var B;(B=y.current)==null||B.stop(),g(!0),v(null),j.current=R;const z=new nv(uv(),R);y.current=z,z.setCallbacks({onConnectedChange:Y=>{g(!1),h(Y),Y&&(o(!0),v(null),sessionStorage.setItem(mi,R))},onConnectError:Y=>{g(!1),h(!1),(Y.includes("unauthorized")||Y.includes("password"))&&(o(!1),sessionStorage.removeItem(mi)),v(Y)}}),z.start()},[]),T=S.useCallback(()=>{var R;(R=y.current)==null||R.stop(),y.current=null,j.current=null,o(!1),h(!1),v(null),sessionStorage.removeItem(mi)},[]);return s.jsx(mm.Provider,{value:{authenticated:f,connected:r,connecting:m,error:x,gateway:y.current,login:b,logout:T},children:i})}function ym(i){var f,o,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var h=i.length;for(f=0;f<h;f++)i[f]&&(o=ym(i[f]))&&(r&&(r+=" "),r+=o)}else for(o in i)i[o]&&(r&&(r+=" "),r+=o);return r}function wt(){for(var i,f,o=0,r="",h=arguments.length;o<h;o++)(i=arguments[o])&&(f=ym(i))&&(r&&(r+=" "),r+=f);return r}const sv=[{to:"/",icon:Q1,label:"Dashboard",end:!0},{to:"/agents",icon:ua,label:"Agents"},{to:"/channels",icon:ia,label:"Channels"},{to:"/groups",icon:Ti,label:"Groups"},{to:"/skills",icon:Ai,label:"Skills"},{to:"/sessions",icon:Ei,label:"Sessions"},{to:"/cron",icon:nr,label:"Cron"},{to:"/settings",icon:hr,label:"Settings"}];function cv(){return s.jsxs("aside",{className:"flex w-60 shrink-0 flex-col border-r border-surface-200 bg-white",children:[s.jsxs("div",{className:"flex h-14 items-center gap-2.5 border-b border-surface-200 px-5",children:[s.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary-600",children:s.jsx("span",{className:"text-sm font-bold text-white",children:"O"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-semibold text-surface-900",children:"Operator"}),s.jsx("p",{className:"text-[10px] font-medium text-surface-400",children:"OpenClaw"})]})]}),s.jsx("nav",{className:"flex-1 space-y-0.5 p-3",children:sv.map(({to:i,icon:f,label:o,...r})=>s.jsxs(nm,{to:i,end:"end"in r,className:({isActive:h})=>wt("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",h?"bg-primary-50 text-primary-700":"text-surface-600 hover:bg-surface-50 hover:text-surface-900"),children:[s.jsx(f,{className:"h-4 w-4"}),o]},i))}),s.jsx("div",{className:"border-t border-surface-200 p-3",children:s.jsx("p",{className:"px-3 text-[10px] text-surface-400",children:"v0.1.0 ยท OpenClaw Operator"})})]})}function rv(){const{logout:i,connected:f}=Be();return s.jsxs("div",{className:"flex h-screen overflow-hidden bg-surface-50",children:[s.jsx(cv,{}),s.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[s.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-end gap-3 border-b border-surface-200 bg-white px-6",children:[s.jsx("div",{className:"flex items-center gap-2 text-xs",children:f?s.jsxs("span",{className:"badge-green",children:[s.jsx(hm,{className:"mr-1 h-3 w-3"}),"Connected"]}):s.jsxs("span",{className:"badge-red",children:[s.jsx(dm,{className:"mr-1 h-3 w-3"}),"Reconnectingโ€ฆ"]})}),s.jsx("button",{onClick:i,className:"btn-ghost !px-2 !py-1.5 text-surface-500 hover:text-surface-700",children:s.jsx(rm,{className:"h-4 w-4"})})]}),s.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:s.jsx(Ig,{})})]})]})}function hl({title:i,description:f,actions:o}){return s.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-semibold text-surface-900",children:i}),f&&s.jsx("p",{className:"mt-1 text-sm text-surface-500",children:f})]}),o&&s.jsx("div",{className:"flex items-center gap-2",children:o})]})}function fv(){const{gateway:i}=Be(),f=Si(),[o,r]=S.useState(!1),[h,m]=S.useState(null),[g,x]=S.useState({name:"",identity:"",emoji:""});function v(j,b){x(T=>({...T,[j]:b}))}async function y(j){if(j.preventDefault(),!!i){if(!g.name.trim()){m("Agent name is required");return}r(!0),m(null);try{const b=await i.request("agents.create",{name:g.name.trim(),workspace:g.name.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),emoji:g.emoji.trim()||void 0}),T=b==null?void 0:b.agentId;T&&g.identity.trim()&&await i.request("agents.files.set",{agentId:T,name:"AGENTS.md",content:g.identity.trim()}),f(`/agents/${T??""}`)}catch(b){m(b instanceof Error?b.message:"Failed to create agent"),r(!1)}}}return s.jsxs("div",{className:"mx-auto max-w-2xl",children:[s.jsx(hl,{title:"Create Agent",description:"Set up a new AI agent"}),s.jsxs("form",{onSubmit:y,className:"card space-y-5",children:[s.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Agent Name *"}),s.jsx("input",{className:"input",placeholder:"e.g. Support Assistant",value:g.name,onChange:j=>v("name",j.target.value)}),s.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"The display name for this agent"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Emoji"}),s.jsx("input",{className:"input",placeholder:"e.g. ๐Ÿค–",value:g.emoji,onChange:j=>v("emoji",j.target.value)}),s.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"Optional icon for the agent"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Identity / System Prompt"}),s.jsx("textarea",{className:"input min-h-[120px] resize-y",placeholder:"Describe the agent's personality, role, and behavior...",value:g.identity,onChange:j=>v("identity",j.target.value)}),s.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"This will be saved as the agent's AGENTS.md file"})]}),h&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-3 text-sm text-red-700",children:[s.jsx(Ni,{className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{children:h})]}),s.jsxs("div",{className:"flex justify-end gap-3 border-t border-surface-100 pt-5",children:[s.jsx("button",{type:"button",onClick:()=>f("/agents"),className:"btn-secondary",children:"Cancel"}),s.jsxs("button",{type:"submit",disabled:o,className:"btn-primary",children:[o?s.jsx(Yt,{className:"h-4 w-4 animate-spin"}):null,"Create Agent"]})]})]})]})}function lt({className:i}){return s.jsx("div",{className:wt("flex items-center justify-center py-12",i),children:s.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-surface-200 border-t-primary-600"})})}const gm=["settings","channels","groups","tools","skills","sessions","usage","chat"],ov={settings:{label:"Settings",icon:hr},channels:{label:"Channels",icon:ia},groups:{label:"Groups",icon:Ti},tools:{label:"Tools",icon:tv},skills:{label:"Skills",icon:Ai},sessions:{label:"Sessions",icon:Ei},usage:{label:"Usage",icon:sm},chat:{label:"Test Chat",icon:V1}},Ll=[{name:"IDENTITY.md",label:"Identity",description:"Agent name, style, emoji and persona basics",core:!0},{name:"SOUL.md",label:"Soul / Personality",description:"Character boundaries, tone, voice and behavioral rules",core:!0},{name:"AGENTS.md",label:"Instructions",description:"Operating instructions, memory usage guidelines and core directives",core:!0},{name:"TOOLS.md",label:"Tool Guidelines",description:"Custom tool usage conventions and constraints"},{name:"USER.md",label:"User Profile",description:"User preferences, preferred name and context"},{name:"MEMORY.md",label:"Long-term Memory",description:"Curated persistent memory across sessions"},{name:"HEARTBEAT.md",label:"Heartbeat Checklist",description:"Optional checklist for periodic heartbeat runs"},{name:"BOOTSTRAP.md",label:"Bootstrap (One-time)",description:"First-run ceremony script, deleted after initial setup"}];function dv({agentId:i,meta:f,initialContent:o,initialMissing:r}){const{gateway:h}=Be(),[m,g]=S.useState(o),[x,v]=S.useState(!1),[y,j]=S.useState("idle"),[b,T]=S.useState(!1);async function R(){if(h){v(!0),j("idle");try{await h.request("agents.files.set",{agentId:i,name:f.name,content:m}),j("saved"),T(!1),setTimeout(()=>j("idle"),2500)}catch{j("error")}v(!1)}}return s.jsxs("div",{className:"card",children:[s.jsx("div",{className:"mb-3 flex items-center justify-between",children:s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:f.label}),s.jsx("code",{className:"rounded bg-surface-100 px-1.5 py-0.5 text-[10px] font-mono text-surface-500",children:f.name}),r&&!b&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5 text-[10px] text-surface-400",children:"Not created"}),b&&s.jsx("span",{className:"rounded bg-amber-50 px-1.5 py-0.5 text-[10px] text-amber-600",children:"Unsaved"})]}),s.jsx("p",{className:"mt-0.5 text-xs text-surface-400",children:f.description})]})}),s.jsx("textarea",{className:"input min-h-[160px] resize-y font-mono text-xs leading-relaxed",value:m,onChange:z=>{g(z.target.value),T(!0),j("idle")},placeholder:`Write ${f.label.toLowerCase()} content here...`,spellCheck:!1}),s.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[s.jsxs("button",{onClick:R,disabled:x||!b,className:"btn-primary !py-1.5 !text-xs",children:[x?s.jsx(Yt,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(fm,{className:"h-3.5 w-3.5"}),"Save"]}),y==="saved"&&s.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),y==="error"&&s.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]})]})}function hv({agentId:i}){const{gateway:f,connected:o}=Be(),[r,h]=S.useState(new Map),[m,g]=S.useState(!0),[x,v]=S.useState(!1);if(S.useEffect(()=>{if(!f||!o)return;const R=new Map;f.request("agents.files.list",{agentId:i}).then(async z=>{const B=Array.isArray(z==null?void 0:z.files)?z.files:[];for(const G of B)R.set(G.name,G);const H=Ll.map(G=>G.name).filter(G=>!R.has(G)||R.get(G).content===void 0),V=await Promise.allSettled(H.map(G=>f.request("agents.files.get",{agentId:i,name:G}).then(k=>({name:G,file:k==null?void 0:k.file}))));for(const G of V)G.status==="fulfilled"&&G.value.file&&R.set(G.value.name,G.value.file);for(const G of Ll)R.has(G.name)||R.set(G.name,{name:G.name,missing:!0,content:""});h(R)}).catch(()=>{}).finally(()=>g(!1))},[f,o,i]),m)return s.jsx(lt,{});const y=Ll.filter(R=>R.core),b=x?Ll:y,T={total:Ll.length,created:Ll.filter(R=>{const z=r.get(R.name);return z&&!z.missing}).length};return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("p",{className:"text-sm text-surface-500",children:x?"All workspace files":"Core configuration files"}),s.jsxs("span",{className:"text-xs text-surface-400",children:[T.created," / ",T.total," files active"]})]}),s.jsxs("button",{onClick:()=>v(!x),className:wt("flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-xs font-medium transition-colors",x?"bg-primary-50 text-primary-700 hover:bg-primary-100":"bg-surface-100 text-surface-600 hover:bg-surface-200"),children:[s.jsx(hr,{className:"h-3.5 w-3.5"}),x?"Advanced Mode":"Basic Mode"]})]}),!x&&s.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-200 p-3 text-xs text-surface-500",children:["Showing the 3 core files that define your agent's behavior. Switch to"," ",s.jsx("strong",{children:"Advanced Mode"})," to edit all ",Ll.length," workspace files including tools, memory, heartbeat, and bootstrap."]}),s.jsx("div",{className:"space-y-4",children:b.map(R=>{const z=r.get(R.name);return s.jsx(dv,{agentId:i,meta:R,initialContent:(z==null?void 0:z.content)??"",initialMissing:(z==null?void 0:z.missing)??!0},R.name)})}),x&&s.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-200 p-3",children:[s.jsx("h4",{className:"text-xs font-semibold text-surface-700 mb-2",children:"File Reference"}),s.jsx("div",{className:"grid gap-1.5 sm:grid-cols-2 text-[11px] text-surface-500",children:Ll.map(R=>{const z=r.get(R.name),B=z&&!z.missing;return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:wt("h-1.5 w-1.5 rounded-full",B?"bg-emerald-500":"bg-surface-300")}),s.jsx("span",{className:"font-mono",children:R.name}),B&&(z==null?void 0:z.size)!=null&&s.jsxs("span",{className:"text-surface-400",children:["(",z.size,"B)"]})]},R.name)})})]})]})}function mv({agentId:i}){const{gateway:f,connected:o}=Be(),[r,h]=S.useState([]),[m,g]=S.useState([]),[x,v]=S.useState(!0);if(S.useEffect(()=>{!f||!o||Promise.all([f.request("config.get").then(j=>{var T;const b=(T=j==null?void 0:j.config)==null?void 0:T.bindings;return Array.isArray(b)?b:[]}),f.request("channels.status",{}).then(j=>{const b=j==null?void 0:j.channels;return b&&typeof b=="object"?Object.keys(b):[]})]).then(([j,b])=>{h(j),g(b),v(!1)}).catch(()=>v(!1))},[f,o]),x)return s.jsx(lt,{});const y=r.filter(j=>j.agentId===i);return s.jsxs("div",{children:[s.jsx("div",{className:"mb-4 flex items-center justify-between",children:s.jsxs("p",{className:"text-sm text-surface-500",children:["Channels bound to this agent via"," ",s.jsx("code",{className:"rounded bg-surface-100 px-1 font-mono text-xs",children:"bindings"})]})}),y.length===0?s.jsx("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-8 text-center text-sm text-surface-400",children:"No channel bindings for this agent. Configure bindings in Settings โ†’ Config."}):s.jsx("div",{className:"space-y-2",children:y.map((j,b)=>s.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-surface-200 p-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(ia,{className:"h-4 w-4 text-surface-500"}),s.jsx("span",{className:"text-sm font-medium",children:j.match.channel})]}),j.match.peer&&s.jsxs("span",{className:"badge-gray",children:[j.match.peer.kind,": ",j.match.peer.id]})]},b))}),s.jsxs("div",{className:"mt-4 rounded-lg bg-surface-50 p-3 text-xs text-surface-500",children:["Available channels: ",m.join(", ")||"None"]})]})}function yv({agentId:i}){const{gateway:f,connected:o}=Be(),[r,h]=S.useState(null),[m,g]=S.useState(!0);if(S.useEffect(()=>{!f||!o||f.request("config.get").then(j=>h((j==null?void 0:j.config)??null)).catch(()=>{}).finally(()=>g(!1))},[f,o]),m)return s.jsx(lt,{});const x=r==null?void 0:r.bindings,y=(Array.isArray(x)?x:[]).filter(j=>{var b;return j.agentId===i&&((b=j.match.peer)==null?void 0:b.kind)==="group"});return s.jsxs("div",{children:[s.jsx("p",{className:"mb-4 text-sm text-surface-500",children:"Groups routed to this agent"}),y.length===0?s.jsx("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-8 text-center text-sm text-surface-400",children:"No group bindings for this agent"}):s.jsx("div",{className:"space-y-2",children:y.map((j,b)=>s.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-surface-200 p-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Ti,{className:"h-4 w-4 text-surface-500"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:j.match.peer.id}),s.jsx("p",{className:"text-xs text-surface-400",children:j.match.channel})]})]}),s.jsx("span",{className:"badge-primary",children:"Group"})]},b))})]})}function gv({agentId:i}){const{gateway:f,connected:o}=Be(),[r,h]=S.useState([]),[m,g]=S.useState(!0);return S.useEffect(()=>{!f||!o||f.request("tools.catalog",{agentId:i}).then(x=>{const y=(Array.isArray(x==null?void 0:x.groups)?x.groups:[]).flatMap(j=>Array.isArray(j.tools)?j.tools:[]);h(y)}).catch(()=>{}).finally(()=>g(!1))},[f,o,i]),m?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Tools available to this agent (",r.length,")"]}),s.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[r.map(x=>s.jsxs("div",{className:"rounded-lg border border-surface-200 p-3",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:x.label||x.id}),x.description&&s.jsx("p",{className:"mt-0.5 text-xs text-surface-400 line-clamp-2",children:x.description}),x.pluginId&&s.jsxs("p",{className:"mt-1 text-[10px] text-surface-400",children:["Plugin: ",x.pluginId]})]},x.id)),r.length===0&&s.jsx("p",{className:"col-span-2 py-8 text-center text-sm text-surface-400",children:"No tools data available"})]})]})}function vv({agentId:i}){const{gateway:f,connected:o}=Be(),[r,h]=S.useState([]),[m,g]=S.useState(!0);return S.useEffect(()=>{!f||!o||f.request("skills.status",{agentId:i}).then(x=>h(Array.isArray(x==null?void 0:x.skills)?x.skills:[])).catch(()=>{}).finally(()=>g(!1))},[f,o,i]),m?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Skills for this agent (",r.length,")"]}),s.jsxs("div",{className:"space-y-2",children:[r.map(x=>{const v=x.eligible&&!x.disabled&&!x.blockedByAllowlist;return s.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-surface-200 p-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[x.emoji?s.jsx("span",{className:"text-lg",children:x.emoji}):s.jsx(Ai,{className:"h-4 w-4 text-surface-500"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:x.name}),x.description&&s.jsx("p",{className:"text-xs text-surface-400 line-clamp-1",children:x.description}),s.jsxs("p",{className:"text-[10px] text-surface-400 font-mono",children:[x.skillKey," ยท ",x.source]})]})]}),v?s.jsx("span",{className:"badge-green",children:"Enabled"}):x.disabled?s.jsx("span",{className:"badge-gray",children:"Disabled"}):x.blockedByAllowlist?s.jsx("span",{className:"rounded bg-amber-50 px-2 py-0.5 text-xs text-amber-600",children:"Blocked"}):s.jsx("span",{className:"badge-gray",children:"Ineligible"})]},x.skillKey)}),r.length===0&&s.jsx("p",{className:"py-8 text-center text-sm text-surface-400",children:"No skills data available"})]})]})}function pv({agentId:i}){const{gateway:f,connected:o}=Be(),[r,h]=S.useState([]),[m,g]=S.useState(!0);return S.useEffect(()=>{!f||!o||f.request("sessions.list",{agentId:i}).then(x=>h(Array.isArray(x==null?void 0:x.sessions)?x.sessions:[])).catch(()=>{}).finally(()=>g(!1))},[f,o,i]),m?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsx("p",{className:"mb-4 text-sm text-surface-500",children:"Active sessions for this agent"}),s.jsxs("div",{className:"space-y-2",children:[r.map(x=>s.jsxs("div",{className:"rounded-lg border border-surface-200 p-3",children:[s.jsx("p",{className:"text-sm font-mono text-surface-700",children:x.key}),s.jsxs("div",{className:"mt-1 flex items-center gap-4 text-xs text-surface-400",children:[x.messageCount!=null&&s.jsxs("span",{children:[x.messageCount," messages"]}),x.lastActiveAt&&s.jsxs("span",{children:["Last active: ",x.lastActiveAt]})]})]},x.key)),r.length===0&&s.jsx("p",{className:"py-8 text-center text-sm text-surface-400",children:"No active sessions"})]})]})}function xv(){return s.jsxs("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-12 text-center",children:[s.jsx(sm,{className:"mx-auto h-8 w-8 text-surface-300"}),s.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"Usage statistics coming soon"})]})}function Vn(i){if(!i)return"";if(typeof i=="string")return i;if(Array.isArray(i))return i.map(o=>{if(typeof o=="string")return o;if(o&&typeof o=="object"){const r=o;if(typeof r.text=="string")return r.text;if(typeof r.content=="string")return r.content}return""}).filter(Boolean).join("");const f=i;return typeof f.text=="string"?f.text:typeof f.content=="string"?f.content:Array.isArray(f.content)?Vn(f.content):""}function bv({agentId:i}){const{gateway:f,connected:o}=Be(),[r,h]=S.useState(""),[m,g]=S.useState([]),[x,v]=S.useState(!1),[y,j]=S.useState(""),b=`agent:${i}:operator-ui-test`,T=S.useRef(null),R=S.useRef(null),z=S.useRef("");S.useEffect(()=>{!f||!o||f.request("chat.history",{sessionKey:b,limit:50}).then(H=>{if(!Array.isArray(H==null?void 0:H.messages))return;const V=[];for(const G of H.messages){const k=G,ee=k.role==="user"?"user":k.role==="assistant"?"assistant":null;if(!ee)continue;const ie=Vn(k.content??k.text??k.message??"");ie&&V.push({role:ee,content:ie})}V.length>0&&g(V)}).catch(()=>{})},[f,o,i]),S.useEffect(()=>f?f.on("chat",V=>{const G=V;if(!(!G.runId||G.runId!==T.current))if(G.state==="delta"){const k=Vn(G.message);k&&(z.current+=k,j(z.current))}else if(G.state==="final"){const k=Vn(G.message)||z.current;T.current=null,z.current="",j(""),v(!1),k&&g(ee=>[...ee,{role:"assistant",content:k}])}else G.state==="error"?(T.current=null,z.current="",j(""),v(!1),g(k=>[...k,{role:"error",content:G.errorMessage??"Agent error"}])):G.state==="aborted"&&(T.current=null,z.current="",j(""),v(!1),g(k=>[...k,{role:"system",content:"Run was aborted"}]))}):void 0,[f]),S.useEffect(()=>{var H;(H=R.current)==null||H.scrollTo({top:R.current.scrollHeight,behavior:"smooth"})},[m,y]);async function B(){if(!r.trim()||x||!f)return;const H=r.trim();h(""),g(G=>[...G,{role:"user",content:H}]),v(!0),z.current="",j("");const V=`op-chat-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;try{const G=await f.request("chat.send",{sessionKey:b,message:H,idempotencyKey:V});if((G==null?void 0:G.status)==="error"){v(!1),g(k=>[...k,{role:"error",content:G.summary??"Failed to start"}]);return}T.current=(G==null?void 0:G.runId)??V,setTimeout(()=>{T.current&&f.request("chat.history",{sessionKey:b,limit:5}).then(k=>{if(!T.current||!Array.isArray(k==null?void 0:k.messages))return;const ee=k.messages[k.messages.length-1];if((ee==null?void 0:ee.role)==="assistant"){const ie=Vn(ee.content??ee.text??"");ie&&(T.current=null,z.current="",j(""),v(!1),g(F=>[...F,{role:"assistant",content:ie}]))}}).catch(()=>{})},15e3)}catch(G){v(!1),g(k=>[...k,{role:"error",content:G instanceof Error?G.message:"Failed"}])}}function Y(){f&&(f.request("sessions.reset",{key:b}).catch(()=>{}),g([]),j(""))}return s.jsxs("div",{className:"flex h-[500px] flex-col rounded-xl border border-surface-200",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-surface-100 px-4 py-2",children:[s.jsx("p",{className:"text-xs text-surface-400 font-mono",children:b}),s.jsx("button",{onClick:Y,className:"text-xs text-surface-400 hover:text-red-600 transition-colors",children:"Clear history"})]}),s.jsxs("div",{ref:R,className:"flex-1 overflow-y-auto p-4 space-y-3",children:[m.length===0&&!y&&s.jsx("p",{className:"py-12 text-center text-sm text-surface-400",children:"Send a message to test this agent"}),m.map((H,V)=>s.jsx("div",{className:wt("max-w-[80%] rounded-lg px-4 py-2.5 text-sm whitespace-pre-wrap",H.role==="user"?"ml-auto bg-primary-600 text-white":H.role==="error"?"bg-red-50 text-red-700":H.role==="system"?"mx-auto bg-surface-50 text-surface-500 text-center text-xs":"bg-surface-100 text-surface-900"),children:H.content},V)),y&&s.jsxs("div",{className:"max-w-[80%] rounded-lg px-4 py-2.5 text-sm bg-surface-100 text-surface-900 whitespace-pre-wrap",children:[y,s.jsx("span",{className:"inline-block w-1.5 h-4 bg-primary-500 animate-pulse ml-0.5 align-text-bottom"})]}),x&&!y&&s.jsxs("div",{className:"max-w-[80%] rounded-lg px-4 py-2.5 text-sm bg-surface-100 text-surface-400 flex items-center gap-2",children:[s.jsx(Yt,{className:"h-3.5 w-3.5 animate-spin"}),"Thinking..."]})]}),s.jsxs("div",{className:"border-t border-surface-200 p-3 flex gap-2",children:[s.jsx("input",{className:"input flex-1",placeholder:"Type a message...",value:r,onChange:H=>h(H.target.value),onKeyDown:H=>H.key==="Enter"&&!H.shiftKey&&B(),disabled:x}),s.jsx("button",{onClick:B,disabled:x||!r.trim(),className:"btn-primary",children:x?s.jsx(Yt,{className:"h-4 w-4 animate-spin"}):"Send"})]})]})}function Sv(i,f){const o=`/agents/${f}`,r=i.startsWith(o)?i.slice(o.length).replace(/^\//,""):"";return r&&gm.includes(r)?r:"settings"}function jv({tab:i,agentId:f}){switch(i){case"settings":return s.jsx(hv,{agentId:f});case"channels":return s.jsx(mv,{agentId:f});case"groups":return s.jsx(yv,{agentId:f});case"tools":return s.jsx(gv,{agentId:f});case"skills":return s.jsx(vv,{agentId:f});case"sessions":return s.jsx(pv,{agentId:f});case"usage":return s.jsx(xv,{});case"chat":return s.jsx(bv,{agentId:f})}}function Gh(){var B;const{agentId:i}=qg(),f=kt(),o=Si(),{gateway:r,connected:h}=Be(),[m,g]=S.useState(null),[x,v]=S.useState(!0),[y,j]=S.useState(!1),b=Sv(f.pathname,i??""),T=S.useCallback(()=>{!r||!h||r.request("agents.list",{}).then(Y=>{const V=(Array.isArray(Y==null?void 0:Y.agents)?Y.agents:[]).find(G=>G.id===i);g(V??null)}).catch(()=>{}).finally(()=>v(!1))},[r,h,i]);if(S.useEffect(()=>{T()},[T]),x)return s.jsx(lt,{});if(!m)return s.jsxs("div",{className:"flex flex-col items-center py-20",children:[s.jsx(Ni,{className:"h-8 w-8 text-surface-300"}),s.jsxs("p",{className:"mt-2 text-sm text-surface-500",children:['Agent "',i,'" not found']})]});async function R(){if(!(!r||!confirm(`Delete agent "${i}"? This cannot be undone.`))){j(!0);try{await r.request("agents.delete",{id:i}),o("/agents",{replace:!0})}catch{j(!1)}}}function z(Y){const H=`/agents/${i}`;o(Y==="settings"?H:`${H}/${Y}`)}return s.jsxs("div",{children:[s.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary-100",children:s.jsx(ua,{className:"h-6 w-6 text-primary-600"})}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-semibold text-surface-900",children:((B=m.identity)==null?void 0:B.name)||m.name||m.id}),s.jsxs("p",{className:"text-sm text-surface-400",children:["ID: ",s.jsx("code",{className:"font-mono",children:m.id}),m.model&&s.jsxs(s.Fragment,{children:[" ยท Model: ",m.model]})]})]})]}),s.jsxs("button",{onClick:R,disabled:y,className:"btn-ghost text-red-600 hover:text-red-700 hover:bg-red-50",children:[s.jsx(mr,{className:"h-4 w-4"}),"Delete"]})]}),s.jsx("div",{className:"mb-6 flex gap-1 overflow-x-auto border-b border-surface-200",children:gm.map(Y=>{const{label:H,icon:V}=ov[Y],G=Y===b;return s.jsxs("button",{onClick:()=>z(Y),className:wt("flex items-center gap-2 whitespace-nowrap border-b-2 px-4 py-2.5 text-sm font-medium transition-colors",G?"border-primary-600 text-primary-600":"border-transparent text-surface-500 hover:text-surface-700"),children:[s.jsx(V,{className:"h-4 w-4"}),H]},Y)})}),s.jsx(jv,{tab:b,agentId:i})]})}function yr({icon:i,title:f,description:o,action:r}){return s.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border-2 border-dashed border-surface-200 py-16",children:[s.jsx("div",{className:"mb-4 text-surface-300",children:i}),s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:f}),s.jsx("p",{className:"mt-1 text-sm text-surface-500",children:o}),r&&s.jsx("div",{className:"mt-4",children:r})]})}function Nv(){const{gateway:i,connected:f}=Be(),[o,r]=S.useState([]),[h,m]=S.useState(""),[g,x]=S.useState(!0);return S.useEffect(()=>{!i||!f||i.request("agents.list",{}).then(v=>{r(Array.isArray(v==null?void 0:v.agents)?v.agents:[]),m((v==null?void 0:v.defaultId)??"")}).catch(()=>{}).finally(()=>x(!1))},[i,f]),g?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsx(hl,{title:"Agents",description:"Create and manage your AI agents",actions:s.jsxs(Vt,{to:"/agents/new",className:"btn-primary",children:[s.jsx(Lh,{className:"h-4 w-4"}),"New Agent"]})}),o.length===0?s.jsx(yr,{icon:s.jsx(ua,{className:"h-12 w-12"}),title:"No agents yet",description:"Create your first AI agent to get started",action:s.jsxs(Vt,{to:"/agents/new",className:"btn-primary",children:[s.jsx(Lh,{className:"h-4 w-4"}),"Create Agent"]})}):s.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:o.map(v=>{var y;return s.jsxs(Vt,{to:`/agents/${v.id}`,className:"card group flex flex-col transition-all hover:border-primary-200 hover:shadow-sm",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-primary-100",children:s.jsx(ua,{className:"h-5 w-5 text-primary-600"})}),s.jsx(cm,{className:"h-4 w-4 text-surface-300 transition-colors group-hover:text-primary-500"})]}),s.jsxs("div",{className:"mt-3 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:((y=v.identity)==null?void 0:y.name)||v.name||v.id}),v.id===h&&s.jsx(F1,{className:"h-3.5 w-3.5 fill-amber-400 text-amber-400"})]}),s.jsxs("p",{className:"mt-0.5 text-xs text-surface-400",children:["ID: ",s.jsx("code",{className:"font-mono",children:v.id})]})]}),v.model&&s.jsx("div",{className:"mt-3 border-t border-surface-100 pt-3",children:s.jsxs("p",{className:"text-xs text-surface-500",children:["Model: ",s.jsx("span",{className:"font-medium text-surface-700",children:v.model})]})})]},v.id)})})]})}const Ev={whatsapp:"๐Ÿ’ฌ",telegram:"โœˆ๏ธ",discord:"๐ŸŽฎ",slack:"๐Ÿ’ผ",signal:"๐Ÿ”’",imessage:"๐Ÿ’ฌ",bluebubbles:"๐Ÿ’ฌ",googlechat:"๐Ÿ’ฌ",msteams:"๐Ÿข",feishu:"๐Ÿฆ",matrix:"๐Ÿ”—",webchat:"๐ŸŒ"};function Av(i){if(!i||typeof i!="object")return[];const f=i,o=f.channels??{},r=f.channelAccounts??{},h=[];for(const m of Object.keys(o)){const g=o[m],x=r[m]??{},v=Object.entries(x).map(([y,j])=>({id:y,status:String((j==null?void 0:j.status)??"unknown"),label:j==null?void 0:j.label,phone:j==null?void 0:j.phone}));h.push({id:m,configured:(g==null?void 0:g.configured)??!1,accounts:v})}return h}function Tv(){const{gateway:i,connected:f}=Be(),[o,r]=S.useState([]),[h,m]=S.useState(!0),[g,x]=S.useState(null);function v(){!i||!f||(m(!0),i.request("channels.status",{}).then(j=>r(Av(j))).catch(()=>{}).finally(()=>m(!1)))}S.useEffect(()=>{v()},[i,f]);async function y(j,b){if(!(!i||!confirm(`Logout from ${j} account ${b}?`))){x(`${j}:${b}`);try{await i.request("channels.logout",{channel:j,accountId:b}),v()}catch{}x(null)}}return h?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsx(hl,{title:"Channels",description:"Monitor and manage your messaging channels",actions:s.jsxs("button",{onClick:v,className:"btn-secondary",children:[s.jsx(dr,{className:"h-4 w-4"}),"Refresh"]})}),s.jsxs("div",{className:"space-y-3",children:[o.map(j=>{const b=j.accounts.some(R=>R.status==="online"),T=Ev[j.id]??"๐Ÿ“ก";return s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"text-2xl",children:T}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:j.id}),s.jsx("p",{className:"text-xs text-surface-400",children:j.accounts.length>0?`${j.accounts.length} account(s)`:j.configured?"Configured":"Not configured"})]})]}),s.jsx("div",{className:"flex items-center gap-2",children:b?s.jsxs("span",{className:"badge-green",children:[s.jsx(hm,{className:"mr-1 h-3 w-3"}),"Online"]}):j.configured?s.jsxs("span",{className:"badge-gray",children:[s.jsx(dm,{className:"mr-1 h-3 w-3"}),"Offline"]}):s.jsx("span",{className:"badge-gray",children:"Not Configured"})})]}),j.accounts.length>0&&s.jsx("div",{className:"mt-3 space-y-2 border-t border-surface-100 pt-3",children:j.accounts.map(R=>s.jsxs("div",{className:"flex items-center justify-between rounded-lg bg-surface-50 px-3 py-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:`h-2 w-2 rounded-full ${R.status==="online"?"bg-emerald-500":"bg-surface-300"}`}),s.jsx("span",{className:"text-sm text-surface-700",children:R.label||R.id}),R.phone&&s.jsx("span",{className:"text-xs text-surface-400",children:R.phone})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs text-surface-400",children:R.status}),R.status==="online"&&s.jsx("button",{onClick:()=>y(j.id,R.id),disabled:g===`${j.id}:${R.id}`,className:"btn-ghost !px-2 !py-1 text-xs text-surface-500",children:g===`${j.id}:${R.id}`?s.jsx(Yt,{className:"h-3 w-3 animate-spin"}):s.jsx(rm,{className:"h-3 w-3"})})]})]},R.id))})]},j.id)}),o.length===0&&s.jsxs("div",{className:"card py-12 text-center",children:[s.jsx(ia,{className:"mx-auto h-8 w-8 text-surface-300"}),s.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"No channels configured. Add channels in your openclaw.json configuration."})]})]})]})}function zv(){const{gateway:i,connected:f}=Be(),[o,r]=S.useState([]),[h,m]=S.useState(!0),[g,x]=S.useState(null);function v(){!i||!f||i.request("cron.list",{}).then(T=>r(Array.isArray(T==null?void 0:T.jobs)?T.jobs:[])).catch(()=>r([])).finally(()=>m(!1))}S.useEffect(()=>{v()},[i,f]);async function y(T,R){if(i){x(T);try{await i.request("cron.update",{id:T,enabled:!R}),r(z=>z.map(B=>B.id===T?{...B,enabled:!R}:B))}catch{}x(null)}}async function j(T){if(i){x(T);try{await i.request("cron.run",{id:T})}catch{}x(null)}}async function b(T){if(!(!i||!confirm("Remove this cron job?"))){x(T);try{await i.request("cron.remove",{id:T}),r(R=>R.filter(z=>z.id!==T))}catch{}x(null)}}return h?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsx(hl,{title:"Cron Jobs",description:"Manage scheduled tasks"}),o.length===0?s.jsx(yr,{icon:s.jsx(nr,{className:"h-12 w-12"}),title:"No cron jobs",description:"Scheduled tasks will appear here. Create them via the agent chat."}):s.jsx("div",{className:"space-y-2",children:o.map(T=>s.jsxs("div",{className:"card flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-amber-50",children:s.jsx(nr,{className:"h-4 w-4 text-amber-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:T.message||T.id}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-surface-400",children:[s.jsx("code",{className:"font-mono",children:T.schedule}),T.agentId&&s.jsxs("span",{children:["Agent: ",T.agentId]}),T.nextRunAt&&s.jsxs("span",{children:["Next: ",T.nextRunAt]})]})]})]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>j(T.id),disabled:g===T.id,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-emerald-600",title:"Run now",children:g===T.id?s.jsx(Yt,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Bh,{className:"h-3.5 w-3.5"})}),s.jsx("button",{onClick:()=>y(T.id,T.enabled),className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-amber-600",title:T.enabled?"Pause":"Resume",children:T.enabled?s.jsx(J1,{className:"h-3.5 w-3.5"}):s.jsx(Bh,{className:"h-3.5 w-3.5"})}),s.jsx("button",{onClick:()=>b(T.id),className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-red-600",title:"Remove",children:s.jsx(mr,{className:"h-3.5 w-3.5"})})]})]},T.id))})]})}function Cv(){const{gateway:i,connected:f}=Be(),[o,r]=S.useState(!0),[h,m]=S.useState([]),[g,x]=S.useState(""),[v,y]=S.useState([]),[j,b]=S.useState(0);if(S.useEffect(()=>{if(!i||!f)return;let z=!1;return r(!0),Promise.all([i.request("agents.list",{}).catch(()=>null),i.request("channels.status",{}).catch(()=>null),i.request("sessions.list",{}).catch(()=>null)]).then(([B,Y,H])=>{if(z)return;const V=Array.isArray(B==null?void 0:B.agents)?B.agents:[];m(V),x((B==null?void 0:B.defaultId)??"");const G=[];if(Y!=null&&Y.channels&&typeof Y.channels=="object"){const k=Y.channelAccounts??{};for(const[ee,ie]of Object.entries(Y.channels)){const F=k[ee];let X=!1;F&&typeof F=="object"&&(X=Object.values(F).some(se=>se&&typeof se=="object"&&se.status==="online")),G.push({id:ee,configured:(ie==null?void 0:ie.configured)??!1,online:X,label:ee})}}y(G),b(typeof(H==null?void 0:H.count)=="number"?H.count:Array.isArray(H==null?void 0:H.sessions)?H.sessions.length:0),r(!1)}),()=>{z=!0}},[i,f]),o)return s.jsx(lt,{});const T=v.filter(z=>z.online),R=[{label:"Active Agents",value:h.length,icon:ua,color:"bg-primary-50 text-primary-600",to:"/agents"},{label:"Channels Online",value:`${T.length} / ${v.length}`,icon:ia,color:"bg-emerald-50 text-emerald-600",to:"/channels"},{label:"Active Sessions",value:j,icon:Ei,color:"bg-blue-50 text-blue-600",to:"/sessions"},{label:"System Health",value:"OK",icon:H1,color:"bg-amber-50 text-amber-600",to:"/settings"}];return s.jsxs("div",{children:[s.jsx(hl,{title:"Dashboard",description:"Overview of your AI assistant system"}),s.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:R.map(z=>s.jsxs(Vt,{to:z.to,className:"card group hover:border-primary-200 transition-colors",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-lg ${z.color}`,children:s.jsx(z.icon,{className:"h-5 w-5"})}),s.jsx(q1,{className:"h-4 w-4 text-surface-300 transition-colors group-hover:text-primary-500"})]}),s.jsx("p",{className:"mt-3 text-2xl font-semibold text-surface-900",children:z.value}),s.jsx("p",{className:"text-sm text-surface-500",children:z.label})]},z.label))}),s.jsxs("div",{className:"mt-8 grid gap-6 lg:grid-cols-2",children:[s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Agents"}),s.jsx(Vt,{to:"/agents",className:"text-xs font-medium text-primary-600 hover:text-primary-700",children:"View all โ†’"})]}),s.jsx("div",{className:"space-y-2",children:h.length===0?s.jsx("p",{className:"py-4 text-center text-sm text-surface-400",children:"No agents configured"}):h.slice(0,5).map(z=>{var B;return s.jsxs(Vt,{to:`/agents/${z.id}`,className:"flex items-center justify-between rounded-lg p-3 transition-colors hover:bg-surface-50",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary-100 text-primary-700",children:s.jsx(ua,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:((B=z.identity)==null?void 0:B.name)||z.name||z.id}),s.jsxs("p",{className:"text-xs text-surface-400",children:["ID: ",z.id]})]})]}),z.id===g&&s.jsx("span",{className:"badge-primary",children:"Default"})]},z.id)})})]}),s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Channels"}),s.jsx(Vt,{to:"/channels",className:"text-xs font-medium text-primary-600 hover:text-primary-700",children:"View all โ†’"})]}),s.jsx("div",{className:"space-y-2",children:v.length===0?s.jsx("p",{className:"py-4 text-center text-sm text-surface-400",children:"No channels configured"}):v.slice(0,6).map(z=>s.jsxs("div",{className:"flex items-center justify-between rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-surface-100",children:s.jsx(ia,{className:"h-4 w-4 text-surface-600"})}),s.jsx("p",{className:"text-sm font-medium text-surface-900",children:z.label})]}),z.online?s.jsx("span",{className:"badge-green",children:"Online"}):z.configured?s.jsx("span",{className:"badge-gray",children:"Offline"}):s.jsx("span",{className:"badge-gray",children:"Not Configured"})]},z.id))})]})]})]})}function Mv(){const{gateway:i,connected:f}=Be(),[o,r]=S.useState([]),[h,m]=S.useState([]),[g,x]=S.useState(!0);if(S.useEffect(()=>{!i||!f||Promise.all([i.request("config.get"),i.request("agents.list",{})]).then(([b,T])=>{var z;const R=(z=b==null?void 0:b.config)==null?void 0:z.bindings;r(Array.isArray(R)?R:[]),m(Array.isArray(T==null?void 0:T.agents)?T.agents:[]),x(!1)}).catch(()=>x(!1))},[i,f]),g)return s.jsx(lt,{});const v=o.filter(b=>{var T;return((T=b.match.peer)==null?void 0:T.kind)==="group"||b.match.guildId}).map(b=>{var T;return{...b,_displayName:((T=b.match.peer)==null?void 0:T.id)??b.match.guildId??"Unknown group"}}),y=new Map(h.map(b=>[b.id,b.name||b.id])),j=v.reduce((b,T)=>{const R=T.match.channel;return b[R]||(b[R]=[]),b[R].push(T),b},{});return s.jsxs("div",{children:[s.jsx(hl,{title:"Groups",description:"View and manage group-to-agent bindings across all channels"}),v.length===0?s.jsx(yr,{icon:s.jsx(Ti,{className:"h-12 w-12"}),title:"No group bindings",description:"Group bindings route specific groups to specific agents. Configure them in Settings โ†’ Config under 'bindings'."}):s.jsx("div",{className:"space-y-6",children:Object.entries(j).map(([b,T])=>s.jsxs("div",{children:[s.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[s.jsx(ia,{className:"h-4 w-4 text-surface-500"}),s.jsx("h2",{className:"text-sm font-semibold text-surface-700 uppercase tracking-wide",children:b}),s.jsx("span",{className:"badge-gray",children:T.length})]}),s.jsx("div",{className:"space-y-2",children:T.map((R,z)=>s.jsxs("div",{className:"card flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-surface-100",children:s.jsx(k1,{className:"h-5 w-5 text-surface-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:R._displayName}),R.comment&&s.jsx("p",{className:"text-xs text-surface-400",children:R.comment})]})]}),s.jsx("div",{className:"flex items-center gap-3",children:s.jsxs(Vt,{to:`/agents/${R.agentId}`,className:"flex items-center gap-1.5 rounded-lg bg-primary-50 px-2.5 py-1 text-xs font-medium text-primary-700 hover:bg-primary-100 transition-colors",children:[s.jsx(ua,{className:"h-3 w-3"}),y.get(R.agentId)??R.agentId]})})]},z))})]},b))}),s.jsxs("div",{className:"mt-8 card bg-surface-50 border-surface-200",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-700 mb-2",children:"Group Behavior Reference"}),s.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 text-xs text-surface-500",children:[s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(B1,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-surface-400"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-surface-700",children:"Mention Mode"}),s.jsx("p",{children:"Bot only responds when @mentioned in the group"})]})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(K1,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-surface-400"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-surface-700",children:"Always Mode"}),s.jsx("p",{children:"Bot responds to all messages in the group"})]})]})]})]})]})}function Ov(){const{login:i,connecting:f,error:o}=Be(),[r,h]=S.useState("");function m(g){g.preventDefault(),r.trim()&&i(r)}return s.jsx("div",{className:"flex min-h-screen items-center justify-center bg-white",children:s.jsxs("div",{className:"w-full max-w-sm",children:[s.jsxs("div",{className:"mb-8 text-center",children:[s.jsx("div",{className:"mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-primary-600",children:s.jsx("span",{className:"text-2xl font-bold text-white",children:"O"})}),s.jsx("h1",{className:"text-2xl font-semibold text-surface-900",children:"Operator"}),s.jsx("p",{className:"mt-1 text-sm text-surface-500",children:"Sign in to manage your AI agents"})]}),s.jsxs("form",{onSubmit:m,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"password",className:"label",children:"Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(Z1,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),s.jsx("input",{id:"password",type:"password",value:r,onChange:g=>h(g.target.value),className:"input !pl-10",placeholder:"Enter operator password",autoFocus:!0,disabled:f})]})]}),o&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-3 text-sm text-red-700",children:[s.jsx(Ni,{className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{children:o})]}),s.jsx("button",{type:"submit",disabled:f||!r.trim(),className:"btn-primary w-full",children:f?s.jsxs(s.Fragment,{children:[s.jsx(Yt,{className:"h-4 w-4 animate-spin"}),"Connecting..."]}):"Sign In"})]}),s.jsxs("p",{className:"mt-6 text-center text-xs text-surface-400",children:["Configure password in"," ",s.jsx("code",{className:"rounded bg-surface-100 px-1 py-0.5 font-mono text-[10px]",children:"openclaw.json"})]})]})})}function _v(){const{gateway:i,connected:f}=Be(),[o,r]=S.useState([]),[h,m]=S.useState(!0),[g,x]=S.useState(""),[v,y]=S.useState(null);function j(){!i||!f||(m(!0),i.request("sessions.list",{}).then(z=>r(Array.isArray(z==null?void 0:z.sessions)?z.sessions:[])).catch(()=>{}).finally(()=>m(!1)))}S.useEffect(()=>{j()},[i,f]);async function b(z){if(!(!i||!confirm(`Reset session "${z}"? This will clear its history.`))){y(z);try{await i.request("sessions.reset",{key:z}),j()}catch{}y(null)}}async function T(z){if(!(!i||!confirm(`Delete session "${z}"? This cannot be undone.`))){y(z);try{await i.request("sessions.delete",{key:z}),r(B=>B.filter(Y=>Y.key!==z))}catch{}y(null)}}if(h)return s.jsx(lt,{});const R=o.filter(z=>!g||z.key.toLowerCase().includes(g.toLowerCase()));return s.jsxs("div",{children:[s.jsx(hl,{title:"Sessions",description:"View and manage active conversations",actions:s.jsxs("button",{onClick:j,className:"btn-secondary",children:[s.jsx(dr,{className:"h-4 w-4"}),"Refresh"]})}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(om,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),s.jsx("input",{className:"input !pl-10",placeholder:"Search sessions...",value:g,onChange:z=>x(z.target.value)})]}),s.jsx("div",{className:"space-y-2",children:R.map(z=>s.jsxs("div",{className:"card flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-blue-50",children:s.jsx(Ei,{className:"h-4 w-4 text-blue-600"})}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-mono text-surface-900 truncate",children:z.key}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-surface-400",children:[z.agentId&&s.jsxs("span",{children:["Agent: ",z.agentId]}),z.channel&&s.jsxs("span",{children:["Channel: ",z.channel]}),z.messageCount!=null&&s.jsxs("span",{children:[z.messageCount," msgs"]})]})]})]}),s.jsxs("div",{className:"ml-3 flex shrink-0 items-center gap-1",children:[s.jsx("button",{onClick:()=>b(z.key),disabled:v===z.key,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-amber-600",title:"Reset session",children:v===z.key?s.jsx(Yt,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx($1,{className:"h-3.5 w-3.5"})}),s.jsx("button",{onClick:()=>T(z.key),disabled:v===z.key,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-red-600",title:"Delete session",children:s.jsx(mr,{className:"h-3.5 w-3.5"})})]})]},z.key))}),R.length===0&&s.jsx("div",{className:"py-12 text-center text-sm text-surface-400",children:g?"No sessions match your search":"No active sessions"})]})}function Rv(){const{gateway:i,connected:f}=Be(),[o,r]=S.useState(""),[h,m]=S.useState(!0),[g,x]=S.useState(!1),[v,y]=S.useState(null),[j,b]=S.useState(null),[T,R]=S.useState([]);S.useEffect(()=>{!i||!f||Promise.all([i.request("config.get"),i.request("health").catch(()=>null),i.request("models.list").catch(()=>({models:[]}))]).then(([B,Y,H])=>{r(JSON.stringify((B==null?void 0:B.config)??{},null,2)),b(Y),R(Array.isArray(H==null?void 0:H.models)?H.models:[]),m(!1)})},[i,f]);async function z(){if(i){x(!0),y(null);try{const B=JSON.parse(o);await i.request("config.set",{config:B}),y({ok:!0,msg:"Configuration saved. Some changes may require a restart."})}catch(B){y({ok:!1,msg:B instanceof Error?B.message:"Failed to save"})}x(!1)}}return h?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsx(hl,{title:"Settings",description:"System configuration and health"}),s.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[s.jsx("div",{className:"lg:col-span-2 space-y-6",children:s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Configuration"}),s.jsx("p",{className:"text-xs text-surface-400",children:"openclaw.json"})]}),s.jsx("textarea",{className:"input min-h-[400px] resize-y font-mono text-xs leading-relaxed",value:o,onChange:B=>{r(B.target.value),y(null)},spellCheck:!1}),v&&s.jsxs("div",{className:`mt-3 flex items-start gap-2 rounded-lg p-3 text-sm ${v.ok?"bg-emerald-50 text-emerald-700":"bg-red-50 text-red-700"}`,children:[v.ok?s.jsx(ar,{className:"mt-0.5 h-4 w-4 shrink-0"}):s.jsx(Ni,{className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{children:v.msg})]}),s.jsx("div",{className:"mt-3 flex gap-3",children:s.jsxs("button",{onClick:z,disabled:g,className:"btn-primary",children:[g?s.jsx(Yt,{className:"h-4 w-4 animate-spin"}):s.jsx(fm,{className:"h-4 w-4"}),"Save Configuration"]})})]})}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"card",children:[s.jsx("h3",{className:"mb-3 text-sm font-semibold text-surface-900",children:"System Health"}),j?s.jsxs("div",{className:"space-y-2 text-sm",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Y1,{className:"h-4 w-4 text-surface-400"}),s.jsx("span",{className:"text-surface-600",children:"Status:"}),s.jsx("span",{className:"badge-green",children:"Healthy"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(G1,{className:"h-4 w-4 text-surface-400"}),s.jsx("span",{className:"text-surface-600",children:"Version:"}),s.jsx("span",{className:"text-surface-900 font-mono text-xs",children:j.version??"unknown"})]})]}):s.jsx("p",{className:"text-sm text-surface-400",children:"Health data unavailable"})]}),s.jsxs("div",{className:"card",children:[s.jsx("h3",{className:"mb-3 text-sm font-semibold text-surface-900",children:"Available Models"}),s.jsxs("div",{className:"space-y-1",children:[T.length>0?T.slice(0,10).map(B=>s.jsxs("div",{className:"rounded px-2 py-1.5 text-xs",children:[s.jsx("p",{className:"font-mono text-surface-700",children:B.id}),B.provider&&s.jsx("p",{className:"text-surface-400",children:B.provider})]},B.id)):s.jsx("p",{className:"text-sm text-surface-400",children:"No models configured"}),T.length>10&&s.jsxs("p",{className:"text-xs text-surface-400",children:["+",T.length-10," more"]})]})]})]})]})]})}function yi(i){const f=vm(i.missing);return i.disabled?"disabled":i.blockedByAllowlist&&f?"both":i.blockedByAllowlist?"blocked":f?"missing":"enabled"}const er={enabled:{label:"Enabled",cls:"bg-emerald-50 text-emerald-700"},disabled:{label:"Disabled",cls:"bg-surface-100 text-surface-500"},blocked:{label:"Blocked by Allowlist",cls:"bg-amber-50 text-amber-700"},missing:{label:"Missing Requirements",cls:"bg-red-50 text-red-700"},both:{label:"Blocked + Missing Reqs",cls:"bg-red-50 text-red-700"}};function vm(i){return i.bins.length>0||i.anyBins.length>0||i.env.length>0||i.config.length>0||i.os.length>0}function Dv(){const{gateway:i,connected:f}=Be(),[o,r]=S.useState([]),[h,m]=S.useState(!0),[g,x]=S.useState(""),[v,y]=S.useState(null),[j,b]=S.useState(null),[T,R]=S.useState(null),[z,B]=S.useState(new Set),[Y,H]=S.useState("all");function V(){!i||!f||(m(!0),i.request("skills.status",{}).then(X=>r(Array.isArray(X==null?void 0:X.skills)?X.skills:[])).catch(()=>{}).finally(()=>m(!1)))}S.useEffect(()=>{V()},[i,f]);async function G(X){if(!i)return;const Te=yi(X)!=="enabled";y(X.skillKey);try{await i.request("skills.update",{skillKey:X.skillKey,enabled:Te}),V()}catch{}y(null)}async function k(X,se){if(!i)return;const Te=`${X}:${se}`;b(Te),R(null);try{const ze=await i.request("skills.install",{name:X,installId:se,timeoutMs:12e4});ze!=null&&ze.ok?(R({key:X,ok:!0,msg:"Installed successfully"}),V()):R({key:X,ok:!1,msg:(ze==null?void 0:ze.message)??"Install failed"})}catch(ze){R({key:X,ok:!1,msg:ze instanceof Error?ze.message:"Install failed"})}b(null)}function ee(X){B(se=>{const Te=new Set(se);return Te.has(X)?Te.delete(X):Te.add(X),Te})}if(h)return s.jsx(lt,{});const ie=o.filter(X=>{var Te;if(Y!=="all"&&yi(X)!==Y)return!1;if(!g)return!0;const se=g.toLowerCase();return X.skillKey.toLowerCase().includes(se)||X.name.toLowerCase().includes(se)||((Te=X.description)==null?void 0:Te.toLowerCase().includes(se))}),F={enabled:0,disabled:0,blocked:0,missing:0,both:0};for(const X of o)F[yi(X)]++;return s.jsxs("div",{children:[s.jsx(hl,{title:"Skills",description:"Browse and manage agent skills",actions:s.jsxs("button",{onClick:V,className:"btn-secondary",children:[s.jsx(dr,{className:"h-4 w-4"}),"Refresh"]})}),s.jsxs("div",{className:"mb-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(om,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),s.jsx("input",{className:"input !pl-10",placeholder:"Search skills...",value:g,onChange:X=>x(X.target.value)})]}),s.jsxs("span",{className:"text-xs text-surface-500",children:[ie.length," / ",o.length]})]}),s.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[s.jsxs("button",{onClick:()=>H("all"),className:wt("rounded-full px-3 py-1 text-xs font-medium transition-colors",Y==="all"?"bg-surface-900 text-white":"bg-surface-100 text-surface-600 hover:bg-surface-200"),children:["All (",o.length,")"]}),["enabled","blocked","missing","disabled"].map(X=>F[X]>0&&s.jsxs("button",{onClick:()=>H(Y===X?"all":X),className:wt("rounded-full px-3 py-1 text-xs font-medium transition-colors",Y===X?"bg-surface-900 text-white":`${er[X].cls} hover:opacity-80`),children:[er[X].label," (",F[X],")"]},X))]})]}),s.jsx("div",{className:"space-y-2",children:ie.map(X=>{const se=yi(X),Te=er[se],ze=z.has(X.skillKey),Qe=vm(X.missing);return s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx("button",{onClick:()=>ee(X.skillKey),className:"shrink-0 text-surface-400 hover:text-surface-600",children:ze?s.jsx(L1,{className:"h-4 w-4"}):s.jsx(cm,{className:"h-4 w-4"})}),s.jsx("div",{className:wt("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",se==="enabled"?"bg-primary-100":"bg-surface-100"),children:X.emoji?s.jsx("span",{className:"text-lg",children:X.emoji}):s.jsx(Ai,{className:wt("h-4 w-4",se==="enabled"?"text-primary-600":"text-surface-400")})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:X.name}),s.jsx("span",{className:wt("shrink-0 rounded px-1.5 py-0.5 text-[10px] font-medium",Te.cls),children:Te.label})]}),X.description&&s.jsx("p",{className:"text-xs text-surface-400 truncate",children:X.description})]})]}),s.jsx("button",{onClick:()=>G(X),disabled:v===X.skillKey,className:"ml-3 shrink-0",title:se==="enabled"?"Disable this skill":"Enable this skill",children:v===X.skillKey?s.jsx(Yt,{className:"h-5 w-5 animate-spin text-surface-400"}):se==="enabled"?s.jsx(P1,{className:"h-6 w-6 text-primary-600"}):s.jsx(I1,{className:"h-6 w-6 text-surface-300"})})]}),ze&&s.jsxs("div",{className:"mt-3 border-t border-surface-100 pt-3 space-y-2.5",children:[s.jsxs("div",{className:"grid gap-2 sm:grid-cols-2 text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx("span",{className:"font-medium text-surface-700",children:"Key:"}),s.jsx("code",{className:"font-mono",children:X.skillKey})]}),s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx("span",{className:"font-medium text-surface-700",children:"Source:"}),s.jsx("span",{children:X.source})]}),X.primaryEnv&&s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx(X1,{className:"h-3 w-3"}),s.jsx("span",{className:"font-medium text-surface-700",children:"API Key env:"}),s.jsx("code",{className:"font-mono",children:X.primaryEnv})]}),X.homepage&&s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx("span",{className:"font-medium text-surface-700",children:"Homepage:"}),s.jsx("a",{href:X.homepage,target:"_blank",rel:"noreferrer",className:"text-primary-600 hover:underline truncate",children:X.homepage})]})]}),X.blockedByAllowlist&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-amber-50 p-2.5 text-xs text-amber-800",children:[s.jsx(W1,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Blocked by allowlist"}),s.jsxs("p",{className:"text-amber-600",children:["This bundled skill is not in"," ",s.jsx("code",{className:"font-mono",children:"skills.allowBundled"}),". Add"," ",s.jsxs("code",{className:"font-mono",children:['"',X.skillKey,'"']})," to the allowlist in Settings to unblock."]})]})]}),Qe&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-2.5 text-xs text-red-800",children:[s.jsx(ev,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Missing requirements"}),s.jsxs("ul",{className:"mt-1 space-y-0.5 text-red-700",children:[X.missing.bins.length>0&&s.jsxs("li",{children:["Commands not found:"," ",s.jsx("code",{className:"font-mono",children:X.missing.bins.join(", ")})]}),X.missing.anyBins.length>0&&s.jsxs("li",{children:["Need one of:"," ",s.jsx("code",{className:"font-mono",children:X.missing.anyBins.join(", ")})]}),X.missing.env.length>0&&s.jsxs("li",{children:["Missing env vars:"," ",s.jsx("code",{className:"font-mono",children:X.missing.env.join(", ")})]}),X.missing.config.length>0&&s.jsxs("li",{children:["Missing config:"," ",s.jsx("code",{className:"font-mono",children:X.missing.config.join(", ")})]}),X.missing.os.length>0&&s.jsxs("li",{children:["Requires OS:"," ",s.jsx("code",{className:"font-mono",children:X.missing.os.join(", ")})]})]})]})]}),Array.isArray(X.install)&&X.install.length>0&&Qe&&s.jsxs("div",{className:"rounded-lg bg-blue-50 p-2.5",children:[s.jsxs("p",{className:"text-xs font-medium text-blue-800 mb-2",children:[s.jsx(qh,{className:"inline h-3 w-3 mr-1"}),"Install missing dependencies"]}),s.jsx("div",{className:"flex flex-wrap gap-2",children:X.install.map(ke=>{const at=`${X.name}:${ke.id}`,Re=j===at;return s.jsxs("button",{onClick:()=>k(X.name,ke.id),disabled:Re||j!==null,className:"flex items-center gap-1.5 rounded-lg bg-white border border-blue-200 px-3 py-1.5 text-xs font-medium text-blue-700 hover:bg-blue-100 transition-colors disabled:opacity-50",children:[Re?s.jsx(Yt,{className:"h-3 w-3 animate-spin"}):s.jsx(qh,{className:"h-3 w-3"}),ke.label,ke.bins.length>0&&s.jsxs("span",{className:"text-blue-400 font-mono",children:["(",ke.bins.join(", "),")"]})]},ke.id)})}),(T==null?void 0:T.key)===X.name&&s.jsxs("div",{className:wt("mt-2 text-xs",T.ok?"text-emerald-700":"text-red-700"),children:[T.ok?s.jsx(ar,{className:"inline h-3 w-3 mr-1"}):s.jsx(Hh,{className:"inline h-3 w-3 mr-1"}),T.msg]})]}),se==="enabled"&&s.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-emerald-50 p-2.5 text-xs text-emerald-700",children:[s.jsx(ar,{className:"h-3.5 w-3.5 shrink-0"}),s.jsx("span",{children:"All requirements met. Skill is active."})]}),X.disabled&&s.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-surface-100 p-2.5 text-xs text-surface-600",children:[s.jsx(Hh,{className:"h-3.5 w-3.5 shrink-0"}),s.jsx("span",{children:"Explicitly disabled in config. Click the toggle to re-enable."})]})]})]},X.skillKey)})}),ie.length===0&&s.jsx("div",{className:"py-12 text-center text-sm text-surface-400",children:g||Y!=="all"?"No skills match your filter":"No skills available"})]})}function wv(){return s.jsx(e1,{children:s.jsxs(ot,{element:s.jsx(rv,{}),children:[s.jsx(ot,{index:!0,element:s.jsx(Cv,{})}),s.jsx(ot,{path:"agents",element:s.jsx(Nv,{})}),s.jsx(ot,{path:"agents/new",element:s.jsx(fv,{})}),s.jsx(ot,{path:"agents/:agentId",element:s.jsx(Gh,{})}),s.jsx(ot,{path:"agents/:agentId/:tab",element:s.jsx(Gh,{})}),s.jsx(ot,{path:"channels",element:s.jsx(Tv,{})}),s.jsx(ot,{path:"groups",element:s.jsx(Mv,{})}),s.jsx(ot,{path:"skills",element:s.jsx(Dv,{})}),s.jsx(ot,{path:"sessions",element:s.jsx(_v,{})}),s.jsx(ot,{path:"cron",element:s.jsx(zv,{})}),s.jsx(ot,{path:"settings",element:s.jsx(Rv,{})}),s.jsx(ot,{path:"*",element:s.jsx(Fg,{to:"/",replace:!0})})]})})}function Uv(){const{authenticated:i}=Be();return i?s.jsx(wv,{}):s.jsx(Ov,{})}Iy.createRoot(document.getElementById("root")).render(s.jsx(S.StrictMode,{children:s.jsx(E1,{basename:"/operator",children:s.jsx(iv,{children:s.jsx(Uv,{})})})}));