@futurx/openclaw-operator-ui 0.1.9 โ†’ 0.2.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,350 @@
1
+ var bp=Object.defineProperty;var jp=(c,u,f)=>u in c?bp(c,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):c[u]=f;var Xt=(c,u,f)=>jp(c,typeof u!="symbol"?u+"":u,f);(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&r(y)}).observe(document,{childList:!0,subtree:!0});function f(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(d){if(d.ep)return;d.ep=!0;const m=f(d);fetch(d.href,m)}})();var br={exports:{}},ms={};/**
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 Qm;function Np(){if(Qm)return ms;Qm=1;var c=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function f(r,d,m){var y=null;if(m!==void 0&&(y=""+m),d.key!==void 0&&(y=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:c,type:r,key:y,ref:d!==void 0?d:null,props:m}}return ms.Fragment=u,ms.jsx=f,ms.jsxs=f,ms}var Vm;function Sp(){return Vm||(Vm=1,br.exports=Np()),br.exports}var n=Sp(),jr={exports:{}},ue={};/**
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 Km;function Ap(){if(Km)return ue;Km=1;var c=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),A=Symbol.iterator;function D(T){return T===null||typeof T!="object"?null:(T=A&&T[A]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,C={};function v(T,X,$){this.props=T,this.context=X,this.refs=C,this.updater=$||E}v.prototype.isReactComponent={},v.prototype.setState=function(T,X){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,X,"setState")},v.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function _(){}_.prototype=v.prototype;function z(T,X,$){this.props=T,this.context=X,this.refs=C,this.updater=$||E}var L=z.prototype=new _;L.constructor=z,M(L,v.prototype),L.isPureReactComponent=!0;var W=Array.isArray;function J(){}var V={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function Z(T,X,$){var P=$.ref;return{$$typeof:c,type:T,key:X,ref:P!==void 0?P:null,props:$}}function I(T,X){return Z(T.type,X,T.props)}function ne(T){return typeof T=="object"&&T!==null&&T.$$typeof===c}function Le(T){var X={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function($){return X[$]})}var Ve=/\/+/g;function at(T,X){return typeof T=="object"&&T!==null&&T.key!=null?Le(""+T.key):X.toString(36)}function we(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(J,J):(T.status="pending",T.then(function(X){T.status==="pending"&&(T.status="fulfilled",T.value=X)},function(X){T.status==="pending"&&(T.status="rejected",T.reason=X)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function k(T,X,$,P,ce){var fe=typeof T;(fe==="undefined"||fe==="boolean")&&(T=null);var ve=!1;if(T===null)ve=!0;else switch(fe){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(T.$$typeof){case c:case u:ve=!0;break;case S:return ve=T._init,k(ve(T._payload),X,$,P,ce)}}if(ve)return ce=ce(T),ve=P===""?"."+at(T,0):P,W(ce)?($="",ve!=null&&($=ve.replace(Ve,"$&/")+"/"),k(ce,X,$,"",function(Ca){return Ca})):ce!=null&&(ne(ce)&&(ce=I(ce,$+(ce.key==null||T&&T.key===ce.key?"":(""+ce.key).replace(Ve,"$&/")+"/")+ve)),X.push(ce)),1;ve=0;var Fe=P===""?".":P+":";if(W(T))for(var Oe=0;Oe<T.length;Oe++)P=T[Oe],fe=Fe+at(P,Oe),ve+=k(P,X,$,fe,ce);else if(Oe=D(T),typeof Oe=="function")for(T=Oe.call(T),Oe=0;!(P=T.next()).done;)P=P.value,fe=Fe+at(P,Oe++),ve+=k(P,X,$,fe,ce);else if(fe==="object"){if(typeof T.then=="function")return k(we(T),X,$,P,ce);throw X=String(T),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ve}function F(T,X,$){if(T==null)return T;var P=[],ce=0;return k(T,P,"","",function(fe){return X.call($,fe,ce++)}),P}function se(T){if(T._status===-1){var X=T._result;X=X(),X.then(function($){(T._status===0||T._status===-1)&&(T._status=1,T._result=$)},function($){(T._status===0||T._status===-1)&&(T._status=2,T._result=$)}),T._status===-1&&(T._status=0,T._result=X)}if(T._status===1)return T._result.default;throw T._result}var be=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Se={map:F,forEach:function(T,X,$){F(T,function(){X.apply(this,arguments)},$)},count:function(T){var X=0;return F(T,function(){X++}),X},toArray:function(T){return F(T,function(X){return X})||[]},only:function(T){if(!ne(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ue.Activity=j,ue.Children=Se,ue.Component=v,ue.Fragment=f,ue.Profiler=d,ue.PureComponent=z,ue.StrictMode=r,ue.Suspense=h,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ue.__COMPILER_RUNTIME={__proto__:null,c:function(T){return V.H.useMemoCache(T)}},ue.cache=function(T){return function(){return T.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(T,X,$){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var P=M({},T.props),ce=T.key;if(X!=null)for(fe in X.key!==void 0&&(ce=""+X.key),X)!B.call(X,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&X.ref===void 0||(P[fe]=X[fe]);var fe=arguments.length-2;if(fe===1)P.children=$;else if(1<fe){for(var ve=Array(fe),Fe=0;Fe<fe;Fe++)ve[Fe]=arguments[Fe+2];P.children=ve}return Z(T.type,ce,P)},ue.createContext=function(T){return T={$$typeof:y,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},ue.createElement=function(T,X,$){var P,ce={},fe=null;if(X!=null)for(P in X.key!==void 0&&(fe=""+X.key),X)B.call(X,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ce[P]=X[P]);var ve=arguments.length-2;if(ve===1)ce.children=$;else if(1<ve){for(var Fe=Array(ve),Oe=0;Oe<ve;Oe++)Fe[Oe]=arguments[Oe+2];ce.children=Fe}if(T&&T.defaultProps)for(P in ve=T.defaultProps,ve)ce[P]===void 0&&(ce[P]=ve[P]);return Z(T,fe,ce)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(T){return{$$typeof:g,render:T}},ue.isValidElement=ne,ue.lazy=function(T){return{$$typeof:S,_payload:{_status:-1,_result:T},_init:se}},ue.memo=function(T,X){return{$$typeof:x,type:T,compare:X===void 0?null:X}},ue.startTransition=function(T){var X=V.T,$={};V.T=$;try{var P=T(),ce=V.S;ce!==null&&ce($,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(J,be)}catch(fe){be(fe)}finally{X!==null&&$.types!==null&&(X.types=$.types),V.T=X}},ue.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ue.use=function(T){return V.H.use(T)},ue.useActionState=function(T,X,$){return V.H.useActionState(T,X,$)},ue.useCallback=function(T,X){return V.H.useCallback(T,X)},ue.useContext=function(T){return V.H.useContext(T)},ue.useDebugValue=function(){},ue.useDeferredValue=function(T,X){return V.H.useDeferredValue(T,X)},ue.useEffect=function(T,X){return V.H.useEffect(T,X)},ue.useEffectEvent=function(T){return V.H.useEffectEvent(T)},ue.useId=function(){return V.H.useId()},ue.useImperativeHandle=function(T,X,$){return V.H.useImperativeHandle(T,X,$)},ue.useInsertionEffect=function(T,X){return V.H.useInsertionEffect(T,X)},ue.useLayoutEffect=function(T,X){return V.H.useLayoutEffect(T,X)},ue.useMemo=function(T,X){return V.H.useMemo(T,X)},ue.useOptimistic=function(T,X){return V.H.useOptimistic(T,X)},ue.useReducer=function(T,X,$){return V.H.useReducer(T,X,$)},ue.useRef=function(T){return V.H.useRef(T)},ue.useState=function(T){return V.H.useState(T)},ue.useSyncExternalStore=function(T,X,$){return V.H.useSyncExternalStore(T,X,$)},ue.useTransition=function(){return V.H.useTransition()},ue.version="19.2.4",ue}var Zm;function Ur(){return Zm||(Zm=1,jr.exports=Ap()),jr.exports}var b=Ur(),Nr={exports:{}},hs={},Sr={exports:{}},Ar={};/**
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 Jm;function Ep(){return Jm||(Jm=1,(function(c){function u(k,F){var se=k.length;k.push(F);e:for(;0<se;){var be=se-1>>>1,Se=k[be];if(0<d(Se,F))k[be]=F,k[se]=Se,se=be;else break e}}function f(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var F=k[0],se=k.pop();if(se!==F){k[0]=se;e:for(var be=0,Se=k.length,T=Se>>>1;be<T;){var X=2*(be+1)-1,$=k[X],P=X+1,ce=k[P];if(0>d($,se))P<Se&&0>d(ce,$)?(k[be]=ce,k[P]=se,be=P):(k[be]=$,k[X]=se,be=X);else if(P<Se&&0>d(ce,se))k[be]=ce,k[P]=se,be=P;else break e}}return F}function d(k,F){var se=k.sortIndex-F.sortIndex;return se!==0?se:k.id-F.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;c.unstable_now=function(){return m.now()}}else{var y=Date,g=y.now();c.unstable_now=function(){return y.now()-g}}var h=[],x=[],S=1,j=null,A=3,D=!1,E=!1,M=!1,C=!1,v=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function L(k){for(var F=f(x);F!==null;){if(F.callback===null)r(x);else if(F.startTime<=k)r(x),F.sortIndex=F.expirationTime,u(h,F);else break;F=f(x)}}function W(k){if(M=!1,L(k),!E)if(f(h)!==null)E=!0,J||(J=!0,Le());else{var F=f(x);F!==null&&we(W,F.startTime-k)}}var J=!1,V=-1,B=5,Z=-1;function I(){return C?!0:!(c.unstable_now()-Z<B)}function ne(){if(C=!1,J){var k=c.unstable_now();Z=k;var F=!0;try{e:{E=!1,M&&(M=!1,_(V),V=-1),D=!0;var se=A;try{t:{for(L(k),j=f(h);j!==null&&!(j.expirationTime>k&&I());){var be=j.callback;if(typeof be=="function"){j.callback=null,A=j.priorityLevel;var Se=be(j.expirationTime<=k);if(k=c.unstable_now(),typeof Se=="function"){j.callback=Se,L(k),F=!0;break t}j===f(h)&&r(h),L(k)}else r(h);j=f(h)}if(j!==null)F=!0;else{var T=f(x);T!==null&&we(W,T.startTime-k),F=!1}}break e}finally{j=null,A=se,D=!1}F=void 0}}finally{F?Le():J=!1}}}var Le;if(typeof z=="function")Le=function(){z(ne)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,at=Ve.port2;Ve.port1.onmessage=ne,Le=function(){at.postMessage(null)}}else Le=function(){v(ne,0)};function we(k,F){V=v(function(){k(c.unstable_now())},F)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(k){k.callback=null},c.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<k?Math.floor(1e3/k):5},c.unstable_getCurrentPriorityLevel=function(){return A},c.unstable_next=function(k){switch(A){case 1:case 2:case 3:var F=3;break;default:F=A}var se=A;A=F;try{return k()}finally{A=se}},c.unstable_requestPaint=function(){C=!0},c.unstable_runWithPriority=function(k,F){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var se=A;A=k;try{return F()}finally{A=se}},c.unstable_scheduleCallback=function(k,F,se){var be=c.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?be+se:be):se=be,k){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=se+Se,k={id:S++,callback:F,priorityLevel:k,startTime:se,expirationTime:Se,sortIndex:-1},se>be?(k.sortIndex=se,u(x,k),f(h)===null&&k===f(x)&&(M?(_(V),V=-1):M=!0,we(W,se-be))):(k.sortIndex=Se,u(h,k),E||D||(E=!0,J||(J=!0,Le()))),k},c.unstable_shouldYield=I,c.unstable_wrapCallback=function(k){var F=A;return function(){var se=A;A=F;try{return k.apply(this,arguments)}finally{A=se}}}})(Ar)),Ar}var $m;function Cp(){return $m||($m=1,Sr.exports=Ep()),Sr.exports}var Er={exports:{}},ut={};/**
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 Wm;function wp(){if(Wm)return ut;Wm=1;var c=Ur();function u(h){var x="https://react.dev/errors/"+h;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)x+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+h+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(u(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(h,x,S){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:j==null?null:""+j,children:h,containerInfo:x,implementation:S}}var y=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,x){if(h==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ut.createPortal=function(h,x){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(u(299));return m(h,x,null,S)},ut.flushSync=function(h){var x=y.T,S=r.p;try{if(y.T=null,r.p=2,h)return h()}finally{y.T=x,r.p=S,r.d.f()}},ut.preconnect=function(h,x){typeof h=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(h,x))},ut.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},ut.preinit=function(h,x){if(typeof h=="string"&&x&&typeof x.as=="string"){var S=x.as,j=g(S,x.crossOrigin),A=typeof x.integrity=="string"?x.integrity:void 0,D=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;S==="style"?r.d.S(h,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:j,integrity:A,fetchPriority:D}):S==="script"&&r.d.X(h,{crossOrigin:j,integrity:A,fetchPriority:D,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ut.preinitModule=function(h,x){if(typeof h=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var S=g(x.as,x.crossOrigin);r.d.M(h,{crossOrigin:S,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&r.d.M(h)},ut.preload=function(h,x){if(typeof h=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var S=x.as,j=g(S,x.crossOrigin);r.d.L(h,S,{crossOrigin:j,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ut.preloadModule=function(h,x){if(typeof h=="string")if(x){var S=g(x.as,x.crossOrigin);r.d.m(h,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:S,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else r.d.m(h)},ut.requestFormReset=function(h){r.d.r(h)},ut.unstable_batchedUpdates=function(h,x){return h(x)},ut.useFormState=function(h,x,S){return y.H.useFormState(h,x,S)},ut.useFormStatus=function(){return y.H.useHostTransitionStatus()},ut.version="19.2.4",ut}var Fm;function Tp(){if(Fm)return Er.exports;Fm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(u){console.error(u)}}return c(),Er.exports=wp(),Er.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 Im;function Mp(){if(Im)return hs;Im=1;var c=Cp(),u=Ur(),f=Tp();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function y(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 g(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 h(e){if(m(e)!==e)throw Error(r(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,l=t;;){var s=a.return;if(s===null)break;var i=s.alternate;if(i===null){if(l=s.return,l!==null){a=l;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===a)return h(s),e;if(i===l)return h(s),t;i=i.sibling}throw Error(r(188))}if(a.return!==l.return)a=s,l=i;else{for(var o=!1,p=s.child;p;){if(p===a){o=!0,a=s,l=i;break}if(p===l){o=!0,l=s,a=i;break}p=p.sibling}if(!o){for(p=i.child;p;){if(p===a){o=!0,a=i,l=s;break}if(p===l){o=!0,l=i,a=s;break}p=p.sibling}if(!o)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,A=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),z=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function Le(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Symbol.for("react.client.reference");function at(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case v:return"Profiler";case C:return"StrictMode";case W:return"Suspense";case J:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case z:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case L:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:at(e.type)||"Memo";case B:t=e._payload,e=e._init;try{return at(e(t))}catch{}}return null}var we=Array.isArray,k=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},be=[],Se=-1;function T(e){return{current:e}}function X(e){0>Se||(e.current=be[Se],be[Se]=null,Se--)}function $(e,t){Se++,be[Se]=e.current,e.current=t}var P=T(null),ce=T(null),fe=T(null),ve=T(null);function Fe(e,t){switch($(fe,t),$(ce,e),$(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=hm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(P),$(P,e)}function Oe(){X(P),X(ce),X(fe)}function Ca(e){e.memoizedState!==null&&$(ve,e);var t=P.current,a=hm(t,e.type);t!==a&&($(ce,e),$(P,a))}function dt(e){ce.current===e&&(X(P),X(ce)),ve.current===e&&(X(ve),rs._currentValue=se)}var yn,Ts;function Wt(e){if(yn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);yn=t&&t[1]||"",Ts=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+yn+e+Ts}var gn=!1;function vn(e,t){if(!e||gn)return"";gn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={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(q){var H=q}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(q){H=q}e.call(Q.prototype)}}else{try{throw Error()}catch(q){H=q}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&H&&typeof q.stack=="string")return[q.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),o=i[0],p=i[1];if(o&&p){var N=o.split(`
44
+ `),U=p.split(`
45
+ `);for(s=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(l===N.length||s===U.length)for(l=N.length-1,s=U.length-1;1<=l&&0<=s&&N[l]!==U[s];)s--;for(;1<=l&&0<=s;l--,s--)if(N[l]!==U[s]){if(l!==1||s!==1)do if(l--,s--,0>s||N[l]!==U[s]){var Y=`
46
+ `+N[l].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=l&&0<=s);break}}}finally{gn=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wt(a):""}function Ms(e,t){switch(e.tag){case 26:case 27:case 5:return Wt(e.type);case 16:return Wt("Lazy");case 13:return e.child!==t&&t!==null?Wt("Suspense Fallback"):Wt("Suspense");case 19:return Wt("SuspenseList");case 0:case 15:return vn(e.type,!1);case 11:return vn(e.type.render,!1);case 1:return vn(e.type,!0);case 31:return Wt("Activity");default:return""}}function zs(e){try{var t="",a=null;do t+=Ms(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var jl=Object.prototype.hasOwnProperty,Nl=c.unstable_scheduleCallback,Sl=c.unstable_cancelCallback,K=c.unstable_shouldYield,ye=c.unstable_requestPaint,de=c.unstable_now,Be=c.unstable_getCurrentPriorityLevel,mt=c.unstable_ImmediatePriority,Vt=c.unstable_UserBlockingPriority,ke=c.unstable_NormalPriority,Nt=c.unstable_LowPriority,bn=c.unstable_IdlePriority,cc=c.log,l0=c.unstable_setDisableYieldValue,jn=null,St=null;function wa(e){if(typeof cc=="function"&&l0(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(jn,e)}catch{}}var At=Math.clz32?Math.clz32:i0,n0=Math.log,s0=Math.LN2;function i0(e){return e>>>=0,e===0?32:31-(n0(e)/s0|0)|0}var Os=256,_s=262144,Ds=4194304;function el(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 Rs(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~i,l!==0?s=el(l):(o&=p,o!==0?s=el(o):a||(a=p&~e,a!==0&&(s=el(a))))):(p=l&~i,p!==0?s=el(p):o!==0?s=el(o):a||(a=l&~e,a!==0&&(s=el(a)))),s===0?0:t!==0&&t!==s&&(t&i)===0&&(i=s&-s,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:s}function Nn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function c0(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 Kr(){var e=Ds;return Ds<<=1,(Ds&62914560)===0&&(Ds=4194304),e}function uc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Sn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function u0(e,t,a,l,s,i){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,N=e.expirationTimes,U=e.hiddenUpdates;for(a=o&~a;0<a;){var Y=31-At(a),Q=1<<Y;p[Y]=0,N[Y]=-1;var H=U[Y];if(H!==null)for(U[Y]=null,Y=0;Y<H.length;Y++){var q=H[Y];q!==null&&(q.lane&=-536870913)}a&=~Q}l!==0&&Zr(e,l,0),i!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Zr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Jr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-At(a),s=1<<l;s&t|e[l]&t&&(e[l]|=t),a&=~s}}function $r(e,t){var a=t&-t;return a=(a&42)!==0?1:rc(a),(a&(e.suspendedLanes|t))!==0?0:a}function rc(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 oc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wr(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:qm(e.type))}function Fr(e,t){var a=F.p;try{return F.p=e,t()}finally{F.p=a}}var Ta=Math.random().toString(36).slice(2),lt="__reactFiber$"+Ta,ht="__reactProps$"+Ta,Al="__reactContainer$"+Ta,fc="__reactEvents$"+Ta,r0="__reactListeners$"+Ta,o0="__reactHandles$"+Ta,Ir="__reactResources$"+Ta,An="__reactMarker$"+Ta;function dc(e){delete e[lt],delete e[ht],delete e[fc],delete e[r0],delete e[o0]}function El(e){var t=e[lt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Al]||a[lt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=jm(e);e!==null;){if(a=e[lt])return a;e=jm(e)}return t}e=a,a=e.parentNode}return null}function Cl(e){if(e=e[lt]||e[Al]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function En(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function wl(e){var t=e[Ir];return t||(t=e[Ir]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[An]=!0}var Pr=new Set,eo={};function tl(e,t){Tl(e,t),Tl(e+"Capture",t)}function Tl(e,t){for(eo[e]=t,e=0;e<t.length;e++)Pr.add(t[e])}var f0=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]*$"),to={},ao={};function d0(e){return jl.call(ao,e)?!0:jl.call(to,e)?!1:f0.test(e)?ao[e]=!0:(to[e]=!0,!1)}function Us(e,t,a){if(d0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Hs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ca(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mc(e){if(!e._valueTracker){var t=lo(e)?"checked":"value";e._valueTracker=m0(e,t,""+e[t])}}function no(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=lo(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function qs(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 h0=/[\n"\\]/g;function Rt(e){return e.replace(h0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hc(e,t,a,l,s,i,o,p){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?xc(e,o,Dt(t)):a!=null?xc(e,o,Dt(a)):l!=null&&e.removeAttribute("value"),s==null&&i!=null&&(e.defaultChecked=!!i),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Dt(p):e.removeAttribute("name")}function so(e,t,a,l,s,i,o,p){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){mc(e);return}a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),mc(e)}function xc(e,t,a){t==="number"&&qs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ml(e,t,a,l){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Dt(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function io(e,t,a){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Dt(a):""}function co(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(r(92));if(we(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Dt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),mc(e)}function zl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var x0=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 uo(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||x0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ro(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&a[s]!==l&&uo(e,s,l)}else for(var i in t)t.hasOwnProperty(i)&&uo(e,i,t[i])}function pc(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 p0=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"]]),y0=/^[\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 Ls(e){return y0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ua(){}var yc=null;function gc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ol=null,_l=null;function oo(e){var t=Cl(e);if(t&&(e=t.stateNode)){var a=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(hc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var s=l[ht]||null;if(!s)throw Error(r(90));hc(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&no(l)}break e;case"textarea":io(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ml(e,!!a.multiple,t,!1)}}}var vc=!1;function fo(e,t,a){if(vc)return e(t,a);vc=!0;try{var l=e(t);return l}finally{if(vc=!1,(Ol!==null||_l!==null)&&(Ei(),Ol&&(t=Ol,e=_l,_l=Ol=null,oo(t),e)))for(t=0;t<e.length;t++)oo(e[t])}}function Cn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ht]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=!1;if(ra)try{var wn={};Object.defineProperty(wn,"passive",{get:function(){bc=!0}}),window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch{bc=!1}var Ma=null,jc=null,Bs=null;function mo(){if(Bs)return Bs;var e,t=jc,a=t.length,l,s="value"in Ma?Ma.value:Ma.textContent,i=s.length;for(e=0;e<a&&t[e]===s[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===s[i-l];l++);return Bs=s.slice(e,1<l?1-l:void 0)}function ks(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 Ys(){return!0}function ho(){return!1}function xt(e){function t(a,l,s,i,o){this._reactName=a,this._targetInst=s,this.type=l,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(i):i[p]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ys:ho,this.isPropagationStopped=ho,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ys)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ys)},persist:function(){},isPersistent:Ys}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=xt(al),Tn=j({},al,{view:0,detail:0}),g0=xt(Tn),Nc,Sc,Mn,Xs=j({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ec,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!==Mn&&(Mn&&e.type==="mousemove"?(Nc=e.screenX-Mn.screenX,Sc=e.screenY-Mn.screenY):Sc=Nc=0,Mn=e),Nc)},movementY:function(e){return"movementY"in e?e.movementY:Sc}}),xo=xt(Xs),v0=j({},Xs,{dataTransfer:0}),b0=xt(v0),j0=j({},Tn,{relatedTarget:0}),Ac=xt(j0),N0=j({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),S0=xt(N0),A0=j({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),E0=xt(A0),C0=j({},al,{data:0}),po=xt(C0),w0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T0={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"},M0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M0[e])?!!t[e]:!1}function Ec(){return z0}var O0=j({},Tn,{key:function(e){if(e.key){var t=w0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ks(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?T0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ec,charCode:function(e){return e.type==="keypress"?ks(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ks(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_0=xt(O0),D0=j({},Xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yo=xt(D0),R0=j({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ec}),U0=xt(R0),H0=j({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),q0=xt(H0),L0=j({},Xs,{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}),B0=xt(L0),k0=j({},al,{newState:0,oldState:0}),Y0=xt(k0),G0=[9,13,27,32],Cc=ra&&"CompositionEvent"in window,zn=null;ra&&"documentMode"in document&&(zn=document.documentMode);var X0=ra&&"TextEvent"in window&&!zn,go=ra&&(!Cc||zn&&8<zn&&11>=zn),vo=" ",bo=!1;function jo(e,t){switch(e){case"keyup":return G0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function No(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dl=!1;function Q0(e,t){switch(e){case"compositionend":return No(t);case"keypress":return t.which!==32?null:(bo=!0,vo);case"textInput":return e=t.data,e===vo&&bo?null:e;default:return null}}function V0(e,t){if(Dl)return e==="compositionend"||!Cc&&jo(e,t)?(e=mo(),Bs=jc=Ma=null,Dl=!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 go&&t.locale!=="ko"?null:t.data;default:return null}}var K0={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 So(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!K0[e.type]:t==="textarea"}function Ao(e,t,a,l){Ol?_l?_l.push(l):_l=[l]:Ol=l,t=_i(t,"onChange"),0<t.length&&(a=new Gs("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var On=null,_n=null;function Z0(e){cm(e,0)}function Qs(e){var t=En(e);if(no(t))return e}function Eo(e,t){if(e==="change")return t}var Co=!1;if(ra){var wc;if(ra){var Tc="oninput"in document;if(!Tc){var wo=document.createElement("div");wo.setAttribute("oninput","return;"),Tc=typeof wo.oninput=="function"}wc=Tc}else wc=!1;Co=wc&&(!document.documentMode||9<document.documentMode)}function To(){On&&(On.detachEvent("onpropertychange",Mo),_n=On=null)}function Mo(e){if(e.propertyName==="value"&&Qs(_n)){var t=[];Ao(t,_n,e,gc(e)),fo(Z0,t)}}function J0(e,t,a){e==="focusin"?(To(),On=t,_n=a,On.attachEvent("onpropertychange",Mo)):e==="focusout"&&To()}function $0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qs(_n)}function W0(e,t){if(e==="click")return Qs(t)}function F0(e,t){if(e==="input"||e==="change")return Qs(t)}function I0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:I0;function Dn(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var s=a[l];if(!jl.call(t,s)||!Et(e[s],t[s]))return!1}return!0}function zo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oo(e,t){var a=zo(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=zo(a)}}function _o(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_o(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Do(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qs(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=qs(e.document)}return t}function Mc(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 P0=ra&&"documentMode"in document&&11>=document.documentMode,Rl=null,zc=null,Rn=null,Oc=!1;function Ro(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Oc||Rl==null||Rl!==qs(l)||(l=Rl,"selectionStart"in l&&Mc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Rn&&Dn(Rn,l)||(Rn=l,l=_i(zc,"onSelect"),0<l.length&&(t=new Gs("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Rl)))}function ll(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ul={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionrun:ll("Transition","TransitionRun"),transitionstart:ll("Transition","TransitionStart"),transitioncancel:ll("Transition","TransitionCancel"),transitionend:ll("Transition","TransitionEnd")},_c={},Uo={};ra&&(Uo=document.createElement("div").style,"AnimationEvent"in window||(delete Ul.animationend.animation,delete Ul.animationiteration.animation,delete Ul.animationstart.animation),"TransitionEvent"in window||delete Ul.transitionend.transition);function nl(e){if(_c[e])return _c[e];if(!Ul[e])return e;var t=Ul[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Uo)return _c[e]=t[a];return e}var Ho=nl("animationend"),qo=nl("animationiteration"),Lo=nl("animationstart"),ex=nl("transitionrun"),tx=nl("transitionstart"),ax=nl("transitioncancel"),Bo=nl("transitionend"),ko=new Map,Dc="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(" ");Dc.push("scrollEnd");function Kt(e,t){ko.set(e,t),tl(t,[e])}var Vs=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)},Ut=[],Hl=0,Rc=0;function Ks(){for(var e=Hl,t=Rc=Hl=0;t<e;){var a=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var s=Ut[t];Ut[t++]=null;var i=Ut[t];if(Ut[t++]=null,l!==null&&s!==null){var o=l.pending;o===null?s.next=s:(s.next=o.next,o.next=s),l.pending=s}i!==0&&Yo(a,s,i)}}function Zs(e,t,a,l){Ut[Hl++]=e,Ut[Hl++]=t,Ut[Hl++]=a,Ut[Hl++]=l,Rc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Uc(e,t,a,l){return Zs(e,t,a,l),Js(e)}function sl(e,t){return Zs(e,null,null,t),Js(e)}function Yo(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var s=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(s=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,s&&t!==null&&(s=31-At(a),e=i.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=a|536870912),i):null}function Js(e){if(50<as)throw as=0,Qu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ql={};function lx(e,t,a,l){this.tag=e,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,a,l){return new lx(e,t,a,l)}function Hc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oa(e,t){var a=e.alternate;return a===null?(a=Ct(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Go(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $s(e,t,a,l,s,i){var o=0;if(l=e,typeof e=="function")Hc(e)&&(o=1);else if(typeof e=="string")o=up(e,a,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=Ct(31,a,t,s),e.elementType=Z,e.lanes=i,e;case M:return il(a.children,s,i,t);case C:o=8,s|=24;break;case v:return e=Ct(12,a,t,s|2),e.elementType=v,e.lanes=i,e;case W:return e=Ct(13,a,t,s),e.elementType=W,e.lanes=i,e;case J:return e=Ct(19,a,t,s),e.elementType=J,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:o=10;break e;case _:o=9;break e;case L:o=11;break e;case V:o=14;break e;case B:o=16,l=null;break e}o=29,a=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Ct(o,a,t,s),t.elementType=e,t.type=l,t.lanes=i,t}function il(e,t,a,l){return e=Ct(7,e,l,t),e.lanes=a,e}function qc(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function Xo(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Lc(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qo=new WeakMap;function Ht(e,t){if(typeof e=="object"&&e!==null){var a=Qo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:zs(t)},Qo.set(e,t),t)}return{value:e,source:t,stack:zs(t)}}var Ll=[],Bl=0,Ws=null,Un=0,qt=[],Lt=0,za=null,Ft=1,It="";function fa(e,t){Ll[Bl++]=Un,Ll[Bl++]=Ws,Ws=e,Un=t}function Vo(e,t,a){qt[Lt++]=Ft,qt[Lt++]=It,qt[Lt++]=za,za=e;var l=Ft;e=It;var s=32-At(l)-1;l&=~(1<<s),a+=1;var i=32-At(t)+s;if(30<i){var o=s-s%5;i=(l&(1<<o)-1).toString(32),l>>=o,s-=o,Ft=1<<32-At(t)+s|a<<s|l,It=i+e}else Ft=1<<i|a<<s|l,It=e}function Bc(e){e.return!==null&&(fa(e,1),Vo(e,1,0))}function kc(e){for(;e===Ws;)Ws=Ll[--Bl],Ll[Bl]=null,Un=Ll[--Bl],Ll[Bl]=null;for(;e===za;)za=qt[--Lt],qt[Lt]=null,It=qt[--Lt],qt[Lt]=null,Ft=qt[--Lt],qt[Lt]=null}function Ko(e,t){qt[Lt++]=Ft,qt[Lt++]=It,qt[Lt++]=za,Ft=t.id,It=t.overflow,za=e}var nt=null,Re=null,ge=!1,Oa=null,Bt=!1,Yc=Error(r(519));function _a(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hn(Ht(t,e)),Yc}function Zo(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[lt]=e,t[ht]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<ns.length;a++)he(ns[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),so(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),co(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||fm(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=ua),t=!0):t=!1,t||_a(e,!0)}function Jo(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:nt=nt.return}}function kl(e){if(e!==nt)return!1;if(!ge)return Jo(e),ge=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||sr(e.type,e.memoizedProps)),a=!a),a&&Re&&_a(e),Jo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Re=bm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Re=bm(e)}else t===27?(t=Re,Ka(e.type)?(e=or,or=null,Re=e):Re=t):Re=nt?Yt(e.stateNode.nextSibling):null;return!0}function cl(){Re=nt=null,ge=!1}function Gc(){var e=Oa;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Oa=null),e}function Hn(e){Oa===null?Oa=[e]:Oa.push(e)}var Xc=T(null),ul=null,da=null;function Da(e,t,a){$(Xc,t._currentValue),t._currentValue=a}function ma(e){e._currentValue=Xc.current,X(Xc)}function Qc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Vc(e,t,a,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var i=s.dependencies;if(i!==null){var o=s.child;i=i.firstContext;e:for(;i!==null;){var p=i;i=s;for(var N=0;N<t.length;N++)if(p.context===t[N]){i.lanes|=a,p=i.alternate,p!==null&&(p.lanes|=a),Qc(i.return,a,e),l||(o=null);break e}i=p.next}}else if(s.tag===18){if(o=s.return,o===null)throw Error(r(341));o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),Qc(o,a,e),o=null}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}}function Yl(e,t,a,l){e=null;for(var s=t,i=!1;s!==null;){if(!i){if((s.flags&524288)!==0)i=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var o=s.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var p=s.type;Et(s.pendingProps.value,o.value)||(e!==null?e.push(p):e=[p])}}else if(s===ve.current){if(o=s.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(rs):e=[rs])}s=s.return}e!==null&&Vc(t,e,a,l),t.flags|=262144}function Fs(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function rl(e){ul=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return $o(ul,e)}function Is(e,t){return ul===null&&rl(e),$o(e,t)}function $o(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},da===null){if(e===null)throw Error(r(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return a}var nx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},sx=c.unstable_scheduleCallback,ix=c.unstable_NormalPriority,Ke={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kc(){return{controller:new nx,data:new Map,refCount:0}}function qn(e){e.refCount--,e.refCount===0&&sx(ix,function(){e.controller.abort()})}var Ln=null,Zc=0,Gl=0,Xl=null;function cx(e,t){if(Ln===null){var a=Ln=[];Zc=0,Gl=Wu(),Xl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Zc++,t.then(Wo,Wo),t}function Wo(){if(--Zc===0&&Ln!==null){Xl!==null&&(Xl.status="fulfilled");var e=Ln;Ln=null,Gl=0,Xl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ux(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),l}var Fo=k.S;k.S=function(e,t){Ud=de(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&cx(e,t),Fo!==null&&Fo(e,t)};var ol=T(null);function Jc(){var e=ol.current;return e!==null?e:_e.pooledCache}function Ps(e,t){t===null?$(ol,ol.current):$(ol,t.pool)}function Io(){var e=Jc();return e===null?null:{parent:Ke._currentValue,pool:e}}var Ql=Error(r(460)),$c=Error(r(474)),ei=Error(r(542)),ti={then:function(){}};function Po(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ef(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ua,ua),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,af(e),e;default:if(typeof t.status=="string")t.then(ua,ua);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,af(e),e}throw dl=t,Ql}}function fl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(dl=a,Ql):a}}var dl=null;function tf(){if(dl===null)throw Error(r(459));var e=dl;return dl=null,e}function af(e){if(e===Ql||e===ei)throw Error(r(483))}var Vl=null,Bn=0;function ai(e){var t=Bn;return Bn+=1,Vl===null&&(Vl=[]),ef(Vl,e,t)}function kn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function li(e,t){throw t.$$typeof===A?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function lf(e){function t(O,w){if(e){var R=O.deletions;R===null?(O.deletions=[w],O.flags|=16):R.push(w)}}function a(O,w){if(!e)return null;for(;w!==null;)t(O,w),w=w.sibling;return null}function l(O){for(var w=new Map;O!==null;)O.key!==null?w.set(O.key,O):w.set(O.index,O),O=O.sibling;return w}function s(O,w){return O=oa(O,w),O.index=0,O.sibling=null,O}function i(O,w,R){return O.index=R,e?(R=O.alternate,R!==null?(R=R.index,R<w?(O.flags|=67108866,w):R):(O.flags|=67108866,w)):(O.flags|=1048576,w)}function o(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function p(O,w,R,G){return w===null||w.tag!==6?(w=qc(R,O.mode,G),w.return=O,w):(w=s(w,R),w.return=O,w)}function N(O,w,R,G){var ae=R.type;return ae===M?Y(O,w,R.props.children,G,R.key):w!==null&&(w.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===B&&fl(ae)===w.type)?(w=s(w,R.props),kn(w,R),w.return=O,w):(w=$s(R.type,R.key,R.props,null,O.mode,G),kn(w,R),w.return=O,w)}function U(O,w,R,G){return w===null||w.tag!==4||w.stateNode.containerInfo!==R.containerInfo||w.stateNode.implementation!==R.implementation?(w=Lc(R,O.mode,G),w.return=O,w):(w=s(w,R.children||[]),w.return=O,w)}function Y(O,w,R,G,ae){return w===null||w.tag!==7?(w=il(R,O.mode,G,ae),w.return=O,w):(w=s(w,R),w.return=O,w)}function Q(O,w,R){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=qc(""+w,O.mode,R),w.return=O,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case D:return R=$s(w.type,w.key,w.props,null,O.mode,R),kn(R,w),R.return=O,R;case E:return w=Lc(w,O.mode,R),w.return=O,w;case B:return w=fl(w),Q(O,w,R)}if(we(w)||Le(w))return w=il(w,O.mode,R,null),w.return=O,w;if(typeof w.then=="function")return Q(O,ai(w),R);if(w.$$typeof===z)return Q(O,Is(O,w),R);li(O,w)}return null}function H(O,w,R,G){var ae=w!==null?w.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ae!==null?null:p(O,w,""+R,G);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case D:return R.key===ae?N(O,w,R,G):null;case E:return R.key===ae?U(O,w,R,G):null;case B:return R=fl(R),H(O,w,R,G)}if(we(R)||Le(R))return ae!==null?null:Y(O,w,R,G,null);if(typeof R.then=="function")return H(O,w,ai(R),G);if(R.$$typeof===z)return H(O,w,Is(O,R),G);li(O,R)}return null}function q(O,w,R,G,ae){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return O=O.get(R)||null,p(w,O,""+G,ae);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case D:return O=O.get(G.key===null?R:G.key)||null,N(w,O,G,ae);case E:return O=O.get(G.key===null?R:G.key)||null,U(w,O,G,ae);case B:return G=fl(G),q(O,w,R,G,ae)}if(we(G)||Le(G))return O=O.get(R)||null,Y(w,O,G,ae,null);if(typeof G.then=="function")return q(O,w,R,ai(G),ae);if(G.$$typeof===z)return q(O,w,R,Is(w,G),ae);li(w,G)}return null}function ee(O,w,R,G){for(var ae=null,je=null,te=w,oe=w=0,pe=null;te!==null&&oe<R.length;oe++){te.index>oe?(pe=te,te=null):pe=te.sibling;var Ne=H(O,te,R[oe],G);if(Ne===null){te===null&&(te=pe);break}e&&te&&Ne.alternate===null&&t(O,te),w=i(Ne,w,oe),je===null?ae=Ne:je.sibling=Ne,je=Ne,te=pe}if(oe===R.length)return a(O,te),ge&&fa(O,oe),ae;if(te===null){for(;oe<R.length;oe++)te=Q(O,R[oe],G),te!==null&&(w=i(te,w,oe),je===null?ae=te:je.sibling=te,je=te);return ge&&fa(O,oe),ae}for(te=l(te);oe<R.length;oe++)pe=q(te,O,oe,R[oe],G),pe!==null&&(e&&pe.alternate!==null&&te.delete(pe.key===null?oe:pe.key),w=i(pe,w,oe),je===null?ae=pe:je.sibling=pe,je=pe);return e&&te.forEach(function(Fa){return t(O,Fa)}),ge&&fa(O,oe),ae}function ie(O,w,R,G){if(R==null)throw Error(r(151));for(var ae=null,je=null,te=w,oe=w=0,pe=null,Ne=R.next();te!==null&&!Ne.done;oe++,Ne=R.next()){te.index>oe?(pe=te,te=null):pe=te.sibling;var Fa=H(O,te,Ne.value,G);if(Fa===null){te===null&&(te=pe);break}e&&te&&Fa.alternate===null&&t(O,te),w=i(Fa,w,oe),je===null?ae=Fa:je.sibling=Fa,je=Fa,te=pe}if(Ne.done)return a(O,te),ge&&fa(O,oe),ae;if(te===null){for(;!Ne.done;oe++,Ne=R.next())Ne=Q(O,Ne.value,G),Ne!==null&&(w=i(Ne,w,oe),je===null?ae=Ne:je.sibling=Ne,je=Ne);return ge&&fa(O,oe),ae}for(te=l(te);!Ne.done;oe++,Ne=R.next())Ne=q(te,O,oe,Ne.value,G),Ne!==null&&(e&&Ne.alternate!==null&&te.delete(Ne.key===null?oe:Ne.key),w=i(Ne,w,oe),je===null?ae=Ne:je.sibling=Ne,je=Ne);return e&&te.forEach(function(vp){return t(O,vp)}),ge&&fa(O,oe),ae}function ze(O,w,R,G){if(typeof R=="object"&&R!==null&&R.type===M&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case D:e:{for(var ae=R.key;w!==null;){if(w.key===ae){if(ae=R.type,ae===M){if(w.tag===7){a(O,w.sibling),G=s(w,R.props.children),G.return=O,O=G;break e}}else if(w.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===B&&fl(ae)===w.type){a(O,w.sibling),G=s(w,R.props),kn(G,R),G.return=O,O=G;break e}a(O,w);break}else t(O,w);w=w.sibling}R.type===M?(G=il(R.props.children,O.mode,G,R.key),G.return=O,O=G):(G=$s(R.type,R.key,R.props,null,O.mode,G),kn(G,R),G.return=O,O=G)}return o(O);case E:e:{for(ae=R.key;w!==null;){if(w.key===ae)if(w.tag===4&&w.stateNode.containerInfo===R.containerInfo&&w.stateNode.implementation===R.implementation){a(O,w.sibling),G=s(w,R.children||[]),G.return=O,O=G;break e}else{a(O,w);break}else t(O,w);w=w.sibling}G=Lc(R,O.mode,G),G.return=O,O=G}return o(O);case B:return R=fl(R),ze(O,w,R,G)}if(we(R))return ee(O,w,R,G);if(Le(R)){if(ae=Le(R),typeof ae!="function")throw Error(r(150));return R=ae.call(R),ie(O,w,R,G)}if(typeof R.then=="function")return ze(O,w,ai(R),G);if(R.$$typeof===z)return ze(O,w,Is(O,R),G);li(O,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,w!==null&&w.tag===6?(a(O,w.sibling),G=s(w,R),G.return=O,O=G):(a(O,w),G=qc(R,O.mode,G),G.return=O,O=G),o(O)):a(O,w)}return function(O,w,R,G){try{Bn=0;var ae=ze(O,w,R,G);return Vl=null,ae}catch(te){if(te===Ql||te===ei)throw te;var je=Ct(29,te,null,O.mode);return je.lanes=G,je.return=O,je}finally{}}}var ml=lf(!0),nf=lf(!1),Ra=!1;function Wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fc(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 Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ae&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=Js(e),Yo(e,null,a),t}return Zs(e,l,t,a),Js(e)}function Yn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Jr(e,a)}}function Ic(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var s=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?s=i=o:i=i.next=o,a=a.next}while(a!==null);i===null?s=i=t:i=i.next=t}else s=i=t;a={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Pc=!1;function Gn(){if(Pc){var e=Xl;if(e!==null)throw e}}function Xn(e,t,a,l){Pc=!1;var s=e.updateQueue;Ra=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,p=s.shared.pending;if(p!==null){s.shared.pending=null;var N=p,U=N.next;N.next=null,o===null?i=U:o.next=U,o=N;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,p=Y.lastBaseUpdate,p!==o&&(p===null?Y.firstBaseUpdate=U:p.next=U,Y.lastBaseUpdate=N))}if(i!==null){var Q=s.baseState;o=0,Y=U=N=null,p=i;do{var H=p.lane&-536870913,q=H!==p.lane;if(q?(xe&H)===H:(l&H)===H){H!==0&&H===Gl&&(Pc=!0),Y!==null&&(Y=Y.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var ee=e,ie=p;H=t;var ze=a;switch(ie.tag){case 1:if(ee=ie.payload,typeof ee=="function"){Q=ee.call(ze,Q,H);break e}Q=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ie.payload,H=typeof ee=="function"?ee.call(ze,Q,H):ee,H==null)break e;Q=j({},Q,H);break e;case 2:Ra=!0}}H=p.callback,H!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[H]:q.push(H))}else q={lane:H,tag:p.tag,payload:p.payload,callback:p.callback,next:null},Y===null?(U=Y=q,N=Q):Y=Y.next=q,o|=H;if(p=p.next,p===null){if(p=s.shared.pending,p===null)break;q=p,p=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);Y===null&&(N=Q),s.baseState=N,s.firstBaseUpdate=U,s.lastBaseUpdate=Y,i===null&&(s.shared.lanes=0),Ya|=o,e.lanes=o,e.memoizedState=Q}}function sf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function cf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)sf(a[e],t)}var Kl=T(null),ni=T(0);function uf(e,t){e=Na,$(ni,e),$(Kl,t),Na=e|t.baseLanes}function eu(){$(ni,Na),$(Kl,Kl.current)}function tu(){Na=ni.current,X(Kl),X(ni)}var wt=T(null),kt=null;function qa(e){var t=e.alternate;$(Xe,Xe.current&1),$(wt,e),kt===null&&(t===null||Kl.current!==null||t.memoizedState!==null)&&(kt=e)}function au(e){$(Xe,Xe.current),$(wt,e),kt===null&&(kt=e)}function rf(e){e.tag===22?($(Xe,Xe.current),$(wt,e),kt===null&&(kt=e)):La()}function La(){$(Xe,Xe.current),$(wt,wt.current)}function Tt(e){X(wt),kt===e&&(kt=null),X(Xe)}var Xe=T(0);function si(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ur(a)||rr(a)))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 ha=0,re=null,Te=null,Ze=null,ii=!1,Zl=!1,hl=!1,ci=0,Qn=0,Jl=null,rx=0;function Ye(){throw Error(r(321))}function lu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Et(e[a],t[a]))return!1;return!0}function nu(e,t,a,l,s,i){return ha=i,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Kf:vu,hl=!1,i=a(l,s),hl=!1,Zl&&(i=ff(t,a,l,s)),of(e),i}function of(e){k.H=Zn;var t=Te!==null&&Te.next!==null;if(ha=0,Ze=Te=re=null,ii=!1,Qn=0,Jl=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&Fs(e)&&(Je=!0))}function ff(e,t,a,l){re=e;var s=0;do{if(Zl&&(Jl=null),Qn=0,Zl=!1,25<=s)throw Error(r(301));if(s+=1,Ze=Te=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}k.H=Zf,i=t(a,l)}while(Zl);return i}function ox(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?Vn(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(re.flags|=1024),t}function su(){var e=ci!==0;return ci=0,e}function iu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function cu(e){if(ii){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ii=!1}ha=0,Ze=Te=re=null,Zl=!1,Qn=ci=0,Jl=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?re.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Qe(){if(Te===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ze===null?re.memoizedState:Ze.next;if(t!==null)Ze=t,Te=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ze===null?re.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function ui(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vn(e){var t=Qn;return Qn+=1,Jl===null&&(Jl=[]),e=ef(Jl,e,t),t=re,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Kf:vu),e}function ri(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Vn(e);if(e.$$typeof===z)return st(e)}throw Error(r(438,String(e)))}function uu(e){var t=null,a=re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=re.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ui(),re.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=I;return t.index++,a}function xa(e,t){return typeof t=="function"?t(e):t}function oi(e){var t=Qe();return ru(t,Te,e)}function ru(e,t,a){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var s=e.baseQueue,i=l.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}t.baseQueue=s=i,l.pending=null}if(i=e.baseState,s===null)e.memoizedState=i;else{t=s.next;var p=o=null,N=null,U=t,Y=!1;do{var Q=U.lane&-536870913;if(Q!==U.lane?(xe&Q)===Q:(ha&Q)===Q){var H=U.revertLane;if(H===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Q===Gl&&(Y=!0);else if((ha&H)===H){U=U.next,H===Gl&&(Y=!0);continue}else Q={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},N===null?(p=N=Q,o=i):N=N.next=Q,re.lanes|=H,Ya|=H;Q=U.action,hl&&a(i,Q),i=U.hasEagerState?U.eagerState:a(i,Q)}else H={lane:Q,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},N===null?(p=N=H,o=i):N=N.next=H,re.lanes|=Q,Ya|=Q;U=U.next}while(U!==null&&U!==t);if(N===null?o=i:N.next=p,!Et(i,e.memoizedState)&&(Je=!0,Y&&(a=Xl,a!==null)))throw a;e.memoizedState=i,e.baseState=o,e.baseQueue=N,l.lastRenderedState=i}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ou(e){var t=Qe(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var l=a.dispatch,s=a.pending,i=t.memoizedState;if(s!==null){a.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Et(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function df(e,t,a){var l=re,s=Qe(),i=ge;if(i){if(a===void 0)throw Error(r(407));a=a()}else a=t();var o=!Et((Te||s).memoizedState,a);if(o&&(s.memoizedState=a,Je=!0),s=s.queue,mu(xf.bind(null,l,s,e),[e]),s.getSnapshot!==t||o||Ze!==null&&Ze.memoizedState.tag&1){if(l.flags|=2048,$l(9,{destroy:void 0},hf.bind(null,l,s,a,t),null),_e===null)throw Error(r(349));i||(ha&127)!==0||mf(l,t,a)}return a}function mf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=re.updateQueue,t===null?(t=ui(),re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function hf(e,t,a,l){t.value=a,t.getSnapshot=l,pf(t)&&yf(e)}function xf(e,t,a){return a(function(){pf(t)&&yf(e)})}function pf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Et(e,a)}catch{return!0}}function yf(e){var t=sl(e,2);t!==null&&bt(t,e,2)}function fu(e){var t=ot();if(typeof e=="function"){var a=e;if(e=a(),hl){wa(!0);try{a()}finally{wa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t}function gf(e,t,a,l){return e.baseState=a,ru(e,Te,typeof l=="function"?l:xa)}function fx(e,t,a,l,s){if(mi(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};k.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,vf(t,i)):(i.next=a.next,t.pending=a.next=i)}}function vf(e,t){var a=t.action,l=t.payload,s=e.state;if(t.isTransition){var i=k.T,o={};k.T=o;try{var p=a(s,l),N=k.S;N!==null&&N(o,p),bf(e,t,p)}catch(U){du(e,t,U)}finally{i!==null&&o.types!==null&&(i.types=o.types),k.T=i}}else try{i=a(s,l),bf(e,t,i)}catch(U){du(e,t,U)}}function bf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){jf(e,t,l)},function(l){return du(e,t,l)}):jf(e,t,a)}function jf(e,t,a){t.status="fulfilled",t.value=a,Nf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,vf(e,a)))}function du(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Nf(t),t=t.next;while(t!==l)}e.action=null}function Nf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Sf(e,t){return t}function Af(e,t){if(ge){var a=_e.formState;if(a!==null){e:{var l=re;if(ge){if(Re){t:{for(var s=Re,i=Bt;s.nodeType!==8;){if(!i){s=null;break t}if(s=Yt(s.nextSibling),s===null){s=null;break t}}i=s.data,s=i==="F!"||i==="F"?s:null}if(s){Re=Yt(s.nextSibling),l=s.data==="F!";break e}}_a(l)}l=!1}l&&(t=a[0])}}return a=ot(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sf,lastRenderedState:t},a.queue=l,a=Xf.bind(null,re,l),l.dispatch=a,l=fu(!1),i=gu.bind(null,re,!1,l.queue),l=ot(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=fx.bind(null,re,s,i,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function Ef(e){var t=Qe();return Cf(t,Te,e)}function Cf(e,t,a){if(t=ru(e,t,Sf)[0],e=oi(xa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Vn(t)}catch(o){throw o===Ql?ei:o}else l=t;t=Qe();var s=t.queue,i=s.dispatch;return a!==t.memoizedState&&(re.flags|=2048,$l(9,{destroy:void 0},dx.bind(null,s,a),null)),[l,i,e]}function dx(e,t){e.action=t}function wf(e){var t=Qe(),a=Te;if(a!==null)return Cf(t,a,e);Qe(),t=t.memoizedState,a=Qe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function $l(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=re.updateQueue,t===null&&(t=ui(),re.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Tf(){return Qe().memoizedState}function fi(e,t,a,l){var s=ot();re.flags|=e,s.memoizedState=$l(1|t,{destroy:void 0},a,l===void 0?null:l)}function di(e,t,a,l){var s=Qe();l=l===void 0?null:l;var i=s.memoizedState.inst;Te!==null&&l!==null&&lu(l,Te.memoizedState.deps)?s.memoizedState=$l(t,i,a,l):(re.flags|=e,s.memoizedState=$l(1|t,i,a,l))}function Mf(e,t){fi(8390656,8,e,t)}function mu(e,t){di(2048,8,e,t)}function mx(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=ui(),re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function zf(e){var t=Qe().memoizedState;return mx({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Of(e,t){return di(4,2,e,t)}function _f(e,t){return di(4,4,e,t)}function Df(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rf(e,t,a){a=a!=null?a.concat([e]):null,di(4,4,Df.bind(null,t,e),a)}function hu(){}function Uf(e,t){var a=Qe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&lu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Hf(e,t){var a=Qe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&lu(t,l[1]))return l[0];if(l=e(),hl){wa(!0);try{e()}finally{wa(!1)}}return a.memoizedState=[l,t],l}function xu(e,t,a){return a===void 0||(ha&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=qd(),re.lanes|=e,Ya|=e,a)}function qf(e,t,a,l){return Et(a,t)?a:Kl.current!==null?(e=xu(e,a,l),Et(e,t)||(Je=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(xe&261930)===0?(Je=!0,e.memoizedState=a):(e=qd(),re.lanes|=e,Ya|=e,t)}function Lf(e,t,a,l,s){var i=F.p;F.p=i!==0&&8>i?i:8;var o=k.T,p={};k.T=p,gu(e,!1,t,a);try{var N=s(),U=k.S;if(U!==null&&U(p,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Y=ux(N,l);Kn(e,t,Y,Ot(e))}else Kn(e,t,l,Ot(e))}catch(Q){Kn(e,t,{then:function(){},status:"rejected",reason:Q},Ot())}finally{F.p=i,o!==null&&p.types!==null&&(o.types=p.types),k.T=o}}function hx(){}function pu(e,t,a,l){if(e.tag!==5)throw Error(r(476));var s=Bf(e).queue;Lf(e,s,t,se,a===null?hx:function(){return kf(e),a(l)})}function Bf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:se},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kf(e){var t=Bf(e);t.next===null&&(t=e.alternate.memoizedState),Kn(e,t.next.queue,{},Ot())}function yu(){return st(rs)}function Yf(){return Qe().memoizedState}function Gf(){return Qe().memoizedState}function xx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ot();e=Ua(a);var l=Ha(t,e,a);l!==null&&(bt(l,t,a),Yn(l,t,a)),t={cache:Kc()},e.payload=t;return}t=t.return}}function px(e,t,a){var l=Ot();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mi(e)?Qf(t,a):(a=Uc(e,t,a,l),a!==null&&(bt(a,e,l),Vf(a,t,l)))}function Xf(e,t,a){var l=Ot();Kn(e,t,a,l)}function Kn(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(mi(e))Qf(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,p=i(o,a);if(s.hasEagerState=!0,s.eagerState=p,Et(p,o))return Zs(e,t,s,0),_e===null&&Ks(),!1}catch{}finally{}if(a=Uc(e,t,s,l),a!==null)return bt(a,e,l),Vf(a,t,l),!0}return!1}function gu(e,t,a,l){if(l={lane:2,revertLane:Wu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},mi(e)){if(t)throw Error(r(479))}else t=Uc(e,a,l,2),t!==null&&bt(t,e,2)}function mi(e){var t=e.alternate;return e===re||t!==null&&t===re}function Qf(e,t){Zl=ii=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Vf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Jr(e,a)}}var Zn={readContext:st,use:ri,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Zn.useEffectEvent=Ye;var Kf={readContext:st,use:ri,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:Mf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,fi(4194308,4,Df.bind(null,t,e),a)},useLayoutEffect:function(e,t){return fi(4194308,4,e,t)},useInsertionEffect:function(e,t){fi(4,2,e,t)},useMemo:function(e,t){var a=ot();t=t===void 0?null:t;var l=e();if(hl){wa(!0);try{e()}finally{wa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ot();if(a!==void 0){var s=a(t);if(hl){wa(!0);try{a(t)}finally{wa(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=px.bind(null,re,e),[l.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=fu(e);var t=e.queue,a=Xf.bind(null,re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:hu,useDeferredValue:function(e,t){var a=ot();return xu(a,e,t)},useTransition:function(){var e=fu(!1);return e=Lf.bind(null,re,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=re,s=ot();if(ge){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),_e===null)throw Error(r(349));(xe&127)!==0||mf(l,t,a)}s.memoizedState=a;var i={value:a,getSnapshot:t};return s.queue=i,Mf(xf.bind(null,l,i,e),[e]),l.flags|=2048,$l(9,{destroy:void 0},hf.bind(null,l,i,a,t),null),a},useId:function(){var e=ot(),t=_e.identifierPrefix;if(ge){var a=It,l=Ft;a=(l&~(1<<32-At(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ci++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=rx++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:yu,useFormState:Af,useActionState:Af,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=gu.bind(null,re,!0,a),a.dispatch=t,[e,t]},useMemoCache:uu,useCacheRefresh:function(){return ot().memoizedState=xx.bind(null,re)},useEffectEvent:function(e){var t=ot(),a={impl:e};return t.memoizedState=a,function(){if((Ae&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},vu={readContext:st,use:ri,useCallback:Uf,useContext:st,useEffect:mu,useImperativeHandle:Rf,useInsertionEffect:Of,useLayoutEffect:_f,useMemo:Hf,useReducer:oi,useRef:Tf,useState:function(){return oi(xa)},useDebugValue:hu,useDeferredValue:function(e,t){var a=Qe();return qf(a,Te.memoizedState,e,t)},useTransition:function(){var e=oi(xa)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Vn(e),t]},useSyncExternalStore:df,useId:Yf,useHostTransitionStatus:yu,useFormState:Ef,useActionState:Ef,useOptimistic:function(e,t){var a=Qe();return gf(a,Te,e,t)},useMemoCache:uu,useCacheRefresh:Gf};vu.useEffectEvent=zf;var Zf={readContext:st,use:ri,useCallback:Uf,useContext:st,useEffect:mu,useImperativeHandle:Rf,useInsertionEffect:Of,useLayoutEffect:_f,useMemo:Hf,useReducer:ou,useRef:Tf,useState:function(){return ou(xa)},useDebugValue:hu,useDeferredValue:function(e,t){var a=Qe();return Te===null?xu(a,e,t):qf(a,Te.memoizedState,e,t)},useTransition:function(){var e=ou(xa)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Vn(e),t]},useSyncExternalStore:df,useId:Yf,useHostTransitionStatus:yu,useFormState:wf,useActionState:wf,useOptimistic:function(e,t){var a=Qe();return Te!==null?gf(a,Te,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:uu,useCacheRefresh:Gf};Zf.useEffectEvent=zf;function bu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:j({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ju={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Ot(),s=Ua(l);s.payload=t,a!=null&&(s.callback=a),t=Ha(e,s,l),t!==null&&(bt(t,e,l),Yn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Ot(),s=Ua(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Ha(e,s,l),t!==null&&(bt(t,e,l),Yn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ot(),l=Ua(a);l.tag=2,t!=null&&(l.callback=t),t=Ha(e,l,a),t!==null&&(bt(t,e,a),Yn(t,e,a))}};function Jf(e,t,a,l,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,o):t.prototype&&t.prototype.isPureReactComponent?!Dn(a,l)||!Dn(s,i):!0}function $f(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&ju.enqueueReplaceState(t,t.state,null)}function xl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=j({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Wf(e){Vs(e)}function Ff(e){console.error(e)}function If(e){Vs(e)}function hi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Pf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Nu(e,t,a){return a=Ua(a),a.tag=3,a.payload={element:null},a.callback=function(){hi(e,t)},a}function ed(e){return e=Ua(e),e.tag=3,e}function td(e,t,a,l){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var i=l.value;e.payload=function(){return s(i)},e.callback=function(){Pf(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Pf(t,a,l),typeof s!="function"&&(Ga===null?Ga=new Set([this]):Ga.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function yx(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Yl(t,a,s,!0),a=wt.current,a!==null){switch(a.tag){case 31:case 13:return kt===null?Ci():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=s,l===ti?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Zu(e,l,s)),!1;case 22:return a.flags|=65536,l===ti?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Zu(e,l,s)),!1}throw Error(r(435,a.tag))}return Zu(e,l,s),Ci(),!1}if(ge)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==Yc&&(e=Error(r(422),{cause:l}),Hn(Ht(e,a)))):(l!==Yc&&(t=Error(r(423),{cause:l}),Hn(Ht(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Ht(l,a),s=Nu(e.stateNode,l,s),Ic(e,s),Ge!==4&&(Ge=2)),!1;var i=Error(r(520),{cause:l});if(i=Ht(i,a),ts===null?ts=[i]:ts.push(i),Ge!==4&&(Ge=2),t===null)return!0;l=Ht(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Nu(a.stateNode,l,e),Ic(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ga===null||!Ga.has(i))))return a.flags|=65536,s&=-s,a.lanes|=s,s=ed(s),td(s,e,a,l),Ic(a,s),!1}a=a.return}while(a!==null);return!1}var Su=Error(r(461)),Je=!1;function it(e,t,a,l){t.child=e===null?nf(t,null,a,l):ml(t,e.child,a,l)}function ad(e,t,a,l,s){a=a.render;var i=t.ref;if("ref"in l){var o={};for(var p in l)p!=="ref"&&(o[p]=l[p])}else o=l;return rl(t),l=nu(e,t,a,o,i,s),p=su(),e!==null&&!Je?(iu(e,t,s),pa(e,t,s)):(ge&&p&&Bc(t),t.flags|=1,it(e,t,l,s),t.child)}function ld(e,t,a,l,s){if(e===null){var i=a.type;return typeof i=="function"&&!Hc(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,nd(e,t,i,l,s)):(e=$s(a.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ou(e,s)){var o=i.memoizedProps;if(a=a.compare,a=a!==null?a:Dn,a(o,l)&&e.ref===t.ref)return pa(e,t,s)}return t.flags|=1,e=oa(i,l),e.ref=t.ref,e.return=t,t.child=e}function nd(e,t,a,l,s){if(e!==null){var i=e.memoizedProps;if(Dn(i,l)&&e.ref===t.ref)if(Je=!1,t.pendingProps=l=i,Ou(e,s))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,pa(e,t,s)}return Au(e,t,a,l,s)}function sd(e,t,a,l){var s=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~i}else l=0,t.child=null;return id(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ps(t,i!==null?i.cachePool:null),i!==null?uf(t,i):eu(),rf(t);else return l=t.lanes=536870912,id(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(Ps(t,i.cachePool),uf(t,i),La(),t.memoizedState=null):(e!==null&&Ps(t,null),eu(),La());return it(e,t,s,a),t.child}function Jn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function id(e,t,a,l,s){var i=Jc();return i=i===null?null:{parent:Ke._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Ps(t,null),eu(),rf(t),e!==null&&Yl(e,t,l,!0),t.childLanes=s,null}function xi(e,t){return t=yi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cd(e,t,a){return ml(t,e.child,null,a),e=xi(t,t.pendingProps),e.flags|=2,Tt(t),t.memoizedState=null,e}function gx(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ge){if(l.mode==="hidden")return e=xi(t,l),t.lanes=536870912,Jn(null,e);if(au(t),(e=Re)?(e=vm(e,Bt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=Xo(e),a.return=t,t.child=a,nt=t,Re=null)):e=null,e===null)throw _a(t);return t.lanes=536870912,null}return xi(t,l)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(au(t),s)if(t.flags&256)t.flags&=-257,t=cd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||Yl(e,t,a,!1),s=(a&e.childLanes)!==0,Je||s){if(l=_e,l!==null&&(o=$r(l,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,sl(e,o),bt(l,e,o),Su;Ci(),t=cd(e,t,a)}else e=i.treeContext,Re=Yt(o.nextSibling),nt=t,ge=!0,Oa=null,Bt=!1,e!==null&&Ko(t,e),t=xi(t,l),t.flags|=4096;return t}return e=oa(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function pi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Au(e,t,a,l,s){return rl(t),a=nu(e,t,a,l,void 0,s),l=su(),e!==null&&!Je?(iu(e,t,s),pa(e,t,s)):(ge&&l&&Bc(t),t.flags|=1,it(e,t,a,s),t.child)}function ud(e,t,a,l,s,i){return rl(t),t.updateQueue=null,a=ff(t,l,a,s),of(e),l=su(),e!==null&&!Je?(iu(e,t,i),pa(e,t,i)):(ge&&l&&Bc(t),t.flags|=1,it(e,t,a,i),t.child)}function rd(e,t,a,l,s){if(rl(t),t.stateNode===null){var i=ql,o=a.contextType;typeof o=="object"&&o!==null&&(i=st(o)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ju,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},Wc(t),o=a.contextType,i.context=typeof o=="object"&&o!==null?st(o):ql,i.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(bu(t,a,o,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&ju.enqueueReplaceState(i,i.state,null),Xn(t,l,i,s),Gn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var p=t.memoizedProps,N=xl(a,p);i.props=N;var U=i.context,Y=a.contextType;o=ql,typeof Y=="object"&&Y!==null&&(o=st(Y));var Q=a.getDerivedStateFromProps;Y=typeof Q=="function"||typeof i.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,Y||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(p||U!==o)&&$f(t,i,l,o),Ra=!1;var H=t.memoizedState;i.state=H,Xn(t,l,i,s),Gn(),U=t.memoizedState,p||H!==U||Ra?(typeof Q=="function"&&(bu(t,a,Q,l),U=t.memoizedState),(N=Ra||Jf(t,a,N,l,H,U,o))?(Y||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=U),i.props=l,i.state=U,i.context=o,l=N):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,Fc(e,t),o=t.memoizedProps,Y=xl(a,o),i.props=Y,Q=t.pendingProps,H=i.context,U=a.contextType,N=ql,typeof U=="object"&&U!==null&&(N=st(U)),p=a.getDerivedStateFromProps,(U=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==Q||H!==N)&&$f(t,i,l,N),Ra=!1,H=t.memoizedState,i.state=H,Xn(t,l,i,s),Gn();var q=t.memoizedState;o!==Q||H!==q||Ra||e!==null&&e.dependencies!==null&&Fs(e.dependencies)?(typeof p=="function"&&(bu(t,a,p,l),q=t.memoizedState),(Y=Ra||Jf(t,a,Y,l,H,q,N)||e!==null&&e.dependencies!==null&&Fs(e.dependencies))?(U||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,q,N),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,q,N)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),i.props=l,i.state=q,i.context=N,l=Y):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,pi(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=ml(t,e.child,null,s),t.child=ml(t,null,a,s)):it(e,t,a,s),t.memoizedState=i.state,e=t.child):e=pa(e,t,s),e}function od(e,t,a,l){return cl(),t.flags|=256,it(e,t,a,l),t.child}var Eu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cu(e){return{baseLanes:e,cachePool:Io()}}function wu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function fd(e,t,a){var l=t.pendingProps,s=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),o&&(s=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(s?qa(t):La(),(e=Re)?(e=vm(e,Bt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=Xo(e),a.return=t,t.child=a,nt=t,Re=null)):e=null,e===null)throw _a(t);return rr(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,s?(La(),s=t.mode,p=yi({mode:"hidden",children:p},s),l=il(l,s,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=Cu(a),l.childLanes=wu(e,o,a),t.memoizedState=Eu,Jn(null,l)):(qa(t),Tu(t,p))}var N=e.memoizedState;if(N!==null&&(p=N.dehydrated,p!==null)){if(i)t.flags&256?(qa(t),t.flags&=-257,t=Mu(e,t,a)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),p=l.fallback,s=t.mode,l=yi({mode:"visible",children:l.children},s),p=il(p,s,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,ml(t,e.child,null,a),l=t.child,l.memoizedState=Cu(a),l.childLanes=wu(e,o,a),t.memoizedState=Eu,t=Jn(null,l));else if(qa(t),rr(p)){if(o=p.nextSibling&&p.nextSibling.dataset,o)var U=o.dgst;o=U,l=Error(r(419)),l.stack="",l.digest=o,Hn({value:l,source:null,stack:null}),t=Mu(e,t,a)}else if(Je||Yl(e,t,a,!1),o=(a&e.childLanes)!==0,Je||o){if(o=_e,o!==null&&(l=$r(o,a),l!==0&&l!==N.retryLane))throw N.retryLane=l,sl(e,l),bt(o,e,l),Su;ur(p)||Ci(),t=Mu(e,t,a)}else ur(p)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Re=Yt(p.nextSibling),nt=t,ge=!0,Oa=null,Bt=!1,e!==null&&Ko(t,e),t=Tu(t,l.children),t.flags|=4096);return t}return s?(La(),p=l.fallback,s=t.mode,N=e.child,U=N.sibling,l=oa(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,U!==null?p=oa(U,p):(p=il(p,s,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,Jn(null,l),l=t.child,p=e.child.memoizedState,p===null?p=Cu(a):(s=p.cachePool,s!==null?(N=Ke._currentValue,s=s.parent!==N?{parent:N,pool:N}:s):s=Io(),p={baseLanes:p.baseLanes|a,cachePool:s}),l.memoizedState=p,l.childLanes=wu(e,o,a),t.memoizedState=Eu,Jn(e.child,l)):(qa(t),a=e.child,e=a.sibling,a=oa(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function Tu(e,t){return t=yi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function yi(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Mu(e,t,a){return ml(t,e.child,null,a),e=Tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Qc(e.return,t,a)}function zu(e,t,a,l,s,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=s,o.treeForkCount=i)}function md(e,t,a){var l=t.pendingProps,s=l.revealOrder,i=l.tail;l=l.children;var o=Xe.current,p=(o&2)!==0;if(p?(o=o&1|2,t.flags|=128):o&=1,$(Xe,o),it(e,t,l,a),l=ge?Un:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dd(e,a,t);else if(e.tag===19)dd(e,a,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(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&si(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),zu(t,!1,s,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&si(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}zu(t,!0,a,null,i,l);break;case"together":zu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function pa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Yl(e,t,a,!1),(a&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,a=oa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=oa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ou(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Fs(e)))}function vx(e,t,a){switch(t.tag){case 3:Fe(t,t.stateNode.containerInfo),Da(t,Ke,e.memoizedState.cache),cl();break;case 27:case 5:Ca(t);break;case 4:Fe(t,t.stateNode.containerInfo);break;case 10:Da(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,au(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(qa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?fd(e,t,a):(qa(t),e=pa(e,t,a),e!==null?e.sibling:null);qa(t);break;case 19:var s=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Yl(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)return md(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),$(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,sd(e,t,a,t.pendingProps);case 24:Da(t,Ke,e.memoizedState.cache)}return pa(e,t,a)}function hd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Ou(e,a)&&(t.flags&128)===0)return Je=!1,vx(e,t,a);Je=(e.flags&131072)!==0}else Je=!1,ge&&(t.flags&1048576)!==0&&Vo(t,Un,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=fl(t.elementType),t.type=e,typeof e=="function")Hc(e)?(l=xl(e,l),t.tag=1,t=rd(null,t,e,l,a)):(t.tag=0,t=Au(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===L){t.tag=11,t=ad(null,t,e,l,a);break e}else if(s===V){t.tag=14,t=ld(null,t,e,l,a);break e}}throw t=at(e)||e,Error(r(306,t,""))}}return t;case 0:return Au(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=xl(l,t.pendingProps),rd(e,t,l,s,a);case 3:e:{if(Fe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var i=t.memoizedState;s=i.element,Fc(e,t),Xn(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Da(t,Ke,l),l!==i.cache&&Vc(t,[Ke],a,!0),Gn(),l=o.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=od(e,t,l,a);break e}else if(l!==s){s=Ht(Error(r(424)),t),Hn(s),t=od(e,t,l,a);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(Re=Yt(e.firstChild),nt=t,ge=!0,Oa=null,Bt=!0,a=nf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(cl(),l===s){t=pa(e,t,a);break e}it(e,t,l,a)}t=t.child}return t;case 26:return pi(e,t),e===null?(a=Em(t.type,null,t.pendingProps,null))?t.memoizedState=a:ge||(a=t.type,e=t.pendingProps,l=Di(fe.current).createElement(a),l[lt]=t,l[ht]=e,ct(l,a,e),et(l),t.stateNode=l):t.memoizedState=Em(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ca(t),e===null&&ge&&(l=t.stateNode=Nm(t.type,t.pendingProps,fe.current),nt=t,Bt=!0,s=Re,Ka(t.type)?(or=s,Re=Yt(l.firstChild)):Re=s),it(e,t,t.pendingProps.children,a),pi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((s=l=Re)&&(l=$x(l,t.type,t.pendingProps,Bt),l!==null?(t.stateNode=l,nt=t,Re=Yt(l.firstChild),Bt=!1,s=!0):s=!1),s||_a(t)),Ca(t),s=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,sr(s,i)?l=null:o!==null&&sr(s,o)&&(t.flags|=32),t.memoizedState!==null&&(s=nu(e,t,ox,null,null,a),rs._currentValue=s),pi(e,t),it(e,t,l,a),t.child;case 6:return e===null&&ge&&((e=a=Re)&&(a=Wx(a,t.pendingProps,Bt),a!==null?(t.stateNode=a,nt=t,Re=null,e=!0):e=!1),e||_a(t)),null;case 13:return fd(e,t,a);case 4:return Fe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ml(t,null,l,a):it(e,t,l,a),t.child;case 11:return ad(e,t,t.type,t.pendingProps,a);case 7:return it(e,t,t.pendingProps,a),t.child;case 8:return it(e,t,t.pendingProps.children,a),t.child;case 12:return it(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Da(t,t.type,l.value),it(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,rl(t),s=st(s),l=l(s),t.flags|=1,it(e,t,l,a),t.child;case 14:return ld(e,t,t.type,t.pendingProps,a);case 15:return nd(e,t,t.type,t.pendingProps,a);case 19:return md(e,t,a);case 31:return gx(e,t,a);case 22:return sd(e,t,a,t.pendingProps);case 24:return rl(t),l=st(Ke),e===null?(s=Jc(),s===null&&(s=_e,i=Kc(),s.pooledCache=i,i.refCount++,i!==null&&(s.pooledCacheLanes|=a),s=i),t.memoizedState={parent:l,cache:s},Wc(t),Da(t,Ke,s)):((e.lanes&a)!==0&&(Fc(e,t),Xn(t,null,null,a),Gn()),s=e.memoizedState,i=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Da(t,Ke,l)):(l=i.cache,Da(t,Ke,l),l!==s.cache&&Vc(t,[Ke],a,!0))),it(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function ya(e){e.flags|=4}function _u(e,t,a,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Yd())e.flags|=8192;else throw dl=ti,$c}else e.flags&=-16777217}function xd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zm(t))if(Yd())e.flags|=8192;else throw dl=ti,$c}function gi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Kr():536870912,e.lanes|=t,Pl|=t)}function $n(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function bx(e,t,a){var l=t.pendingProps;switch(kc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ma(Ke),Oe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(kl(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gc())),Ue(t),null;case 26:var s=t.type,i=t.memoizedState;return e===null?(ya(t),i!==null?(Ue(t),xd(t,i)):(Ue(t),_u(t,s,null,l,a))):i?i!==e.memoizedState?(ya(t),Ue(t),xd(t,i)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ya(t),Ue(t),_u(t,s,e,l,a)),null;case 27:if(dt(t),a=fe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ya(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Ue(t),null}e=P.current,kl(t)?Zo(t):(e=Nm(s,l,a),t.stateNode=e,ya(t))}return Ue(t),null;case 5:if(dt(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ya(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Ue(t),null}if(i=P.current,kl(t))Zo(t);else{var o=Di(fe.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?o.createElement(s,{is:l.is}):o.createElement(s)}}i[lt]=t,i[ht]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(ct(i,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ya(t)}}return Ue(t),_u(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ya(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,kl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=nt,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[lt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||fm(e.nodeValue,a)),e||_a(t,!0)}else e=Di(e).createTextNode(l),e[lt]=t,t.stateNode=e}return Ue(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=kl(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[lt]=t}else cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else a=Gc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Tt(t),t):(Tt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=kl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[lt]=t}else cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),s=!1}else s=Gc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Tt(t),t):(Tt(t),null)}return Tt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==s&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),gi(t,t.updateQueue),Ue(t),null);case 4:return Oe(),e===null&&er(t.stateNode.containerInfo),Ue(t),null;case 10:return ma(t.type),Ue(t),null;case 19:if(X(Xe),l=t.memoizedState,l===null)return Ue(t),null;if(s=(t.flags&128)!==0,i=l.rendering,i===null)if(s)$n(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=si(e),i!==null){for(t.flags|=128,$n(l,!1),e=i.updateQueue,t.updateQueue=e,gi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Go(a,e),a=a.sibling;return $(Xe,Xe.current&1|2),ge&&fa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&de()>Si&&(t.flags|=128,s=!0,$n(l,!1),t.lanes=4194304)}else{if(!s)if(e=si(i),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,gi(t,e),$n(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!ge)return Ue(t),null}else 2*de()-l.renderingStartTime>Si&&a!==536870912&&(t.flags|=128,s=!0,$n(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=de(),e.sibling=null,a=Xe.current,$(Xe,s?a&1|2:a&1),ge&&fa(t,l.treeForkCount),e):(Ue(t),null);case 22:case 23:return Tt(t),tu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),a=t.updateQueue,a!==null&&gi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&X(ol),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ma(Ke),Ue(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function jx(e,t){switch(kc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(Ke),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return dt(t),null;case 31:if(t.memoizedState!==null){if(Tt(t),t.alternate===null)throw Error(r(340));cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Tt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Xe),null;case 4:return Oe(),null;case 10:return ma(t.type),null;case 22:case 23:return Tt(t),tu(),e!==null&&X(ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(Ke),null;case 25:return null;default:return null}}function pd(e,t){switch(kc(t),t.tag){case 3:ma(Ke),Oe();break;case 26:case 27:case 5:dt(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&Tt(t);break;case 13:Tt(t);break;case 19:X(Xe);break;case 10:ma(t.type);break;case 22:case 23:Tt(t),tu(),e!==null&&X(ol);break;case 24:ma(Ke)}}function Wn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var i=a.create,o=a.inst;l=i(),o.destroy=l}a=a.next}while(a!==s)}}catch(p){Ce(t,t.return,p)}}function Ba(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var i=s.next;l=i;do{if((l.tag&e)===e){var o=l.inst,p=o.destroy;if(p!==void 0){o.destroy=void 0,s=t;var N=a,U=p;try{U()}catch(Y){Ce(s,N,Y)}}}l=l.next}while(l!==i)}}catch(Y){Ce(t,t.return,Y)}}function yd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{cf(t,a)}catch(l){Ce(e,e.return,l)}}}function gd(e,t,a){a.props=xl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ce(e,t,l)}}function Fn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(s){Ce(e,t,s)}}function Pt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){Ce(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Ce(e,t,s)}else a.current=null}function vd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(s){Ce(e,e.return,s)}}function Du(e,t,a){try{var l=e.stateNode;Xx(l,e.type,a,t),l[ht]=t}catch(s){Ce(e,e.return,s)}}function bd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function Ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bd(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&&Ka(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 Uu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ua));else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Uu(e,t,a),e=e.sibling;e!==null;)Uu(e,t,a),e=e.sibling}function vi(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(vi(e,t,a),e=e.sibling;e!==null;)vi(e,t,a),e=e.sibling}function jd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ct(t,l,a),t[lt]=e,t[ht]=a}catch(i){Ce(e,e.return,i)}}var ga=!1,$e=!1,Hu=!1,Nd=typeof WeakSet=="function"?WeakSet:Set,tt=null;function Nx(e,t){if(e=e.containerInfo,lr=ki,e=Do(e),Mc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var s=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var o=0,p=-1,N=-1,U=0,Y=0,Q=e,H=null;t:for(;;){for(var q;Q!==a||s!==0&&Q.nodeType!==3||(p=o+s),Q!==i||l!==0&&Q.nodeType!==3||(N=o+l),Q.nodeType===3&&(o+=Q.nodeValue.length),(q=Q.firstChild)!==null;)H=Q,Q=q;for(;;){if(Q===e)break t;if(H===a&&++U===s&&(p=o),H===i&&++Y===l&&(N=o),(q=Q.nextSibling)!==null)break;Q=H,H=Q.parentNode}Q=q}a=p===-1||N===-1?null:{start:p,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(nr={focusedElem:e,selectionRange:a},ki=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,i=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(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,s=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var ee=xl(a.type,s);e=l.getSnapshotBeforeUpdate(ee,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ce(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)cr(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cr(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,tt=e;break}tt=t.return}}function Sd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ba(e,a),l&4&&Wn(5,a);break;case 1:if(ba(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Ce(a,a.return,o)}else{var s=xl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ce(a,a.return,o)}}l&64&&yd(a),l&512&&Fn(a,a.return);break;case 3:if(ba(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{cf(e,t)}catch(o){Ce(a,a.return,o)}}break;case 27:t===null&&l&4&&jd(a);case 26:case 5:ba(e,a),t===null&&l&4&&vd(a),l&512&&Fn(a,a.return);break;case 12:ba(e,a);break;case 31:ba(e,a),l&4&&Cd(e,a);break;case 13:ba(e,a),l&4&&wd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ox.bind(null,a),Fx(e,a))));break;case 22:if(l=a.memoizedState!==null||ga,!l){t=t!==null&&t.memoizedState!==null||$e,s=ga;var i=$e;ga=l,($e=t)&&!i?ja(e,a,(a.subtreeFlags&8772)!==0):ba(e,a),ga=s,$e=i}break;case 30:break;default:ba(e,a)}}function Ad(e){var t=e.alternate;t!==null&&(e.alternate=null,Ad(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dc(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 He=null,pt=!1;function va(e,t,a){for(a=a.child;a!==null;)Ed(e,t,a),a=a.sibling}function Ed(e,t,a){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(jn,a)}catch{}switch(a.tag){case 26:$e||Pt(a,t),va(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||Pt(a,t);var l=He,s=pt;Ka(a.type)&&(He=a.stateNode,pt=!1),va(e,t,a),is(a.stateNode),He=l,pt=s;break;case 5:$e||Pt(a,t);case 6:if(l=He,s=pt,He=null,va(e,t,a),He=l,pt=s,He!==null)if(pt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(a.stateNode)}catch(i){Ce(a,t,i)}else try{He.removeChild(a.stateNode)}catch(i){Ce(a,t,i)}break;case 18:He!==null&&(pt?(e=He,ym(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),un(e)):ym(He,a.stateNode));break;case 4:l=He,s=pt,He=a.stateNode.containerInfo,pt=!0,va(e,t,a),He=l,pt=s;break;case 0:case 11:case 14:case 15:Ba(2,a,t),$e||Ba(4,a,t),va(e,t,a);break;case 1:$e||(Pt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&gd(a,t,l)),va(e,t,a);break;case 21:va(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,va(e,t,a),$e=l;break;default:va(e,t,a)}}function Cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{un(e)}catch(a){Ce(t,t.return,a)}}}function wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{un(e)}catch(a){Ce(t,t.return,a)}}function Sx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Nd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Nd),t;default:throw Error(r(435,e.tag))}}function bi(e,t){var a=Sx(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=_x.bind(null,e,l);l.then(s,s)}})}function yt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],i=e,o=t,p=o;e:for(;p!==null;){switch(p.tag){case 27:if(Ka(p.type)){He=p.stateNode,pt=!1;break e}break;case 5:He=p.stateNode,pt=!1;break e;case 3:case 4:He=p.stateNode.containerInfo,pt=!0;break e}p=p.return}if(He===null)throw Error(r(160));Ed(i,o,s),He=null,pt=!1,i=s.alternate,i!==null&&(i.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Td(t,e),t=t.sibling}var Zt=null;function Td(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),gt(e),l&4&&(Ba(3,e,e.return),Wn(3,e),Ba(5,e,e.return));break;case 1:yt(t,e),gt(e),l&512&&($e||a===null||Pt(a,a.return)),l&64&&ga&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var s=Zt;if(yt(t,e),gt(e),l&512&&($e||a===null||Pt(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":i=s.getElementsByTagName("title")[0],(!i||i[An]||i[lt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=s.createElement(l),s.head.insertBefore(i,s.querySelector("head > title"))),ct(i,l,a),i[lt]=e,et(i),l=i;break e;case"link":var o=Tm("link","href",s).get(l+(a.href||""));if(o){for(var p=0;p<o.length;p++)if(i=o[p],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(p,1);break t}}i=s.createElement(l),ct(i,l,a),s.head.appendChild(i);break;case"meta":if(o=Tm("meta","content",s).get(l+(a.content||""))){for(p=0;p<o.length;p++)if(i=o[p],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(p,1);break t}}i=s.createElement(l),ct(i,l,a),s.head.appendChild(i);break;default:throw Error(r(468,l))}i[lt]=e,et(i),l=i}e.stateNode=l}else Mm(s,e.type,e.stateNode);else e.stateNode=wm(s,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Mm(s,e.type,e.stateNode):wm(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Du(e,e.memoizedProps,a.memoizedProps)}break;case 27:yt(t,e),gt(e),l&512&&($e||a===null||Pt(a,a.return)),a!==null&&l&4&&Du(e,e.memoizedProps,a.memoizedProps);break;case 5:if(yt(t,e),gt(e),l&512&&($e||a===null||Pt(a,a.return)),e.flags&32){s=e.stateNode;try{zl(s,"")}catch(ee){Ce(e,e.return,ee)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,Du(e,s,a!==null?a.memoizedProps:s)),l&1024&&(Hu=!0);break;case 6:if(yt(t,e),gt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(ee){Ce(e,e.return,ee)}}break;case 3:if(Hi=null,s=Zt,Zt=Ri(t.containerInfo),yt(t,e),Zt=s,gt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{un(t.containerInfo)}catch(ee){Ce(e,e.return,ee)}Hu&&(Hu=!1,Md(e));break;case 4:l=Zt,Zt=Ri(e.stateNode.containerInfo),yt(t,e),gt(e),Zt=l;break;case 12:yt(t,e),gt(e);break;case 31:yt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,bi(e,l)));break;case 13:yt(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ni=de()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,bi(e,l)));break;case 22:s=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,U=ga,Y=$e;if(ga=U||s,$e=Y||N,yt(t,e),$e=Y,ga=U,gt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||N||ga||$e||pl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){N=a=t;try{if(i=N.stateNode,s)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{p=N.stateNode;var Q=N.memoizedProps.style,H=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;p.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(ee){Ce(N,N.return,ee)}}}else if(t.tag===6){if(a===null){N=t;try{N.stateNode.nodeValue=s?"":N.memoizedProps}catch(ee){Ce(N,N.return,ee)}}}else if(t.tag===18){if(a===null){N=t;try{var q=N.stateNode;s?gm(q,!0):gm(N.stateNode,!1)}catch(ee){Ce(N,N.return,ee)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,bi(e,a))));break;case 19:yt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,bi(e,l)));break;case 30:break;case 21:break;default:yt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(bd(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var s=a.stateNode,i=Ru(e);vi(e,i,s);break;case 5:var o=a.stateNode;a.flags&32&&(zl(o,""),a.flags&=-33);var p=Ru(e);vi(e,p,o);break;case 3:case 4:var N=a.stateNode.containerInfo,U=Ru(e);Uu(e,U,N);break;default:throw Error(r(161))}}catch(Y){Ce(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Md(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ba(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Sd(e,t.alternate,t),t=t.sibling}function pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ba(4,t,t.return),pl(t);break;case 1:Pt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&gd(t,t.return,a),pl(t);break;case 27:is(t.stateNode);case 26:case 5:Pt(t,t.return),pl(t);break;case 22:t.memoizedState===null&&pl(t);break;case 30:pl(t);break;default:pl(t)}e=e.sibling}}function ja(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:ja(s,i,a),Wn(4,i);break;case 1:if(ja(s,i,a),l=i,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Ce(l,l.return,U)}if(l=i,s=l.updateQueue,s!==null){var p=l.stateNode;try{var N=s.shared.hiddenCallbacks;if(N!==null)for(s.shared.hiddenCallbacks=null,s=0;s<N.length;s++)sf(N[s],p)}catch(U){Ce(l,l.return,U)}}a&&o&64&&yd(i),Fn(i,i.return);break;case 27:jd(i);case 26:case 5:ja(s,i,a),a&&l===null&&o&4&&vd(i),Fn(i,i.return);break;case 12:ja(s,i,a);break;case 31:ja(s,i,a),a&&o&4&&Cd(s,i);break;case 13:ja(s,i,a),a&&o&4&&wd(s,i);break;case 22:i.memoizedState===null&&ja(s,i,a),Fn(i,i.return);break;case 30:break;default:ja(s,i,a)}t=t.sibling}}function qu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&qn(a))}function Lu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e))}function Jt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zd(e,t,a,l),t=t.sibling}function zd(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),s&2048&&Wn(9,t);break;case 1:Jt(e,t,a,l);break;case 3:Jt(e,t,a,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e)));break;case 12:if(s&2048){Jt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,p=i.onPostCommit;typeof p=="function"&&p(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ce(t,t.return,N)}}else Jt(e,t,a,l);break;case 31:Jt(e,t,a,l);break;case 13:Jt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Jt(e,t,a,l):In(e,t):i._visibility&2?Jt(e,t,a,l):(i._visibility|=2,Wl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&qu(o,t);break;case 24:Jt(e,t,a,l),s&2048&&Lu(t.alternate,t);break;default:Jt(e,t,a,l)}}function Wl(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,p=a,N=l,U=o.flags;switch(o.tag){case 0:case 11:case 15:Wl(i,o,p,N,s),Wn(8,o);break;case 23:break;case 22:var Y=o.stateNode;o.memoizedState!==null?Y._visibility&2?Wl(i,o,p,N,s):In(i,o):(Y._visibility|=2,Wl(i,o,p,N,s)),s&&U&2048&&qu(o.alternate,o);break;case 24:Wl(i,o,p,N,s),s&&U&2048&&Lu(o.alternate,o);break;default:Wl(i,o,p,N,s)}t=t.sibling}}function In(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,s=l.flags;switch(l.tag){case 22:In(a,l),s&2048&&qu(l.alternate,l);break;case 24:In(a,l),s&2048&&Lu(l.alternate,l);break;default:In(a,l)}t=t.sibling}}var Pn=8192;function Fl(e,t,a){if(e.subtreeFlags&Pn)for(e=e.child;e!==null;)Od(e,t,a),e=e.sibling}function Od(e,t,a){switch(e.tag){case 26:Fl(e,t,a),e.flags&Pn&&e.memoizedState!==null&&rp(a,Zt,e.memoizedState,e.memoizedProps);break;case 5:Fl(e,t,a);break;case 3:case 4:var l=Zt;Zt=Ri(e.stateNode.containerInfo),Fl(e,t,a),Zt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Pn,Pn=16777216,Fl(e,t,a),Pn=l):Fl(e,t,a));break;default:Fl(e,t,a)}}function _d(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 es(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];tt=l,Rd(l,e)}_d(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dd(e),e=e.sibling}function Dd(e){switch(e.tag){case 0:case 11:case 15:es(e),e.flags&2048&&Ba(9,e,e.return);break;case 3:es(e);break;case 12:es(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ji(e)):es(e);break;default:es(e)}}function ji(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];tt=l,Rd(l,e)}_d(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ba(8,t,t.return),ji(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ji(t));break;default:ji(t)}e=e.sibling}}function Rd(e,t){for(;tt!==null;){var a=tt;switch(a.tag){case 0:case 11:case 15:Ba(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:qn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,tt=l;else e:for(a=e;tt!==null;){l=tt;var s=l.sibling,i=l.return;if(Ad(l),l===a){tt=null;break e}if(s!==null){s.return=i,tt=s;break e}tt=i}}}var Ax={getCacheForType:function(e){var t=st(Ke),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return st(Ke).controller.signal}},Ex=typeof WeakMap=="function"?WeakMap:Map,Ae=0,_e=null,me=null,xe=0,Ee=0,Mt=null,ka=!1,Il=!1,Bu=!1,Na=0,Ge=0,Ya=0,yl=0,ku=0,zt=0,Pl=0,ts=null,vt=null,Yu=!1,Ni=0,Ud=0,Si=1/0,Ai=null,Ga=null,Ie=0,Xa=null,en=null,Sa=0,Gu=0,Xu=null,Hd=null,as=0,Qu=null;function Ot(){return(Ae&2)!==0&&xe!==0?xe&-xe:k.T!==null?Wu():Wr()}function qd(){if(zt===0)if((xe&536870912)===0||ge){var e=_s;_s<<=1,(_s&3932160)===0&&(_s=262144),zt=e}else zt=536870912;return e=wt.current,e!==null&&(e.flags|=32),zt}function bt(e,t,a){(e===_e&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(tn(e,0),Qa(e,xe,zt,!1)),Sn(e,a),((Ae&2)===0||e!==_e)&&(e===_e&&((Ae&2)===0&&(yl|=a),Ge===4&&Qa(e,xe,zt,!1)),ea(e))}function Ld(e,t,a){if((Ae&6)!==0)throw Error(r(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Nn(e,t),s=l?Tx(e,t):Ku(e,t,!0),i=l;do{if(s===0){Il&&!l&&Qa(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!Cx(a)){s=Ku(e,t,!1),i=!1;continue}if(s===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var p=e;s=ts;var N=p.current.memoizedState.isDehydrated;if(N&&(tn(p,o).flags|=256),o=Ku(p,o,!1),o!==2){if(Bu&&!N){p.errorRecoveryDisabledLanes|=i,yl|=i,s=4;break e}i=vt,vt=s,i!==null&&(vt===null?vt=i:vt.push.apply(vt,i))}s=o}if(i=!1,s!==2)continue}}if(s===1){tn(e,0),Qa(e,t,0,!0);break}e:{switch(l=e,i=s,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Qa(l,t,zt,!ka);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=Ni+300-de(),10<s)){if(Qa(l,t,zt,!ka),Rs(l,0,!0)!==0)break e;Sa=t,l.timeoutHandle=xm(Bd.bind(null,l,a,vt,Ai,Yu,t,zt,yl,Pl,ka,i,"Throttled",-0,0),s);break e}Bd(l,a,vt,Ai,Yu,t,zt,yl,Pl,ka,i,null,-0,0)}}break}while(!0);ea(e)}function Bd(e,t,a,l,s,i,o,p,N,U,Y,Q,H,q){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:ua},Od(t,i,Q);var ee=(i&62914560)===i?Ni-de():(i&4194048)===i?Ud-de():0;if(ee=op(Q,ee),ee!==null){Sa=i,e.cancelPendingCommit=ee(Zd.bind(null,e,t,i,a,l,s,o,p,N,Y,Q,null,H,q)),Qa(e,i,o,!U);return}}Zd(e,t,i,a,l,s,o,p,N)}function Cx(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var s=a[l],i=s.getSnapshot;s=s.value;try{if(!Et(i(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Qa(e,t,a,l){t&=~ku,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var i=31-At(s),o=1<<i;l[i]=-1,s&=~o}a!==0&&Zr(e,a,t)}function Ei(){return(Ae&6)===0?(ls(0),!1):!0}function Vu(){if(me!==null){if(Ee===0)var e=me.return;else e=me,da=ul=null,cu(e),Vl=null,Bn=0,e=me;for(;e!==null;)pd(e.alternate,e),e=e.return;me=null}}function tn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Kx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Sa=0,Vu(),_e=e,me=a=oa(e.current,null),xe=t,Ee=0,Mt=null,ka=!1,Il=Nn(e,t),Bu=!1,Pl=zt=ku=yl=Ya=Ge=0,vt=ts=null,Yu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-At(l),i=1<<s;t|=e[s],l&=~i}return Na=t,Ks(),a}function kd(e,t){re=null,k.H=Zn,t===Ql||t===ei?(t=tf(),Ee=3):t===$c?(t=tf(),Ee=4):Ee=t===Su?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,me===null&&(Ge=1,hi(e,Ht(t,e.current)))}function Yd(){var e=wt.current;return e===null?!0:(xe&4194048)===xe?kt===null:(xe&62914560)===xe||(xe&536870912)!==0?e===kt:!1}function Gd(){var e=k.H;return k.H=Zn,e===null?Zn:e}function Xd(){var e=k.A;return k.A=Ax,e}function Ci(){Ge=4,ka||(xe&4194048)!==xe&&wt.current!==null||(Il=!0),(Ya&134217727)===0&&(yl&134217727)===0||_e===null||Qa(_e,xe,zt,!1)}function Ku(e,t,a){var l=Ae;Ae|=2;var s=Gd(),i=Xd();(_e!==e||xe!==t)&&(Ai=null,tn(e,t)),t=!1;var o=Ge;e:do try{if(Ee!==0&&me!==null){var p=me,N=Mt;switch(Ee){case 8:Vu(),o=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var U=Ee;if(Ee=0,Mt=null,an(e,p,N,U),a&&Il){o=0;break e}break;default:U=Ee,Ee=0,Mt=null,an(e,p,N,U)}}wx(),o=Ge;break}catch(Y){kd(e,Y)}while(!0);return t&&e.shellSuspendCounter++,da=ul=null,Ae=l,k.H=s,k.A=i,me===null&&(_e=null,xe=0,Ks()),o}function wx(){for(;me!==null;)Qd(me)}function Tx(e,t){var a=Ae;Ae|=2;var l=Gd(),s=Xd();_e!==e||xe!==t?(Ai=null,Si=de()+500,tn(e,t)):Il=Nn(e,t);e:do try{if(Ee!==0&&me!==null){t=me;var i=Mt;t:switch(Ee){case 1:Ee=0,Mt=null,an(e,t,i,1);break;case 2:case 9:if(Po(i)){Ee=0,Mt=null,Vd(t);break}t=function(){Ee!==2&&Ee!==9||_e!==e||(Ee=7),ea(e)},i.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Po(i)?(Ee=0,Mt=null,Vd(t)):(Ee=0,Mt=null,an(e,t,i,7));break;case 5:var o=null;switch(me.tag){case 26:o=me.memoizedState;case 5:case 27:var p=me;if(o?zm(o):p.stateNode.complete){Ee=0,Mt=null;var N=p.sibling;if(N!==null)me=N;else{var U=p.return;U!==null?(me=U,wi(U)):me=null}break t}}Ee=0,Mt=null,an(e,t,i,5);break;case 6:Ee=0,Mt=null,an(e,t,i,6);break;case 8:Vu(),Ge=6;break e;default:throw Error(r(462))}}Mx();break}catch(Y){kd(e,Y)}while(!0);return da=ul=null,k.H=l,k.A=s,Ae=a,me!==null?0:(_e=null,xe=0,Ks(),Ge)}function Mx(){for(;me!==null&&!K();)Qd(me)}function Qd(e){var t=hd(e.alternate,e,Na);e.memoizedProps=e.pendingProps,t===null?wi(e):me=t}function Vd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ud(a,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=ud(a,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:cu(t);default:pd(a,t),t=me=Go(t,Na),t=hd(a,t,Na)}e.memoizedProps=e.pendingProps,t===null?wi(e):me=t}function an(e,t,a,l){da=ul=null,cu(t),Vl=null,Bn=0;var s=t.return;try{if(yx(e,s,t,a,xe)){Ge=1,hi(e,Ht(a,e.current)),me=null;return}}catch(i){if(s!==null)throw me=s,i;Ge=1,hi(e,Ht(a,e.current)),me=null;return}t.flags&32768?(ge||l===1?e=!0:Il||(xe&536870912)!==0?e=!1:(ka=e=!0,(l===2||l===9||l===3||l===6)&&(l=wt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Kd(t,e)):wi(t)}function wi(e){var t=e;do{if((t.flags&32768)!==0){Kd(t,ka);return}e=t.return;var a=bx(t.alternate,t,Na);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);Ge===0&&(Ge=5)}function Kd(e,t){do{var a=jx(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);Ge=6,me=null}function Zd(e,t,a,l,s,i,o,p,N){e.cancelPendingCommit=null;do Ti();while(Ie!==0);if((Ae&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=Rc,u0(e,a,i,o,p,N),e===_e&&(me=_e=null,xe=0),en=t,Xa=e,Sa=a,Gu=i,Xu=s,Hd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Dx(ke,function(){return Id(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,s=F.p,F.p=2,o=Ae,Ae|=4;try{Nx(e,t,a)}finally{Ae=o,F.p=s,k.T=l}}Ie=1,Jd(),$d(),Wd()}}function Jd(){if(Ie===1){Ie=0;var e=Xa,t=en,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var l=F.p;F.p=2;var s=Ae;Ae|=4;try{Td(t,e);var i=nr,o=Do(e.containerInfo),p=i.focusedElem,N=i.selectionRange;if(o!==p&&p&&p.ownerDocument&&_o(p.ownerDocument.documentElement,p)){if(N!==null&&Mc(p)){var U=N.start,Y=N.end;if(Y===void 0&&(Y=U),"selectionStart"in p)p.selectionStart=U,p.selectionEnd=Math.min(Y,p.value.length);else{var Q=p.ownerDocument||document,H=Q&&Q.defaultView||window;if(H.getSelection){var q=H.getSelection(),ee=p.textContent.length,ie=Math.min(N.start,ee),ze=N.end===void 0?ie:Math.min(N.end,ee);!q.extend&&ie>ze&&(o=ze,ze=ie,ie=o);var O=Oo(p,ie),w=Oo(p,ze);if(O&&w&&(q.rangeCount!==1||q.anchorNode!==O.node||q.anchorOffset!==O.offset||q.focusNode!==w.node||q.focusOffset!==w.offset)){var R=Q.createRange();R.setStart(O.node,O.offset),q.removeAllRanges(),ie>ze?(q.addRange(R),q.extend(w.node,w.offset)):(R.setEnd(w.node,w.offset),q.addRange(R))}}}}for(Q=[],q=p;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<Q.length;p++){var G=Q[p];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}ki=!!lr,nr=lr=null}finally{Ae=s,F.p=l,k.T=a}}e.current=t,Ie=2}}function $d(){if(Ie===2){Ie=0;var e=Xa,t=en,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var l=F.p;F.p=2;var s=Ae;Ae|=4;try{Sd(e,t.alternate,t)}finally{Ae=s,F.p=l,k.T=a}}Ie=3}}function Wd(){if(Ie===4||Ie===3){Ie=0,ye();var e=Xa,t=en,a=Sa,l=Hd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,en=Xa=null,Fd(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ga=null),oc(a),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(jn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=k.T,s=F.p,F.p=2,k.T=null;try{for(var i=e.onRecoverableError,o=0;o<l.length;o++){var p=l[o];i(p.value,{componentStack:p.stack})}}finally{k.T=t,F.p=s}}(Sa&3)!==0&&Ti(),ea(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Qu?as++:(as=0,Qu=e):as=0,ls(0)}}function Fd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qn(t)))}function Ti(){return Jd(),$d(),Wd(),Id()}function Id(){if(Ie!==5)return!1;var e=Xa,t=Gu;Gu=0;var a=oc(Sa),l=k.T,s=F.p;try{F.p=32>a?32:a,k.T=null,a=Xu,Xu=null;var i=Xa,o=Sa;if(Ie=0,en=Xa=null,Sa=0,(Ae&6)!==0)throw Error(r(331));var p=Ae;if(Ae|=4,Dd(i.current),zd(i,i.current,o,a),Ae=p,ls(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(jn,i)}catch{}return!0}finally{F.p=s,k.T=l,Fd(e,t)}}function Pd(e,t,a){t=Ht(a,t),t=Nu(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(Sn(e,2),ea(e))}function Ce(e,t,a){if(e.tag===3)Pd(e,e,a);else for(;t!==null;){if(t.tag===3){Pd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ga===null||!Ga.has(l))){e=Ht(a,e),a=ed(2),l=Ha(t,a,2),l!==null&&(td(a,l,t,e),Sn(l,2),ea(l));break}}t=t.return}}function Zu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Ex;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(Bu=!0,s.add(a),e=zx.bind(null,e,t,a),t.then(e,e))}function zx(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,_e===e&&(xe&a)===a&&(Ge===4||Ge===3&&(xe&62914560)===xe&&300>de()-Ni?(Ae&2)===0&&tn(e,0):ku|=a,Pl===xe&&(Pl=0)),ea(e)}function em(e,t){t===0&&(t=Kr()),e=sl(e,t),e!==null&&(Sn(e,t),ea(e))}function Ox(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),em(e,a)}function _x(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),em(e,a)}function Dx(e,t){return Nl(e,t)}var Mi=null,ln=null,Ju=!1,zi=!1,$u=!1,Va=0;function ea(e){e!==ln&&e.next===null&&(ln===null?Mi=ln=e:ln=ln.next=e),zi=!0,Ju||(Ju=!0,Ux())}function ls(e,t){if(!$u&&zi){$u=!0;do for(var a=!1,l=Mi;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var i=0;else{var o=l.suspendedLanes,p=l.pingedLanes;i=(1<<31-At(42|e)+1)-1,i&=s&~(o&~p),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,nm(l,i))}else i=xe,i=Rs(l,l===_e?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Nn(l,i)||(a=!0,nm(l,i));l=l.next}while(a);$u=!1}}function Rx(){tm()}function tm(){zi=Ju=!1;var e=0;Va!==0&&Vx()&&(e=Va);for(var t=de(),a=null,l=Mi;l!==null;){var s=l.next,i=am(l,t);i===0?(l.next=null,a===null?Mi=s:a.next=s,s===null&&(ln=a)):(a=l,(e!==0||(i&3)!==0)&&(zi=!0)),l=s}Ie!==0&&Ie!==5||ls(e),Va!==0&&(Va=0)}function am(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-At(i),p=1<<o,N=s[o];N===-1?((p&a)===0||(p&l)!==0)&&(s[o]=c0(p,t)):N<=t&&(e.expiredLanes|=p),i&=~p}if(t=_e,a=xe,a=Rs(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Sl(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Nn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Sl(l),oc(a)){case 2:case 8:a=Vt;break;case 32:a=ke;break;case 268435456:a=bn;break;default:a=ke}return l=lm.bind(null,e),a=Nl(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Sl(l),e.callbackPriority=2,e.callbackNode=null,2}function lm(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ti()&&e.callbackNode!==a)return null;var l=xe;return l=Rs(e,e===_e?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ld(e,l,t),am(e,de()),e.callbackNode!=null&&e.callbackNode===a?lm.bind(null,e):null)}function nm(e,t){if(Ti())return null;Ld(e,t,!0)}function Ux(){Zx(function(){(Ae&6)!==0?Nl(mt,Rx):tm()})}function Wu(){if(Va===0){var e=Gl;e===0&&(e=Os,Os<<=1,(Os&261888)===0&&(Os=256)),Va=e}return Va}function sm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ls(""+e)}function im(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Hx(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var i=sm((s[ht]||null).action),o=l.submitter;o&&(t=(t=o[ht]||null)?sm(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var p=new Gs("action","action",null,l,s);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Va!==0){var N=o?im(s,o):new FormData(s);pu(a,{pending:!0,data:N,method:s.method,action:i},null,N)}}else typeof i=="function"&&(p.preventDefault(),N=o?im(s,o):new FormData(s),pu(a,{pending:!0,data:N,method:s.method,action:i},i,N))},currentTarget:s}]})}}for(var Fu=0;Fu<Dc.length;Fu++){var Iu=Dc[Fu],qx=Iu.toLowerCase(),Lx=Iu[0].toUpperCase()+Iu.slice(1);Kt(qx,"on"+Lx)}Kt(Ho,"onAnimationEnd"),Kt(qo,"onAnimationIteration"),Kt(Lo,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(ex,"onTransitionRun"),Kt(tx,"onTransitionStart"),Kt(ax,"onTransitionCancel"),Kt(Bo,"onTransitionEnd"),Tl("onMouseEnter",["mouseout","mouseover"]),Tl("onMouseLeave",["mouseout","mouseover"]),Tl("onPointerEnter",["pointerout","pointerover"]),Tl("onPointerLeave",["pointerout","pointerover"]),tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tl("onBeforeInput",["compositionend","keypress","textInput","paste"]),tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ns="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(" "),Bx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ns));function cm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],s=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var o=l.length-1;0<=o;o--){var p=l[o],N=p.instance,U=p.currentTarget;if(p=p.listener,N!==i&&s.isPropagationStopped())break e;i=p,s.currentTarget=U;try{i(s)}catch(Y){Vs(Y)}s.currentTarget=null,i=N}else for(o=0;o<l.length;o++){if(p=l[o],N=p.instance,U=p.currentTarget,p=p.listener,N!==i&&s.isPropagationStopped())break e;i=p,s.currentTarget=U;try{i(s)}catch(Y){Vs(Y)}s.currentTarget=null,i=N}}}}function he(e,t){var a=t[fc];a===void 0&&(a=t[fc]=new Set);var l=e+"__bubble";a.has(l)||(um(t,e,2,!1),a.add(l))}function Pu(e,t,a){var l=0;t&&(l|=4),um(a,e,l,t)}var Oi="_reactListening"+Math.random().toString(36).slice(2);function er(e){if(!e[Oi]){e[Oi]=!0,Pr.forEach(function(a){a!=="selectionchange"&&(Bx.has(a)||Pu(a,!1,e),Pu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Oi]||(t[Oi]=!0,Pu("selectionchange",!1,t))}}function um(e,t,a,l){switch(qm(t)){case 2:var s=mp;break;case 8:s=hp;break;default:s=xr}a=s.bind(null,t,a,e),s=void 0,!bc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function tr(e,t,a,l,s){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var p=l.stateNode.containerInfo;if(p===s)break;if(o===4)for(o=l.return;o!==null;){var N=o.tag;if((N===3||N===4)&&o.stateNode.containerInfo===s)return;o=o.return}for(;p!==null;){if(o=El(p),o===null)return;if(N=o.tag,N===5||N===6||N===26||N===27){l=i=o;continue e}p=p.parentNode}}l=l.return}fo(function(){var U=i,Y=gc(a),Q=[];e:{var H=ko.get(e);if(H!==void 0){var q=Gs,ee=e;switch(e){case"keypress":if(ks(a)===0)break e;case"keydown":case"keyup":q=_0;break;case"focusin":ee="focus",q=Ac;break;case"focusout":ee="blur",q=Ac;break;case"beforeblur":case"afterblur":q=Ac;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=xo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=b0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=U0;break;case Ho:case qo:case Lo:q=S0;break;case Bo:q=q0;break;case"scroll":case"scrollend":q=g0;break;case"wheel":q=B0;break;case"copy":case"cut":case"paste":q=E0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=yo;break;case"toggle":case"beforetoggle":q=Y0}var ie=(t&4)!==0,ze=!ie&&(e==="scroll"||e==="scrollend"),O=ie?H!==null?H+"Capture":null:H;ie=[];for(var w=U,R;w!==null;){var G=w;if(R=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||R===null||O===null||(G=Cn(w,O),G!=null&&ie.push(ss(w,G,R))),ze)break;w=w.return}0<ie.length&&(H=new q(H,ee,null,a,Y),Q.push({event:H,listeners:ie}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",H&&a!==yc&&(ee=a.relatedTarget||a.fromElement)&&(El(ee)||ee[Al]))break e;if((q||H)&&(H=Y.window===Y?Y:(H=Y.ownerDocument)?H.defaultView||H.parentWindow:window,q?(ee=a.relatedTarget||a.toElement,q=U,ee=ee?El(ee):null,ee!==null&&(ze=m(ee),ie=ee.tag,ee!==ze||ie!==5&&ie!==27&&ie!==6)&&(ee=null)):(q=null,ee=U),q!==ee)){if(ie=xo,G="onMouseLeave",O="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ie=yo,G="onPointerLeave",O="onPointerEnter",w="pointer"),ze=q==null?H:En(q),R=ee==null?H:En(ee),H=new ie(G,w+"leave",q,a,Y),H.target=ze,H.relatedTarget=R,G=null,El(Y)===U&&(ie=new ie(O,w+"enter",ee,a,Y),ie.target=R,ie.relatedTarget=ze,G=ie),ze=G,q&&ee)t:{for(ie=kx,O=q,w=ee,R=0,G=O;G;G=ie(G))R++;G=0;for(var ae=w;ae;ae=ie(ae))G++;for(;0<R-G;)O=ie(O),R--;for(;0<G-R;)w=ie(w),G--;for(;R--;){if(O===w||w!==null&&O===w.alternate){ie=O;break t}O=ie(O),w=ie(w)}ie=null}else ie=null;q!==null&&rm(Q,H,q,ie,!1),ee!==null&&ze!==null&&rm(Q,ze,ee,ie,!0)}}e:{if(H=U?En(U):window,q=H.nodeName&&H.nodeName.toLowerCase(),q==="select"||q==="input"&&H.type==="file")var je=Eo;else if(So(H))if(Co)je=F0;else{je=$0;var te=J0}else q=H.nodeName,!q||q.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&pc(U.elementType)&&(je=Eo):je=W0;if(je&&(je=je(e,U))){Ao(Q,je,a,Y);break e}te&&te(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&xc(H,"number",H.value)}switch(te=U?En(U):window,e){case"focusin":(So(te)||te.contentEditable==="true")&&(Rl=te,zc=U,Rn=null);break;case"focusout":Rn=zc=Rl=null;break;case"mousedown":Oc=!0;break;case"contextmenu":case"mouseup":case"dragend":Oc=!1,Ro(Q,a,Y);break;case"selectionchange":if(P0)break;case"keydown":case"keyup":Ro(Q,a,Y)}var oe;if(Cc)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else Dl?jo(e,a)&&(pe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(pe="onCompositionStart");pe&&(go&&a.locale!=="ko"&&(Dl||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&Dl&&(oe=mo()):(Ma=Y,jc="value"in Ma?Ma.value:Ma.textContent,Dl=!0)),te=_i(U,pe),0<te.length&&(pe=new po(pe,e,null,a,Y),Q.push({event:pe,listeners:te}),oe?pe.data=oe:(oe=No(a),oe!==null&&(pe.data=oe)))),(oe=X0?Q0(e,a):V0(e,a))&&(pe=_i(U,"onBeforeInput"),0<pe.length&&(te=new po("onBeforeInput","beforeinput",null,a,Y),Q.push({event:te,listeners:pe}),te.data=oe)),Hx(Q,e,U,a,Y)}cm(Q,t)})}function ss(e,t,a){return{instance:e,listener:t,currentTarget:a}}function _i(e,t){for(var a=t+"Capture",l=[];e!==null;){var s=e,i=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||i===null||(s=Cn(e,a),s!=null&&l.unshift(ss(e,s,i)),s=Cn(e,t),s!=null&&l.push(ss(e,s,i))),e.tag===3)return l;e=e.return}return[]}function kx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rm(e,t,a,l,s){for(var i=t._reactName,o=[];a!==null&&a!==l;){var p=a,N=p.alternate,U=p.stateNode;if(p=p.tag,N!==null&&N===l)break;p!==5&&p!==26&&p!==27||U===null||(N=U,s?(U=Cn(a,i),U!=null&&o.unshift(ss(a,U,N))):s||(U=Cn(a,i),U!=null&&o.push(ss(a,U,N)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var Yx=/\r\n?/g,Gx=/\u0000|\uFFFD/g;function om(e){return(typeof e=="string"?e:""+e).replace(Yx,`
49
+ `).replace(Gx,"")}function fm(e,t){return t=om(t),om(e)===t}function Me(e,t,a,l,s,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||zl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&zl(e,""+l);break;case"className":Hs(e,"class",l);break;case"tabIndex":Hs(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Hs(e,a,l);break;case"style":ro(e,l,i);break;case"data":if(t!=="object"){Hs(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ls(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 i=="function"&&(a==="formAction"?(t!=="input"&&Me(e,t,"name",s.name,s,null),Me(e,t,"formEncType",s.formEncType,s,null),Me(e,t,"formMethod",s.formMethod,s,null),Me(e,t,"formTarget",s.formTarget,s,null)):(Me(e,t,"encType",s.encType,s,null),Me(e,t,"method",s.method,s,null),Me(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ls(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ua);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Ls(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),Us(e,"popover",l);break;case"xlinkActuate":ca(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ca(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ca(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ca(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ca(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ca(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ca(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ca(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ca(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Us(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=p0.get(a)||a,Us(e,a,l))}}function ar(e,t,a,l,s,i){switch(a){case"style":ro(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof l=="string"?zl(e,l):(typeof l=="number"||typeof l=="bigint")&&zl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ua);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!eo.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),i=e[ht]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,s),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,s);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Us(e,a,l)}}}function ct(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,s=!1,i;for(i in a)if(a.hasOwnProperty(i)){var o=a[i];if(o!=null)switch(i){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Me(e,t,i,o,a,null)}}s&&Me(e,t,"srcSet",a.srcSet,a,null),l&&Me(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var p=i=o=s=null,N=null,U=null;for(l in a)if(a.hasOwnProperty(l)){var Y=a[l];if(Y!=null)switch(l){case"name":s=Y;break;case"type":o=Y;break;case"checked":N=Y;break;case"defaultChecked":U=Y;break;case"value":i=Y;break;case"defaultValue":p=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,t));break;default:Me(e,t,l,Y,a,null)}}so(e,i,p,N,U,o,s,!1);return;case"select":he("invalid",e),l=o=i=null;for(s in a)if(a.hasOwnProperty(s)&&(p=a[s],p!=null))switch(s){case"value":i=p;break;case"defaultValue":o=p;break;case"multiple":l=p;default:Me(e,t,s,p,a,null)}t=i,a=o,e.multiple=!!l,t!=null?Ml(e,!!l,t,!1):a!=null&&Ml(e,!!l,a,!0);return;case"textarea":he("invalid",e),i=s=l=null;for(o in a)if(a.hasOwnProperty(o)&&(p=a[o],p!=null))switch(o){case"value":l=p;break;case"defaultValue":s=p;break;case"children":i=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:Me(e,t,o,p,a,null)}co(e,l,s,i);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Me(e,t,N,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<ns.length;l++)he(ns[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(U in a)if(a.hasOwnProperty(U)&&(l=a[U],l!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Me(e,t,U,l,a,null)}return;default:if(pc(t)){for(Y in a)a.hasOwnProperty(Y)&&(l=a[Y],l!==void 0&&ar(e,t,Y,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&Me(e,t,p,l,a,null))}function Xx(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,i=null,o=null,p=null,N=null,U=null,Y=null;for(q in a){var Q=a[q];if(a.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":N=Q;default:l.hasOwnProperty(q)||Me(e,t,q,null,l,Q)}}for(var H in l){var q=l[H];if(Q=a[H],l.hasOwnProperty(H)&&(q!=null||Q!=null))switch(H){case"type":i=q;break;case"name":s=q;break;case"checked":U=q;break;case"defaultChecked":Y=q;break;case"value":o=q;break;case"defaultValue":p=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:q!==Q&&Me(e,t,H,q,l,Q)}}hc(e,o,p,N,U,Y,i,s);return;case"select":q=o=p=H=null;for(i in a)if(N=a[i],a.hasOwnProperty(i)&&N!=null)switch(i){case"value":break;case"multiple":q=N;default:l.hasOwnProperty(i)||Me(e,t,i,null,l,N)}for(s in l)if(i=l[s],N=a[s],l.hasOwnProperty(s)&&(i!=null||N!=null))switch(s){case"value":H=i;break;case"defaultValue":p=i;break;case"multiple":o=i;default:i!==N&&Me(e,t,s,i,l,N)}t=p,a=o,l=q,H!=null?Ml(e,!!a,H,!1):!!l!=!!a&&(t!=null?Ml(e,!!a,t,!0):Ml(e,!!a,a?[]:"",!1));return;case"textarea":q=H=null;for(p in a)if(s=a[p],a.hasOwnProperty(p)&&s!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Me(e,t,p,null,l,s)}for(o in l)if(s=l[o],i=a[o],l.hasOwnProperty(o)&&(s!=null||i!=null))switch(o){case"value":H=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==i&&Me(e,t,o,s,l,i)}io(e,H,q);return;case"option":for(var ee in a)if(H=a[ee],a.hasOwnProperty(ee)&&H!=null&&!l.hasOwnProperty(ee))switch(ee){case"selected":e.selected=!1;break;default:Me(e,t,ee,null,l,H)}for(N in l)if(H=l[N],q=a[N],l.hasOwnProperty(N)&&H!==q&&(H!=null||q!=null))switch(N){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Me(e,t,N,H,l,q)}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 ie in a)H=a[ie],a.hasOwnProperty(ie)&&H!=null&&!l.hasOwnProperty(ie)&&Me(e,t,ie,null,l,H);for(U in l)if(H=l[U],q=a[U],l.hasOwnProperty(U)&&H!==q&&(H!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:Me(e,t,U,H,l,q)}return;default:if(pc(t)){for(var ze in a)H=a[ze],a.hasOwnProperty(ze)&&H!==void 0&&!l.hasOwnProperty(ze)&&ar(e,t,ze,void 0,l,H);for(Y in l)H=l[Y],q=a[Y],!l.hasOwnProperty(Y)||H===q||H===void 0&&q===void 0||ar(e,t,Y,H,l,q);return}}for(var O in a)H=a[O],a.hasOwnProperty(O)&&H!=null&&!l.hasOwnProperty(O)&&Me(e,t,O,null,l,H);for(Q in l)H=l[Q],q=a[Q],!l.hasOwnProperty(Q)||H===q||H==null&&q==null||Me(e,t,Q,H,l,q)}function dm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Qx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var s=a[l],i=s.transferSize,o=s.initiatorType,p=s.duration;if(i&&p&&dm(o)){for(o=0,p=s.responseEnd,l+=1;l<a.length;l++){var N=a[l],U=N.startTime;if(U>p)break;var Y=N.transferSize,Q=N.initiatorType;Y&&dm(Q)&&(N=N.responseEnd,o+=Y*(N<p?1:(p-U)/(N-U)))}if(--l,t+=8*(i+o)/(s.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 lr=null,nr=null;function Di(e){return e.nodeType===9?e:e.ownerDocument}function mm(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 hm(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 sr(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 ir=null;function Vx(){var e=window.event;return e&&e.type==="popstate"?e===ir?!1:(ir=e,!0):(ir=null,!1)}var xm=typeof setTimeout=="function"?setTimeout:void 0,Kx=typeof clearTimeout=="function"?clearTimeout:void 0,pm=typeof Promise=="function"?Promise:void 0,Zx=typeof queueMicrotask=="function"?queueMicrotask:typeof pm<"u"?function(e){return pm.resolve(null).then(e).catch(Jx)}:xm;function Jx(e){setTimeout(function(){throw e})}function Ka(e){return e==="head"}function ym(e,t){var a=t,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(s),un(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")is(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,is(a);for(var i=a.firstChild;i;){var o=i.nextSibling,p=i.nodeName;i[An]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=o}}else a==="body"&&is(e.ownerDocument.body);a=s}while(a);un(t)}function gm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function cr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":cr(a),dc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function $x(e,t,a,l){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[An])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function Wx(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Yt(e.nextSibling),e===null))return null;return e}function vm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function ur(e){return e.data==="$?"||e.data==="$~"}function rr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Fx(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Yt(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 or=null;function bm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Yt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function jm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Nm(e,t,a){switch(t=Di(a),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 is(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dc(e)}var Gt=new Map,Sm=new Set;function Ri(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Aa=F.d;F.d={f:Ix,r:Px,D:ep,C:tp,L:ap,m:lp,X:sp,S:np,M:ip};function Ix(){var e=Aa.f(),t=Ei();return e||t}function Px(e){var t=Cl(e);t!==null&&t.tag===5&&t.type==="form"?kf(t):Aa.r(e)}var nn=typeof document>"u"?null:document;function Am(e,t,a){var l=nn;if(l&&typeof t=="string"&&t){var s=Rt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Sm.has(s)||(Sm.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),ct(t,"link",e),et(t),l.head.appendChild(t)))}}function ep(e){Aa.D(e),Am("dns-prefetch",e,null)}function tp(e,t){Aa.C(e,t),Am("preconnect",e,t)}function ap(e,t,a){Aa.L(e,t,a);var l=nn;if(l&&e&&t){var s='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Rt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Rt(a.imageSizes)+'"]')):s+='[href="'+Rt(e)+'"]';var i=s;switch(t){case"style":i=sn(e);break;case"script":i=cn(e)}Gt.has(i)||(e=j({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Gt.set(i,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(cs(i))||t==="script"&&l.querySelector(us(i))||(t=l.createElement("link"),ct(t,"link",e),et(t),l.head.appendChild(t)))}}function lp(e,t){Aa.m(e,t);var a=nn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Rt(l)+'"][href="'+Rt(e)+'"]',i=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=cn(e)}if(!Gt.has(i)&&(e=j({rel:"modulepreload",href:e},t),Gt.set(i,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(us(i)))return}l=a.createElement("link"),ct(l,"link",e),et(l),a.head.appendChild(l)}}}function np(e,t,a){Aa.S(e,t,a);var l=nn;if(l&&e){var s=wl(l).hoistableStyles,i=sn(e);t=t||"default";var o=s.get(i);if(!o){var p={loading:0,preload:null};if(o=l.querySelector(cs(i)))p.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Gt.get(i))&&fr(e,a);var N=o=l.createElement("link");et(N),ct(N,"link",e),N._p=new Promise(function(U,Y){N.onload=U,N.onerror=Y}),N.addEventListener("load",function(){p.loading|=1}),N.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Ui(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:p},s.set(i,o)}}}function sp(e,t){Aa.X(e,t);var a=nn;if(a&&e){var l=wl(a).hoistableScripts,s=cn(e),i=l.get(s);i||(i=a.querySelector(us(s)),i||(e=j({src:e,async:!0},t),(t=Gt.get(s))&&dr(e,t),i=a.createElement("script"),et(i),ct(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function ip(e,t){Aa.M(e,t);var a=nn;if(a&&e){var l=wl(a).hoistableScripts,s=cn(e),i=l.get(s);i||(i=a.querySelector(us(s)),i||(e=j({src:e,async:!0,type:"module"},t),(t=Gt.get(s))&&dr(e,t),i=a.createElement("script"),et(i),ct(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function Em(e,t,a,l){var s=(s=fe.current)?Ri(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=sn(a.href),a=wl(s).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=sn(a.href);var i=wl(s).hoistableStyles,o=i.get(e);if(o||(s=s.ownerDocument||s,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=s.querySelector(cs(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Gt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Gt.set(e,a),i||cp(s,e,a,o.state))),t&&l===null)throw Error(r(528,""));return o}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=cn(a),a=wl(s).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function sn(e){return'href="'+Rt(e)+'"'}function cs(e){return'link[rel="stylesheet"]['+e+"]"}function Cm(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function cp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ct(t,"link",a),et(t),e.head.appendChild(t))}function cn(e){return'[src="'+Rt(e)+'"]'}function us(e){return"script[async]"+e}function wm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Rt(a.href)+'"]');if(l)return t.instance=l,et(l),l;var s=j({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),et(l),ct(l,"style",s),Ui(l,a.precedence,e),t.instance=l;case"stylesheet":s=sn(a.href);var i=e.querySelector(cs(s));if(i)return t.state.loading|=4,t.instance=i,et(i),i;l=Cm(a),(s=Gt.get(s))&&fr(l,s),i=(e.ownerDocument||e).createElement("link"),et(i);var o=i;return o._p=new Promise(function(p,N){o.onload=p,o.onerror=N}),ct(i,"link",l),t.state.loading|=4,Ui(i,a.precedence,e),t.instance=i;case"script":return i=cn(a.src),(s=e.querySelector(us(i)))?(t.instance=s,et(s),s):(l=a,(s=Gt.get(i))&&(l=j({},a),dr(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),et(s),ct(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ui(l,a.precedence,e));return t.instance}function Ui(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,i=s,o=0;o<l.length;o++){var p=l[o];if(p.dataset.precedence===t)i=p;else if(i!==s)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function fr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function dr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hi=null;function Tm(e,t,a){if(Hi===null){var l=new Map,s=Hi=new Map;s.set(a,l)}else s=Hi,l=s.get(a),l||(l=new Map,s.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var i=a[s];if(!(i[An]||i[lt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var p=l.get(o);p?p.push(i):l.set(o,[i])}}return l}function Mm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function up(e,t,a){if(a===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 zm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function rp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=sn(l.href),i=t.querySelector(cs(s));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,et(i);return}i=t.ownerDocument||t,l=Cm(l),(s=Gt.get(s))&&fr(l,s),i=i.createElement("link"),et(i);var o=i;o._p=new Promise(function(p,N){o.onload=p,o.onerror=N}),ct(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=qi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var mr=0;function op(e,t){return e.stylesheets&&e.count===0&&Bi(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Bi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&mr===0&&(mr=62500*Qx());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>mr?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function qi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Li=null;function Bi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Li=new Map,t.forEach(fp,e),Li=null,qi.call(e))}function fp(e,t){if(!(t.state.loading&4)){var a=Li.get(e);if(a)var l=a.get(null);else{a=new Map,Li.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<s.length;i++){var o=s[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}s=t.instance,o=s.getAttribute("data-precedence"),i=a.get(o)||l,i===l&&a.set(null,s),a.set(o,s),this.count++,l=qi.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),i?i.parentNode.insertBefore(s,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var rs={$$typeof:z,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function dp(e,t,a,l,s,i,o,p,N){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=uc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uc(0),this.hiddenUpdates=uc(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Om(e,t,a,l,s,i,o,p,N,U,Y,Q){return e=new dp(e,t,a,o,N,U,Y,Q,p),t=1,i===!0&&(t|=24),i=Ct(3,null,null,t),e.current=i,i.stateNode=e,t=Kc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},Wc(i),e}function _m(e){return e?(e=ql,e):ql}function Dm(e,t,a,l,s,i){s=_m(s),l.context===null?l.context=s:l.pendingContext=s,l=Ua(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Ha(e,l,t),a!==null&&(bt(a,e,t),Yn(a,e,t))}function Rm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function hr(e,t){Rm(e,t),(e=e.alternate)&&Rm(e,t)}function Um(e){if(e.tag===13||e.tag===31){var t=sl(e,67108864);t!==null&&bt(t,e,67108864),hr(e,67108864)}}function Hm(e){if(e.tag===13||e.tag===31){var t=Ot();t=rc(t);var a=sl(e,t);a!==null&&bt(a,e,t),hr(e,t)}}var ki=!0;function mp(e,t,a,l){var s=k.T;k.T=null;var i=F.p;try{F.p=2,xr(e,t,a,l)}finally{F.p=i,k.T=s}}function hp(e,t,a,l){var s=k.T;k.T=null;var i=F.p;try{F.p=8,xr(e,t,a,l)}finally{F.p=i,k.T=s}}function xr(e,t,a,l){if(ki){var s=pr(l);if(s===null)tr(e,t,l,Yi,a),Lm(e,l);else if(pp(s,e,t,a,l))l.stopPropagation();else if(Lm(e,l),t&4&&-1<xp.indexOf(e)){for(;s!==null;){var i=Cl(s);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=el(i.pendingLanes);if(o!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;o;){var N=1<<31-At(o);p.entanglements[1]|=N,o&=~N}ea(i),(Ae&6)===0&&(Si=de()+500,ls(0))}}break;case 31:case 13:p=sl(i,2),p!==null&&bt(p,i,2),Ei(),hr(i,2)}if(i=pr(l),i===null&&tr(e,t,l,Yi,a),i===s)break;s=i}s!==null&&l.stopPropagation()}else tr(e,t,l,null,a)}}function pr(e){return e=gc(e),yr(e)}var Yi=null;function yr(e){if(Yi=null,e=El(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Yi=e,null}function qm(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(Be()){case mt:return 2;case Vt:return 8;case ke:case Nt:return 32;case bn:return 268435456;default:return 32}default:return 32}}var gr=!1,Za=null,Ja=null,$a=null,os=new Map,fs=new Map,Wa=[],xp="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 Lm(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":$a=null;break;case"pointerover":case"pointerout":os.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fs.delete(t.pointerId)}}function ds(e,t,a,l,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Cl(t),t!==null&&Um(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function pp(e,t,a,l,s){switch(t){case"focusin":return Za=ds(Za,e,t,a,l,s),!0;case"dragenter":return Ja=ds(Ja,e,t,a,l,s),!0;case"mouseover":return $a=ds($a,e,t,a,l,s),!0;case"pointerover":var i=s.pointerId;return os.set(i,ds(os.get(i)||null,e,t,a,l,s)),!0;case"gotpointercapture":return i=s.pointerId,fs.set(i,ds(fs.get(i)||null,e,t,a,l,s)),!0}return!1}function Bm(e){var t=El(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,Fr(e.priority,function(){Hm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Fr(e.priority,function(){Hm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=pr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);yc=l,a.target.dispatchEvent(l),yc=null}else return t=Cl(a),t!==null&&Um(t),e.blockedOn=a,!1;t.shift()}return!0}function km(e,t,a){Gi(e)&&a.delete(t)}function yp(){gr=!1,Za!==null&&Gi(Za)&&(Za=null),Ja!==null&&Gi(Ja)&&(Ja=null),$a!==null&&Gi($a)&&($a=null),os.forEach(km),fs.forEach(km)}function Xi(e,t){e.blockedOn===t&&(e.blockedOn=null,gr||(gr=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,yp)))}var Qi=null;function Ym(e){Qi!==e&&(Qi=e,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){Qi===e&&(Qi=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(yr(l||a)===null)continue;break}var i=Cl(a);i!==null&&(e.splice(t,3),t-=3,pu(i,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function un(e){function t(N){return Xi(N,e)}Za!==null&&Xi(Za,e),Ja!==null&&Xi(Ja,e),$a!==null&&Xi($a,e),os.forEach(t),fs.forEach(t);for(var a=0;a<Wa.length;a++){var l=Wa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Wa.length&&(a=Wa[0],a.blockedOn===null);)Bm(a),a.blockedOn===null&&Wa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var s=a[l],i=a[l+1],o=s[ht]||null;if(typeof i=="function")o||Ym(a);else if(o){var p=null;if(i&&i.hasAttribute("formAction")){if(s=i,o=i[ht]||null)p=o.formAction;else if(yr(s)!==null)continue}else p=o.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),Ym(a)}}}function Gm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return s=o})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function vr(e){this._internalRoot=e}Vi.prototype.render=vr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,l=Ot();Dm(a,l,e,t,null,null)},Vi.prototype.unmount=vr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dm(e.current,2,null,e,null,null),Ei(),t[Al]=null}};function Vi(e){this._internalRoot=e}Vi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wr();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Wa.length&&t!==0&&t<Wa[a].priority;a++);Wa.splice(a,0,e),a===0&&Bm(e)}};var Xm=u.version;if(Xm!=="19.2.4")throw Error(r(527,Xm,"19.2.4"));F.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=x(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var gp={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ki.isDisabled&&Ki.supportsFiber)try{jn=Ki.inject(gp),St=Ki}catch{}}return hs.createRoot=function(e,t){if(!d(e))throw Error(r(299));var a=!1,l="",s=Wf,i=Ff,o=If;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Om(e,1,!1,null,null,a,l,null,s,i,o,Gm),e[Al]=t.current,er(e),new vr(t)},hs.hydrateRoot=function(e,t,a){if(!d(e))throw Error(r(299));var l=!1,s="",i=Wf,o=Ff,p=If,N=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(N=a.formState)),t=Om(e,1,!0,t,a??null,l,s,N,i,o,p,Gm),t.context=_m(null),a=t.current,l=Ot(),l=rc(l),s=Ua(l),s.callback=null,Ha(a,s,l),a=l,t.current.lanes=a,Sn(t,a),ea(t),e[Al]=t.current,er(e),new Vi(t)},hs.version="19.2.4",hs}var Pm;function zp(){if(Pm)return Nr.exports;Pm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(u){console.error(u)}}return c(),Nr.exports=Mp(),Nr.exports}var Op=zp();/**
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 eh="popstate";function th(c){return typeof c=="object"&&c!=null&&"pathname"in c&&"search"in c&&"hash"in c&&"state"in c&&"key"in c}function _p(c={}){function u(r,d){var x;let m=(x=d.state)==null?void 0:x.masked,{pathname:y,search:g,hash:h}=m||r.location;return Or("",{pathname:y,search:g,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function f(r,d){return typeof d=="string"?d:vs(d)}return Rp(u,f,null,c)}function qe(c,u){if(c===!1||c===null||typeof c>"u")throw new Error(u)}function $t(c,u){if(!c){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Dp(){return Math.random().toString(36).substring(2,10)}function ah(c,u){return{usr:c.state,key:c.key,idx:u,masked:c.unstable_mask?{pathname:c.pathname,search:c.search,hash:c.hash}:void 0}}function Or(c,u,f=null,r,d){return{pathname:typeof c=="string"?c:c.pathname,search:"",hash:"",...typeof u=="string"?dn(u):u,state:f,key:u&&u.key||r||Dp(),unstable_mask:d}}function vs({pathname:c="/",search:u="",hash:f=""}){return u&&u!=="?"&&(c+=u.charAt(0)==="?"?u:"?"+u),f&&f!=="#"&&(c+=f.charAt(0)==="#"?f:"#"+f),c}function dn(c){let u={};if(c){let f=c.indexOf("#");f>=0&&(u.hash=c.substring(f),c=c.substring(0,f));let r=c.indexOf("?");r>=0&&(u.search=c.substring(r),c=c.substring(0,r)),c&&(u.pathname=c)}return u}function Rp(c,u,f,r={}){let{window:d=document.defaultView,v5Compat:m=!1}=r,y=d.history,g="POP",h=null,x=S();x==null&&(x=0,y.replaceState({...y.state,idx:x},""));function S(){return(y.state||{idx:null}).idx}function j(){g="POP";let C=S(),v=C==null?null:C-x;x=C,h&&h({action:g,location:M.location,delta:v})}function A(C,v){g="PUSH";let _=th(C)?C:Or(M.location,C,v);x=S()+1;let z=ah(_,x),L=M.createHref(_.unstable_mask||_);try{y.pushState(z,"",L)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;d.location.assign(L)}m&&h&&h({action:g,location:M.location,delta:1})}function D(C,v){g="REPLACE";let _=th(C)?C:Or(M.location,C,v);x=S();let z=ah(_,x),L=M.createHref(_.unstable_mask||_);y.replaceState(z,"",L),m&&h&&h({action:g,location:M.location,delta:0})}function E(C){return Up(C)}let M={get action(){return g},get location(){return c(d,y)},listen(C){if(h)throw new Error("A history only accepts one active listener");return d.addEventListener(eh,j),h=C,()=>{d.removeEventListener(eh,j),h=null}},createHref(C){return u(d,C)},createURL:E,encodeLocation(C){let v=E(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:A,replace:D,go(C){return y.go(C)}};return M}function Up(c,u=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),qe(f,"No window.location.(origin|href) available to create URL");let r=typeof c=="string"?c:vs(c);return r=r.replace(/ $/,"%20"),!u&&r.startsWith("//")&&(r=f+r),new URL(r,f)}function jh(c,u,f="/"){return Hp(c,u,f,!1)}function Hp(c,u,f,r){let d=typeof u=="string"?dn(u):u,m=Ea(d.pathname||"/",f);if(m==null)return null;let y=Nh(c);qp(y);let g=null;for(let h=0;g==null&&h<y.length;++h){let x=Jp(m);g=Kp(y[h],x,r)}return g}function Nh(c,u=[],f=[],r="",d=!1){let m=(y,g,h=d,x)=>{let S={relativePath:x===void 0?y.path||"":x,caseSensitive:y.caseSensitive===!0,childrenIndex:g,route:y};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(r)&&h)return;qe(S.relativePath.startsWith(r),`Absolute route path "${S.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(r.length)}let j=aa([r,S.relativePath]),A=f.concat(S);y.children&&y.children.length>0&&(qe(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${j}".`),Nh(y.children,u,A,j,h)),!(y.path==null&&!y.index)&&u.push({path:j,score:Qp(j,y.index),routesMeta:A})};return c.forEach((y,g)=>{var h;if(y.path===""||!((h=y.path)!=null&&h.includes("?")))m(y,g);else for(let x of Sh(y.path))m(y,g,!0,x)}),u}function Sh(c){let u=c.split("/");if(u.length===0)return[];let[f,...r]=u,d=f.endsWith("?"),m=f.replace(/\?$/,"");if(r.length===0)return d?[m,""]:[m];let y=Sh(r.join("/")),g=[];return g.push(...y.map(h=>h===""?m:[m,h].join("/"))),d&&g.push(...y),g.map(h=>c.startsWith("/")&&h===""?"/":h)}function qp(c){c.sort((u,f)=>u.score!==f.score?f.score-u.score:Vp(u.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var Lp=/^:[\w-]+$/,Bp=3,kp=2,Yp=1,Gp=10,Xp=-2,lh=c=>c==="*";function Qp(c,u){let f=c.split("/"),r=f.length;return f.some(lh)&&(r+=Xp),u&&(r+=kp),f.filter(d=>!lh(d)).reduce((d,m)=>d+(Lp.test(m)?Bp:m===""?Yp:Gp),r)}function Vp(c,u){return c.length===u.length&&c.slice(0,-1).every((r,d)=>r===u[d])?c[c.length-1]-u[u.length-1]:0}function Kp(c,u,f=!1){let{routesMeta:r}=c,d={},m="/",y=[];for(let g=0;g<r.length;++g){let h=r[g],x=g===r.length-1,S=m==="/"?u:u.slice(m.length)||"/",j=Ii({path:h.relativePath,caseSensitive:h.caseSensitive,end:x},S),A=h.route;if(!j&&x&&f&&!r[r.length-1].route.index&&(j=Ii({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},S)),!j)return null;Object.assign(d,j.params),y.push({params:d,pathname:aa([m,j.pathname]),pathnameBase:Ip(aa([m,j.pathnameBase])),route:A}),j.pathnameBase!=="/"&&(m=aa([m,j.pathnameBase]))}return y}function Ii(c,u){typeof c=="string"&&(c={path:c,caseSensitive:!1,end:!0});let[f,r]=Zp(c.path,c.caseSensitive,c.end),d=u.match(f);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:r.reduce((x,{paramName:S,isOptional:j},A)=>{if(S==="*"){let E=g[A]||"";y=m.slice(0,m.length-E.length).replace(/(.)\/+$/,"$1")}const D=g[A];return j&&!D?x[S]=void 0:x[S]=(D||"").replace(/%2F/g,"/"),x},{}),pathname:m,pathnameBase:y,pattern:c}}function Zp(c,u=!1,f=!0){$t(c==="*"||!c.endsWith("*")||c.endsWith("/*"),`Route path "${c}" will be treated as if it were "${c.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${c.replace(/\*$/,"/*")}".`);let r=[],d="^"+c.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,g,h,x,S)=>{if(r.push({paramName:g,isOptional:h!=null}),h){let j=S.charAt(x+y.length);return j&&j!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return c.endsWith("*")?(r.push({paramName:"*"}),d+=c==="*"||c==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?d+="\\/*$":c!==""&&c!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,u?void 0:"i"),r]}function Jp(c){try{return c.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return $t(!1,`The URL path "${c}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),c}}function Ea(c,u){if(u==="/")return c;if(!c.toLowerCase().startsWith(u.toLowerCase()))return null;let f=u.endsWith("/")?u.length-1:u.length,r=c.charAt(f);return r&&r!=="/"?null:c.slice(f)||"/"}var $p=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Wp(c,u="/"){let{pathname:f,search:r="",hash:d=""}=typeof c=="string"?dn(c):c,m;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?m=nh(f.substring(1),"/"):m=nh(f,u)):m=u,{pathname:m,search:Pp(r),hash:ey(d)}}function nh(c,u){let f=u.replace(/\/+$/,"").split("/");return c.split("/").forEach(d=>{d===".."?f.length>1&&f.pop():d!=="."&&f.push(d)}),f.length>1?f.join("/"):"/"}function Cr(c,u,f,r){return`Cannot include a '${c}' character in a manually specified \`to.${u}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Fp(c){return c.filter((u,f)=>f===0||u.route.path&&u.route.path.length>0)}function Hr(c){let u=Fp(c);return u.map((f,r)=>r===u.length-1?f.pathname:f.pathnameBase)}function tc(c,u,f,r=!1){let d;typeof c=="string"?d=dn(c):(d={...c},qe(!d.pathname||!d.pathname.includes("?"),Cr("?","pathname","search",d)),qe(!d.pathname||!d.pathname.includes("#"),Cr("#","pathname","hash",d)),qe(!d.search||!d.search.includes("#"),Cr("#","search","hash",d)));let m=c===""||d.pathname==="",y=m?"/":d.pathname,g;if(y==null)g=f;else{let j=u.length-1;if(!r&&y.startsWith("..")){let A=y.split("/");for(;A[0]==="..";)A.shift(),j-=1;d.pathname=A.join("/")}g=j>=0?u[j]:"/"}let h=Wp(d,g),x=y&&y!=="/"&&y.endsWith("/"),S=(m||y===".")&&f.endsWith("/");return!h.pathname.endsWith("/")&&(x||S)&&(h.pathname+="/"),h}var aa=c=>c.join("/").replace(/\/\/+/g,"/"),Ip=c=>c.replace(/\/+$/,"").replace(/^\/*/,"/"),Pp=c=>!c||c==="?"?"":c.startsWith("?")?c:"?"+c,ey=c=>!c||c==="#"?"":c.startsWith("#")?c:"#"+c,ty=class{constructor(c,u,f,r=!1){this.status=c,this.statusText=u||"",this.internal=r,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function ay(c){return c!=null&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.internal=="boolean"&&"data"in c}function ly(c){return c.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ah=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Eh(c,u){let f=c;if(typeof f!="string"||!$p.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,d=!1;if(Ah)try{let m=new URL(window.location.href),y=f.startsWith("//")?new URL(m.protocol+f):new URL(f),g=Ea(y.pathname,u);y.origin===m.origin&&g!=null?f=g+y.search+y.hash:d=!0}catch{$t(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ch=["POST","PUT","PATCH","DELETE"];new Set(Ch);var ny=["GET",...Ch];new Set(ny);var mn=b.createContext(null);mn.displayName="DataRouter";var ac=b.createContext(null);ac.displayName="DataRouterState";var sy=b.createContext(!1),wh=b.createContext({isTransitioning:!1});wh.displayName="ViewTransition";var iy=b.createContext(new Map);iy.displayName="Fetchers";var cy=b.createContext(null);cy.displayName="Await";var _t=b.createContext(null);_t.displayName="Navigation";var As=b.createContext(null);As.displayName="Location";var Qt=b.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var qr=b.createContext(null);qr.displayName="RouteError";var Th="REACT_ROUTER_ERROR",uy="REDIRECT",ry="ROUTE_ERROR_RESPONSE";function oy(c){if(c.startsWith(`${Th}:${uy}:{`))try{let u=JSON.parse(c.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function fy(c){if(c.startsWith(`${Th}:${ry}:{`))try{let u=JSON.parse(c.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new ty(u.status,u.statusText,u.data)}catch{}}function dy(c,{relative:u}={}){qe(hn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:r}=b.useContext(_t),{hash:d,pathname:m,search:y}=Es(c,{relative:u}),g=m;return f!=="/"&&(g=m==="/"?f:aa([f,m])),r.createHref({pathname:g,search:y,hash:d})}function hn(){return b.useContext(As)!=null}function sa(){return qe(hn(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(As).location}var Mh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zh(c){b.useContext(_t).static||b.useLayoutEffect(c)}function lc(){let{isDataRoute:c}=b.useContext(Qt);return c?Ty():my()}function my(){qe(hn(),"useNavigate() may be used only in the context of a <Router> component.");let c=b.useContext(mn),{basename:u,navigator:f}=b.useContext(_t),{matches:r}=b.useContext(Qt),{pathname:d}=sa(),m=JSON.stringify(Hr(r)),y=b.useRef(!1);return zh(()=>{y.current=!0}),b.useCallback((h,x={})=>{if($t(y.current,Mh),!y.current)return;if(typeof h=="number"){f.go(h);return}let S=tc(h,JSON.parse(m),d,x.relative==="path");c==null&&u!=="/"&&(S.pathname=S.pathname==="/"?u:aa([u,S.pathname])),(x.replace?f.replace:f.push)(S,x.state,x)},[u,f,m,d,c])}var hy=b.createContext(null);function xy(c){let u=b.useContext(Qt).outlet;return b.useMemo(()=>u&&b.createElement(hy.Provider,{value:c},u),[u,c])}function py(){let{matches:c}=b.useContext(Qt),u=c[c.length-1];return u?u.params:{}}function Es(c,{relative:u}={}){let{matches:f}=b.useContext(Qt),{pathname:r}=sa(),d=JSON.stringify(Hr(f));return b.useMemo(()=>tc(c,JSON.parse(d),r,u==="path"),[c,d,r,u])}function yy(c,u){return Oh(c,u)}function Oh(c,u,f){var C;qe(hn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=b.useContext(_t),{matches:d}=b.useContext(Qt),m=d[d.length-1],y=m?m.params:{},g=m?m.pathname:"/",h=m?m.pathnameBase:"/",x=m&&m.route;{let v=x&&x.path||"";Dh(g,!x||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${v}">) 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="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let S=sa(),j;if(u){let v=typeof u=="string"?dn(u):u;qe(h==="/"||((C=v.pathname)==null?void 0:C.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${v.pathname}" was given in the \`location\` prop.`),j=v}else j=S;let A=j.pathname||"/",D=A;if(h!=="/"){let v=h.replace(/^\//,"").split("/");D="/"+A.replace(/^\//,"").split("/").slice(v.length).join("/")}let E=jh(c,{pathname:D});$t(x||E!=null,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),$t(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${j.pathname}${j.search}${j.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 M=Ny(E&&E.map(v=>Object.assign({},v,{params:Object.assign({},y,v.params),pathname:aa([h,r.encodeLocation?r.encodeLocation(v.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?h:aa([h,r.encodeLocation?r.encodeLocation(v.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),d,f);return u&&M?b.createElement(As.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...j},navigationType:"POP"}},M):M}function gy(){let c=wy(),u=ay(c)?`${c.status} ${c.statusText}`:c instanceof Error?c.message:JSON.stringify(c),f=c instanceof Error?c.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},m={padding:"2px 4px",backgroundColor:r},y=null;return console.error("Error handled by React Router default ErrorBoundary:",c),y=b.createElement(b.Fragment,null,b.createElement("p",null,"๐Ÿ’ฟ Hey developer ๐Ÿ‘‹"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:m},"ErrorBoundary")," or"," ",b.createElement("code",{style:m},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},u),f?b.createElement("pre",{style:d},f):null,y)}var vy=b.createElement(gy,null),_h=class extends b.Component{constructor(c){super(c),this.state={location:c.location,revalidation:c.revalidation,error:c.error}}static getDerivedStateFromError(c){return{error:c}}static getDerivedStateFromProps(c,u){return u.location!==c.location||u.revalidation!=="idle"&&c.revalidation==="idle"?{error:c.error,location:c.location,revalidation:c.revalidation}:{error:c.error!==void 0?c.error:u.error,location:u.location,revalidation:c.revalidation||u.revalidation}}componentDidCatch(c,u){this.props.onError?this.props.onError(c,u):console.error("React Router caught the following error during render",c)}render(){let c=this.state.error;if(this.context&&typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){const f=fy(c.digest);f&&(c=f)}let u=c!==void 0?b.createElement(Qt.Provider,{value:this.props.routeContext},b.createElement(qr.Provider,{value:c,children:this.props.component})):this.props.children;return this.context?b.createElement(by,{error:c},u):u}};_h.contextType=sy;var wr=new WeakMap;function by({children:c,error:u}){let{basename:f}=b.useContext(_t);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let r=oy(u.digest);if(r){let d=wr.get(u);if(d)throw d;let m=Eh(r.location,f);if(Ah&&!wr.get(u))if(m.isExternal||r.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:r.replace}));throw wr.set(u,y),y}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return c}function jy({routeContext:c,match:u,children:f}){let r=b.useContext(mn);return r&&r.static&&r.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=u.route.id),b.createElement(Qt.Provider,{value:c},f)}function Ny(c,u=[],f){let r=f==null?void 0:f.state;if(c==null){if(!r)return null;if(r.errors)c=r.matches;else if(u.length===0&&!r.initialized&&r.matches.length>0)c=r.matches;else return null}let d=c,m=r==null?void 0:r.errors;if(m!=null){let S=d.findIndex(j=>j.route.id&&(m==null?void 0:m[j.route.id])!==void 0);qe(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let y=!1,g=-1;if(f&&r){y=r.renderFallback;for(let S=0;S<d.length;S++){let j=d[S];if((j.route.HydrateFallback||j.route.hydrateFallbackElement)&&(g=S),j.route.id){let{loaderData:A,errors:D}=r,E=j.route.loader&&!A.hasOwnProperty(j.route.id)&&(!D||D[j.route.id]===void 0);if(j.route.lazy||E){f.isStatic&&(y=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let h=f==null?void 0:f.onError,x=r&&h?(S,j)=>{var A,D;h(S,{location:r.location,params:((D=(A=r.matches)==null?void 0:A[0])==null?void 0:D.params)??{},unstable_pattern:ly(r.matches),errorInfo:j})}:void 0;return d.reduceRight((S,j,A)=>{let D,E=!1,M=null,C=null;r&&(D=m&&j.route.id?m[j.route.id]:void 0,M=j.route.errorElement||vy,y&&(g<0&&A===0?(Dh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,C=null):g===A&&(E=!0,C=j.route.hydrateFallbackElement||null)));let v=u.concat(d.slice(0,A+1)),_=()=>{let z;return D?z=M:E?z=C:j.route.Component?z=b.createElement(j.route.Component,null):j.route.element?z=j.route.element:z=S,b.createElement(jy,{match:j,routeContext:{outlet:S,matches:v,isDataRoute:r!=null},children:z})};return r&&(j.route.ErrorBoundary||j.route.errorElement||A===0)?b.createElement(_h,{location:r.location,revalidation:r.revalidation,component:M,error:D,children:_(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:x}):_()},null)}function Lr(c){return`${c} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sy(c){let u=b.useContext(mn);return qe(u,Lr(c)),u}function Ay(c){let u=b.useContext(ac);return qe(u,Lr(c)),u}function Ey(c){let u=b.useContext(Qt);return qe(u,Lr(c)),u}function Br(c){let u=Ey(c),f=u.matches[u.matches.length-1];return qe(f.route.id,`${c} can only be used on routes that contain a unique "id"`),f.route.id}function Cy(){return Br("useRouteId")}function wy(){var r;let c=b.useContext(qr),u=Ay("useRouteError"),f=Br("useRouteError");return c!==void 0?c:(r=u.errors)==null?void 0:r[f]}function Ty(){let{router:c}=Sy("useNavigate"),u=Br("useNavigate"),f=b.useRef(!1);return zh(()=>{f.current=!0}),b.useCallback(async(d,m={})=>{$t(f.current,Mh),f.current&&(typeof d=="number"?await c.navigate(d):await c.navigate(d,{fromRouteId:u,...m}))},[c,u])}var sh={};function Dh(c,u,f){!u&&!sh[c]&&(sh[c]=!0,$t(!1,f))}b.memo(My);function My({routes:c,future:u,state:f,isStatic:r,onError:d}){return Oh(c,void 0,{state:f,isStatic:r,onError:d})}function zy({to:c,replace:u,state:f,relative:r}){qe(hn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=b.useContext(_t);$t(!d,"<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}=b.useContext(Qt),{pathname:y}=sa(),g=lc(),h=tc(c,Hr(m),y,r==="path"),x=JSON.stringify(h);return b.useEffect(()=>{g(JSON.parse(x),{replace:u,state:f,relative:r})},[g,x,r,u,f]),null}function Oy(c){return xy(c.context)}function ft(c){qe(!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 _y({basename:c="/",children:u=null,location:f,navigationType:r="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){qe(!hn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=c.replace(/^\/*/,"/"),h=b.useMemo(()=>({basename:g,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[g,d,m,y]);typeof f=="string"&&(f=dn(f));let{pathname:x="/",search:S="",hash:j="",state:A=null,key:D="default",unstable_mask:E}=f,M=b.useMemo(()=>{let C=Ea(x,g);return C==null?null:{location:{pathname:C,search:S,hash:j,state:A,key:D,unstable_mask:E},navigationType:r}},[g,x,S,j,A,D,r,E]);return $t(M!=null,`<Router basename="${g}"> is not able to match the URL "${x}${S}${j}" because it does not start with the basename, so the <Router> won't render anything.`),M==null?null:b.createElement(_t.Provider,{value:h},b.createElement(As.Provider,{children:u,value:M}))}function Dy({children:c,location:u}){return yy(_r(c),u)}function _r(c,u=[]){let f=[];return b.Children.forEach(c,(r,d)=>{if(!b.isValidElement(r))return;let m=[...u,d];if(r.type===b.Fragment){f.push.apply(f,_r(r.props.children,m));return}qe(r.type===ft,`[${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>`),qe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let y={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&&(y.children=_r(r.props.children,m)),f.push(y)}),f}var Wi="get",Fi="application/x-www-form-urlencoded";function nc(c){return typeof HTMLElement<"u"&&c instanceof HTMLElement}function Ry(c){return nc(c)&&c.tagName.toLowerCase()==="button"}function Uy(c){return nc(c)&&c.tagName.toLowerCase()==="form"}function Hy(c){return nc(c)&&c.tagName.toLowerCase()==="input"}function qy(c){return!!(c.metaKey||c.altKey||c.ctrlKey||c.shiftKey)}function Ly(c,u){return c.button===0&&(!u||u==="_self")&&!qy(c)}var Zi=null;function By(){if(Zi===null)try{new FormData(document.createElement("form"),0),Zi=!1}catch{Zi=!0}return Zi}var ky=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tr(c){return c!=null&&!ky.has(c)?($t(!1,`"${c}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fi}"`),null):c}function Yy(c,u){let f,r,d,m,y;if(Uy(c)){let g=c.getAttribute("action");r=g?Ea(g,u):null,f=c.getAttribute("method")||Wi,d=Tr(c.getAttribute("enctype"))||Fi,m=new FormData(c)}else if(Ry(c)||Hy(c)&&(c.type==="submit"||c.type==="image")){let g=c.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=c.getAttribute("formaction")||g.getAttribute("action");if(r=h?Ea(h,u):null,f=c.getAttribute("formmethod")||g.getAttribute("method")||Wi,d=Tr(c.getAttribute("formenctype"))||Tr(g.getAttribute("enctype"))||Fi,m=new FormData(g,c),!By()){let{name:x,type:S,value:j}=c;if(S==="image"){let A=x?`${x}.`:"";m.append(`${A}x`,"0"),m.append(`${A}y`,"0")}else x&&m.append(x,j)}}else{if(nc(c))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=Wi,r=null,d=Fi,y=c}return m&&d==="text/plain"&&(y=m,m=void 0),{action:r,method:f.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kr(c,u){if(c===!1||c===null||typeof c>"u")throw new Error(u)}function Gy(c,u,f,r){let d=typeof c=="string"?new URL(c,typeof window>"u"?"server://singlefetch/":window.location.origin):c;return f?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:u&&Ea(d.pathname,u)==="/"?d.pathname=`${u.replace(/\/$/,"")}/_root.${r}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${r}`,d}async function Xy(c,u){if(c.id in u)return u[c.id];try{let f=await import(c.module);return u[c.id]=f,f}catch(f){return console.error(`Error loading route module \`${c.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Qy(c){return c==null?!1:c.href==null?c.rel==="preload"&&typeof c.imageSrcSet=="string"&&typeof c.imageSizes=="string":typeof c.rel=="string"&&typeof c.href=="string"}async function Vy(c,u,f){let r=await Promise.all(c.map(async d=>{let m=u.routes[d.route.id];if(m){let y=await Xy(m,f);return y.links?y.links():[]}return[]}));return $y(r.flat(1).filter(Qy).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function ih(c,u,f,r,d,m){let y=(h,x)=>f[x]?h.route.id!==f[x].route.id:!0,g=(h,x)=>{var S;return f[x].pathname!==h.pathname||((S=f[x].route.path)==null?void 0:S.endsWith("*"))&&f[x].params["*"]!==h.params["*"]};return m==="assets"?u.filter((h,x)=>y(h,x)||g(h,x)):m==="data"?u.filter((h,x)=>{var j;let S=r.routes[h.route.id];if(!S||!S.hasLoader)return!1;if(y(h,x)||g(h,x))return!0;if(h.route.shouldRevalidate){let A=h.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((j=f[0])==null?void 0:j.params)||{},nextUrl:new URL(c,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof A=="boolean")return A}return!0}):[]}function Ky(c,u,{includeHydrateFallback:f}={}){return Zy(c.map(r=>{let d=u.routes[r.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),f&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function Zy(c){return[...new Set(c)]}function Jy(c){let u={},f=Object.keys(c).sort();for(let r of f)u[r]=c[r];return u}function $y(c,u){let f=new Set;return new Set(u),c.reduce((r,d)=>{let m=JSON.stringify(Jy(d));return f.has(m)||(f.add(m),r.push({key:m,link:d})),r},[])}function Rh(){let c=b.useContext(mn);return kr(c,"You must render this element inside a <DataRouterContext.Provider> element"),c}function Wy(){let c=b.useContext(ac);return kr(c,"You must render this element inside a <DataRouterStateContext.Provider> element"),c}var Yr=b.createContext(void 0);Yr.displayName="FrameworkContext";function Uh(){let c=b.useContext(Yr);return kr(c,"You must render this element inside a <HydratedRouter> element"),c}function Fy(c,u){let f=b.useContext(Yr),[r,d]=b.useState(!1),[m,y]=b.useState(!1),{onFocus:g,onBlur:h,onMouseEnter:x,onMouseLeave:S,onTouchStart:j}=u,A=b.useRef(null);b.useEffect(()=>{if(c==="render"&&y(!0),c==="viewport"){let M=v=>{v.forEach(_=>{y(_.isIntersecting)})},C=new IntersectionObserver(M,{threshold:.5});return A.current&&C.observe(A.current),()=>{C.disconnect()}}},[c]),b.useEffect(()=>{if(r){let M=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(M)}}},[r]);let D=()=>{d(!0)},E=()=>{d(!1),y(!1)};return f?c!=="intent"?[m,A,{}]:[m,A,{onFocus:xs(g,D),onBlur:xs(h,E),onMouseEnter:xs(x,D),onMouseLeave:xs(S,E),onTouchStart:xs(j,D)}]:[!1,A,{}]}function xs(c,u){return f=>{c&&c(f),f.defaultPrevented||u(f)}}function Iy({page:c,...u}){let{router:f}=Rh(),r=b.useMemo(()=>jh(f.routes,c,f.basename),[f.routes,c,f.basename]);return r?b.createElement(eg,{page:c,matches:r,...u}):null}function Py(c){let{manifest:u,routeModules:f}=Uh(),[r,d]=b.useState([]);return b.useEffect(()=>{let m=!1;return Vy(c,u,f).then(y=>{m||d(y)}),()=>{m=!0}},[c,u,f]),r}function eg({page:c,matches:u,...f}){let r=sa(),{future:d,manifest:m,routeModules:y}=Uh(),{basename:g}=Rh(),{loaderData:h,matches:x}=Wy(),S=b.useMemo(()=>ih(c,u,x,m,r,"data"),[c,u,x,m,r]),j=b.useMemo(()=>ih(c,u,x,m,r,"assets"),[c,u,x,m,r]),A=b.useMemo(()=>{if(c===r.pathname+r.search+r.hash)return[];let M=new Set,C=!1;if(u.forEach(_=>{var L;let z=m.routes[_.route.id];!z||!z.hasLoader||(!S.some(W=>W.route.id===_.route.id)&&_.route.id in h&&((L=y[_.route.id])!=null&&L.shouldRevalidate)||z.hasClientLoader?C=!0:M.add(_.route.id))}),M.size===0)return[];let v=Gy(c,g,d.unstable_trailingSlashAwareDataRequests,"data");return C&&M.size>0&&v.searchParams.set("_routes",u.filter(_=>M.has(_.route.id)).map(_=>_.route.id).join(",")),[v.pathname+v.search]},[g,d.unstable_trailingSlashAwareDataRequests,h,r,m,S,u,c,y]),D=b.useMemo(()=>Ky(j,m),[j,m]),E=Py(j);return b.createElement(b.Fragment,null,A.map(M=>b.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...f})),D.map(M=>b.createElement("link",{key:M,rel:"modulepreload",href:M,...f})),E.map(({key:M,link:C})=>b.createElement("link",{key:M,nonce:f.nonce,...C,crossOrigin:C.crossOrigin??f.crossOrigin})))}function tg(...c){return u=>{c.forEach(f=>{typeof f=="function"?f(u):f!=null&&(f.current=u)})}}var ag=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ag&&(window.__reactRouterVersion="7.13.1")}catch{}function lg({basename:c,children:u,unstable_useTransitions:f,window:r}){let d=b.useRef();d.current==null&&(d.current=_p({window:r,v5Compat:!0}));let m=d.current,[y,g]=b.useState({action:m.action,location:m.location}),h=b.useCallback(x=>{f===!1?g(x):b.startTransition(()=>g(x))},[f]);return b.useLayoutEffect(()=>m.listen(h),[m,h]),b.createElement(_y,{basename:c,children:u,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:f})}var Hh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ta=b.forwardRef(function({onClick:u,discover:f="render",prefetch:r="none",relative:d,reloadDocument:m,replace:y,unstable_mask:g,state:h,target:x,to:S,preventScrollReset:j,viewTransition:A,unstable_defaultShouldRevalidate:D,...E},M){let{basename:C,navigator:v,unstable_useTransitions:_}=b.useContext(_t),z=typeof S=="string"&&Hh.test(S),L=Eh(S,C);S=L.to;let W=dy(S,{relative:d}),J=sa(),V=null;if(g){let we=tc(g,[],J.unstable_mask?J.unstable_mask.pathname:"/",!0);C!=="/"&&(we.pathname=we.pathname==="/"?C:aa([C,we.pathname])),V=v.createHref(we)}let[B,Z,I]=Fy(r,E),ne=ig(S,{replace:y,unstable_mask:g,state:h,target:x,preventScrollReset:j,relative:d,viewTransition:A,unstable_defaultShouldRevalidate:D,unstable_useTransitions:_});function Le(we){u&&u(we),we.defaultPrevented||ne(we)}let Ve=!(L.isExternal||m),at=b.createElement("a",{...E,...I,href:(Ve?V:void 0)||L.absoluteURL||W,onClick:Ve?Le:u,ref:tg(M,Z),target:x,"data-discover":!z&&f==="render"?"true":void 0});return B&&!z?b.createElement(b.Fragment,null,at,b.createElement(Iy,{page:W})):at});ta.displayName="Link";var qh=b.forwardRef(function({"aria-current":u="page",caseSensitive:f=!1,className:r="",end:d=!1,style:m,to:y,viewTransition:g,children:h,...x},S){let j=Es(y,{relative:x.relative}),A=sa(),D=b.useContext(ac),{navigator:E,basename:M}=b.useContext(_t),C=D!=null&&fg(j)&&g===!0,v=E.encodeLocation?E.encodeLocation(j).pathname:j.pathname,_=A.pathname,z=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;f||(_=_.toLowerCase(),z=z?z.toLowerCase():null,v=v.toLowerCase()),z&&M&&(z=Ea(z,M)||z);const L=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let W=_===v||!d&&_.startsWith(v)&&_.charAt(L)==="/",J=z!=null&&(z===v||!d&&z.startsWith(v)&&z.charAt(v.length)==="/"),V={isActive:W,isPending:J,isTransitioning:C},B=W?u:void 0,Z;typeof r=="function"?Z=r(V):Z=[r,W?"active":null,J?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let I=typeof m=="function"?m(V):m;return b.createElement(ta,{...x,"aria-current":B,className:Z,ref:S,style:I,to:y,viewTransition:g},typeof h=="function"?h(V):h)});qh.displayName="NavLink";var ng=b.forwardRef(({discover:c="render",fetcherKey:u,navigate:f,reloadDocument:r,replace:d,state:m,method:y=Wi,action:g,onSubmit:h,relative:x,preventScrollReset:S,viewTransition:j,unstable_defaultShouldRevalidate:A,...D},E)=>{let{unstable_useTransitions:M}=b.useContext(_t),C=rg(),v=og(g,{relative:x}),_=y.toLowerCase()==="get"?"get":"post",z=typeof g=="string"&&Hh.test(g),L=W=>{if(h&&h(W),W.defaultPrevented)return;W.preventDefault();let J=W.nativeEvent.submitter,V=(J==null?void 0:J.getAttribute("formmethod"))||y,B=()=>C(J||W.currentTarget,{fetcherKey:u,method:V,navigate:f,replace:d,state:m,relative:x,preventScrollReset:S,viewTransition:j,unstable_defaultShouldRevalidate:A});M&&f!==!1?b.startTransition(()=>B()):B()};return b.createElement("form",{ref:E,method:_,action:v,onSubmit:r?h:L,...D,"data-discover":!z&&c==="render"?"true":void 0})});ng.displayName="Form";function sg(c){return`${c} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lh(c){let u=b.useContext(mn);return qe(u,sg(c)),u}function ig(c,{target:u,replace:f,unstable_mask:r,state:d,preventScrollReset:m,relative:y,viewTransition:g,unstable_defaultShouldRevalidate:h,unstable_useTransitions:x}={}){let S=lc(),j=sa(),A=Es(c,{relative:y});return b.useCallback(D=>{if(Ly(D,u)){D.preventDefault();let E=f!==void 0?f:vs(j)===vs(A),M=()=>S(c,{replace:E,unstable_mask:r,state:d,preventScrollReset:m,relative:y,viewTransition:g,unstable_defaultShouldRevalidate:h});x?b.startTransition(()=>M()):M()}},[j,S,A,f,r,d,u,c,m,y,g,h,x])}var cg=0,ug=()=>`__${String(++cg)}__`;function rg(){let{router:c}=Lh("useSubmit"),{basename:u}=b.useContext(_t),f=Cy(),r=c.fetch,d=c.navigate;return b.useCallback(async(m,y={})=>{let{action:g,method:h,encType:x,formData:S,body:j}=Yy(m,u);if(y.navigate===!1){let A=y.fetcherKey||ug();await r(A,f,y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:S,body:j,formMethod:y.method||h,formEncType:y.encType||x,flushSync:y.flushSync})}else await d(y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:S,body:j,formMethod:y.method||h,formEncType:y.encType||x,replace:y.replace,state:y.state,fromRouteId:f,flushSync:y.flushSync,viewTransition:y.viewTransition})},[r,d,u,f])}function og(c,{relative:u}={}){let{basename:f}=b.useContext(_t),r=b.useContext(Qt);qe(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),m={...Es(c||".",{relative:u})},y=sa();if(c==null){m.search=y.search;let g=new URLSearchParams(m.search),h=g.getAll("index");if(h.some(S=>S==="")){g.delete("index"),h.filter(j=>j).forEach(j=>g.append("index",j));let S=g.toString();m.search=S?`?${S}`:""}}return(!c||c===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(m.pathname=m.pathname==="/"?f:aa([f,m.pathname])),vs(m)}function fg(c,{relative:u}={}){let f=b.useContext(wh);qe(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Lh("useViewTransitionState"),d=Es(c,{relative:u});if(!f.isTransitioning)return!1;let m=Ea(f.currentLocation.pathname,r)||f.currentLocation.pathname,y=Ea(f.nextLocation.pathname,r)||f.nextLocation.pathname;return Ii(d.pathname,y)!=null||Ii(d.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 dg=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bh=(...c)=>c.filter((u,f,r)=>!!u&&u.trim()!==""&&r.indexOf(u)===f).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 mg={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 hg=b.forwardRef(({color:c="currentColor",size:u=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:d="",children:m,iconNode:y,...g},h)=>b.createElement("svg",{ref:h,...mg,width:u,height:u,stroke:c,strokeWidth:r?Number(f)*24/Number(u):f,className:Bh("lucide",d),...g},[...y.map(([x,S])=>b.createElement(x,S)),...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=(c,u)=>{const f=b.forwardRef(({className:r,...d},m)=>b.createElement(hg,{ref:m,iconNode:u,className:Bh(`lucide-${dg(c)}`,r),...d}));return f.displayName=`${c}`,f};/**
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 xg=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 pg=le("ArrowDownLeft",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]);/**
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 yg=le("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
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 gg=le("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
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 vg=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"}]]);/**
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 vl=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"}]]);/**
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 kh=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"}]]);/**
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 xn=le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
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 la=le("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
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 Cs=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"}]]);/**
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 Pi=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"}]]);/**
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 ch=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"}]]);/**
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 Dr=le("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
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 bs=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"}]]);/**
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 uh=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"}]]);/**
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 bg=le("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
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 Gr=le("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
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 Xr=le("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
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 jg=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"}]]);/**
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 Ng=le("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
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 Sg=le("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
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 Qr=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"}]]);/**
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 Ag=le("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
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 Eg=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"}]]);/**
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 Yh=le("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
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 We=le("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
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 Gh=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"}]]);/**
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 Cg=le("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
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 wg=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"}]]);/**
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 ws=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"}]]);/**
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 Tg=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"}]]);/**
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 Mg=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"}]]);/**
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 rh=le("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
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 jt=le("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
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 sc=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"}]]);/**
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 js=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"}]]);/**
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 ic=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"}]]);/**
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 Xh=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"}]]);/**
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 pn=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"}]]);/**
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 Qh=le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
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 ec=le("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
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 bl=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"}]]);/**
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 zg=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"}]]);/**
296
+ * @license lucide-react v0.468.0 - ISC
297
+ *
298
+ * This source code is licensed under the ISC license.
299
+ * See the LICENSE file in the root directory of this source tree.
300
+ */const Og=le("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
301
+ * @license lucide-react v0.468.0 - ISC
302
+ *
303
+ * This source code is licensed under the ISC license.
304
+ * See the LICENSE file in the root directory of this source tree.
305
+ */const _g=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"}]]);/**
306
+ * @license lucide-react v0.468.0 - ISC
307
+ *
308
+ * This source code is licensed under the ISC license.
309
+ * See the LICENSE file in the root directory of this source tree.
310
+ */const Dg=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"}]]);/**
311
+ * @license lucide-react v0.468.0 - ISC
312
+ *
313
+ * This source code is licensed under the ISC license.
314
+ * See the LICENSE file in the root directory of this source tree.
315
+ */const Rg=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"}]]);/**
316
+ * @license lucide-react v0.468.0 - ISC
317
+ *
318
+ * This source code is licensed under the ISC license.
319
+ * See the LICENSE file in the root directory of this source tree.
320
+ */const na=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"}]]);/**
321
+ * @license lucide-react v0.468.0 - ISC
322
+ *
323
+ * This source code is licensed under the ISC license.
324
+ * See the LICENSE file in the root directory of this source tree.
325
+ */const Ug=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"}]]);/**
326
+ * @license lucide-react v0.468.0 - ISC
327
+ *
328
+ * This source code is licensed under the ISC license.
329
+ * See the LICENSE file in the root directory of this source tree.
330
+ */const Ns=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"}]]);/**
331
+ * @license lucide-react v0.468.0 - ISC
332
+ *
333
+ * This source code is licensed under the ISC license.
334
+ * See the LICENSE file in the root directory of this source tree.
335
+ */const Vh=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"}]]);/**
336
+ * @license lucide-react v0.468.0 - ISC
337
+ *
338
+ * This source code is licensed under the ISC license.
339
+ * See the LICENSE file in the root directory of this source tree.
340
+ */const Kh=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"}]]);/**
341
+ * @license lucide-react v0.468.0 - ISC
342
+ *
343
+ * This source code is licensed under the ISC license.
344
+ * See the LICENSE file in the root directory of this source tree.
345
+ */const Hg=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"}]]);/**
346
+ * @license lucide-react v0.468.0 - ISC
347
+ *
348
+ * This source code is licensed under the ISC license.
349
+ * See the LICENSE file in the root directory of this source tree.
350
+ */const Zh=le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let qg=0;function oh(){return`op-${++qg}-${Date.now().toString(36)}`}const Lg="webchat-ui";class Bg{constructor(u,f){Xt(this,"ws",null);Xt(this,"pending",new Map);Xt(this,"eventHandlers",new Map);Xt(this,"closed",!1);Xt(this,"connectSent",!1);Xt(this,"connectTimer",null);Xt(this,"_connected",!1);Xt(this,"_snapshot",null);Xt(this,"reconnectTimer",null);Xt(this,"onConnectedChange");Xt(this,"onConnectError");this.url=u,this.token=f}get connected(){return this._connected}get snapshot(){return this._snapshot}setCallbacks(u){this.onConnectedChange=u.onConnectedChange,this.onConnectError=u.onConnectError}start(){this.closed=!1,this.doConnect()}stop(){var u;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),(u=this.ws)==null||u.close(),this.ws=null;for(const[,f]of this.pending)f.reject(new Error("client stopped"));this.pending.clear()}on(u,f){let r=this.eventHandlers.get(u);return r||(r=new Set,this.eventHandlers.set(u,r)),r.add(f),()=>r.delete(f)}async request(u,f){if(!this.ws||this.ws.readyState!==WebSocket.OPEN||!this._connected)throw new Error("gateway not connected");const r=oh(),d={type:"req",id:r,method:u,params:f};return new Promise((m,y)=>{this.pending.set(r,{resolve:g=>m(g),reject:y}),this.ws.send(JSON.stringify(d))})}doConnect(){if(this.closed)return;const u=new WebSocket(this.url);this.ws=u,this.connectSent=!1,u.addEventListener("open",()=>{this.ws===u&&this.scheduleConnect()}),u.addEventListener("message",f=>{this.ws===u&&this.handleMessage(String(f.data??""))}),u.addEventListener("close",f=>{var d;if(this.ws!==u)return;this.ws=null;const r=this._connected;this._connected=!1,r&&((d=this.onConnectedChange)==null||d.call(this,!1));for(const[,m]of this.pending)m.reject(new Error(`closed: ${f.code}`));this.pending.clear(),!this.closed&&r&&(this.reconnectTimer=window.setTimeout(()=>this.doConnect(),2e3))}),u.addEventListener("error",()=>{})}scheduleConnect(){this.connectTimer!==null&&window.clearTimeout(this.connectTimer),this.connectTimer=window.setTimeout(()=>{this.sendConnect()},100)}async sendConnect(){var f,r,d;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 u={minProtocol:3,maxProtocol:3,client:{id:Lg,version:"0.1.0",platform:navigator.platform??"web",mode:"ui"},role:"operator",scopes:["operator.admin","operator.approvals","operator.pairing"],caps:[],auth:{token:this.token},userAgent:navigator.userAgent,locale:navigator.language};try{const m=await this.request_internal("connect",u);this._connected=!0,this._snapshot=(m==null?void 0:m.snapshot)??null,(f=this.onConnectedChange)==null||f.call(this,!0)}catch(m){const y=m instanceof Error?m.message:"connect failed";(r=this.onConnectError)==null||r.call(this,y),(d=this.ws)==null||d.close(4008,"connect failed")}}async request_internal(u,f){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("gateway not connected");const r=oh(),d={type:"req",id:r,method:u,params:f};return new Promise((m,y)=>{this.pending.set(r,{resolve:g=>m(g),reject:y}),this.ws.send(JSON.stringify(d))})}handleMessage(u){var d;let f;try{f=JSON.parse(u)}catch{return}const r=f;if(r.type==="event"){const m=f;if(m.event==="connect.challenge"){const h=m.payload;h!=null&&h.nonce&&(this.connectSent=!1,this.sendConnect());return}const y=this.eventHandlers.get(m.event);if(y)for(const h of y)try{h(m.payload)}catch{}const g=this.eventHandlers.get("*");if(g)for(const h of g)try{h(m)}catch{}return}if(r.type==="res"){const m=f,y=this.pending.get(m.id);if(!y)return;this.pending.delete(m.id),m.ok?y.resolve(m.payload):y.reject(new Error(((d=m.error)==null?void 0:d.message)??"request failed"))}}}const Jh=b.createContext({authenticated:!1,connected:!1,connecting:!1,error:null,gateway:null,login:()=>{},logout:()=>{}});function De(){return b.useContext(Jh)}function kg(){return`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}`}const Ji="operator-ui-auth";function Yg({children:c}){const[u,f]=b.useState(!1),[r,d]=b.useState(!1),[m,y]=b.useState(!1),[g,h]=b.useState(null),x=b.useRef(null),S=b.useRef(null);b.useEffect(()=>{const D=sessionStorage.getItem(Ji);return D&&j(D),()=>{var E;(E=x.current)==null||E.stop()}},[]);const j=b.useCallback(D=>{var M;(M=x.current)==null||M.stop(),y(!0),h(null),S.current=D;const E=new Bg(kg(),D);x.current=E,E.setCallbacks({onConnectedChange:C=>{y(!1),d(C),C&&(f(!0),h(null),sessionStorage.setItem(Ji,D))},onConnectError:C=>{y(!1),d(!1),f(!1),sessionStorage.removeItem(Ji),E.stop(),h(C)}}),E.start()},[]),A=b.useCallback(()=>{var D;(D=x.current)==null||D.stop(),x.current=null,S.current=null,f(!1),d(!1),h(null),sessionStorage.removeItem(Ji)},[]);return n.jsx(Jh.Provider,{value:{authenticated:u,connected:r,connecting:m,error:g,gateway:x.current,login:j,logout:A},children:c})}function $h(c){var u,f,r="";if(typeof c=="string"||typeof c=="number")r+=c;else if(typeof c=="object")if(Array.isArray(c)){var d=c.length;for(u=0;u<d;u++)c[u]&&(f=$h(c[u]))&&(r&&(r+=" "),r+=f)}else for(f in c)c[f]&&(r&&(r+=" "),r+=f);return r}function Pe(){for(var c,u,f=0,r="",d=arguments.length;f<d;f++)(c=arguments[f])&&(u=$h(c))&&(r&&(r+=" "),r+=u);return r}const Gg=[{to:"/",icon:Eg,label:"Dashboard",end:!0},{to:"/agents",icon:vl,label:"Agents"},{to:"/channels",icon:js,label:"Channels"},{to:"/groups",icon:Ns,label:"Groups"},{to:"/models",icon:bs,label:"Models"},{to:"/skills",icon:sc,label:"Skills"},{to:"/sessions",icon:ws,label:"Sessions"},{to:"/cron",icon:Dr,label:"Cron"},{to:"/settings",icon:bl,label:"Settings"}];function Xg(){return n.jsxs("aside",{className:"flex w-60 shrink-0 flex-col border-r border-surface-200 bg-white",children:[n.jsxs("div",{className:"flex h-14 items-center gap-2.5 border-b border-surface-200 px-5",children:[n.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary-600",children:n.jsx("span",{className:"text-sm font-bold text-white",children:"O"})}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-semibold text-surface-900",children:"Operator"}),n.jsx("p",{className:"text-[10px] font-medium text-surface-400",children:"OpenClaw"})]})]}),n.jsx("nav",{className:"flex-1 space-y-0.5 p-3",children:Gg.map(({to:c,icon:u,label:f,...r})=>n.jsxs(qh,{to:c,end:"end"in r,className:({isActive:d})=>Pe("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",d?"bg-primary-50 text-primary-700":"text-surface-600 hover:bg-surface-50 hover:text-surface-900"),children:[n.jsx(u,{className:"h-4 w-4"}),f]},c))}),n.jsx("div",{className:"border-t border-surface-200 p-3",children:n.jsx("p",{className:"px-3 text-[10px] text-surface-400",children:"v0.1.0 ยท OpenClaw Operator"})})]})}function Qg(){const{logout:c,connected:u}=De();return n.jsxs("div",{className:"flex h-screen overflow-hidden bg-surface-50",children:[n.jsx(Xg,{}),n.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[n.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-end gap-3 border-b border-surface-200 bg-white px-6",children:[n.jsx("div",{className:"flex items-center gap-2 text-xs",children:u?n.jsxs("span",{className:"badge-green",children:[n.jsx(Kh,{className:"mr-1 h-3 w-3"}),"Connected"]}):n.jsxs("span",{className:"badge-red",children:[n.jsx(Vh,{className:"mr-1 h-3 w-3"}),"Reconnectingโ€ฆ"]})}),n.jsx("button",{onClick:c,className:"btn-ghost !px-2 !py-1.5 text-surface-500 hover:text-surface-700",children:n.jsx(Gh,{className:"h-4 w-4"})})]}),n.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:n.jsx(Oy,{})})]})]})}function ia({title:c,description:u,actions:f}){return n.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-semibold text-surface-900",children:c}),u&&n.jsx("p",{className:"mt-1 text-sm text-surface-500",children:u})]}),f&&n.jsx("div",{className:"flex items-center gap-2",children:f})]})}function Vg(){const{gateway:c}=De(),u=lc(),[f,r]=b.useState(!1),[d,m]=b.useState(null),[y,g]=b.useState({name:"",identity:"",emoji:""});function h(S,j){g(A=>({...A,[S]:j}))}async function x(S){if(S.preventDefault(),!!c){if(!y.name.trim()){m("Agent name is required");return}r(!0),m(null);try{const j=await c.request("agents.create",{name:y.name.trim(),workspace:y.name.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),emoji:y.emoji.trim()||void 0}),A=j==null?void 0:j.agentId;A&&y.identity.trim()&&await c.request("agents.files.set",{agentId:A,name:"AGENTS.md",content:y.identity.trim()}),u(`/agents/${A??""}`)}catch(j){m(j instanceof Error?j.message:"Failed to create agent"),r(!1)}}}return n.jsxs("div",{className:"mx-auto max-w-2xl",children:[n.jsx(ia,{title:"Create Agent",description:"Set up a new AI agent"}),n.jsxs("form",{onSubmit:x,className:"card space-y-5",children:[n.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"Agent Name *"}),n.jsx("input",{className:"input",placeholder:"e.g. Support Assistant",value:y.name,onChange:S=>h("name",S.target.value)}),n.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"The display name for this agent"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"Emoji"}),n.jsx("input",{className:"input",placeholder:"e.g. ๐Ÿค–",value:y.emoji,onChange:S=>h("emoji",S.target.value)}),n.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"Optional icon for the agent"})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"Identity / System Prompt"}),n.jsx("textarea",{className:"input min-h-[120px] resize-y",placeholder:"Describe the agent's personality, role, and behavior...",value:y.identity,onChange:S=>h("identity",S.target.value)}),n.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"This will be saved as the agent's AGENTS.md file"})]}),d&&n.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-3 text-sm text-red-700",children:[n.jsx(Cs,{className:"mt-0.5 h-4 w-4 shrink-0"}),n.jsx("span",{children:d})]}),n.jsxs("div",{className:"flex justify-end gap-3 border-t border-surface-100 pt-5",children:[n.jsx("button",{type:"button",onClick:()=>u("/agents"),className:"btn-secondary",children:"Cancel"}),n.jsxs("button",{type:"submit",disabled:f,className:"btn-primary",children:[f?n.jsx(We,{className:"h-4 w-4 animate-spin"}):null,"Create Agent"]})]})]})]})}function rt({className:c}){return n.jsx("div",{className:Pe("flex items-center justify-center py-12",c),children:n.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-surface-200 border-t-primary-600"})})}const Wh=["settings","channels","groups","tools","skills","sessions","usage","chat"],Kg={settings:{label:"Settings",icon:bl},channels:{label:"Channels",icon:js},groups:{label:"Groups",icon:Ns},tools:{label:"Tools",icon:Hg},skills:{label:"Skills",icon:sc},sessions:{label:"Sessions",icon:ws},usage:{label:"Usage",icon:kh},chat:{label:"Test Chat",icon:Cg}},Ia=[{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 Zg({agentId:c,meta:u,initialContent:f,initialMissing:r}){const{gateway:d}=De(),[m,y]=b.useState(f),[g,h]=b.useState(!1),[x,S]=b.useState("idle"),[j,A]=b.useState(!1);async function D(){if(d){h(!0),S("idle");try{await d.request("agents.files.set",{agentId:c,name:u.name,content:m}),S("saved"),A(!1),setTimeout(()=>S("idle"),2500)}catch{S("error")}h(!1)}}return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"mb-3 flex items-center justify-between",children:n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:u.label}),n.jsx("code",{className:"rounded bg-surface-100 px-1.5 py-0.5 text-[10px] font-mono text-surface-500",children:u.name}),r&&!j&&n.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5 text-[10px] text-surface-400",children:"Not created"}),j&&n.jsx("span",{className:"rounded bg-amber-50 px-1.5 py-0.5 text-[10px] text-amber-600",children:"Unsaved"})]}),n.jsx("p",{className:"mt-0.5 text-xs text-surface-400",children:u.description})]})}),n.jsx("textarea",{className:"input min-h-[160px] resize-y font-mono text-xs leading-relaxed",value:m,onChange:E=>{y(E.target.value),A(!0),S("idle")},placeholder:`Write ${u.label.toLowerCase()} content here...`,spellCheck:!1}),n.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[n.jsxs("button",{onClick:D,disabled:g||!j,className:"btn-primary !py-1.5 !text-xs",children:[g?n.jsx(We,{className:"h-3.5 w-3.5 animate-spin"}):n.jsx(pn,{className:"h-3.5 w-3.5"}),"Save"]}),x==="saved"&&n.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),x==="error"&&n.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]})]})}function fh({value:c,onChange:u,catalog:f,placeholder:r}){const d=new Map;for(const m of f){const y=m.provider||"other";d.has(y)||d.set(y,[]),d.get(y).push(m)}return n.jsxs("select",{className:"input text-sm",value:c,onChange:m=>u(m.target.value),children:[n.jsx("option",{value:"",children:r??"Inherit default"}),[...d.entries()].map(([m,y])=>n.jsx("optgroup",{label:m,children:y.map(g=>n.jsxs("option",{value:`${g.provider}/${g.id}`,children:[g.name||g.id,g.reasoning?" (reasoning)":"",g.contextWindow?` ยท ${Math.round(g.contextWindow/1e3)}k ctx`:""]},`${g.provider}/${g.id}`))},m))]})}function Jg({agentId:c}){const{gateway:u,connected:f}=De(),[r,d]=b.useState([]),[m,y]=b.useState(""),[g,h]=b.useState([]),[x,S]=b.useState(""),[j,A]=b.useState(!0),[D,E]=b.useState(!1),[M,C]=b.useState("idle");b.useEffect(()=>{!u||!f||Promise.all([u.request("models.list").then(J=>Array.isArray(J==null?void 0:J.models)?J.models:[]),u.request("config.get").then(J=>{const B=((J==null?void 0:J.config)??{}).agents??{},Z=B.defaults??{},ne=(B.list??[]).find(Le=>String(Le.id??"").toLowerCase()===c.toLowerCase());return{defaults:Z,agentEntry:ne}})]).then(([J,{defaults:V,agentEntry:B}])=>{d(J);const Z=V.model;typeof Z=="string"?S(Z):Z&&typeof Z=="object"&&S(Z.primary??"");const I=B==null?void 0:B.model;typeof I=="string"?y(I):I&&typeof I=="object"&&(y(I.primary??""),h(I.fallbacks??[]))}).catch(()=>{}).finally(()=>A(!1))},[u,f,c]);async function v(){if(u){E(!0),C("idle");try{const J=g.filter(Boolean);if(J.length>0){const V={};m&&(V.primary=m),V.fallbacks=J,await u.request("config.patch",{raw:JSON.stringify({agents:{list:[{id:c,model:V}]}})})}else m?await u.request("agents.update",{agentId:c,model:m}):await u.request("config.patch",{raw:JSON.stringify({agents:{list:[{id:c,model:null}]}})});C("saved"),setTimeout(()=>C("idle"),2500)}catch{C("error")}E(!1)}}function _(){h(J=>[...J,""])}function z(J){h(V=>V.filter((B,Z)=>Z!==J))}function L(J,V){h(B=>{const Z=[...B];return Z[J]=V,Z})}function W(J,V){h(B=>{const Z=J+V;if(Z<0||Z>=B.length)return B;const I=[...B],ne=I[J];return I[J]=I[Z],I[Z]=ne,I})}return j?n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[n.jsx(bs,{className:"h-4 w-4 text-primary-600"}),n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:"Model Configuration"})]}),n.jsx("div",{className:"py-4 text-center",children:n.jsx(We,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"})})]}):n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n.jsx(bs,{className:"h-4 w-4 text-primary-600"}),n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:"Model Configuration"})]}),n.jsxs("p",{className:"text-xs text-surface-400 mb-4",children:["Override the default model for this agent.",x&&n.jsxs(n.Fragment,{children:[" ","Current default:"," ",n.jsx("code",{className:"rounded bg-surface-100 px-1 py-0.5 text-[10px]",children:x})]})]}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"Primary Model"}),n.jsx(fh,{value:m,onChange:y,catalog:r,placeholder:x?`Inherit default (${x})`:"Inherit default"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"Fallback Models"}),n.jsx("p",{className:"text-[11px] text-surface-400 mb-2",children:"When the primary model is unavailable, these models are tried in order."}),n.jsxs("div",{className:"space-y-2",children:[g.map((J,V)=>n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("div",{className:"flex flex-col gap-0.5",children:[n.jsx("button",{onClick:()=>W(V,-1),className:"text-surface-400 hover:text-surface-600 disabled:opacity-30",disabled:V===0,children:n.jsx(la,{className:"h-3 w-3 -rotate-90"})}),n.jsx("button",{onClick:()=>W(V,1),className:"text-surface-400 hover:text-surface-600 disabled:opacity-30",disabled:V===g.length-1,children:n.jsx(la,{className:"h-3 w-3 rotate-90"})})]}),n.jsx("span",{className:"text-[10px] text-surface-400 font-mono w-4 text-center shrink-0",children:V+1}),n.jsx("div",{className:"flex-1",children:n.jsx(fh,{value:J,onChange:B=>L(V,B),catalog:r,placeholder:"Select fallback model..."})}),n.jsx("button",{onClick:()=>z(V),className:"text-surface-400 hover:text-red-500 p-1",children:n.jsx(Zh,{className:"h-3.5 w-3.5"})})]},V)),n.jsxs("button",{onClick:_,className:"flex items-center gap-1.5 text-xs text-primary-600 hover:text-primary-700",children:[n.jsx(jt,{className:"h-3 w-3"}),"Add fallback"]})]})]}),n.jsxs("div",{className:"flex items-center gap-3 border-t border-surface-100 pt-3",children:[n.jsxs("button",{onClick:v,disabled:D,className:"btn-primary !py-1.5 !text-xs",children:[D?n.jsx(We,{className:"h-3.5 w-3.5 animate-spin"}):n.jsx(pn,{className:"h-3.5 w-3.5"}),"Save Model"]}),M==="saved"&&n.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),M==="error"&&n.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]})]})]})}function $g({agentId:c}){const{gateway:u,connected:f}=De(),[r,d]=b.useState(new Map),[m,y]=b.useState(!0),[g,h]=b.useState(!1);if(b.useEffect(()=>{if(!u||!f)return;const D=new Map;u.request("agents.files.list",{agentId:c}).then(async E=>{const M=Array.isArray(E==null?void 0:E.files)?E.files:[];for(const z of M)D.set(z.name,z);const v=Ia.map(z=>z.name).filter(z=>!D.has(z)||D.get(z).content===void 0),_=await Promise.allSettled(v.map(z=>u.request("agents.files.get",{agentId:c,name:z}).then(L=>({name:z,file:L==null?void 0:L.file}))));for(const z of _)z.status==="fulfilled"&&z.value.file&&D.set(z.value.name,z.value.file);for(const z of Ia)D.has(z.name)||D.set(z.name,{name:z.name,missing:!0,content:""});d(D)}).catch(()=>{}).finally(()=>y(!1))},[u,f,c]),m)return n.jsx(rt,{});const x=Ia.filter(D=>D.core),j=g?Ia:x,A={total:Ia.length,created:Ia.filter(D=>{const E=r.get(D.name);return E&&!E.missing}).length};return n.jsxs("div",{className:"space-y-4",children:[n.jsx(Jg,{agentId:c}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("p",{className:"text-sm text-surface-500",children:g?"All workspace files":"Core configuration files"}),n.jsxs("span",{className:"text-xs text-surface-400",children:[A.created," / ",A.total," files active"]})]}),n.jsxs("button",{onClick:()=>h(!g),className:Pe("flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-xs font-medium transition-colors",g?"bg-primary-50 text-primary-700 hover:bg-primary-100":"bg-surface-100 text-surface-600 hover:bg-surface-200"),children:[n.jsx(bl,{className:"h-3.5 w-3.5"}),g?"Advanced Mode":"Basic Mode"]})]}),!g&&n.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"," ",n.jsx("strong",{children:"Advanced Mode"})," to edit all ",Ia.length," workspace files including tools, memory, heartbeat, and bootstrap."]}),n.jsx("div",{className:"space-y-4",children:j.map(D=>{const E=r.get(D.name);return n.jsx(Zg,{agentId:c,meta:D,initialContent:(E==null?void 0:E.content)??"",initialMissing:(E==null?void 0:E.missing)??!0},D.name)})}),g&&n.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-200 p-3",children:[n.jsx("h4",{className:"text-xs font-semibold text-surface-700 mb-2",children:"File Reference"}),n.jsx("div",{className:"grid gap-1.5 sm:grid-cols-2 text-[11px] text-surface-500",children:Ia.map(D=>{const E=r.get(D.name),M=E&&!E.missing;return n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("div",{className:Pe("h-1.5 w-1.5 rounded-full",M?"bg-emerald-500":"bg-surface-300")}),n.jsx("span",{className:"font-mono",children:D.name}),M&&(E==null?void 0:E.size)!=null&&n.jsxs("span",{className:"text-surface-400",children:["(",E.size,"B)"]})]},D.name)})})]})]})}const Fh={whatsapp:"๐Ÿ’ฌ",telegram:"โœˆ๏ธ",discord:"๐ŸŽฎ",slack:"๐Ÿ’ผ",signal:"๐Ÿ”’",feishu:"๐Ÿฆ",msteams:"๐Ÿข",webchat:"๐ŸŒ"};function ps(c,...u){if(!c||typeof c!="object")return;const f=c;for(const r of u){const d=f[r];if(typeof d=="string"&&d.trim())return d.trim()}}function Rr(c){if(!c)return"";const u=Date.now()-c;return u<6e4?"just now":u<36e5?`${Math.floor(u/6e4)}m ago`:u<864e5?`${Math.floor(u/36e5)}h ago`:new Date(c).toLocaleDateString()}function Wg({agentId:c}){const{gateway:u,connected:f}=De(),[r,d]=b.useState([]),[m,y]=b.useState({}),[g,h]=b.useState({}),[x,S]=b.useState(!0);if(b.useEffect(()=>{!u||!f||Promise.all([u.request("config.get").then(D=>{var M;const E=(M=D==null?void 0:D.config)==null?void 0:M.bindings;return Array.isArray(E)?E:[]}),u.request("channels.status",{probe:!0}).then(D=>{const E=(D==null?void 0:D.channelAccounts)??{},M=(D==null?void 0:D.channelLabels)??{};return{accounts:E,labels:M}})]).then(([D,E])=>{d(D),y(E.accounts),h(E.labels),S(!1)}).catch(()=>S(!1))},[u,f]),x)return n.jsx(rt,{});const j=r.filter(D=>D.agentId===c),A=[...new Set(j.map(D=>D.match.channel))];return n.jsxs("div",{children:[n.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Channels bound to this agent (",j.length," bindings)"]}),j.length===0?n.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."}):n.jsx("div",{className:"space-y-3",children:A.map(D=>{const E=j.filter(I=>I.match.channel===D),M=m[D],v=(Array.isArray(M)?M:M&&typeof M=="object"?Object.entries(M).map(([I,ne])=>({...ne,accountId:I})):[])[0],_=v==null?void 0:v.probe,z=(v==null?void 0:v.name)??ps(v==null?void 0:v.bot,"name","botName")??ps(v==null?void 0:v.profile,"name","displayName")??ps(_,"botName","bot_name"),L=v==null?void 0:v.appId,W=ps(v==null?void 0:v.application,"name","appName","app_name")??(L?`App ${L}`:void 0),J=ps(v==null?void 0:v.application,"tenantName","tenant_name","companyName","company_name","orgName"),V=v==null?void 0:v.domain,B=(v==null?void 0:v.connected)??(v==null?void 0:v.running)??!1,Z=Fh[D]??"๐Ÿ“ก";return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("span",{className:"text-xl",children:Z}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:g[D]??D}),n.jsx("div",{className:`h-2 w-2 rounded-full ${B?"bg-emerald-500":"bg-surface-300"}`})]}),n.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-0.5 mt-0.5 text-xs text-surface-500",children:[z&&n.jsx("span",{children:z}),W&&n.jsxs("span",{children:["App: ",W]}),J&&n.jsxs("span",{children:["Org: ",J]}),((v==null?void 0:v.mode)||V)&&n.jsx("span",{className:"rounded bg-surface-100 px-1 py-0.5 text-[10px]",children:(v==null?void 0:v.mode)??V})]})]})]}),n.jsx("span",{className:`text-xs font-medium ${B?"text-emerald-600":"text-surface-400"}`,children:B?"Online":"Offline"})]}),((v==null?void 0:v.lastInboundAt)||(v==null?void 0:v.lastOutboundAt))&&n.jsxs("div",{className:"mt-2 flex items-center gap-4 text-[11px] text-surface-400",children:[v.lastInboundAt&&n.jsxs("span",{children:["Last in: ",Rr(v.lastInboundAt)]}),v.lastOutboundAt&&n.jsxs("span",{children:["Last out: ",Rr(v.lastOutboundAt)]})]}),E.some(I=>I.match.peer)&&n.jsxs("div",{className:"mt-2 border-t border-surface-100 pt-2",children:[n.jsx("p",{className:"text-[11px] text-surface-400 mb-1",children:"Bindings:"}),n.jsx("div",{className:"flex flex-wrap gap-1.5",children:E.map((I,ne)=>n.jsx("span",{className:"rounded bg-surface-100 px-2 py-0.5 text-[11px] text-surface-600",children:I.match.peer?`${I.match.peer.kind}: ${I.match.peer.id.length>20?I.match.peer.id.slice(0,10)+"โ€ฆ":I.match.peer.id}`:"all"},ne))})]})]},D)})})]})}function Fg({agentId:c}){const{gateway:u,connected:f}=De(),[r,d]=b.useState([]),[m,y]=b.useState([]),[g,h]=b.useState({}),[x,S]=b.useState(!0);if(b.useEffect(()=>{!u||!f||Promise.all([u.request("config.get").then(E=>{var C;const M=(C=E==null?void 0:E.config)==null?void 0:C.bindings;return Array.isArray(M)?M:[]}),u.request("sessions.list",{}).then(E=>Array.isArray(E==null?void 0:E.sessions)?E.sessions:[]),u.request("channels.status",{}).then(E=>(E==null?void 0:E.channelLabels)??{})]).then(([E,M,C])=>{d(E),y(M),h(C),S(!1)}).catch(()=>S(!1))},[u,f]),x)return n.jsx(rt,{});const j=r.filter(E=>{var M;return E.agentId===c&&(((M=E.match.peer)==null?void 0:M.kind)==="group"||E.match.guildId)}),A=m.filter(E=>E.kind==="group");function D(E,M){const C=A.find(v=>v.key.includes(E)||v.subject===E);return C?C.displayName||C.derivedTitle||C.label||E:E.length>24?E.slice(0,12)+"โ€ฆ"+E.slice(-6):E}return n.jsxs("div",{children:[n.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Groups routed to this agent (",j.length,")"]}),j.length===0?n.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"}):n.jsx("div",{className:"space-y-2",children:j.map((E,M)=>{var W;const C=((W=E.match.peer)==null?void 0:W.id)??E.match.guildId??"unknown",v=E.match.channel,_=D(C),z=Fh[v]??"๐Ÿ“ก",L=A.find(J=>J.key.includes(C)||J.subject===C);return n.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-surface-200 p-3.5",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-100",children:n.jsx("span",{className:"text-lg",children:z})}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-surface-900",children:_}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-0.5 text-xs text-surface-400",children:[n.jsx("span",{children:g[v]??v}),E.comment&&n.jsxs("span",{children:["ยท ",E.comment]}),(L==null?void 0:L.updatedAt)&&n.jsxs("span",{children:["ยท Active ",Rr(L.updatedAt)]})]}),C!==_&&n.jsx("p",{className:"mt-0.5 text-[10px] font-mono text-surface-300 truncate max-w-[300px]",children:C})]})]}),n.jsx("span",{className:"badge-primary",children:"Group"})]},M)})})]})}function Ig({agentId:c}){const{gateway:u,connected:f}=De(),[r,d]=b.useState([]),[m,y]=b.useState(!0);return b.useEffect(()=>{!u||!f||u.request("tools.catalog",{agentId:c}).then(g=>{const x=(Array.isArray(g==null?void 0:g.groups)?g.groups:[]).flatMap(S=>Array.isArray(S.tools)?S.tools:[]);d(x)}).catch(()=>{}).finally(()=>y(!1))},[u,f,c]),m?n.jsx(rt,{}):n.jsxs("div",{children:[n.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Tools available to this agent (",r.length,")"]}),n.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[r.map(g=>n.jsxs("div",{className:"rounded-lg border border-surface-200 p-3",children:[n.jsx("p",{className:"text-sm font-medium text-surface-900",children:g.label||g.id}),g.description&&n.jsx("p",{className:"mt-0.5 text-xs text-surface-400 line-clamp-2",children:g.description}),g.pluginId&&n.jsxs("p",{className:"mt-1 text-[10px] text-surface-400",children:["Plugin: ",g.pluginId]})]},g.id)),r.length===0&&n.jsx("p",{className:"col-span-2 py-8 text-center text-sm text-surface-400",children:"No tools data available"})]})]})}function Pg({agentId:c}){const{gateway:u,connected:f}=De(),[r,d]=b.useState([]),[m,y]=b.useState(!0);return b.useEffect(()=>{!u||!f||u.request("skills.status",{agentId:c}).then(g=>d(Array.isArray(g==null?void 0:g.skills)?g.skills:[])).catch(()=>{}).finally(()=>y(!1))},[u,f,c]),m?n.jsx(rt,{}):n.jsxs("div",{children:[n.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Skills for this agent (",r.length,")"]}),n.jsxs("div",{className:"space-y-2",children:[r.map(g=>{const h=g.eligible&&!g.disabled&&!g.blockedByAllowlist;return n.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-surface-200 p-3",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[g.emoji?n.jsx("span",{className:"text-lg",children:g.emoji}):n.jsx(sc,{className:"h-4 w-4 text-surface-500"}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium",children:g.name}),g.description&&n.jsx("p",{className:"text-xs text-surface-400 line-clamp-1",children:g.description}),n.jsxs("p",{className:"text-[10px] text-surface-400 font-mono",children:[g.skillKey," ยท ",g.source]})]})]}),h?n.jsx("span",{className:"badge-green",children:"Enabled"}):g.disabled?n.jsx("span",{className:"badge-gray",children:"Disabled"}):g.blockedByAllowlist?n.jsx("span",{className:"rounded bg-amber-50 px-2 py-0.5 text-xs text-amber-600",children:"Blocked"}):n.jsx("span",{className:"badge-gray",children:"Ineligible"})]},g.skillKey)}),r.length===0&&n.jsx("p",{className:"py-8 text-center text-sm text-surface-400",children:"No skills data available"})]})]})}function e1(c){if(!c)return"";const u=Date.now()-c;return u<6e4?"just now":u<36e5?`${Math.floor(u/6e4)}m ago`:u<864e5?`${Math.floor(u/36e5)}h ago`:new Date(c).toLocaleDateString()}function t1(c){return c.derivedTitle||c.displayName||c.label||c.subject||c.key}function a1({sessionKey:c,onClose:u}){const{gateway:f,connected:r}=De(),[d,m]=b.useState([]),[y,g]=b.useState(!0),h=b.useRef(null);return b.useEffect(()=>{!f||!r||f.request("chat.history",{sessionKey:c,limit:100}).then(x=>{if(!Array.isArray(x==null?void 0:x.messages))return;const S=x.messages.map(j=>({role:String(j.role??"unknown"),text:fn(j.content??j.text??j.message??"")})).filter(j=>j.text&&(j.role==="user"||j.role==="assistant"));m(S)}).catch(()=>{}).finally(()=>g(!1))},[f,r,c]),b.useEffect(()=>{var x;(x=h.current)==null||x.scrollTo({top:h.current.scrollHeight})},[d]),n.jsxs("div",{className:"mt-3 rounded-lg border border-surface-200 bg-surface-50",children:[n.jsxs("div",{className:"flex items-center justify-between border-b border-surface-200 px-4 py-2",children:[n.jsxs("p",{className:"text-xs font-medium text-surface-600",children:["Chat History (",d.length," messages)"]}),n.jsx("button",{onClick:u,className:"text-xs text-surface-400 hover:text-surface-600 transition-colors",children:"Close"})]}),n.jsx("div",{ref:h,className:"max-h-[400px] overflow-y-auto p-4 space-y-2.5",children:y?n.jsx("div",{className:"py-8 text-center",children:n.jsx(We,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"})}):d.length===0?n.jsx("p",{className:"py-6 text-center text-xs text-surface-400",children:"No messages in this session"}):d.map((x,S)=>n.jsx("div",{className:Pe("max-w-[85%] rounded-lg px-3.5 py-2 text-sm whitespace-pre-wrap leading-relaxed",x.role==="user"?"ml-auto bg-primary-600 text-white":"bg-white text-surface-800 border border-surface-200"),children:x.text},S))})]})}function l1({agentId:c}){const{gateway:u,connected:f}=De(),[r,d]=b.useState([]),[m,y]=b.useState(!0),[g,h]=b.useState(null);return b.useEffect(()=>{!u||!f||u.request("sessions.list",{agentId:c}).then(x=>d(Array.isArray(x==null?void 0:x.sessions)?x.sessions:[])).catch(()=>{}).finally(()=>y(!1))},[u,f,c]),m?n.jsx(rt,{}):n.jsxs("div",{children:[n.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Active sessions for this agent (",r.length,")"]}),n.jsxs("div",{className:"space-y-2",children:[r.map(x=>n.jsxs("div",{children:[n.jsx("button",{onClick:()=>h(g===x.key?null:x.key),className:Pe("w-full rounded-lg border p-3.5 text-left transition-colors",g===x.key?"border-primary-300 bg-primary-50/30":"border-surface-200 hover:border-surface-300 hover:bg-surface-50"),children:n.jsxs("div",{className:"flex items-start justify-between gap-3",children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-surface-900 truncate",children:t1(x)}),x.lastMessagePreview&&n.jsx("p",{className:"mt-1 text-xs text-surface-500 line-clamp-2",children:x.lastMessagePreview}),n.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 text-[11px] text-surface-400",children:[x.channel&&n.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:x.channel}),x.kind&&x.kind!=="unknown"&&n.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:x.kind}),x.updatedAt&&n.jsx("span",{children:e1(x.updatedAt)})]})]}),n.jsx(ws,{className:Pe("mt-0.5 h-4 w-4 shrink-0 transition-colors",g===x.key?"text-primary-600":"text-surface-300")})]})}),g===x.key&&n.jsx(a1,{sessionKey:x.key,onClose:()=>h(null)})]},x.key)),r.length===0&&n.jsx("p",{className:"py-8 text-center text-sm text-surface-400",children:"No active sessions"})]})]})}function n1(){return n.jsxs("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-12 text-center",children:[n.jsx(kh,{className:"mx-auto h-8 w-8 text-surface-300"}),n.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"Usage statistics coming soon"})]})}function fn(c){if(!c)return"";if(typeof c=="string")return c;if(Array.isArray(c))return c.map(f=>{if(typeof f=="string")return f;if(f&&typeof f=="object"){const r=f;if(typeof r.text=="string")return r.text;if(typeof r.content=="string")return r.content}return""}).filter(Boolean).join("");const u=c;return typeof u.text=="string"?u.text:typeof u.content=="string"?u.content:Array.isArray(u.content)?fn(u.content):""}function s1({agentId:c}){const{gateway:u,connected:f}=De(),[r,d]=b.useState(""),[m,y]=b.useState([]),[g,h]=b.useState(!1),[x,S]=b.useState(""),j=`agent:${c}:operator-ui-test`,A=b.useRef(null),D=b.useRef(null),E=b.useRef("");b.useEffect(()=>{!u||!f||u.request("chat.history",{sessionKey:j,limit:50}).then(v=>{if(!Array.isArray(v==null?void 0:v.messages))return;const _=[];for(const z of v.messages){const L=z,W=L.role==="user"?"user":L.role==="assistant"?"assistant":null;if(!W)continue;const J=fn(L.content??L.text??L.message??"");J&&_.push({role:W,content:J})}_.length>0&&y(_)}).catch(()=>{})},[u,f,c]),b.useEffect(()=>u?u.on("chat",_=>{const z=_;if(!(!z.runId||z.runId!==A.current))if(z.state==="delta"){const L=fn(z.message);L&&(E.current+=L,S(E.current))}else if(z.state==="final"){const L=fn(z.message)||E.current;A.current=null,E.current="",S(""),h(!1),L&&y(W=>[...W,{role:"assistant",content:L}])}else z.state==="error"?(A.current=null,E.current="",S(""),h(!1),y(L=>[...L,{role:"error",content:z.errorMessage??"Agent error"}])):z.state==="aborted"&&(A.current=null,E.current="",S(""),h(!1),y(L=>[...L,{role:"system",content:"Run was aborted"}]))}):void 0,[u]),b.useEffect(()=>{var v;(v=D.current)==null||v.scrollTo({top:D.current.scrollHeight,behavior:"smooth"})},[m,x]);async function M(){if(!r.trim()||g||!u)return;const v=r.trim();d(""),y(z=>[...z,{role:"user",content:v}]),h(!0),E.current="",S("");const _=`op-chat-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;try{const z=await u.request("chat.send",{sessionKey:j,message:v,idempotencyKey:_});if((z==null?void 0:z.status)==="error"){h(!1),y(L=>[...L,{role:"error",content:z.summary??"Failed to start"}]);return}A.current=(z==null?void 0:z.runId)??_,setTimeout(()=>{A.current&&u.request("chat.history",{sessionKey:j,limit:5}).then(L=>{if(!A.current||!Array.isArray(L==null?void 0:L.messages))return;const W=L.messages[L.messages.length-1];if((W==null?void 0:W.role)==="assistant"){const J=fn(W.content??W.text??"");J&&(A.current=null,E.current="",S(""),h(!1),y(V=>[...V,{role:"assistant",content:J}]))}}).catch(()=>{})},15e3)}catch(z){h(!1),y(L=>[...L,{role:"error",content:z instanceof Error?z.message:"Failed"}])}}function C(){u&&(u.request("sessions.reset",{key:j}).catch(()=>{}),y([]),S(""))}return n.jsxs("div",{className:"flex h-[500px] flex-col rounded-xl border border-surface-200",children:[n.jsxs("div",{className:"flex items-center justify-between border-b border-surface-100 px-4 py-2",children:[n.jsx("p",{className:"text-xs text-surface-400 font-mono",children:j}),n.jsx("button",{onClick:C,className:"text-xs text-surface-400 hover:text-red-600 transition-colors",children:"Clear history"})]}),n.jsxs("div",{ref:D,className:"flex-1 overflow-y-auto p-4 space-y-3",children:[m.length===0&&!x&&n.jsx("p",{className:"py-12 text-center text-sm text-surface-400",children:"Send a message to test this agent"}),m.map((v,_)=>n.jsx("div",{className:Pe("max-w-[80%] rounded-lg px-4 py-2.5 text-sm whitespace-pre-wrap",v.role==="user"?"ml-auto bg-primary-600 text-white":v.role==="error"?"bg-red-50 text-red-700":v.role==="system"?"mx-auto bg-surface-50 text-surface-500 text-center text-xs":"bg-surface-100 text-surface-900"),children:v.content},_)),x&&n.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:[x,n.jsx("span",{className:"inline-block w-1.5 h-4 bg-primary-500 animate-pulse ml-0.5 align-text-bottom"})]}),g&&!x&&n.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:[n.jsx(We,{className:"h-3.5 w-3.5 animate-spin"}),"Thinking..."]})]}),n.jsxs("div",{className:"border-t border-surface-200 p-3 flex gap-2",children:[n.jsx("input",{className:"input flex-1",placeholder:"Type a message...",value:r,onChange:v=>d(v.target.value),onKeyDown:v=>v.key==="Enter"&&!v.shiftKey&&M(),disabled:g}),n.jsx("button",{onClick:M,disabled:g||!r.trim(),className:"btn-primary",children:g?n.jsx(We,{className:"h-4 w-4 animate-spin"}):"Send"})]})]})}function i1(c,u){const f=`/agents/${u}`,r=c.startsWith(f)?c.slice(f.length).replace(/^\//,""):"";return r&&Wh.includes(r)?r:"settings"}function c1({tab:c,agentId:u}){switch(c){case"settings":return n.jsx($g,{agentId:u});case"channels":return n.jsx(Wg,{agentId:u});case"groups":return n.jsx(Fg,{agentId:u});case"tools":return n.jsx(Ig,{agentId:u});case"skills":return n.jsx(Pg,{agentId:u});case"sessions":return n.jsx(l1,{agentId:u});case"usage":return n.jsx(n1,{});case"chat":return n.jsx(s1,{agentId:u})}}function dh(){var M;const{agentId:c}=py(),u=sa(),f=lc(),{gateway:r,connected:d}=De(),[m,y]=b.useState(null),[g,h]=b.useState(!0),[x,S]=b.useState(!1),j=i1(u.pathname,c??""),A=b.useCallback(()=>{!r||!d||r.request("agents.list",{}).then(C=>{const _=(Array.isArray(C==null?void 0:C.agents)?C.agents:[]).find(z=>z.id===c);y(_??null)}).catch(()=>{}).finally(()=>h(!1))},[r,d,c]);if(b.useEffect(()=>{A()},[A]),g)return n.jsx(rt,{});if(!m)return n.jsxs("div",{className:"flex flex-col items-center py-20",children:[n.jsx(Cs,{className:"h-8 w-8 text-surface-300"}),n.jsxs("p",{className:"mt-2 text-sm text-surface-500",children:['Agent "',c,'" not found']})]});async function D(){if(!(!r||!confirm(`Delete agent "${c}"? This cannot be undone.`))){S(!0);try{await r.request("agents.delete",{id:c}),f("/agents",{replace:!0})}catch{S(!1)}}}function E(C){const v=`/agents/${c}`;f(C==="settings"?v:`${v}/${C}`)}return n.jsxs("div",{children:[n.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary-100",children:n.jsx(vl,{className:"h-6 w-6 text-primary-600"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-xl font-semibold text-surface-900",children:((M=m.identity)==null?void 0:M.name)||m.name||m.id}),n.jsxs("p",{className:"text-sm text-surface-400",children:["ID: ",n.jsx("code",{className:"font-mono",children:m.id}),m.model&&n.jsxs(n.Fragment,{children:[" ยท Model: ",m.model]})]})]})]}),n.jsxs("button",{onClick:D,disabled:x,className:"btn-ghost text-red-600 hover:text-red-700 hover:bg-red-50",children:[n.jsx(na,{className:"h-4 w-4"}),"Delete"]})]}),n.jsx("div",{className:"mb-6 flex gap-1 overflow-x-auto border-b border-surface-200",children:Wh.map(C=>{const{label:v,icon:_}=Kg[C],z=C===j;return n.jsxs("button",{onClick:()=>E(C),className:Pe("flex items-center gap-2 whitespace-nowrap border-b-2 px-4 py-2.5 text-sm font-medium transition-colors",z?"border-primary-600 text-primary-600":"border-transparent text-surface-500 hover:text-surface-700"),children:[n.jsx(_,{className:"h-4 w-4"}),v]},C)})}),n.jsx(c1,{tab:j,agentId:c})]})}function Vr({icon:c,title:u,description:f,action:r}){return n.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border-2 border-dashed border-surface-200 py-16",children:[n.jsx("div",{className:"mb-4 text-surface-300",children:c}),n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:u}),n.jsx("p",{className:"mt-1 text-sm text-surface-500",children:f}),r&&n.jsx("div",{className:"mt-4",children:r})]})}function u1(){const{gateway:c,connected:u}=De(),[f,r]=b.useState([]),[d,m]=b.useState(""),[y,g]=b.useState(!0);return b.useEffect(()=>{!c||!u||c.request("agents.list",{}).then(h=>{r(Array.isArray(h==null?void 0:h.agents)?h.agents:[]),m((h==null?void 0:h.defaultId)??"")}).catch(()=>{}).finally(()=>g(!1))},[c,u]),y?n.jsx(rt,{}):n.jsxs("div",{children:[n.jsx(ia,{title:"Agents",description:"Create and manage your AI agents",actions:n.jsxs(ta,{to:"/agents/new",className:"btn-primary",children:[n.jsx(jt,{className:"h-4 w-4"}),"New Agent"]})}),f.length===0?n.jsx(Vr,{icon:n.jsx(vl,{className:"h-12 w-12"}),title:"No agents yet",description:"Create your first AI agent to get started",action:n.jsxs(ta,{to:"/agents/new",className:"btn-primary",children:[n.jsx(jt,{className:"h-4 w-4"}),"Create Agent"]})}):n.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:f.map(h=>{var x;return n.jsxs(ta,{to:`/agents/${h.id}`,className:"card group flex flex-col transition-all hover:border-primary-200 hover:shadow-sm",children:[n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-primary-100",children:n.jsx(vl,{className:"h-5 w-5 text-primary-600"})}),n.jsx(la,{className:"h-4 w-4 text-surface-300 transition-colors group-hover:text-primary-500"})]}),n.jsxs("div",{className:"mt-3 flex-1",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:((x=h.identity)==null?void 0:x.name)||h.name||h.id}),h.id===d&&n.jsx(_g,{className:"h-3.5 w-3.5 fill-amber-400 text-amber-400"})]}),n.jsxs("p",{className:"mt-0.5 text-xs text-surface-400",children:["ID: ",n.jsx("code",{className:"font-mono",children:h.id})]})]}),h.model&&n.jsx("div",{className:"mt-3 border-t border-surface-100 pt-3",children:n.jsxs("p",{className:"text-xs text-surface-500",children:["Model: ",n.jsx("span",{className:"font-medium text-surface-700",children:h.model})]})})]},h.id)})})]})}function gs(c){if(c)return Array.isArray(c.type)?c.type.filter(f=>f!=="null")[0]??c.type[0]:c.type}function Ih(c){if(!c)return"";if(c.default!==void 0)return c.default;switch(gs(c)){case"object":return{};case"array":return[];case"boolean":return!1;case"number":case"integer":return 0;case"string":return"";default:return""}}function r1(c){return c.filter(u=>typeof u=="string").join(".")}function mh(c,u){const f=r1(c),r=u[f];if(r)return r;const d=f.split(".");for(const[m,y]of Object.entries(u)){if(!m.includes("*"))continue;const g=m.split(".");if(g.length!==d.length)continue;let h=!0;for(let x=0;x<d.length;x++)if(g[x]!=="*"&&g[x]!==d[x]){h=!1;break}if(h)return y}}function o1(c){return c.replace(/_/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\s+/g," ").replace(/^./,u=>u.toUpperCase())}function f1(c){if(c.enum&&c.enum.length>0)return c.enum.map(f=>String(f??""));const u=c.anyOf??c.oneOf;if(u){const f=[];for(const r of u)r.const!==void 0?f.push(String(r.const)):r.enum&&r.enum.length===1&&f.push(String(r.enum[0]));if(f.length>0&&f.length===u.length)return f}return null}function gl({label:c,help:u,children:f,indent:r}){return n.jsxs("div",{className:Pe("mb-3",r&&"ml-4"),children:[n.jsx("label",{className:"block text-xs font-medium text-surface-700 mb-1",children:c}),f,u&&n.jsx("p",{className:"mt-0.5 text-[10px] text-surface-400",children:u})]})}function d1({value:c,onChange:u,placeholder:f}){const[r,d]=b.useState(!1);return n.jsxs("div",{className:"relative",children:[n.jsx("input",{className:"input text-sm font-mono !pr-10",type:r?"text":"password",value:c,onChange:m=>u(m.target.value),placeholder:f}),n.jsx("button",{type:"button",onClick:()=>d(!r),className:"absolute right-2 top-1/2 -translate-y-1/2 text-surface-400 hover:text-surface-600",children:r?n.jsx(Gr,{className:"h-4 w-4"}):n.jsx(Xr,{className:"h-4 w-4"})})]})}function m1({value:c,onChange:u,itemPlaceholder:f}){function r(){u([...c,""])}function d(y){u(c.filter((g,h)=>h!==y))}function m(y,g){const h=[...c];h[y]=g,u(h)}return n.jsxs("div",{className:"space-y-1.5",children:[c.map((y,g)=>n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("input",{className:"input text-sm flex-1",value:y,onChange:h=>m(g,h.target.value),placeholder:f??`Item ${g+1}`}),n.jsx("button",{onClick:()=>d(g),className:"text-surface-400 hover:text-red-500 p-1",children:n.jsx(na,{className:"h-3.5 w-3.5"})})]},g)),n.jsxs("button",{onClick:r,className:"flex items-center gap-1 text-xs text-primary-600 hover:text-primary-700",children:[n.jsx(jt,{className:"h-3 w-3"}),"Add"]})]})}function h1({value:c,valueSchema:u,path:f,hints:r,onChange:d}){const[m,y]=b.useState("");function g(){const j=m.trim();!j||j in c||(d({...c,[j]:Ih(u)}),y(""))}function h(j){const A={...c};delete A[j],d(A)}function x(j,A){d({...c,[j]:A})}const S=gs(u);return n.jsxs("div",{className:"space-y-2",children:[Object.entries(c).map(([j,A])=>n.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-100 p-3",children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsx("span",{className:"text-xs font-mono font-medium text-surface-700",children:j}),n.jsx("button",{onClick:()=>h(j),className:"text-surface-400 hover:text-red-500 p-0.5",children:n.jsx(na,{className:"h-3.5 w-3.5"})})]}),S==="object"?n.jsx(Ss,{schema:u,value:A,path:[...f,j],hints:r,showLabel:!1,onChange:D=>x(j,D)}):n.jsx(Ss,{schema:u,value:A,path:[...f,j],hints:r,showLabel:!1,onChange:D=>x(j,D)})]},j)),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("input",{className:"input text-xs flex-1",value:m,onChange:j=>y(j.target.value),placeholder:"New key...",onKeyDown:j=>j.key==="Enter"&&g()}),n.jsxs("button",{onClick:g,disabled:!m.trim(),className:"flex items-center gap-1 text-xs text-primary-600 hover:text-primary-700 disabled:opacity-40",children:[n.jsx(jt,{className:"h-3 w-3"}),"Add"]})]})]})}function x1({label:c,help:u,children:f,defaultOpen:r}){const[d,m]=b.useState(r??!1);return n.jsxs("div",{className:"rounded-lg border border-surface-200 mb-3",children:[n.jsxs("button",{onClick:()=>m(!d),className:"flex w-full items-center justify-between px-3 py-2.5 text-left",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-xs font-semibold text-surface-800",children:c}),u&&n.jsx("p",{className:"text-[10px] text-surface-400 mt-0.5",children:u})]}),d?n.jsx(xn,{className:"h-4 w-4 text-surface-400"}):n.jsx(la,{className:"h-4 w-4 text-surface-400"})]}),d&&n.jsx("div",{className:"border-t border-surface-100 px-3 py-3",children:f})]})}function Ss({schema:c,value:u,path:f,hints:r,showLabel:d,onChange:m}){const y=mh(f,r),g=(y==null?void 0:y.label)??c.title??o1(String(f.at(-1)??"")),h=(y==null?void 0:y.help)??c.description,x=(y==null?void 0:y.sensitive)??!1,S=y==null?void 0:y.placeholder,j=gs(c),A=f1(c);if(A){const M=u!=null?String(u):"",C=n.jsxs("select",{className:"input text-sm",value:M,onChange:v=>m(v.target.value||void 0),children:[n.jsx("option",{value:"",children:"โ€”"}),A.map(v=>n.jsx("option",{value:v,children:v},v))]});return d!==!1?n.jsx(gl,{label:g,help:h,children:C}):C}if(j==="string"){const M=u!=null?String(u):"",C=x?n.jsx(d1,{value:M,onChange:v=>m(v||void 0),placeholder:S}):n.jsx("input",{className:"input text-sm",value:M,onChange:v=>m(v.target.value||void 0),placeholder:S});return d!==!1?n.jsx(gl,{label:g,help:h,children:C}):C}if(j==="number"||j==="integer"){const M=u!=null?Number(u):"",C=n.jsx("input",{className:"input text-sm",type:"number",value:M,onChange:v=>{const _=v.target.value;m(_===""?void 0:Number(_))},min:c.minimum,max:c.maximum,placeholder:S});return d!==!1?n.jsx(gl,{label:g,help:h,children:C}):C}if(j==="boolean"){const M=!!u,C=n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("input",{type:"checkbox",checked:M,onChange:v=>m(v.target.checked),className:"rounded"}),d!==!1&&n.jsx("span",{className:"text-xs text-surface-700",children:g})]});return d!==!1?n.jsxs("div",{className:"mb-3",children:[C,h&&n.jsx("p",{className:"mt-0.5 ml-6 text-[10px] text-surface-400",children:h})]}):C}if(j==="array"){const M=Array.isArray(c.items)?c.items[0]:c.items,C=Array.isArray(u)?u:[],v=M?gs(M):"string";if(v==="string"||v==="number"||v==="integer"){const z=n.jsx(m1,{value:C.map(L=>String(L??"")),onChange:L=>m(L.filter(Boolean)),itemPlaceholder:S});return d!==!1?n.jsx(gl,{label:g,help:h,children:z}):z}if(M&&v==="object"){const z=n.jsxs("div",{className:"space-y-2",children:[C.map((L,W)=>n.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-100 p-3",children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsxs("span",{className:"text-xs font-mono text-surface-500",children:["#",W+1]}),n.jsx("button",{onClick:()=>m(C.filter((J,V)=>V!==W)),className:"text-surface-400 hover:text-red-500 p-0.5",children:n.jsx(na,{className:"h-3.5 w-3.5"})})]}),n.jsx(Ss,{schema:M,value:L,path:[...f,W],hints:r,showLabel:!0,onChange:J=>{const V=[...C];V[W]=J,m(V)}})]},W)),n.jsxs("button",{onClick:()=>m([...C,Ih(M)]),className:"flex items-center gap-1 text-xs text-primary-600 hover:text-primary-700",children:[n.jsx(jt,{className:"h-3 w-3"}),"Add"]})]});return d!==!1?n.jsx(gl,{label:g,help:h,children:z}):z}const _=n.jsx("textarea",{className:"input text-xs font-mono min-h-[60px]",value:JSON.stringify(C,null,2),onChange:z=>{try{m(JSON.parse(z.target.value))}catch{}}});return d!==!1?n.jsx(gl,{label:g,help:h,children:_}):_}if(j==="object"){const M=u&&typeof u=="object"&&!Array.isArray(u)?u:{},C=c.properties??{},v=c.additionalProperties,_=Object.keys(C),z=f.length>2,L=n.jsxs(n.Fragment,{children:[_.map(W=>{const J=C[W];gs(J);const V=mh([...f,W],r);return V!=null&&V.advanced?null:n.jsx(Ss,{schema:J,value:M[W],path:[...f,W],hints:r,showLabel:!0,onChange:B=>{const Z={...M};B===void 0||B===""||B===null?delete Z[W]:Z[W]=B,m(Z)}},W)}),v&&typeof v=="object"&&n.jsx(h1,{value:Object.fromEntries(Object.entries(M).filter(([W])=>!_.includes(W))),valueSchema:v,path:f,hints:r,onChange:W=>{const J={};for(const V of _)M[V]!==void 0&&(J[V]=M[V]);m({...J,...W})}})]});return z&&d!==!1?n.jsx(x1,{label:g,help:h,defaultOpen:!1,children:L}):d!==!1&&f.length>1?n.jsxs("div",{className:"mb-3",children:[n.jsx("p",{className:"text-xs font-semibold text-surface-700 mb-2",children:g}),h&&n.jsx("p",{className:"text-[10px] text-surface-400 mb-2",children:h}),n.jsx("div",{className:"ml-1 border-l-2 border-surface-100 pl-3",children:L})]}):n.jsx(n.Fragment,{children:L})}const D=u!=null?JSON.stringify(u,null,2):"",E=n.jsx("textarea",{className:"input text-xs font-mono min-h-[60px]",value:D,onChange:M=>{try{m(JSON.parse(M.target.value))}catch{m(M.target.value||void 0)}},placeholder:S});return d!==!1?n.jsx(gl,{label:g,help:h,children:E}):E}function p1({schema:c,value:u,path:f,hints:r,onChange:d}){return n.jsx(Ss,{schema:c,value:u,path:f,hints:r,showLabel:!1,onChange:m=>d(m??{})})}const y1=/^(appId|appSecret|app_?id|app_?secret|token|bot_?[Tt]oken|api_?[Kk]ey|encrypt_?[Kk]ey|verification_?[Tt]oken|client_?[Ii]d|client_?[Ss]ecret|signing_?[Ss]ecret|secret|password|credential)/,g1=new Set(["dmPolicy","groupPolicy","allowFrom","groupAllowFrom","requireMention"]),v1=new Set(["enabled","domain"]);function b1(c){const u=Object.keys(c.properties??{}),f=[],r=[],d=[],m=[];for(const y of u)y1.test(y)?f.push(y):v1.has(y)?r.push(y):g1.has(y)?d.push(y):m.push(y);return{credential:f,platform:r,access:d,advanced:m}}const rn={appId:"ๅบ”็”จ ID (App ID)",appSecret:"ๅบ”็”จๅฏ†้’ฅ (App Secret)",domain:"ๅนณๅฐ",enabled:"ๅฏ็”จๆธ ้“",token:"Token",botToken:"Bot Token",apiKey:"API Key",encryptKey:"ๅŠ ๅฏ†ๅฏ†้’ฅ (Encrypt Key)",verificationToken:"้ชŒ่ฏไปค็‰Œ (Verification Token)",clientId:"Client ID",clientSecret:"Client Secret",signingSecret:"Signing Secret",secret:"Secret",dmPolicy:"็ง่Šๆƒ้™",groupPolicy:"็พค็ป„ๆƒ้™",allowFrom:"็ง่Š็™ฝๅๅ•",groupAllowFrom:"็พค็ป„ๆˆๅ‘˜็™ฝๅๅ•",requireMention:"้œ€่ฆ @ๆๅŠ"},on={appId:"ไปŽๅผ€ๆ”พๅนณๅฐ โ†’ ๅบ”็”จ่ฏฆๆƒ…้กตๅคๅˆถ",appSecret:"ไปŽๅผ€ๆ”พๅนณๅฐ โ†’ ๅ‡ญ่ฏไธŽๅŸบ็ก€ไฟกๆฏๅคๅˆถ",token:"ไปŽๅนณๅฐ่Žทๅ– Bot Token",botToken:"ไปŽ BotFather ่Žทๅ–",dmPolicy:"ๆŽงๅˆถ่ฐๅฏไปฅ็ง่Š bot",groupPolicy:"ๆŽงๅˆถ bot ๅœจๅ“ชไบ›็พค็ป„ไธญๅ“ๅบ”",allowFrom:"ๅ…่ฎธ็ง่Š bot ็š„็”จๆˆท ID",groupAllowFrom:"ๅ…่ฎธๅœจ็พค็ป„ไธญ่งฆๅ‘ bot ็š„็”จๆˆท ID",requireMention:"็พค่Šไธญ้œ€่ฆ @ๆœบๅ™จไบบ ๆ‰ไผšๅ“ๅบ”"},j1={feishu:"้ฃžไนฆ",lark:"Lark๏ผˆๅ›ฝ้™…็‰ˆ๏ผ‰"},N1=[["open","ๆ‰€ๆœ‰ไบบๅฏ็ง่Š"],["pairing","้œ€่ฆ้…ๅฏน้ชŒ่ฏ"],["allowlist","ไป…็™ฝๅๅ•็”จๆˆท"],["disabled","็ฆๆญข็ง่Š"]],S1=[["open","ๆ‰€ๆœ‰็พค็ป„"],["allowlist","ไป…็™ฝๅๅ•็พค็ป„"],["disabled","็ฆๆญข็พค็ป„ๆถˆๆฏ"]];function A1(c){return c.replace(/_/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\s+/g," ").replace(/^./,u=>u.toUpperCase())}function E1(c){return/secret|password|token|key$/i.test(c)&&!/^(app)?_?id$/i.test(c)}function C1(c,u){var d;if(!((d=c==null?void 0:c.schema)!=null&&d.properties))return null;const f=c.schema.properties.channels;if(!f||typeof f!="object")return null;const r=f.properties;return r?r[u]??null:null}function w1(c,u){const r=(c.channels??{})[u];return r&&typeof r=="object"&&!Array.isArray(r)?r:{}}function T1(c){if(!c)return null;if(c.enum&&c.enum.length>0)return c.enum.map(f=>String(f??""));const u=c.anyOf??c.oneOf;if(u){const f=[];for(const r of u)r.enum?f.push(...r.enum.map(d=>String(d??""))):r.const!==void 0&&f.push(String(r.const));if(f.length>0)return[...new Set(f)]}return null}function hh(c){var u;return((u=c.identity)==null?void 0:u.name)||c.name||c.id}function M1({value:c,onChange:u,placeholder:f}){const[r,d]=b.useState(!1);return n.jsxs("div",{className:"relative",children:[n.jsx("input",{className:"input text-sm font-mono !pr-10",type:r?"text":"password",value:c,onChange:m=>u(m.target.value),placeholder:f??"โ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ข"}),n.jsx("button",{type:"button",onClick:()=>d(!r),className:"absolute right-2 top-1/2 -translate-y-1/2 text-surface-400 hover:text-surface-600",children:r?n.jsx(Gr,{className:"h-4 w-4"}):n.jsx(Xr,{className:"h-4 w-4"})})]})}function Pa({label:c,help:u,children:f}){return n.jsxs("div",{className:"mb-4",children:[n.jsx("label",{className:"block text-sm font-medium text-surface-700 mb-1.5",children:c}),f,u&&n.jsx("p",{className:"mt-1 text-xs text-surface-400",children:u})]})}function Mr({title:c,icon:u,badge:f,children:r}){return n.jsxs("div",{className:"rounded-xl border border-surface-200 bg-white",children:[n.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-surface-100",children:[n.jsx(u,{className:"h-4 w-4 text-primary-500"}),n.jsx("h3",{className:"text-sm font-semibold text-surface-800",children:c}),f]}),n.jsx("div",{className:"px-4 py-4",children:r})]})}function xh({value:c,onChange:u,placeholder:f}){function r(){u([...c,""])}function d(y){u(c.filter((g,h)=>h!==y))}function m(y,g){const h=[...c];h[y]=g,u(h)}return n.jsxs("div",{className:"space-y-1.5",children:[c.map((y,g)=>n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("input",{className:"input text-sm font-mono flex-1",value:y,onChange:h=>m(g,h.target.value),placeholder:f??"ID"}),n.jsx("button",{onClick:()=>d(g),className:"text-surface-400 hover:text-red-500 p-1",children:n.jsx(na,{className:"h-3.5 w-3.5"})})]},g)),n.jsxs("button",{onClick:r,className:"flex items-center gap-1 text-xs text-primary-600 hover:text-primary-700",children:[n.jsx(jt,{className:"h-3 w-3"}),"ๆทปๅŠ "]})]})}function z1({channelId:c,onSaved:u}){var Nl,Sl;const{gateway:f,connected:r}=De(),[d,m]=b.useState(null),[y,g]=b.useState({}),[h,x]=b.useState({}),[S,j]=b.useState({}),[A,D]=b.useState([]),[E,M]=b.useState([]),[C,v]=b.useState([]),[_,z]=b.useState(null),[L,W]=b.useState(),[J,V]=b.useState(!0),[B,Z]=b.useState(!1),[I,ne]=b.useState("idle"),[Le,Ve]=b.useState(""),[at,we]=b.useState(!1),[k,F]=b.useState(""),[se,be]=b.useState(""),[Se,T]=b.useState(!1),X=b.useCallback(()=>{!f||!r||(V(!0),Promise.all([f.request("config.schema",{}),f.request("config.get"),f.request("agents.list"),f.request("channels.status",{probe:!0})]).then(([K,ye,de,Be])=>{var bn;m(C1(K,c)),g((K==null?void 0:K.uiHints)??{});const mt=(ye==null?void 0:ye.config)??{},Vt=w1(mt,c);x(Vt),j(Vt),W(ye==null?void 0:ye.hash);const ke=Array.isArray(mt.bindings)?mt.bindings:[];D(ke),M(ke),v((de==null?void 0:de.agents)??[]);const Nt=(bn=Be==null?void 0:Be.channels)==null?void 0:bn[c];if(Nt!=null&&Nt.accounts){const cc=Object.values(Nt.accounts)[0];z(cc??null)}else z(null)}).catch(()=>{}).finally(()=>V(!1)))},[f,r,c]);b.useEffect(()=>{X()},[X]);const $=d?b1(d):{credential:[],platform:[],access:[],advanced:[]},P=[...$.platform,...$.credential],ce=A.filter(K=>{var ye;return((ye=K.match.channel)==null?void 0:ye.toLowerCase())===c.toLowerCase()&&K.match.peer}),fe=JSON.stringify(h)!==JSON.stringify(S),ve=JSON.stringify(A)!==JSON.stringify(E),Fe=fe||ve,Oe=(_==null?void 0:_.connected)??!1,Ca=(Nl=_==null?void 0:_.probe)==null?void 0:Nl.botName;function dt(K,ye){x(de=>{const Be={...de};return ye===void 0||ye===""||ye===null?delete Be[K]:Be[K]=ye,Be})}async function yn(){if(f){Z(!0),ne("idle"),Ve("");try{const K={};fe&&(K.channels={[c]:h}),ve&&(K.bindings=A);const ye={raw:JSON.stringify(K)};L&&(ye.baseHash=L),await f.request("config.patch",ye),j(h),M(A),ne("saved"),setTimeout(()=>ne("idle"),3e3),X(),u==null||u()}catch(K){ne("error"),Ve(K instanceof Error?K.message:"ไฟๅญ˜ๅคฑ่ดฅ")}Z(!1)}}function Ts(){x(S),D(E),ne("idle")}function Wt(){const K=k.trim();!K||!se||A.some(de=>{var Be,mt;return((Be=de.match.channel)==null?void 0:Be.toLowerCase())===c.toLowerCase()&&((mt=de.match.peer)==null?void 0:mt.id)===K})||(D([...A,{agentId:se,match:{channel:c,peer:{kind:"group",id:K}}}]),F(""),be(""),we(!1))}function gn(K){D(A.filter(ye=>ye!==K))}function vn(K,ye){D(A.map(de=>de===K?{...de,agentId:ye}:de))}if(J)return n.jsxs("div",{className:"py-8 text-center",children:[n.jsx(We,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"}),n.jsx("p",{className:"mt-2 text-xs text-surface-400",children:"ๅŠ ่ฝฝ้…็ฝฎ..."})]});if(!d)return n.jsxs("div",{className:"py-6 text-center text-xs text-surface-400",children:[n.jsx(bl,{className:"mx-auto h-5 w-5 text-surface-300 mb-2"}),"ๆญคๆธ ้“ๆš‚ๆ— ้…็ฝฎ้€‰้กน"]});const Ms={};for(const K of $.advanced)(Sl=d.properties)!=null&&Sl[K]&&(Ms[K]=d.properties[K]);const zs={type:"object",properties:Ms},jl={};for(const K of $.advanced)h[K]!==void 0&&(jl[K]=h[K]);return n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:`flex items-center gap-3 rounded-xl px-4 py-3 ${Oe?"bg-emerald-50 border border-emerald-200":"bg-surface-50 border border-surface-200"}`,children:[n.jsx("div",{className:`h-2.5 w-2.5 rounded-full shrink-0 ${Oe?"bg-emerald-500 animate-pulse":"bg-surface-300"}`}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-surface-800",children:c.charAt(0).toUpperCase()+c.slice(1)}),Oe&&Ca&&n.jsxs("p",{className:"text-xs text-surface-500 truncate",children:["Bot: ",Ca]})]}),n.jsx("span",{className:`text-xs font-medium px-2.5 py-0.5 rounded-full ${Oe?"bg-emerald-100 text-emerald-700":"bg-surface-200 text-surface-500"}`,children:Oe?"ๅทฒ่ฟžๆŽฅ":"ๆœช่ฟžๆŽฅ"})]}),n.jsxs(Mr,{title:"่ฟžๆŽฅๅ‡ญๆฎ",icon:Qr,children:[P.map(K=>{var Vt;const ye=(Vt=d.properties)==null?void 0:Vt[K];if(!ye)return null;const de=rn[K]??A1(K),Be=on[K],mt=E1(K);if(K==="enabled")return n.jsxs("div",{className:"mb-4 flex items-center gap-3",children:[n.jsx("input",{type:"checkbox",checked:h[K]!==!1,onChange:ke=>dt(K,ke.target.checked),className:"rounded"}),n.jsx("span",{className:"text-sm text-surface-700",children:de})]},K);if(K==="domain"){const ke=T1(ye);if(ke)return n.jsx(Pa,{label:de,help:Be,children:n.jsxs("select",{className:"input text-sm",value:h[K]!=null?String(h[K]):"",onChange:Nt=>dt(K,Nt.target.value||void 0),children:[n.jsx("option",{value:"",children:"โ€” ้€‰ๆ‹ฉ โ€”"}),ke.map(Nt=>n.jsx("option",{value:Nt,children:j1[Nt]??Nt},Nt))]})},K)}return n.jsx(Pa,{label:de,help:Be,children:mt?n.jsx(M1,{value:h[K]!=null?String(h[K]):"",onChange:ke=>dt(K,ke||void 0)}):n.jsx("input",{className:"input text-sm",value:h[K]!=null?String(h[K]):"",onChange:ke=>dt(K,ke.target.value||void 0),placeholder:`่พ“ๅ…ฅ ${de}`})},K)}),P.length===0&&n.jsx("p",{className:"text-xs text-surface-400",children:"ๆญคๆธ ้“ๆ— ้œ€ๅ‡ญๆฎ้…็ฝฎ"})]}),n.jsx(Mr,{title:"็พค็ป„็ฎก็†",icon:Ns,badge:ce.length>0?n.jsx("span",{className:"text-xs bg-primary-100 text-primary-700 px-2 py-0.5 rounded-full",children:ce.length}):void 0,children:ce.length===0&&!at?n.jsxs("div",{className:"text-center py-6",children:[n.jsx(Ns,{className:"mx-auto h-8 w-8 text-surface-200 mb-2"}),n.jsx("p",{className:"text-sm text-surface-400 mb-3",children:"่ฟ˜ๆฒกๆœ‰็ป‘ๅฎšไปปไฝ•็พค็ป„"}),n.jsxs("button",{onClick:()=>we(!0),className:"btn-primary !text-sm",children:[n.jsx(jt,{className:"h-4 w-4"}),"ๆทปๅŠ ็พค็ป„"]})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"space-y-2 mb-3",children:ce.map((K,ye)=>{var de,Be,mt,Vt;return n.jsxs("div",{className:"flex items-center gap-3 rounded-lg bg-surface-50 border border-surface-100 px-3 py-2.5",children:[n.jsx(Yh,{className:"h-4 w-4 text-surface-400 shrink-0"}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("p",{className:"text-sm font-mono text-surface-700 truncate",children:((de=K.match.peer)==null?void 0:de.id)??"โ€”"}),n.jsx("p",{className:"text-[10px] text-surface-400",children:((Be=K.match.peer)==null?void 0:Be.kind)==="group"?"็พค็ป„":((mt=K.match.peer)==null?void 0:mt.kind)==="direct"?"็ง่Š":(Vt=K.match.peer)==null?void 0:Vt.kind})]}),n.jsx("span",{className:"text-xs text-surface-300 shrink-0",children:"โ†’"}),n.jsx("select",{className:"input !text-xs !py-1 !w-auto min-w-[120px]",value:K.agentId,onChange:ke=>vn(K,ke.target.value),children:C.map(ke=>n.jsx("option",{value:ke.id,children:hh(ke)},ke.id))}),n.jsx("button",{onClick:()=>gn(K),className:"text-surface-400 hover:text-red-500 p-1",title:"่งฃ็ป‘",children:n.jsx(na,{className:"h-3.5 w-3.5"})})]},ye)})}),at?n.jsxs("div",{className:"rounded-lg border-2 border-dashed border-primary-200 bg-primary-50/30 p-4",children:[n.jsx("p",{className:"text-sm font-medium text-surface-700 mb-3",children:"ๆทปๅŠ ็พค็ป„"}),n.jsxs("div",{className:"space-y-3",children:[n.jsx(Pa,{label:"็พค็ป„ ID",help:"ๅœจ็พค่ฎพ็ฝฎ โ†’ ็พคไฟกๆฏไธญๅคๅˆถ็พคๅท",children:n.jsx("input",{className:"input text-sm font-mono",value:k,onChange:K=>F(K.target.value),placeholder:"ไพ‹ๅฆ‚: oc_xxxxxxxxxxxxx",onKeyDown:K=>K.key==="Enter"&&Wt()})}),n.jsx(Pa,{label:"็ป‘ๅฎš Agent",children:n.jsxs("select",{className:"input text-sm",value:se,onChange:K=>be(K.target.value),children:[n.jsx("option",{value:"",children:"โ€” ้€‰ๆ‹ฉ Agent โ€”"}),C.map(K=>n.jsx("option",{value:K.id,children:hh(K)},K.id))]})}),n.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[n.jsxs("button",{onClick:Wt,disabled:!k.trim()||!se,className:"btn-primary !text-xs",children:[n.jsx(jt,{className:"h-3.5 w-3.5"}),"็กฎ่ฎค็ป‘ๅฎš"]}),n.jsx("button",{onClick:()=>{we(!1),F(""),be("")},className:"btn-secondary !text-xs",children:"ๅ–ๆถˆ"})]})]})]}):n.jsxs("button",{onClick:()=>we(!0),className:"flex items-center gap-1.5 text-xs text-primary-600 hover:text-primary-700",children:[n.jsx(jt,{className:"h-3.5 w-3.5"}),"ๆทปๅŠ ็พค็ป„"]})]})}),$.access.length>0&&n.jsxs(Mr,{title:"่ฎฟ้—ฎๆŽงๅˆถ",icon:Og,children:[$.access.includes("dmPolicy")&&n.jsxs(Pa,{label:rn.dmPolicy,help:on.dmPolicy,children:[n.jsxs("select",{className:"input text-sm",value:h.dmPolicy!=null?String(h.dmPolicy):"",onChange:K=>dt("dmPolicy",K.target.value||void 0),children:[n.jsx("option",{value:"",children:"โ€” ้ป˜่ฎค โ€”"}),N1.map(([K,ye])=>n.jsx("option",{value:K,children:ye},K))]}),h.dmPolicy==="pairing"&&n.jsxs("div",{className:"mt-2 flex items-start gap-2 rounded-lg bg-amber-50 border border-amber-200 px-3 py-2",children:[n.jsx(Ng,{className:"h-4 w-4 text-amber-500 shrink-0 mt-0.5"}),n.jsxs("p",{className:"text-xs text-amber-700",children:["้…ๅฏนๆจกๅผ๏ผšๆ–ฐ็”จๆˆท็ง่Š bot ไผšๆ”ถๅˆฐ้…ๅฏน็ ใ€‚ๅœจๅ‘ฝไปค่กŒๆ‰ง่กŒ"," ",n.jsx("code",{className:"bg-amber-100 px-1 rounded text-[11px]",children:"openclaw pairing approve <code>"})," ","ๆฅๆ‰นๅ‡†ใ€‚ๆ‰นๅ‡†ๅŽ่ฏฅ็”จๆˆทๅฐ†่ขซ่‡ชๅŠจๅŠ ๅ…ฅ็™ฝๅๅ•ใ€‚"]})]})]}),$.access.includes("groupPolicy")&&n.jsx(Pa,{label:rn.groupPolicy,help:on.groupPolicy,children:n.jsxs("select",{className:"input text-sm",value:h.groupPolicy!=null?String(h.groupPolicy):"",onChange:K=>dt("groupPolicy",K.target.value||void 0),children:[n.jsx("option",{value:"",children:"โ€” ้ป˜่ฎค โ€”"}),S1.map(([K,ye])=>n.jsx("option",{value:K,children:ye},K))]})}),$.access.includes("requireMention")&&n.jsxs("div",{className:"mb-4 flex items-start gap-3",children:[n.jsx("input",{type:"checkbox",checked:!!h.requireMention,onChange:K=>dt("requireMention",K.target.checked||void 0),className:"rounded mt-0.5"}),n.jsxs("div",{children:[n.jsx("span",{className:"text-sm text-surface-700",children:rn.requireMention}),n.jsx("p",{className:"text-xs text-surface-400",children:on.requireMention})]})]}),$.access.includes("allowFrom")&&n.jsx(Pa,{label:rn.allowFrom,help:on.allowFrom,children:n.jsx(xh,{value:Array.isArray(h.allowFrom)?h.allowFrom.map(String):[],onChange:K=>dt("allowFrom",K.filter(Boolean).length>0?K.filter(Boolean):void 0),placeholder:"็”จๆˆท ID"})}),$.access.includes("groupAllowFrom")&&n.jsx(Pa,{label:rn.groupAllowFrom,help:on.groupAllowFrom,children:n.jsx(xh,{value:Array.isArray(h.groupAllowFrom)?h.groupAllowFrom.map(String):[],onChange:K=>dt("groupAllowFrom",K.filter(Boolean).length>0?K.filter(Boolean):void 0),placeholder:"็”จๆˆท ID"})})]}),$.advanced.length>0&&n.jsxs("div",{className:"rounded-xl border border-surface-200 bg-white",children:[n.jsxs("button",{onClick:()=>T(!Se),className:"flex w-full items-center justify-between px-4 py-3 text-left",children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx(bl,{className:"h-4 w-4 text-surface-400"}),n.jsx("span",{className:"text-sm font-semibold text-surface-600",children:"้ซ˜็บง่ฎพ็ฝฎ"}),n.jsxs("span",{className:"text-[11px] text-surface-400",children:["(",$.advanced.length," ้กน)"]})]}),Se?n.jsx(xn,{className:"h-4 w-4 text-surface-400"}):n.jsx(la,{className:"h-4 w-4 text-surface-400"})]}),Se&&n.jsx("div",{className:"border-t border-surface-100 px-4 py-4",children:n.jsx(p1,{schema:zs,value:jl,path:["channels",c],hints:y,onChange:K=>{x(ye=>{const de={...ye};for(const Be of $.advanced)Be in K?de[Be]=K[Be]:delete de[Be];return de})}})})]}),I==="saved"&&n.jsxs("div",{className:"flex items-center gap-2 rounded-xl bg-emerald-50 border border-emerald-200 p-3 text-xs text-emerald-700",children:[n.jsx(Pi,{className:"h-3.5 w-3.5 shrink-0"}),"้…็ฝฎๅทฒไฟๅญ˜ใ€‚Gateway ๅฐ†้‡ๅฏไปฅๅบ”็”จๆ›ดๆ”นใ€‚"]}),I==="error"&&n.jsxs("div",{className:"flex items-center gap-2 rounded-xl bg-red-50 border border-red-200 p-3 text-xs text-red-700",children:[n.jsx(Cs,{className:"h-3.5 w-3.5 shrink-0"}),Le||"ไฟๅญ˜ๅคฑ่ดฅ"]}),n.jsxs("div",{className:"flex items-center gap-3 pt-1",children:[n.jsxs("button",{onClick:yn,disabled:B||!Fe,className:"btn-primary !py-2 !text-sm",children:[B?n.jsx(We,{className:"h-4 w-4 animate-spin"}):n.jsx(pn,{className:"h-4 w-4"}),"ไฟๅญ˜้…็ฝฎ"]}),n.jsxs("button",{onClick:Ts,disabled:!Fe,className:"btn-secondary !py-2 !text-sm",children:[n.jsx(Xh,{className:"h-4 w-4"}),"้‡็ฝฎ"]}),Fe&&n.jsx("span",{className:"text-xs text-amber-600",children:"โ— ๆœ‰ๆœชไฟๅญ˜็š„ๆ›ดๆ”น"})]})]})}const Ph={whatsapp:"๐Ÿ’ฌ",telegram:"โœˆ๏ธ",discord:"๐ŸŽฎ",slack:"๐Ÿ’ผ",signal:"๐Ÿ”’",imessage:"๐Ÿ’ฌ",bluebubbles:"๐Ÿ’ฌ",googlechat:"๐Ÿ’ฌ",msteams:"๐Ÿข",feishu:"๐Ÿฆ",matrix:"๐Ÿ”—",webchat:"๐ŸŒ",line:"๐Ÿ“ž",nostr:"๐ŸŒ",twitch:"๐ŸŽฎ",irc:"๐Ÿ’ป",mattermost:"๐Ÿ’ฌ"};function ys(c,...u){if(!c||typeof c!="object")return;const f=c;for(const r of u){const d=f[r];if(typeof d=="string"&&d.trim())return d.trim()}}function ph(c){if(!c)return"";const u=Date.now()-c;return u<6e4?"just now":u<36e5?`${Math.floor(u/6e4)}m ago`:u<864e5?`${Math.floor(u/36e5)}h ago`:new Date(c).toLocaleDateString()}function O1(c){var S,j;if(!c||typeof c!="object")return{views:[],allMeta:[]};const u=c,f=u.channels??{},r=u.channelAccounts??{},d=u.channelLabels??{},m=u.channelMeta??{},y=u.channelOrder??Object.keys(f),g={};if(Array.isArray(m))for(const A of m)A.id&&(g[A.id]=A);else Object.assign(g,m);const h=[];for(const A of y){const D=f[A];if(!D)continue;const E=r[A],C=(Array.isArray(E)?E:E&&typeof E=="object"?Object.entries(E).map(([v,_])=>({..._,accountId:v})):[]).map(v=>{const _=ys(v.application,"name","appName","app_name")??(v.appId?`App ${v.appId}`:void 0),z=ys(v.application,"tenantName","tenant_name","companyName","company_name","orgName","org_name"),L=v.probe,W=ys(v.bot,"name","botName","bot_name")??ys(v.profile,"name","displayName","display_name")??ys(L,"botName","bot_name"),J=v.domain;return{id:String(v.accountId??"default"),name:v.name??W??String(v.accountId??"default"),connected:v.connected??v.running??!1,enabled:v.enabled!==!1,configured:v.configured??!1,mode:v.mode??(J?`${J}`:void 0),lastInboundAt:v.lastInboundAt,lastOutboundAt:v.lastOutboundAt,appName:_,tenantName:z,botName:W,raw:v}});h.push({id:A,label:d[A]??((S=g[A])==null?void 0:S.label)??A,blurb:(j=g[A])==null?void 0:j.blurb,configured:(D==null?void 0:D.configured)??!1,accounts:C})}const x=Array.isArray(m)?m:Object.entries(m).map(([A,D])=>({...D,id:A}));return{views:h,allMeta:x}}function _1({ch:c,configOpen:u,onToggleConfig:f,onLogout:r,actionLoading:d,onConfigSaved:m}){const y=c.accounts.some(h=>h.connected),g=Ph[c.id]??"๐Ÿ“ก";return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("span",{className:"text-2xl",children:g}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:c.label}),c.blurb&&n.jsx("p",{className:"text-xs text-surface-400",children:c.blurb})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:f,className:"btn-ghost !px-2.5 !py-1.5 text-xs text-surface-500 hover:text-primary-600",title:"Configure",children:[n.jsx(bl,{className:"h-3.5 w-3.5"}),"Configure",u?n.jsx(xn,{className:"h-3 w-3 ml-0.5"}):n.jsx(la,{className:"h-3 w-3 ml-0.5"})]}),y?n.jsxs("span",{className:"badge-green",children:[n.jsx(Kh,{className:"mr-1 h-3 w-3"}),"Online"]}):c.configured?n.jsxs("span",{className:"badge-gray",children:[n.jsx(Vh,{className:"mr-1 h-3 w-3"}),"Offline"]}):n.jsx("span",{className:"badge-gray",children:"Not Configured"})]})]}),c.accounts.length>0&&n.jsx("div",{className:"mt-3 space-y-2 border-t border-surface-100 pt-3",children:c.accounts.map(h=>n.jsxs("div",{className:"rounded-lg bg-surface-50 px-4 py-3",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx("div",{className:`h-2.5 w-2.5 rounded-full shrink-0 ${h.connected?"bg-emerald-500":"bg-surface-300"}`}),n.jsxs("div",{children:[n.jsx("span",{className:"text-sm font-medium text-surface-800",children:h.name}),h.id!=="default"&&h.id!==h.name&&n.jsx("span",{className:"ml-2 text-[11px] text-surface-400 font-mono",children:h.id})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:`text-xs font-medium ${h.connected?"text-emerald-600":"text-surface-400"}`,children:h.connected?"Connected":h.configured?"Disconnected":"Not configured"}),h.connected&&n.jsx("button",{onClick:()=>r(c.id,h.id),disabled:d===`${c.id}:${h.id}`,className:"btn-ghost !px-2 !py-1 text-xs text-surface-500 hover:text-red-600",title:"Logout",children:d===`${c.id}:${h.id}`?n.jsx(We,{className:"h-3.5 w-3.5 animate-spin"}):n.jsx(Gh,{className:"h-3.5 w-3.5"})})]})]}),n.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-[11px] text-surface-500",children:[h.appName&&n.jsxs("span",{className:"flex items-center gap-1",children:[n.jsx(ec,{className:"h-3 w-3 text-surface-400"}),"App: ",h.appName]}),h.tenantName&&n.jsxs("span",{children:["Org: ",h.tenantName]}),h.botName&&h.botName!==h.name&&n.jsxs("span",{children:["Bot: ",h.botName]}),h.mode&&n.jsx("span",{className:"rounded bg-surface-200 px-1.5 py-0.5 text-[10px]",children:h.mode})]}),(h.lastInboundAt||h.lastOutboundAt)&&n.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-x-4 gap-y-1 text-[11px] text-surface-400",children:[h.lastInboundAt&&n.jsxs("span",{className:"flex items-center gap-1",title:"Last message received",children:[n.jsx(pg,{className:"h-3 w-3"}),"In: ",ph(h.lastInboundAt)]}),h.lastOutboundAt&&n.jsxs("span",{className:"flex items-center gap-1",title:"Last message sent",children:[n.jsx(gg,{className:"h-3 w-3"}),"Out: ",ph(h.lastOutboundAt)]})]})]},h.id))}),u&&n.jsxs("div",{className:"mt-4 border-t border-surface-200 pt-4",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[n.jsx(bl,{className:"h-4 w-4 text-primary-600"}),n.jsxs("h4",{className:"text-xs font-semibold text-surface-800",children:[c.label," Configuration"]})]}),n.jsx(z1,{channelId:c.id,onSaved:m})]})]})}function D1({existingIds:c,allMeta:u,onSelect:f,onClose:r}){const d=u.filter(m=>m.id&&!c.has(m.id));return d.length===0?n.jsxs("div",{className:"card mb-4",children:[n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:"Add Channel"}),n.jsx("button",{onClick:r,className:"text-xs text-surface-400 hover:text-surface-600",children:"Close"})]}),n.jsx("p",{className:"text-xs text-surface-500 text-center py-4",children:"All available channels are already configured. Install additional channel plugins to add more."})]}):n.jsxs("div",{className:"card mb-4",children:[n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:"Add Channel"}),n.jsx("button",{onClick:r,className:"text-xs text-surface-400 hover:text-surface-600",children:"Close"})]}),n.jsx("p",{className:"text-xs text-surface-400 mb-3",children:"Select a channel to configure. These channels are installed but not yet set up."}),n.jsx("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3",children:d.map(m=>{const y=Ph[m.id]??"๐Ÿ“ก";return n.jsxs("button",{onClick:()=>f(m.id),className:"flex items-center gap-3 rounded-lg border border-surface-200 p-3 text-left transition-colors hover:border-primary-300 hover:bg-primary-50/30",children:[n.jsx("span",{className:"text-xl",children:y}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-surface-900",children:m.label??m.id}),m.blurb&&n.jsx("p",{className:"text-[11px] text-surface-400 line-clamp-1",children:m.blurb})]})]},m.id)})})]})}function R1(){const{gateway:c,connected:u}=De(),[f,r]=b.useState([]),[d,m]=b.useState([]),[y,g]=b.useState(!0),[h,x]=b.useState(null),[S,j]=b.useState(null),[A,D]=b.useState(!1);function E(){!c||!u||(g(!0),c.request("channels.status",{probe:!0}).then(_=>{const{views:z,allMeta:L}=O1(_);r(z),m(L)}).catch(()=>{}).finally(()=>g(!1)))}b.useEffect(()=>{E()},[c,u]);async function M(_,z){if(!(!c||!confirm(`Logout from ${_}?`))){x(`${_}:${z}`);try{await c.request("channels.logout",{channel:_,accountId:z}),E()}catch{}x(null)}}function C(_){if(D(!1),j(_),!f.find(z=>z.id===_)){const z=d.find(L=>L.id===_);r(L=>[...L,{id:_,label:(z==null?void 0:z.label)??_,blurb:z==null?void 0:z.blurb,configured:!1,accounts:[]}])}}if(y)return n.jsx(rt,{});const v=new Set(f.map(_=>_.id));return n.jsxs("div",{children:[n.jsx(ia,{title:"Channels",description:"Monitor and manage your messaging channels",actions:n.jsxs("div",{className:"flex gap-2",children:[n.jsxs("button",{onClick:E,className:"btn-secondary",children:[n.jsx(ic,{className:"h-4 w-4"}),"Refresh"]}),n.jsxs("button",{onClick:()=>D(!A),className:"btn-primary",children:[n.jsx(jt,{className:"h-4 w-4"}),"Add Channel"]})]})}),A&&n.jsx(D1,{existingIds:v,allMeta:d,onSelect:C,onClose:()=>D(!1)}),n.jsxs("div",{className:"space-y-3",children:[f.map(_=>n.jsx(_1,{ch:_,configOpen:S===_.id,onToggleConfig:()=>j(S===_.id?null:_.id),onLogout:M,actionLoading:h,onConfigSaved:E},_.id)),f.length===0&&n.jsxs("div",{className:"card py-12 text-center",children:[n.jsx(js,{className:"mx-auto h-8 w-8 text-surface-300"}),n.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"No channels installed. Install channel plugins to get started."})]})]})]})}function U1(){const{gateway:c,connected:u}=De(),[f,r]=b.useState([]),[d,m]=b.useState(!0),[y,g]=b.useState(null);function h(){!c||!u||c.request("cron.list",{}).then(A=>r(Array.isArray(A==null?void 0:A.jobs)?A.jobs:[])).catch(()=>r([])).finally(()=>m(!1))}b.useEffect(()=>{h()},[c,u]);async function x(A,D){if(c){g(A);try{await c.request("cron.update",{id:A,enabled:!D}),r(E=>E.map(M=>M.id===A?{...M,enabled:!D}:M))}catch{}g(null)}}async function S(A){if(c){g(A);try{await c.request("cron.run",{id:A})}catch{}g(null)}}async function j(A){if(!(!c||!confirm("Remove this cron job?"))){g(A);try{await c.request("cron.remove",{id:A}),r(D=>D.filter(E=>E.id!==A))}catch{}g(null)}}return d?n.jsx(rt,{}):n.jsxs("div",{children:[n.jsx(ia,{title:"Cron Jobs",description:"Manage scheduled tasks"}),f.length===0?n.jsx(Vr,{icon:n.jsx(Dr,{className:"h-12 w-12"}),title:"No cron jobs",description:"Scheduled tasks will appear here. Create them via the agent chat."}):n.jsx("div",{className:"space-y-2",children:f.map(A=>n.jsxs("div",{className:"card flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-amber-50",children:n.jsx(Dr,{className:"h-4 w-4 text-amber-600"})}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-surface-900",children:A.message||A.id}),n.jsxs("div",{className:"flex items-center gap-3 text-xs text-surface-400",children:[n.jsx("code",{className:"font-mono",children:A.schedule}),A.agentId&&n.jsxs("span",{children:["Agent: ",A.agentId]}),A.nextRunAt&&n.jsxs("span",{children:["Next: ",A.nextRunAt]})]})]})]}),n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("button",{onClick:()=>S(A.id),disabled:y===A.id,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-emerald-600",title:"Run now",children:y===A.id?n.jsx(We,{className:"h-3.5 w-3.5 animate-spin"}):n.jsx(rh,{className:"h-3.5 w-3.5"})}),n.jsx("button",{onClick:()=>x(A.id,A.enabled),className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-amber-600",title:A.enabled?"Pause":"Resume",children:A.enabled?n.jsx(Mg,{className:"h-3.5 w-3.5"}):n.jsx(rh,{className:"h-3.5 w-3.5"})}),n.jsx("button",{onClick:()=>j(A.id),className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-red-600",title:"Remove",children:n.jsx(na,{className:"h-3.5 w-3.5"})})]})]},A.id))})]})}function H1(){const{gateway:c,connected:u}=De(),[f,r]=b.useState(!0),[d,m]=b.useState([]),[y,g]=b.useState(""),[h,x]=b.useState([]),[S,j]=b.useState(0);if(b.useEffect(()=>{if(!c||!u)return;let E=!1;return r(!0),Promise.all([c.request("agents.list",{}).catch(()=>null),c.request("channels.status",{}).catch(()=>null),c.request("sessions.list",{}).catch(()=>null)]).then(([M,C,v])=>{if(E)return;const _=Array.isArray(M==null?void 0:M.agents)?M.agents:[];m(_),g((M==null?void 0:M.defaultId)??"");const z=[];if(C!=null&&C.channels&&typeof C.channels=="object"){const L=C.channelAccounts??{};for(const[W,J]of Object.entries(C.channels)){const V=L[W];let B=!1;V&&typeof V=="object"&&(B=Object.values(V).some(Z=>Z&&typeof Z=="object"&&Z.status==="online")),z.push({id:W,configured:(J==null?void 0:J.configured)??!1,online:B,label:W})}}x(z),j(typeof(v==null?void 0:v.count)=="number"?v.count:Array.isArray(v==null?void 0:v.sessions)?v.sessions.length:0),r(!1)}),()=>{E=!0}},[c,u]),f)return n.jsx(rt,{});const A=h.filter(E=>E.online),D=[{label:"Active Agents",value:d.length,icon:vl,color:"bg-primary-50 text-primary-600",to:"/agents"},{label:"Channels Online",value:`${A.length} / ${h.length}`,icon:js,color:"bg-emerald-50 text-emerald-600",to:"/channels"},{label:"Active Sessions",value:S,icon:ws,color:"bg-blue-50 text-blue-600",to:"/sessions"},{label:"System Health",value:"OK",icon:xg,color:"bg-amber-50 text-amber-600",to:"/settings"}];return n.jsxs("div",{children:[n.jsx(ia,{title:"Dashboard",description:"Overview of your AI assistant system"}),n.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:D.map(E=>n.jsxs(ta,{to:E.to,className:"card group hover:border-primary-200 transition-colors",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-lg ${E.color}`,children:n.jsx(E.icon,{className:"h-5 w-5"})}),n.jsx(yg,{className:"h-4 w-4 text-surface-300 transition-colors group-hover:text-primary-500"})]}),n.jsx("p",{className:"mt-3 text-2xl font-semibold text-surface-900",children:E.value}),n.jsx("p",{className:"text-sm text-surface-500",children:E.label})]},E.label))}),n.jsxs("div",{className:"mt-8 grid gap-6 lg:grid-cols-2",children:[n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[n.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Agents"}),n.jsx(ta,{to:"/agents",className:"text-xs font-medium text-primary-600 hover:text-primary-700",children:"View all โ†’"})]}),n.jsx("div",{className:"space-y-2",children:d.length===0?n.jsx("p",{className:"py-4 text-center text-sm text-surface-400",children:"No agents configured"}):d.slice(0,5).map(E=>{var M;return n.jsxs(ta,{to:`/agents/${E.id}`,className:"flex items-center justify-between rounded-lg p-3 transition-colors hover:bg-surface-50",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary-100 text-primary-700",children:n.jsx(vl,{className:"h-4 w-4"})}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-surface-900",children:((M=E.identity)==null?void 0:M.name)||E.name||E.id}),n.jsxs("p",{className:"text-xs text-surface-400",children:["ID: ",E.id]})]})]}),E.id===y&&n.jsx("span",{className:"badge-primary",children:"Default"})]},E.id)})})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[n.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Channels"}),n.jsx(ta,{to:"/channels",className:"text-xs font-medium text-primary-600 hover:text-primary-700",children:"View all โ†’"})]}),n.jsx("div",{className:"space-y-2",children:h.length===0?n.jsx("p",{className:"py-4 text-center text-sm text-surface-400",children:"No channels configured"}):h.slice(0,6).map(E=>n.jsxs("div",{className:"flex items-center justify-between rounded-lg p-3",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-surface-100",children:n.jsx(js,{className:"h-4 w-4 text-surface-600"})}),n.jsx("p",{className:"text-sm font-medium text-surface-900",children:E.label})]}),E.online?n.jsx("span",{className:"badge-green",children:"Online"}):E.configured?n.jsx("span",{className:"badge-gray",children:"Offline"}):n.jsx("span",{className:"badge-gray",children:"Not Configured"})]},E.id))})]})]})]})}const q1={whatsapp:"๐Ÿ’ฌ",telegram:"โœˆ๏ธ",discord:"๐ŸŽฎ",slack:"๐Ÿ’ผ",signal:"๐Ÿ”’",feishu:"๐Ÿฆ",msteams:"๐Ÿข",webchat:"๐ŸŒ"};function L1(c){if(!c)return"";const u=Date.now()-c;return u<6e4?"just now":u<36e5?`${Math.floor(u/6e4)}m ago`:u<864e5?`${Math.floor(u/36e5)}h ago`:new Date(c).toLocaleDateString()}function B1(){const{gateway:c,connected:u}=De(),[f,r]=b.useState([]),[d,m]=b.useState([]),[y,g]=b.useState([]),[h,x]=b.useState({}),[S,j]=b.useState(!0);if(b.useEffect(()=>{!c||!u||Promise.all([c.request("config.get"),c.request("agents.list",{}),c.request("sessions.list",{}),c.request("channels.status",{})]).then(([v,_,z,L])=>{var J;const W=(J=v==null?void 0:v.config)==null?void 0:J.bindings;r(Array.isArray(W)?W:[]),m(Array.isArray(_==null?void 0:_.agents)?_.agents:[]),g(Array.isArray(z==null?void 0:z.sessions)?z.sessions:[]),x((L==null?void 0:L.channelLabels)??{}),j(!1)}).catch(()=>j(!1))},[c,u]),S)return n.jsx(rt,{});const A=y.filter(v=>v.kind==="group");function D(v){const _=A.find(z=>z.key.includes(v)||z.subject===v);return _?{name:_.displayName||_.derivedTitle||_.label||v,lastActive:_.updatedAt}:v.length>24?{name:v.slice(0,12)+"โ€ฆ"+v.slice(-6)}:{name:v}}const E=f.filter(v=>{var _;return((_=v.match.peer)==null?void 0:_.kind)==="group"||v.match.guildId}).map(v=>{var L;const _=((L=v.match.peer)==null?void 0:L.id)??v.match.guildId??"Unknown group",z=D(_);return{...v,_groupId:_,_displayName:z.name,_lastActive:z.lastActive}}),M=new Map(d.map(v=>{var _;return[v.id,((_=v.identity)==null?void 0:_.name)||v.name||v.id]})),C=E.reduce((v,_)=>{const z=_.match.channel;return v[z]||(v[z]=[]),v[z].push(_),v},{});return n.jsxs("div",{children:[n.jsx(ia,{title:"Groups",description:"View and manage group-to-agent bindings across all channels"}),E.length===0?n.jsx(Vr,{icon:n.jsx(Ns,{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'."}):n.jsx("div",{className:"space-y-6",children:Object.entries(C).map(([v,_])=>{const z=q1[v]??"๐Ÿ“ก";return n.jsxs("div",{children:[n.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[n.jsx("span",{className:"text-lg",children:z}),n.jsx("h2",{className:"text-sm font-semibold text-surface-700",children:h[v]??v}),n.jsxs("span",{className:"badge-gray",children:[_.length," groups"]})]}),n.jsx("div",{className:"space-y-2",children:_.map((L,W)=>n.jsxs("div",{className:"card flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-surface-100",children:n.jsx(Tg,{className:"h-5 w-5 text-surface-600"})}),n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-surface-900",children:L._displayName}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-0.5 text-xs text-surface-400",children:[L.comment&&n.jsx("span",{children:L.comment}),L._lastActive&&n.jsxs("span",{children:["Active ",L1(L._lastActive)]})]}),L._groupId!==L._displayName&&n.jsx("p",{className:"mt-0.5 text-[10px] font-mono text-surface-300 truncate max-w-[300px]",children:L._groupId})]})]}),n.jsx("div",{className:"flex items-center gap-3",children:n.jsxs(ta,{to:`/agents/${L.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:[n.jsx(vl,{className:"h-3 w-3"}),M.get(L.agentId)??L.agentId]})})]},W))})]},v)})}),n.jsxs("div",{className:"mt-8 card bg-surface-50 border-surface-200",children:[n.jsx("h3",{className:"text-sm font-semibold text-surface-700 mb-2",children:"Group Behavior Reference"}),n.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 text-xs text-surface-500",children:[n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(vg,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-surface-400"}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium text-surface-700",children:"Mention Mode"}),n.jsx("p",{children:"Bot only responds when @mentioned in the group"})]})]}),n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(wg,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-surface-400"}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium text-surface-700",children:"Always Mode"}),n.jsx("p",{children:"Bot responds to all messages in the group"})]})]})]})]})]})}function k1(){return`${location.protocol}//${location.host}/`}function Y1(){const{login:c,connecting:u,error:f}=De(),[r,d]=b.useState("");function m(y){y.preventDefault(),r.trim()&&c(r)}return n.jsx("div",{className:"flex min-h-screen items-center justify-center bg-white",children:n.jsxs("div",{className:"w-full max-w-sm",children:[n.jsxs("div",{className:"mb-8 text-center",children:[n.jsx("div",{className:"mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-primary-600",children:n.jsx("span",{className:"text-2xl font-bold text-white",children:"O"})}),n.jsx("h1",{className:"text-2xl font-semibold text-surface-900",children:"Operator"}),n.jsx("p",{className:"mt-1 text-sm text-surface-500",children:"Sign in to manage your AI agents"})]}),n.jsxs("form",{onSubmit:m,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{htmlFor:"token",className:"label",children:"Gateway Token"}),n.jsxs("div",{className:"relative",children:[n.jsx(Sg,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),n.jsx("input",{id:"token",type:"password",value:r,onChange:y=>d(y.target.value),className:"input !pl-10",placeholder:"Enter your gateway token",autoFocus:!0,disabled:u})]})]}),f&&n.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-3 text-sm text-red-700",children:[n.jsx(Cs,{className:"mt-0.5 h-4 w-4 shrink-0"}),n.jsx("span",{children:f})]}),n.jsx("button",{type:"submit",disabled:u||!r.trim(),className:"btn-primary w-full",children:u?n.jsxs(n.Fragment,{children:[n.jsx(We,{className:"h-4 w-4 animate-spin"}),"Connecting..."]}):"Sign In"})]}),n.jsxs("p",{className:"mt-6 text-center text-xs leading-relaxed text-surface-400",children:["You can find the token in the"," ",n.jsxs("a",{href:k1(),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-0.5 text-primary-600 hover:text-primary-700 hover:underline",children:["Dashboard",n.jsx(bg,{className:"h-3 w-3"})]})," ","settings"]})]})})}const G1=["openai-completions","openai-responses","anthropic-messages","google-generative-ai","ollama","bedrock-converse-stream","github-copilot","openai-codex-responses"],X1=["api-key","aws-sdk","oauth","token"];function Q1(){return{baseUrl:"",apiKey:"",auth:"api-key",api:"openai-completions",models:[]}}function V1(){return{id:"",name:"",reasoning:!1,input:["text"],contextWindow:128e3,maxTokens:4096,cost:{input:0,output:0,cacheRead:0,cacheWrite:0}}}function yh(c){return c?typeof c=="string"?c:c.primary??"":""}function gh(c){return!c||typeof c=="string"?[]:c.fallbacks??[]}function e0({value:c,onChange:u,catalog:f,placeholder:r}){const d=new Map;for(const m of f){const y=m.provider||"other";d.has(y)||d.set(y,[]),d.get(y).push(m)}return n.jsxs("select",{className:"input text-sm",value:c,onChange:m=>u(m.target.value),children:[n.jsx("option",{value:"",children:r??"Select a model..."}),[...d.entries()].map(([m,y])=>n.jsx("optgroup",{label:m,children:y.map(g=>n.jsxs("option",{value:`${g.provider}/${g.id}`,children:[g.name||g.id,g.reasoning?" (reasoning)":"",g.contextWindow?` ยท ${Math.round(g.contextWindow/1e3)}k ctx`:""]},`${g.provider}/${g.id}`))},m))]})}function K1({fallbacks:c,onChange:u,catalog:f}){function r(){u([...c,""])}function d(h){u(c.filter((x,S)=>S!==h))}function m(h,x){const S=[...c];S[h]=x,u(S)}function y(h){if(h===0)return;const x=[...c],S=x[h];x[h]=x[h-1],x[h-1]=S,u(x)}function g(h){if(h>=c.length-1)return;const x=[...c],S=x[h];x[h]=x[h+1],x[h+1]=S,u(x)}return n.jsxs("div",{className:"space-y-2",children:[c.map((h,x)=>n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("div",{className:"flex flex-col gap-0.5",children:[n.jsx("button",{onClick:()=>y(x),className:"text-surface-400 hover:text-surface-600 disabled:opacity-30",disabled:x===0,children:n.jsx(la,{className:"h-3 w-3 -rotate-90"})}),n.jsx("button",{onClick:()=>g(x),className:"text-surface-400 hover:text-surface-600 disabled:opacity-30",disabled:x===c.length-1,children:n.jsx(la,{className:"h-3 w-3 rotate-90"})})]}),n.jsx("span",{className:"text-[10px] text-surface-400 font-mono w-4 text-center shrink-0",children:x+1}),n.jsx("div",{className:"flex-1",children:n.jsx(e0,{value:h,onChange:S=>m(x,S),catalog:f,placeholder:"Select fallback model..."})}),n.jsx("button",{onClick:()=>d(x),className:"text-surface-400 hover:text-red-500 p-1",children:n.jsx(Zh,{className:"h-3.5 w-3.5"})})]},x)),n.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-xs text-primary-600 hover:text-primary-700",children:[n.jsx(jt,{className:"h-3 w-3"}),"Add fallback"]})]})}function Z1({config:c,catalog:u,onSave:f}){var E;const r=(E=c.agents)==null?void 0:E.defaults,d=r==null?void 0:r.model,[m,y]=b.useState(yh(d)),[g,h]=b.useState(gh(d)),[x,S]=b.useState(!1),[j,A]=b.useState("idle");b.useEffect(()=>{y(yh(d)),h(gh(d))},[JSON.stringify(d)]);async function D(){S(!0),A("idle");try{const M=g.filter(Boolean).length>0?{primary:m||void 0,fallbacks:g.filter(Boolean)}:m||void 0;await f({agents:{defaults:{model:M}}}),A("saved"),setTimeout(()=>A("idle"),2500)}catch{A("error")}S(!1)}return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[n.jsx(Ag,{className:"h-4 w-4 text-primary-600"}),n.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Default Model"})]}),n.jsx("p",{className:"text-xs text-surface-500 mb-4",children:"The default model used by all agents unless overridden per-agent."}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"Primary Model"}),n.jsx(e0,{value:m,onChange:y,catalog:u,placeholder:"Select default model..."})]}),n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"Fallback Models"}),n.jsx("p",{className:"text-[11px] text-surface-400 mb-2",children:"When the primary model is unavailable, these models are tried in order."}),n.jsx(K1,{fallbacks:g,onChange:h,catalog:u})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsxs("button",{onClick:D,disabled:x,className:"btn-primary !py-1.5 !text-xs",children:[x?n.jsx(We,{className:"h-3.5 w-3.5 animate-spin"}):n.jsx(pn,{className:"h-3.5 w-3.5"}),"Save Default Model"]}),j==="saved"&&n.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),j==="error"&&n.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]})]})]})}function vh({providerId:c,initial:u,onSave:f,onDelete:r,isNew:d}){const[m,y]=b.useState(c),[g,h]=b.useState(u),[x,S]=b.useState(d??!1),[j,A]=b.useState(!1),[D,E]=b.useState(!1),[M,C]=b.useState("idle"),[v,_]=b.useState(!1);function z(Z){h(I=>({...I,...Z}))}function L(){z({models:[...g.models,V1()]})}function W(Z){z({models:g.models.filter((I,ne)=>ne!==Z)})}function J(Z,I){const ne=[...g.models];ne[Z]={...ne[Z],...I},z({models:ne})}async function V(){A(!0),C("idle");try{await f(m,g),C("saved"),setTimeout(()=>C("idle"),2500)}catch{C("error")}A(!1)}async function B(){if(confirm(`Delete provider "${c}"? This cannot be undone.`)){E(!0);try{await r(c)}catch{}E(!1)}}return n.jsxs("div",{className:"card",children:[n.jsxs("button",{onClick:()=>S(!x),className:"flex w-full items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(ec,{className:"h-4 w-4 text-surface-500"}),n.jsxs("div",{className:"text-left",children:[n.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:c}),n.jsxs("p",{className:"text-[11px] text-surface-400",children:[g.baseUrl||"No URL configured"," ยท ",g.models.length," model",g.models.length!==1?"s":""]})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[g.apiKey&&n.jsx("span",{className:"rounded bg-emerald-50 px-1.5 py-0.5 text-[10px] text-emerald-600",children:"Key set"}),x?n.jsx(xn,{className:"h-4 w-4 text-surface-400"}):n.jsx(la,{className:"h-4 w-4 text-surface-400"})]})]}),x&&n.jsxs("div",{className:"mt-4 space-y-4 border-t border-surface-100 pt-4",children:[d&&n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"Provider ID"}),n.jsx("input",{className:"input",value:m,onChange:Z=>y(Z.target.value.trim().toLowerCase()),placeholder:"e.g. deepseek, my-openai"})]}),n.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"label",children:[n.jsx(Yh,{className:"mr-1 inline h-3 w-3"}),"Base URL"]}),n.jsx("input",{className:"input text-sm font-mono",value:g.baseUrl,onChange:Z=>z({baseUrl:Z.target.value}),placeholder:"https://api.example.com/v1"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"label",children:[n.jsx(Qr,{className:"mr-1 inline h-3 w-3"}),"API Key"]}),n.jsxs("div",{className:"relative",children:[n.jsx("input",{className:"input text-sm font-mono !pr-10",type:v?"text":"password",value:g.apiKey,onChange:Z=>z({apiKey:Z.target.value}),placeholder:"sk-..."}),n.jsx("button",{type:"button",onClick:()=>_(!v),className:"absolute right-2 top-1/2 -translate-y-1/2 text-surface-400 hover:text-surface-600",children:v?n.jsx(Gr,{className:"h-4 w-4"}):n.jsx(Xr,{className:"h-4 w-4"})})]}),g.apiKey&&g.apiKey.startsWith("*")&&n.jsx("p",{className:"mt-1 text-[10px] text-surface-400",children:"Value is redacted. Leave unchanged to keep existing key, or enter a new one."})]})]}),n.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"Auth Mode"}),n.jsx("select",{className:"input text-sm",value:g.auth,onChange:Z=>z({auth:Z.target.value}),children:X1.map(Z=>n.jsx("option",{value:Z,children:Z},Z))})]}),n.jsxs("div",{children:[n.jsx("label",{className:"label",children:"API Format"}),n.jsx("select",{className:"input text-sm",value:g.api,onChange:Z=>z({api:Z.target.value}),children:G1.map(Z=>n.jsx("option",{value:Z,children:Z},Z))})]})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsx("label",{className:"label mb-0",children:"Models"}),n.jsxs("button",{onClick:L,className:"flex items-center gap-1 text-xs text-primary-600 hover:text-primary-700",children:[n.jsx(jt,{className:"h-3 w-3"}),"Add Model"]})]}),g.models.length===0?n.jsx("p",{className:"text-xs text-surface-400 py-3 text-center border border-dashed border-surface-200 rounded-lg",children:"No models defined. Add one to use this provider."}):n.jsx("div",{className:"space-y-2",children:g.models.map((Z,I)=>n.jsxs("div",{className:"rounded-lg bg-surface-50 p-3 border border-surface-100",children:[n.jsxs("div",{className:"flex items-start justify-between gap-2",children:[n.jsxs("div",{className:"grid flex-1 gap-2 sm:grid-cols-2",children:[n.jsx("input",{className:"input !bg-white text-xs",value:Z.id,onChange:ne=>J(I,{id:ne.target.value}),placeholder:"Model ID (e.g. gpt-4o)"}),n.jsx("input",{className:"input !bg-white text-xs",value:Z.name,onChange:ne=>J(I,{name:ne.target.value}),placeholder:"Display name"})]}),n.jsx("button",{onClick:()=>W(I),className:"text-surface-400 hover:text-red-500 p-1 mt-1",children:n.jsx(na,{className:"h-3.5 w-3.5"})})]}),n.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-3 text-xs",children:[n.jsxs("label",{className:"flex items-center gap-1.5 text-surface-600",children:[n.jsx("input",{type:"checkbox",checked:Z.reasoning,onChange:ne=>J(I,{reasoning:ne.target.checked}),className:"rounded"}),"Reasoning"]}),n.jsxs("label",{className:"flex items-center gap-1.5 text-surface-600",children:[n.jsx("input",{type:"checkbox",checked:Z.input.includes("image"),onChange:ne=>J(I,{input:ne.target.checked?["text","image"]:["text"]}),className:"rounded"}),"Vision"]}),n.jsxs("span",{className:"text-surface-400",children:["Context: ",Math.round(Z.contextWindow/1e3),"k"]})]})]},I))})]}),n.jsxs("div",{className:"flex items-center justify-between border-t border-surface-100 pt-4",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsxs("button",{onClick:V,disabled:j,className:"btn-primary !py-1.5 !text-xs",children:[j?n.jsx(We,{className:"h-3.5 w-3.5 animate-spin"}):n.jsx(pn,{className:"h-3.5 w-3.5"}),d?"Create Provider":"Save Provider"]}),M==="saved"&&n.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),M==="error"&&n.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]}),!d&&n.jsxs("button",{onClick:B,disabled:D,className:"btn-ghost text-red-600 hover:text-red-700 hover:bg-red-50 !py-1.5 !text-xs",children:[D?n.jsx(We,{className:"h-3.5 w-3.5 animate-spin"}):n.jsx(na,{className:"h-3.5 w-3.5"}),"Delete"]})]})]})]})}function J1(){const{gateway:c,connected:u}=De(),[f,r]=b.useState([]),[d,m]=b.useState({}),[y,g]=b.useState(!0),[h,x]=b.useState(!1),S=b.useCallback(()=>{!c||!u||(g(!0),Promise.all([c.request("models.list").then(v=>Array.isArray(v==null?void 0:v.models)?v.models:[]),c.request("config.get").then(v=>(v==null?void 0:v.config)??{})]).then(([v,_])=>{r(v),m(_)}).catch(()=>{}).finally(()=>g(!1)))},[c,u]);b.useEffect(()=>{S()},[S]);async function j(v){if(!c)throw new Error("not connected");await c.request("config.patch",{raw:JSON.stringify(v)}),S()}const D=(d.models??{}).providers??{};function E(v){const _=Array.isArray(v.models)?v.models:[];return{baseUrl:String(v.baseUrl??""),apiKey:String(v.apiKey??""),auth:String(v.auth??"api-key"),api:String(v.api??"openai-completions"),models:_.map(z=>{const L=z.cost??{};return{id:String(z.id??""),name:String(z.name??""),reasoning:!!z.reasoning,input:Array.isArray(z.input)?z.input.map(String):["text"],contextWindow:Number(z.contextWindow??128e3),maxTokens:Number(z.maxTokens??4096),cost:{input:Number(L.input??0),output:Number(L.output??0),cacheRead:Number(L.cacheRead??0),cacheWrite:Number(L.cacheWrite??0)}}})}}async function M(v,_){const z={baseUrl:_.baseUrl,auth:_.auth,api:_.api,models:_.models.map(L=>({id:L.id,name:L.name||L.id,reasoning:L.reasoning,input:L.input,contextWindow:L.contextWindow,maxTokens:L.maxTokens,cost:L.cost}))};_.apiKey&&!_.apiKey.startsWith("*")&&(z.apiKey=_.apiKey),await j({models:{providers:{[v]:z}}}),x(!1)}async function C(v){const _={...D};delete _[v],await j({models:{providers:_}})}return y?n.jsx(rt,{}):n.jsxs("div",{children:[n.jsx(ia,{title:"Models",description:"Manage model providers, API keys, and default model settings",actions:n.jsxs("div",{className:"flex gap-2",children:[n.jsxs("button",{onClick:S,className:"btn-secondary",children:[n.jsx(ic,{className:"h-4 w-4"}),"Refresh"]}),n.jsxs("button",{onClick:()=>x(!0),className:"btn-primary",children:[n.jsx(jt,{className:"h-4 w-4"}),"Add Provider"]})]})}),n.jsxs("div",{className:"space-y-6",children:[n.jsx(Z1,{config:d,catalog:f,onSave:j}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[n.jsx(ec,{className:"h-4 w-4 text-surface-500"}),n.jsxs("h2",{className:"text-sm font-semibold text-surface-900",children:["Providers (",Object.keys(D).length,")"]})]}),n.jsxs("div",{className:"space-y-3",children:[h&&n.jsx(vh,{providerId:"",initial:Q1(),onSave:M,onDelete:async()=>x(!1),isNew:!0}),Object.entries(D).map(([v,_])=>n.jsx(vh,{providerId:v,initial:E(_),onSave:M,onDelete:C},v)),Object.keys(D).length===0&&!h&&n.jsxs("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-8 text-center",children:[n.jsx(ec,{className:"mx-auto h-8 w-8 text-surface-300"}),n.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"No custom providers configured."}),n.jsx("p",{className:"text-xs text-surface-400 mt-1",children:"Built-in providers (OpenAI, Anthropic, etc.) are available automatically."})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[n.jsx(bs,{className:"h-4 w-4 text-surface-500"}),n.jsxs("h2",{className:"text-sm font-semibold text-surface-900",children:["Available Models (",f.length,")"]})]}),n.jsx("p",{className:"text-xs text-surface-400 mb-3",children:"All models discovered from built-in and custom providers."}),f.length>0?n.jsx("div",{className:"max-h-[400px] overflow-y-auto",children:n.jsxs("table",{className:"w-full text-xs",children:[n.jsx("thead",{className:"sticky top-0 bg-white",children:n.jsxs("tr",{className:"border-b border-surface-200 text-left text-surface-500",children:[n.jsx("th",{className:"py-2 pr-4 font-medium",children:"Model"}),n.jsx("th",{className:"py-2 pr-4 font-medium",children:"Provider"}),n.jsx("th",{className:"py-2 pr-4 font-medium",children:"Context"}),n.jsx("th",{className:"py-2 font-medium",children:"Features"})]})}),n.jsx("tbody",{className:"divide-y divide-surface-100",children:f.map(v=>{var _;return n.jsxs("tr",{className:"text-surface-700",children:[n.jsx("td",{className:"py-2 pr-4 font-mono",children:v.name||v.id}),n.jsx("td",{className:"py-2 pr-4",children:v.provider}),n.jsx("td",{className:"py-2 pr-4",children:v.contextWindow?`${Math.round(v.contextWindow/1e3)}k`:"โ€”"}),n.jsx("td",{className:"py-2",children:n.jsxs("div",{className:"flex gap-1",children:[v.reasoning&&n.jsx("span",{className:"rounded bg-purple-50 px-1.5 py-0.5 text-[10px] text-purple-600",children:"Reasoning"}),((_=v.input)==null?void 0:_.includes("image"))&&n.jsx("span",{className:"rounded bg-blue-50 px-1.5 py-0.5 text-[10px] text-blue-600",children:"Vision"})]})})]},`${v.provider}/${v.id}`)})})]})}):n.jsx("p",{className:"text-sm text-surface-400 text-center py-6",children:"No models available. Configure a provider or check your API keys."})]})]})]})}function t0(c){if(!c)return"";if(typeof c=="string")return c;if(Array.isArray(c))return c.map(f=>{if(typeof f=="string")return f;if(f&&typeof f=="object"){const r=f;if(typeof r.text=="string")return r.text;if(typeof r.content=="string")return r.content}return""}).filter(Boolean).join("");const u=c;return typeof u.text=="string"?u.text:typeof u.content=="string"?u.content:Array.isArray(u.content)?t0(u.content):""}function $1(c){if(!c)return"";const u=Date.now()-c;return u<6e4?"just now":u<36e5?`${Math.floor(u/6e4)}m ago`:u<864e5?`${Math.floor(u/36e5)}h ago`:new Date(c).toLocaleDateString()}function bh(c){return c.derivedTitle||c.displayName||c.label||c.subject||c.key}function W1({sessionKey:c,onClose:u}){const{gateway:f,connected:r}=De(),[d,m]=b.useState([]),[y,g]=b.useState(!0),h=b.useRef(null);return b.useEffect(()=>{!f||!r||f.request("chat.history",{sessionKey:c,limit:100}).then(x=>{if(!Array.isArray(x==null?void 0:x.messages))return;const S=x.messages.map(j=>({role:String(j.role??"unknown"),text:t0(j.content??j.text??j.message??"")})).filter(j=>j.text&&(j.role==="user"||j.role==="assistant"));m(S)}).catch(()=>{}).finally(()=>g(!1))},[f,r,c]),b.useEffect(()=>{var x;(x=h.current)==null||x.scrollTo({top:h.current.scrollHeight})},[d]),n.jsxs("div",{className:"mt-2 rounded-lg border border-surface-200 bg-surface-50",children:[n.jsxs("div",{className:"flex items-center justify-between border-b border-surface-200 px-4 py-2",children:[n.jsxs("p",{className:"text-xs font-medium text-surface-600",children:["Chat History (",d.length," messages)"]}),n.jsx("button",{onClick:u,className:"text-xs text-surface-400 hover:text-surface-600 transition-colors",children:"Close"})]}),n.jsx("div",{ref:h,className:"max-h-[400px] overflow-y-auto p-4 space-y-2.5",children:y?n.jsx("div",{className:"py-8 text-center",children:n.jsx(We,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"})}):d.length===0?n.jsx("p",{className:"py-6 text-center text-xs text-surface-400",children:"No messages in this session"}):d.map((x,S)=>n.jsx("div",{className:Pe("max-w-[85%] rounded-lg px-3.5 py-2 text-sm whitespace-pre-wrap leading-relaxed",x.role==="user"?"ml-auto bg-primary-600 text-white":"bg-white text-surface-800 border border-surface-200"),children:x.text},S))})]})}function F1(){const{gateway:c,connected:u}=De(),[f,r]=b.useState([]),[d,m]=b.useState(!0),[y,g]=b.useState(""),[h,x]=b.useState(null),[S,j]=b.useState(null);function A(){!c||!u||(m(!0),c.request("sessions.list",{}).then(C=>r(Array.isArray(C==null?void 0:C.sessions)?C.sessions:[])).catch(()=>{}).finally(()=>m(!1)))}b.useEffect(()=>{A()},[c,u]);async function D(C){if(!(!c||!confirm("Reset this session? This will clear its history."))){x(C);try{await c.request("sessions.reset",{key:C}),S===C&&j(null),A()}catch{}x(null)}}async function E(C){if(!(!c||!confirm("Delete this session? This cannot be undone."))){x(C);try{await c.request("sessions.delete",{key:C}),r(v=>v.filter(_=>_.key!==C)),S===C&&j(null)}catch{}x(null)}}if(d)return n.jsx(rt,{});const M=f.filter(C=>{var _,z,L;if(!y)return!0;const v=y.toLowerCase();return bh(C).toLowerCase().includes(v)||C.key.toLowerCase().includes(v)||((_=C.lastMessagePreview)==null?void 0:_.toLowerCase().includes(v))||((z=C.channel)==null?void 0:z.toLowerCase().includes(v))||((L=C.agentId)==null?void 0:L.toLowerCase().includes(v))});return n.jsxs("div",{children:[n.jsx(ia,{title:"Sessions",description:"View and manage active conversations",actions:n.jsxs("button",{onClick:A,className:"btn-secondary",children:[n.jsx(ic,{className:"h-4 w-4"}),"Refresh"]})}),n.jsxs("div",{className:"relative mb-4",children:[n.jsx(Qh,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),n.jsx("input",{className:"input !pl-10",placeholder:"Search by title, channel, agent...",value:y,onChange:C=>g(C.target.value)})]}),n.jsx("div",{className:"space-y-2",children:M.map(C=>{const v=bh(C),_=S===C.key;return n.jsxs("div",{children:[n.jsx("div",{className:Pe("card transition-colors",_&&"border-primary-300 bg-primary-50/20"),children:n.jsxs("div",{className:"flex items-start gap-3",children:[n.jsxs("button",{onClick:()=>j(_?null:C.key),className:"flex flex-1 items-start gap-3 min-w-0 text-left",children:[n.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-blue-50 mt-0.5",children:n.jsx(ws,{className:"h-4 w-4 text-blue-600"})}),n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-surface-900 truncate",children:v}),C.lastMessagePreview&&n.jsx("p",{className:"mt-0.5 text-xs text-surface-500 line-clamp-2",children:C.lastMessagePreview}),n.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 text-[11px] text-surface-400",children:[C.agentId&&n.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:C.agentId}),C.channel&&n.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:C.channel}),C.kind&&C.kind!=="unknown"&&n.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:C.kind}),C.updatedAt&&n.jsx("span",{children:$1(C.updatedAt)})]})]}),n.jsx(xn,{className:Pe("mt-1 h-4 w-4 shrink-0 text-surface-300 transition-transform",_&&"rotate-180 text-primary-600")})]}),n.jsxs("div",{className:"flex shrink-0 items-center gap-1 ml-1",children:[n.jsx("button",{onClick:()=>D(C.key),disabled:h===C.key,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-amber-600",title:"Reset session",children:h===C.key?n.jsx(We,{className:"h-3.5 w-3.5 animate-spin"}):n.jsx(Xh,{className:"h-3.5 w-3.5"})}),n.jsx("button",{onClick:()=>E(C.key),disabled:h===C.key,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-red-600",title:"Delete session",children:n.jsx(na,{className:"h-3.5 w-3.5"})})]})]})}),_&&n.jsx(W1,{sessionKey:C.key,onClose:()=>j(null)})]},C.key)})}),M.length===0&&n.jsx("div",{className:"py-12 text-center text-sm text-surface-400",children:y?"No sessions match your search":"No active sessions"})]})}function I1(){const{gateway:c,connected:u}=De(),[f,r]=b.useState(""),[d,m]=b.useState(!0),[y,g]=b.useState(!1),[h,x]=b.useState(null),[S,j]=b.useState(null),[A,D]=b.useState([]);b.useEffect(()=>{!c||!u||Promise.all([c.request("config.get"),c.request("health").catch(()=>null),c.request("models.list").catch(()=>({models:[]}))]).then(([M,C,v])=>{r(JSON.stringify((M==null?void 0:M.config)??{},null,2)),j(C),D(Array.isArray(v==null?void 0:v.models)?v.models:[]),m(!1)})},[c,u]);async function E(){if(c){g(!0),x(null);try{const M=JSON.parse(f);await c.request("config.set",{config:M}),x({ok:!0,msg:"Configuration saved. Some changes may require a restart."})}catch(M){x({ok:!1,msg:M instanceof Error?M.message:"Failed to save"})}g(!1)}}return d?n.jsx(rt,{}):n.jsxs("div",{children:[n.jsx(ia,{title:"Settings",description:"System configuration and health"}),n.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[n.jsx("div",{className:"lg:col-span-2 space-y-6",children:n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[n.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Configuration"}),n.jsx("p",{className:"text-xs text-surface-400",children:"openclaw.json"})]}),n.jsx("textarea",{className:"input min-h-[400px] resize-y font-mono text-xs leading-relaxed",value:f,onChange:M=>{r(M.target.value),x(null)},spellCheck:!1}),h&&n.jsxs("div",{className:`mt-3 flex items-start gap-2 rounded-lg p-3 text-sm ${h.ok?"bg-emerald-50 text-emerald-700":"bg-red-50 text-red-700"}`,children:[h.ok?n.jsx(Pi,{className:"mt-0.5 h-4 w-4 shrink-0"}):n.jsx(Cs,{className:"mt-0.5 h-4 w-4 shrink-0"}),n.jsx("span",{children:h.msg})]}),n.jsx("div",{className:"mt-3 flex gap-3",children:n.jsxs("button",{onClick:E,disabled:y,className:"btn-primary",children:[y?n.jsx(We,{className:"h-4 w-4 animate-spin"}):n.jsx(pn,{className:"h-4 w-4"}),"Save Configuration"]})})]})}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"card",children:[n.jsx("h3",{className:"mb-3 text-sm font-semibold text-surface-900",children:"System Health"}),S?n.jsxs("div",{className:"space-y-2 text-sm",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(bs,{className:"h-4 w-4 text-surface-400"}),n.jsx("span",{className:"text-surface-600",children:"Status:"}),n.jsx("span",{className:"badge-green",children:"Healthy"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(jg,{className:"h-4 w-4 text-surface-400"}),n.jsx("span",{className:"text-surface-600",children:"Version:"}),n.jsx("span",{className:"text-surface-900 font-mono text-xs",children:S.version??"unknown"})]})]}):n.jsx("p",{className:"text-sm text-surface-400",children:"Health data unavailable"})]}),n.jsxs("div",{className:"card",children:[n.jsx("h3",{className:"mb-3 text-sm font-semibold text-surface-900",children:"Available Models"}),n.jsxs("div",{className:"space-y-1",children:[A.length>0?A.slice(0,10).map(M=>n.jsxs("div",{className:"rounded px-2 py-1.5 text-xs",children:[n.jsx("p",{className:"font-mono text-surface-700",children:M.id}),M.provider&&n.jsx("p",{className:"text-surface-400",children:M.provider})]},M.id)):n.jsx("p",{className:"text-sm text-surface-400",children:"No models configured"}),A.length>10&&n.jsxs("p",{className:"text-xs text-surface-400",children:["+",A.length-10," more"]})]})]})]})]})]})}function $i(c){const u=a0(c.missing);return c.disabled?"disabled":c.blockedByAllowlist&&u?"both":c.blockedByAllowlist?"blocked":u?"missing":"enabled"}const zr={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 a0(c){return c.bins.length>0||c.anyBins.length>0||c.env.length>0||c.config.length>0||c.os.length>0}function P1(){const{gateway:c,connected:u}=De(),[f,r]=b.useState([]),[d,m]=b.useState(!0),[y,g]=b.useState(""),[h,x]=b.useState(null),[S,j]=b.useState(null),[A,D]=b.useState(null),[E,M]=b.useState(new Set),[C,v]=b.useState("all");function _(){!c||!u||(m(!0),c.request("skills.status",{}).then(B=>r(Array.isArray(B==null?void 0:B.skills)?B.skills:[])).catch(()=>{}).finally(()=>m(!1)))}b.useEffect(()=>{_()},[c,u]);async function z(B){if(!c)return;const I=$i(B)!=="enabled";x(B.skillKey);try{await c.request("skills.update",{skillKey:B.skillKey,enabled:I}),_()}catch{}x(null)}async function L(B,Z){if(!c)return;const I=`${B}:${Z}`;j(I),D(null);try{const ne=await c.request("skills.install",{name:B,installId:Z,timeoutMs:12e4});ne!=null&&ne.ok?(D({key:B,ok:!0,msg:"Installed successfully"}),_()):D({key:B,ok:!1,msg:(ne==null?void 0:ne.message)??"Install failed"})}catch(ne){D({key:B,ok:!1,msg:ne instanceof Error?ne.message:"Install failed"})}j(null)}function W(B){M(Z=>{const I=new Set(Z);return I.has(B)?I.delete(B):I.add(B),I})}if(d)return n.jsx(rt,{});const J=f.filter(B=>{var I;if(C!=="all"&&$i(B)!==C)return!1;if(!y)return!0;const Z=y.toLowerCase();return B.skillKey.toLowerCase().includes(Z)||B.name.toLowerCase().includes(Z)||((I=B.description)==null?void 0:I.toLowerCase().includes(Z))}),V={enabled:0,disabled:0,blocked:0,missing:0,both:0};for(const B of f)V[$i(B)]++;return n.jsxs("div",{children:[n.jsx(ia,{title:"Skills",description:"Browse and manage agent skills",actions:n.jsxs("button",{onClick:_,className:"btn-secondary",children:[n.jsx(ic,{className:"h-4 w-4"}),"Refresh"]})}),n.jsxs("div",{className:"mb-4 space-y-3",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsxs("div",{className:"relative flex-1",children:[n.jsx(Qh,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),n.jsx("input",{className:"input !pl-10",placeholder:"Search skills...",value:y,onChange:B=>g(B.target.value)})]}),n.jsxs("span",{className:"text-xs text-surface-500",children:[J.length," / ",f.length]})]}),n.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[n.jsxs("button",{onClick:()=>v("all"),className:Pe("rounded-full px-3 py-1 text-xs font-medium transition-colors",C==="all"?"bg-surface-900 text-white":"bg-surface-100 text-surface-600 hover:bg-surface-200"),children:["All (",f.length,")"]}),["enabled","blocked","missing","disabled"].map(B=>V[B]>0&&n.jsxs("button",{onClick:()=>v(C===B?"all":B),className:Pe("rounded-full px-3 py-1 text-xs font-medium transition-colors",C===B?"bg-surface-900 text-white":`${zr[B].cls} hover:opacity-80`),children:[zr[B].label," (",V[B],")"]},B))]})]}),n.jsx("div",{className:"space-y-2",children:J.map(B=>{const Z=$i(B),I=zr[Z],ne=E.has(B.skillKey),Le=a0(B.missing);return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[n.jsx("button",{onClick:()=>W(B.skillKey),className:"shrink-0 text-surface-400 hover:text-surface-600",children:ne?n.jsx(xn,{className:"h-4 w-4"}):n.jsx(la,{className:"h-4 w-4"})}),n.jsx("div",{className:Pe("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",Z==="enabled"?"bg-primary-100":"bg-surface-100"),children:B.emoji?n.jsx("span",{className:"text-lg",children:B.emoji}):n.jsx(sc,{className:Pe("h-4 w-4",Z==="enabled"?"text-primary-600":"text-surface-400")})}),n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n.jsx("p",{className:"text-sm font-medium text-surface-900",children:B.name}),n.jsx("span",{className:Pe("shrink-0 rounded px-1.5 py-0.5 text-[10px] font-medium",I.cls),children:I.label})]}),B.description&&n.jsx("p",{className:"text-xs text-surface-400 truncate",children:B.description})]})]}),n.jsx("button",{onClick:()=>z(B),disabled:h===B.skillKey,className:"ml-3 shrink-0",title:Z==="enabled"?"Disable this skill":"Enable this skill",children:h===B.skillKey?n.jsx(We,{className:"h-5 w-5 animate-spin text-surface-400"}):Z==="enabled"?n.jsx(Rg,{className:"h-6 w-6 text-primary-600"}):n.jsx(Dg,{className:"h-6 w-6 text-surface-300"})})]}),ne&&n.jsxs("div",{className:"mt-3 border-t border-surface-100 pt-3 space-y-2.5",children:[n.jsxs("div",{className:"grid gap-2 sm:grid-cols-2 text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[n.jsx("span",{className:"font-medium text-surface-700",children:"Key:"}),n.jsx("code",{className:"font-mono",children:B.skillKey})]}),n.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[n.jsx("span",{className:"font-medium text-surface-700",children:"Source:"}),n.jsx("span",{children:B.source})]}),B.primaryEnv&&n.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[n.jsx(Qr,{className:"h-3 w-3"}),n.jsx("span",{className:"font-medium text-surface-700",children:"API Key env:"}),n.jsx("code",{className:"font-mono",children:B.primaryEnv})]}),B.homepage&&n.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[n.jsx("span",{className:"font-medium text-surface-700",children:"Homepage:"}),n.jsx("a",{href:B.homepage,target:"_blank",rel:"noreferrer",className:"text-primary-600 hover:underline truncate",children:B.homepage})]})]}),B.blockedByAllowlist&&n.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-amber-50 p-2.5 text-xs text-amber-800",children:[n.jsx(zg,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Blocked by allowlist"}),n.jsxs("p",{className:"text-amber-600",children:["This bundled skill is not in"," ",n.jsx("code",{className:"font-mono",children:"skills.allowBundled"}),". Add"," ",n.jsxs("code",{className:"font-mono",children:['"',B.skillKey,'"']})," to the allowlist in Settings to unblock."]})]})]}),Le&&n.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-2.5 text-xs text-red-800",children:[n.jsx(Ug,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),n.jsxs("div",{children:[n.jsx("p",{className:"font-medium",children:"Missing requirements"}),n.jsxs("ul",{className:"mt-1 space-y-0.5 text-red-700",children:[B.missing.bins.length>0&&n.jsxs("li",{children:["Commands not found:"," ",n.jsx("code",{className:"font-mono",children:B.missing.bins.join(", ")})]}),B.missing.anyBins.length>0&&n.jsxs("li",{children:["Need one of:"," ",n.jsx("code",{className:"font-mono",children:B.missing.anyBins.join(", ")})]}),B.missing.env.length>0&&n.jsxs("li",{children:["Missing env vars:"," ",n.jsx("code",{className:"font-mono",children:B.missing.env.join(", ")})]}),B.missing.config.length>0&&n.jsxs("li",{children:["Missing config:"," ",n.jsx("code",{className:"font-mono",children:B.missing.config.join(", ")})]}),B.missing.os.length>0&&n.jsxs("li",{children:["Requires OS:"," ",n.jsx("code",{className:"font-mono",children:B.missing.os.join(", ")})]})]})]})]}),Array.isArray(B.install)&&B.install.length>0&&Le&&n.jsxs("div",{className:"rounded-lg bg-blue-50 p-2.5",children:[n.jsxs("p",{className:"text-xs font-medium text-blue-800 mb-2",children:[n.jsx(uh,{className:"inline h-3 w-3 mr-1"}),"Install missing dependencies"]}),n.jsx("div",{className:"flex flex-wrap gap-2",children:B.install.map(Ve=>{const at=`${B.name}:${Ve.id}`,we=S===at;return n.jsxs("button",{onClick:()=>L(B.name,Ve.id),disabled:we||S!==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:[we?n.jsx(We,{className:"h-3 w-3 animate-spin"}):n.jsx(uh,{className:"h-3 w-3"}),Ve.label,Ve.bins.length>0&&n.jsxs("span",{className:"text-blue-400 font-mono",children:["(",Ve.bins.join(", "),")"]})]},Ve.id)})}),(A==null?void 0:A.key)===B.name&&n.jsxs("div",{className:Pe("mt-2 text-xs",A.ok?"text-emerald-700":"text-red-700"),children:[A.ok?n.jsx(Pi,{className:"inline h-3 w-3 mr-1"}):n.jsx(ch,{className:"inline h-3 w-3 mr-1"}),A.msg]})]}),Z==="enabled"&&n.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-emerald-50 p-2.5 text-xs text-emerald-700",children:[n.jsx(Pi,{className:"h-3.5 w-3.5 shrink-0"}),n.jsx("span",{children:"All requirements met. Skill is active."})]}),B.disabled&&n.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-surface-100 p-2.5 text-xs text-surface-600",children:[n.jsx(ch,{className:"h-3.5 w-3.5 shrink-0"}),n.jsx("span",{children:"Explicitly disabled in config. Click the toggle to re-enable."})]})]})]},B.skillKey)})}),J.length===0&&n.jsx("div",{className:"py-12 text-center text-sm text-surface-400",children:y||C!=="all"?"No skills match your filter":"No skills available"})]})}function ev(){return n.jsx(Dy,{children:n.jsxs(ft,{element:n.jsx(Qg,{}),children:[n.jsx(ft,{index:!0,element:n.jsx(H1,{})}),n.jsx(ft,{path:"agents",element:n.jsx(u1,{})}),n.jsx(ft,{path:"agents/new",element:n.jsx(Vg,{})}),n.jsx(ft,{path:"agents/:agentId",element:n.jsx(dh,{})}),n.jsx(ft,{path:"agents/:agentId/:tab",element:n.jsx(dh,{})}),n.jsx(ft,{path:"channels",element:n.jsx(R1,{})}),n.jsx(ft,{path:"groups",element:n.jsx(B1,{})}),n.jsx(ft,{path:"models",element:n.jsx(J1,{})}),n.jsx(ft,{path:"skills",element:n.jsx(P1,{})}),n.jsx(ft,{path:"sessions",element:n.jsx(F1,{})}),n.jsx(ft,{path:"cron",element:n.jsx(U1,{})}),n.jsx(ft,{path:"settings",element:n.jsx(I1,{})}),n.jsx(ft,{path:"*",element:n.jsx(zy,{to:"/",replace:!0})})]})})}function tv(){const{authenticated:c}=De();return c?n.jsx(ev,{}):n.jsx(Y1,{})}Op.createRoot(document.getElementById("root")).render(n.jsx(b.StrictMode,{children:n.jsx(lg,{basename:"/operator",children:n.jsx(Yg,{children:n.jsx(tv,{})})})}));