samarthya-bot 2.2.1 → 2.3.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.
- package/CHANGELOG.md +25 -0
- package/README.md +340 -353
- package/backend/bin/samarthya.js +29 -10
- package/backend/config/constants.js +4 -4
- package/backend/controllers/chatController.js +72 -0
- package/backend/controllers/telegramController.js +8 -0
- package/backend/package.json +1 -1
- package/backend/public/assets/index-DiMx9ERJ.css +1 -0
- package/backend/public/assets/index-Dn5WYZTH.js +32 -0
- package/backend/public/index.html +186 -16
- package/backend/public/robots.txt +32 -0
- package/backend/public/sitemap.xml +39 -0
- package/backend/services/agent/commandService.js +168 -0
- package/backend/services/llm/llmService.js +8 -0
- package/backend/services/planner/plannerService.js +17 -0
- package/backend/services/security/sandboxService.js +11 -4
- package/backend/services/system/platform.js +150 -0
- package/backend/services/tools/toolRegistry.js +521 -36
- package/backend/services/worker/workerClient.js +141 -29
- package/package.json +1 -1
- package/backend/public/assets/index-6PCzI3K2.js +0 -40
- package/backend/public/assets/index-6TF5jVRQ.js +0 -149
- package/backend/public/assets/index-B0U7rt6f.js +0 -46
- package/backend/public/assets/index-BF0RZh9i.js +0 -149
- package/backend/public/assets/index-BFRAq8Y1.js +0 -149
- package/backend/public/assets/index-CGw8cc8z.js +0 -149
- package/backend/public/assets/index-Ckf0GO1B.css +0 -1
- package/backend/public/assets/index-Cx0Ei-z7.js +0 -149
- package/backend/public/assets/index-DIPdcLv-.js +0 -25
- package/backend/public/assets/index-Da1E-MYB.js +0 -53
- package/backend/public/assets/index-DdCKkq38.js +0 -149
- package/backend/public/assets/index-Do4jNsZS.js +0 -19
- package/backend/public/assets/index-DyjpBYmS.js +0 -51
- package/backend/public/assets/index-DzlXcaXT.js +0 -149
- package/backend/public/assets/index-J7XSVHCz.css +0 -1
- package/backend/public/assets/index-Ui-pyZvK.js +0 -25
- package/backend/public/assets/index-kzffNwzo.js +0 -149
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function u(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function s(f){if(f.ep)return;f.ep=!0;const h=u(f);fetch(f.href,h)}})();function sm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Cu={exports:{}},ni={};var yp;function Rg(){if(yp)return ni;yp=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function u(s,f,h){var p=null;if(h!==void 0&&(p=""+h),f.key!==void 0&&(p=""+f.key),"key"in f){h={};for(var g in f)g!=="key"&&(h[g]=f[g])}else h=f;return f=h.ref,{$$typeof:i,type:s,key:p,ref:f!==void 0?f:null,props:h}}return ni.Fragment=o,ni.jsx=u,ni.jsxs=u,ni}var gp;function Tg(){return gp||(gp=1,Cu.exports=Rg()),Cu.exports}var c=Tg(),zu={exports:{}},ue={};var xp;function Cg(){if(xp)return ue;xp=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),M=Symbol.iterator;function U(S){return S===null||typeof S!="object"?null:(S=M&&S[M]||S["@@iterator"],typeof S=="function"?S:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,C={};function Q(S,B,Y){this.props=S,this.context=B,this.refs=C,this.updater=Y||T}Q.prototype.isReactComponent={},Q.prototype.setState=function(S,B){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,B,"setState")},Q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function P(){}P.prototype=Q.prototype;function X(S,B,Y){this.props=S,this.context=B,this.refs=C,this.updater=Y||T}var ie=X.prototype=new P;ie.constructor=X,_(ie,Q.prototype),ie.isPureReactComponent=!0;var ce=Array.isArray;function ye(){}var F={H:null,A:null,T:null,S:null},_e=Object.prototype.hasOwnProperty;function Be(S,B,Y){var V=Y.ref;return{$$typeof:i,type:S,key:B,ref:V!==void 0?V:null,props:Y}}function rt(S,B){return Be(S.type,B,S.props)}function $e(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function K(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return B[Y]})}var de=/\/+/g;function ve(S,B){return typeof S=="object"&&S!==null&&S.key!=null?K(""+S.key):B.toString(36)}function Oe(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ye,ye):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function D(S,B,Y,V,I){var se=typeof S;(se==="undefined"||se==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(se){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case i:case o:Te=!0;break;case b:return Te=S._init,D(Te(S._payload),B,Y,V,I)}}if(Te)return I=I(S),Te=V===""?"."+ve(S,0):V,ce(I)?(Y="",Te!=null&&(Y=Te.replace(de,"$&/")+"/"),D(I,B,Y,"",function(cl){return cl})):I!=null&&($e(I)&&(I=rt(I,Y+(I.key==null||S&&S.key===I.key?"":(""+I.key).replace(de,"$&/")+"/")+Te)),B.push(I)),1;Te=0;var ot=V===""?".":V+":";if(ce(S))for(var Ke=0;Ke<S.length;Ke++)V=S[Ke],se=ot+ve(V,Ke),Te+=D(V,B,Y,se,I);else if(Ke=U(S),typeof Ke=="function")for(S=Ke.call(S),Ke=0;!(V=S.next()).done;)V=V.value,se=ot+ve(V,Ke++),Te+=D(V,B,Y,se,I);else if(se==="object"){if(typeof S.then=="function")return D(Oe(S),B,Y,V,I);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Te}function Z(S,B,Y){if(S==null)return S;var V=[],I=0;return D(S,V,"","",function(se){return B.call(Y,se,I++)}),V}function ae(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return S._result.default;throw S._result}var Re=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},J={map:Z,forEach:function(S,B,Y){Z(S,function(){B.apply(this,arguments)},Y)},count:function(S){var B=0;return Z(S,function(){B++}),B},toArray:function(S){return Z(S,function(B){return B})||[]},only:function(S){if(!$e(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ue.Activity=x,ue.Children=J,ue.Component=Q,ue.Fragment=u,ue.Profiler=f,ue.PureComponent=X,ue.StrictMode=s,ue.Suspense=v,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ue.__COMPILER_RUNTIME={__proto__:null,c:function(S){return F.H.useMemoCache(S)}},ue.cache=function(S){return function(){return S.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(S,B,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var V=_({},S.props),I=S.key;if(B!=null)for(se in B.key!==void 0&&(I=""+B.key),B)!_e.call(B,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&B.ref===void 0||(V[se]=B[se]);var se=arguments.length-2;if(se===1)V.children=Y;else if(1<se){for(var Te=Array(se),ot=0;ot<se;ot++)Te[ot]=arguments[ot+2];V.children=Te}return Be(S.type,I,V)},ue.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},ue.createElement=function(S,B,Y){var V,I={},se=null;if(B!=null)for(V in B.key!==void 0&&(se=""+B.key),B)_e.call(B,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(I[V]=B[V]);var Te=arguments.length-2;if(Te===1)I.children=Y;else if(1<Te){for(var ot=Array(Te),Ke=0;Ke<Te;Ke++)ot[Ke]=arguments[Ke+2];I.children=ot}if(S&&S.defaultProps)for(V in Te=S.defaultProps,Te)I[V]===void 0&&(I[V]=Te[V]);return Be(S,se,I)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(S){return{$$typeof:g,render:S}},ue.isValidElement=$e,ue.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:ae}},ue.memo=function(S,B){return{$$typeof:y,type:S,compare:B===void 0?null:B}},ue.startTransition=function(S){var B=F.T,Y={};F.T=Y;try{var V=S(),I=F.S;I!==null&&I(Y,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(ye,Re)}catch(se){Re(se)}finally{B!==null&&Y.types!==null&&(B.types=Y.types),F.T=B}},ue.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ue.use=function(S){return F.H.use(S)},ue.useActionState=function(S,B,Y){return F.H.useActionState(S,B,Y)},ue.useCallback=function(S,B){return F.H.useCallback(S,B)},ue.useContext=function(S){return F.H.useContext(S)},ue.useDebugValue=function(){},ue.useDeferredValue=function(S,B){return F.H.useDeferredValue(S,B)},ue.useEffect=function(S,B){return F.H.useEffect(S,B)},ue.useEffectEvent=function(S){return F.H.useEffectEvent(S)},ue.useId=function(){return F.H.useId()},ue.useImperativeHandle=function(S,B,Y){return F.H.useImperativeHandle(S,B,Y)},ue.useInsertionEffect=function(S,B){return F.H.useInsertionEffect(S,B)},ue.useLayoutEffect=function(S,B){return F.H.useLayoutEffect(S,B)},ue.useMemo=function(S,B){return F.H.useMemo(S,B)},ue.useOptimistic=function(S,B){return F.H.useOptimistic(S,B)},ue.useReducer=function(S,B,Y){return F.H.useReducer(S,B,Y)},ue.useRef=function(S){return F.H.useRef(S)},ue.useState=function(S){return F.H.useState(S)},ue.useSyncExternalStore=function(S,B,Y){return F.H.useSyncExternalStore(S,B,Y)},ue.useTransition=function(){return F.H.useTransition()},ue.version="19.2.4",ue}var vp;function Pu(){return vp||(vp=1,zu.exports=Cg()),zu.exports}var A=Pu();const Ir=sm(A);var wu={exports:{}},li={},_u={exports:{}},Ou={};var bp;function zg(){return bp||(bp=1,(function(i){function o(D,Z){var ae=D.length;D.push(Z);e:for(;0<ae;){var Re=ae-1>>>1,J=D[Re];if(0<f(J,Z))D[Re]=Z,D[ae]=J,ae=Re;else break e}}function u(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var Z=D[0],ae=D.pop();if(ae!==Z){D[0]=ae;e:for(var Re=0,J=D.length,S=J>>>1;Re<S;){var B=2*(Re+1)-1,Y=D[B],V=B+1,I=D[V];if(0>f(Y,ae))V<J&&0>f(I,Y)?(D[Re]=I,D[V]=ae,Re=V):(D[Re]=Y,D[B]=ae,Re=B);else if(V<J&&0>f(I,ae))D[Re]=I,D[V]=ae,Re=V;else break e}}return Z}function f(D,Z){var ae=D.sortIndex-Z.sortIndex;return ae!==0?ae:D.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var p=Date,g=p.now();i.unstable_now=function(){return p.now()-g}}var v=[],y=[],b=1,x=null,M=3,U=!1,T=!1,_=!1,C=!1,Q=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function ie(D){for(var Z=u(y);Z!==null;){if(Z.callback===null)s(y);else if(Z.startTime<=D)s(y),Z.sortIndex=Z.expirationTime,o(v,Z);else break;Z=u(y)}}function ce(D){if(_=!1,ie(D),!T)if(u(v)!==null)T=!0,ye||(ye=!0,K());else{var Z=u(y);Z!==null&&Oe(ce,Z.startTime-D)}}var ye=!1,F=-1,_e=5,Be=-1;function rt(){return C?!0:!(i.unstable_now()-Be<_e)}function $e(){if(C=!1,ye){var D=i.unstable_now();Be=D;var Z=!0;try{e:{T=!1,_&&(_=!1,P(F),F=-1),U=!0;var ae=M;try{t:{for(ie(D),x=u(v);x!==null&&!(x.expirationTime>D&&rt());){var Re=x.callback;if(typeof Re=="function"){x.callback=null,M=x.priorityLevel;var J=Re(x.expirationTime<=D);if(D=i.unstable_now(),typeof J=="function"){x.callback=J,ie(D),Z=!0;break t}x===u(v)&&s(v),ie(D)}else s(v);x=u(v)}if(x!==null)Z=!0;else{var S=u(y);S!==null&&Oe(ce,S.startTime-D),Z=!1}}break e}finally{x=null,M=ae,U=!1}Z=void 0}}finally{Z?K():ye=!1}}}var K;if(typeof X=="function")K=function(){X($e)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,ve=de.port2;de.port1.onmessage=$e,K=function(){ve.postMessage(null)}}else K=function(){Q($e,0)};function Oe(D,Z){F=Q(function(){D(i.unstable_now())},Z)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_e=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return M},i.unstable_next=function(D){switch(M){case 1:case 2:case 3:var Z=3;break;default:Z=M}var ae=M;M=Z;try{return D()}finally{M=ae}},i.unstable_requestPaint=function(){C=!0},i.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ae=M;M=D;try{return Z()}finally{M=ae}},i.unstable_scheduleCallback=function(D,Z,ae){var Re=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Re+ae:Re):ae=Re,D){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=ae+J,D={id:b++,callback:Z,priorityLevel:D,startTime:ae,expirationTime:J,sortIndex:-1},ae>Re?(D.sortIndex=ae,o(y,D),u(v)===null&&D===u(y)&&(_?(P(F),F=-1):_=!0,Oe(ce,ae-Re))):(D.sortIndex=J,o(v,D),T||U||(T=!0,ye||(ye=!0,K()))),D},i.unstable_shouldYield=rt,i.unstable_wrapCallback=function(D){var Z=M;return function(){var ae=M;M=Z;try{return D.apply(this,arguments)}finally{M=ae}}}})(Ou)),Ou}var Sp;function wg(){return Sp||(Sp=1,_u.exports=zg()),_u.exports}var Du={exports:{}},ht={};var jp;function _g(){if(jp)return ht;jp=1;var i=Pu();function o(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var s={d:{f:u,r:function(){throw Error(o(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(v,y,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:x==null?null:""+x,children:v,containerInfo:y,implementation:b}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ht.createPortal=function(v,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(o(299));return h(v,y,null,b)},ht.flushSync=function(v){var y=p.T,b=s.p;try{if(p.T=null,s.p=2,v)return v()}finally{p.T=y,s.p=b,s.d.f()}},ht.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},ht.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},ht.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var b=y.as,x=g(b,y.crossOrigin),M=typeof y.integrity=="string"?y.integrity:void 0,U=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:M,fetchPriority:U}):b==="script"&&s.d.X(v,{crossOrigin:x,integrity:M,fetchPriority:U,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ht.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=g(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},ht.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,x=g(b,y.crossOrigin);s.d.L(v,b,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ht.preloadModule=function(v,y){if(typeof v=="string")if(y){var b=g(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},ht.requestFormReset=function(v){s.d.r(v)},ht.unstable_batchedUpdates=function(v,y){return v(y)},ht.useFormState=function(v,y,b){return p.H.useFormState(v,y,b)},ht.useFormStatus=function(){return p.H.useHostTransitionStatus()},ht.version="19.2.4",ht}var Ep;function Og(){if(Ep)return Du.exports;Ep=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Du.exports=_g(),Du.exports}var Ap;function Dg(){if(Ap)return li;Ap=1;var i=wg(),o=Pu(),u=Og();function s(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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 p(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 v(e){if(h(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,n=t;;){var l=a.return;if(l===null)break;var r=l.alternate;if(r===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===a)return v(l),e;if(r===n)return v(l),t;r=r.sibling}throw Error(s(188))}if(a.return!==n.return)a=l,n=r;else{for(var d=!1,m=l.child;m;){if(m===a){d=!0,a=l,n=r;break}if(m===n){d=!0,n=l,a=r;break}m=m.sibling}if(!d){for(m=r.child;m;){if(m===a){d=!0,a=r,n=l;break}if(m===n){d=!0,n=r,a=l;break}m=m.sibling}if(!d)throw Error(s(189))}}if(a.alternate!==n)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,M=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),rt=Symbol.for("react.memo_cache_sentinel"),$e=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=$e&&e[$e]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case Q:return"Profiler";case C:return"StrictMode";case ce:return"Suspense";case ye:return"SuspenseList";case Be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case X:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}var Oe=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Re=[],J=-1;function S(e){return{current:e}}function B(e){0>J||(e.current=Re[J],Re[J]=null,J--)}function Y(e,t){J++,Re[J]=e.current,e.current=t}var V=S(null),I=S(null),se=S(null),Te=S(null);function ot(e,t){switch(Y(se,t),Y(I,e),Y(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Lh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lh(t),e=qh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(V),Y(V,e)}function Ke(){B(V),B(I),B(se)}function cl(e){e.memoizedState!==null&&Y(Te,e);var t=V.current,a=qh(t,e.type);t!==a&&(Y(I,e),Y(V,a))}function vi(e){I.current===e&&(B(V),B(I)),Te.current===e&&(B(Te),Pl._currentValue=ae)}var so,pc;function Wa(e){if(so===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);so=t&&t[1]||"",pc=-1<a.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+so+e+pc}var uo=!1;function co(e,t){if(!e||uo)return"";uo=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={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(k){var O=k}Reflect.construct(e,[],q)}else{try{q.call()}catch(k){O=k}e.call(q.prototype)}}else{try{throw Error()}catch(k){O=k}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(k){if(k&&O&&typeof k.stack=="string")return[k.stack,O.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),d=r[0],m=r[1];if(d&&m){var j=d.split(`
|
|
4
|
-
`),w=m.split(`
|
|
5
|
-
`);for(l=n=0;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;for(;l<w.length&&!w[l].includes("DetermineComponentFrameRoot");)l++;if(n===j.length||l===w.length)for(n=j.length-1,l=w.length-1;1<=n&&0<=l&&j[n]!==w[l];)l--;for(;1<=n&&0<=l;n--,l--)if(j[n]!==w[l]){if(n!==1||l!==1)do if(n--,l--,0>l||j[n]!==w[l]){var H=`
|
|
6
|
-
`+j[n].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=n&&0<=l);break}}}finally{uo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wa(a):""}function a0(e,t){switch(e.tag){case 26:case 27:case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return e.child!==t&&t!==null?Wa("Suspense Fallback"):Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return co(e.type,!1);case 11:return co(e.type.render,!1);case 1:return co(e.type,!0);case 31:return Wa("Activity");default:return""}}function mc(e){try{var t="",a=null;do t+=a0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
7
|
-
Error generating stack: `+n.message+`
|
|
8
|
-
`+n.stack}}var fo=Object.prototype.hasOwnProperty,ho=i.unstable_scheduleCallback,po=i.unstable_cancelCallback,n0=i.unstable_shouldYield,l0=i.unstable_requestPaint,Rt=i.unstable_now,i0=i.unstable_getCurrentPriorityLevel,yc=i.unstable_ImmediatePriority,gc=i.unstable_UserBlockingPriority,bi=i.unstable_NormalPriority,r0=i.unstable_LowPriority,xc=i.unstable_IdlePriority,o0=i.log,s0=i.unstable_setDisableYieldValue,fl=null,Tt=null;function Ra(e){if(typeof o0=="function"&&s0(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(fl,e)}catch{}}var Ct=Math.clz32?Math.clz32:f0,u0=Math.log,c0=Math.LN2;function f0(e){return e>>>=0,e===0?32:31-(u0(e)/c0|0)|0}var Si=256,ji=262144,Ei=4194304;function $a(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 Ai(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var l=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~r,n!==0?l=$a(n):(d&=m,d!==0?l=$a(d):a||(a=m&~e,a!==0&&(l=$a(a))))):(m=n&~r,m!==0?l=$a(m):d!==0?l=$a(d):a||(a=n&~e,a!==0&&(l=$a(a)))),l===0?0:t!==0&&t!==l&&(t&r)===0&&(r=l&-l,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:l}function dl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function d0(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 vc(){var e=Ei;return Ei<<=1,(Ei&62914560)===0&&(Ei=4194304),e}function mo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function h0(e,t,a,n,l,r){var d=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 m=e.entanglements,j=e.expirationTimes,w=e.hiddenUpdates;for(a=d&~a;0<a;){var H=31-Ct(a),q=1<<H;m[H]=0,j[H]=-1;var O=w[H];if(O!==null)for(w[H]=null,H=0;H<O.length;H++){var k=O[H];k!==null&&(k.lane&=-536870913)}a&=~q}n!==0&&bc(e,n,0),r!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function bc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ct(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Sc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ct(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function jc(e,t){var a=t&-t;return a=(a&42)!==0?1:yo(a),(a&(e.suspendedLanes|t))!==0?0:a}function yo(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 go(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ec(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:up(e.type))}function Ac(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var Ta=Math.random().toString(36).slice(2),st="__reactFiber$"+Ta,yt="__reactProps$"+Ta,bn="__reactContainer$"+Ta,xo="__reactEvents$"+Ta,p0="__reactListeners$"+Ta,m0="__reactHandles$"+Ta,Rc="__reactResources$"+Ta,pl="__reactMarker$"+Ta;function vo(e){delete e[st],delete e[yt],delete e[xo],delete e[p0],delete e[m0]}function Sn(e){var t=e[st];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bn]||a[st]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Kh(e);e!==null;){if(a=e[st])return a;e=Kh(e)}return t}e=a,a=e.parentNode}return null}function jn(e){if(e=e[st]||e[bn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ml(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function En(e){var t=e[Rc];return t||(t=e[Rc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[pl]=!0}var Tc=new Set,Cc={};function Ia(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(Cc[e]=t,e=0;e<t.length;e++)Tc.add(t[e])}var y0=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]*$"),zc={},wc={};function g0(e){return fo.call(wc,e)?!0:fo.call(zc,e)?!1:y0.test(e)?wc[e]=!0:(zc[e]=!0,!1)}function Ri(e,t,a){if(g0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ti(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 ra(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x0(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bo(e){if(!e._valueTracker){var t=_c(e)?"checked":"value";e._valueTracker=x0(e,t,""+e[t])}}function Oc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=_c(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Ci(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 v0=/[\n"\\]/g;function Ht(e){return e.replace(v0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function So(e,t,a,n,l,r,d,m){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?jo(e,d,kt(t)):a!=null?jo(e,d,kt(a)):n!=null&&e.removeAttribute("value"),l==null&&r!=null&&(e.defaultChecked=!!r),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+kt(m):e.removeAttribute("name")}function Dc(e,t,a,n,l,r,d,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){bo(e);return}a=a!=null?""+kt(a):"",t=t!=null?""+kt(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),bo(e)}function jo(e,t,a){t==="number"&&Ci(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Rn(e,t,a,n){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&n&&(e[a].defaultSelected=!0)}else{for(a=""+kt(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,n&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Mc(e,t,a){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+kt(a):""}function Bc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(s(92));if(Oe(n)){if(1<n.length)throw Error(s(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=kt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),bo(e)}function Tn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var b0=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 Nc(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||b0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function kc(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var l in t)n=t[l],t.hasOwnProperty(l)&&a[l]!==n&&Nc(e,l,n)}else for(var r in t)t.hasOwnProperty(r)&&Nc(e,r,t[r])}function Eo(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 S0=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"]]),j0=/^[\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 zi(e){return j0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var Ao=null;function Ro(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cn=null,zn=null;function Hc(e){var t=jn(e);if(t&&(e=t.stateNode)){var a=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(So(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="'+Ht(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var l=n[yt]||null;if(!l)throw Error(s(90));So(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&Oc(n)}break e;case"textarea":Mc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Rn(e,!!a.multiple,t,!1)}}}var To=!1;function Uc(e,t,a){if(To)return e(t,a);To=!0;try{var n=e(t);return n}finally{if(To=!1,(Cn!==null||zn!==null)&&(mr(),Cn&&(t=Cn,e=zn,zn=Cn=null,Hc(t),e)))for(t=0;t<e.length;t++)Hc(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[yt]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Co=!1;if(sa)try{var gl={};Object.defineProperty(gl,"passive",{get:function(){Co=!0}}),window.addEventListener("test",gl,gl),window.removeEventListener("test",gl,gl)}catch{Co=!1}var Ca=null,zo=null,wi=null;function Lc(){if(wi)return wi;var e,t=zo,a=t.length,n,l="value"in Ca?Ca.value:Ca.textContent,r=l.length;for(e=0;e<a&&t[e]===l[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===l[r-n];n++);return wi=l.slice(e,1<n?1-n:void 0)}function _i(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 Oi(){return!0}function qc(){return!1}function gt(e){function t(a,n,l,r,d){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Oi:qc,this.isPropagationStopped=qc,this}return x(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=Oi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=gt(Pa),xl=x({},Pa,{view:0,detail:0}),E0=gt(xl),wo,_o,vl,Mi=x({},xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Do,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!==vl&&(vl&&e.type==="mousemove"?(wo=e.screenX-vl.screenX,_o=e.screenY-vl.screenY):_o=wo=0,vl=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),Gc=gt(Mi),A0=x({},Mi,{dataTransfer:0}),R0=gt(A0),T0=x({},xl,{relatedTarget:0}),Oo=gt(T0),C0=x({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),z0=gt(C0),w0=x({},Pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_0=gt(w0),O0=x({},Pa,{data:0}),Yc=gt(O0),D0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M0={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"},B0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B0[e])?!!t[e]:!1}function Do(){return N0}var k0=x({},xl,{key:function(e){if(e.key){var t=D0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?M0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Do,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H0=gt(k0),U0=x({},Mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vc=gt(U0),L0=x({},xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Do}),q0=gt(L0),G0=x({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y0=gt(G0),V0=x({},Mi,{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}),X0=gt(V0),Q0=x({},Pa,{newState:0,oldState:0}),Z0=gt(Q0),K0=[9,13,27,32],Mo=sa&&"CompositionEvent"in window,bl=null;sa&&"documentMode"in document&&(bl=document.documentMode);var J0=sa&&"TextEvent"in window&&!bl,Xc=sa&&(!Mo||bl&&8<bl&&11>=bl),Qc=" ",Zc=!1;function Kc(e,t){switch(e){case"keyup":return K0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function F0(e,t){switch(e){case"compositionend":return Jc(t);case"keypress":return t.which!==32?null:(Zc=!0,Qc);case"textInput":return e=t.data,e===Qc&&Zc?null:e;default:return null}}function W0(e,t){if(wn)return e==="compositionend"||!Mo&&Kc(e,t)?(e=Lc(),wi=zo=Ca=null,wn=!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 Xc&&t.locale!=="ko"?null:t.data;default:return null}}var $0={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 Fc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$0[e.type]:t==="textarea"}function Wc(e,t,a,n){Cn?zn?zn.push(n):zn=[n]:Cn=n,t=jr(t,"onChange"),0<t.length&&(a=new Di("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Sl=null,jl=null;function I0(e){Mh(e,0)}function Bi(e){var t=ml(e);if(Oc(t))return e}function $c(e,t){if(e==="change")return t}var Ic=!1;if(sa){var Bo;if(sa){var No="oninput"in document;if(!No){var Pc=document.createElement("div");Pc.setAttribute("oninput","return;"),No=typeof Pc.oninput=="function"}Bo=No}else Bo=!1;Ic=Bo&&(!document.documentMode||9<document.documentMode)}function ef(){Sl&&(Sl.detachEvent("onpropertychange",tf),jl=Sl=null)}function tf(e){if(e.propertyName==="value"&&Bi(jl)){var t=[];Wc(t,jl,e,Ro(e)),Uc(I0,t)}}function P0(e,t,a){e==="focusin"?(ef(),Sl=t,jl=a,Sl.attachEvent("onpropertychange",tf)):e==="focusout"&&ef()}function ey(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(jl)}function ty(e,t){if(e==="click")return Bi(t)}function ay(e,t){if(e==="input"||e==="change")return Bi(t)}function ny(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:ny;function El(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!fo.call(t,l)||!zt(e[l],t[l]))return!1}return!0}function af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nf(e,t){var a=af(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=af(a)}}function lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ci(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=Ci(e.document)}return t}function ko(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 ly=sa&&"documentMode"in document&&11>=document.documentMode,_n=null,Ho=null,Al=null,Uo=!1;function of(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Uo||_n==null||_n!==Ci(n)||(n=_n,"selectionStart"in n&&ko(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Al&&El(Al,n)||(Al=n,n=jr(Ho,"onSelect"),0<n.length&&(t=new Di("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=_n)))}function en(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var On={animationend:en("Animation","AnimationEnd"),animationiteration:en("Animation","AnimationIteration"),animationstart:en("Animation","AnimationStart"),transitionrun:en("Transition","TransitionRun"),transitionstart:en("Transition","TransitionStart"),transitioncancel:en("Transition","TransitionCancel"),transitionend:en("Transition","TransitionEnd")},Lo={},sf={};sa&&(sf=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function tn(e){if(Lo[e])return Lo[e];if(!On[e])return e;var t=On[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in sf)return Lo[e]=t[a];return e}var uf=tn("animationend"),cf=tn("animationiteration"),ff=tn("animationstart"),iy=tn("transitionrun"),ry=tn("transitionstart"),oy=tn("transitioncancel"),df=tn("transitionend"),hf=new Map,qo="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(" ");qo.push("scrollEnd");function Kt(e,t){hf.set(e,t),Ia(t,[e])}var Ni=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=[],Dn=0,Go=0;function ki(){for(var e=Dn,t=Go=Dn=0;t<e;){var a=Ut[t];Ut[t++]=null;var n=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var r=Ut[t];if(Ut[t++]=null,n!==null&&l!==null){var d=n.pending;d===null?l.next=l:(l.next=d.next,d.next=l),n.pending=l}r!==0&&pf(a,l,r)}}function Hi(e,t,a,n){Ut[Dn++]=e,Ut[Dn++]=t,Ut[Dn++]=a,Ut[Dn++]=n,Go|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Yo(e,t,a,n){return Hi(e,t,a,n),Ui(e)}function an(e,t){return Hi(e,null,null,t),Ui(e)}function pf(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var l=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(l=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,l&&t!==null&&(l=31-Ct(a),e=r.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),r):null}function Ui(e){if(50<Zl)throw Zl=0,$s=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Mn={};function sy(e,t,a,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,a,n){return new sy(e,t,a,n)}function Vo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var a=e.alternate;return a===null?(a=wt(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 mf(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 Li(e,t,a,n,l,r){var d=0;if(n=e,typeof e=="function")Vo(e)&&(d=1);else if(typeof e=="string")d=hg(e,a,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Be:return e=wt(31,a,t,l),e.elementType=Be,e.lanes=r,e;case _:return nn(a.children,l,r,t);case C:d=8,l|=24;break;case Q:return e=wt(12,a,t,l|2),e.elementType=Q,e.lanes=r,e;case ce:return e=wt(13,a,t,l),e.elementType=ce,e.lanes=r,e;case ye:return e=wt(19,a,t,l),e.elementType=ye,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case P:d=9;break e;case ie:d=11;break e;case F:d=14;break e;case _e:d=16,n=null;break e}d=29,a=Error(s(130,e===null?"null":typeof e,"")),n=null}return t=wt(d,a,t,l),t.elementType=e,t.type=n,t.lanes=r,t}function nn(e,t,a,n){return e=wt(7,e,n,t),e.lanes=a,e}function Xo(e,t,a){return e=wt(6,e,null,t),e.lanes=a,e}function yf(e){var t=wt(18,null,null,0);return t.stateNode=e,t}function Qo(e,t,a){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gf=new WeakMap;function Lt(e,t){if(typeof e=="object"&&e!==null){var a=gf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:mc(t)},gf.set(e,t),t)}return{value:e,source:t,stack:mc(t)}}var Bn=[],Nn=0,qi=null,Rl=0,qt=[],Gt=0,za=null,Pt=1,ea="";function ca(e,t){Bn[Nn++]=Rl,Bn[Nn++]=qi,qi=e,Rl=t}function xf(e,t,a){qt[Gt++]=Pt,qt[Gt++]=ea,qt[Gt++]=za,za=e;var n=Pt;e=ea;var l=32-Ct(n)-1;n&=~(1<<l),a+=1;var r=32-Ct(t)+l;if(30<r){var d=l-l%5;r=(n&(1<<d)-1).toString(32),n>>=d,l-=d,Pt=1<<32-Ct(t)+l|a<<l|n,ea=r+e}else Pt=1<<r|a<<l|n,ea=e}function Zo(e){e.return!==null&&(ca(e,1),xf(e,1,0))}function Ko(e){for(;e===qi;)qi=Bn[--Nn],Bn[Nn]=null,Rl=Bn[--Nn],Bn[Nn]=null;for(;e===za;)za=qt[--Gt],qt[Gt]=null,ea=qt[--Gt],qt[Gt]=null,Pt=qt[--Gt],qt[Gt]=null}function vf(e,t){qt[Gt++]=Pt,qt[Gt++]=ea,qt[Gt++]=za,Pt=t.id,ea=t.overflow,za=e}var ut=null,Ge=null,Ae=!1,wa=null,Yt=!1,Jo=Error(s(519));function _a(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(Lt(t,e)),Jo}function bf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[st]=e,t[yt]=n,a){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(a=0;a<Jl.length;a++)xe(Jl[a],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Dc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Bc(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||Hh(t.textContent,a)?(n.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),n.onScroll!=null&&xe("scroll",t),n.onScrollEnd!=null&&xe("scrollend",t),n.onClick!=null&&(t.onclick=oa),t=!0):t=!1,t||_a(e,!0)}function Sf(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ut=ut.return}}function kn(e){if(e!==ut)return!1;if(!Ae)return Sf(e),Ae=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||du(e.type,e.memoizedProps)),a=!a),a&&Ge&&_a(e),Sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Zh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Zh(e)}else t===27?(t=Ge,Xa(e.type)?(e=gu,gu=null,Ge=e):Ge=t):Ge=ut?Xt(e.stateNode.nextSibling):null;return!0}function ln(){Ge=ut=null,Ae=!1}function Fo(){var e=wa;return e!==null&&(St===null?St=e:St.push.apply(St,e),wa=null),e}function Tl(e){wa===null?wa=[e]:wa.push(e)}var Wo=S(null),rn=null,fa=null;function Oa(e,t,a){Y(Wo,t._currentValue),t._currentValue=a}function da(e){e._currentValue=Wo.current,B(Wo)}function $o(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Io(e,t,a,n){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var r=l.dependencies;if(r!==null){var d=l.child;r=r.firstContext;e:for(;r!==null;){var m=r;r=l;for(var j=0;j<t.length;j++)if(m.context===t[j]){r.lanes|=a,m=r.alternate,m!==null&&(m.lanes|=a),$o(r.return,a,e),n||(d=null);break e}r=m.next}}else if(l.tag===18){if(d=l.return,d===null)throw Error(s(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),$o(d,a,e),d=null}else d=l.child;if(d!==null)d.return=l;else for(d=l;d!==null;){if(d===e){d=null;break}if(l=d.sibling,l!==null){l.return=d.return,d=l;break}d=d.return}l=d}}function Hn(e,t,a,n){e=null;for(var l=t,r=!1;l!==null;){if(!r){if((l.flags&524288)!==0)r=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var d=l.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var m=l.type;zt(l.pendingProps.value,d.value)||(e!==null?e.push(m):e=[m])}}else if(l===Te.current){if(d=l.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Pl):e=[Pl])}l=l.return}e!==null&&Io(t,e,a,n),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function on(e){rn=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return jf(rn,e)}function Yi(e,t){return rn===null&&on(e),jf(e,t)}function jf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},fa===null){if(e===null)throw Error(s(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return a}var uy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},cy=i.unstable_scheduleCallback,fy=i.unstable_NormalPriority,Ie={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Po(){return{controller:new uy,data:new Map,refCount:0}}function Cl(e){e.refCount--,e.refCount===0&&cy(fy,function(){e.controller.abort()})}var zl=null,es=0,Un=0,Ln=null;function dy(e,t){if(zl===null){var a=zl=[];es=0,Un=nu(),Ln={status:"pending",value:void 0,then:function(n){a.push(n)}}}return es++,t.then(Ef,Ef),t}function Ef(){if(--es===0&&zl!==null){Ln!==null&&(Ln.status="fulfilled");var e=zl;zl=null,Un=0,Ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hy(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var Af=D.S;D.S=function(e,t){oh=Rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&dy(e,t),Af!==null&&Af(e,t)};var sn=S(null);function ts(){var e=sn.current;return e!==null?e:Le.pooledCache}function Vi(e,t){t===null?Y(sn,sn.current):Y(sn,t.pool)}function Rf(){var e=ts();return e===null?null:{parent:Ie._currentValue,pool:e}}var qn=Error(s(460)),as=Error(s(474)),Xi=Error(s(542)),Qi={then:function(){}};function Tf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(oa,oa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wf(e),e;default:if(typeof t.status=="string")t.then(oa,oa);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=n}},function(n){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wf(e),e}throw cn=t,qn}}function un(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(cn=a,qn):a}}var cn=null;function zf(){if(cn===null)throw Error(s(459));var e=cn;return cn=null,e}function wf(e){if(e===qn||e===Xi)throw Error(s(483))}var Gn=null,wl=0;function Zi(e){var t=wl;return wl+=1,Gn===null&&(Gn=[]),Cf(Gn,e,t)}function _l(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ki(e,t){throw t.$$typeof===M?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _f(e){function t(R,E){if(e){var z=R.deletions;z===null?(R.deletions=[E],R.flags|=16):z.push(E)}}function a(R,E){if(!e)return null;for(;E!==null;)t(R,E),E=E.sibling;return null}function n(R){for(var E=new Map;R!==null;)R.key!==null?E.set(R.key,R):E.set(R.index,R),R=R.sibling;return E}function l(R,E){return R=ua(R,E),R.index=0,R.sibling=null,R}function r(R,E,z){return R.index=z,e?(z=R.alternate,z!==null?(z=z.index,z<E?(R.flags|=67108866,E):z):(R.flags|=67108866,E)):(R.flags|=1048576,E)}function d(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function m(R,E,z,L){return E===null||E.tag!==6?(E=Xo(z,R.mode,L),E.return=R,E):(E=l(E,z),E.return=R,E)}function j(R,E,z,L){var ne=z.type;return ne===_?H(R,E,z.props.children,L,z.key):E!==null&&(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===_e&&un(ne)===E.type)?(E=l(E,z.props),_l(E,z),E.return=R,E):(E=Li(z.type,z.key,z.props,null,R.mode,L),_l(E,z),E.return=R,E)}function w(R,E,z,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==z.containerInfo||E.stateNode.implementation!==z.implementation?(E=Qo(z,R.mode,L),E.return=R,E):(E=l(E,z.children||[]),E.return=R,E)}function H(R,E,z,L,ne){return E===null||E.tag!==7?(E=nn(z,R.mode,L,ne),E.return=R,E):(E=l(E,z),E.return=R,E)}function q(R,E,z){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Xo(""+E,R.mode,z),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case U:return z=Li(E.type,E.key,E.props,null,R.mode,z),_l(z,E),z.return=R,z;case T:return E=Qo(E,R.mode,z),E.return=R,E;case _e:return E=un(E),q(R,E,z)}if(Oe(E)||K(E))return E=nn(E,R.mode,z,null),E.return=R,E;if(typeof E.then=="function")return q(R,Zi(E),z);if(E.$$typeof===X)return q(R,Yi(R,E),z);Ki(R,E)}return null}function O(R,E,z,L){var ne=E!==null?E.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ne!==null?null:m(R,E,""+z,L);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case U:return z.key===ne?j(R,E,z,L):null;case T:return z.key===ne?w(R,E,z,L):null;case _e:return z=un(z),O(R,E,z,L)}if(Oe(z)||K(z))return ne!==null?null:H(R,E,z,L,null);if(typeof z.then=="function")return O(R,E,Zi(z),L);if(z.$$typeof===X)return O(R,E,Yi(R,z),L);Ki(R,z)}return null}function k(R,E,z,L,ne){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return R=R.get(z)||null,m(E,R,""+L,ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case U:return R=R.get(L.key===null?z:L.key)||null,j(E,R,L,ne);case T:return R=R.get(L.key===null?z:L.key)||null,w(E,R,L,ne);case _e:return L=un(L),k(R,E,z,L,ne)}if(Oe(L)||K(L))return R=R.get(z)||null,H(E,R,L,ne,null);if(typeof L.then=="function")return k(R,E,z,Zi(L),ne);if(L.$$typeof===X)return k(R,E,z,Yi(E,L),ne);Ki(E,L)}return null}function W(R,E,z,L){for(var ne=null,Ce=null,te=E,he=E=0,Se=null;te!==null&&he<z.length;he++){te.index>he?(Se=te,te=null):Se=te.sibling;var ze=O(R,te,z[he],L);if(ze===null){te===null&&(te=Se);break}e&&te&&ze.alternate===null&&t(R,te),E=r(ze,E,he),Ce===null?ne=ze:Ce.sibling=ze,Ce=ze,te=Se}if(he===z.length)return a(R,te),Ae&&ca(R,he),ne;if(te===null){for(;he<z.length;he++)te=q(R,z[he],L),te!==null&&(E=r(te,E,he),Ce===null?ne=te:Ce.sibling=te,Ce=te);return Ae&&ca(R,he),ne}for(te=n(te);he<z.length;he++)Se=k(te,R,he,z[he],L),Se!==null&&(e&&Se.alternate!==null&&te.delete(Se.key===null?he:Se.key),E=r(Se,E,he),Ce===null?ne=Se:Ce.sibling=Se,Ce=Se);return e&&te.forEach(function(Fa){return t(R,Fa)}),Ae&&ca(R,he),ne}function re(R,E,z,L){if(z==null)throw Error(s(151));for(var ne=null,Ce=null,te=E,he=E=0,Se=null,ze=z.next();te!==null&&!ze.done;he++,ze=z.next()){te.index>he?(Se=te,te=null):Se=te.sibling;var Fa=O(R,te,ze.value,L);if(Fa===null){te===null&&(te=Se);break}e&&te&&Fa.alternate===null&&t(R,te),E=r(Fa,E,he),Ce===null?ne=Fa:Ce.sibling=Fa,Ce=Fa,te=Se}if(ze.done)return a(R,te),Ae&&ca(R,he),ne;if(te===null){for(;!ze.done;he++,ze=z.next())ze=q(R,ze.value,L),ze!==null&&(E=r(ze,E,he),Ce===null?ne=ze:Ce.sibling=ze,Ce=ze);return Ae&&ca(R,he),ne}for(te=n(te);!ze.done;he++,ze=z.next())ze=k(te,R,he,ze.value,L),ze!==null&&(e&&ze.alternate!==null&&te.delete(ze.key===null?he:ze.key),E=r(ze,E,he),Ce===null?ne=ze:Ce.sibling=ze,Ce=ze);return e&&te.forEach(function(Ag){return t(R,Ag)}),Ae&&ca(R,he),ne}function He(R,E,z,L){if(typeof z=="object"&&z!==null&&z.type===_&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case U:e:{for(var ne=z.key;E!==null;){if(E.key===ne){if(ne=z.type,ne===_){if(E.tag===7){a(R,E.sibling),L=l(E,z.props.children),L.return=R,R=L;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===_e&&un(ne)===E.type){a(R,E.sibling),L=l(E,z.props),_l(L,z),L.return=R,R=L;break e}a(R,E);break}else t(R,E);E=E.sibling}z.type===_?(L=nn(z.props.children,R.mode,L,z.key),L.return=R,R=L):(L=Li(z.type,z.key,z.props,null,R.mode,L),_l(L,z),L.return=R,R=L)}return d(R);case T:e:{for(ne=z.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===z.containerInfo&&E.stateNode.implementation===z.implementation){a(R,E.sibling),L=l(E,z.children||[]),L.return=R,R=L;break e}else{a(R,E);break}else t(R,E);E=E.sibling}L=Qo(z,R.mode,L),L.return=R,R=L}return d(R);case _e:return z=un(z),He(R,E,z,L)}if(Oe(z))return W(R,E,z,L);if(K(z)){if(ne=K(z),typeof ne!="function")throw Error(s(150));return z=ne.call(z),re(R,E,z,L)}if(typeof z.then=="function")return He(R,E,Zi(z),L);if(z.$$typeof===X)return He(R,E,Yi(R,z),L);Ki(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,E!==null&&E.tag===6?(a(R,E.sibling),L=l(E,z),L.return=R,R=L):(a(R,E),L=Xo(z,R.mode,L),L.return=R,R=L),d(R)):a(R,E)}return function(R,E,z,L){try{wl=0;var ne=He(R,E,z,L);return Gn=null,ne}catch(te){if(te===qn||te===Xi)throw te;var Ce=wt(29,te,null,R.mode);return Ce.lanes=L,Ce.return=R,Ce}}}var fn=_f(!0),Of=_f(!1),Da=!1;function ns(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ls(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 Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(we&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,t=Ui(e),pf(e,null,a),t}return Hi(e,n,t,a),Ui(e)}function Ol(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Sc(e,a)}}function is(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?l=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?l=r=t:r=r.next=t}else l=r=t;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var rs=!1;function Dl(){if(rs){var e=Ln;if(e!==null)throw e}}function Ml(e,t,a,n){rs=!1;var l=e.updateQueue;Da=!1;var r=l.firstBaseUpdate,d=l.lastBaseUpdate,m=l.shared.pending;if(m!==null){l.shared.pending=null;var j=m,w=j.next;j.next=null,d===null?r=w:d.next=w,d=j;var H=e.alternate;H!==null&&(H=H.updateQueue,m=H.lastBaseUpdate,m!==d&&(m===null?H.firstBaseUpdate=w:m.next=w,H.lastBaseUpdate=j))}if(r!==null){var q=l.baseState;d=0,H=w=j=null,m=r;do{var O=m.lane&-536870913,k=O!==m.lane;if(k?(be&O)===O:(n&O)===O){O!==0&&O===Un&&(rs=!0),H!==null&&(H=H.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var W=e,re=m;O=t;var He=a;switch(re.tag){case 1:if(W=re.payload,typeof W=="function"){q=W.call(He,q,O);break e}q=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=re.payload,O=typeof W=="function"?W.call(He,q,O):W,O==null)break e;q=x({},q,O);break e;case 2:Da=!0}}O=m.callback,O!==null&&(e.flags|=64,k&&(e.flags|=8192),k=l.callbacks,k===null?l.callbacks=[O]:k.push(O))}else k={lane:O,tag:m.tag,payload:m.payload,callback:m.callback,next:null},H===null?(w=H=k,j=q):H=H.next=k,d|=O;if(m=m.next,m===null){if(m=l.shared.pending,m===null)break;k=m,m=k.next,k.next=null,l.lastBaseUpdate=k,l.shared.pending=null}}while(!0);H===null&&(j=q),l.baseState=j,l.firstBaseUpdate=w,l.lastBaseUpdate=H,r===null&&(l.shared.lanes=0),La|=d,e.lanes=d,e.memoizedState=q}}function Df(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Mf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Df(a[e],t)}var Yn=S(null),Ji=S(0);function Bf(e,t){e=Sa,Y(Ji,e),Y(Yn,t),Sa=e|t.baseLanes}function os(){Y(Ji,Sa),Y(Yn,Yn.current)}function ss(){Sa=Ji.current,B(Yn),B(Ji)}var _t=S(null),Vt=null;function Na(e){var t=e.alternate;Y(Je,Je.current&1),Y(_t,e),Vt===null&&(t===null||Yn.current!==null||t.memoizedState!==null)&&(Vt=e)}function us(e){Y(Je,Je.current),Y(_t,e),Vt===null&&(Vt=e)}function Nf(e){e.tag===22?(Y(Je,Je.current),Y(_t,e),Vt===null&&(Vt=e)):ka()}function ka(){Y(Je,Je.current),Y(_t,_t.current)}function Ot(e){B(_t),Vt===e&&(Vt=null),B(Je)}var Je=S(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||mu(a)||yu(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,fe=null,Ne=null,Pe=null,Wi=!1,Vn=!1,dn=!1,$i=0,Bl=0,Xn=null,py=0;function Qe(){throw Error(s(321))}function cs(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!zt(e[a],t[a]))return!1;return!0}function fs(e,t,a,n,l,r){return ha=r,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?xd:Ts,dn=!1,r=a(n,l),dn=!1,Vn&&(r=Hf(t,a,n,l)),kf(e),r}function kf(e){D.H=Hl;var t=Ne!==null&&Ne.next!==null;if(ha=0,Pe=Ne=fe=null,Wi=!1,Bl=0,Xn=null,t)throw Error(s(300));e===null||et||(e=e.dependencies,e!==null&&Gi(e)&&(et=!0))}function Hf(e,t,a,n){fe=e;var l=0;do{if(Vn&&(Xn=null),Bl=0,Vn=!1,25<=l)throw Error(s(301));if(l+=1,Pe=Ne=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}D.H=vd,r=t(a,n)}while(Vn);return r}function my(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Nl(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(fe.flags|=1024),t}function ds(){var e=$i!==0;return $i=0,e}function hs(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ps(e){if(Wi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wi=!1}ha=0,Pe=Ne=fe=null,Vn=!1,Bl=$i=0,Xn=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?fe.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Fe(){if(Ne===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Pe===null?fe.memoizedState:Pe.next;if(t!==null)Pe=t,Ne=e;else{if(e===null)throw fe.alternate===null?Error(s(467)):Error(s(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Pe===null?fe.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function Ii(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nl(e){var t=Bl;return Bl+=1,Xn===null&&(Xn=[]),e=Cf(Xn,e,t),t=fe,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?xd:Ts),e}function Pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nl(e);if(e.$$typeof===X)return ct(e)}throw Error(s(438,String(e)))}function ms(e){var t=null,a=fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=fe.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ii(),fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=rt;return t.index++,a}function pa(e,t){return typeof t=="function"?t(e):t}function er(e){var t=Fe();return ys(t,Ne,e)}function ys(e,t,a){var n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=a;var l=e.baseQueue,r=n.pending;if(r!==null){if(l!==null){var d=l.next;l.next=r.next,r.next=d}t.baseQueue=l=r,n.pending=null}if(r=e.baseState,l===null)e.memoizedState=r;else{t=l.next;var m=d=null,j=null,w=t,H=!1;do{var q=w.lane&-536870913;if(q!==w.lane?(be&q)===q:(ha&q)===q){var O=w.revertLane;if(O===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),q===Un&&(H=!0);else if((ha&O)===O){w=w.next,O===Un&&(H=!0);continue}else q={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},j===null?(m=j=q,d=r):j=j.next=q,fe.lanes|=O,La|=O;q=w.action,dn&&a(r,q),r=w.hasEagerState?w.eagerState:a(r,q)}else O={lane:q,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},j===null?(m=j=O,d=r):j=j.next=O,fe.lanes|=q,La|=q;w=w.next}while(w!==null&&w!==t);if(j===null?d=r:j.next=m,!zt(r,e.memoizedState)&&(et=!0,H&&(a=Ln,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=j,n.lastRenderedState=r}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function gs(e){var t=Fe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var n=a.dispatch,l=a.pending,r=t.memoizedState;if(l!==null){a.pending=null;var d=l=l.next;do r=e(r,d.action),d=d.next;while(d!==l);zt(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Uf(e,t,a){var n=fe,l=Fe(),r=Ae;if(r){if(a===void 0)throw Error(s(407));a=a()}else a=t();var d=!zt((Ne||l).memoizedState,a);if(d&&(l.memoizedState=a,et=!0),l=l.queue,bs(Gf.bind(null,n,l,e),[e]),l.getSnapshot!==t||d||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},qf.bind(null,n,l,a,t),null),Le===null)throw Error(s(349));r||(ha&127)!==0||Lf(n,t,a)}return a}function Lf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=fe.updateQueue,t===null?(t=Ii(),fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qf(e,t,a,n){t.value=a,t.getSnapshot=n,Yf(t)&&Vf(e)}function Gf(e,t,a){return a(function(){Yf(t)&&Vf(e)})}function Yf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!zt(e,a)}catch{return!0}}function Vf(e){var t=an(e,2);t!==null&&jt(t,e,2)}function xs(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),dn){Ra(!0);try{a()}finally{Ra(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function Xf(e,t,a,n){return e.baseState=a,ys(e,Ne,typeof n=="function"?n:pa)}function yy(e,t,a,n,l){if(nr(e))throw Error(s(485));if(e=t.action,e!==null){var r={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};D.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Qf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Qf(e,t){var a=t.action,n=t.payload,l=e.state;if(t.isTransition){var r=D.T,d={};D.T=d;try{var m=a(l,n),j=D.S;j!==null&&j(d,m),Zf(e,t,m)}catch(w){vs(e,t,w)}finally{r!==null&&d.types!==null&&(r.types=d.types),D.T=r}}else try{r=a(l,n),Zf(e,t,r)}catch(w){vs(e,t,w)}}function Zf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Kf(e,t,n)},function(n){return vs(e,t,n)}):Kf(e,t,a)}function Kf(e,t,a){t.status="fulfilled",t.value=a,Jf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Qf(e,a)))}function vs(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Jf(t),t=t.next;while(t!==n)}e.action=null}function Jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ff(e,t){return t}function Wf(e,t){if(Ae){var a=Le.formState;if(a!==null){e:{var n=fe;if(Ae){if(Ge){t:{for(var l=Ge,r=Yt;l.nodeType!==8;){if(!r){l=null;break t}if(l=Xt(l.nextSibling),l===null){l=null;break t}}r=l.data,l=r==="F!"||r==="F"?l:null}if(l){Ge=Xt(l.nextSibling),n=l.data==="F!";break e}}_a(n)}n=!1}n&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ff,lastRenderedState:t},a.queue=n,a=md.bind(null,fe,n),n.dispatch=a,n=xs(!1),r=Rs.bind(null,fe,!1,n.queue),n=mt(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=yy.bind(null,fe,l,r,a),l.dispatch=a,n.memoizedState=e,[t,a,!1]}function $f(e){var t=Fe();return If(t,Ne,e)}function If(e,t,a){if(t=ys(e,t,Ff)[0],e=er(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Nl(t)}catch(d){throw d===qn?Xi:d}else n=t;t=Fe();var l=t.queue,r=l.dispatch;return a!==t.memoizedState&&(fe.flags|=2048,Qn(9,{destroy:void 0},gy.bind(null,l,a),null)),[n,r,e]}function gy(e,t){e.action=t}function Pf(e){var t=Fe(),a=Ne;if(a!==null)return If(t,a,e);Fe(),t=t.memoizedState,a=Fe();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Qn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=fe.updateQueue,t===null&&(t=Ii(),fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function ed(){return Fe().memoizedState}function tr(e,t,a,n){var l=mt();fe.flags|=e,l.memoizedState=Qn(1|t,{destroy:void 0},a,n===void 0?null:n)}function ar(e,t,a,n){var l=Fe();n=n===void 0?null:n;var r=l.memoizedState.inst;Ne!==null&&n!==null&&cs(n,Ne.memoizedState.deps)?l.memoizedState=Qn(t,r,a,n):(fe.flags|=e,l.memoizedState=Qn(1|t,r,a,n))}function td(e,t){tr(8390656,8,e,t)}function bs(e,t){ar(2048,8,e,t)}function xy(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=Ii(),fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function ad(e){var t=Fe().memoizedState;return xy({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function nd(e,t){return ar(4,2,e,t)}function ld(e,t){return ar(4,4,e,t)}function id(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 rd(e,t,a){a=a!=null?a.concat([e]):null,ar(4,4,id.bind(null,t,e),a)}function Ss(){}function od(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&cs(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function sd(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&cs(t,n[1]))return n[0];if(n=e(),dn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n}function js(e,t,a){return a===void 0||(ha&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=uh(),fe.lanes|=e,La|=e,a)}function ud(e,t,a,n){return zt(a,t)?a:Yn.current!==null?(e=js(e,a,n),zt(e,t)||(et=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(be&261930)===0?(et=!0,e.memoizedState=a):(e=uh(),fe.lanes|=e,La|=e,t)}function cd(e,t,a,n,l){var r=Z.p;Z.p=r!==0&&8>r?r:8;var d=D.T,m={};D.T=m,Rs(e,!1,t,a);try{var j=l(),w=D.S;if(w!==null&&w(m,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var H=hy(j,n);kl(e,t,H,Bt(e))}else kl(e,t,n,Bt(e))}catch(q){kl(e,t,{then:function(){},status:"rejected",reason:q},Bt())}finally{Z.p=r,d!==null&&m.types!==null&&(d.types=m.types),D.T=d}}function vy(){}function Es(e,t,a,n){if(e.tag!==5)throw Error(s(476));var l=fd(e).queue;cd(e,l,t,ae,a===null?vy:function(){return dd(e),a(n)})}function fd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:ae},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dd(e){var t=fd(e);t.next===null&&(t=e.alternate.memoizedState),kl(e,t.next.queue,{},Bt())}function As(){return ct(Pl)}function hd(){return Fe().memoizedState}function pd(){return Fe().memoizedState}function by(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Bt();e=Ma(a);var n=Ba(t,e,a);n!==null&&(jt(n,t,a),Ol(n,t,a)),t={cache:Po()},e.payload=t;return}t=t.return}}function Sy(e,t,a){var n=Bt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},nr(e)?yd(t,a):(a=Yo(e,t,a,n),a!==null&&(jt(a,e,n),gd(a,t,n)))}function md(e,t,a){var n=Bt();kl(e,t,a,n)}function kl(e,t,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(nr(e))yd(t,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,m=r(d,a);if(l.hasEagerState=!0,l.eagerState=m,zt(m,d))return Hi(e,t,l,0),Le===null&&ki(),!1}catch{}if(a=Yo(e,t,l,n),a!==null)return jt(a,e,n),gd(a,t,n),!0}return!1}function Rs(e,t,a,n){if(n={lane:2,revertLane:nu(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},nr(e)){if(t)throw Error(s(479))}else t=Yo(e,a,n,2),t!==null&&jt(t,e,2)}function nr(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function yd(e,t){Vn=Wi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function gd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Sc(e,a)}}var Hl={readContext:ct,use:Pi,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};Hl.useEffectEvent=Qe;var xd={readContext:ct,use:Pi,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:td,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,tr(4194308,4,id.bind(null,t,e),a)},useLayoutEffect:function(e,t){return tr(4194308,4,e,t)},useInsertionEffect:function(e,t){tr(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var n=e();if(dn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=mt();if(a!==void 0){var l=a(t);if(dn){Ra(!0);try{a(t)}finally{Ra(!1)}}}else l=t;return n.memoizedState=n.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},n.queue=e,e=e.dispatch=Sy.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,a=md.bind(null,fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ss,useDeferredValue:function(e,t){var a=mt();return js(a,e,t)},useTransition:function(){var e=xs(!1);return e=cd.bind(null,fe,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=fe,l=mt();if(Ae){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Le===null)throw Error(s(349));(be&127)!==0||Lf(n,t,a)}l.memoizedState=a;var r={value:a,getSnapshot:t};return l.queue=r,td(Gf.bind(null,n,r,e),[e]),n.flags|=2048,Qn(9,{destroy:void 0},qf.bind(null,n,r,a,t),null),a},useId:function(){var e=mt(),t=Le.identifierPrefix;if(Ae){var a=ea,n=Pt;a=(n&~(1<<32-Ct(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=$i++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=py++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:As,useFormState:Wf,useActionState:Wf,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Rs.bind(null,fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:ms,useCacheRefresh:function(){return mt().memoizedState=by.bind(null,fe)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((we&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Ts={readContext:ct,use:Pi,useCallback:od,useContext:ct,useEffect:bs,useImperativeHandle:rd,useInsertionEffect:nd,useLayoutEffect:ld,useMemo:sd,useReducer:er,useRef:ed,useState:function(){return er(pa)},useDebugValue:Ss,useDeferredValue:function(e,t){var a=Fe();return ud(a,Ne.memoizedState,e,t)},useTransition:function(){var e=er(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:Uf,useId:hd,useHostTransitionStatus:As,useFormState:$f,useActionState:$f,useOptimistic:function(e,t){var a=Fe();return Xf(a,Ne,e,t)},useMemoCache:ms,useCacheRefresh:pd};Ts.useEffectEvent=ad;var vd={readContext:ct,use:Pi,useCallback:od,useContext:ct,useEffect:bs,useImperativeHandle:rd,useInsertionEffect:nd,useLayoutEffect:ld,useMemo:sd,useReducer:gs,useRef:ed,useState:function(){return gs(pa)},useDebugValue:Ss,useDeferredValue:function(e,t){var a=Fe();return Ne===null?js(a,e,t):ud(a,Ne.memoizedState,e,t)},useTransition:function(){var e=gs(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:Uf,useId:hd,useHostTransitionStatus:As,useFormState:Pf,useActionState:Pf,useOptimistic:function(e,t){var a=Fe();return Ne!==null?Xf(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ms,useCacheRefresh:pd};vd.useEffectEvent=ad;function Cs(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var zs={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Bt(),l=Ma(n);l.payload=t,a!=null&&(l.callback=a),t=Ba(e,l,n),t!==null&&(jt(t,e,n),Ol(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Bt(),l=Ma(n);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=Ba(e,l,n),t!==null&&(jt(t,e,n),Ol(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Bt(),n=Ma(a);n.tag=2,t!=null&&(n.callback=t),t=Ba(e,n,a),t!==null&&(jt(t,e,a),Ol(t,e,a))}};function bd(e,t,a,n,l,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,d):t.prototype&&t.prototype.isPureReactComponent?!El(a,n)||!El(l,r):!0}function Sd(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&zs.enqueueReplaceState(t,t.state,null)}function hn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function jd(e){Ni(e)}function Ed(e){console.error(e)}function Ad(e){Ni(e)}function lr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Rd(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function ws(e,t,a){return a=Ma(a),a.tag=3,a.payload={element:null},a.callback=function(){lr(e,t)},a}function Td(e){return e=Ma(e),e.tag=3,e}function Cd(e,t,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var r=n.value;e.payload=function(){return l(r)},e.callback=function(){Rd(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Rd(t,a,n),typeof l!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function jy(e,t,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Hn(t,a,l,!0),a=_t.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?yr():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Qi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),eu(e,n,l)),!1;case 22:return a.flags|=65536,n===Qi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),eu(e,n,l)),!1}throw Error(s(435,a.tag))}return eu(e,n,l),yr(),!1}if(Ae)return t=_t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==Jo&&(e=Error(s(422),{cause:n}),Tl(Lt(e,a)))):(n!==Jo&&(t=Error(s(423),{cause:n}),Tl(Lt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=Lt(n,a),l=ws(e.stateNode,n,l),is(e,l),Ze!==4&&(Ze=2)),!1;var r=Error(s(520),{cause:n});if(r=Lt(r,a),Ql===null?Ql=[r]:Ql.push(r),Ze!==4&&(Ze=2),t===null)return!0;n=Lt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=ws(a.stateNode,n,e),is(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(qa===null||!qa.has(r))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Td(l),Cd(l,e,a,n),is(a,l),!1}a=a.return}while(a!==null);return!1}var _s=Error(s(461)),et=!1;function ft(e,t,a,n){t.child=e===null?Of(t,null,a,n):fn(t,e.child,a,n)}function zd(e,t,a,n,l){a=a.render;var r=t.ref;if("ref"in n){var d={};for(var m in n)m!=="ref"&&(d[m]=n[m])}else d=n;return on(t),n=fs(e,t,a,d,r,l),m=ds(),e!==null&&!et?(hs(e,t,l),ma(e,t,l)):(Ae&&m&&Zo(t),t.flags|=1,ft(e,t,n,l),t.child)}function wd(e,t,a,n,l){if(e===null){var r=a.type;return typeof r=="function"&&!Vo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,_d(e,t,r,n,l)):(e=Li(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Us(e,l)){var d=r.memoizedProps;if(a=a.compare,a=a!==null?a:El,a(d,n)&&e.ref===t.ref)return ma(e,t,l)}return t.flags|=1,e=ua(r,n),e.ref=t.ref,e.return=t,t.child=e}function _d(e,t,a,n,l){if(e!==null){var r=e.memoizedProps;if(El(r,n)&&e.ref===t.ref)if(et=!1,t.pendingProps=n=r,Us(e,l))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,ma(e,t,l)}return Os(e,t,a,n,l)}function Od(e,t,a,n){var l=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,l=0;n!==null;)l=l|n.lanes|n.childLanes,n=n.sibling;n=l&~r}else n=0,t.child=null;return Dd(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vi(t,r!==null?r.cachePool:null),r!==null?Bf(t,r):os(),Nf(t);else return n=t.lanes=536870912,Dd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Vi(t,r.cachePool),Bf(t,r),ka(),t.memoizedState=null):(e!==null&&Vi(t,null),os(),ka());return ft(e,t,l,a),t.child}function Ul(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Dd(e,t,a,n,l){var r=ts();return r=r===null?null:{parent:Ie._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Vi(t,null),os(),Nf(t),e!==null&&Hn(e,t,n,!0),t.childLanes=l,null}function ir(e,t){return t=or({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Md(e,t,a){return fn(t,e.child,null,a),e=ir(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function Ey(e,t,a){var n=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(n.mode==="hidden")return e=ir(t,n),t.lanes=536870912,Ul(null,e);if(us(t),(e=Ge)?(e=Qh(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=yf(e),a.return=t,t.child=a,ut=t,Ge=null)):e=null,e===null)throw _a(t);return t.lanes=536870912,null}return ir(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(us(t),l)if(t.flags&256)t.flags&=-257,t=Md(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(et||Hn(e,t,a,!1),l=(a&e.childLanes)!==0,et||l){if(n=Le,n!==null&&(d=jc(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,an(e,d),jt(n,e,d),_s;yr(),t=Md(e,t,a)}else e=r.treeContext,Ge=Xt(d.nextSibling),ut=t,Ae=!0,wa=null,Yt=!1,e!==null&&vf(t,e),t=ir(t,n),t.flags|=4096;return t}return e=ua(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function rr(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(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Os(e,t,a,n,l){return on(t),a=fs(e,t,a,n,void 0,l),n=ds(),e!==null&&!et?(hs(e,t,l),ma(e,t,l)):(Ae&&n&&Zo(t),t.flags|=1,ft(e,t,a,l),t.child)}function Bd(e,t,a,n,l,r){return on(t),t.updateQueue=null,a=Hf(t,n,a,l),kf(e),n=ds(),e!==null&&!et?(hs(e,t,r),ma(e,t,r)):(Ae&&n&&Zo(t),t.flags|=1,ft(e,t,a,r),t.child)}function Nd(e,t,a,n,l){if(on(t),t.stateNode===null){var r=Mn,d=a.contextType;typeof d=="object"&&d!==null&&(r=ct(d)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=zs,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},ns(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?ct(d):Mn,r.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Cs(t,a,d,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&zs.enqueueReplaceState(r,r.state,null),Ml(t,n,r,l),Dl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var m=t.memoizedProps,j=hn(a,m);r.props=j;var w=r.context,H=a.contextType;d=Mn,typeof H=="object"&&H!==null&&(d=ct(H));var q=a.getDerivedStateFromProps;H=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,H||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||w!==d)&&Sd(t,r,n,d),Da=!1;var O=t.memoizedState;r.state=O,Ml(t,n,r,l),Dl(),w=t.memoizedState,m||O!==w||Da?(typeof q=="function"&&(Cs(t,a,q,n),w=t.memoizedState),(j=Da||bd(t,a,j,n,O,w,d))?(H||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=w),r.props=n,r.state=w,r.context=d,n=j):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,ls(e,t),d=t.memoizedProps,H=hn(a,d),r.props=H,q=t.pendingProps,O=r.context,w=a.contextType,j=Mn,typeof w=="object"&&w!==null&&(j=ct(w)),m=a.getDerivedStateFromProps,(w=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==q||O!==j)&&Sd(t,r,n,j),Da=!1,O=t.memoizedState,r.state=O,Ml(t,n,r,l),Dl();var k=t.memoizedState;d!==q||O!==k||Da||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof m=="function"&&(Cs(t,a,m,n),k=t.memoizedState),(H=Da||bd(t,a,H,n,O,k,j)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(w||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,k,j),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,k,j)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=k),r.props=n,r.state=k,r.context=j,n=H):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,rr(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=fn(t,e.child,null,l),t.child=fn(t,null,a,l)):ft(e,t,a,l),t.memoizedState=r.state,e=t.child):e=ma(e,t,l),e}function kd(e,t,a,n){return ln(),t.flags|=256,ft(e,t,a,n),t.child}var Ds={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ms(e){return{baseLanes:e,cachePool:Rf()}}function Bs(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Mt),e}function Hd(e,t,a){var n=t.pendingProps,l=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),d&&(l=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(l?Na(t):ka(),(e=Ge)?(e=Qh(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:za!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=yf(e),a.return=t,t.child=a,ut=t,Ge=null)):e=null,e===null)throw _a(t);return yu(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,l?(ka(),l=t.mode,m=or({mode:"hidden",children:m},l),n=nn(n,l,a,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Ms(a),n.childLanes=Bs(e,d,a),t.memoizedState=Ds,Ul(null,n)):(Na(t),Ns(t,m))}var j=e.memoizedState;if(j!==null&&(m=j.dehydrated,m!==null)){if(r)t.flags&256?(Na(t),t.flags&=-257,t=ks(e,t,a)):t.memoizedState!==null?(ka(),t.child=e.child,t.flags|=128,t=null):(ka(),m=n.fallback,l=t.mode,n=or({mode:"visible",children:n.children},l),m=nn(m,l,a,null),m.flags|=2,n.return=t,m.return=t,n.sibling=m,t.child=n,fn(t,e.child,null,a),n=t.child,n.memoizedState=Ms(a),n.childLanes=Bs(e,d,a),t.memoizedState=Ds,t=Ul(null,n));else if(Na(t),yu(m)){if(d=m.nextSibling&&m.nextSibling.dataset,d)var w=d.dgst;d=w,n=Error(s(419)),n.stack="",n.digest=d,Tl({value:n,source:null,stack:null}),t=ks(e,t,a)}else if(et||Hn(e,t,a,!1),d=(a&e.childLanes)!==0,et||d){if(d=Le,d!==null&&(n=jc(d,a),n!==0&&n!==j.retryLane))throw j.retryLane=n,an(e,n),jt(d,e,n),_s;mu(m)||yr(),t=ks(e,t,a)}else mu(m)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Ge=Xt(m.nextSibling),ut=t,Ae=!0,wa=null,Yt=!1,e!==null&&vf(t,e),t=Ns(t,n.children),t.flags|=4096);return t}return l?(ka(),m=n.fallback,l=t.mode,j=e.child,w=j.sibling,n=ua(j,{mode:"hidden",children:n.children}),n.subtreeFlags=j.subtreeFlags&65011712,w!==null?m=ua(w,m):(m=nn(m,l,a,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,Ul(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Ms(a):(l=m.cachePool,l!==null?(j=Ie._currentValue,l=l.parent!==j?{parent:j,pool:j}:l):l=Rf(),m={baseLanes:m.baseLanes|a,cachePool:l}),n.memoizedState=m,n.childLanes=Bs(e,d,a),t.memoizedState=Ds,Ul(e.child,n)):(Na(t),a=e.child,e=a.sibling,a=ua(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function Ns(e,t){return t=or({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function or(e,t){return e=wt(22,e,null,t),e.lanes=0,e}function ks(e,t,a){return fn(t,e.child,null,a),e=Ns(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ud(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),$o(e.return,t,a)}function Hs(e,t,a,n,l,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=l,d.treeForkCount=r)}function Ld(e,t,a){var n=t.pendingProps,l=n.revealOrder,r=n.tail;n=n.children;var d=Je.current,m=(d&2)!==0;if(m?(d=d&1|2,t.flags|=128):d&=1,Y(Je,d),ft(e,t,n,a),n=Ae?Rl:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ud(e,a,t);else if(e.tag===19)Ud(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(l){case"forwards":for(a=t.child,l=null;a!==null;)e=a.alternate,e!==null&&Fi(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Hs(t,!1,l,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Fi(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Hs(t,!0,a,null,r,n);break;case"together":Hs(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ma(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),La|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Hn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ua(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ua(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Us(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function Ay(e,t,a){switch(t.tag){case 3:ot(t,t.stateNode.containerInfo),Oa(t,Ie,e.memoizedState.cache),ln();break;case 27:case 5:cl(t);break;case 4:ot(t,t.stateNode.containerInfo);break;case 10:Oa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,us(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Na(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Hd(e,t,a):(Na(t),e=ma(e,t,a),e!==null?e.sibling:null);Na(t);break;case 19:var l=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Hn(e,t,a,!1),n=(a&t.childLanes)!==0),l){if(n)return Ld(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Y(Je,Je.current),n)break;return null;case 22:return t.lanes=0,Od(e,t,a,t.pendingProps);case 24:Oa(t,Ie,e.memoizedState.cache)}return ma(e,t,a)}function qd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!Us(e,a)&&(t.flags&128)===0)return et=!1,Ay(e,t,a);et=(e.flags&131072)!==0}else et=!1,Ae&&(t.flags&1048576)!==0&&xf(t,Rl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=un(t.elementType),t.type=e,typeof e=="function")Vo(e)?(n=hn(e,n),t.tag=1,t=Nd(null,t,e,n,a)):(t.tag=0,t=Os(null,t,e,n,a));else{if(e!=null){var l=e.$$typeof;if(l===ie){t.tag=11,t=zd(null,t,e,n,a);break e}else if(l===F){t.tag=14,t=wd(null,t,e,n,a);break e}}throw t=ve(e)||e,Error(s(306,t,""))}}return t;case 0:return Os(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,l=hn(n,t.pendingProps),Nd(e,t,n,l,a);case 3:e:{if(ot(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var r=t.memoizedState;l=r.element,ls(e,t),Ml(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Oa(t,Ie,n),n!==r.cache&&Io(t,[Ie],a,!0),Dl(),n=d.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=kd(e,t,n,a);break e}else if(n!==l){l=Lt(Error(s(424)),t),Tl(l),t=kd(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ge=Xt(e.firstChild),ut=t,Ae=!0,wa=null,Yt=!0,a=Of(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ln(),n===l){t=ma(e,t,a);break e}ft(e,t,n,a)}t=t.child}return t;case 26:return rr(e,t),e===null?(a=$h(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,n=Er(se.current).createElement(a),n[st]=t,n[yt]=e,dt(n,a,e),lt(n),t.stateNode=n):t.memoizedState=$h(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return cl(t),e===null&&Ae&&(n=t.stateNode=Jh(t.type,t.pendingProps,se.current),ut=t,Yt=!0,l=Ge,Xa(t.type)?(gu=l,Ge=Xt(n.firstChild)):Ge=l),ft(e,t,t.pendingProps.children,a),rr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((l=n=Ge)&&(n=eg(n,t.type,t.pendingProps,Yt),n!==null?(t.stateNode=n,ut=t,Ge=Xt(n.firstChild),Yt=!1,l=!0):l=!1),l||_a(t)),cl(t),l=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,du(l,r)?n=null:d!==null&&du(l,d)&&(t.flags|=32),t.memoizedState!==null&&(l=fs(e,t,my,null,null,a),Pl._currentValue=l),rr(e,t),ft(e,t,n,a),t.child;case 6:return e===null&&Ae&&((e=a=Ge)&&(a=tg(a,t.pendingProps,Yt),a!==null?(t.stateNode=a,ut=t,Ge=null,e=!0):e=!1),e||_a(t)),null;case 13:return Hd(e,t,a);case 4:return ot(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=fn(t,null,n,a):ft(e,t,n,a),t.child;case 11:return zd(e,t,t.type,t.pendingProps,a);case 7:return ft(e,t,t.pendingProps,a),t.child;case 8:return ft(e,t,t.pendingProps.children,a),t.child;case 12:return ft(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Oa(t,t.type,n.value),ft(e,t,n.children,a),t.child;case 9:return l=t.type._context,n=t.pendingProps.children,on(t),l=ct(l),n=n(l),t.flags|=1,ft(e,t,n,a),t.child;case 14:return wd(e,t,t.type,t.pendingProps,a);case 15:return _d(e,t,t.type,t.pendingProps,a);case 19:return Ld(e,t,a);case 31:return Ey(e,t,a);case 22:return Od(e,t,a,t.pendingProps);case 24:return on(t),n=ct(Ie),e===null?(l=ts(),l===null&&(l=Le,r=Po(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=a),l=r),t.memoizedState={parent:n,cache:l},ns(t),Oa(t,Ie,l)):((e.lanes&a)!==0&&(ls(e,t),Ml(t,null,null,a),Dl()),l=e.memoizedState,r=t.memoizedState,l.parent!==n?(l={parent:n,cache:n},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Oa(t,Ie,n)):(n=r.cache,Oa(t,Ie,n),n!==l.cache&&Io(t,[Ie],a,!0))),ft(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ya(e){e.flags|=4}function Ls(e,t,a,n,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(hh())e.flags|=8192;else throw cn=Qi,as}else e.flags&=-16777217}function Gd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ap(t))if(hh())e.flags|=8192;else throw cn=Qi,as}function sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?vc():536870912,e.lanes|=t,Fn|=t)}function Ll(e,t){if(!Ae)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 n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Ry(e,t,a){var n=t.pendingProps;switch(Ko(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),da(Ie),Ke(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(kn(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fo())),Ye(t),null;case 26:var l=t.type,r=t.memoizedState;return e===null?(ya(t),r!==null?(Ye(t),Gd(t,r)):(Ye(t),Ls(t,l,null,n,a))):r?r!==e.memoizedState?(ya(t),Ye(t),Gd(t,r)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ya(t),Ye(t),Ls(t,l,e,n,a)),null;case 27:if(vi(t),a=se.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}e=V.current,kn(t)?bf(t):(e=Jh(l,n,a),t.stateNode=e,ya(t))}return Ye(t),null;case 5:if(vi(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}if(r=V.current,kn(t))bf(t);else{var d=Er(se.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?d.createElement(l,{is:n.is}):d.createElement(l)}}r[st]=t,r[yt]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(dt(r,l,n),l){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ya(t)}}return Ye(t),Ls(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=se.current,kn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=ut,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[st]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Hh(e.nodeValue,a)),e||_a(t,!0)}else e=Er(e).createTextNode(n),e[st]=t,t.stateNode=e}return Ye(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=kn(t),a!==null){if(e===null){if(!n)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[st]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else a=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ye(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=kn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(s(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(317));l[st]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),l=!1}else l=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==l&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),sr(t,t.updateQueue),Ye(t),null);case 4:return Ke(),e===null&&ou(t.stateNode.containerInfo),Ye(t),null;case 10:return da(t.type),Ye(t),null;case 19:if(B(Je),n=t.memoizedState,n===null)return Ye(t),null;if(l=(t.flags&128)!==0,r=n.rendering,r===null)if(l)Ll(n,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Fi(e),r!==null){for(t.flags|=128,Ll(n,!1),e=r.updateQueue,t.updateQueue=e,sr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)mf(a,e),a=a.sibling;return Y(Je,Je.current&1|2),Ae&&ca(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Rt()>hr&&(t.flags|=128,l=!0,Ll(n,!1),t.lanes=4194304)}else{if(!l)if(e=Fi(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,sr(t,e),Ll(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!Ae)return Ye(t),null}else 2*Rt()-n.renderingStartTime>hr&&a!==536870912&&(t.flags|=128,l=!0,Ll(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Rt(),e.sibling=null,a=Je.current,Y(Je,l?a&1|2:a&1),Ae&&ca(t,n.treeForkCount),e):(Ye(t),null);case 22:case 23:return Ot(t),ss(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),a=t.updateQueue,a!==null&&sr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&B(sn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),da(Ie),Ye(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Ty(e,t){switch(Ko(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return da(Ie),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vi(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(s(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Je),null;case 4:return Ke(),null;case 10:return da(t.type),null;case 22:case 23:return Ot(t),ss(),e!==null&&B(sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return da(Ie),null;case 25:return null;default:return null}}function Yd(e,t){switch(Ko(t),t.tag){case 3:da(Ie),Ke();break;case 26:case 27:case 5:vi(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:B(Je);break;case 10:da(t.type);break;case 22:case 23:Ot(t),ss(),e!==null&&B(sn);break;case 24:da(Ie)}}function ql(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&e)===e){n=void 0;var r=a.create,d=a.inst;n=r(),d.destroy=n}a=a.next}while(a!==l)}}catch(m){Me(t,t.return,m)}}function Ha(e,t,a){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&e)===e){var d=n.inst,m=d.destroy;if(m!==void 0){d.destroy=void 0,l=t;var j=a,w=m;try{w()}catch(H){Me(l,j,H)}}}n=n.next}while(n!==r)}}catch(H){Me(t,t.return,H)}}function Vd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Mf(t,a)}catch(n){Me(e,e.return,n)}}}function Xd(e,t,a){a.props=hn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Me(e,t,n)}}function Gl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(l){Me(e,t,l)}}function ta(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){Me(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){Me(e,t,l)}else a.current=null}function Qd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){Me(e,e.return,l)}}function qs(e,t,a){try{var n=e.stateNode;Jy(n,e.type,a,t),n[yt]=t}catch(l){Me(e,e.return,l)}}function Zd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function Gs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zd(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&&Xa(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 Ys(e,t,a){var n=e.tag;if(n===5||n===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=oa));else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ys(e,t,a),e=e.sibling;e!==null;)Ys(e,t,a),e=e.sibling}function ur(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ur(e,t,a),e=e.sibling;e!==null;)ur(e,t,a),e=e.sibling}function Kd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,n,a),t[st]=e,t[yt]=a}catch(r){Me(e,e.return,r)}}var ga=!1,tt=!1,Vs=!1,Jd=typeof WeakSet=="function"?WeakSet:Set,it=null;function Cy(e,t){if(e=e.containerInfo,cu=_r,e=rf(e),ko(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,m=-1,j=-1,w=0,H=0,q=e,O=null;t:for(;;){for(var k;q!==a||l!==0&&q.nodeType!==3||(m=d+l),q!==r||n!==0&&q.nodeType!==3||(j=d+n),q.nodeType===3&&(d+=q.nodeValue.length),(k=q.firstChild)!==null;)O=q,q=k;for(;;){if(q===e)break t;if(O===a&&++w===l&&(m=d),O===r&&++H===n&&(j=d),(k=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=k}a=m===-1||j===-1?null:{start:m,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(fu={focusedElem:e,selectionRange:a},_r=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,r=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++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,l=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var W=hn(a.type,l);e=n.getSnapshotBeforeUpdate(W,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(re){Me(a,a.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)pu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pu(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function Fd(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:va(e,a),n&4&&ql(5,a);break;case 1:if(va(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Me(a,a.return,d)}else{var l=hn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Me(a,a.return,d)}}n&64&&Vd(a),n&512&&Gl(a,a.return);break;case 3:if(va(e,a),n&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{Mf(e,t)}catch(d){Me(a,a.return,d)}}break;case 27:t===null&&n&4&&Kd(a);case 26:case 5:va(e,a),t===null&&n&4&&Qd(a),n&512&&Gl(a,a.return);break;case 12:va(e,a);break;case 31:va(e,a),n&4&&Id(e,a);break;case 13:va(e,a),n&4&&Pd(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=ky.bind(null,a),ag(e,a))));break;case 22:if(n=a.memoizedState!==null||ga,!n){t=t!==null&&t.memoizedState!==null||tt,l=ga;var r=tt;ga=n,(tt=t)&&!r?ba(e,a,(a.subtreeFlags&8772)!==0):va(e,a),ga=l,tt=r}break;case 30:break;default:va(e,a)}}function Wd(e){var t=e.alternate;t!==null&&(e.alternate=null,Wd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vo(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 Ve=null,xt=!1;function xa(e,t,a){for(a=a.child;a!==null;)$d(e,t,a),a=a.sibling}function $d(e,t,a){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(fl,a)}catch{}switch(a.tag){case 26:tt||ta(a,t),xa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:tt||ta(a,t);var n=Ve,l=xt;Xa(a.type)&&(Ve=a.stateNode,xt=!1),xa(e,t,a),Wl(a.stateNode),Ve=n,xt=l;break;case 5:tt||ta(a,t);case 6:if(n=Ve,l=xt,Ve=null,xa(e,t,a),Ve=n,xt=l,Ve!==null)if(xt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(a.stateNode)}catch(r){Me(a,t,r)}else try{Ve.removeChild(a.stateNode)}catch(r){Me(a,t,r)}break;case 18:Ve!==null&&(xt?(e=Ve,Vh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),nl(e)):Vh(Ve,a.stateNode));break;case 4:n=Ve,l=xt,Ve=a.stateNode.containerInfo,xt=!0,xa(e,t,a),Ve=n,xt=l;break;case 0:case 11:case 14:case 15:Ha(2,a,t),tt||Ha(4,a,t),xa(e,t,a);break;case 1:tt||(ta(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Xd(a,t,n)),xa(e,t,a);break;case 21:xa(e,t,a);break;case 22:tt=(n=tt)||a.memoizedState!==null,xa(e,t,a),tt=n;break;default:xa(e,t,a)}}function Id(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nl(e)}catch(a){Me(t,t.return,a)}}}function Pd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{nl(e)}catch(a){Me(t,t.return,a)}}function zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jd),t;default:throw Error(s(435,e.tag))}}function cr(e,t){var a=zy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var l=Hy.bind(null,e,n);n.then(l,l)}})}function vt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],r=e,d=t,m=d;e:for(;m!==null;){switch(m.tag){case 27:if(Xa(m.type)){Ve=m.stateNode,xt=!1;break e}break;case 5:Ve=m.stateNode,xt=!1;break e;case 3:case 4:Ve=m.stateNode.containerInfo,xt=!0;break e}m=m.return}if(Ve===null)throw Error(s(160));$d(r,d,l),Ve=null,xt=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)eh(t,e),t=t.sibling}var Jt=null;function eh(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),bt(e),n&4&&(Ha(3,e,e.return),ql(3,e),Ha(5,e,e.return));break;case 1:vt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),n&64&&ga&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=Jt;if(vt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,l=l.ownerDocument||l;t:switch(n){case"title":r=l.getElementsByTagName("title")[0],(!r||r[pl]||r[st]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=l.createElement(n),l.head.insertBefore(r,l.querySelector("head > title"))),dt(r,n,a),r[st]=e,lt(r),n=r;break e;case"link":var d=ep("link","href",l).get(n+(a.href||""));if(d){for(var m=0;m<d.length;m++)if(r=d[m],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(m,1);break t}}r=l.createElement(n),dt(r,n,a),l.head.appendChild(r);break;case"meta":if(d=ep("meta","content",l).get(n+(a.content||""))){for(m=0;m<d.length;m++)if(r=d[m],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(m,1);break t}}r=l.createElement(n),dt(r,n,a),l.head.appendChild(r);break;default:throw Error(s(468,n))}r[st]=e,lt(r),n=r}e.stateNode=n}else tp(l,e.type,e.stateNode);else e.stateNode=Ph(l,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?tp(l,e.type,e.stateNode):Ph(l,n,e.memoizedProps)):n===null&&e.stateNode!==null&&qs(e,e.memoizedProps,a.memoizedProps)}break;case 27:vt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),a!==null&&n&4&&qs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(vt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),e.flags&32){l=e.stateNode;try{Tn(l,"")}catch(W){Me(e,e.return,W)}}n&4&&e.stateNode!=null&&(l=e.memoizedProps,qs(e,l,a!==null?a.memoizedProps:l)),n&1024&&(Vs=!0);break;case 6:if(vt(t,e),bt(e),n&4){if(e.stateNode===null)throw Error(s(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(W){Me(e,e.return,W)}}break;case 3:if(Tr=null,l=Jt,Jt=Ar(t.containerInfo),vt(t,e),Jt=l,bt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{nl(t.containerInfo)}catch(W){Me(e,e.return,W)}Vs&&(Vs=!1,th(e));break;case 4:n=Jt,Jt=Ar(e.stateNode.containerInfo),vt(t,e),bt(e),Jt=n;break;case 12:vt(t,e),bt(e);break;case 31:vt(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cr(e,n)));break;case 13:vt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(dr=Rt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cr(e,n)));break;case 22:l=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,w=ga,H=tt;if(ga=w||l,tt=H||j,vt(t,e),tt=H,ga=w,bt(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||j||ga||tt||pn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(r=j.stateNode,l)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{m=j.stateNode;var q=j.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;m.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(W){Me(j,j.return,W)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=l?"":j.memoizedProps}catch(W){Me(j,j.return,W)}}}else if(t.tag===18){if(a===null){j=t;try{var k=j.stateNode;l?Xh(k,!0):Xh(j.stateNode,!1)}catch(W){Me(j,j.return,W)}}}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}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,cr(e,a))));break;case 19:vt(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cr(e,n)));break;case 30:break;case 21:break;default:vt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Zd(n)){a=n;break}n=n.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var l=a.stateNode,r=Gs(e);ur(e,r,l);break;case 5:var d=a.stateNode;a.flags&32&&(Tn(d,""),a.flags&=-33);var m=Gs(e);ur(e,m,d);break;case 3:case 4:var j=a.stateNode.containerInfo,w=Gs(e);Ys(e,w,j);break;default:throw Error(s(161))}}catch(H){Me(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function th(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;th(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fd(e,t.alternate,t),t=t.sibling}function pn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ha(4,t,t.return),pn(t);break;case 1:ta(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Xd(t,t.return,a),pn(t);break;case 27:Wl(t.stateNode);case 26:case 5:ta(t,t.return),pn(t);break;case 22:t.memoizedState===null&&pn(t);break;case 30:pn(t);break;default:pn(t)}e=e.sibling}}function ba(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,l=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:ba(l,r,a),ql(4,r);break;case 1:if(ba(l,r,a),n=r,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(w){Me(n,n.return,w)}if(n=r,l=n.updateQueue,l!==null){var m=n.stateNode;try{var j=l.shared.hiddenCallbacks;if(j!==null)for(l.shared.hiddenCallbacks=null,l=0;l<j.length;l++)Df(j[l],m)}catch(w){Me(n,n.return,w)}}a&&d&64&&Vd(r),Gl(r,r.return);break;case 27:Kd(r);case 26:case 5:ba(l,r,a),a&&n===null&&d&4&&Qd(r),Gl(r,r.return);break;case 12:ba(l,r,a);break;case 31:ba(l,r,a),a&&d&4&&Id(l,r);break;case 13:ba(l,r,a),a&&d&4&&Pd(l,r);break;case 22:r.memoizedState===null&&ba(l,r,a),Gl(r,r.return);break;case 30:break;default:ba(l,r,a)}t=t.sibling}}function Xs(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&&Cl(a))}function Qs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e))}function Ft(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ah(e,t,a,n),t=t.sibling}function ah(e,t,a,n){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,a,n),l&2048&&ql(9,t);break;case 1:Ft(e,t,a,n);break;case 3:Ft(e,t,a,n),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e)));break;case 12:if(l&2048){Ft(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,m=r.onPostCommit;typeof m=="function"&&m(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Me(t,t.return,j)}}else Ft(e,t,a,n);break;case 31:Ft(e,t,a,n);break;case 13:Ft(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?r._visibility&2?Ft(e,t,a,n):Yl(e,t):r._visibility&2?Ft(e,t,a,n):(r._visibility|=2,Zn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),l&2048&&Xs(d,t);break;case 24:Ft(e,t,a,n),l&2048&&Qs(t.alternate,t);break;default:Ft(e,t,a,n)}}function Zn(e,t,a,n,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,m=a,j=n,w=d.flags;switch(d.tag){case 0:case 11:case 15:Zn(r,d,m,j,l),ql(8,d);break;case 23:break;case 22:var H=d.stateNode;d.memoizedState!==null?H._visibility&2?Zn(r,d,m,j,l):Yl(r,d):(H._visibility|=2,Zn(r,d,m,j,l)),l&&w&2048&&Xs(d.alternate,d);break;case 24:Zn(r,d,m,j,l),l&&w&2048&&Qs(d.alternate,d);break;default:Zn(r,d,m,j,l)}t=t.sibling}}function Yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,l=n.flags;switch(n.tag){case 22:Yl(a,n),l&2048&&Xs(n.alternate,n);break;case 24:Yl(a,n),l&2048&&Qs(n.alternate,n);break;default:Yl(a,n)}t=t.sibling}}var Vl=8192;function Kn(e,t,a){if(e.subtreeFlags&Vl)for(e=e.child;e!==null;)nh(e,t,a),e=e.sibling}function nh(e,t,a){switch(e.tag){case 26:Kn(e,t,a),e.flags&Vl&&e.memoizedState!==null&&pg(a,Jt,e.memoizedState,e.memoizedProps);break;case 5:Kn(e,t,a);break;case 3:case 4:var n=Jt;Jt=Ar(e.stateNode.containerInfo),Kn(e,t,a),Jt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Vl,Vl=16777216,Kn(e,t,a),Vl=n):Kn(e,t,a));break;default:Kn(e,t,a)}}function lh(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 Xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,rh(n,e)}lh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ih(e),e=e.sibling}function ih(e){switch(e.tag){case 0:case 11:case 15:Xl(e),e.flags&2048&&Ha(9,e,e.return);break;case 3:Xl(e);break;case 12:Xl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fr(e)):Xl(e);break;default:Xl(e)}}function fr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,rh(n,e)}lh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ha(8,t,t.return),fr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,fr(t));break;default:fr(t)}e=e.sibling}}function rh(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:Ha(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Cl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,it=n;else e:for(a=e;it!==null;){n=it;var l=n.sibling,r=n.return;if(Wd(n),n===a){it=null;break e}if(l!==null){l.return=r,it=l;break e}it=r}}}var wy={getCacheForType:function(e){var t=ct(Ie),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ct(Ie).controller.signal}},_y=typeof WeakMap=="function"?WeakMap:Map,we=0,Le=null,ge=null,be=0,De=0,Dt=null,Ua=!1,Jn=!1,Zs=!1,Sa=0,Ze=0,La=0,mn=0,Ks=0,Mt=0,Fn=0,Ql=null,St=null,Js=!1,dr=0,oh=0,hr=1/0,pr=null,qa=null,at=0,Ga=null,Wn=null,ja=0,Fs=0,Ws=null,sh=null,Zl=0,$s=null;function Bt(){return(we&2)!==0&&be!==0?be&-be:D.T!==null?nu():Ec()}function uh(){if(Mt===0)if((be&536870912)===0||Ae){var e=ji;ji<<=1,(ji&3932160)===0&&(ji=262144),Mt=e}else Mt=536870912;return e=_t.current,e!==null&&(e.flags|=32),Mt}function jt(e,t,a){(e===Le&&(De===2||De===9)||e.cancelPendingCommit!==null)&&($n(e,0),Ya(e,be,Mt,!1)),hl(e,a),((we&2)===0||e!==Le)&&(e===Le&&((we&2)===0&&(mn|=a),Ze===4&&Ya(e,be,Mt,!1)),aa(e))}function ch(e,t,a){if((we&6)!==0)throw Error(s(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||dl(e,t),l=n?My(e,t):Ps(e,t,!0),r=n;do{if(l===0){Jn&&!n&&Ya(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!Oy(a)){l=Ps(e,t,!1),r=!1;continue}if(l===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var m=e;l=Ql;var j=m.current.memoizedState.isDehydrated;if(j&&($n(m,d).flags|=256),d=Ps(m,d,!1),d!==2){if(Zs&&!j){m.errorRecoveryDisabledLanes|=r,mn|=r,l=4;break e}r=St,St=l,r!==null&&(St===null?St=r:St.push.apply(St,r))}l=d}if(r=!1,l!==2)continue}}if(l===1){$n(e,0),Ya(e,t,0,!0);break}e:{switch(n=e,r=l,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ya(n,t,Mt,!Ua);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(l=dr+300-Rt(),10<l)){if(Ya(n,t,Mt,!Ua),Ai(n,0,!0)!==0)break e;ja=t,n.timeoutHandle=Gh(fh.bind(null,n,a,St,pr,Js,t,Mt,mn,Fn,Ua,r,"Throttled",-0,0),l);break e}fh(n,a,St,pr,Js,t,Mt,mn,Fn,Ua,r,null,-0,0)}}break}while(!0);aa(e)}function fh(e,t,a,n,l,r,d,m,j,w,H,q,O,k){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:oa},nh(t,r,q);var W=(r&62914560)===r?dr-Rt():(r&4194048)===r?oh-Rt():0;if(W=mg(q,W),W!==null){ja=r,e.cancelPendingCommit=W(vh.bind(null,e,t,r,a,n,l,d,m,j,H,q,null,O,k)),Ya(e,r,d,!w);return}}vh(e,t,r,a,n,l,d,m,j)}function Oy(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 n=0;n<a.length;n++){var l=a[n],r=l.getSnapshot;l=l.value;try{if(!zt(r(),l))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 Ya(e,t,a,n){t&=~Ks,t&=~mn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var r=31-Ct(l),d=1<<r;n[r]=-1,l&=~d}a!==0&&bc(e,a,t)}function mr(){return(we&6)===0?(Kl(0),!1):!0}function Is(){if(ge!==null){if(De===0)var e=ge.return;else e=ge,fa=rn=null,ps(e),Gn=null,wl=0,e=ge;for(;e!==null;)Yd(e.alternate,e),e=e.return;ge=null}}function $n(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,$y(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ja=0,Is(),Le=e,ge=a=ua(e.current,null),be=t,De=0,Dt=null,Ua=!1,Jn=dl(e,t),Zs=!1,Fn=Mt=Ks=mn=La=Ze=0,St=Ql=null,Js=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-Ct(n),r=1<<l;t|=e[l],n&=~r}return Sa=t,ki(),a}function dh(e,t){fe=null,D.H=Hl,t===qn||t===Xi?(t=zf(),De=3):t===as?(t=zf(),De=4):De=t===_s?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,ge===null&&(Ze=1,lr(e,Lt(t,e.current)))}function hh(){var e=_t.current;return e===null?!0:(be&4194048)===be?Vt===null:(be&62914560)===be||(be&536870912)!==0?e===Vt:!1}function ph(){var e=D.H;return D.H=Hl,e===null?Hl:e}function mh(){var e=D.A;return D.A=wy,e}function yr(){Ze=4,Ua||(be&4194048)!==be&&_t.current!==null||(Jn=!0),(La&134217727)===0&&(mn&134217727)===0||Le===null||Ya(Le,be,Mt,!1)}function Ps(e,t,a){var n=we;we|=2;var l=ph(),r=mh();(Le!==e||be!==t)&&(pr=null,$n(e,t)),t=!1;var d=Ze;e:do try{if(De!==0&&ge!==null){var m=ge,j=Dt;switch(De){case 8:Is(),d=6;break e;case 3:case 2:case 9:case 6:_t.current===null&&(t=!0);var w=De;if(De=0,Dt=null,In(e,m,j,w),a&&Jn){d=0;break e}break;default:w=De,De=0,Dt=null,In(e,m,j,w)}}Dy(),d=Ze;break}catch(H){dh(e,H)}while(!0);return t&&e.shellSuspendCounter++,fa=rn=null,we=n,D.H=l,D.A=r,ge===null&&(Le=null,be=0,ki()),d}function Dy(){for(;ge!==null;)yh(ge)}function My(e,t){var a=we;we|=2;var n=ph(),l=mh();Le!==e||be!==t?(pr=null,hr=Rt()+500,$n(e,t)):Jn=dl(e,t);e:do try{if(De!==0&&ge!==null){t=ge;var r=Dt;t:switch(De){case 1:De=0,Dt=null,In(e,t,r,1);break;case 2:case 9:if(Tf(r)){De=0,Dt=null,gh(t);break}t=function(){De!==2&&De!==9||Le!==e||(De=7),aa(e)},r.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Tf(r)?(De=0,Dt=null,gh(t)):(De=0,Dt=null,In(e,t,r,7));break;case 5:var d=null;switch(ge.tag){case 26:d=ge.memoizedState;case 5:case 27:var m=ge;if(d?ap(d):m.stateNode.complete){De=0,Dt=null;var j=m.sibling;if(j!==null)ge=j;else{var w=m.return;w!==null?(ge=w,gr(w)):ge=null}break t}}De=0,Dt=null,In(e,t,r,5);break;case 6:De=0,Dt=null,In(e,t,r,6);break;case 8:Is(),Ze=6;break e;default:throw Error(s(462))}}By();break}catch(H){dh(e,H)}while(!0);return fa=rn=null,D.H=n,D.A=l,we=a,ge!==null?0:(Le=null,be=0,ki(),Ze)}function By(){for(;ge!==null&&!n0();)yh(ge)}function yh(e){var t=qd(e.alternate,e,Sa);e.memoizedProps=e.pendingProps,t===null?gr(e):ge=t}function gh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Bd(a,t,t.pendingProps,t.type,void 0,be);break;case 11:t=Bd(a,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:ps(t);default:Yd(a,t),t=ge=mf(t,Sa),t=qd(a,t,Sa)}e.memoizedProps=e.pendingProps,t===null?gr(e):ge=t}function In(e,t,a,n){fa=rn=null,ps(t),Gn=null,wl=0;var l=t.return;try{if(jy(e,l,t,a,be)){Ze=1,lr(e,Lt(a,e.current)),ge=null;return}}catch(r){if(l!==null)throw ge=l,r;Ze=1,lr(e,Lt(a,e.current)),ge=null;return}t.flags&32768?(Ae||n===1?e=!0:Jn||(be&536870912)!==0?e=!1:(Ua=e=!0,(n===2||n===9||n===3||n===6)&&(n=_t.current,n!==null&&n.tag===13&&(n.flags|=16384))),xh(t,e)):gr(t)}function gr(e){var t=e;do{if((t.flags&32768)!==0){xh(t,Ua);return}e=t.return;var a=Ry(t.alternate,t,Sa);if(a!==null){ge=a;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ze===0&&(Ze=5)}function xh(e,t){do{var a=Ty(e.alternate,e);if(a!==null){a.flags&=32767,ge=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=a}while(e!==null);Ze=6,ge=null}function vh(e,t,a,n,l,r,d,m,j){e.cancelPendingCommit=null;do xr();while(at!==0);if((we&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(r=t.lanes|t.childLanes,r|=Go,h0(e,a,r,d,m,j),e===Le&&(ge=Le=null,be=0),Wn=t,Ga=e,ja=a,Fs=r,Ws=l,sh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Uy(bi,function(){return Ah(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null,l=Z.p,Z.p=2,d=we,we|=4;try{Cy(e,t,a)}finally{we=d,Z.p=l,D.T=n}}at=1,bh(),Sh(),jh()}}function bh(){if(at===1){at=0;var e=Ga,t=Wn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var n=Z.p;Z.p=2;var l=we;we|=4;try{eh(t,e);var r=fu,d=rf(e.containerInfo),m=r.focusedElem,j=r.selectionRange;if(d!==m&&m&&m.ownerDocument&&lf(m.ownerDocument.documentElement,m)){if(j!==null&&ko(m)){var w=j.start,H=j.end;if(H===void 0&&(H=w),"selectionStart"in m)m.selectionStart=w,m.selectionEnd=Math.min(H,m.value.length);else{var q=m.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var k=O.getSelection(),W=m.textContent.length,re=Math.min(j.start,W),He=j.end===void 0?re:Math.min(j.end,W);!k.extend&&re>He&&(d=He,He=re,re=d);var R=nf(m,re),E=nf(m,He);if(R&&E&&(k.rangeCount!==1||k.anchorNode!==R.node||k.anchorOffset!==R.offset||k.focusNode!==E.node||k.focusOffset!==E.offset)){var z=q.createRange();z.setStart(R.node,R.offset),k.removeAllRanges(),re>He?(k.addRange(z),k.extend(E.node,E.offset)):(z.setEnd(E.node,E.offset),k.addRange(z))}}}}for(q=[],k=m;k=k.parentNode;)k.nodeType===1&&q.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<q.length;m++){var L=q[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}_r=!!cu,fu=cu=null}finally{we=l,Z.p=n,D.T=a}}e.current=t,at=2}}function Sh(){if(at===2){at=0;var e=Ga,t=Wn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var n=Z.p;Z.p=2;var l=we;we|=4;try{Fd(e,t.alternate,t)}finally{we=l,Z.p=n,D.T=a}}at=3}}function jh(){if(at===4||at===3){at=0,l0();var e=Ga,t=Wn,a=ja,n=sh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,Wn=Ga=null,Eh(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(qa=null),go(a),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(fl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=D.T,l=Z.p,Z.p=2,D.T=null;try{for(var r=e.onRecoverableError,d=0;d<n.length;d++){var m=n[d];r(m.value,{componentStack:m.stack})}}finally{D.T=t,Z.p=l}}(ja&3)!==0&&xr(),aa(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===$s?Zl++:(Zl=0,$s=e):Zl=0,Kl(0)}}function Eh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cl(t)))}function xr(){return bh(),Sh(),jh(),Ah()}function Ah(){if(at!==5)return!1;var e=Ga,t=Fs;Fs=0;var a=go(ja),n=D.T,l=Z.p;try{Z.p=32>a?32:a,D.T=null,a=Ws,Ws=null;var r=Ga,d=ja;if(at=0,Wn=Ga=null,ja=0,(we&6)!==0)throw Error(s(331));var m=we;if(we|=4,ih(r.current),ah(r,r.current,d,a),we=m,Kl(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(fl,r)}catch{}return!0}finally{Z.p=l,D.T=n,Eh(e,t)}}function Rh(e,t,a){t=Lt(a,t),t=ws(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(hl(e,2),aa(e))}function Me(e,t,a){if(e.tag===3)Rh(e,e,a);else for(;t!==null;){if(t.tag===3){Rh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(qa===null||!qa.has(n))){e=Lt(a,e),a=Td(2),n=Ba(t,a,2),n!==null&&(Cd(a,n,t,e),hl(n,2),aa(n));break}}t=t.return}}function eu(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new _y;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(a)||(Zs=!0,l.add(a),e=Ny.bind(null,e,t,a),t.then(e,e))}function Ny(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(be&a)===a&&(Ze===4||Ze===3&&(be&62914560)===be&&300>Rt()-dr?(we&2)===0&&$n(e,0):Ks|=a,Fn===be&&(Fn=0)),aa(e)}function Th(e,t){t===0&&(t=vc()),e=an(e,t),e!==null&&(hl(e,t),aa(e))}function ky(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Th(e,a)}function Hy(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(t),Th(e,a)}function Uy(e,t){return ho(e,t)}var vr=null,Pn=null,tu=!1,br=!1,au=!1,Va=0;function aa(e){e!==Pn&&e.next===null&&(Pn===null?vr=Pn=e:Pn=Pn.next=e),br=!0,tu||(tu=!0,qy())}function Kl(e,t){if(!au&&br){au=!0;do for(var a=!1,n=vr;n!==null;){if(e!==0){var l=n.pendingLanes;if(l===0)var r=0;else{var d=n.suspendedLanes,m=n.pingedLanes;r=(1<<31-Ct(42|e)+1)-1,r&=l&~(d&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,_h(n,r))}else r=be,r=Ai(n,n===Le?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||dl(n,r)||(a=!0,_h(n,r));n=n.next}while(a);au=!1}}function Ly(){Ch()}function Ch(){br=tu=!1;var e=0;Va!==0&&Wy()&&(e=Va);for(var t=Rt(),a=null,n=vr;n!==null;){var l=n.next,r=zh(n,t);r===0?(n.next=null,a===null?vr=l:a.next=l,l===null&&(Pn=a)):(a=n,(e!==0||(r&3)!==0)&&(br=!0)),n=l}at!==0&&at!==5||Kl(e),Va!==0&&(Va=0)}function zh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-Ct(r),m=1<<d,j=l[d];j===-1?((m&a)===0||(m&n)!==0)&&(l[d]=d0(m,t)):j<=t&&(e.expiredLanes|=m),r&=~m}if(t=Le,a=be,a=Ai(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&po(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||dl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&po(n),go(a)){case 2:case 8:a=gc;break;case 32:a=bi;break;case 268435456:a=xc;break;default:a=bi}return n=wh.bind(null,e),a=ho(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&po(n),e.callbackPriority=2,e.callbackNode=null,2}function wh(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(xr()&&e.callbackNode!==a)return null;var n=be;return n=Ai(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(ch(e,n,t),zh(e,Rt()),e.callbackNode!=null&&e.callbackNode===a?wh.bind(null,e):null)}function _h(e,t){if(xr())return null;ch(e,t,!0)}function qy(){Iy(function(){(we&6)!==0?ho(yc,Ly):Ch()})}function nu(){if(Va===0){var e=Un;e===0&&(e=Si,Si<<=1,(Si&261888)===0&&(Si=256)),Va=e}return Va}function Oh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:zi(""+e)}function Dh(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 Gy(e,t,a,n,l){if(t==="submit"&&a&&a.stateNode===l){var r=Oh((l[yt]||null).action),d=n.submitter;d&&(t=(t=d[yt]||null)?Oh(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var m=new Di("action","action",null,n,l);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Va!==0){var j=d?Dh(l,d):new FormData(l);Es(a,{pending:!0,data:j,method:l.method,action:r},null,j)}}else typeof r=="function"&&(m.preventDefault(),j=d?Dh(l,d):new FormData(l),Es(a,{pending:!0,data:j,method:l.method,action:r},r,j))},currentTarget:l}]})}}for(var lu=0;lu<qo.length;lu++){var iu=qo[lu],Yy=iu.toLowerCase(),Vy=iu[0].toUpperCase()+iu.slice(1);Kt(Yy,"on"+Vy)}Kt(uf,"onAnimationEnd"),Kt(cf,"onAnimationIteration"),Kt(ff,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(iy,"onTransitionRun"),Kt(ry,"onTransitionStart"),Kt(oy,"onTransitionCancel"),Kt(df,"onTransitionEnd"),An("onMouseEnter",["mouseout","mouseover"]),An("onMouseLeave",["mouseout","mouseover"]),An("onPointerEnter",["pointerout","pointerover"]),An("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jl="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(" "),Xy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jl));function Mh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],l=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var d=n.length-1;0<=d;d--){var m=n[d],j=m.instance,w=m.currentTarget;if(m=m.listener,j!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=w;try{r(l)}catch(H){Ni(H)}l.currentTarget=null,r=j}else for(d=0;d<n.length;d++){if(m=n[d],j=m.instance,w=m.currentTarget,m=m.listener,j!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=w;try{r(l)}catch(H){Ni(H)}l.currentTarget=null,r=j}}}}function xe(e,t){var a=t[xo];a===void 0&&(a=t[xo]=new Set);var n=e+"__bubble";a.has(n)||(Bh(t,e,2,!1),a.add(n))}function ru(e,t,a){var n=0;t&&(n|=4),Bh(a,e,n,t)}var Sr="_reactListening"+Math.random().toString(36).slice(2);function ou(e){if(!e[Sr]){e[Sr]=!0,Tc.forEach(function(a){a!=="selectionchange"&&(Xy.has(a)||ru(a,!1,e),ru(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sr]||(t[Sr]=!0,ru("selectionchange",!1,t))}}function Bh(e,t,a,n){switch(up(t)){case 2:var l=xg;break;case 8:l=vg;break;default:l=ju}a=l.bind(null,t,a,e),l=void 0,!Co||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),n?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function su(e,t,a,n,l){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var m=n.stateNode.containerInfo;if(m===l)break;if(d===4)for(d=n.return;d!==null;){var j=d.tag;if((j===3||j===4)&&d.stateNode.containerInfo===l)return;d=d.return}for(;m!==null;){if(d=Sn(m),d===null)return;if(j=d.tag,j===5||j===6||j===26||j===27){n=r=d;continue e}m=m.parentNode}}n=n.return}Uc(function(){var w=r,H=Ro(a),q=[];e:{var O=hf.get(e);if(O!==void 0){var k=Di,W=e;switch(e){case"keypress":if(_i(a)===0)break e;case"keydown":case"keyup":k=H0;break;case"focusin":W="focus",k=Oo;break;case"focusout":W="blur",k=Oo;break;case"beforeblur":case"afterblur":k=Oo;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":k=Gc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=R0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=q0;break;case uf:case cf:case ff:k=z0;break;case df:k=Y0;break;case"scroll":case"scrollend":k=E0;break;case"wheel":k=X0;break;case"copy":case"cut":case"paste":k=_0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Vc;break;case"toggle":case"beforetoggle":k=Z0}var re=(t&4)!==0,He=!re&&(e==="scroll"||e==="scrollend"),R=re?O!==null?O+"Capture":null:O;re=[];for(var E=w,z;E!==null;){var L=E;if(z=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||z===null||R===null||(L=yl(E,R),L!=null&&re.push(Fl(E,L,z))),He)break;E=E.return}0<re.length&&(O=new k(O,W,null,a,H),q.push({event:O,listeners:re}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",O&&a!==Ao&&(W=a.relatedTarget||a.fromElement)&&(Sn(W)||W[bn]))break e;if((k||O)&&(O=H.window===H?H:(O=H.ownerDocument)?O.defaultView||O.parentWindow:window,k?(W=a.relatedTarget||a.toElement,k=w,W=W?Sn(W):null,W!==null&&(He=h(W),re=W.tag,W!==He||re!==5&&re!==27&&re!==6)&&(W=null)):(k=null,W=w),k!==W)){if(re=Gc,L="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(re=Vc,L="onPointerLeave",R="onPointerEnter",E="pointer"),He=k==null?O:ml(k),z=W==null?O:ml(W),O=new re(L,E+"leave",k,a,H),O.target=He,O.relatedTarget=z,L=null,Sn(H)===w&&(re=new re(R,E+"enter",W,a,H),re.target=z,re.relatedTarget=He,L=re),He=L,k&&W)t:{for(re=Qy,R=k,E=W,z=0,L=R;L;L=re(L))z++;L=0;for(var ne=E;ne;ne=re(ne))L++;for(;0<z-L;)R=re(R),z--;for(;0<L-z;)E=re(E),L--;for(;z--;){if(R===E||E!==null&&R===E.alternate){re=R;break t}R=re(R),E=re(E)}re=null}else re=null;k!==null&&Nh(q,O,k,re,!1),W!==null&&He!==null&&Nh(q,He,W,re,!0)}}e:{if(O=w?ml(w):window,k=O.nodeName&&O.nodeName.toLowerCase(),k==="select"||k==="input"&&O.type==="file")var Ce=$c;else if(Fc(O))if(Ic)Ce=ay;else{Ce=ey;var te=P0}else k=O.nodeName,!k||k.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?w&&Eo(w.elementType)&&(Ce=$c):Ce=ty;if(Ce&&(Ce=Ce(e,w))){Wc(q,Ce,a,H);break e}te&&te(e,O,w),e==="focusout"&&w&&O.type==="number"&&w.memoizedProps.value!=null&&jo(O,"number",O.value)}switch(te=w?ml(w):window,e){case"focusin":(Fc(te)||te.contentEditable==="true")&&(_n=te,Ho=w,Al=null);break;case"focusout":Al=Ho=_n=null;break;case"mousedown":Uo=!0;break;case"contextmenu":case"mouseup":case"dragend":Uo=!1,of(q,a,H);break;case"selectionchange":if(ly)break;case"keydown":case"keyup":of(q,a,H)}var he;if(Mo)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else wn?Kc(e,a)&&(Se="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(Xc&&a.locale!=="ko"&&(wn||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&wn&&(he=Lc()):(Ca=H,zo="value"in Ca?Ca.value:Ca.textContent,wn=!0)),te=jr(w,Se),0<te.length&&(Se=new Yc(Se,e,null,a,H),q.push({event:Se,listeners:te}),he?Se.data=he:(he=Jc(a),he!==null&&(Se.data=he)))),(he=J0?F0(e,a):W0(e,a))&&(Se=jr(w,"onBeforeInput"),0<Se.length&&(te=new Yc("onBeforeInput","beforeinput",null,a,H),q.push({event:te,listeners:Se}),te.data=he)),Gy(q,e,w,a,H)}Mh(q,t)})}function Fl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function jr(e,t){for(var a=t+"Capture",n=[];e!==null;){var l=e,r=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||r===null||(l=yl(e,a),l!=null&&n.unshift(Fl(e,l,r)),l=yl(e,t),l!=null&&n.push(Fl(e,l,r))),e.tag===3)return n;e=e.return}return[]}function Qy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nh(e,t,a,n,l){for(var r=t._reactName,d=[];a!==null&&a!==n;){var m=a,j=m.alternate,w=m.stateNode;if(m=m.tag,j!==null&&j===n)break;m!==5&&m!==26&&m!==27||w===null||(j=w,l?(w=yl(a,r),w!=null&&d.unshift(Fl(a,w,j))):l||(w=yl(a,r),w!=null&&d.push(Fl(a,w,j)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Zy=/\r\n?/g,Ky=/\u0000|\uFFFD/g;function kh(e){return(typeof e=="string"?e:""+e).replace(Zy,`
|
|
9
|
-
`).replace(Ky,"")}function Hh(e,t){return t=kh(t),kh(e)===t}function ke(e,t,a,n,l,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Tn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Tn(e,""+n);break;case"className":Ti(e,"class",n);break;case"tabIndex":Ti(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ti(e,a,n);break;case"style":kc(e,n,r);break;case"data":if(t!=="object"){Ti(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=zi(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="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 r=="function"&&(a==="formAction"?(t!=="input"&&ke(e,t,"name",l.name,l,null),ke(e,t,"formEncType",l.formEncType,l,null),ke(e,t,"formMethod",l.formMethod,l,null),ke(e,t,"formTarget",l.formTarget,l,null)):(ke(e,t,"encType",l.encType,l,null),ke(e,t,"method",l.method,l,null),ke(e,t,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=zi(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=oa);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=zi(""+n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Ri(e,"popover",n);break;case"xlinkActuate":ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ra(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ra(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ra(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ra(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ri(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=S0.get(a)||a,Ri(e,a,n))}}function uu(e,t,a,n,l,r){switch(a){case"style":kc(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof n=="string"?Tn(e,n):(typeof n=="number"||typeof n=="bigint")&&Tn(e,""+n);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),r=e[yt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,l),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,l);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Ri(e,a,n)}}}function dt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var n=!1,l=!1,r;for(r in a)if(a.hasOwnProperty(r)){var d=a[r];if(d!=null)switch(r){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,r,d,a,null)}}l&&ke(e,t,"srcSet",a.srcSet,a,null),n&&ke(e,t,"src",a.src,a,null);return;case"input":xe("invalid",e);var m=r=d=l=null,j=null,w=null;for(n in a)if(a.hasOwnProperty(n)){var H=a[n];if(H!=null)switch(n){case"name":l=H;break;case"type":d=H;break;case"checked":j=H;break;case"defaultChecked":w=H;break;case"value":r=H;break;case"defaultValue":m=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:ke(e,t,n,H,a,null)}}Dc(e,r,m,j,w,d,l,!1);return;case"select":xe("invalid",e),n=d=r=null;for(l in a)if(a.hasOwnProperty(l)&&(m=a[l],m!=null))switch(l){case"value":r=m;break;case"defaultValue":d=m;break;case"multiple":n=m;default:ke(e,t,l,m,a,null)}t=r,a=d,e.multiple=!!n,t!=null?Rn(e,!!n,t,!1):a!=null&&Rn(e,!!n,a,!0);return;case"textarea":xe("invalid",e),r=l=n=null;for(d in a)if(a.hasOwnProperty(d)&&(m=a[d],m!=null))switch(d){case"value":n=m;break;case"defaultValue":l=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:ke(e,t,d,m,a,null)}Bc(e,n,l,r);return;case"option":for(j in a)a.hasOwnProperty(j)&&(n=a[j],n!=null)&&(j==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":ke(e,t,j,n,a,null));return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(n=0;n<Jl.length;n++)xe(Jl[n],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(w in a)if(a.hasOwnProperty(w)&&(n=a[w],n!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,w,n,a,null)}return;default:if(Eo(t)){for(H in a)a.hasOwnProperty(H)&&(n=a[H],n!==void 0&&uu(e,t,H,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&ke(e,t,m,n,a,null))}function Jy(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,r=null,d=null,m=null,j=null,w=null,H=null;for(k in a){var q=a[k];if(a.hasOwnProperty(k)&&q!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":j=q;default:n.hasOwnProperty(k)||ke(e,t,k,null,n,q)}}for(var O in n){var k=n[O];if(q=a[O],n.hasOwnProperty(O)&&(k!=null||q!=null))switch(O){case"type":r=k;break;case"name":l=k;break;case"checked":w=k;break;case"defaultChecked":H=k;break;case"value":d=k;break;case"defaultValue":m=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==q&&ke(e,t,O,k,n,q)}}So(e,d,m,j,w,H,r,l);return;case"select":k=d=m=O=null;for(r in a)if(j=a[r],a.hasOwnProperty(r)&&j!=null)switch(r){case"value":break;case"multiple":k=j;default:n.hasOwnProperty(r)||ke(e,t,r,null,n,j)}for(l in n)if(r=n[l],j=a[l],n.hasOwnProperty(l)&&(r!=null||j!=null))switch(l){case"value":O=r;break;case"defaultValue":m=r;break;case"multiple":d=r;default:r!==j&&ke(e,t,l,r,n,j)}t=m,a=d,n=k,O!=null?Rn(e,!!a,O,!1):!!n!=!!a&&(t!=null?Rn(e,!!a,t,!0):Rn(e,!!a,a?[]:"",!1));return;case"textarea":k=O=null;for(m in a)if(l=a[m],a.hasOwnProperty(m)&&l!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:ke(e,t,m,null,n,l)}for(d in n)if(l=n[d],r=a[d],n.hasOwnProperty(d)&&(l!=null||r!=null))switch(d){case"value":O=l;break;case"defaultValue":k=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(s(91));break;default:l!==r&&ke(e,t,d,l,n,r)}Mc(e,O,k);return;case"option":for(var W in a)O=a[W],a.hasOwnProperty(W)&&O!=null&&!n.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:ke(e,t,W,null,n,O));for(j in n)O=n[j],k=a[j],n.hasOwnProperty(j)&&O!==k&&(O!=null||k!=null)&&(j==="selected"?e.selected=O&&typeof O!="function"&&typeof O!="symbol":ke(e,t,j,O,n,k));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 re in a)O=a[re],a.hasOwnProperty(re)&&O!=null&&!n.hasOwnProperty(re)&&ke(e,t,re,null,n,O);for(w in n)if(O=n[w],k=a[w],n.hasOwnProperty(w)&&O!==k&&(O!=null||k!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,t));break;default:ke(e,t,w,O,n,k)}return;default:if(Eo(t)){for(var He in a)O=a[He],a.hasOwnProperty(He)&&O!==void 0&&!n.hasOwnProperty(He)&&uu(e,t,He,void 0,n,O);for(H in n)O=n[H],k=a[H],!n.hasOwnProperty(H)||O===k||O===void 0&&k===void 0||uu(e,t,H,O,n,k);return}}for(var R in a)O=a[R],a.hasOwnProperty(R)&&O!=null&&!n.hasOwnProperty(R)&&ke(e,t,R,null,n,O);for(q in n)O=n[q],k=a[q],!n.hasOwnProperty(q)||O===k||O==null&&k==null||ke(e,t,q,O,n,k)}function Uh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Fy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],r=l.transferSize,d=l.initiatorType,m=l.duration;if(r&&m&&Uh(d)){for(d=0,m=l.responseEnd,n+=1;n<a.length;n++){var j=a[n],w=j.startTime;if(w>m)break;var H=j.transferSize,q=j.initiatorType;H&&Uh(q)&&(j=j.responseEnd,d+=H*(j<m?1:(m-w)/(j-w)))}if(--n,t+=8*(r+d)/(l.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 cu=null,fu=null;function Er(e){return e.nodeType===9?e:e.ownerDocument}function Lh(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 qh(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 du(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 hu=null;function Wy(){var e=window.event;return e&&e.type==="popstate"?e===hu?!1:(hu=e,!0):(hu=null,!1)}var Gh=typeof setTimeout=="function"?setTimeout:void 0,$y=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=typeof Promise=="function"?Promise:void 0,Iy=typeof queueMicrotask=="function"?queueMicrotask:typeof Yh<"u"?function(e){return Yh.resolve(null).then(e).catch(Py)}:Gh;function Py(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function Vh(e,t){var a=t,n=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(l),nl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Wl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Wl(a);for(var r=a.firstChild;r;){var d=r.nextSibling,m=r.nodeName;r[pl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&Wl(e.ownerDocument.body);a=l}while(a);nl(t)}function Xh(e,t){var a=e;e=0;do{var n=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||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function pu(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":pu(a),vo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function eg(e,t,a,n){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[pl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function tg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Xt(e.nextSibling),e===null))return null;return e}function Qh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function mu(e){return e.data==="$?"||e.data==="$~"}function yu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ag(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Xt(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 gu=null;function Zh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Xt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Kh(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 Jh(e,t,a){switch(t=Er(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Wl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vo(e)}var Qt=new Map,Fh=new Set;function Ar(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ea=Z.d;Z.d={f:ng,r:lg,D:ig,C:rg,L:og,m:sg,X:cg,S:ug,M:fg};function ng(){var e=Ea.f(),t=mr();return e||t}function lg(e){var t=jn(e);t!==null&&t.tag===5&&t.type==="form"?dd(t):Ea.r(e)}var el=typeof document>"u"?null:document;function Wh(e,t,a){var n=el;if(n&&typeof t=="string"&&t){var l=Ht(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Fh.has(l)||(Fh.add(l),e={rel:e,crossOrigin:a,href:t},n.querySelector(l)===null&&(t=n.createElement("link"),dt(t,"link",e),lt(t),n.head.appendChild(t)))}}function ig(e){Ea.D(e),Wh("dns-prefetch",e,null)}function rg(e,t){Ea.C(e,t),Wh("preconnect",e,t)}function og(e,t,a){Ea.L(e,t,a);var n=el;if(n&&e&&t){var l='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Ht(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Ht(a.imageSizes)+'"]')):l+='[href="'+Ht(e)+'"]';var r=l;switch(t){case"style":r=tl(e);break;case"script":r=al(e)}Qt.has(r)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Qt.set(r,e),n.querySelector(l)!==null||t==="style"&&n.querySelector($l(r))||t==="script"&&n.querySelector(Il(r))||(t=n.createElement("link"),dt(t,"link",e),lt(t),n.head.appendChild(t)))}}function sg(e,t){Ea.m(e,t);var a=el;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Ht(n)+'"][href="'+Ht(e)+'"]',r=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=al(e)}if(!Qt.has(r)&&(e=x({rel:"modulepreload",href:e},t),Qt.set(r,e),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Il(r)))return}n=a.createElement("link"),dt(n,"link",e),lt(n),a.head.appendChild(n)}}}function ug(e,t,a){Ea.S(e,t,a);var n=el;if(n&&e){var l=En(n).hoistableStyles,r=tl(e);t=t||"default";var d=l.get(r);if(!d){var m={loading:0,preload:null};if(d=n.querySelector($l(r)))m.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Qt.get(r))&&xu(e,a);var j=d=n.createElement("link");lt(j),dt(j,"link",e),j._p=new Promise(function(w,H){j.onload=w,j.onerror=H}),j.addEventListener("load",function(){m.loading|=1}),j.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Rr(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:m},l.set(r,d)}}}function cg(e,t){Ea.X(e,t);var a=el;if(a&&e){var n=En(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector(Il(l)),r||(e=x({src:e,async:!0},t),(t=Qt.get(l))&&vu(e,t),r=a.createElement("script"),lt(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function fg(e,t){Ea.M(e,t);var a=el;if(a&&e){var n=En(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector(Il(l)),r||(e=x({src:e,async:!0,type:"module"},t),(t=Qt.get(l))&&vu(e,t),r=a.createElement("script"),lt(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(l,r))}}function $h(e,t,a,n){var l=(l=se.current)?Ar(l):null;if(!l)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=tl(a.href),a=En(l).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=tl(a.href);var r=En(l).hoistableStyles,d=r.get(e);if(d||(l=l.ownerDocument||l,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=l.querySelector($l(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Qt.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},Qt.set(e,a),r||dg(l,e,a,d.state))),t&&n===null)throw Error(s(528,""));return d}if(t&&n!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=al(a),a=En(l).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function tl(e){return'href="'+Ht(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function Ih(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function dg(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),dt(t,"link",a),lt(t),e.head.appendChild(t))}function al(e){return'[src="'+Ht(e)+'"]'}function Il(e){return"script[async]"+e}function Ph(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Ht(a.href)+'"]');if(n)return t.instance=n,lt(n),n;var l=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),lt(n),dt(n,"style",l),Rr(n,a.precedence,e),t.instance=n;case"stylesheet":l=tl(a.href);var r=e.querySelector($l(l));if(r)return t.state.loading|=4,t.instance=r,lt(r),r;n=Ih(a),(l=Qt.get(l))&&xu(n,l),r=(e.ownerDocument||e).createElement("link"),lt(r);var d=r;return d._p=new Promise(function(m,j){d.onload=m,d.onerror=j}),dt(r,"link",n),t.state.loading|=4,Rr(r,a.precedence,e),t.instance=r;case"script":return r=al(a.src),(l=e.querySelector(Il(r)))?(t.instance=l,lt(l),l):(n=a,(l=Qt.get(r))&&(n=x({},a),vu(n,l)),e=e.ownerDocument||e,l=e.createElement("script"),lt(l),dt(l,"link",n),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Rr(n,a.precedence,e));return t.instance}function Rr(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,r=l,d=0;d<n.length;d++){var m=n[d];if(m.dataset.precedence===t)r=m;else if(r!==l)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function xu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Tr=null;function ep(e,t,a){if(Tr===null){var n=new Map,l=Tr=new Map;l.set(a,n)}else l=Tr,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var r=a[l];if(!(r[pl]||r[st]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var m=n.get(d);m?m.push(r):n.set(d,[r])}}return n}function tp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function hg(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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 ap(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function pg(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=tl(n.href),r=t.querySelector($l(l));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,lt(r);return}r=t.ownerDocument||t,n=Ih(n),(l=Qt.get(l))&&xu(n,l),r=r.createElement("link"),lt(r);var d=r;d._p=new Promise(function(m,j){d.onload=m,d.onerror=j}),dt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Cr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var bu=0;function mg(e,t){return e.stylesheets&&e.count===0&&wr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&bu===0&&(bu=62500*Fy());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>bu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function Cr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var zr=null;function wr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,zr=new Map,t.forEach(yg,e),zr=null,Cr.call(e))}function yg(e,t){if(!(t.state.loading&4)){var a=zr.get(e);if(a)var n=a.get(null);else{a=new Map,zr.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var d=l[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}l=t.instance,d=l.getAttribute("data-precedence"),r=a.get(d)||n,r===n&&a.set(null,l),a.set(d,l),this.count++,n=Cr.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),r?r.parentNode.insertBefore(l,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Pl={$$typeof:X,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function gg(e,t,a,n,l,r,d,m,j){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=mo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mo(0),this.hiddenUpdates=mo(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function np(e,t,a,n,l,r,d,m,j,w,H,q){return e=new gg(e,t,a,d,j,w,H,q,m),t=1,r===!0&&(t|=24),r=wt(3,null,null,t),e.current=r,r.stateNode=e,t=Po(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},ns(r),e}function lp(e){return e?(e=Mn,e):Mn}function ip(e,t,a,n,l,r){l=lp(l),n.context===null?n.context=l:n.pendingContext=l,n=Ma(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Ba(e,n,t),a!==null&&(jt(a,e,t),Ol(a,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Su(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=an(e,67108864);t!==null&&jt(t,e,67108864),Su(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=Bt();t=yo(t);var a=an(e,t);a!==null&&jt(a,e,t),Su(e,t)}}var _r=!0;function xg(e,t,a,n){var l=D.T;D.T=null;var r=Z.p;try{Z.p=2,ju(e,t,a,n)}finally{Z.p=r,D.T=l}}function vg(e,t,a,n){var l=D.T;D.T=null;var r=Z.p;try{Z.p=8,ju(e,t,a,n)}finally{Z.p=r,D.T=l}}function ju(e,t,a,n){if(_r){var l=Eu(n);if(l===null)su(e,t,n,Or,a),cp(e,n);else if(Sg(l,e,t,a,n))n.stopPropagation();else if(cp(e,n),t&4&&-1<bg.indexOf(e)){for(;l!==null;){var r=jn(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=$a(r.pendingLanes);if(d!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;d;){var j=1<<31-Ct(d);m.entanglements[1]|=j,d&=~j}aa(r),(we&6)===0&&(hr=Rt()+500,Kl(0))}}break;case 31:case 13:m=an(r,2),m!==null&&jt(m,r,2),mr(),Su(r,2)}if(r=Eu(n),r===null&&su(e,t,n,Or,a),r===l)break;l=r}l!==null&&n.stopPropagation()}else su(e,t,n,null,a)}}function Eu(e){return e=Ro(e),Au(e)}var Or=null;function Au(e){if(Or=null,e=Sn(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(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 Or=e,null}function up(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(i0()){case yc:return 2;case gc:return 8;case bi:case r0:return 32;case xc:return 268435456;default:return 32}default:return 32}}var Ru=!1,Qa=null,Za=null,Ka=null,ei=new Map,ti=new Map,Ja=[],bg="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 cp(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(t.pointerId)}}function ai(e,t,a,n,l,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[l]},t!==null&&(t=jn(t),t!==null&&op(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Sg(e,t,a,n,l){switch(t){case"focusin":return Qa=ai(Qa,e,t,a,n,l),!0;case"dragenter":return Za=ai(Za,e,t,a,n,l),!0;case"mouseover":return Ka=ai(Ka,e,t,a,n,l),!0;case"pointerover":var r=l.pointerId;return ei.set(r,ai(ei.get(r)||null,e,t,a,n,l)),!0;case"gotpointercapture":return r=l.pointerId,ti.set(r,ai(ti.get(r)||null,e,t,a,n,l)),!0}return!1}function fp(e){var t=Sn(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,Ac(e.priority,function(){sp(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Ac(e.priority,function(){sp(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 Dr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Eu(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Ao=n,a.target.dispatchEvent(n),Ao=null}else return t=jn(a),t!==null&&op(t),e.blockedOn=a,!1;t.shift()}return!0}function dp(e,t,a){Dr(e)&&a.delete(t)}function jg(){Ru=!1,Qa!==null&&Dr(Qa)&&(Qa=null),Za!==null&&Dr(Za)&&(Za=null),Ka!==null&&Dr(Ka)&&(Ka=null),ei.forEach(dp),ti.forEach(dp)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ru||(Ru=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jg)))}var Br=null;function hp(e){Br!==e&&(Br=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Br===e&&(Br=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],l=e[t+2];if(typeof n!="function"){if(Au(n||a)===null)continue;break}var r=jn(a);r!==null&&(e.splice(t,3),t-=3,Es(r,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function nl(e){function t(j){return Mr(j,e)}Qa!==null&&Mr(Qa,e),Za!==null&&Mr(Za,e),Ka!==null&&Mr(Ka,e),ei.forEach(t),ti.forEach(t);for(var a=0;a<Ja.length;a++){var n=Ja[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ja.length&&(a=Ja[0],a.blockedOn===null);)fp(a),a.blockedOn===null&&Ja.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],r=a[n+1],d=l[yt]||null;if(typeof r=="function")d||hp(a);else if(d){var m=null;if(r&&r.hasAttribute("formAction")){if(l=r,d=r[yt]||null)m=d.formAction;else if(Au(l)!==null)continue}else m=d.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),hp(a)}}}function pp(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return l=d})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Tu(e){this._internalRoot=e}Nr.prototype.render=Tu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,n=Bt();ip(a,n,e,t,null,null)},Nr.prototype.unmount=Tu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ip(e.current,2,null,e,null,null),mr(),t[bn]=null}};function Nr(e){this._internalRoot=e}Nr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ec();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ja.length&&t!==0&&t<Ja[a].priority;a++);Ja.splice(a,0,e),a===0&&fp(e)}};var mp=o.version;if(mp!=="19.2.4")throw Error(s(527,mp,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Eg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kr.isDisabled&&kr.supportsFiber)try{fl=kr.inject(Eg),Tt=kr}catch{}}return li.createRoot=function(e,t){if(!f(e))throw Error(s(299));var a=!1,n="",l=jd,r=Ed,d=Ad;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=np(e,1,!1,null,null,a,n,null,l,r,d,pp),e[bn]=t.current,ou(e),new Tu(t)},li.hydrateRoot=function(e,t,a){if(!f(e))throw Error(s(299));var n=!1,l="",r=jd,d=Ed,m=Ad,j=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=np(e,1,!0,t,a??null,n,l,j,r,d,m,pp),t.context=lp(null),a=t.current,n=Bt(),n=yo(n),l=Ma(n),l.callback=null,Ba(a,l,n),a=n,t.current.lanes=a,hl(t,a),aa(t),e[bn]=t.current,ou(e),new Nr(t)},li.version="19.2.4",li}var Rp;function Mg(){if(Rp)return wu.exports;Rp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),wu.exports=Dg(),wu.exports}var Bg=Mg();const Ng=sm(Bg);var Tp="popstate";function Cp(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function kg(i={}){function o(s,f){let h=f.state?.masked,{pathname:p,search:g,hash:v}=h||s.location;return Qu("",{pathname:p,search:g,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default",h?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function u(s,f){return typeof f=="string"?f:ui(f)}return Ug(o,u,null,i)}function Xe(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Wt(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Hg(){return Math.random().toString(36).substring(2,10)}function zp(i,o){return{usr:i.state,key:i.key,idx:o,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Qu(i,o,u=null,s,f){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?rl(o):o,state:u,key:o&&o.key||s||Hg(),unstable_mask:f}}function ui({pathname:i="/",search:o="",hash:u=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),u&&u!=="#"&&(i+=u.charAt(0)==="#"?u:"#"+u),i}function rl(i){let o={};if(i){let u=i.indexOf("#");u>=0&&(o.hash=i.substring(u),i=i.substring(0,u));let s=i.indexOf("?");s>=0&&(o.search=i.substring(s),i=i.substring(0,s)),i&&(o.pathname=i)}return o}function Ug(i,o,u,s={}){let{window:f=document.defaultView,v5Compat:h=!1}=s,p=f.history,g="POP",v=null,y=b();y==null&&(y=0,p.replaceState({...p.state,idx:y},""));function b(){return(p.state||{idx:null}).idx}function x(){g="POP";let C=b(),Q=C==null?null:C-y;y=C,v&&v({action:g,location:_.location,delta:Q})}function M(C,Q){g="PUSH";let P=Cp(C)?C:Qu(_.location,C,Q);y=b()+1;let X=zp(P,y),ie=_.createHref(P.unstable_mask||P);try{p.pushState(X,"",ie)}catch(ce){if(ce instanceof DOMException&&ce.name==="DataCloneError")throw ce;f.location.assign(ie)}h&&v&&v({action:g,location:_.location,delta:1})}function U(C,Q){g="REPLACE";let P=Cp(C)?C:Qu(_.location,C,Q);y=b();let X=zp(P,y),ie=_.createHref(P.unstable_mask||P);p.replaceState(X,"",ie),h&&v&&v({action:g,location:_.location,delta:0})}function T(C){return Lg(C)}let _={get action(){return g},get location(){return i(f,p)},listen(C){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(Tp,x),v=C,()=>{f.removeEventListener(Tp,x),v=null}},createHref(C){return o(f,C)},createURL:T,encodeLocation(C){let Q=T(C);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:M,replace:U,go(C){return p.go(C)}};return _}function Lg(i,o=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(u,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:ui(i);return s=s.replace(/ $/,"%20"),!o&&s.startsWith("//")&&(s=u+s),new URL(s,u)}function um(i,o,u="/"){return qg(i,o,u,!1)}function qg(i,o,u,s){let f=typeof o=="string"?rl(o):o,h=Aa(f.pathname||"/",u);if(h==null)return null;let p=cm(i);Gg(p);let g=null;for(let v=0;g==null&&v<p.length;++v){let y=Ig(h);g=Wg(p[v],y,s)}return g}function cm(i,o=[],u=[],s="",f=!1){let h=(p,g,v=f,y)=>{let b={relativePath:y===void 0?p.path||"":y,caseSensitive:p.caseSensitive===!0,childrenIndex:g,route:p};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&v)return;Xe(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let x=la([s,b.relativePath]),M=u.concat(b);p.children&&p.children.length>0&&(Xe(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),cm(p.children,o,M,x,v)),!(p.path==null&&!p.index)&&o.push({path:x,score:Jg(x,p.index),routesMeta:M})};return i.forEach((p,g)=>{if(p.path===""||!p.path?.includes("?"))h(p,g);else for(let v of fm(p.path))h(p,g,!0,v)}),o}function fm(i){let o=i.split("/");if(o.length===0)return[];let[u,...s]=o,f=u.endsWith("?"),h=u.replace(/\?$/,"");if(s.length===0)return f?[h,""]:[h];let p=fm(s.join("/")),g=[];return g.push(...p.map(v=>v===""?h:[h,v].join("/"))),f&&g.push(...p),g.map(v=>i.startsWith("/")&&v===""?"/":v)}function Gg(i){i.sort((o,u)=>o.score!==u.score?u.score-o.score:Fg(o.routesMeta.map(s=>s.childrenIndex),u.routesMeta.map(s=>s.childrenIndex)))}var Yg=/^:[\w-]+$/,Vg=3,Xg=2,Qg=1,Zg=10,Kg=-2,wp=i=>i==="*";function Jg(i,o){let u=i.split("/"),s=u.length;return u.some(wp)&&(s+=Kg),o&&(s+=Xg),u.filter(f=>!wp(f)).reduce((f,h)=>f+(Yg.test(h)?Vg:h===""?Qg:Zg),s)}function Fg(i,o){return i.length===o.length&&i.slice(0,-1).every((s,f)=>s===o[f])?i[i.length-1]-o[o.length-1]:0}function Wg(i,o,u=!1){let{routesMeta:s}=i,f={},h="/",p=[];for(let g=0;g<s.length;++g){let v=s[g],y=g===s.length-1,b=h==="/"?o:o.slice(h.length)||"/",x=Jr({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},b),M=v.route;if(!x&&y&&u&&!s[s.length-1].route.index&&(x=Jr({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!x)return null;Object.assign(f,x.params),p.push({params:f,pathname:la([h,x.pathname]),pathnameBase:a1(la([h,x.pathnameBase])),route:M}),x.pathnameBase!=="/"&&(h=la([h,x.pathnameBase]))}return p}function Jr(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[u,s]=$g(i.path,i.caseSensitive,i.end),f=o.match(u);if(!f)return null;let h=f[0],p=h.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:s.reduce((y,{paramName:b,isOptional:x},M)=>{if(b==="*"){let T=g[M]||"";p=h.slice(0,h.length-T.length).replace(/(.)\/+$/,"$1")}const U=g[M];return x&&!U?y[b]=void 0:y[b]=(U||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:p,pattern:i}}function $g(i,o=!1,u=!0){Wt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,g,v,y,b)=>{if(s.push({paramName:g,isOptional:v!=null}),v){let x=b.charAt(y+p.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,o?void 0:"i"),s]}function Ig(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Wt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),i}}function Aa(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let u=o.endsWith("/")?o.length-1:o.length,s=i.charAt(u);return s&&s!=="/"?null:i.slice(u)||"/"}var Pg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function e1(i,o="/"){let{pathname:u,search:s="",hash:f=""}=typeof i=="string"?rl(i):i,h;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?h=_p(u.substring(1),"/"):h=_p(u,o)):h=o,{pathname:h,search:n1(s),hash:l1(f)}}function _p(i,o){let u=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?u.length>1&&u.pop():f!=="."&&u.push(f)}),u.length>1?u.join("/"):"/"}function Mu(i,o,u,s){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function t1(i){return i.filter((o,u)=>u===0||o.route.path&&o.route.path.length>0)}function ec(i){let o=t1(i);return o.map((u,s)=>s===o.length-1?u.pathname:u.pathnameBase)}function Pr(i,o,u,s=!1){let f;typeof i=="string"?f=rl(i):(f={...i},Xe(!f.pathname||!f.pathname.includes("?"),Mu("?","pathname","search",f)),Xe(!f.pathname||!f.pathname.includes("#"),Mu("#","pathname","hash",f)),Xe(!f.search||!f.search.includes("#"),Mu("#","search","hash",f)));let h=i===""||f.pathname==="",p=h?"/":f.pathname,g;if(p==null)g=u;else{let x=o.length-1;if(!s&&p.startsWith("..")){let M=p.split("/");for(;M[0]==="..";)M.shift(),x-=1;f.pathname=M.join("/")}g=x>=0?o[x]:"/"}let v=e1(f,g),y=p&&p!=="/"&&p.endsWith("/"),b=(h||p===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(y||b)&&(v.pathname+="/"),v}var la=i=>i.join("/").replace(/\/\/+/g,"/"),a1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),n1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,l1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,i1=class{constructor(i,o,u,s=!1){this.status=i,this.statusText=o||"",this.internal=s,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function r1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function o1(i){return i.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var dm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function hm(i,o){let u=i;if(typeof u!="string"||!Pg.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let s=u,f=!1;if(dm)try{let h=new URL(window.location.href),p=u.startsWith("//")?new URL(h.protocol+u):new URL(u),g=Aa(p.pathname,o);p.origin===h.origin&&g!=null?u=g+p.search+p.hash:f=!0}catch{Wt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:f,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pm=["POST","PUT","PATCH","DELETE"];new Set(pm);var s1=["GET",...pm];new Set(s1);var ol=A.createContext(null);ol.displayName="DataRouter";var eo=A.createContext(null);eo.displayName="DataRouterState";var u1=A.createContext(!1),mm=A.createContext({isTransitioning:!1});mm.displayName="ViewTransition";var c1=A.createContext(new Map);c1.displayName="Fetchers";var f1=A.createContext(null);f1.displayName="Await";var Nt=A.createContext(null);Nt.displayName="Navigation";var fi=A.createContext(null);fi.displayName="Location";var ia=A.createContext({outlet:null,matches:[],isDataRoute:!1});ia.displayName="Route";var tc=A.createContext(null);tc.displayName="RouteError";var ym="REACT_ROUTER_ERROR",d1="REDIRECT",h1="ROUTE_ERROR_RESPONSE";function p1(i){if(i.startsWith(`${ym}:${d1}:{`))try{let o=JSON.parse(i.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function m1(i){if(i.startsWith(`${ym}:${h1}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new i1(o.status,o.statusText,o.data)}catch{}}function y1(i,{relative:o}={}){Xe(sl(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:s}=A.useContext(Nt),{hash:f,pathname:h,search:p}=di(i,{relative:o}),g=h;return u!=="/"&&(g=h==="/"?u:la([u,h])),s.createHref({pathname:g,search:p,hash:f})}function sl(){return A.useContext(fi)!=null}function $t(){return Xe(sl(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(fi).location}var gm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xm(i){A.useContext(Nt).static||A.useLayoutEffect(i)}function to(){let{isDataRoute:i}=A.useContext(ia);return i?w1():g1()}function g1(){Xe(sl(),"useNavigate() may be used only in the context of a <Router> component.");let i=A.useContext(ol),{basename:o,navigator:u}=A.useContext(Nt),{matches:s}=A.useContext(ia),{pathname:f}=$t(),h=JSON.stringify(ec(s)),p=A.useRef(!1);return xm(()=>{p.current=!0}),A.useCallback((v,y={})=>{if(Wt(p.current,gm),!p.current)return;if(typeof v=="number"){u.go(v);return}let b=Pr(v,JSON.parse(h),f,y.relative==="path");i==null&&o!=="/"&&(b.pathname=b.pathname==="/"?o:la([o,b.pathname])),(y.replace?u.replace:u.push)(b,y.state,y)},[o,u,h,f,i])}A.createContext(null);function di(i,{relative:o}={}){let{matches:u}=A.useContext(ia),{pathname:s}=$t(),f=JSON.stringify(ec(u));return A.useMemo(()=>Pr(i,JSON.parse(f),s,o==="path"),[i,f,s,o])}function x1(i,o){return vm(i,o)}function vm(i,o,u){Xe(sl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=A.useContext(Nt),{matches:f}=A.useContext(ia),h=f[f.length-1],p=h?h.params:{},g=h?h.pathname:"/",v=h?h.pathnameBase:"/",y=h&&h.route;{let C=y&&y.path||"";Sm(g,!y||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${C}">) 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.
|
|
10
|
-
|
|
11
|
-
Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let b=$t(),x;if(o){let C=typeof o=="string"?rl(o):o;Xe(v==="/"||C.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${C.pathname}" was given in the \`location\` prop.`),x=C}else x=b;let M=x.pathname||"/",U=M;if(v!=="/"){let C=v.replace(/^\//,"").split("/");U="/"+M.replace(/^\//,"").split("/").slice(C.length).join("/")}let T=um(i,{pathname:U});Wt(y||T!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Wt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 _=E1(T&&T.map(C=>Object.assign({},C,{params:Object.assign({},p,C.params),pathname:la([v,s.encodeLocation?s.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?v:la([v,s.encodeLocation?s.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),f,u);return o&&_?A.createElement(fi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},_):_}function v1(){let i=z1(),o=r1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),u=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:s},h={padding:"2px 4px",backgroundColor:s},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:h},"ErrorBoundary")," or"," ",A.createElement("code",{style:h},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},o),u?A.createElement("pre",{style:f},u):null,p)}var b1=A.createElement(v1,null),bm=class extends A.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){this.props.onError?this.props.onError(i,o):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const u=m1(i.digest);u&&(i=u)}let o=i!==void 0?A.createElement(ia.Provider,{value:this.props.routeContext},A.createElement(tc.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?A.createElement(S1,{error:i},o):o}};bm.contextType=u1;var Bu=new WeakMap;function S1({children:i,error:o}){let{basename:u}=A.useContext(Nt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=p1(o.digest);if(s){let f=Bu.get(o);if(f)throw f;let h=hm(s.location,u);if(dm&&!Bu.get(o))if(h.isExternal||s.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:s.replace}));throw Bu.set(o,p),p}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function j1({routeContext:i,match:o,children:u}){let s=A.useContext(ol);return s&&s.static&&s.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=o.route.id),A.createElement(ia.Provider,{value:i},u)}function E1(i,o=[],u){let s=u?.state;if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let f=i,h=s?.errors;if(h!=null){let b=f.findIndex(x=>x.route.id&&h?.[x.route.id]!==void 0);Xe(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let p=!1,g=-1;if(u&&s){p=s.renderFallback;for(let b=0;b<f.length;b++){let x=f[b];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=b),x.route.id){let{loaderData:M,errors:U}=s,T=x.route.loader&&!M.hasOwnProperty(x.route.id)&&(!U||U[x.route.id]===void 0);if(x.route.lazy||T){u.isStatic&&(p=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let v=u?.onError,y=s&&v?(b,x)=>{v(b,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:o1(s.matches),errorInfo:x})}:void 0;return f.reduceRight((b,x,M)=>{let U,T=!1,_=null,C=null;s&&(U=h&&x.route.id?h[x.route.id]:void 0,_=x.route.errorElement||b1,p&&(g<0&&M===0?(Sm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,C=null):g===M&&(T=!0,C=x.route.hydrateFallbackElement||null)));let Q=o.concat(f.slice(0,M+1)),P=()=>{let X;return U?X=_:T?X=C:x.route.Component?X=A.createElement(x.route.Component,null):x.route.element?X=x.route.element:X=b,A.createElement(j1,{match:x,routeContext:{outlet:b,matches:Q,isDataRoute:s!=null},children:X})};return s&&(x.route.ErrorBoundary||x.route.errorElement||M===0)?A.createElement(bm,{location:s.location,revalidation:s.revalidation,component:_,error:U,children:P(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:y}):P()},null)}function ac(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function A1(i){let o=A.useContext(ol);return Xe(o,ac(i)),o}function R1(i){let o=A.useContext(eo);return Xe(o,ac(i)),o}function T1(i){let o=A.useContext(ia);return Xe(o,ac(i)),o}function nc(i){let o=T1(i),u=o.matches[o.matches.length-1];return Xe(u.route.id,`${i} can only be used on routes that contain a unique "id"`),u.route.id}function C1(){return nc("useRouteId")}function z1(){let i=A.useContext(tc),o=R1("useRouteError"),u=nc("useRouteError");return i!==void 0?i:o.errors?.[u]}function w1(){let{router:i}=A1("useNavigate"),o=nc("useNavigate"),u=A.useRef(!1);return xm(()=>{u.current=!0}),A.useCallback(async(f,h={})=>{Wt(u.current,gm),u.current&&(typeof f=="number"?await i.navigate(f):await i.navigate(f,{fromRouteId:o,...h}))},[i,o])}var Op={};function Sm(i,o,u){!o&&!Op[i]&&(Op[i]=!0,Wt(!1,u))}A.memo(_1);function _1({routes:i,future:o,state:u,isStatic:s,onError:f}){return vm(i,void 0,{state:u,isStatic:s,onError:f})}function O1({to:i,replace:o,state:u,relative:s}){Xe(sl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=A.useContext(Nt);Wt(!f,"<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:h}=A.useContext(ia),{pathname:p}=$t(),g=to(),v=Pr(i,ec(h),p,s==="path"),y=JSON.stringify(v);return A.useEffect(()=>{g(JSON.parse(y),{replace:o,state:u,relative:s})},[g,y,s,o,u]),null}function na(i){Xe(!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 D1({basename:i="/",children:o=null,location:u,navigationType:s="POP",navigator:f,static:h=!1,unstable_useTransitions:p}){Xe(!sl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=i.replace(/^\/*/,"/"),v=A.useMemo(()=>({basename:g,navigator:f,static:h,unstable_useTransitions:p,future:{}}),[g,f,h,p]);typeof u=="string"&&(u=rl(u));let{pathname:y="/",search:b="",hash:x="",state:M=null,key:U="default",unstable_mask:T}=u,_=A.useMemo(()=>{let C=Aa(y,g);return C==null?null:{location:{pathname:C,search:b,hash:x,state:M,key:U,unstable_mask:T},navigationType:s}},[g,y,b,x,M,U,s,T]);return Wt(_!=null,`<Router basename="${g}"> is not able to match the URL "${y}${b}${x}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:A.createElement(Nt.Provider,{value:v},A.createElement(fi.Provider,{children:o,value:_}))}function M1({children:i,location:o}){return x1(Zu(i),o)}function Zu(i,o=[]){let u=[];return A.Children.forEach(i,(s,f)=>{if(!A.isValidElement(s))return;let h=[...o,f];if(s.type===A.Fragment){u.push.apply(u,Zu(s.props.children,h));return}Xe(s.type===na,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let p={id:s.props.id||h.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(p.children=Zu(s.props.children,h)),u.push(p)}),u}var Gr="get",Yr="application/x-www-form-urlencoded";function ao(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function B1(i){return ao(i)&&i.tagName.toLowerCase()==="button"}function N1(i){return ao(i)&&i.tagName.toLowerCase()==="form"}function k1(i){return ao(i)&&i.tagName.toLowerCase()==="input"}function H1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function U1(i,o){return i.button===0&&(!o||o==="_self")&&!H1(i)}var Hr=null;function L1(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var q1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Nu(i){return i!=null&&!q1.has(i)?(Wt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yr}"`),null):i}function G1(i,o){let u,s,f,h,p;if(N1(i)){let g=i.getAttribute("action");s=g?Aa(g,o):null,u=i.getAttribute("method")||Gr,f=Nu(i.getAttribute("enctype"))||Yr,h=new FormData(i)}else if(B1(i)||k1(i)&&(i.type==="submit"||i.type==="image")){let g=i.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=i.getAttribute("formaction")||g.getAttribute("action");if(s=v?Aa(v,o):null,u=i.getAttribute("formmethod")||g.getAttribute("method")||Gr,f=Nu(i.getAttribute("formenctype"))||Nu(g.getAttribute("enctype"))||Yr,h=new FormData(g,i),!L1()){let{name:y,type:b,value:x}=i;if(b==="image"){let M=y?`${y}.`:"";h.append(`${M}x`,"0"),h.append(`${M}y`,"0")}else y&&h.append(y,x)}}else{if(ao(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Gr,s=null,f=Yr,p=i}return h&&f==="text/plain"&&(p=h,h=void 0),{action:s,method:u.toLowerCase(),encType:f,formData:h,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function lc(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Y1(i,o,u,s){let f=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return u?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:o&&Aa(f.pathname,o)==="/"?f.pathname=`${o.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function V1(i,o){if(i.id in o)return o[i.id];try{let u=await import(i.module);return o[i.id]=u,u}catch(u){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function X1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Q1(i,o,u){let s=await Promise.all(i.map(async f=>{let h=o.routes[f.route.id];if(h){let p=await V1(h,u);return p.links?p.links():[]}return[]}));return F1(s.flat(1).filter(X1).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Dp(i,o,u,s,f,h){let p=(v,y)=>u[y]?v.route.id!==u[y].route.id:!0,g=(v,y)=>u[y].pathname!==v.pathname||u[y].route.path?.endsWith("*")&&u[y].params["*"]!==v.params["*"];return h==="assets"?o.filter((v,y)=>p(v,y)||g(v,y)):h==="data"?o.filter((v,y)=>{let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(p(v,y)||g(v,y))return!0;if(v.route.shouldRevalidate){let x=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:u[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function Z1(i,o,{includeHydrateFallback:u}={}){return K1(i.map(s=>{let f=o.routes[s.route.id];if(!f)return[];let h=[f.module];return f.clientActionModule&&(h=h.concat(f.clientActionModule)),f.clientLoaderModule&&(h=h.concat(f.clientLoaderModule)),u&&f.hydrateFallbackModule&&(h=h.concat(f.hydrateFallbackModule)),f.imports&&(h=h.concat(f.imports)),h}).flat(1))}function K1(i){return[...new Set(i)]}function J1(i){let o={},u=Object.keys(i).sort();for(let s of u)o[s]=i[s];return o}function F1(i,o){let u=new Set;return new Set(o),i.reduce((s,f)=>{let h=JSON.stringify(J1(f));return u.has(h)||(u.add(h),s.push({key:h,link:f})),s},[])}function jm(){let i=A.useContext(ol);return lc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function W1(){let i=A.useContext(eo);return lc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var ic=A.createContext(void 0);ic.displayName="FrameworkContext";function Em(){let i=A.useContext(ic);return lc(i,"You must render this element inside a <HydratedRouter> element"),i}function $1(i,o){let u=A.useContext(ic),[s,f]=A.useState(!1),[h,p]=A.useState(!1),{onFocus:g,onBlur:v,onMouseEnter:y,onMouseLeave:b,onTouchStart:x}=o,M=A.useRef(null);A.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let _=Q=>{Q.forEach(P=>{p(P.isIntersecting)})},C=new IntersectionObserver(_,{threshold:.5});return M.current&&C.observe(M.current),()=>{C.disconnect()}}},[i]),A.useEffect(()=>{if(s){let _=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(_)}}},[s]);let U=()=>{f(!0)},T=()=>{f(!1),p(!1)};return u?i!=="intent"?[h,M,{}]:[h,M,{onFocus:ii(g,U),onBlur:ii(v,T),onMouseEnter:ii(y,U),onMouseLeave:ii(b,T),onTouchStart:ii(x,U)}]:[!1,M,{}]}function ii(i,o){return u=>{i&&i(u),u.defaultPrevented||o(u)}}function I1({page:i,...o}){let{router:u}=jm(),s=A.useMemo(()=>um(u.routes,i,u.basename),[u.routes,i,u.basename]);return s?A.createElement(ex,{page:i,matches:s,...o}):null}function P1(i){let{manifest:o,routeModules:u}=Em(),[s,f]=A.useState([]);return A.useEffect(()=>{let h=!1;return Q1(i,o,u).then(p=>{h||f(p)}),()=>{h=!0}},[i,o,u]),s}function ex({page:i,matches:o,...u}){let s=$t(),{future:f,manifest:h,routeModules:p}=Em(),{basename:g}=jm(),{loaderData:v,matches:y}=W1(),b=A.useMemo(()=>Dp(i,o,y,h,s,"data"),[i,o,y,h,s]),x=A.useMemo(()=>Dp(i,o,y,h,s,"assets"),[i,o,y,h,s]),M=A.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let _=new Set,C=!1;if(o.forEach(P=>{let X=h.routes[P.route.id];!X||!X.hasLoader||(!b.some(ie=>ie.route.id===P.route.id)&&P.route.id in v&&p[P.route.id]?.shouldRevalidate||X.hasClientLoader?C=!0:_.add(P.route.id))}),_.size===0)return[];let Q=Y1(i,g,f.unstable_trailingSlashAwareDataRequests,"data");return C&&_.size>0&&Q.searchParams.set("_routes",o.filter(P=>_.has(P.route.id)).map(P=>P.route.id).join(",")),[Q.pathname+Q.search]},[g,f.unstable_trailingSlashAwareDataRequests,v,s,h,b,o,i,p]),U=A.useMemo(()=>Z1(x,h),[x,h]),T=P1(x);return A.createElement(A.Fragment,null,M.map(_=>A.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...u})),U.map(_=>A.createElement("link",{key:_,rel:"modulepreload",href:_,...u})),T.map(({key:_,link:C})=>A.createElement("link",{key:_,nonce:u.nonce,...C,crossOrigin:C.crossOrigin??u.crossOrigin})))}function tx(...i){return o=>{i.forEach(u=>{typeof u=="function"?u(o):u!=null&&(u.current=o)})}}var ax=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ax&&(window.__reactRouterVersion="7.13.1")}catch{}function nx({basename:i,children:o,unstable_useTransitions:u,window:s}){let f=A.useRef();f.current==null&&(f.current=kg({window:s,v5Compat:!0}));let h=f.current,[p,g]=A.useState({action:h.action,location:h.location}),v=A.useCallback(y=>{u===!1?g(y):A.startTransition(()=>g(y))},[u]);return A.useLayoutEffect(()=>h.listen(v),[h,v]),A.createElement(D1,{basename:i,children:o,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:u})}var Am=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,si=A.forwardRef(function({onClick:o,discover:u="render",prefetch:s="none",relative:f,reloadDocument:h,replace:p,unstable_mask:g,state:v,target:y,to:b,preventScrollReset:x,viewTransition:M,unstable_defaultShouldRevalidate:U,...T},_){let{basename:C,navigator:Q,unstable_useTransitions:P}=A.useContext(Nt),X=typeof b=="string"&&Am.test(b),ie=hm(b,C);b=ie.to;let ce=y1(b,{relative:f}),ye=$t(),F=null;if(g){let Oe=Pr(g,[],ye.unstable_mask?ye.unstable_mask.pathname:"/",!0);C!=="/"&&(Oe.pathname=Oe.pathname==="/"?C:la([C,Oe.pathname])),F=Q.createHref(Oe)}let[_e,Be,rt]=$1(s,T),$e=ox(b,{replace:p,unstable_mask:g,state:v,target:y,preventScrollReset:x,relative:f,viewTransition:M,unstable_defaultShouldRevalidate:U,unstable_useTransitions:P});function K(Oe){o&&o(Oe),Oe.defaultPrevented||$e(Oe)}let de=!(ie.isExternal||h),ve=A.createElement("a",{...T,...rt,href:(de?F:void 0)||ie.absoluteURL||ce,onClick:de?K:o,ref:tx(_,Be),target:y,"data-discover":!X&&u==="render"?"true":void 0});return _e&&!X?A.createElement(A.Fragment,null,ve,A.createElement(I1,{page:ce})):ve});si.displayName="Link";var lx=A.forwardRef(function({"aria-current":o="page",caseSensitive:u=!1,className:s="",end:f=!1,style:h,to:p,viewTransition:g,children:v,...y},b){let x=di(p,{relative:y.relative}),M=$t(),U=A.useContext(eo),{navigator:T,basename:_}=A.useContext(Nt),C=U!=null&&dx(x)&&g===!0,Q=T.encodeLocation?T.encodeLocation(x).pathname:x.pathname,P=M.pathname,X=U&&U.navigation&&U.navigation.location?U.navigation.location.pathname:null;u||(P=P.toLowerCase(),X=X?X.toLowerCase():null,Q=Q.toLowerCase()),X&&_&&(X=Aa(X,_)||X);const ie=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let ce=P===Q||!f&&P.startsWith(Q)&&P.charAt(ie)==="/",ye=X!=null&&(X===Q||!f&&X.startsWith(Q)&&X.charAt(Q.length)==="/"),F={isActive:ce,isPending:ye,isTransitioning:C},_e=ce?o:void 0,Be;typeof s=="function"?Be=s(F):Be=[s,ce?"active":null,ye?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let rt=typeof h=="function"?h(F):h;return A.createElement(si,{...y,"aria-current":_e,className:Be,ref:b,style:rt,to:p,viewTransition:g},typeof v=="function"?v(F):v)});lx.displayName="NavLink";var ix=A.forwardRef(({discover:i="render",fetcherKey:o,navigate:u,reloadDocument:s,replace:f,state:h,method:p=Gr,action:g,onSubmit:v,relative:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:M,...U},T)=>{let{unstable_useTransitions:_}=A.useContext(Nt),C=cx(),Q=fx(g,{relative:y}),P=p.toLowerCase()==="get"?"get":"post",X=typeof g=="string"&&Am.test(g),ie=ce=>{if(v&&v(ce),ce.defaultPrevented)return;ce.preventDefault();let ye=ce.nativeEvent.submitter,F=ye?.getAttribute("formmethod")||p,_e=()=>C(ye||ce.currentTarget,{fetcherKey:o,method:F,navigate:u,replace:f,state:h,relative:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:M});_&&u!==!1?A.startTransition(()=>_e()):_e()};return A.createElement("form",{ref:T,method:P,action:Q,onSubmit:s?v:ie,...U,"data-discover":!X&&i==="render"?"true":void 0})});ix.displayName="Form";function rx(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rm(i){let o=A.useContext(ol);return Xe(o,rx(i)),o}function ox(i,{target:o,replace:u,unstable_mask:s,state:f,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:v,unstable_useTransitions:y}={}){let b=to(),x=$t(),M=di(i,{relative:p});return A.useCallback(U=>{if(U1(U,o)){U.preventDefault();let T=u!==void 0?u:ui(x)===ui(M),_=()=>b(i,{replace:T,unstable_mask:s,state:f,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:v});y?A.startTransition(()=>_()):_()}},[x,b,M,u,s,f,o,i,h,p,g,v,y])}var sx=0,ux=()=>`__${String(++sx)}__`;function cx(){let{router:i}=Rm("useSubmit"),{basename:o}=A.useContext(Nt),u=C1(),s=i.fetch,f=i.navigate;return A.useCallback(async(h,p={})=>{let{action:g,method:v,encType:y,formData:b,body:x}=G1(h,o);if(p.navigate===!1){let M=p.fetcherKey||ux();await s(M,u,p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:x,formMethod:p.method||v,formEncType:p.encType||y,flushSync:p.flushSync})}else await f(p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:x,formMethod:p.method||v,formEncType:p.encType||y,replace:p.replace,state:p.state,fromRouteId:u,flushSync:p.flushSync,viewTransition:p.viewTransition})},[s,f,o,u])}function fx(i,{relative:o}={}){let{basename:u}=A.useContext(Nt),s=A.useContext(ia);Xe(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),h={...di(i||".",{relative:o})},p=$t();if(i==null){h.search=p.search;let g=new URLSearchParams(h.search),v=g.getAll("index");if(v.some(b=>b==="")){g.delete("index"),v.filter(x=>x).forEach(x=>g.append("index",x));let b=g.toString();h.search=b?`?${b}`:""}}return(!i||i===".")&&f.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(h.pathname=h.pathname==="/"?u:la([u,h.pathname])),ui(h)}function dx(i,{relative:o}={}){let u=A.useContext(mm);Xe(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Rm("useViewTransitionState"),f=di(i,{relative:o});if(!u.isTransitioning)return!1;let h=Aa(u.currentLocation.pathname,s)||u.currentLocation.pathname,p=Aa(u.nextLocation.pathname,s)||u.nextLocation.pathname;return Jr(f.pathname,p)!=null||Jr(f.pathname,h)!=null}const Tm=(...i)=>i.filter((o,u,s)=>!!o&&o.trim()!==""&&s.indexOf(o)===u).join(" ").trim();const hx=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const px=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,u,s)=>s?s.toUpperCase():u.toLowerCase());const Mp=i=>{const o=px(i);return o.charAt(0).toUpperCase()+o.slice(1)};var mx={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"};const yx=i=>{for(const o in i)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const gx=A.forwardRef(({color:i="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:s,className:f="",children:h,iconNode:p,...g},v)=>A.createElement("svg",{ref:v,...mx,width:o,height:o,stroke:i,strokeWidth:s?Number(u)*24/Number(o):u,className:Tm("lucide",f),...!h&&!yx(g)&&{"aria-hidden":"true"},...g},[...p.map(([y,b])=>A.createElement(y,b)),...Array.isArray(h)?h:[h]]));const le=(i,o)=>{const u=A.forwardRef(({className:s,...f},h)=>A.createElement(gx,{ref:h,iconNode:o,className:Tm(`lucide-${hx(Mp(i))}`,`lucide-${i}`,s),...f}));return u.displayName=Mp(i),u};const xx=[["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"}]],Vr=le("activity",xx);const vx=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],bx=le("arrow-left",vx);const Sx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],jx=le("arrow-right",Sx);const Ex=[["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"}]],Bp=le("bot",Ex);const Ax=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Rx=le("camera",Ax);const Tx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ku=le("check",Tx);const Cx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zx=le("chevron-down",Cx);const wx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_x=le("chevron-left",wx);const Ox=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ci=le("chevron-right",Ox);const Dx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Mx=le("chevron-up",Dx);const Bx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ku=le("circle-check",Bx);const Nx=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],kx=le("circle-play",Nx);const Hx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Ju=le("clock",Hx);const Ux=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Lx=le("code",Ux);const qx=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Gx=le("cpu",qx);const Yx=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Vx=le("database",Yx);const Xx=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Qx=le("download",Xx);const Zx=[["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"}]],Kx=le("eye",Zx);const Jx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Ur=le("file-code",Jx);const Fx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Hu=le("file-image",Fx);const Wx=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Fr=le("file-text",Wx);const $x=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Np=le("file",$x);const Ix=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],kp=le("folder-plus",Ix);const Px=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Cm=le("folder",Px);const ev=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],tv=le("funnel",ev);const av=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],nv=le("github",av);const lv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],zm=le("globe",lv);const iv=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],rc=le("hard-drive",iv);const rv=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],ov=le("languages",rv);const sv=[["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"}]],uv=le("layout-dashboard",sv);const cv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],fv=le("loader-circle",cv);const dv=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],hv=le("lock",dv);const pv=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],wm=le("message-square",pv);const mv=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],yv=le("mic-off",mv);const gv=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Hp=le("mic",gv);const xv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],vv=le("panels-top-left",xv);const bv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sv=le("plus",bv);const jv=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Up=le("power",jv);const Ev=[["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"}]],Av=le("refresh-cw",Ev);const Rv=[["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"}]],Lp=le("rotate-ccw",Rv);const Tv=[["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"}]],Cv=le("save",Tv);const zv=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],wv=le("send",zv);const _v=[["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"}]],Ov=le("server",_v);const Dv=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Mv=le("settings",Dv);const Bv=[["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"}]],ll=le("shield",Bv);const Nv=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],_m=le("trash-2",Nv);const kv=[["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"}]],Om=le("triangle-alert",kv);const Hv=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Uv=le("upload",Hv);const Lv=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Dm=le("user",Lv);const qv=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Wr=le("wrench",qv);const Gv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],qp=le("x",Gv);const Yv=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],hi=le("zap",Yv),Vv=[{icon:uv,label:"Control Center",labelHi:"डैशबोर्ड",path:"/dashboard"},{icon:wm,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:rc,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:Wr,label:"Modules",path:"/tools"},{icon:hi,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:ll,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:Mv,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function Xv({user:i,isOpen:o,onToggle:u,onLogout:s}){const f=to(),h=$t();return c.jsxs("aside",{style:{...nt.sidebar,width:o?"280px":"72px",resize:o?"horizontal":"none",minWidth:o?"200px":"72px",maxWidth:o?"500px":"72px"},children:[c.jsxs("div",{style:nt.header,children:[c.jsxs("div",{style:nt.brand,onClick:()=>f("/"),children:[c.jsx("div",{style:nt.logoWrap,children:c.jsx("span",{style:nt.logoChar,children:"स"})}),o&&c.jsxs("div",{style:nt.brandText,children:[c.jsx("span",{style:nt.brandName,children:"SamarthyaBot"}),c.jsx("span",{style:nt.brandSub,children:"v1.0.0"})]})]}),c.jsx("button",{onClick:u,style:nt.toggleBtn,children:o?c.jsx(_x,{size:18}):c.jsx(ci,{size:18})})]}),c.jsx("nav",{style:nt.nav,children:Vv.map(p=>{const g=p.icon,v=h.pathname===p.path||p.path!=="/"&&h.pathname.startsWith(p.path);return c.jsxs("button",{onClick:()=>f(p.path),style:{...nt.navItem,...v?nt.navItemActive:{},justifyContent:o?"flex-start":"center"},title:o?void 0:p.label,children:[c.jsx(g,{size:20,style:{minWidth:"20px"}}),o&&c.jsx("span",{children:p.label}),v&&c.jsx("div",{style:nt.activeIndicator})]},p.path)})}),c.jsx("div",{style:nt.footer,children:o&&c.jsxs("div",{style:nt.userInfo,children:[c.jsx("div",{style:nt.avatar,children:(i?.name||"U").charAt(0).toUpperCase()}),c.jsxs("div",{style:nt.userText,children:[c.jsx("div",{style:nt.userName,children:i?.name||"Local Admin"}),c.jsx("div",{style:nt.userStatus,children:"AI Agent Operator"})]})]})})]})}const nt={sidebar:{position:"sticky",top:0,height:"100vh",background:"rgba(10, 10, 26, 0.95)",backdropFilter:"blur(20px)",borderRight:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",zIndex:100,overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--border-subtle)",minHeight:"72px"},brand:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer",overflow:"hidden"},logoWrap:{width:"38px",height:"38px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},logoChar:{fontSize:"1.3rem",color:"#0D0D0D",fontFamily:"var(--font-hindi)",fontWeight:700},brandText:{display:"flex",flexDirection:"column",whiteSpace:"nowrap"},brandName:{fontWeight:700,fontSize:"1.1rem",color:"var(--text-primary)"},brandSub:{fontSize:"0.7rem",color:"var(--text-muted)"},toggleBtn:{background:"var(--bg-hover)",border:"1px solid var(--border-subtle)",color:"var(--text-secondary)",width:"30px",height:"30px",borderRadius:"var(--radius-sm)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all var(--transition-fast)",flexShrink:0},nav:{flex:1,padding:"16px 12px",display:"flex",flexDirection:"column",gap:"4px"},navItem:{display:"flex",alignItems:"center",gap:"12px",padding:"12px 14px",borderRadius:"var(--radius-md)",background:"transparent",border:"none",color:"var(--text-secondary)",fontSize:"0.9rem",fontWeight:500,cursor:"pointer",transition:"all var(--transition-fast)",position:"relative",fontFamily:"var(--font-primary)",whiteSpace:"nowrap",width:"100%"},navItemActive:{background:"rgba(255, 153, 51, 0.12)",color:"var(--accent-primary)"},activeIndicator:{position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"3px",height:"60%",borderRadius:"0 4px 4px 0",background:"var(--accent-primary)"},footer:{padding:"16px",borderTop:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",gap:"12px"},userInfo:{display:"flex",alignItems:"center",gap:"10px",overflow:"hidden"},avatar:{width:"36px",height:"36px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:700,fontSize:"0.9rem",flexShrink:0},userText:{overflow:"hidden",whiteSpace:"nowrap"},userName:{fontWeight:600,fontSize:"0.85rem",color:"var(--text-primary)"},userStatus:{fontSize:"0.75rem",color:"var(--text-muted)"}};function Mm(i,o){return function(){return i.apply(o,arguments)}}const{toString:Qv}=Object.prototype,{getPrototypeOf:oc}=Object,{iterator:no,toStringTag:Bm}=Symbol,lo=(i=>o=>{const u=Qv.call(o);return i[u]||(i[u]=u.slice(8,-1).toLowerCase())})(Object.create(null)),It=i=>(i=i.toLowerCase(),o=>lo(o)===i),io=i=>o=>typeof o===i,{isArray:ul}=Array,il=io("undefined");function pi(i){return i!==null&&!il(i)&&i.constructor!==null&&!il(i.constructor)&&Et(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const Nm=It("ArrayBuffer");function Zv(i){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(i):o=i&&i.buffer&&Nm(i.buffer),o}const Kv=io("string"),Et=io("function"),km=io("number"),mi=i=>i!==null&&typeof i=="object",Jv=i=>i===!0||i===!1,Xr=i=>{if(lo(i)!=="object")return!1;const o=oc(i);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Bm in i)&&!(no in i)},Fv=i=>{if(!mi(i)||pi(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch{return!1}},Wv=It("Date"),$v=It("File"),Iv=It("Blob"),Pv=It("FileList"),eb=i=>mi(i)&&Et(i.pipe),tb=i=>{let o;return i&&(typeof FormData=="function"&&i instanceof FormData||Et(i.append)&&((o=lo(i))==="formdata"||o==="object"&&Et(i.toString)&&i.toString()==="[object FormData]"))},ab=It("URLSearchParams"),[nb,lb,ib,rb]=["ReadableStream","Request","Response","Headers"].map(It),ob=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yi(i,o,{allOwnKeys:u=!1}={}){if(i===null||typeof i>"u")return;let s,f;if(typeof i!="object"&&(i=[i]),ul(i))for(s=0,f=i.length;s<f;s++)o.call(null,i[s],s,i);else{if(pi(i))return;const h=u?Object.getOwnPropertyNames(i):Object.keys(i),p=h.length;let g;for(s=0;s<p;s++)g=h[s],o.call(null,i[g],g,i)}}function Hm(i,o){if(pi(i))return null;o=o.toLowerCase();const u=Object.keys(i);let s=u.length,f;for(;s-- >0;)if(f=u[s],o===f.toLowerCase())return f;return null}const gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Um=i=>!il(i)&&i!==gn;function Fu(){const{caseless:i,skipUndefined:o}=Um(this)&&this||{},u={},s=(f,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=i&&Hm(u,h)||h;Xr(u[p])&&Xr(f)?u[p]=Fu(u[p],f):Xr(f)?u[p]=Fu({},f):ul(f)?u[p]=f.slice():(!o||!il(f))&&(u[p]=f)};for(let f=0,h=arguments.length;f<h;f++)arguments[f]&&yi(arguments[f],s);return u}const sb=(i,o,u,{allOwnKeys:s}={})=>(yi(o,(f,h)=>{u&&Et(f)?Object.defineProperty(i,h,{value:Mm(f,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(i,h,{value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),i),ub=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),cb=(i,o,u,s)=>{i.prototype=Object.create(o.prototype,s),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(i,"super",{value:o.prototype}),u&&Object.assign(i.prototype,u)},fb=(i,o,u,s)=>{let f,h,p;const g={};if(o=o||{},i==null)return o;do{for(f=Object.getOwnPropertyNames(i),h=f.length;h-- >0;)p=f[h],(!s||s(p,i,o))&&!g[p]&&(o[p]=i[p],g[p]=!0);i=u!==!1&&oc(i)}while(i&&(!u||u(i,o))&&i!==Object.prototype);return o},db=(i,o,u)=>{i=String(i),(u===void 0||u>i.length)&&(u=i.length),u-=o.length;const s=i.indexOf(o,u);return s!==-1&&s===u},hb=i=>{if(!i)return null;if(ul(i))return i;let o=i.length;if(!km(o))return null;const u=new Array(o);for(;o-- >0;)u[o]=i[o];return u},pb=(i=>o=>i&&o instanceof i)(typeof Uint8Array<"u"&&oc(Uint8Array)),mb=(i,o)=>{const s=(i&&i[no]).call(i);let f;for(;(f=s.next())&&!f.done;){const h=f.value;o.call(i,h[0],h[1])}},yb=(i,o)=>{let u;const s=[];for(;(u=i.exec(o))!==null;)s.push(u);return s},gb=It("HTMLFormElement"),xb=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,s,f){return s.toUpperCase()+f}),Gp=(({hasOwnProperty:i})=>(o,u)=>i.call(o,u))(Object.prototype),vb=It("RegExp"),Lm=(i,o)=>{const u=Object.getOwnPropertyDescriptors(i),s={};yi(u,(f,h)=>{let p;(p=o(f,h,i))!==!1&&(s[h]=p||f)}),Object.defineProperties(i,s)},bb=i=>{Lm(i,(o,u)=>{if(Et(i)&&["arguments","caller","callee"].indexOf(u)!==-1)return!1;const s=i[u];if(Et(s)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},Sb=(i,o)=>{const u={},s=f=>{f.forEach(h=>{u[h]=!0})};return ul(i)?s(i):s(String(i).split(o)),u},jb=()=>{},Eb=(i,o)=>i!=null&&Number.isFinite(i=+i)?i:o;function Ab(i){return!!(i&&Et(i.append)&&i[Bm]==="FormData"&&i[no])}const Rb=i=>{const o=new Array(10),u=(s,f)=>{if(mi(s)){if(o.indexOf(s)>=0)return;if(pi(s))return s;if(!("toJSON"in s)){o[f]=s;const h=ul(s)?[]:{};return yi(s,(p,g)=>{const v=u(p,f+1);!il(v)&&(h[g]=v)}),o[f]=void 0,h}}return s};return u(i,0)},Tb=It("AsyncFunction"),Cb=i=>i&&(mi(i)||Et(i))&&Et(i.then)&&Et(i.catch),qm=((i,o)=>i?setImmediate:o?((u,s)=>(gn.addEventListener("message",({source:f,data:h})=>{f===gn&&h===u&&s.length&&s.shift()()},!1),f=>{s.push(f),gn.postMessage(u,"*")}))(`axios@${Math.random()}`,[]):u=>setTimeout(u))(typeof setImmediate=="function",Et(gn.postMessage)),zb=typeof queueMicrotask<"u"?queueMicrotask.bind(gn):typeof process<"u"&&process.nextTick||qm,wb=i=>i!=null&&Et(i[no]),N={isArray:ul,isArrayBuffer:Nm,isBuffer:pi,isFormData:tb,isArrayBufferView:Zv,isString:Kv,isNumber:km,isBoolean:Jv,isObject:mi,isPlainObject:Xr,isEmptyObject:Fv,isReadableStream:nb,isRequest:lb,isResponse:ib,isHeaders:rb,isUndefined:il,isDate:Wv,isFile:$v,isBlob:Iv,isRegExp:vb,isFunction:Et,isStream:eb,isURLSearchParams:ab,isTypedArray:pb,isFileList:Pv,forEach:yi,merge:Fu,extend:sb,trim:ob,stripBOM:ub,inherits:cb,toFlatObject:fb,kindOf:lo,kindOfTest:It,endsWith:db,toArray:hb,forEachEntry:mb,matchAll:yb,isHTMLForm:gb,hasOwnProperty:Gp,hasOwnProp:Gp,reduceDescriptors:Lm,freezeMethods:bb,toObjectSet:Sb,toCamelCase:xb,noop:jb,toFiniteNumber:Eb,findKey:Hm,global:gn,isContextDefined:Um,isSpecCompliantForm:Ab,toJSONObject:Rb,isAsyncFn:Tb,isThenable:Cb,setImmediate:qm,asap:zb,isIterable:wb};let oe=class Gm extends Error{static from(o,u,s,f,h,p){const g=new Gm(o.message,u||o.code,s,f,h);return g.cause=o,g.name=o.name,p&&Object.assign(g,p),g}constructor(o,u,s,f,h){super(o),this.name="AxiosError",this.isAxiosError=!0,u&&(this.code=u),s&&(this.config=s),f&&(this.request=f),h&&(this.response=h,this.status=h.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.status}}};oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";oe.ERR_BAD_OPTION="ERR_BAD_OPTION";oe.ECONNABORTED="ECONNABORTED";oe.ETIMEDOUT="ETIMEDOUT";oe.ERR_NETWORK="ERR_NETWORK";oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";oe.ERR_DEPRECATED="ERR_DEPRECATED";oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";oe.ERR_CANCELED="ERR_CANCELED";oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";oe.ERR_INVALID_URL="ERR_INVALID_URL";const _b=null;function Wu(i){return N.isPlainObject(i)||N.isArray(i)}function Ym(i){return N.endsWith(i,"[]")?i.slice(0,-2):i}function Yp(i,o,u){return i?i.concat(o).map(function(f,h){return f=Ym(f),!u&&h?"["+f+"]":f}).join(u?".":""):o}function Ob(i){return N.isArray(i)&&!i.some(Wu)}const Db=N.toFlatObject(N,{},null,function(o){return/^is[A-Z]/.test(o)});function ro(i,o,u){if(!N.isObject(i))throw new TypeError("target must be an object");o=o||new FormData,u=N.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,C){return!N.isUndefined(C[_])});const s=u.metaTokens,f=u.visitor||b,h=u.dots,p=u.indexes,v=(u.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(o);if(!N.isFunction(f))throw new TypeError("visitor must be a function");function y(T){if(T===null)return"";if(N.isDate(T))return T.toISOString();if(N.isBoolean(T))return T.toString();if(!v&&N.isBlob(T))throw new oe("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(T)||N.isTypedArray(T)?v&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function b(T,_,C){let Q=T;if(T&&!C&&typeof T=="object"){if(N.endsWith(_,"{}"))_=s?_:_.slice(0,-2),T=JSON.stringify(T);else if(N.isArray(T)&&Ob(T)||(N.isFileList(T)||N.endsWith(_,"[]"))&&(Q=N.toArray(T)))return _=Ym(_),Q.forEach(function(X,ie){!(N.isUndefined(X)||X===null)&&o.append(p===!0?Yp([_],ie,h):p===null?_:_+"[]",y(X))}),!1}return Wu(T)?!0:(o.append(Yp(C,_,h),y(T)),!1)}const x=[],M=Object.assign(Db,{defaultVisitor:b,convertValue:y,isVisitable:Wu});function U(T,_){if(!N.isUndefined(T)){if(x.indexOf(T)!==-1)throw Error("Circular reference detected in "+_.join("."));x.push(T),N.forEach(T,function(Q,P){(!(N.isUndefined(Q)||Q===null)&&f.call(o,Q,N.isString(P)?P.trim():P,_,M))===!0&&U(Q,_?_.concat(P):[P])}),x.pop()}}if(!N.isObject(i))throw new TypeError("data must be an object");return U(i),o}function Vp(i){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function sc(i,o){this._pairs=[],i&&ro(i,this,o)}const Vm=sc.prototype;Vm.append=function(o,u){this._pairs.push([o,u])};Vm.toString=function(o){const u=o?function(s){return o.call(this,s,Vp)}:Vp;return this._pairs.map(function(f){return u(f[0])+"="+u(f[1])},"").join("&")};function Mb(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xm(i,o,u){if(!o)return i;const s=u&&u.encode||Mb,f=N.isFunction(u)?{serialize:u}:u,h=f&&f.serialize;let p;if(h?p=h(o,f):p=N.isURLSearchParams(o)?o.toString():new sc(o,f).toString(s),p){const g=i.indexOf("#");g!==-1&&(i=i.slice(0,g)),i+=(i.indexOf("?")===-1?"?":"&")+p}return i}class Xp{constructor(){this.handlers=[]}use(o,u,s){return this.handlers.push({fulfilled:o,rejected:u,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){N.forEach(this.handlers,function(s){s!==null&&o(s)})}}const uc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Bb=typeof URLSearchParams<"u"?URLSearchParams:sc,Nb=typeof FormData<"u"?FormData:null,kb=typeof Blob<"u"?Blob:null,Hb={isBrowser:!0,classes:{URLSearchParams:Bb,FormData:Nb,Blob:kb},protocols:["http","https","file","blob","url","data"]},cc=typeof window<"u"&&typeof document<"u",$u=typeof navigator=="object"&&navigator||void 0,Ub=cc&&(!$u||["ReactNative","NativeScript","NS"].indexOf($u.product)<0),Lb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qb=cc&&window.location.href||"http://localhost",Gb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cc,hasStandardBrowserEnv:Ub,hasStandardBrowserWebWorkerEnv:Lb,navigator:$u,origin:qb},Symbol.toStringTag,{value:"Module"})),pt={...Gb,...Hb};function Yb(i,o){return ro(i,new pt.classes.URLSearchParams,{visitor:function(u,s,f,h){return pt.isNode&&N.isBuffer(u)?(this.append(s,u.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...o})}function Vb(i){return N.matchAll(/\w+|\[(\w*)]/g,i).map(o=>o[0]==="[]"?"":o[1]||o[0])}function Xb(i){const o={},u=Object.keys(i);let s;const f=u.length;let h;for(s=0;s<f;s++)h=u[s],o[h]=i[h];return o}function Qm(i){function o(u,s,f,h){let p=u[h++];if(p==="__proto__")return!0;const g=Number.isFinite(+p),v=h>=u.length;return p=!p&&N.isArray(f)?f.length:p,v?(N.hasOwnProp(f,p)?f[p]=[f[p],s]:f[p]=s,!g):((!f[p]||!N.isObject(f[p]))&&(f[p]=[]),o(u,s,f[p],h)&&N.isArray(f[p])&&(f[p]=Xb(f[p])),!g)}if(N.isFormData(i)&&N.isFunction(i.entries)){const u={};return N.forEachEntry(i,(s,f)=>{o(Vb(s),f,u,0)}),u}return null}function Qb(i,o,u){if(N.isString(i))try{return(o||JSON.parse)(i),N.trim(i)}catch(s){if(s.name!=="SyntaxError")throw s}return(u||JSON.stringify)(i)}const gi={transitional:uc,adapter:["xhr","http","fetch"],transformRequest:[function(o,u){const s=u.getContentType()||"",f=s.indexOf("application/json")>-1,h=N.isObject(o);if(h&&N.isHTMLForm(o)&&(o=new FormData(o)),N.isFormData(o))return f?JSON.stringify(Qm(o)):o;if(N.isArrayBuffer(o)||N.isBuffer(o)||N.isStream(o)||N.isFile(o)||N.isBlob(o)||N.isReadableStream(o))return o;if(N.isArrayBufferView(o))return o.buffer;if(N.isURLSearchParams(o))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let g;if(h){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Yb(o,this.formSerializer).toString();if((g=N.isFileList(o))||s.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return ro(g?{"files[]":o}:o,v&&new v,this.formSerializer)}}return h||f?(u.setContentType("application/json",!1),Qb(o)):o}],transformResponse:[function(o){const u=this.transitional||gi.transitional,s=u&&u.forcedJSONParsing,f=this.responseType==="json";if(N.isResponse(o)||N.isReadableStream(o))return o;if(o&&N.isString(o)&&(s&&!this.responseType||f)){const p=!(u&&u.silentJSONParsing)&&f;try{return JSON.parse(o,this.parseReviver)}catch(g){if(p)throw g.name==="SyntaxError"?oe.from(g,oe.ERR_BAD_RESPONSE,this,null,this.response):g}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pt.classes.FormData,Blob:pt.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],i=>{gi.headers[i]={}});const Zb=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kb=i=>{const o={};let u,s,f;return i&&i.split(`
|
|
12
|
-
`).forEach(function(p){f=p.indexOf(":"),u=p.substring(0,f).trim().toLowerCase(),s=p.substring(f+1).trim(),!(!u||o[u]&&Zb[u])&&(u==="set-cookie"?o[u]?o[u].push(s):o[u]=[s]:o[u]=o[u]?o[u]+", "+s:s)}),o},Qp=Symbol("internals");function ri(i){return i&&String(i).trim().toLowerCase()}function Qr(i){return i===!1||i==null?i:N.isArray(i)?i.map(Qr):String(i)}function Jb(i){const o=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=u.exec(i);)o[s[1]]=s[2];return o}const Fb=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function Uu(i,o,u,s,f){if(N.isFunction(s))return s.call(this,o,u);if(f&&(o=u),!!N.isString(o)){if(N.isString(s))return o.indexOf(s)!==-1;if(N.isRegExp(s))return s.test(o)}}function Wb(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,u,s)=>u.toUpperCase()+s)}function $b(i,o){const u=N.toCamelCase(" "+o);["get","set","has"].forEach(s=>{Object.defineProperty(i,s+u,{value:function(f,h,p){return this[s].call(this,o,f,h,p)},configurable:!0})})}let At=class{constructor(o){o&&this.set(o)}set(o,u,s){const f=this;function h(g,v,y){const b=ri(v);if(!b)throw new Error("header name must be a non-empty string");const x=N.findKey(f,b);(!x||f[x]===void 0||y===!0||y===void 0&&f[x]!==!1)&&(f[x||v]=Qr(g))}const p=(g,v)=>N.forEach(g,(y,b)=>h(y,b,v));if(N.isPlainObject(o)||o instanceof this.constructor)p(o,u);else if(N.isString(o)&&(o=o.trim())&&!Fb(o))p(Kb(o),u);else if(N.isObject(o)&&N.isIterable(o)){let g={},v,y;for(const b of o){if(!N.isArray(b))throw TypeError("Object iterator must return a key-value pair");g[y=b[0]]=(v=g[y])?N.isArray(v)?[...v,b[1]]:[v,b[1]]:b[1]}p(g,u)}else o!=null&&h(u,o,s);return this}get(o,u){if(o=ri(o),o){const s=N.findKey(this,o);if(s){const f=this[s];if(!u)return f;if(u===!0)return Jb(f);if(N.isFunction(u))return u.call(this,f,s);if(N.isRegExp(u))return u.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,u){if(o=ri(o),o){const s=N.findKey(this,o);return!!(s&&this[s]!==void 0&&(!u||Uu(this,this[s],s,u)))}return!1}delete(o,u){const s=this;let f=!1;function h(p){if(p=ri(p),p){const g=N.findKey(s,p);g&&(!u||Uu(s,s[g],g,u))&&(delete s[g],f=!0)}}return N.isArray(o)?o.forEach(h):h(o),f}clear(o){const u=Object.keys(this);let s=u.length,f=!1;for(;s--;){const h=u[s];(!o||Uu(this,this[h],h,o,!0))&&(delete this[h],f=!0)}return f}normalize(o){const u=this,s={};return N.forEach(this,(f,h)=>{const p=N.findKey(s,h);if(p){u[p]=Qr(f),delete u[h];return}const g=o?Wb(h):String(h).trim();g!==h&&delete u[h],u[g]=Qr(f),s[g]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const u=Object.create(null);return N.forEach(this,(s,f)=>{s!=null&&s!==!1&&(u[f]=o&&N.isArray(s)?s.join(", "):s)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,u])=>o+": "+u).join(`
|
|
13
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...u){const s=new this(o);return u.forEach(f=>s.set(f)),s}static accessor(o){const s=(this[Qp]=this[Qp]={accessors:{}}).accessors,f=this.prototype;function h(p){const g=ri(p);s[g]||($b(f,p),s[g]=!0)}return N.isArray(o)?o.forEach(h):h(o),this}};At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(At.prototype,({value:i},o)=>{let u=o[0].toUpperCase()+o.slice(1);return{get:()=>i,set(s){this[u]=s}}});N.freezeMethods(At);function Lu(i,o){const u=this||gi,s=o||u,f=At.from(s.headers);let h=s.data;return N.forEach(i,function(g){h=g.call(u,h,f.normalize(),o?o.status:void 0)}),f.normalize(),h}function Zm(i){return!!(i&&i.__CANCEL__)}let xi=class extends oe{constructor(o,u,s){super(o??"canceled",oe.ERR_CANCELED,u,s),this.name="CanceledError",this.__CANCEL__=!0}};function Km(i,o,u){const s=u.config.validateStatus;!u.status||!s||s(u.status)?i(u):o(new oe("Request failed with status code "+u.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}function Ib(i){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return o&&o[1]||""}function Pb(i,o){i=i||10;const u=new Array(i),s=new Array(i);let f=0,h=0,p;return o=o!==void 0?o:1e3,function(v){const y=Date.now(),b=s[h];p||(p=y),u[f]=v,s[f]=y;let x=h,M=0;for(;x!==f;)M+=u[x++],x=x%i;if(f=(f+1)%i,f===h&&(h=(h+1)%i),y-p<o)return;const U=b&&y-b;return U?Math.round(M*1e3/U):void 0}}function e2(i,o){let u=0,s=1e3/o,f,h;const p=(y,b=Date.now())=>{u=b,f=null,h&&(clearTimeout(h),h=null),i(...y)};return[(...y)=>{const b=Date.now(),x=b-u;x>=s?p(y,b):(f=y,h||(h=setTimeout(()=>{h=null,p(f)},s-x)))},()=>f&&p(f)]}const $r=(i,o,u=3)=>{let s=0;const f=Pb(50,250);return e2(h=>{const p=h.loaded,g=h.lengthComputable?h.total:void 0,v=p-s,y=f(v),b=p<=g;s=p;const x={loaded:p,total:g,progress:g?p/g:void 0,bytes:v,rate:y||void 0,estimated:y&&g&&b?(g-p)/y:void 0,event:h,lengthComputable:g!=null,[o?"download":"upload"]:!0};i(x)},u)},Zp=(i,o)=>{const u=i!=null;return[s=>o[0]({lengthComputable:u,total:i,loaded:s}),o[1]]},Kp=i=>(...o)=>N.asap(()=>i(...o)),t2=pt.hasStandardBrowserEnv?((i,o)=>u=>(u=new URL(u,pt.origin),i.protocol===u.protocol&&i.host===u.host&&(o||i.port===u.port)))(new URL(pt.origin),pt.navigator&&/(msie|trident)/i.test(pt.navigator.userAgent)):()=>!0,a2=pt.hasStandardBrowserEnv?{write(i,o,u,s,f,h,p){if(typeof document>"u")return;const g=[`${i}=${encodeURIComponent(o)}`];N.isNumber(u)&&g.push(`expires=${new Date(u).toUTCString()}`),N.isString(s)&&g.push(`path=${s}`),N.isString(f)&&g.push(`domain=${f}`),h===!0&&g.push("secure"),N.isString(p)&&g.push(`SameSite=${p}`),document.cookie=g.join("; ")},read(i){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+i+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(i){this.write(i,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function n2(i){return typeof i!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function l2(i,o){return o?i.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):i}function Jm(i,o,u){let s=!n2(o);return i&&(s||u==!1)?l2(i,o):o}const Jp=i=>i instanceof At?{...i}:i;function vn(i,o){o=o||{};const u={};function s(y,b,x,M){return N.isPlainObject(y)&&N.isPlainObject(b)?N.merge.call({caseless:M},y,b):N.isPlainObject(b)?N.merge({},b):N.isArray(b)?b.slice():b}function f(y,b,x,M){if(N.isUndefined(b)){if(!N.isUndefined(y))return s(void 0,y,x,M)}else return s(y,b,x,M)}function h(y,b){if(!N.isUndefined(b))return s(void 0,b)}function p(y,b){if(N.isUndefined(b)){if(!N.isUndefined(y))return s(void 0,y)}else return s(void 0,b)}function g(y,b,x){if(x in o)return s(y,b);if(x in i)return s(void 0,y)}const v={url:h,method:h,data:h,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:g,headers:(y,b,x)=>f(Jp(y),Jp(b),x,!0)};return N.forEach(Object.keys({...i,...o}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const x=N.hasOwnProp(v,b)?v[b]:f,M=x(i[b],o[b],b);N.isUndefined(M)&&x!==g||(u[b]=M)}),u}const Fm=i=>{const o=vn({},i);let{data:u,withXSRFToken:s,xsrfHeaderName:f,xsrfCookieName:h,headers:p,auth:g}=o;if(o.headers=p=At.from(p),o.url=Xm(Jm(o.baseURL,o.url,o.allowAbsoluteUrls),i.params,i.paramsSerializer),g&&p.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),N.isFormData(u)){if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(N.isFunction(u.getHeaders)){const v=u.getHeaders(),y=["content-type","content-length"];Object.entries(v).forEach(([b,x])=>{y.includes(b.toLowerCase())&&p.set(b,x)})}}if(pt.hasStandardBrowserEnv&&(s&&N.isFunction(s)&&(s=s(o)),s||s!==!1&&t2(o.url))){const v=f&&h&&a2.read(h);v&&p.set(f,v)}return o},i2=typeof XMLHttpRequest<"u",r2=i2&&function(i){return new Promise(function(u,s){const f=Fm(i);let h=f.data;const p=At.from(f.headers).normalize();let{responseType:g,onUploadProgress:v,onDownloadProgress:y}=f,b,x,M,U,T;function _(){U&&U(),T&&T(),f.cancelToken&&f.cancelToken.unsubscribe(b),f.signal&&f.signal.removeEventListener("abort",b)}let C=new XMLHttpRequest;C.open(f.method.toUpperCase(),f.url,!0),C.timeout=f.timeout;function Q(){if(!C)return;const X=At.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),ce={data:!g||g==="text"||g==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:X,config:i,request:C};Km(function(F){u(F),_()},function(F){s(F),_()},ce),C=null}"onloadend"in C?C.onloadend=Q:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(Q)},C.onabort=function(){C&&(s(new oe("Request aborted",oe.ECONNABORTED,i,C)),C=null)},C.onerror=function(ie){const ce=ie&&ie.message?ie.message:"Network Error",ye=new oe(ce,oe.ERR_NETWORK,i,C);ye.event=ie||null,s(ye),C=null},C.ontimeout=function(){let ie=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const ce=f.transitional||uc;f.timeoutErrorMessage&&(ie=f.timeoutErrorMessage),s(new oe(ie,ce.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,i,C)),C=null},h===void 0&&p.setContentType(null),"setRequestHeader"in C&&N.forEach(p.toJSON(),function(ie,ce){C.setRequestHeader(ce,ie)}),N.isUndefined(f.withCredentials)||(C.withCredentials=!!f.withCredentials),g&&g!=="json"&&(C.responseType=f.responseType),y&&([M,T]=$r(y,!0),C.addEventListener("progress",M)),v&&C.upload&&([x,U]=$r(v),C.upload.addEventListener("progress",x),C.upload.addEventListener("loadend",U)),(f.cancelToken||f.signal)&&(b=X=>{C&&(s(!X||X.type?new xi(null,i,C):X),C.abort(),C=null)},f.cancelToken&&f.cancelToken.subscribe(b),f.signal&&(f.signal.aborted?b():f.signal.addEventListener("abort",b)));const P=Ib(f.url);if(P&&pt.protocols.indexOf(P)===-1){s(new oe("Unsupported protocol "+P+":",oe.ERR_BAD_REQUEST,i));return}C.send(h||null)})},o2=(i,o)=>{const{length:u}=i=i?i.filter(Boolean):[];if(o||u){let s=new AbortController,f;const h=function(y){if(!f){f=!0,g();const b=y instanceof Error?y:this.reason;s.abort(b instanceof oe?b:new xi(b instanceof Error?b.message:b))}};let p=o&&setTimeout(()=>{p=null,h(new oe(`timeout of ${o}ms exceeded`,oe.ETIMEDOUT))},o);const g=()=>{i&&(p&&clearTimeout(p),p=null,i.forEach(y=>{y.unsubscribe?y.unsubscribe(h):y.removeEventListener("abort",h)}),i=null)};i.forEach(y=>y.addEventListener("abort",h));const{signal:v}=s;return v.unsubscribe=()=>N.asap(g),v}},s2=function*(i,o){let u=i.byteLength;if(u<o){yield i;return}let s=0,f;for(;s<u;)f=s+o,yield i.slice(s,f),s=f},u2=async function*(i,o){for await(const u of c2(i))yield*s2(u,o)},c2=async function*(i){if(i[Symbol.asyncIterator]){yield*i;return}const o=i.getReader();try{for(;;){const{done:u,value:s}=await o.read();if(u)break;yield s}}finally{await o.cancel()}},Fp=(i,o,u,s)=>{const f=u2(i,o);let h=0,p,g=v=>{p||(p=!0,s&&s(v))};return new ReadableStream({async pull(v){try{const{done:y,value:b}=await f.next();if(y){g(),v.close();return}let x=b.byteLength;if(u){let M=h+=x;u(M)}v.enqueue(new Uint8Array(b))}catch(y){throw g(y),y}},cancel(v){return g(v),f.return()}},{highWaterMark:2})},Wp=64*1024,{isFunction:Lr}=N,f2=(({Request:i,Response:o})=>({Request:i,Response:o}))(N.global),{ReadableStream:$p,TextEncoder:Ip}=N.global,Pp=(i,...o)=>{try{return!!i(...o)}catch{return!1}},d2=i=>{i=N.merge.call({skipUndefined:!0},f2,i);const{fetch:o,Request:u,Response:s}=i,f=o?Lr(o):typeof fetch=="function",h=Lr(u),p=Lr(s);if(!f)return!1;const g=f&&Lr($p),v=f&&(typeof Ip=="function"?(T=>_=>T.encode(_))(new Ip):async T=>new Uint8Array(await new u(T).arrayBuffer())),y=h&&g&&Pp(()=>{let T=!1;const _=new u(pt.origin,{body:new $p,method:"POST",get duplex(){return T=!0,"half"}}).headers.has("Content-Type");return T&&!_}),b=p&&g&&Pp(()=>N.isReadableStream(new s("").body)),x={stream:b&&(T=>T.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(T=>{!x[T]&&(x[T]=(_,C)=>{let Q=_&&_[T];if(Q)return Q.call(_);throw new oe(`Response type '${T}' is not supported`,oe.ERR_NOT_SUPPORT,C)})});const M=async T=>{if(T==null)return 0;if(N.isBlob(T))return T.size;if(N.isSpecCompliantForm(T))return(await new u(pt.origin,{method:"POST",body:T}).arrayBuffer()).byteLength;if(N.isArrayBufferView(T)||N.isArrayBuffer(T))return T.byteLength;if(N.isURLSearchParams(T)&&(T=T+""),N.isString(T))return(await v(T)).byteLength},U=async(T,_)=>{const C=N.toFiniteNumber(T.getContentLength());return C??M(_)};return async T=>{let{url:_,method:C,data:Q,signal:P,cancelToken:X,timeout:ie,onDownloadProgress:ce,onUploadProgress:ye,responseType:F,headers:_e,withCredentials:Be="same-origin",fetchOptions:rt}=Fm(T),$e=o||fetch;F=F?(F+"").toLowerCase():"text";let K=o2([P,X&&X.toAbortSignal()],ie),de=null;const ve=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let Oe;try{if(ye&&y&&C!=="get"&&C!=="head"&&(Oe=await U(_e,Q))!==0){let S=new u(_,{method:"POST",body:Q,duplex:"half"}),B;if(N.isFormData(Q)&&(B=S.headers.get("content-type"))&&_e.setContentType(B),S.body){const[Y,V]=Zp(Oe,$r(Kp(ye)));Q=Fp(S.body,Wp,Y,V)}}N.isString(Be)||(Be=Be?"include":"omit");const D=h&&"credentials"in u.prototype,Z={...rt,signal:K,method:C.toUpperCase(),headers:_e.normalize().toJSON(),body:Q,duplex:"half",credentials:D?Be:void 0};de=h&&new u(_,Z);let ae=await(h?$e(de,rt):$e(_,Z));const Re=b&&(F==="stream"||F==="response");if(b&&(ce||Re&&ve)){const S={};["status","statusText","headers"].forEach(I=>{S[I]=ae[I]});const B=N.toFiniteNumber(ae.headers.get("content-length")),[Y,V]=ce&&Zp(B,$r(Kp(ce),!0))||[];ae=new s(Fp(ae.body,Wp,Y,()=>{V&&V(),ve&&ve()}),S)}F=F||"text";let J=await x[N.findKey(x,F)||"text"](ae,T);return!Re&&ve&&ve(),await new Promise((S,B)=>{Km(S,B,{data:J,headers:At.from(ae.headers),status:ae.status,statusText:ae.statusText,config:T,request:de})})}catch(D){throw ve&&ve(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,T,de,D&&D.response),{cause:D.cause||D}):oe.from(D,D&&D.code,T,de,D&&D.response)}}},h2=new Map,Wm=i=>{let o=i&&i.env||{};const{fetch:u,Request:s,Response:f}=o,h=[s,f,u];let p=h.length,g=p,v,y,b=h2;for(;g--;)v=h[g],y=b.get(v),y===void 0&&b.set(v,y=g?new Map:d2(o)),b=y;return y};Wm();const fc={http:_b,xhr:r2,fetch:{get:Wm}};N.forEach(fc,(i,o)=>{if(i){try{Object.defineProperty(i,"name",{value:o})}catch{}Object.defineProperty(i,"adapterName",{value:o})}});const em=i=>`- ${i}`,p2=i=>N.isFunction(i)||i===null||i===!1;function m2(i,o){i=N.isArray(i)?i:[i];const{length:u}=i;let s,f;const h={};for(let p=0;p<u;p++){s=i[p];let g;if(f=s,!p2(s)&&(f=fc[(g=String(s)).toLowerCase()],f===void 0))throw new oe(`Unknown adapter '${g}'`);if(f&&(N.isFunction(f)||(f=f.get(o))))break;h[g||"#"+p]=f}if(!f){const p=Object.entries(h).map(([v,y])=>`adapter ${v} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=u?p.length>1?`since :
|
|
14
|
-
`+p.map(em).join(`
|
|
15
|
-
`):" "+em(p[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return f}const $m={getAdapter:m2,adapters:fc};function qu(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new xi(null,i)}function tm(i){return qu(i),i.headers=At.from(i.headers),i.data=Lu.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),$m.getAdapter(i.adapter||gi.adapter,i)(i).then(function(s){return qu(i),s.data=Lu.call(i,i.transformResponse,s),s.headers=At.from(s.headers),s},function(s){return Zm(s)||(qu(i),s&&s.response&&(s.response.data=Lu.call(i,i.transformResponse,s.response),s.response.headers=At.from(s.response.headers))),Promise.reject(s)})}const Im="1.13.5",oo={};["object","boolean","number","function","string","symbol"].forEach((i,o)=>{oo[i]=function(s){return typeof s===i||"a"+(o<1?"n ":" ")+i}});const am={};oo.transitional=function(o,u,s){function f(h,p){return"[Axios v"+Im+"] Transitional option '"+h+"'"+p+(s?". "+s:"")}return(h,p,g)=>{if(o===!1)throw new oe(f(p," has been removed"+(u?" in "+u:"")),oe.ERR_DEPRECATED);return u&&!am[p]&&(am[p]=!0,console.warn(f(p," has been deprecated since v"+u+" and will be removed in the near future"))),o?o(h,p,g):!0}};oo.spelling=function(o){return(u,s)=>(console.warn(`${s} is likely a misspelling of ${o}`),!0)};function y2(i,o,u){if(typeof i!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const s=Object.keys(i);let f=s.length;for(;f-- >0;){const h=s[f],p=o[h];if(p){const g=i[h],v=g===void 0||p(g,h,i);if(v!==!0)throw new oe("option "+h+" must be "+v,oe.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new oe("Unknown option "+h,oe.ERR_BAD_OPTION)}}const Zr={assertOptions:y2,validators:oo},Zt=Zr.validators;let xn=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Xp,response:new Xp}}async request(o,u){try{return await this._request(o,u)}catch(s){if(s instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const h=f.stack?f.stack.replace(/^.+\n/,""):"";try{s.stack?h&&!String(s.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
|
16
|
-
`+h):s.stack=h}catch{}}throw s}}_request(o,u){typeof o=="string"?(u=u||{},u.url=o):u=o||{},u=vn(this.defaults,u);const{transitional:s,paramsSerializer:f,headers:h}=u;s!==void 0&&Zr.assertOptions(s,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean),legacyInterceptorReqResOrdering:Zt.transitional(Zt.boolean)},!1),f!=null&&(N.isFunction(f)?u.paramsSerializer={serialize:f}:Zr.assertOptions(f,{encode:Zt.function,serialize:Zt.function},!0)),u.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),Zr.assertOptions(u,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let p=h&&N.merge(h.common,h[u.method]);h&&N.forEach(["delete","get","head","post","put","patch","common"],T=>{delete h[T]}),u.headers=At.concat(p,h);const g=[];let v=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(u)===!1)return;v=v&&_.synchronous;const C=u.transitional||uc;C&&C.legacyInterceptorReqResOrdering?g.unshift(_.fulfilled,_.rejected):g.push(_.fulfilled,_.rejected)});const y=[];this.interceptors.response.forEach(function(_){y.push(_.fulfilled,_.rejected)});let b,x=0,M;if(!v){const T=[tm.bind(this),void 0];for(T.unshift(...g),T.push(...y),M=T.length,b=Promise.resolve(u);x<M;)b=b.then(T[x++],T[x++]);return b}M=g.length;let U=u;for(;x<M;){const T=g[x++],_=g[x++];try{U=T(U)}catch(C){_.call(this,C);break}}try{b=tm.call(this,U)}catch(T){return Promise.reject(T)}for(x=0,M=y.length;x<M;)b=b.then(y[x++],y[x++]);return b}getUri(o){o=vn(this.defaults,o);const u=Jm(o.baseURL,o.url,o.allowAbsoluteUrls);return Xm(u,o.params,o.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(o){xn.prototype[o]=function(u,s){return this.request(vn(s||{},{method:o,url:u,data:(s||{}).data}))}});N.forEach(["post","put","patch"],function(o){function u(s){return function(h,p,g){return this.request(vn(g||{},{method:o,headers:s?{"Content-Type":"multipart/form-data"}:{},url:h,data:p}))}}xn.prototype[o]=u(),xn.prototype[o+"Form"]=u(!0)});let g2=class Pm{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(h){u=h});const s=this;this.promise.then(f=>{if(!s._listeners)return;let h=s._listeners.length;for(;h-- >0;)s._listeners[h](f);s._listeners=null}),this.promise.then=f=>{let h;const p=new Promise(g=>{s.subscribe(g),h=g}).then(f);return p.cancel=function(){s.unsubscribe(h)},p},o(function(h,p,g){s.reason||(s.reason=new xi(h,p,g),u(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const u=this._listeners.indexOf(o);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const o=new AbortController,u=s=>{o.abort(s)};return this.subscribe(u),o.signal.unsubscribe=()=>this.unsubscribe(u),o.signal}static source(){let o;return{token:new Pm(function(f){o=f}),cancel:o}}};function x2(i){return function(u){return i.apply(null,u)}}function v2(i){return N.isObject(i)&&i.isAxiosError===!0}const Iu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Iu).forEach(([i,o])=>{Iu[o]=i});function e0(i){const o=new xn(i),u=Mm(xn.prototype.request,o);return N.extend(u,xn.prototype,o,{allOwnKeys:!0}),N.extend(u,o,null,{allOwnKeys:!0}),u.create=function(f){return e0(vn(i,f))},u}const We=e0(gi);We.Axios=xn;We.CanceledError=xi;We.CancelToken=g2;We.isCancel=Zm;We.VERSION=Im;We.toFormData=ro;We.AxiosError=oe;We.Cancel=We.CanceledError;We.all=function(o){return Promise.all(o)};We.spread=x2;We.isAxiosError=v2;We.mergeConfig=vn;We.AxiosHeaders=At;We.formToJSON=i=>Qm(N.isHTMLForm(i)?new FormData(i):i);We.getAdapter=$m.getAdapter;We.HttpStatusCode=Iu;We.default=We;const{Axios:X2,AxiosError:Q2,CanceledError:Z2,isCancel:K2,CancelToken:J2,VERSION:F2,all:W2,Cancel:$2,isAxiosError:I2,spread:P2,toFormData:eS,AxiosHeaders:tS,HttpStatusCode:aS,formToJSON:nS,getAdapter:lS,mergeConfig:iS}=We,t0="/api",Ue=We.create({baseURL:t0,headers:{"Content-Type":"application/json"}});Ue.interceptors.request.use(i=>{const o=localStorage.getItem("samarthya_token");return o&&(i.headers.Authorization=`Bearer ${o}`),i});const dc={register:i=>Ue.post("/auth/register",i),login:i=>Ue.post("/auth/login",i),demoLogin:()=>Ue.post("/auth/demo"),getProfile:()=>Ue.get("/auth/profile"),updateProfile:i=>Ue.put("/auth/profile",i)},oi={sendMessage:i=>Ue.post("/chat/message",i),getConversations:()=>Ue.get("/chat/conversations"),getConversation:i=>Ue.get(`/chat/conversations/${i}`),deleteConversation:i=>Ue.delete(`/chat/conversations/${i}`),togglePin:i=>Ue.patch(`/chat/conversations/${i}/pin`)},Kr={getLogs:i=>Ue.get("/audit/logs",{params:i}),getStats:()=>Ue.get("/audit/stats"),rollback:i=>Ue.post(`/audit/rollback/${i}`)},Gu={getAll:()=>Ue.get("/tools"),getPacks:()=>Ue.get("/tools/packs"),getPackTools:i=>Ue.get(`/tools/packs/${i}`)},b2={analyze:(i,o)=>Ue.post("/screen/analyze",{image:i,prompt:o}),getSupported:()=>Ue.get("/screen/supported")},yn={list:i=>Ue.get("/files/list",{params:{path:i}}),read:i=>Ue.get("/files/read",{params:{path:i}}),download:i=>`${t0}/files/download?path=${encodeURIComponent(i)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(i,o)=>Ue.post("/files/mkdir",{name:i,parentPath:o}),upload:(i,o,u)=>Ue.post("/files/upload",{filename:i,content:o,parentPath:u}),deleteFile:i=>Ue.delete("/files/delete",{params:{path:i}}),getStats:()=>Ue.get("/files/stats")},Yu={getStatus:()=>Ue.get("/platform/status"),getJobs:()=>Ue.get("/platform/jobs"),emergencyStop:()=>Ue.post("/platform/emergency-stop")},S2=[{emoji:"🔍",text:"Web search karo",textEn:"Search the web"},{emoji:"📝",text:"Note likh do",textEn:"Take a note"},{emoji:"🧮",text:"Calculate karo",textEn:"Do a calculation"},{emoji:"⏰",text:"Reminder set karo",textEn:"Set a reminder"},{emoji:"📅",text:"Calendar mein add karo",textEn:"Add to calendar"},{emoji:"💳",text:"UPI link banao",textEn:"Generate UPI link"}],j2=i=>{if(!i)return"";const o=new Date(i);return isNaN(o)?"":o.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},E2=i=>{const o={};return i.forEach(u=>{const s=u.createdAt?new Date(u.createdAt):new Date;if(isNaN(s))return;const f=new Date,h=new Date;h.setDate(f.getDate()-1);let p;s.toDateString()===f.toDateString()?p="Today":s.toDateString()===h.toDateString()?p="Yesterday":p=s.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),o[p]||(o[p]=[]),o[p].push(u)}),o},nm=i=>i?i.split(`
|
|
17
|
-
`).map((o,u)=>{const s=[];let f=o;const h=/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/;let p;for(;(p=h.exec(f))!==null;){if(p.index>0){const g=f.substring(0,p.index);s.push(c.jsx("span",{children:g.replace(/\*\*/g,"")},`t-${p.index}`))}s.push(c.jsx("a",{href:p[2],target:"_blank",rel:"noopener noreferrer",style:{color:"#FF9933",textDecoration:"underline",fontWeight:"bold"},children:p[1].replace(/\*\*/g,"")},`l-${p.index}`)),f=f.substring(p.index+p[0].length)}if(f.length>0){let g=f;g.startsWith("- ")&&(g="• "+g.substring(2)),s.push(c.jsx("span",{children:g.replace(/\*\*/g,"")},`end-${u}`))}return c.jsxs(Ir.Fragment,{children:[s.length>0?s:c.jsx("span",{children:o.replace(/\*\*/g,"")}),c.jsx("br",{})]},u)}):null;function lm({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState(null),[h,p]=A.useState([]),[g,v]=A.useState(""),[y,b]=A.useState(!1),[x,M]=A.useState(!1),[U,T]=A.useState(!1),[_,C]=A.useState(!1),[Q,P]=A.useState(null),X=A.useRef(null),ie=A.useRef(null),[ce,ye]=A.useState(""),F=A.useRef(null),_e=A.useRef(null),Be=A.useRef(null);A.useEffect(()=>{"Notification"in window&&Notification.permission!=="granted"&&Notification.permission!=="denied"&&Notification.requestPermission()},[]);const rt=J=>{const S=J||"Reminder";"Notification"in window&&Notification.permission==="granted"&&new Notification("⏰ Reminder from SamarthyaBot",{body:S});const B=window.AudioContext||window.webkitAudioContext;if(B){X.current=new B;const Y=X.current.createOscillator(),V=X.current.createGain();Y.type="triangle",Y.frequency.setValueAtTime(600,X.current.currentTime),setInterval(()=>{ie.current&&X.current&&(Y.frequency.setValueAtTime(800,X.current.currentTime),Y.frequency.exponentialRampToValueAtTime(400,X.current.currentTime+.3))},500),V.gain.value=.1,Y.connect(V),V.connect(X.current.destination),Y.start(),ie.current=Y}P(S)},$e=()=>{P(null),ie.current&&(ie.current.stop(),ie.current=null),X.current&&(X.current.close(),X.current=null)};A.useEffect(()=>(ve(),K(),()=>{F.current&&F.current.abort()}),[]),A.useEffect(()=>{_e.current?.scrollIntoView({behavior:"smooth"})},[h]);const K=()=>{const J=window.SpeechRecognition||window.webkitSpeechRecognition;if(!J)return;C(!0);const S=new J;S.continuous=!1,S.interimResults=!0,S.lang="hi-IN",S.maxAlternatives=1,S.onresult=B=>{let Y="";for(let V=0;V<B.results.length;V++)Y+=B.results[V][0].transcript;ye(Y),v(Y),B.results[B.results.length-1].isFinal&&setTimeout(()=>{T(!1),Y.trim()&&D(Y.trim())},500)},S.onerror=B=>{console.error("Voice error:",B.error),T(!1)},S.onend=()=>{T(!1)},F.current=S},de=()=>{F.current&&(U?(F.current.stop(),T(!1)):(ye(""),F.current.lang=i?.language==="hindi"?"hi-IN":i?.language==="english"?"en-IN":"hi-IN",F.current.start(),T(!0)))},ve=async()=>{try{const J=await oi.getConversations();u(J.data.conversations||[])}catch{console.error("Failed to load conversations")}},Oe=async J=>{try{const S=await oi.getConversation(J);f(S.data.conversation),p(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},D=async J=>{const S=J||g.trim();if(!S||y)return;v("");const B={role:"user",content:S,createdAt:new Date};p(Y=>[...Y,B]),b(!0),M(!0);try{const V=(await oi.sendMessage({message:S,conversationId:s?._id})).data;s||(f({_id:V.conversationId}),ve());const I={role:"assistant",content:V.message.content,toolCalls:V.message.toolCalls,sensitiveDataWarnings:V.message.sensitiveDataWarnings,createdAt:new Date};p(se=>[...se,I]),I.toolCalls&&I.toolCalls.forEach(se=>{if(se.toolName==="reminder_set"&&se.notificationParams){const{delayMs:Te,message:ot}=se.notificationParams;setTimeout(()=>{rt(ot)},Te||5e3)}})}catch{p(V=>[...V,{role:"assistant",content:i?.language==="english"?"❌ Oops, an error occurred. Check the server or try again.":"❌ Arre, kuch error aa gaya. Server check karo ya dubara try karo.",createdAt:new Date}])}finally{b(!1),M(!1),Be.current?.focus()}},Z=()=>{f(null),p([]),Be.current?.focus()},ae=async(J,S)=>{S.stopPropagation();try{await oi.deleteConversation(J),s?._id===J&&Z(),ve()}catch{console.error("Delete failed")}},Re=J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),D())};return c.jsxs("div",{style:$.container,children:[Q&&c.jsx("div",{style:$.alarmPopupLayer,children:c.jsxs("div",{style:$.alarmBox,children:[c.jsx("div",{style:$.alarmIcon,children:"⏰"}),c.jsxs("div",{style:$.alarmContent,children:[c.jsx("h4",{style:$.alarmTitle,children:"Reminder"}),c.jsx("p",{style:$.alarmMessage,children:Q})]}),c.jsx("button",{onClick:$e,style:$.alarmStopBtn,children:"Stop Alarm"})]})}),c.jsxs("div",{style:$.convSidebar,children:[c.jsxs("div",{style:$.convHeader,children:[c.jsx("h3",{style:$.convTitle,children:"💬 Conversations"}),c.jsx("button",{onClick:Z,style:$.newBtn,title:"New Chat",children:c.jsx(Sv,{size:18})})]}),c.jsxs("div",{style:$.convList,children:[o.map(J=>c.jsxs("button",{onClick:()=>Oe(J._id),style:{...$.convItem,...s?._id===J._id?$.convItemActive:{}},children:[c.jsx("span",{style:$.convItemTitle,children:J.title}),c.jsx("div",{style:$.convActions,children:c.jsx("button",{onClick:S=>ae(J._id,S),style:$.convDelBtn,children:c.jsx(_m,{size:14})})})]},J._id)),o.length===0&&c.jsx("p",{style:$.emptyConv,children:i?.language==="english"?"No conversations found. Start a new one! 🚀":"Koi conversation nahi. Naya shuru karo! 🚀"})]})]}),c.jsxs("div",{style:$.chatArea,children:[U&&c.jsxs("div",{style:$.voiceOverlay,children:[c.jsx("div",{style:$.voicePulseRing,children:c.jsx(Hp,{size:36,color:"#FF9933"})}),c.jsx("p",{style:$.voiceText,children:ce||(i?.language==="hindi"?"बोलिए...":i?.language==="english"?"Listening...":"Bol rahe ho... sunna shuru")}),c.jsx("p",{style:$.voiceHint,children:"🎙️ Hindi, Hinglish & English voice supported"}),c.jsxs("button",{onClick:de,style:$.voiceStopBtn,children:[c.jsx(yv,{size:18})," Stop Listening"]})]}),c.jsxs("div",{style:$.messages,children:[h.length===0&&c.jsxs("div",{style:$.welcome,children:[c.jsx("div",{style:$.welcomeLogo,children:"स"}),c.jsxs("h2",{style:$.welcomeTitle,children:[i?.language==="english"?"Hello":"Namaste",", ",i?.name||"User","! 🙏"]}),c.jsx("p",{style:$.welcomeSubtitle,children:i?.language==="english"?"I am SamarthyaBot, your personal AI assistant. How can I help you today?":"Main SamarthyaBot hoon, aapka personal AI assistant. Kaise madad kar sakta hoon?"}),c.jsx("div",{style:$.quickActions,children:S2.map((J,S)=>c.jsxs("button",{onClick:()=>D(i?.language==="english"?J.textEn:J.text),style:$.quickActionBtn,children:[c.jsx("span",{style:$.quickEmoji,children:J.emoji}),c.jsx("span",{children:i?.language==="english"?J.textEn:J.text})]},S))})]}),Object.entries(E2(h)).map(([J,S],B)=>c.jsxs(Ir.Fragment,{children:[c.jsx("div",{style:$.dateDivider,children:c.jsx("span",{style:$.dateBadge,children:J})}),S.map((Y,V)=>c.jsxs("div",{style:{...$.message,...Y.role==="user"?$.userMessage:$.assistantMessage,animation:"fadeInUp 0.3s ease-out"},children:[c.jsx("div",{style:Y.role==="user"?$.userAvatar:$.assistantAvatar,children:Y.role==="user"?c.jsx(Dm,{size:16}):c.jsx(Bp,{size:16})}),c.jsxs("div",{style:$.messageContent,children:[Y.sensitiveDataWarnings?.length>0&&c.jsxs("div",{style:$.warningBanner,children:[c.jsx(Om,{size:14}),c.jsxs("span",{children:["⚠️ Sensitive data detected: ",Y.sensitiveDataWarnings.map(I=>I.type).join(", ")]})]}),c.jsx("div",{style:$.messageText,children:nm(Y.content)}),Y.toolCalls?.length>0&&c.jsx("div",{style:$.toolCalls,children:Y.toolCalls.map((I,se)=>c.jsxs("div",{style:$.toolCall,children:[c.jsxs("div",{style:$.toolCallHeader,children:[c.jsxs("span",{style:{...$.toolBadge,background:I.status==="completed"?"rgba(16,185,129,0.15)":I.status==="blocked"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:I.status==="completed"?"#10b981":I.status==="blocked"?"#ef4444":"#f59e0b"},children:[I.status==="completed"?"✅":I.status==="blocked"?"🚫":"⏳"," ",I.toolName]}),c.jsxs("span",{style:$.toolRisk,children:["Risk: ",I.riskLevel]})]}),I.result&&c.jsx("div",{style:$.toolResult,children:nm(I.result)})]},se))}),c.jsx("div",{style:{...$.msgTime,color:Y.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:j2(Y.createdAt)})]})]},`msg-${B}-${V}`))]},`group-${B}`)),x&&c.jsxs("div",{style:{...$.message,...$.assistantMessage},children:[c.jsx("div",{style:$.assistantAvatar,children:c.jsx(Bp,{size:16})}),c.jsxs("div",{style:$.typingIndicator,children:[c.jsx("span",{style:{...$.typingDot,animationDelay:"0s"}}),c.jsx("span",{style:{...$.typingDot,animationDelay:"0.2s"}}),c.jsx("span",{style:{...$.typingDot,animationDelay:"0.4s"}})]})]}),c.jsx("div",{ref:_e})]}),c.jsxs("div",{style:$.inputArea,children:[c.jsxs("div",{style:$.inputWrap,children:[c.jsx("textarea",{ref:Be,value:g,onChange:J=>v(J.target.value),onKeyDown:Re,placeholder:i?.language==="hindi"?"यहां टाइप करें...":i?.language==="hinglish"?"Yahan type karo...":"Type your message...",style:$.textarea,rows:1,disabled:y}),c.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:J=>{J&&(J._screenInput=!0)},id:"screenInput",onChange:async J=>{const S=J.target.files?.[0];if(S){b(!0),p(B=>[...B,{role:"user",content:`📸 Screenshot uploaded: ${S.name}`,createdAt:new Date}]),M(!0);try{const B=new FileReader;B.onload=async()=>{const Y=B.result,V=await b2.analyze(Y,g.trim()||"Is screenshot mein kya hai? Next step batao.");p(I=>[...I,{role:"assistant",content:`👁️ **Screen Analysis:**
|
|
18
|
-
|
|
19
|
-
${V.data.analysis.content}`,createdAt:new Date}]),v("")},B.readAsDataURL(S)}catch{p(Y=>[...Y,{role:"assistant",content:i?.language==="english"?"❌ Screen analysis failed. Check the Gemini API key.":"❌ Screen analysis fail ho gaya. Gemini API key check karo.",createdAt:new Date}])}finally{b(!1),M(!1),J.target.value=""}}}}),c.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:$.voiceBtn,title:"Screenshot upload for AI analysis",children:c.jsx(Rx,{size:20})}),_&&c.jsx("button",{onClick:de,style:{...$.voiceBtn,...U?$.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:c.jsx(Hp,{size:20})}),c.jsx("button",{onClick:()=>D(),disabled:y||!g.trim(),style:{...$.sendBtn,opacity:y||!g.trim()?.5:1},children:y?c.jsx(fv,{size:20,style:{animation:"spin 1s linear infinite"}}):c.jsx(wv,{size:20})})]}),c.jsx("p",{style:$.inputHint,children:"🇮🇳 Hindi, Hinglish & English supported • Enter to send • Shift+Enter for new line"})]})]})]})}const $={container:{display:"flex",height:"100vh",background:"var(--bg-primary)"},alarmPopupLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(5px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},alarmBox:{background:"rgba(20, 20, 35, 0.95)",border:"2px solid rgba(255, 107, 0, 0.5)",borderRadius:"var(--radius-lg)",padding:"32px",boxShadow:"0 20px 50px rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",alignItems:"center",gap:"20px",maxWidth:"400px",textAlign:"center",animation:"pulseAlarm 1s infinite alternate"},alarmIcon:{fontSize:"4rem",animation:"ringAlarm 0.5s infinite alternate"},alarmTitle:{fontSize:"1.4rem",fontWeight:"bold",color:"var(--text-primary)",margin:0},alarmMessage:{fontSize:"1.1rem",color:"var(--text-secondary)",margin:0},alarmStopBtn:{background:"#ef4444",color:"white",border:"none",borderRadius:"var(--radius-md)",padding:"12px 24px",fontSize:"1rem",fontWeight:"bold",cursor:"pointer",boxShadow:"0 4px 15px rgba(239,68,68,0.3)",transition:"all 0.2s ease"},convSidebar:{width:"280px",minWidth:"200px",maxWidth:"500px",resize:"horizontal",overflowX:"hidden",background:"var(--bg-secondary)",borderRight:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",flexShrink:0},convHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--border-subtle)"},convTitle:{fontSize:"1rem",fontWeight:600,color:"var(--text-primary)"},newBtn:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"white",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)"},convList:{flex:1,overflow:"auto",padding:"8px"},convItem:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"12px",background:"transparent",border:"none",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",textAlign:"left",transition:"all var(--transition-fast)",marginBottom:"2px"},convItemActive:{background:"rgba(255, 153, 51, 0.1)",color:"var(--text-primary)"},convItemTitle:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},convActions:{display:"flex",gap:"4px",flexShrink:0},convDelBtn:{background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",transition:"all var(--transition-fast)"},emptyConv:{padding:"20px",textAlign:"center",color:"var(--text-muted)",fontSize:"0.85rem"},chatArea:{flex:1,display:"flex",flexDirection:"column",minWidth:0},messages:{flex:1,overflow:"auto",padding:"24px",display:"flex",flexDirection:"column",gap:"16px"},welcome:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,textAlign:"center",padding:"40px 20px",animation:"fadeInUp 0.6s ease-out"},welcomeLogo:{fontSize:"4rem",fontFamily:"var(--font-hindi)",fontWeight:700,background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",marginBottom:"16px",animation:"float 4s ease-in-out infinite"},welcomeTitle:{fontSize:"1.8rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"8px"},welcomeSubtitle:{fontSize:"1rem",color:"var(--text-muted)",marginBottom:"32px",maxWidth:"500px",fontFamily:"var(--font-primary)"},dateDivider:{display:"flex",justifyContent:"center",margin:"16px 0",width:"100%"},dateBadge:{backgroundColor:"var(--bg-card)",color:"var(--text-muted)",fontSize:"0.75rem",padding:"4px 12px",borderRadius:"16px",border:"1px solid var(--border-subtle)"},quickActions:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px",maxWidth:"680px",width:"100%"},quickActionBtn:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)",textAlign:"left"},quickEmoji:{fontSize:"1.2rem"},message:{display:"flex",gap:"12px",maxWidth:"85%",animation:"fadeIn 0.3s ease-out"},userMessage:{alignSelf:"flex-end",flexDirection:"row-reverse"},assistantMessage:{alignSelf:"flex-start"},userAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-saffron)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},assistantAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},messageContent:{maxWidth:"100%"},messageText:{padding:"14px 18px",borderRadius:"var(--radius-lg)",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",color:"var(--text-primary)",fontSize:"0.9rem",lineHeight:1.7,wordBreak:"break-word"},warningBanner:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",background:"rgba(245, 158, 11, 0.1)",border:"1px solid rgba(245, 158, 11, 0.3)",borderRadius:"var(--radius-sm)",color:"#f59e0b",fontSize:"0.8rem",marginBottom:"8px"},msgTime:{fontSize:"0.7rem",textAlign:"right",marginTop:"4px",fontWeight:"500"},toolCalls:{marginTop:"8px",display:"flex",flexDirection:"column",gap:"6px"},toolCall:{padding:"10px 14px",background:"rgba(99, 102, 241, 0.06)",border:"1px solid rgba(99, 102, 241, 0.15)",borderRadius:"var(--radius-sm)",fontSize:"0.8rem"},toolCallHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"},toolBadge:{padding:"2px 8px",borderRadius:"var(--radius-full)",fontSize:"0.75rem",fontWeight:600},toolRisk:{fontSize:"0.7rem",color:"var(--text-muted)",textTransform:"uppercase"},toolResult:{color:"var(--text-secondary)",fontSize:"0.8rem",lineHeight:1.5,whiteSpace:"pre-wrap"},typingIndicator:{display:"flex",gap:"6px",padding:"14px 18px",background:"var(--bg-card)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)"},typingDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",animation:"typing 1.4s ease-in-out infinite",display:"inline-block"},inputArea:{padding:"16px 24px 20px",borderTop:"1px solid var(--border-subtle)",background:"var(--bg-secondary)"},inputWrap:{display:"flex",alignItems:"flex-end",gap:"12px",padding:"6px 6px 6px 18px",background:"var(--bg-input)",border:"1px solid var(--border-primary)",borderRadius:"var(--radius-lg)",transition:"all var(--transition-normal)"},textarea:{flex:1,background:"transparent",border:"none",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.95rem",padding:"10px 0",resize:"none",outline:"none",maxHeight:"120px",lineHeight:1.5},sendBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"#0D0D0D",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"transparent",border:"1px solid var(--border-subtle)",color:"var(--text-muted)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"var(--accent-saffron)",color:"var(--accent-saffron)",animation:"voicePulse 1.5s infinite"},voiceOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(13, 13, 13, 0.92)",backdropFilter:"blur(20px)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:50,animation:"fadeIn 0.3s ease-out",gap:"16px"},voicePulseRing:{width:"100px",height:"100px",borderRadius:"50%",background:"rgba(255, 153, 51, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",animation:"voicePulse 1.5s infinite"},voiceText:{fontSize:"1.2rem",fontWeight:600,color:"var(--text-primary)",maxWidth:"400px",textAlign:"center"},voiceHint:{fontSize:"0.82rem",color:"var(--text-muted)"},voiceStopBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"rgba(239, 68, 68, 0.15)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",color:"#ef4444",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)"},inputHint:{fontSize:"0.7rem",color:"var(--text-muted)",textAlign:"center",marginTop:"8px"}};function A2({user:i}){const o=to(),[u,s]=A.useState(null),[f,h]=A.useState(null),[p,g]=A.useState([]),[v,y]=A.useState([]),[b,x]=A.useState(!0);A.useEffect(()=>{U();const _=setInterval(()=>{M()},15e3);return()=>clearInterval(_)},[]);const M=async()=>{try{const[_,C]=await Promise.all([Yu.getStatus().catch(()=>({data:{status:null}})),Yu.getJobs().catch(()=>({data:{jobs:[]}}))]);h(_.data.status),g(C.data.jobs||[])}catch{}},U=async()=>{x(!0);try{const[_,C]=await Promise.all([oi.getConversations().catch(()=>({data:{conversations:[]}})),Kr.getStats().catch(()=>({data:{stats:{totalActions:0,byCategory:{},byStatus:{}}}}))]);y(_.data.conversations?.slice(0,5)||[]),s(C.data.stats),await M()}catch(_){console.error("Dashboard load error:",_)}finally{x(!1)}},T=_=>{if(!_)return"0h 0m";const C=Math.floor(_/3600),Q=Math.floor(_%3600/60);return`${C}h ${Q}m`};return b?c.jsx("div",{style:{...ee.container,display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"},children:c.jsx(Vr,{size:40,className:"spinner",style:{color:"var(--accent-primary)"}})}):c.jsxs("div",{style:ee.container,children:[c.jsxs("div",{style:ee.header,children:[c.jsxs("div",{children:[c.jsx("h1",{style:ee.title,children:"Control Center"}),c.jsxs("div",{style:ee.systemBadge,children:[c.jsx(Ov,{size:14})," System Online • OS: ",f?.osName||"SamarthyaOS"]})]}),c.jsxs("div",{style:ee.headerActions,children:[c.jsxs("button",{onClick:async()=>{window.confirm("Are you sure you want to KILL all background processes? This will stop all autonomous activity immediately.")&&(await Yu.emergencyStop(),M(),alert("🚨 Emergency Stop Engaged. All systems halted."))},style:ee.dangerBtn,title:"Emergency Kill Switch",children:[c.jsx(Up,{size:18})," Kill Switch"]}),c.jsxs("button",{onClick:()=>o("/tools"),style:ee.secondaryBtn,children:[c.jsx(Wr,{size:18})," Modules"]}),c.jsxs("button",{onClick:()=>o("/chat"),style:ee.newChatBtn,children:[c.jsx(hi,{size:18})," Spawn Agent"]})]})]}),c.jsx("h3",{style:ee.sectionTitle,children:"System Vitals"}),c.jsxs("div",{style:ee.statsGrid,children:[c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #6366f1"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#6366f120",color:"#6366f1"},children:c.jsx(Ju,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsx("div",{style:ee.statValue,children:T(f?.uptime)}),c.jsx("div",{style:ee.statLabel,children:"Agent Uptime"})]})]}),c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #14b8a6"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#14b8a620",color:"#14b8a6"},children:c.jsx(Gx,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsxs("div",{style:ee.statValue,children:[f?.ramUsage||0,"%"]}),c.jsx("div",{style:ee.statLabel,children:"Memory Load"})]})]}),c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f59e0b"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#f59e0b20",color:"#f59e0b"},children:c.jsx(vv,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsxs("div",{style:ee.statValue,children:[f?.totalTools||0," / ",f?.loadedPlugins||0]}),c.jsx("div",{style:ee.statLabel,children:"Core Tools / Plugins"})]})]}),c.jsxs("div",{style:{...ee.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f43f5e"},children:[c.jsx("div",{style:{...ee.statIcon,background:"#f43f5e20",color:"#f43f5e"},children:c.jsx(Vr,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsx("div",{style:ee.statValue,children:u?.totalActions||0}),c.jsx("div",{style:ee.statLabel,children:"Tasks Executed"})]})]})]}),c.jsxs("div",{style:ee.mainGrid,children:[c.jsxs("div",{style:{...ee.card,gridColumn:"span 2"},children:[c.jsxs("div",{style:ee.cardHeader,children:[c.jsxs("h3",{style:ee.cardTitle,children:[c.jsx(Vr,{size:18,style:{color:"#10b981"}}),"Autonomous Background Processes"]}),c.jsxs("span",{style:ee.liveBadge,children:[c.jsx("span",{style:ee.pulseDot})," LIVE"]})]}),c.jsx("div",{style:ee.cardBody,children:p.length>0?c.jsx("div",{style:ee.jobsList,children:p.map(_=>c.jsxs("div",{style:ee.jobCard,children:[c.jsxs("div",{style:ee.jobHeader,children:[c.jsx("span",{style:ee.jobName,children:_.taskName}),c.jsx("span",{style:_.isActive?ee.jobActive:ee.jobInactive,children:_.isActive?"RUNNING":"STOPPED"})]}),c.jsxs("div",{style:ee.jobPrompt,children:['"',_.prompt,'"']}),c.jsxs("div",{style:ee.jobMeta,children:[c.jsxs("span",{children:[c.jsx(Ju,{size:12})," Interval: ",_.intervalMinutes,"m"]}),c.jsxs("span",{children:[c.jsx(kx,{size:12})," Next Run: ",new Date(_.nextRunAt).toLocaleTimeString()]})]})]},_._id))}):c.jsxs("div",{style:ee.emptyState,children:[c.jsx(rc,{size:32,style:{color:"var(--text-muted)",marginBottom:"8px"}}),c.jsx("p",{children:"No autonomous background tasks running."}),c.jsx("span",{style:{fontSize:"0.8rem",color:"var(--text-muted)"},children:'Ask the agent to "schedule a background task" to monitor processes!'})]})})]}),c.jsxs("div",{style:ee.card,children:[c.jsxs("div",{style:ee.cardHeader,children:[c.jsxs("h3",{style:ee.cardTitle,children:[c.jsx(wm,{size:18,style:{color:"var(--accent-primary)"}}),"Recent Interactions"]}),c.jsxs("button",{onClick:()=>o("/chat"),style:ee.viewAllBtn,children:["View All ",c.jsx(ci,{size:14})]})]}),c.jsx("div",{style:ee.cardBody,children:v.length>0?v.map(_=>c.jsxs("button",{onClick:()=>o(`/chat/${_._id}`),style:ee.convRow,children:[c.jsx("div",{style:ee.convDot}),c.jsxs("div",{style:ee.convInfo,children:[c.jsx("span",{style:ee.convName,children:_.title}),c.jsxs("span",{style:ee.convTime,children:[new Date(_.updatedAt).toLocaleDateString()," ",new Date(_.updatedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),c.jsx(ci,{size:14,style:{color:"var(--text-muted)"}})]},_._id)):c.jsx("div",{style:ee.emptyState,children:c.jsx("p",{children:"System idle. No recent sessions."})})})]})]}),c.jsxs("div",{style:ee.bannerGrid,children:[c.jsxs("div",{style:ee.vaultBanner,children:[c.jsx(ll,{size:24,style:{color:"#10b981"}}),c.jsxs("div",{style:{flex:1},children:[c.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Encrypted Memory Vault Active"}),c.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"AES-256-CBC encryption enabled for secrets and PI data."})]}),c.jsx("button",{onClick:()=>o("/settings"),style:ee.outlineBtn,children:"Configure"})]}),c.jsxs("div",{style:ee.pluginBanner,children:[c.jsx(Up,{size:24,style:{color:"#f59e0b"}}),c.jsxs("div",{style:{flex:1},children:[c.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Extensibility Engine"}),c.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"Drop JS modules in ~/SamarthyaBot_Files/plugins/ to expand OS."})]})]})]})]})}const ee={container:{padding:"28px 32px",maxWidth:"1200px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"32px",flexWrap:"wrap",gap:"16px"},title:{fontSize:"2rem",fontWeight:800,color:"var(--text-primary)",letterSpacing:"-0.5px"},systemBadge:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 10px",background:"rgba(16, 185, 129, 0.15)",color:"#10b981",borderRadius:"4px",fontSize:"0.8rem",fontWeight:600,marginTop:"8px"},headerActions:{display:"flex",gap:"12px"},dangerBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 18px",background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:700,cursor:"pointer",transition:"all 0.2s"},secondaryBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 18px",background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",transition:"all 0.2s"},newChatBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.95rem",fontWeight:600,cursor:"pointer",boxShadow:"0 4px 14px rgba(99,102,241,0.3)",transition:"all 0.2s"},sectionTitle:{fontSize:"1.2rem",fontWeight:600,marginBottom:"16px",color:"var(--text-secondary)"},statsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"20px",marginBottom:"32px"},statCard:{padding:"20px",borderRadius:"var(--radius-md)",display:"flex",alignItems:"center",gap:"16px",boxShadow:"0 2px 10px rgba(0,0,0,0.02)"},statIcon:{width:"44px",height:"44px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},statInfo:{flex:1},statValue:{fontSize:"1.5rem",fontWeight:700,color:"var(--text-primary)"},statLabel:{fontSize:"0.85rem",color:"var(--text-muted)",fontWeight:500},mainGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:"24px",marginBottom:"28px"},card:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden",boxShadow:"0 4px 20px rgba(0,0,0,0.04)"},cardHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",borderBottom:"1px solid var(--border-subtle)",background:"rgba(0,0,0,0.02)"},cardTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},liveBadge:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.75rem",fontWeight:700,color:"#10b981",background:"rgba(16, 185, 129, 0.1)",padding:"4px 8px",borderRadius:"4px"},pulseDot:{width:"6px",height:"6px",backgroundColor:"#10b981",borderRadius:"50%",boxShadow:"0 0 0 0 rgba(16, 185, 129, 0.7)",animation:"pulse 1.5s infinite"},viewAllBtn:{display:"flex",alignItems:"center",gap:"4px",background:"none",border:"none",color:"var(--accent-primary)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer"},cardBody:{padding:"16px"},jobsList:{display:"flex",flexDirection:"column",gap:"12px"},jobCard:{background:"var(--bg-main)",border:"1px solid var(--border-subtle)",borderRadius:"8px",padding:"14px"},jobHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},jobName:{fontWeight:600,fontSize:"0.95rem",color:"var(--text-primary)"},jobActive:{fontSize:"0.7rem",padding:"2px 6px",background:"rgba(16, 185, 129, 0.1)",color:"#10b981",borderRadius:"4px",fontWeight:700},jobInactive:{fontSize:"0.7rem",padding:"2px 6px",background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",borderRadius:"4px",fontWeight:700},jobPrompt:{fontSize:"0.85rem",color:"var(--text-secondary)",fontStyle:"italic",lineHeight:1.4,marginBottom:"10px"},jobMeta:{display:"flex",gap:"16px",fontSize:"0.75rem",color:"var(--text-muted)"},convRow:{display:"flex",alignItems:"center",gap:"12px",padding:"12px",borderRadius:"8px",background:"transparent",border:"none",width:"100%",cursor:"pointer",textAlign:"left",color:"var(--text-primary)"},convDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",flexShrink:0},convInfo:{flex:1,display:"flex",flexDirection:"column",gap:"4px",minWidth:0},convName:{fontSize:"0.9rem",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},convTime:{fontSize:"0.75rem",color:"var(--text-muted)"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"40px 16px",color:"var(--text-muted)",textAlign:"center"},bannerGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"20px"},vaultBanner:{background:"linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.05) 100%)",border:"1px solid rgba(16,185,129,0.2)",borderRadius:"var(--radius-lg)",padding:"20px",display:"flex",alignItems:"center",gap:"16px",color:"var(--text-primary)"},pluginBanner:{background:"linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(217,119,6,0.05) 100%)",border:"1px solid rgba(245,158,11,0.2)",borderRadius:"var(--radius-lg)",padding:"20px",display:"flex",alignItems:"center",gap:"16px",color:"var(--text-primary)"},outlineBtn:{padding:"6px 16px",fontSize:"0.8rem",background:"transparent",border:"1px solid #10b981",color:"#10b981",borderRadius:"4px",cursor:"pointer",fontWeight:600}},hc=document.createElement("style");hc.type="text/css";hc.innerText=`
|
|
20
|
-
@keyframes pulse {
|
|
21
|
-
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
|
|
22
|
-
70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
|
|
23
|
-
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
|
|
24
|
-
}
|
|
25
|
-
`;document.head.appendChild(hc);function R2({user:i,onUpdate:o}){const[u,s]=A.useState({name:i?.name||"",language:i?.language||"hinglish",city:i?.city||"",permissions:i?.permissions||{fileAccess:"ask",emailAccess:"ask",browserAccess:"ask",calendarAccess:"ask"}}),[f,h]=A.useState(!1),[p,g]=A.useState(!1),v=async()=>{h(!0);try{const x=await dc.updateProfile(u);o(x.data.user),g(!0),setTimeout(()=>g(!1),3e3)}catch{console.error("Save failed")}finally{h(!1)}},y=[{value:"ask",label:"🔔 Ask Every Time",labelHi:"हर बार पूछो"},{value:"allow_always",label:"✅ Always Allow",labelHi:"हमेशा अनुमति"},{value:"allow_once",label:"☑️ Allow Once",labelHi:"एक बार अनुमति"},{value:"never",label:"🚫 Never Allow",labelHi:"कभी नहीं"}],b=[{key:"fileAccess",label:"File Access",labelHi:"फ़ाइल एक्सेस",icon:"📁",desc:"Read, write, and delete files on your system"},{key:"emailAccess",label:"Email Access",labelHi:"ईमेल एक्सेस",icon:"📧",desc:"Send and read emails on your behalf"},{key:"browserAccess",label:"Browser Automation",labelHi:"ब्राउज़र ऑटोमेशन",icon:"🌐",desc:"Automate web browsing, form filling, scraping"},{key:"calendarAccess",label:"Calendar Access",labelHi:"कैलेंडर एक्सेस",icon:"📅",desc:"Schedule and manage calendar events"}];return c.jsxs("div",{style:je.container,children:[c.jsxs("div",{style:je.header,children:[c.jsx("h1",{style:je.title,children:"⚙️ Settings"}),c.jsx("button",{onClick:v,disabled:f,style:je.saveBtn,children:p?c.jsxs(c.Fragment,{children:[c.jsx(Ku,{size:18})," Saved!"]}):f?"Saving...":c.jsxs(c.Fragment,{children:[c.jsx(Cv,{size:18})," Save Changes"]})})]}),c.jsxs("div",{style:je.grid,children:[c.jsxs("div",{style:je.section,children:[c.jsxs("div",{style:je.sectionHeader,children:[c.jsx(Dm,{size:20,style:{color:"var(--accent-primary)"}}),c.jsx("h2",{style:je.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),c.jsxs("div",{style:je.sectionBody,children:[c.jsxs("div",{style:je.field,children:[c.jsx("label",{style:je.label,children:"Name / नाम"}),c.jsx("input",{style:je.input,value:u.name,onChange:x=>s({...u,name:x.target.value}),placeholder:"Your name"})]}),c.jsxs("div",{style:je.field,children:[c.jsx("label",{style:je.label,children:"City / शहर"}),c.jsx("input",{style:je.input,value:u.city,onChange:x=>s({...u,city:x.target.value}),placeholder:"Mumbai, Delhi, etc."})]})]})]}),c.jsxs("div",{style:je.section,children:[c.jsxs("div",{style:je.sectionHeader,children:[c.jsx(zm,{size:20,style:{color:"var(--accent-saffron)"}}),c.jsx("h2",{style:je.sectionTitle,children:"Language / भाषा"})]}),c.jsx("div",{style:je.sectionBody,children:c.jsx("div",{style:je.langOptions,children:[{value:"hinglish",label:"Hinglish",desc:"Hindi + English mix",icon:"🗣️"},{value:"hindi",label:"हिंदी",desc:"Pure Hindi responses",icon:"🇮🇳"},{value:"english",label:"English",desc:"English only",icon:"🌍"}].map(x=>c.jsxs("button",{onClick:()=>s({...u,language:x.value}),style:{...je.langCard,...u.language===x.value?je.langCardActive:{}},children:[c.jsx("span",{style:je.langIcon,children:x.icon}),c.jsx("span",{style:je.langLabel,children:x.label}),c.jsx("span",{style:je.langDesc,children:x.desc}),u.language===x.value&&c.jsx(Ku,{size:16,style:je.langCheck})]},x.value))})})]}),c.jsxs("div",{style:je.section,children:[c.jsxs("div",{style:je.sectionHeader,children:[c.jsx(ll,{size:20,style:{color:"var(--accent-rose)"}}),c.jsx("h2",{style:je.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),c.jsx("div",{style:je.sectionBody,children:b.map(x=>c.jsxs("div",{style:je.permRow,children:[c.jsxs("div",{style:je.permInfo,children:[c.jsx("span",{style:je.permIcon,children:x.icon}),c.jsxs("div",{children:[c.jsx("div",{style:je.permLabel,children:x.label}),c.jsx("div",{style:je.permDesc,children:x.desc})]})]}),c.jsx("select",{style:je.permSelect,value:u.permissions[x.key],onChange:M=>s({...u,permissions:{...u.permissions,[x.key]:M.target.value}}),children:y.map(M=>c.jsx("option",{value:M.value,children:M.label},M.value))})]},x.key))})]})]})]})}const je={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},saveBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 22px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",boxShadow:"var(--shadow-glow)",transition:"all var(--transition-normal)"},grid:{display:"flex",flexDirection:"column",gap:"20px"},section:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden"},sectionHeader:{display:"flex",alignItems:"center",gap:"10px",padding:"18px 22px",borderBottom:"1px solid var(--border-subtle)"},sectionTitle:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},sectionBody:{padding:"22px"},field:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"16px",flex:1},label:{fontSize:"0.8rem",fontWeight:600,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.05em"},input:{width:"100%",padding:"11px 16px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.9rem",outline:"none",transition:"all 0.2s"},langOptions:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px"},langCard:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px",padding:"18px 14px",background:"var(--bg-card)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer",transition:"all var(--transition-fast)",fontFamily:"var(--font-primary)",position:"relative",color:"var(--text-primary)"},langCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.08)"},langIcon:{fontSize:"1.5rem"},langLabel:{fontWeight:600,fontSize:"0.9rem"},langDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},langCheck:{position:"absolute",top:"8px",right:"8px",color:"var(--accent-primary)"},permRow:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 0",borderBottom:"1px solid var(--border-subtle)",gap:"16px"},permInfo:{display:"flex",alignItems:"center",gap:"12px",flex:1},permIcon:{fontSize:"1.3rem"},permLabel:{fontWeight:600,fontSize:"0.9rem",color:"var(--text-primary)"},permDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},permSelect:{padding:"8px 12px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.8rem",outline:"none",minWidth:"170px"}},Vu={file:{bg:"rgba(99,102,241,0.1)",color:"#6366f1",icon:"📁"},email:{bg:"rgba(14,165,233,0.1)",color:"#0ea5e9",icon:"📧"},browser:{bg:"rgba(245,158,11,0.1)",color:"#f59e0b",icon:"🌐"},calendar:{bg:"rgba(16,185,129,0.1)",color:"#10b981",icon:"📅"},search:{bg:"rgba(139,92,246,0.1)",color:"#8b5cf6",icon:"🔍"},system:{bg:"rgba(107,114,128,0.1)",color:"#6b7280",icon:"⚙️"},security:{bg:"rgba(244,63,94,0.1)",color:"#f43f5e",icon:"🔐"},tool:{bg:"rgba(20,184,166,0.1)",color:"#14b8a6",icon:"🛠️"}},im={success:{bg:"rgba(16,185,129,0.15)",color:"#10b981"},failed:{bg:"rgba(239,68,68,0.15)",color:"#ef4444"},blocked:{bg:"rgba(245,158,11,0.15)",color:"#f59e0b"},rolled_back:{bg:"rgba(139,92,246,0.15)",color:"#8b5cf6"}};function T2({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState(null),[h,p]=A.useState(""),[g,v]=A.useState(!0);A.useEffect(()=>{y()},[h]);const y=async()=>{v(!0);try{const x={};h&&(x.category=h);const[M,U]=await Promise.all([Kr.getLogs(x),Kr.getStats()]);u(M.data.logs||[]),f(U.data.stats||null)}catch{console.error("Failed to load audit data"),u([]),f({totalActions:0,byCategory:{},byStatus:{}})}finally{v(!1)}},b=async x=>{try{await Kr.rollback(x),y()}catch{console.error("Rollback failed")}};return c.jsxs("div",{style:me.container,children:[c.jsx("div",{style:me.header,children:c.jsxs("div",{children:[c.jsx("h1",{style:me.title,children:"🔐 Audit Log / ऑडिट लॉग"}),c.jsx("p",{style:me.subtitle,children:"Full action replay timeline • हर एक्शन की पूरी जानकारी"})]})}),c.jsxs("div",{style:me.statsRow,children:[c.jsxs("div",{style:me.statCard,children:[c.jsx(Vr,{size:20,style:{color:"var(--accent-primary)"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.totalActions||0}),c.jsx("div",{style:me.statLabel,children:"Total Actions"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(ll,{size:20,style:{color:"#10b981"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.byStatus?.success||0}),c.jsx("div",{style:me.statLabel,children:"Successful"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(Om,{size:20,style:{color:"#f59e0b"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.byStatus?.blocked||0}),c.jsx("div",{style:me.statLabel,children:"Blocked"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(Lp,{size:20,style:{color:"#8b5cf6"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:s?.byStatus?.rolled_back||0}),c.jsx("div",{style:me.statLabel,children:"Rolled Back"})]})]})]}),c.jsxs("div",{style:me.filters,children:[c.jsx(tv,{size:16,style:{color:"var(--text-muted)"}}),c.jsx("button",{onClick:()=>p(""),style:{...me.filterBtn,...h===""?me.filterBtnActive:{}},children:"All"}),Object.entries(Vu).map(([x,M])=>c.jsxs("button",{onClick:()=>p(x),style:{...me.filterBtn,...h===x?me.filterBtnActive:{}},children:[M.icon," ",x]},x))]}),c.jsx("div",{style:me.timeline,children:g?c.jsxs("div",{style:me.loadingState,children:[c.jsx("div",{style:me.spinner}),c.jsx("span",{children:"Loading audit logs..."})]}):o.length===0?c.jsxs("div",{style:me.emptyState,children:[c.jsx(ll,{size:48,style:{color:"var(--text-muted)",marginBottom:"12px"}}),c.jsx("p",{children:"No audit logs yet. Start chatting with SamarthyaBot to see activity here."})]}):o.map((x,M)=>{const U=Vu[x.category]||Vu.system,T=im[x.status]||im.success;return c.jsxs("div",{style:me.logEntry,children:[c.jsxs("div",{style:me.logTimeline,children:[c.jsx("div",{style:{...me.logDot,background:U.color}}),M<o.length-1&&c.jsx("div",{style:me.logLine})]}),c.jsxs("div",{style:me.logContent,children:[c.jsxs("div",{style:me.logHeader,children:[c.jsxs("span",{style:{...me.logCategory,background:U.bg,color:U.color},children:[U.icon," ",x.category]}),c.jsx("span",{style:{...me.logStatus,background:T.bg,color:T.color},children:x.status}),x.details?.riskLevel&&x.details.riskLevel!=="low"&&c.jsxs("span",{style:me.riskBadge,children:["⚠️ ",x.details.riskLevel," risk"]})]}),c.jsx("div",{style:me.logAction,children:x.action}),x.details?.toolName&&c.jsxs("div",{style:me.logDetail,children:["Tool: ",x.details.toolName]}),c.jsxs("div",{style:me.logTime,children:[c.jsx(Ju,{size:12}),new Date(x.createdAt).toLocaleString("en-IN",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})]}),x.canRollback&&x.status!=="rolled_back"&&c.jsxs("button",{onClick:()=>b(x._id),style:me.rollbackBtn,children:[c.jsx(Lp,{size:14})," Undo / Rollback"]})]})]},x._id||M)})})]})}const me={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"24px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},statsRow:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"12px",marginBottom:"20px"},statCard:{display:"flex",alignItems:"center",gap:"14px",padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},statValue:{fontSize:"1.3rem",fontWeight:700,color:"var(--text-primary)"},statLabel:{fontSize:"0.75rem",color:"var(--text-muted)"},filters:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 16px",background:"var(--bg-secondary)",borderRadius:"var(--radius-md)",marginBottom:"20px",flexWrap:"wrap",border:"1px solid var(--border-subtle)"},filterBtn:{padding:"6px 12px",background:"transparent",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-full)",color:"var(--text-muted)",fontSize:"0.78rem",cursor:"pointer",fontFamily:"var(--font-primary)",textTransform:"capitalize",transition:"all var(--transition-fast)",display:"flex",alignItems:"center",gap:"4px"},filterBtnActive:{background:"rgba(99, 102, 241, 0.15)",borderColor:"var(--accent-primary)",color:"var(--accent-primary)"},timeline:{display:"flex",flexDirection:"column"},logEntry:{display:"flex",gap:"16px"},logTimeline:{display:"flex",flexDirection:"column",alignItems:"center",width:"20px",flexShrink:0},logDot:{width:"12px",height:"12px",borderRadius:"50%",flexShrink:0},logLine:{width:"2px",flex:1,background:"var(--border-subtle)",marginTop:"4px",marginBottom:"4px"},logContent:{flex:1,padding:"14px 18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",marginBottom:"12px"},logHeader:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px",flexWrap:"wrap"},logCategory:{padding:"3px 10px",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600,textTransform:"capitalize",display:"inline-flex",alignItems:"center",gap:"4px"},logStatus:{padding:"3px 10px",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600,textTransform:"capitalize"},riskBadge:{fontSize:"0.72rem",color:"#f59e0b"},logAction:{fontSize:"0.9rem",fontWeight:500,color:"var(--text-primary)",marginBottom:"4px"},logDetail:{fontSize:"0.8rem",color:"var(--text-muted)",marginBottom:"4px"},logTime:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.75rem",color:"var(--text-muted)"},rollbackBtn:{display:"inline-flex",alignItems:"center",gap:"6px",marginTop:"8px",padding:"6px 14px",background:"rgba(139, 92, 246, 0.1)",border:"1px solid rgba(139, 92, 246, 0.3)",borderRadius:"var(--radius-sm)",color:"#8b5cf6",fontSize:"0.78rem",fontWeight:500,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},loadingState:{display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",padding:"60px 20px",color:"var(--text-muted)"},spinner:{width:"24px",height:"24px",border:"2px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"60px 20px",color:"var(--text-muted)",textAlign:"center",fontSize:"0.9rem"}},rm={low:{bg:"rgba(16,185,129,0.12)",color:"#10b981",label:"🟢 Low Risk"},medium:{bg:"rgba(245,158,11,0.12)",color:"#f59e0b",label:"🟡 Medium Risk"},high:{bg:"rgba(239,68,68,0.12)",color:"#ef4444",label:"🔴 High Risk"}};function C2({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState([]),[h,p]=A.useState(null),[g,v]=A.useState([]);A.useEffect(()=>{y()},[]);const y=async()=>{try{const[U,T]=await Promise.all([Gu.getPacks(),Gu.getAll()]);u(U.data.packs||[]),f(T.data.tools||[])}catch{console.error("Failed to load tools")}},b=async U=>{p(U);try{const T=await Gu.getPackTools(U);v(T.data.tools||[])}catch{v([])}},x=async U=>{try{await dc.updateProfile({activePack:U})}catch{console.error("Failed to activate pack")}},M=i?.language==="english";return c.jsxs("div",{style:qe.container,children:[c.jsx("div",{style:qe.header,children:c.jsxs("div",{children:[c.jsxs("h1",{style:qe.title,children:["🛠️ ",M?"Tool Packs":"टूल पैक्स"]}),c.jsx("p",{style:qe.subtitle,children:M?"Choose the right tool pack for your workflow":"अपने काम के हिसाब से पैक चुनो"})]})}),c.jsx("div",{style:qe.packsGrid,children:o.map((U,T)=>{const _=i?.activePack===U.id,C=h===U.id;return c.jsxs("div",{onClick:()=>b(U.id),style:{...qe.packCard,..._?qe.packCardActive:{},...C?qe.packCardSelected:{},animationDelay:`${T*.1}s`},children:[c.jsxs("div",{style:qe.packHeader,children:[c.jsx("span",{style:qe.packEmoji,children:U.id==="student"?"🎓":U.id==="business"?"🏢":U.id==="developer"?"👨💻":"🏠"}),_&&c.jsxs("span",{style:qe.activeBadge,children:[c.jsx(Ku,{size:12})," ",M?"Active":"सक्रिय"]})]}),c.jsx("h3",{style:qe.packName,children:M?U.name:U.nameHi||U.name}),c.jsx("p",{style:qe.packDesc,children:M?U.description:U.descriptionHi||U.description}),c.jsxs("div",{style:qe.packMeta,children:[c.jsxs("span",{style:qe.toolCount,children:[c.jsx(Wr,{size:14})," ",U.toolCount," tools"]}),c.jsx(ci,{size:16,style:{color:"var(--text-muted)"}})]}),!_&&c.jsxs("button",{onClick:Q=>{Q.stopPropagation(),x(U.id)},style:qe.activateBtn,children:[c.jsx(hi,{size:14})," ",M?"Activate":"एक्टिवेट करें"]})]},U.id)})}),c.jsxs("div",{style:qe.section,children:[c.jsxs("h2",{style:qe.sectionTitle,children:[c.jsx(Wr,{size:20,style:{color:"var(--accent-primary)"}}),h?M?`Tools in ${h} pack`:`${h} पैक के टूल्स`:M?"All Available Tools":"सभी टूल्स"]}),c.jsx("div",{style:qe.toolsGrid,children:(h?g:s).map((U,T)=>{const _=rm[U.riskLevel]||rm.low;return c.jsxs("div",{style:{...qe.toolCard,animationDelay:`${T*.05}s`},children:[c.jsxs("div",{style:qe.toolHeader,children:[c.jsx("span",{style:qe.toolName,children:U.name}),c.jsx("span",{style:{...qe.riskBadge,background:_.bg,color:_.color},children:_.label})]}),c.jsx("p",{style:qe.toolDesc,children:M?U.description:U.descriptionHi||U.description}),c.jsx("div",{style:qe.toolMeta,children:c.jsxs("span",{style:qe.toolCategory,children:[U.category==="file"?"📁":U.category==="email"?"📧":U.category==="search"?"🔍":U.category==="calendar"?"📅":"🛠️"," ",U.category]})})]},U.name)})})]})]})}const qe={container:{padding:"28px 32px",maxWidth:"1100px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},packsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"16px",marginBottom:"32px"},packCard:{padding:"22px",background:"var(--bg-secondary)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",cursor:"pointer",transition:"all var(--transition-normal)",animation:"fadeInUp 0.4s ease-out both"},packCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.05)"},packCardSelected:{borderColor:"var(--accent-gold)",boxShadow:"0 0 16px rgba(245, 158, 11, 0.15)"},packHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},packEmoji:{fontSize:"2rem"},activeBadge:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",background:"rgba(99, 102, 241, 0.15)",color:"var(--accent-primary)",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600},packName:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"2px"},packDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"12px"},packMeta:{display:"flex",alignItems:"center",justifyContent:"space-between"},toolCount:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.8rem",color:"var(--text-muted)"},activateBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"10px",marginTop:"14px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},section:{marginBottom:"20px"},sectionTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.1rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"16px",textTransform:"capitalize"},toolsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px"},toolCard:{padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",animation:"fadeIn 0.3s ease-out both",transition:"all var(--transition-fast)"},toolHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px",flexWrap:"wrap",gap:"6px"},toolName:{fontSize:"0.9rem",fontWeight:600,color:"var(--text-primary)",fontFamily:"monospace"},riskBadge:{padding:"3px 8px",borderRadius:"var(--radius-full)",fontSize:"0.68rem",fontWeight:600},toolDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"4px"},toolMeta:{display:"flex",alignItems:"center",gap:"8px"},toolCategory:{fontSize:"0.75rem",color:"var(--text-muted)",textTransform:"capitalize"}},z2=[{name:"@jonahships_",text:"Setup @samarthya yesterday. All I have to say is, wow. The fact that it can just keep building upon itself just by talking to it is crazy. The future is already here.",avatar:"J"},{name:"@markjaquith",text:"SamarthyaBot feels like that kind of 'just had to glue all the parts together' leap forward. Incredible experience running locally.",avatar:"M"},{name:"@danpeguine",text:"Why this is nuts: your context and skills live on YOUR computer. Proactive AF: cron jobs, reminders, background tasks. Memory is amazing.",avatar:"D"},{name:"@nateliason",text:"Managing Claude Code sessions I can kick off anywhere, autonomously running tests on my app and resolving them. The future of digital employees is here.",avatar:"N"}],w2=[{title:"GST & Tax Filing",desc:"Automatically fetch invoices from your folders, calculate GSTR-3B, and provide a ready-to-upload summary.",icon:c.jsx(Fr,{size:24,color:"#FF9933"})},{title:"UPI Integration",desc:"Generate dynamic UPI payment links or QR codes for invoices directly via Hinglish commands.",icon:c.jsx(hi,{size:24,color:"#ffffff"})},{title:"Hinglish Fluency",desc:"Understands 'Kal 10 baje remind kar dena' or 'Mera portfolio check karo' with native nuance.",icon:c.jsx(ov,{size:24,color:"#138808"})}],_2=[{title:"Autonomous Planning",desc:"Breaks complex goals into multiple steps using advanced reasoning loops.",icon:c.jsx(D2,{size:24})},{title:"Tool Access",desc:"Reads files, writes code, and executes shell commands under your supervision.",icon:c.jsx(Lx,{size:24})},{title:"Secure Vault",desc:"AES-256 encrypted local memory store for all sensitive data.",icon:c.jsx(ll,{size:24})}],O2=["WhatsApp","Telegram","Gmail","IRCTC","UPI","GST Portal","File System","Browser","Slack","Discord","Ollama","Claude"];function D2(i){return c.jsxs("svg",{...i,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",children:[c.jsx("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .52 8.105 3 3 0 1 0 6 0 3 3 0 1 0 6 0 4 4 0 0 0 .52-8.105 4 4 0 0 0-2.526-5.77A3 3 0 1 0 12 5"}),c.jsx("path",{d:"M12 13v-2"}),c.jsx("path",{d:"M12 17v-2"}),c.jsx("path",{d:"M12 9V7"})]})}function M2(){const[i,o]=A.useState(!1);return A.useEffect(()=>{const u=()=>o(window.scrollY>50);window.addEventListener("scroll",u);const s=document.createElement("style");return s.type="text/css",s.innerText=`
|
|
26
|
-
@keyframes indian-gradient {
|
|
27
|
-
0% { background-position: 0% 50%; }
|
|
28
|
-
50% { background-position: 100% 50%; }
|
|
29
|
-
100% { background-position: 0% 50%; }
|
|
30
|
-
}
|
|
31
|
-
@keyframes float {
|
|
32
|
-
0% { transform: translateY(0px) rotate(0deg); }
|
|
33
|
-
50% { transform: translateY(-15px) rotate(1deg); }
|
|
34
|
-
100% { transform: translateY(0px) rotate(0deg); }
|
|
35
|
-
}
|
|
36
|
-
.animated-flag-text {
|
|
37
|
-
background: linear-gradient(90deg, #FF9933, #ffffff, #138808, #FF9933);
|
|
38
|
-
background-size: 300% 300%;
|
|
39
|
-
animation: indian-gradient 6s ease infinite;
|
|
40
|
-
-webkit-background-clip: text;
|
|
41
|
-
-webkit-text-fill-color: transparent;
|
|
42
|
-
}
|
|
43
|
-
.float-card { animation: float 5s ease-in-out infinite; }
|
|
44
|
-
.bg-grid {
|
|
45
|
-
background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
|
|
46
|
-
background-size: 40px 40px;
|
|
47
|
-
}
|
|
48
|
-
.scroll-indicator {
|
|
49
|
-
animation: float 2s infinite;
|
|
50
|
-
}
|
|
51
|
-
`,document.head.appendChild(s),()=>window.removeEventListener("scroll",u)},[]),c.jsxs("div",{style:G.page,className:"bg-grid",children:[c.jsx("header",{style:{...G.header,backgroundColor:i?"rgba(5, 5, 5, 0.95)":"transparent",borderBottom:i?"1px solid rgba(255, 255, 255, 0.05)":"1px solid transparent"},children:c.jsxs("div",{style:G.navInner,children:[c.jsxs("div",{style:G.brand,children:[c.jsx("div",{style:G.logoCircle,children:"स"}),c.jsx("span",{style:G.brandName,children:"SamarthyaBot"})]}),c.jsxs("nav",{style:G.navLinks,children:[c.jsx("a",{href:"#features",style:G.navLink,children:"Features"}),c.jsx("a",{href:"#howitworks",style:G.navLink,children:"How it Works"}),c.jsx("a",{href:"#integrations",style:G.navLink,children:"Integrations"}),c.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",style:G.navLink,children:"GitHub"}),c.jsxs(si,{to:"/dashboard",style:G.adminLink,children:["Admin Console ",c.jsx(jx,{size:14})]})]})]})}),c.jsxs("section",{style:G.hero,children:[c.jsx("div",{style:G.heroGlow}),c.jsxs("div",{style:G.container,children:[c.jsxs("div",{style:G.heroBadge,children:[c.jsx("span",{style:G.badgeDot}),"New: Local Agentic Swarm Mode Active →"]}),c.jsxs("h1",{style:G.heroTitle,children:["The AI that actually ",c.jsx("br",{}),c.jsx("span",{className:"animated-flag-text",children:"does things."})]}),c.jsx("p",{style:G.heroSubtitle,children:"Your personal, locally-hosted Agentic OS. No cloud limitations. No data leaks. Just pure AI performance on your hardware, controlled from anywhere via WhatsApp & Telegram."}),c.jsxs("div",{style:G.installBox,className:"float-card",children:[c.jsxs("div",{style:G.installHeader,children:[c.jsxs("div",{style:G.terminalDots,children:[c.jsx("div",{style:{...G.dot,background:"#ff5f56"}}),c.jsx("div",{style:{...G.dot,background:"#ffbd2e"}}),c.jsx("div",{style:{...G.dot,background:"#27c93f"}})]}),c.jsx("span",{style:G.terminalLabel,children:"One-Line Installation"})]}),c.jsxs("div",{style:G.installBody,children:[c.jsxs("div",{style:G.codeGroup,children:[c.jsx("span",{style:G.comment,children:"# Install the engine"}),c.jsxs("code",{style:G.codeLine,children:[c.jsx("span",{style:G.prompt,children:"$"})," npm install -g samarthya-bot"]})]}),c.jsxs("div",{style:G.codeGroup,children:[c.jsx("span",{style:G.comment,children:"# Start the config wizard"}),c.jsxs("code",{style:G.codeLine,children:[c.jsx("span",{style:G.prompt,children:"$"})," samarthya onboard"]})]}),c.jsxs("div",{style:G.codeGroup,children:[c.jsx("span",{style:G.comment,children:"# Run your personal gateway"}),c.jsxs("code",{style:G.codeLine,children:[c.jsx("span",{style:G.prompt,children:"$"})," samarthya gateway"]})]})]})]}),c.jsxs("div",{style:G.heroCtas,children:[c.jsx(si,{to:"/dashboard",style:G.primaryBtn,children:"Launch Admin Dashboard"}),c.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",style:G.secondaryBtn,children:[c.jsx(nv,{size:20})," Repository"]})]})]})]}),c.jsx("section",{style:G.indianSection,id:"howitworks",children:c.jsxs("div",{style:G.container,children:[c.jsxs("div",{style:G.sectionHeader,children:[c.jsx("span",{style:G.subTitle,children:"⟩ The Indian Advantage"}),c.jsxs("h2",{style:G.sectionTitle,children:["Built for the ",c.jsx("br",{})," Indian Ecosystem."]}),c.jsx("p",{style:G.sectionDesc,children:"Generic AI assistants don't understand the nuances of the Indian digital landscape. We do."})]}),c.jsx("div",{style:G.highlightGrid,children:w2.map((u,s)=>c.jsxs("div",{style:G.highlightCard,className:"float-card",children:[c.jsx("div",{style:G.iconContainer,children:u.icon}),c.jsx("h3",{style:G.cardTitle,children:u.title}),c.jsx("p",{style:G.cardDesc,children:u.desc})]},s))})]})}),c.jsx("section",{id:"integrations",style:G.ribbonSection,children:c.jsxs("div",{style:G.container,children:[c.jsxs("div",{style:{...G.sectionHeader,marginBottom:"40px"},children:[c.jsx("span",{style:G.subTitle,children:"⟩ Universal Connectivity"}),c.jsx("h2",{style:{...G.sectionTitle,fontSize:"2.5rem"},children:"Integrates with your entire stack."})]}),c.jsx("div",{style:G.imageWrap,children:c.jsx("img",{src:"/integration_logos_strip_1772378103389.png",style:G.logosImage,className:"float-anim",alt:"integrations strip"})}),c.jsx("div",{style:G.tagsContainer,children:O2.map((u,s)=>c.jsx("span",{style:G.tag,children:u},s))})]})}),c.jsx("section",{style:G.capabilitiesSection,id:"features",children:c.jsx("div",{style:G.container,children:c.jsxs("div",{style:G.sideBySide,children:[c.jsxs("div",{style:G.sbsText,children:[c.jsx("span",{style:G.subTitle,children:"⟩ Architecture"}),c.jsxs("h2",{style:G.sectionTitle,children:["Agentic Reasoning ",c.jsx("br",{})," Loops."]}),c.jsx("p",{style:G.sectionDesc,children:"SamarthyaBot doesn't just respond; it plans. It uses a Chain-of-Thought approach to browse the web, read your local docs, and execute tools to solve your query completely."}),c.jsxs("div",{style:G.checkWrap,children:[c.jsxs("div",{style:G.checkItem,children:[c.jsx(ku,{size:18,color:"#10b981"})," ",c.jsx("span",{children:"Multi-step task decomposition"})]}),c.jsxs("div",{style:G.checkItem,children:[c.jsx(ku,{size:18,color:"#10b981"})," ",c.jsx("span",{children:"Recursive self-correction"})]}),c.jsxs("div",{style:G.checkItem,children:[c.jsx(ku,{size:18,color:"#10b981"})," ",c.jsx("span",{children:"Human-in-the-loop approvals"})]})]})]}),c.jsx("div",{style:G.sbsCards,children:_2.map((u,s)=>c.jsxs("div",{style:G.miniCard,children:[c.jsx("div",{style:G.miniIcon,children:u.icon}),c.jsxs("div",{children:[c.jsx("div",{style:G.miniTitle,children:u.title}),c.jsx("div",{style:G.miniDesc,children:u.desc})]})]},s))})]})})}),c.jsx("section",{style:G.techSection,children:c.jsx("div",{style:G.container,children:c.jsxs("div",{style:G.techGrid,children:[c.jsxs("div",{style:G.techCard,children:[c.jsx(Vx,{size:32,color:"#8b5cf6"}),c.jsx("h3",{children:"Vector Memory"}),c.jsx("p",{children:"Every conversation is vectorized and stored locally for long-term semantic retrieval. Your agent never forgets."})]}),c.jsxs("div",{style:G.techCard,children:[c.jsx(zm,{size:32,color:"#3b82f6"}),c.jsx("h3",{children:"Local Gateway"}),c.jsx("p",{children:"The system runs as a lightweight Node.js gateway on your server or PC, accessible via a secure tunneling protocol."})]}),c.jsxs("div",{style:G.techCard,children:[c.jsx(hv,{size:32,color:"#f43f5e"}),c.jsx("h3",{children:"Encrypted Secrets"}),c.jsx("p",{children:"All API keys and tokens are stored using AES-256-CBC encryption, unlocked only during runtime with your master key."})]})]})})}),c.jsx("section",{style:G.testSection,children:c.jsxs("div",{style:G.container,children:[c.jsxs("div",{style:G.sectionHeader,children:[c.jsx("span",{style:G.subTitle,children:"⟩ The User Community"}),c.jsx("h2",{style:G.sectionTitle,children:"Built for Developers & Power Users."})]}),c.jsx("div",{style:G.testGrid,children:z2.map((u,s)=>c.jsxs("div",{style:G.testCard,children:[c.jsxs("div",{style:G.testUser,children:[c.jsx("div",{style:G.avatar,children:u.avatar}),c.jsx("span",{style:G.userName,children:u.name})]}),c.jsxs("p",{style:G.testText,children:['"',u.text,'"']})]},s))})]})}),c.jsx("section",{style:G.finalCta,children:c.jsx("div",{style:G.container,children:c.jsxs("div",{style:G.ctaBox,children:[c.jsxs("h2",{children:["Ready to reclaim your ",c.jsx("br",{})," digital sovereignty?"]}),c.jsx("p",{children:"Join 1,000+ developers building local AI workflows on SamarthyaBot."}),c.jsxs("div",{style:G.heroCtas,children:[c.jsx(si,{to:"/dashboard",style:G.primaryBtn,children:"Get Started Free"}),c.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",style:G.secondaryBtn,children:"Read Documentation"})]})]})})}),c.jsx("footer",{style:G.footer,children:c.jsxs("div",{style:G.container,children:[c.jsxs("div",{style:G.footerGrid,children:[c.jsxs("div",{style:G.footerCol,children:[c.jsxs("div",{style:G.brand,children:[c.jsx("div",{style:G.logoCircleSmall,children:"स"}),c.jsx("span",{style:G.brandName,children:"SamarthyaBot"})]}),c.jsx("p",{style:G.footerMoto,children:"Privacy-first Agentic OS. Fully local. Fully Indian."})]}),c.jsxs("div",{style:G.footerCol,children:[c.jsx("h4",{children:"Project"}),c.jsx("a",{href:"#",children:"Roadmap"}),c.jsx("a",{href:"#",children:"Showcase"}),c.jsx("a",{href:"#",children:"Plugin Directory"})]}),c.jsxs("div",{style:G.footerCol,children:[c.jsx("h4",{children:"Connect"}),c.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",children:"GitHub"}),c.jsx("a",{href:"#",children:"Discord Server"}),c.jsx("a",{href:"#",children:"Twitter/X"})]})]}),c.jsx("div",{style:G.footerBottom,children:"© 2025 Samarthya Project. Built with code and soul in India. 🇮🇳"})]})})]})}const G={page:{backgroundColor:"#050505",color:"#ffffff",minHeight:"100vh",fontFamily:"'Inter', sans-serif",overflowX:"hidden"},container:{maxWidth:"1200px",margin:"0 auto",padding:"0 24px"},header:{position:"fixed",top:0,left:0,right:0,zIndex:1e3,backdropFilter:"blur(15px)",transition:"all 0.4s ease"},navInner:{maxWidth:"1200px",margin:"0 auto",padding:"16px 24px",display:"flex",justifyContent:"space-between",alignItems:"center"},brand:{display:"flex",alignItems:"center",gap:"12px"},logoCircle:{width:"36px",height:"36px",backgroundColor:"#FF9933",color:"#000",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",fontSize:"1.4rem"},brandName:{fontSize:"1.25rem",fontWeight:"900",letterSpacing:"-0.5px"},navLinks:{display:"flex",gap:"32px",alignItems:"center"},navLink:{color:"#777",textDecoration:"none",fontSize:"0.9rem",fontWeight:"500",transition:"color 0.2s","&:hover":{color:"#fff"}},adminLink:{backgroundColor:"rgba(255, 255, 255, 0.05)",padding:"8px 16px",borderRadius:"8px",fontSize:"0.85rem",fontWeight:"700",color:"#fff",textDecoration:"none",display:"flex",alignItems:"center",gap:"8px",border:"1px solid rgba(255, 255, 255, 0.1)",transition:"all 0.2s","&:hover":{backgroundColor:"#fff",color:"#000"}},hero:{padding:"240px 0 160px",textAlign:"center",position:"relative"},heroGlow:{position:"absolute",top:"-10%",left:"50%",transform:"translateX(-50%)",width:"1400px",height:"700px",background:"radial-gradient(circle, rgba(255, 153, 51, 0.05) 0%, rgba(19, 136, 8, 0.05) 50%, transparent 80%)",zIndex:0},heroBadge:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderRadius:"100px",backgroundColor:"rgba(255, 255, 255, 0.03)",border:"1px solid rgba(255, 255, 255, 0.08)",fontSize:"0.85rem",color:"#888",marginBottom:"40px",position:"relative",zIndex:1},badgeDot:{width:"8px",height:"8px",backgroundColor:"#10b981",borderRadius:"50%",boxShadow:"0 0 10px #10b981"},heroTitle:{fontSize:"5.5rem",fontWeight:"950",lineHeight:"0.9",letterSpacing:"-4px",marginBottom:"32px",position:"relative",zIndex:1},heroSubtitle:{fontSize:"1.4rem",color:"#888",maxWidth:"800px",margin:"0 auto 64px",lineHeight:"1.5"},installBox:{maxWidth:"600px",margin:"0 auto 64px",backgroundColor:"#0d0d0f",borderRadius:"16px",border:"1px solid rgba(255, 255, 255, 0.08)",overflow:"hidden",textAlign:"left",boxShadow:"0 40px 100px rgba(0,0,0,0.6)"},installHeader:{padding:"14px 20px",backgroundColor:"#141417",display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid rgba(255,255,255,0.05)"},terminalDots:{display:"flex",gap:"8px"},dot:{width:"11px",height:"11px",borderRadius:"50%"},terminalLabel:{fontSize:"0.7rem",color:"#555",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"1px"},installBody:{padding:"32px",fontFamily:"'JetBrains Mono', monospace"},codeGroup:{marginBottom:"24px"},comment:{color:"#555",fontSize:"0.9rem",display:"block",marginBottom:"4px"},codeLine:{fontSize:"1.1rem",color:"#fff"},prompt:{color:"#FF9933",marginRight:"12px"},heroCtas:{display:"flex",justifyContent:"center",gap:"20px"},primaryBtn:{backgroundColor:"#fff",color:"#000",padding:"16px 36px",borderRadius:"12px",fontWeight:"800",textDecoration:"none",fontSize:"1rem",transition:"transform 0.2s","&:hover":{transform:"translateY(-2px)"}},secondaryBtn:{backgroundColor:"rgba(255, 255, 255, 0.05)",color:"#fff",padding:"16px 36px",borderRadius:"12px",fontWeight:"800",textDecoration:"none",fontSize:"1rem",border:"1px solid rgba(255, 255, 255, 0.1)",display:"flex",alignItems:"center",gap:"10px"},indianSection:{padding:"120px 0"},sectionHeader:{textAlign:"center",marginBottom:"72px"},subTitle:{fontSize:"0.85rem",color:"#555",fontWeight:"900",textTransform:"uppercase",letterSpacing:"2px",display:"block",marginBottom:"16px"},sectionTitle:{fontSize:"4rem",fontWeight:"900",lineHeight:"1",letterSpacing:"-2px"},sectionDesc:{fontSize:"1.2rem",color:"#666",maxWidth:"600px",margin:"24px auto 0",lineHeight:"1.6"},highlightGrid:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"32px"},highlightCard:{padding:"48px 32px",backgroundColor:"#0d0d0f",borderRadius:"24px",border:"1px solid rgba(255,255,255,0.03)",textAlign:"center"},iconContainer:{width:"64px",height:"64px",backgroundColor:"rgba(255,255,255,0.02)",borderRadius:"20px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 32px"},cardTitle:{fontSize:"1.5rem",fontWeight:"800",marginBottom:"16px"},cardDesc:{color:"#777",lineHeight:"1.6"},ribbonSection:{padding:"100px 0",backgroundColor:"rgba(255,255,255,0.01)"},imageWrap:{display:"flex",justifyContent:"center",marginBottom:"64px"},logosImage:{maxWidth:"100%",height:"auto",borderRadius:"24px",boxShadow:"0 40px 100px rgba(0,0,0,0.5)"},tagsContainer:{display:"flex",justifyContent:"center",gap:"24px",flexWrap:"wrap",opacity:.3},tag:{fontSize:"0.9rem",fontWeight:"800"},capabilitiesSection:{padding:"120px 0"},sideBySide:{display:"grid",gridTemplateColumns:"1.2fr 1fr",gap:"64px",alignItems:"center"},sbsText:{textAlign:"left"},checkWrap:{marginTop:"40px",display:"flex",flexDirection:"column",gap:"16px"},checkItem:{display:"flex",alignItems:"center",gap:"12px",fontSize:"1.1rem",color:"#888"},sbsCards:{display:"flex",flexDirection:"column",gap:"20px"},miniCard:{backgroundColor:"#0d0d0f",padding:"24px",borderRadius:"16px",border:"1px solid rgba(255,255,255,0.03)",display:"flex",gap:"20px",alignItems:"center"},miniIcon:{color:"#888"},miniTitle:{fontWeight:"800",fontSize:"1.1rem",marginBottom:"4px"},miniDesc:{color:"#666",fontSize:"0.9rem"},techSection:{padding:"80px 0"},techGrid:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"32px"},techCard:{padding:"32px",border:"1px solid rgba(255,255,255,0.02)",borderRadius:"16px",backgroundColor:"rgba(255,255,255,0.01)"},testSection:{padding:"120px 0"},testGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"24px"},testCard:{padding:"40px",backgroundColor:"#0d0d0f",borderRadius:"24px",border:"1px solid rgba(255,255,255,0.03)"},testUser:{display:"flex",alignItems:"center",gap:"16px",marginBottom:"24px"},avatar:{width:"40px",height:"40px",backgroundColor:"#333",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold"},userName:{fontWeight:"800",color:"#fff"},testText:{fontSize:"1.1rem",color:"#666",fontStyle:"italic",lineHeight:"1.6"},finalCta:{padding:"120px 0"},ctaBox:{padding:"80px",background:"linear-gradient(135deg, rgba(255,153,51,0.1), rgba(19,136,8,0.1))",borderRadius:"40px",textAlign:"center",border:"1px solid rgba(255,255,255,0.05)"},footer:{padding:"100px 0 60px",borderTop:"1px solid rgba(255,255,255,0.03)"},footerGrid:{display:"grid",gridTemplateColumns:"1.5fr 1fr 1fr",gap:"64px",marginBottom:"64px"},footerCol:{display:"flex",flexDirection:"column",gap:"12px"},footerMoto:{color:"#555",marginTop:"16px"},logoCircleSmall:{width:"28px",height:"28px",backgroundColor:"#222",borderRadius:"6px",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",fontSize:"1rem",color:"#666"},footerBottom:{textAlign:"center",color:"#333",fontSize:"0.85rem",borderTop:"1px solid rgba(255,255,255,0.02)",paddingTop:"32px"}},qr=[{id:"chat",title:"⟩ Chat Providers",subtitle:"Message SamarthyaBot from any chat app — it responds right where you are.",items:[{name:"WhatsApp",nameHi:"व्हाट्सएप",icon:"📱",desc:"WhatsApp Business Cloud API",status:"live",tag:"🇮🇳 #1 in India"},{name:"Telegram",nameHi:"टेलीग्राम",icon:"✈️",desc:"Bot API integration",status:"coming",tag:""},{name:"WebChat",nameHi:"वेबचैट",icon:"💬",desc:"Browser-based UI (this app)",status:"live",tag:""},{name:"Discord",nameHi:"डिस्कॉर्ड",icon:"🎮",desc:"Servers, channels & DMs",status:"coming",tag:""},{name:"Slack",nameHi:"स्लैक",icon:"💼",desc:"Workspace integration",status:"coming",tag:""},{name:"Signal",nameHi:"सिग्नल",icon:"🔒",desc:"Privacy-focused messaging",status:"planned",tag:""}]},{id:"ai",title:"⟩ AI Models",subtitle:"Use any model you want — cloud or local. Your keys, your choice.",items:[{name:"Google Gemini",nameHi:"गूगल जेमिनी",icon:"✨",desc:"Gemini 2.5 Flash (Default)",status:"live",tag:"Default"},{name:"Ollama (Local)",nameHi:"ऑलामा",icon:"🏠",desc:"dolphin3:8b — offline mode",status:"live",tag:"Offline"},{name:"OpenAI",nameHi:"ओपनएआई",icon:"🤖",desc:"GPT-4o, GPT-5",status:"coming",tag:""},{name:"Anthropic",nameHi:"एंथ्रोपिक",icon:"🧠",desc:"Claude 4 Opus",status:"planned",tag:""},{name:"DeepSeek",nameHi:"डीपसीक",icon:"🔍",desc:"DeepSeek V3 & R1",status:"planned",tag:""},{name:"Gemini Vision",nameHi:"जेमिनी विज़न",icon:"👁️",desc:"Screen Understanding",status:"live",tag:"Vision"}]},{id:"tools",title:"⟩ Real Tools & Automation",subtitle:"Not simulations — these actually work. Files, emails, commands, and more.",items:[{name:"Email (Gmail)",nameHi:"ईमेल",icon:"📧",desc:"Real email via Nodemailer SMTP",status:"live",tag:"Real"},{name:"File System",nameHi:"फाइल सिस्टम",icon:"📁",desc:"Read/write/list files (sandboxed)",status:"live",tag:"Real"},{name:"Shell Commands",nameHi:"शेल कमांड",icon:"💻",desc:"Safe command execution (whitelisted)",status:"live",tag:"Real"},{name:"Web Search",nameHi:"वेब सर्च",icon:"🔍",desc:"DuckDuckGo instant search",status:"live",tag:"Real"},{name:"Weather",nameHi:"मौसम",icon:"🌤️",desc:"Open-Meteo (free, no API key)",status:"live",tag:"Real"},{name:"Calculator",nameHi:"कैलकुलेटर",icon:"🧮",desc:"Math + GST calculations",status:"live",tag:"Real"},{name:"System Info",nameHi:"सिस्टम जानकारी",icon:"🖥️",desc:"CPU, RAM, OS info",status:"live",tag:"Real"},{name:"Browser Open",nameHi:"ब्राउज़र",icon:"🌐",desc:"Open URLs in default browser",status:"live",tag:"Real"},{name:"Notes",nameHi:"नोट्स",icon:"📝",desc:"Save notes as Markdown files",status:"live",tag:"Real"},{name:"Reminders",nameHi:"रिमाइंडर",icon:"⏰",desc:"Persistent JSON reminders",status:"live",tag:"Real"},{name:"Calendar",nameHi:"कैलेंडर",icon:"📅",desc:"Event scheduling (local files)",status:"live",tag:"Real"}]},{id:"india",title:"⟩ Indian Workflows",subtitle:"Built specifically for Indian users — GST, UPI, IRCTC, and more.",items:[{name:"UPI Payments",nameHi:"यूपीआई",icon:"💳",desc:"Generate real UPI deep links",status:"live",tag:"🇮🇳 Real"},{name:"GST Reminders",nameHi:"जीएसटी",icon:"🏢",desc:"GSTR-1, 3B, 9 deadline tracking",status:"live",tag:"🇮🇳 Real"},{name:"IRCTC Helper",nameHi:"आईआरसीटीसी",icon:"🚂",desc:"Screen Understanding for booking",status:"live",tag:"Vision"},{name:"PAN/Aadhaar Masking",nameHi:"पैन/आधार",icon:"🔐",desc:"Auto-detect & mask sensitive data",status:"live",tag:"Security"},{name:"DigiLocker",nameHi:"डिजीलॉकर",icon:"📋",desc:"Screen Understanding support",status:"live",tag:"Vision"},{name:"Hindi/Hinglish",nameHi:"हिंदी/हिंग्लिश",icon:"🗣️",desc:"3 language support with auto-detect",status:"live",tag:"🇮🇳"}]},{id:"voice",title:"⟩ Voice & Vision",subtitle:"Talk to SamarthyaBot, send screenshots — it understands everything.",items:[{name:"Voice Input",nameHi:"वॉइस इनपुट",icon:"🎙️",desc:"Web Speech API (Hindi/English)",status:"live",tag:"Real"},{name:"Text-to-Speech",nameHi:"टेक्स्ट-टू-स्पीच",icon:"🔊",desc:"Bot reads responses aloud",status:"live",tag:"Real"},{name:"Screen Capture",nameHi:"स्क्रीन कैप्चर",icon:"📸",desc:"Upload screenshots for AI analysis",status:"live",tag:"Vision"},{name:"Whisper (Local)",nameHi:"व्हिस्पर",icon:"🎧",desc:"Offline voice-to-text",status:"planned",tag:""}]},{id:"security",title:"⟩ Privacy & Security",subtitle:"Your data stays yours. Privacy-first, always.",items:[{name:"Sensitive Data Detection",nameHi:"सेंसिटिव डेटा",icon:"🛡️",desc:"PAN, Aadhaar, bank auto-detect",status:"live",tag:"Always On"},{name:"Permission System",nameHi:"अनुमति सिस्टम",icon:"🔑",desc:"Ask before file/email/browser access",status:"live",tag:""},{name:"Audit Log",nameHi:"ऑडिट लॉग",icon:"📊",desc:"Full tool execution history",status:"live",tag:""},{name:"Sandbox Mode",nameHi:"सैंडबॉक्स",icon:"📦",desc:"Files restricted to ~/SamarthyaBot_Files",status:"live",tag:""},{name:"Local-First",nameHi:"लोकल-फर्स्ट",icon:"🏠",desc:"Ollama for offline private AI",status:"live",tag:""}]}],B2={live:{bg:"rgba(19, 136, 8, 0.2)",color:"#4ade80",label:"✅ Live"},coming:{bg:"rgba(255, 153, 51, 0.2)",color:"#FF9933",label:"🔜 Coming Soon"},planned:{bg:"rgba(100, 100, 100, 0.2)",color:"#888",label:"📋 Planned"}};function N2({user:i}){const[o,u]=A.useState(qr.reduce((y,b)=>({...y,[b.id]:!0}),{})),[s,f]=A.useState("all"),h=y=>{u(b=>({...b,[y]:!b[y]}))},p=qr.map(y=>({...y,items:s==="all"?y.items:y.items.filter(b=>b.status===s)})).filter(y=>y.items.length>0),g=qr.flatMap(y=>y.items).filter(y=>y.status==="live").length,v=qr.flatMap(y=>y.items).filter(y=>y.status==="coming").length;return c.jsxs("div",{style:Ee.container,children:[c.jsxs("div",{style:Ee.header,children:[c.jsxs("h1",{style:Ee.title,children:[c.jsx(hi,{size:28,color:"#FF9933"}),"Integrations"]}),c.jsxs("p",{style:Ee.subtitle,children:[c.jsx("span",{style:Ee.countBadge,children:g})," live integrations with real tools & services.",c.jsx("br",{}),"Chat from WhatsApp, control files, send emails, check weather — all from one AI."]})]}),c.jsx("div",{style:Ee.filterBar,children:[{key:"all",label:`All (${g+v})`},{key:"live",label:`✅ Live (${g})`},{key:"coming",label:`🔜 Coming (${v})`}].map(y=>c.jsx("button",{onClick:()=>f(y.key),style:{...Ee.filterBtn,...s===y.key?Ee.filterBtnActive:{}},children:y.label},y.key))}),p.map(y=>c.jsxs("div",{style:Ee.category,children:[c.jsxs("button",{onClick:()=>h(y.id),style:Ee.categoryHeader,children:[c.jsxs("div",{children:[c.jsx("h2",{style:Ee.categoryTitle,children:y.title}),c.jsx("p",{style:Ee.categorySubtitle,children:y.subtitle})]}),o[y.id]?c.jsx(Mx,{size:20}):c.jsx(zx,{size:20})]}),o[y.id]&&c.jsx("div",{style:Ee.grid,children:y.items.map((b,x)=>{const M=B2[b.status];return c.jsxs("div",{style:Ee.card,children:[c.jsxs("div",{style:Ee.cardTop,children:[c.jsx("span",{style:Ee.cardIcon,children:b.icon}),c.jsxs("div",{style:Ee.cardInfo,children:[c.jsx("h3",{style:Ee.cardName,children:b.name}),c.jsx("p",{style:Ee.cardNameHi,children:b.nameHi})]}),b.tag&&c.jsx("span",{style:{...Ee.tag,background:b.tag.includes("Real")?"rgba(19,136,8,0.3)":b.tag.includes("🇮🇳")?"rgba(255,153,51,0.2)":"rgba(100,100,200,0.2)",color:b.tag.includes("Real")?"#4ade80":b.tag.includes("🇮🇳")?"#FF9933":"#a0a0ff"},children:b.tag})]}),c.jsx("p",{style:Ee.cardDesc,children:b.desc}),c.jsx("div",{style:{...Ee.statusBadge,background:M.bg,color:M.color},children:M.label})]},x)})})]},y.id)),c.jsxs("div",{style:Ee.footerCTA,children:[c.jsx("h2",{style:Ee.ctaTitle,children:"🔧 Want to add more integrations?"}),c.jsxs("p",{style:Ee.ctaText,children:["SamarthyaBot is open-source. Add your own tools in ",c.jsx("code",{style:Ee.code,children:"toolRegistry.js"})]}),c.jsxs("div",{style:Ee.ctaButtons,children:[c.jsxs("div",{style:Ee.ctaCard,children:[c.jsx("span",{style:Ee.ctaIcon,children:"📧"}),c.jsx("strong",{children:"Email Setup"}),c.jsx("p",{style:Ee.ctaSmall,children:"Add Gmail App Password to .env"})]}),c.jsxs("div",{style:Ee.ctaCard,children:[c.jsx("span",{style:Ee.ctaIcon,children:"📱"}),c.jsx("strong",{children:"WhatsApp Setup"}),c.jsx("p",{style:Ee.ctaSmall,children:"Meta Business API token"})]}),c.jsxs("div",{style:Ee.ctaCard,children:[c.jsx("span",{style:Ee.ctaIcon,children:"🏠"}),c.jsx("strong",{children:"Offline Mode"}),c.jsx("p",{style:Ee.ctaSmall,children:"Set USE_OLLAMA=true in .env"})]})]})]})]})}const Ee={container:{padding:"24px",maxWidth:"1200px",margin:"0 auto"},header:{textAlign:"center",marginBottom:"32px"},title:{fontSize:"28px",fontWeight:"700",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",marginBottom:"12px"},subtitle:{color:"#94a3b8",fontSize:"15px",lineHeight:"1.6"},countBadge:{background:"linear-gradient(135deg, #FF9933, #FF6600)",color:"#fff",padding:"2px 10px",borderRadius:"20px",fontWeight:"700",fontSize:"14px"},filterBar:{display:"flex",gap:"8px",justifyContent:"center",marginBottom:"24px"},filterBtn:{padding:"8px 20px",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"20px",background:"transparent",color:"#94a3b8",cursor:"pointer",fontSize:"13px",transition:"all 0.2s"},filterBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"#FF9933",color:"#FF9933"},category:{marginBottom:"24px",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"12px",overflow:"hidden",background:"rgba(255,255,255,0.02)"},categoryHeader:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 20px",background:"rgba(255,255,255,0.03)",border:"none",color:"#fff",cursor:"pointer",textAlign:"left"},categoryTitle:{fontSize:"18px",fontWeight:"600",margin:0,color:"#FF9933"},categorySubtitle:{fontSize:"13px",color:"#64748b",margin:"4px 0 0"},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px",padding:"16px 20px"},card:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"10px",padding:"14px",transition:"all 0.2s"},cardTop:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"8px"},cardIcon:{fontSize:"24px"},cardInfo:{flex:1},cardName:{fontSize:"14px",fontWeight:"600",color:"#e2e8f0",margin:0},cardNameHi:{fontSize:"11px",color:"#64748b",margin:0},tag:{fontSize:"10px",padding:"2px 8px",borderRadius:"10px",fontWeight:"600",whiteSpace:"nowrap"},cardDesc:{fontSize:"12px",color:"#94a3b8",margin:"0 0 8px",lineHeight:"1.4"},statusBadge:{display:"inline-block",fontSize:"11px",padding:"3px 10px",borderRadius:"12px",fontWeight:"500"},footerCTA:{textAlign:"center",padding:"32px 20px",marginTop:"24px",background:"linear-gradient(135deg, rgba(255,153,51,0.05), rgba(0,0,128,0.05))",borderRadius:"16px",border:"1px solid rgba(255,153,51,0.15)"},ctaTitle:{fontSize:"20px",color:"#fff",margin:"0 0 8px"},ctaText:{color:"#94a3b8",fontSize:"14px",marginBottom:"20px"},code:{background:"rgba(255,153,51,0.15)",padding:"2px 6px",borderRadius:"4px",color:"#FF9933",fontSize:"13px"},ctaButtons:{display:"flex",gap:"12px",justifyContent:"center",flexWrap:"wrap"},ctaCard:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"10px",padding:"14px 20px",textAlign:"center",color:"#e2e8f0",fontSize:"14px",minWidth:"160px"},ctaIcon:{fontSize:"24px",display:"block",marginBottom:"6px"},ctaSmall:{fontSize:"11px",color:"#64748b",margin:"4px 0 0"}},Xu={folder:{icon:Cm,color:"#FF9933"},txt:{icon:Fr,color:"#94a3b8"},md:{icon:Fr,color:"#60a5fa"},json:{icon:Ur,color:"#fbbf24"},js:{icon:Ur,color:"#fbbf24"},html:{icon:Ur,color:"#f97316"},css:{icon:Ur,color:"#38bdf8"},png:{icon:Hu,color:"#a78bfa"},jpg:{icon:Hu,color:"#a78bfa"},jpeg:{icon:Hu,color:"#a78bfa"},pdf:{icon:Np,color:"#ef4444"},default:{icon:Np,color:"#64748b"}};function k2(i){return i.type==="folder"?Xu.folder:Xu[i.extension]||Xu.default}function om(i){return i?i<1024?`${i} B`:i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1048576).toFixed(1)} MB`:"—"}function H2(i){return new Date(i).toLocaleString("en-IN",{timeZone:"Asia/Kolkata",day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function U2({user:i}){const[o,u]=A.useState([]),[s,f]=A.useState(""),[h,p]=A.useState(!1),[g,v]=A.useState(null),[y,b]=A.useState(null),[x,M]=A.useState(!1),[U,T]=A.useState(""),[_,C]=A.useState(""),Q=A.useRef(null);A.useEffect(()=>{P(),X()},[s]);const P=async()=>{p(!0),C("");try{const K=await yn.list(s);u(K.data.items||[])}catch(K){C(K.response?.data?.error||"Failed to load files"),u([])}finally{p(!1)}},X=async()=>{try{const K=await yn.getStats();v(K.data.stats)}catch{}},ie=K=>{K.type==="folder"?f(K.path):ye(K)},ce=()=>{const K=s.split("/");K.pop(),f(K.join("/"))},ye=async K=>{try{const de=await yn.read(K.path);b(de.data)}catch{C("Cannot preview this file")}},F=K=>{const de=yn.download(K.path);window.open(de,"_blank")},_e=async K=>{const de=K.type==="folder"?`Delete folder "${K.name}" and all its contents?`:`Delete file "${K.name}"?`;if(window.confirm(de))try{await yn.deleteFile(K.path),P(),X()}catch(ve){C(ve.response?.data?.error||"Delete failed")}},Be=async()=>{if(U.trim())try{await yn.mkdir(U.trim(),s),T(""),M(!1),P()}catch(K){C(K.response?.data?.error||"Failed to create folder")}},rt=async K=>{const de=K.target.files?.[0];if(!de)return;const ve=new FileReader;ve.onload=async()=>{try{await yn.upload(de.name,ve.result,s),P(),X()}catch(Oe){C(Oe.response?.data?.error||"Upload failed")}},de.type.startsWith("text/")||["application/json","application/javascript"].includes(de.type)?ve.readAsText(de):ve.readAsDataURL(de),K.target.value=""},$e=["My Stuff",...s.split("/").filter(Boolean)];return c.jsxs("div",{style:pe.container,children:[c.jsxs("div",{style:pe.header,children:[c.jsxs("div",{style:pe.headerLeft,children:[c.jsx(rc,{size:24,color:"#FF9933"}),c.jsx("h1",{style:pe.title,children:"My Stuff"}),g&&c.jsxs("span",{style:pe.statsTag,children:[g.fileCount," files · ",g.folderCount," folders · ",g.totalSizeFormatted]})]}),c.jsxs("div",{style:pe.headerActions,children:[c.jsxs("button",{onClick:()=>M(!0),style:pe.actionBtn,children:[c.jsx(kp,{size:16})," New Folder"]}),c.jsxs("button",{onClick:()=>Q.current?.click(),style:pe.actionBtn,children:[c.jsx(Uv,{size:16})," Upload"]}),c.jsx("button",{onClick:P,style:pe.actionBtnIcon,children:c.jsx(Av,{size:16})}),c.jsx("input",{ref:Q,type:"file",onChange:rt,style:{display:"none"}})]})]}),c.jsx("div",{style:pe.breadcrumb,children:$e.map((K,de)=>c.jsxs(Ir.Fragment,{children:[de>0&&c.jsx(ci,{size:14,color:"#64748b"}),c.jsx("button",{onClick:()=>{if(de===0)f("");else{const ve=s.split("/").slice(0,de).join("/");f(ve)}},style:{...pe.crumbItem,color:de===$e.length-1?"#FF9933":"#94a3b8"},children:K})]},de))}),x&&c.jsxs("div",{style:pe.newFolderRow,children:[c.jsx(kp,{size:18,color:"#FF9933"}),c.jsx("input",{type:"text",value:U,onChange:K=>T(K.target.value),onKeyDown:K=>K.key==="Enter"&&Be(),placeholder:"Folder name...",style:pe.newFolderInput,autoFocus:!0}),c.jsx("button",{onClick:Be,style:pe.newFolderOk,children:"Create"}),c.jsx("button",{onClick:()=>{M(!1),T("")},style:pe.newFolderCancel,children:c.jsx(qp,{size:16})})]}),_&&c.jsxs("div",{style:pe.error,children:["❌ ",_,c.jsx("button",{onClick:()=>C(""),style:pe.errorClose,children:"×"})]}),s&&c.jsxs("button",{onClick:ce,style:pe.backBtn,children:[c.jsx(bx,{size:16})," Back"]}),h?c.jsx("div",{style:pe.loadingBox,children:"Loading..."}):o.length===0?c.jsxs("div",{style:pe.emptyBox,children:[c.jsx(Cm,{size:48,color:"#333"}),c.jsx("p",{style:pe.emptyText,children:"This folder is empty"}),c.jsx("p",{style:pe.emptyHint,children:"Upload a file or ask SamarthyaBot to create one in chat!"})]}):c.jsx("div",{style:pe.fileGrid,children:o.map((K,de)=>{const ve=k2(K),Oe=ve.icon;return c.jsxs("div",{style:pe.fileCard,onDoubleClick:()=>ie(K),children:[c.jsxs("div",{style:pe.fileCardTop,onClick:()=>ie(K),children:[c.jsx(Oe,{size:32,color:ve.color}),c.jsxs("div",{style:pe.fileInfo,children:[c.jsx("span",{style:pe.fileName,children:K.name}),c.jsxs("span",{style:pe.fileMeta,children:[K.type==="folder"?"Folder":om(K.size),K.modified&&` · ${H2(K.modified)}`]})]})]}),c.jsxs("div",{style:pe.fileActions,children:[K.type==="file"&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>ye(K),style:pe.fileActionBtn,title:"Preview",children:c.jsx(Kx,{size:14})}),c.jsx("button",{onClick:()=>F(K),style:pe.fileActionBtn,title:"Download",children:c.jsx(Qx,{size:14})})]}),c.jsx("button",{onClick:()=>_e(K),style:{...pe.fileActionBtn,...pe.deleteBtn},title:"Delete",children:c.jsx(_m,{size:14})})]})]},de)})}),y&&c.jsx("div",{style:pe.modalOverlay,onClick:()=>b(null),children:c.jsxs("div",{style:pe.modal,onClick:K=>K.stopPropagation(),children:[c.jsxs("div",{style:pe.modalHeader,children:[c.jsxs("h3",{style:pe.modalTitle,children:[c.jsx(Fr,{size:18,color:"#FF9933"}),y.name]}),c.jsxs("span",{style:pe.modalMeta,children:[om(y.size)," · ",y.extension?.toUpperCase()]}),c.jsx("button",{onClick:()=>b(null),style:pe.modalClose,children:c.jsx(qp,{size:20})})]}),c.jsx("pre",{style:pe.previewContent,children:y.content})]})})]})}const pe={container:{padding:"24px",maxWidth:"1200px",margin:"0 auto"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",flexWrap:"wrap",gap:"12px"},headerLeft:{display:"flex",alignItems:"center",gap:"10px"},title:{fontSize:"22px",fontWeight:"700",color:"#fff",margin:0},statsTag:{fontSize:"12px",color:"#94a3b8",background:"rgba(255,255,255,0.05)",padding:"4px 10px",borderRadius:"12px"},headerActions:{display:"flex",gap:"8px"},actionBtn:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 14px",background:"rgba(255,153,51,0.1)",border:"1px solid rgba(255,153,51,0.3)",borderRadius:"8px",color:"#FF9933",cursor:"pointer",fontSize:"13px",fontWeight:"500",transition:"all 0.2s"},actionBtnIcon:{display:"flex",alignItems:"center",padding:"8px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#94a3b8",cursor:"pointer",transition:"all 0.2s"},breadcrumb:{display:"flex",alignItems:"center",gap:"4px",marginBottom:"16px",padding:"8px 12px",background:"rgba(255,255,255,0.03)",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.06)"},crumbItem:{background:"none",border:"none",cursor:"pointer",fontSize:"13px",padding:"2px 4px",borderRadius:"4px"},newFolderRow:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",padding:"10px 14px",background:"rgba(255,153,51,0.05)",border:"1px solid rgba(255,153,51,0.2)",borderRadius:"8px"},newFolderInput:{flex:1,background:"rgba(0,0,0,0.3)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",padding:"6px 10px",color:"#fff",fontSize:"13px",outline:"none"},newFolderOk:{padding:"6px 14px",background:"#FF9933",border:"none",borderRadius:"6px",color:"#000",fontWeight:"600",cursor:"pointer",fontSize:"12px"},newFolderCancel:{padding:"6px",background:"none",border:"none",color:"#94a3b8",cursor:"pointer"},error:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"rgba(239,68,68,0.1)",border:"1px solid rgba(239,68,68,0.3)",borderRadius:"8px",color:"#ef4444",fontSize:"13px",marginBottom:"12px"},errorClose:{background:"none",border:"none",color:"#ef4444",cursor:"pointer",fontSize:"16px"},backBtn:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"12px",padding:"6px 12px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#94a3b8",cursor:"pointer",fontSize:"13px"},loadingBox:{textAlign:"center",color:"#64748b",padding:"60px 0",fontSize:"14px"},emptyBox:{textAlign:"center",padding:"60px 0"},emptyText:{color:"#64748b",fontSize:"16px",margin:"12px 0 4px"},emptyHint:{color:"#4a5568",fontSize:"13px"},fileGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:"10px"},fileCard:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 14px",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"10px",transition:"all 0.15s",cursor:"pointer"},fileCardTop:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},fileInfo:{display:"flex",flexDirection:"column",minWidth:0},fileName:{fontSize:"14px",color:"#e2e8f0",fontWeight:"500",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},fileMeta:{fontSize:"11px",color:"#64748b"},fileActions:{display:"flex",gap:"4px",flexShrink:0},fileActionBtn:{padding:"5px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"6px",color:"#94a3b8",cursor:"pointer",transition:"all 0.15s"},deleteBtn:{color:"#ef4444"},modalOverlay:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0,0,0,0.7)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{width:"90%",maxWidth:"800px",maxHeight:"80vh",background:"#1a1a2e",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"16px",overflow:"hidden",display:"flex",flexDirection:"column"},modalHeader:{display:"flex",alignItems:"center",gap:"8px",padding:"14px 20px",borderBottom:"1px solid rgba(255,255,255,0.06)",background:"rgba(255,255,255,0.03)"},modalTitle:{display:"flex",alignItems:"center",gap:"8px",fontSize:"15px",color:"#fff",margin:0,flex:1},modalMeta:{fontSize:"12px",color:"#64748b"},modalClose:{background:"none",border:"none",color:"#94a3b8",cursor:"pointer",padding:"4px"},previewContent:{padding:"16px 20px",margin:0,overflow:"auto",flex:1,fontSize:"13px",lineHeight:"1.6",color:"#cbd5e1",fontFamily:"'JetBrains Mono', 'Fira Code', monospace',",whiteSpace:"pre-wrap",wordBreak:"break-word"}},L2=({user:i,loading:o,updateUser:u,sidebarOpen:s,setSidebarOpen:f})=>{const h=$t();return o&&h.pathname!=="/"?c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",flexDirection:"column",background:"var(--bg-primary)"},children:[c.jsx("div",{style:{width:"48px",height:"48px",border:"3px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Loading SamarthyaBot..."})]}):h.pathname==="/"?c.jsx(M2,{}):c.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[c.jsx(Xv,{user:i,isOpen:s,onToggle:()=>f(!s)}),c.jsx("main",{style:{flex:1,minHeight:"100vh"},children:c.jsxs(M1,{children:[c.jsx(na,{path:"/dashboard",element:c.jsx(A2,{user:i})}),c.jsx(na,{path:"/chat",element:c.jsx(lm,{user:i})}),c.jsx(na,{path:"/chat/:id",element:c.jsx(lm,{user:i})}),c.jsx(na,{path:"/settings",element:c.jsx(R2,{user:i,onUpdate:u})}),c.jsx(na,{path:"/audit",element:c.jsx(T2,{user:i})}),c.jsx(na,{path:"/tools",element:c.jsx(C2,{user:i})}),c.jsx(na,{path:"/integrations",element:c.jsx(N2,{user:i})}),c.jsx(na,{path:"/my-stuff",element:c.jsx(U2,{user:i})}),c.jsx(na,{path:"*",element:c.jsx(O1,{to:"/dashboard"})})]})})]})};function q2(){const[i,o]=A.useState(null),[u,s]=A.useState(!0),[f,h]=A.useState(!0);A.useEffect(()=>{(async()=>{try{const v=await dc.getProfile();o(v.data.user)}catch(v){console.error(v)}s(!1)})()},[]);const p=g=>{o(g)};return c.jsx(nx,{children:c.jsx(L2,{user:i,loading:u,updateUser:p,sidebarOpen:f,setSidebarOpen:h})})}Ng.createRoot(document.getElementById("root")).render(c.jsx(Ir.StrictMode,{children:c.jsx(q2,{})}));
|