samarthya-bot 2.2.1 → 2.3.1

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +340 -353
  3. package/backend/bin/samarthya.js +29 -10
  4. package/backend/config/constants.js +4 -4
  5. package/backend/controllers/chatController.js +72 -0
  6. package/backend/controllers/telegramController.js +8 -0
  7. package/backend/package.json +1 -1
  8. package/backend/public/assets/index-DiMx9ERJ.css +1 -0
  9. package/backend/public/assets/index-Dn5WYZTH.js +32 -0
  10. package/backend/public/index.html +186 -16
  11. package/backend/public/robots.txt +32 -0
  12. package/backend/public/sitemap.xml +39 -0
  13. package/backend/services/agent/commandService.js +168 -0
  14. package/backend/services/llm/llmService.js +8 -0
  15. package/backend/services/planner/plannerService.js +17 -0
  16. package/backend/services/security/sandboxService.js +11 -4
  17. package/backend/services/system/platform.js +150 -0
  18. package/backend/services/tools/toolRegistry.js +521 -36
  19. package/backend/services/worker/workerClient.js +141 -29
  20. package/package.json +1 -1
  21. package/backend/public/assets/index-6PCzI3K2.js +0 -40
  22. package/backend/public/assets/index-6TF5jVRQ.js +0 -149
  23. package/backend/public/assets/index-B0U7rt6f.js +0 -46
  24. package/backend/public/assets/index-BF0RZh9i.js +0 -149
  25. package/backend/public/assets/index-BFRAq8Y1.js +0 -149
  26. package/backend/public/assets/index-CGw8cc8z.js +0 -149
  27. package/backend/public/assets/index-Ckf0GO1B.css +0 -1
  28. package/backend/public/assets/index-Cx0Ei-z7.js +0 -149
  29. package/backend/public/assets/index-DIPdcLv-.js +0 -25
  30. package/backend/public/assets/index-Da1E-MYB.js +0 -53
  31. package/backend/public/assets/index-DdCKkq38.js +0 -149
  32. package/backend/public/assets/index-Do4jNsZS.js +0 -19
  33. package/backend/public/assets/index-DyjpBYmS.js +0 -51
  34. package/backend/public/assets/index-DzlXcaXT.js +0 -149
  35. package/backend/public/assets/index-J7XSVHCz.css +0 -1
  36. package/backend/public/assets/index-Ui-pyZvK.js +0 -25
  37. package/backend/public/assets/index-kzffNwzo.js +0 -149
@@ -1,25 +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"]'))u(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"&&u(p)}).observe(document,{childList:!0,subtree:!0});function s(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 u(f){if(f.ep)return;f.ep=!0;const h=s(f);fetch(f.href,h)}})();function um(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ts={exports:{}},ai={};var yp;function Ag(){if(yp)return ai;yp=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(u,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:u,key:p,ref:f!==void 0?f:null,props:h}}return ai.Fragment=o,ai.jsx=s,ai.jsxs=s,ai}var gp;function Rg(){return gp||(gp=1,Ts.exports=Ag()),Ts.exports}var c=Rg(),zs={exports:{}},se={};var vp;function Tg(){if(vp)return se;vp=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=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"),x=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),M=Symbol.iterator;function k(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(){}},w=Object.assign,z={};function X(S,B,Y){this.props=S,this.context=B,this.refs=z,this.updater=Y||T}X.prototype.isReactComponent={},X.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")},X.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function P(){}P.prototype=X.prototype;function V(S,B,Y){this.props=S,this.context=B,this.refs=z,this.updater=Y||T}var le=V.prototype=new P;le.constructor=V,w(le,X.prototype),le.isPureReactComponent=!0;var ce=Array.isArray;function ye(){}var J={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function Be(S,B,Y){var G=Y.ref;return{$$typeof:i,type:S,key:B,ref:G!==void 0?G: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 Z(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return B[Y]})}var de=/\/+/g;function xe(S,B){return typeof S=="object"&&S!==null&&S.key!=null?Z(""+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,G,I){var ue=typeof S;(ue==="undefined"||ue==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(ue){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,G,I)}}if(Te)return I=I(S),Te=G===""?"."+xe(S,0):G,ce(I)?(Y="",Te!=null&&(Y=Te.replace(de,"$&/")+"/"),D(I,B,Y,"",function(sl){return sl})):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=G===""?".":G+":";if(ce(S))for(var Ke=0;Ke<S.length;Ke++)G=S[Ke],ue=ot+xe(G,Ke),Te+=D(G,B,Y,ue,I);else if(Ke=k(S),typeof Ke=="function")for(S=Ke.call(S),Ke=0;!(G=S.next()).done;)G=G.value,ue=ot+xe(G,Ke++),Te+=D(G,B,Y,ue,I);else if(ue==="object"){if(typeof S.then=="function")return D(Oe(S),B,Y,G,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 Q(S,B,Y){if(S==null)return S;var G=[],I=0;return D(S,G,"","",function(ue){return B.call(Y,ue,I++)}),G}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)},K={map:Q,forEach:function(S,B,Y){Q(S,function(){B.apply(this,arguments)},Y)},count:function(S){var B=0;return Q(S,function(){B++}),B},toArray:function(S){return Q(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 se.Activity=v,se.Children=K,se.Component=X,se.Fragment=s,se.Profiler=f,se.PureComponent=V,se.StrictMode=u,se.Suspense=x,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,se.__COMPILER_RUNTIME={__proto__:null,c:function(S){return J.H.useMemoCache(S)}},se.cache=function(S){return function(){return S.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(S,B,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var G=w({},S.props),I=S.key;if(B!=null)for(ue in B.key!==void 0&&(I=""+B.key),B)!we.call(B,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&B.ref===void 0||(G[ue]=B[ue]);var ue=arguments.length-2;if(ue===1)G.children=Y;else if(1<ue){for(var Te=Array(ue),ot=0;ot<ue;ot++)Te[ot]=arguments[ot+2];G.children=Te}return Be(S.type,I,G)},se.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},se.createElement=function(S,B,Y){var G,I={},ue=null;if(B!=null)for(G in B.key!==void 0&&(ue=""+B.key),B)we.call(B,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(I[G]=B[G]);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(G in Te=S.defaultProps,Te)I[G]===void 0&&(I[G]=Te[G]);return Be(S,ue,I)},se.createRef=function(){return{current:null}},se.forwardRef=function(S){return{$$typeof:g,render:S}},se.isValidElement=$e,se.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:ae}},se.memo=function(S,B){return{$$typeof:y,type:S,compare:B===void 0?null:B}},se.startTransition=function(S){var B=J.T,Y={};J.T=Y;try{var G=S(),I=J.S;I!==null&&I(Y,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(ye,Re)}catch(ue){Re(ue)}finally{B!==null&&Y.types!==null&&(B.types=Y.types),J.T=B}},se.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},se.use=function(S){return J.H.use(S)},se.useActionState=function(S,B,Y){return J.H.useActionState(S,B,Y)},se.useCallback=function(S,B){return J.H.useCallback(S,B)},se.useContext=function(S){return J.H.useContext(S)},se.useDebugValue=function(){},se.useDeferredValue=function(S,B){return J.H.useDeferredValue(S,B)},se.useEffect=function(S,B){return J.H.useEffect(S,B)},se.useEffectEvent=function(S){return J.H.useEffectEvent(S)},se.useId=function(){return J.H.useId()},se.useImperativeHandle=function(S,B,Y){return J.H.useImperativeHandle(S,B,Y)},se.useInsertionEffect=function(S,B){return J.H.useInsertionEffect(S,B)},se.useLayoutEffect=function(S,B){return J.H.useLayoutEffect(S,B)},se.useMemo=function(S,B){return J.H.useMemo(S,B)},se.useOptimistic=function(S,B){return J.H.useOptimistic(S,B)},se.useReducer=function(S,B,Y){return J.H.useReducer(S,B,Y)},se.useRef=function(S){return J.H.useRef(S)},se.useState=function(S){return J.H.useState(S)},se.useSyncExternalStore=function(S,B,Y){return J.H.useSyncExternalStore(S,B,Y)},se.useTransition=function(){return J.H.useTransition()},se.version="19.2.4",se}var xp;function Is(){return xp||(xp=1,zs.exports=Tg()),zs.exports}var A=Is();const Wr=um(A);var Cs={exports:{}},ni={},_s={exports:{}},ws={};var bp;function zg(){return bp||(bp=1,(function(i){function o(D,Q){var ae=D.length;D.push(Q);e:for(;0<ae;){var Re=ae-1>>>1,K=D[Re];if(0<f(K,Q))D[Re]=Q,D[ae]=K,ae=Re;else break e}}function s(D){return D.length===0?null:D[0]}function u(D){if(D.length===0)return null;var Q=D[0],ae=D.pop();if(ae!==Q){D[0]=ae;e:for(var Re=0,K=D.length,S=K>>>1;Re<S;){var B=2*(Re+1)-1,Y=D[B],G=B+1,I=D[G];if(0>f(Y,ae))G<K&&0>f(I,Y)?(D[Re]=I,D[G]=ae,Re=G):(D[Re]=Y,D[B]=ae,Re=B);else if(G<K&&0>f(I,ae))D[Re]=I,D[G]=ae,Re=G;else break e}}return Q}function f(D,Q){var ae=D.sortIndex-Q.sortIndex;return ae!==0?ae:D.id-Q.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 x=[],y=[],b=1,v=null,M=3,k=!1,T=!1,w=!1,z=!1,X=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function le(D){for(var Q=s(y);Q!==null;){if(Q.callback===null)u(y);else if(Q.startTime<=D)u(y),Q.sortIndex=Q.expirationTime,o(x,Q);else break;Q=s(y)}}function ce(D){if(w=!1,le(D),!T)if(s(x)!==null)T=!0,ye||(ye=!0,Z());else{var Q=s(y);Q!==null&&Oe(ce,Q.startTime-D)}}var ye=!1,J=-1,we=5,Be=-1;function rt(){return z?!0:!(i.unstable_now()-Be<we)}function $e(){if(z=!1,ye){var D=i.unstable_now();Be=D;var Q=!0;try{e:{T=!1,w&&(w=!1,P(J),J=-1),k=!0;var ae=M;try{t:{for(le(D),v=s(x);v!==null&&!(v.expirationTime>D&&rt());){var Re=v.callback;if(typeof Re=="function"){v.callback=null,M=v.priorityLevel;var K=Re(v.expirationTime<=D);if(D=i.unstable_now(),typeof K=="function"){v.callback=K,le(D),Q=!0;break t}v===s(x)&&u(x),le(D)}else u(x);v=s(x)}if(v!==null)Q=!0;else{var S=s(y);S!==null&&Oe(ce,S.startTime-D),Q=!1}}break e}finally{v=null,M=ae,k=!1}Q=void 0}}finally{Q?Z():ye=!1}}}var Z;if(typeof V=="function")Z=function(){V($e)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,xe=de.port2;de.port1.onmessage=$e,Z=function(){xe.postMessage(null)}}else Z=function(){X($e,0)};function Oe(D,Q){J=X(function(){D(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(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"):we=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 Q=3;break;default:Q=M}var ae=M;M=Q;try{return D()}finally{M=ae}},i.unstable_requestPaint=function(){z=!0},i.unstable_runWithPriority=function(D,Q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ae=M;M=D;try{return Q()}finally{M=ae}},i.unstable_scheduleCallback=function(D,Q,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 K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ae+K,D={id:b++,callback:Q,priorityLevel:D,startTime:ae,expirationTime:K,sortIndex:-1},ae>Re?(D.sortIndex=ae,o(y,D),s(x)===null&&D===s(y)&&(w?(P(J),J=-1):w=!0,Oe(ce,ae-Re))):(D.sortIndex=K,o(x,D),T||k||(T=!0,ye||(ye=!0,Z()))),D},i.unstable_shouldYield=rt,i.unstable_wrapCallback=function(D){var Q=M;return function(){var ae=M;M=Q;try{return D.apply(this,arguments)}finally{M=ae}}}})(ws)),ws}var Sp;function Cg(){return Sp||(Sp=1,_s.exports=zg()),_s.exports}var Os={exports:{}},ht={};var Ep;function _g(){if(Ep)return ht;Ep=1;var i=Is();function o(x){var y="https://react.dev/errors/"+x;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 #"+x+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var u={d:{f:s,r:function(){throw Error(o(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(x,y,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:v==null?null:""+v,children:x,containerInfo:y,implementation:b}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(x,y){if(x==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,ht.createPortal=function(x,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(x,y,null,b)},ht.flushSync=function(x){var y=p.T,b=u.p;try{if(p.T=null,u.p=2,x)return x()}finally{p.T=y,u.p=b,u.d.f()}},ht.preconnect=function(x,y){typeof x=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,u.d.C(x,y))},ht.prefetchDNS=function(x){typeof x=="string"&&u.d.D(x)},ht.preinit=function(x,y){if(typeof x=="string"&&y&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin),M=typeof y.integrity=="string"?y.integrity:void 0,k=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?u.d.S(x,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:v,integrity:M,fetchPriority:k}):b==="script"&&u.d.X(x,{crossOrigin:v,integrity:M,fetchPriority:k,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ht.preinitModule=function(x,y){if(typeof x=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=g(y.as,y.crossOrigin);u.d.M(x,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&u.d.M(x)},ht.preload=function(x,y){if(typeof x=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin);u.d.L(x,b,{crossOrigin:v,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(x,y){if(typeof x=="string")if(y){var b=g(y.as,y.crossOrigin);u.d.m(x,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else u.d.m(x)},ht.requestFormReset=function(x){u.d.r(x)},ht.unstable_batchedUpdates=function(x,y){return x(y)},ht.useFormState=function(x,y,b){return p.H.useFormState(x,y,b)},ht.useFormStatus=function(){return p.H.useHostTransitionStatus()},ht.version="19.2.4",ht}var jp;function wg(){if(jp)return Os.exports;jp=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(),Os.exports=_g(),Os.exports}var Ap;function Og(){if(Ap)return ni;Ap=1;var i=Cg(),o=Is(),s=wg();function u(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 x(e){if(h(e)!==e)throw Error(u(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(u(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 x(l),e;if(r===n)return x(l),t;r=r.sibling}throw Error(u(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(u(189))}}if(a.alternate!==n)throw Error(u(190))}if(a.tag!==3)throw Error(u(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 v=Object.assign,M=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),V=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),rt=Symbol.for("react.memo_cache_sentinel"),$e=Symbol.iterator;function Z(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 xe(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 w:return"Fragment";case X:return"Profiler";case z: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 V:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:xe(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}var Oe=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Re=[],K=-1;function S(e){return{current:e}}function B(e){0>K||(e.current=Re[K],Re[K]=null,K--)}function Y(e,t){K++,Re[K]=e.current,e.current=t}var G=S(null),I=S(null),ue=S(null),Te=S(null);function ot(e,t){switch(Y(ue,t),Y(I,e),Y(G,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(G),Y(G,e)}function Ke(){B(G),B(I),B(ue)}function sl(e){e.memoizedState!==null&&Y(Te,e);var t=G.current,a=qh(t,e.type);t!==a&&(Y(I,e),Y(G,a))}function gi(e){I.current===e&&(B(G),B(I)),Te.current===e&&(B(Te),Il._currentValue=ae)}var oo,pc;function Wa(e){if(oo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);oo=t&&t[1]||"",pc=-1<a.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+oo+e+pc}var uo=!1;function so(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(H){var O=H}Reflect.construct(e,[],q)}else{try{q.call()}catch(H){O=H}e.call(q.prototype)}}else{try{throw Error()}catch(H){O=H}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(H){if(H&&O&&typeof H.stack=="string")return[H.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 E=d.split(`
4
- `),_=m.split(`
5
- `);for(l=n=0;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;for(;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;if(n===E.length||l===_.length)for(n=E.length-1,l=_.length-1;1<=n&&0<=l&&E[n]!==_[l];)l--;for(;1<=n&&0<=l;n--,l--)if(E[n]!==_[l]){if(n!==1||l!==1)do if(n--,l--,0>l||E[n]!==_[l]){var U=`
6
- `+E[n].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=n&&0<=l);break}}}finally{uo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wa(a):""}function t0(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 so(e.type,!1);case 11:return so(e.type.render,!1);case 1:return so(e.type,!0);case 31:return Wa("Activity");default:return""}}function mc(e){try{var t="",a=null;do t+=t0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
7
- Error generating stack: `+n.message+`
8
- `+n.stack}}var co=Object.prototype.hasOwnProperty,fo=i.unstable_scheduleCallback,ho=i.unstable_cancelCallback,a0=i.unstable_shouldYield,n0=i.unstable_requestPaint,Rt=i.unstable_now,l0=i.unstable_getCurrentPriorityLevel,yc=i.unstable_ImmediatePriority,gc=i.unstable_UserBlockingPriority,vi=i.unstable_NormalPriority,i0=i.unstable_LowPriority,vc=i.unstable_IdlePriority,r0=i.log,o0=i.unstable_setDisableYieldValue,cl=null,Tt=null;function Ra(e){if(typeof r0=="function"&&o0(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(cl,e)}catch{}}var zt=Math.clz32?Math.clz32:c0,u0=Math.log,s0=Math.LN2;function c0(e){return e>>>=0,e===0?32:31-(u0(e)/s0|0)|0}var xi=256,bi=262144,Si=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 Ei(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 fl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function f0(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 xc(){var e=Si;return Si<<=1,(Si&62914560)===0&&(Si=4194304),e}function po(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function dl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function d0(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,E=e.expirationTimes,_=e.hiddenUpdates;for(a=d&~a;0<a;){var U=31-zt(a),q=1<<U;m[U]=0,E[U]=-1;var O=_[U];if(O!==null)for(_[U]=null,U=0;U<O.length;U++){var H=O[U];H!==null&&(H.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-zt(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-zt(a),l=1<<n;l&t|e[n]&t&&(e[n]|=t),a&=~l}}function Ec(e,t){var a=t&-t;return a=(a&42)!==0?1:mo(a),(a&(e.suspendedLanes|t))!==0?0:a}function mo(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 yo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:sp(e.type))}function Ac(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var Ta=Math.random().toString(36).slice(2),ut="__reactFiber$"+Ta,yt="__reactProps$"+Ta,bn="__reactContainer$"+Ta,go="__reactEvents$"+Ta,h0="__reactListeners$"+Ta,p0="__reactHandles$"+Ta,Rc="__reactResources$"+Ta,hl="__reactMarker$"+Ta;function vo(e){delete e[ut],delete e[yt],delete e[go],delete e[h0],delete e[p0]}function Sn(e){var t=e[ut];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bn]||a[ut]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Kh(e);e!==null;){if(a=e[ut])return a;e=Kh(e)}return t}e=a,a=e.parentNode}return null}function En(e){if(e=e[ut]||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 pl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function jn(e){var t=e[Rc];return t||(t=e[Rc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[hl]=!0}var Tc=new Set,zc={};function Ia(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(zc[e]=t,e=0;e<t.length;e++)Tc.add(t[e])}var m0=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]*$"),Cc={},_c={};function y0(e){return co.call(_c,e)?!0:co.call(Cc,e)?!1:m0.test(e)?_c[e]=!0:(Cc[e]=!0,!1)}function ji(e,t,a){if(y0(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 Ai(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 Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function g0(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 xo(e){if(!e._valueTracker){var t=wc(e)?"checked":"value";e._valueTracker=g0(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=wc(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Ri(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 Ut(e){return e.replace(v0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bo(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=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?So(e,d,Ht(t)):a!=null?So(e,d,Ht(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=""+Ht(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)){xo(e);return}a=a!=null?""+Ht(a):"",t=t!=null?""+Ht(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),xo(e)}function So(e,t,a){t==="number"&&Ri(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=""+Ht(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=""+Ht(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ht(a):""}function Bc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(u(92));if(Oe(n)){if(1<n.length)throw Error(u(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Ht(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),xo(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 x0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function 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||x0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Hc(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(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 b0=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"]]),S0=/^[\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 Ti(e){return S0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var jo=null;function Ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zn=null,Cn=null;function Uc(e){var t=En(e);if(t&&(e=t.stateNode)){var a=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(bo(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="'+Ut(""+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(u(90));bo(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 Ro=!1;function kc(e,t,a){if(Ro)return e(t,a);Ro=!0;try{var n=e(t);return n}finally{if(Ro=!1,(zn!==null||Cn!==null)&&(hr(),zn&&(t=zn,e=Cn,Cn=zn=null,Uc(t),e)))for(t=0;t<e.length;t++)Uc(e[t])}}function ml(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(u(231,t,typeof a));return a}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),To=!1;if(ua)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){To=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{To=!1}var za=null,zo=null,zi=null;function Lc(){if(zi)return zi;var e,t=zo,a=t.length,n,l="value"in za?za.value:za.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 zi=l.slice(e,1<n?1-n:void 0)}function Ci(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 _i(){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)?_i:qc,this.isPropagationStopped=qc,this}return v(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=_i)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=gt(Pa),gl=v({},Pa,{view:0,detail:0}),E0=gt(gl),Co,_o,vl,Oi=v({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oo,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"?(Co=e.screenX-vl.screenX,_o=e.screenY-vl.screenY):_o=Co=0,vl=e),Co)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),Yc=gt(Oi),j0=v({},Oi,{dataTransfer:0}),A0=gt(j0),R0=v({},gl,{relatedTarget:0}),wo=gt(R0),T0=v({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),z0=gt(T0),C0=v({},Pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_0=gt(C0),w0=v({},Pa,{data:0}),Gc=gt(w0),O0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},M0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M0[e])?!!t[e]:!1}function Oo(){return B0}var N0=v({},gl,{key:function(e){if(e.key){var t=O0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?D0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oo,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H0=gt(N0),U0=v({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vc=gt(U0),k0=v({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oo}),L0=gt(k0),q0=v({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y0=gt(q0),G0=v({},Oi,{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}),V0=gt(G0),X0=v({},Pa,{newState:0,oldState:0}),Q0=gt(X0),Z0=[9,13,27,32],Do=ua&&"CompositionEvent"in window,xl=null;ua&&"documentMode"in document&&(xl=document.documentMode);var K0=ua&&"TextEvent"in window&&!xl,Xc=ua&&(!Do||xl&&8<xl&&11>=xl),Qc=" ",Zc=!1;function Kc(e,t){switch(e){case"keyup":return Z0.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 _n=!1;function J0(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 F0(e,t){if(_n)return e==="compositionend"||!Do&&Kc(e,t)?(e=Lc(),zi=zo=za=null,_n=!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 W0={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"?!!W0[e.type]:t==="textarea"}function Wc(e,t,a,n){zn?Cn?Cn.push(n):Cn=[n]:zn=n,t=br(t,"onChange"),0<t.length&&(a=new wi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var bl=null,Sl=null;function $0(e){Mh(e,0)}function Di(e){var t=pl(e);if(Oc(t))return e}function $c(e,t){if(e==="change")return t}var Ic=!1;if(ua){var Mo;if(ua){var Bo="oninput"in document;if(!Bo){var Pc=document.createElement("div");Pc.setAttribute("oninput","return;"),Bo=typeof Pc.oninput=="function"}Mo=Bo}else Mo=!1;Ic=Mo&&(!document.documentMode||9<document.documentMode)}function ef(){bl&&(bl.detachEvent("onpropertychange",tf),Sl=bl=null)}function tf(e){if(e.propertyName==="value"&&Di(Sl)){var t=[];Wc(t,Sl,e,Ao(e)),kc($0,t)}}function I0(e,t,a){e==="focusin"?(ef(),bl=t,Sl=a,bl.attachEvent("onpropertychange",tf)):e==="focusout"&&ef()}function P0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Di(Sl)}function ey(e,t){if(e==="click")return Di(t)}function ty(e,t){if(e==="input"||e==="change")return Di(t)}function ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:ay;function El(e,t){if(Ct(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(!co.call(t,l)||!Ct(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=Ri(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=Ri(e.document)}return t}function No(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 ny=ua&&"documentMode"in document&&11>=document.documentMode,wn=null,Ho=null,jl=null,Uo=!1;function of(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Uo||wn==null||wn!==Ri(n)||(n=wn,"selectionStart"in n&&No(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}),jl&&El(jl,n)||(jl=n,n=br(Ho,"onSelect"),0<n.length&&(t=new wi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=wn)))}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")},ko={},uf={};ua&&(uf=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(ko[e])return ko[e];if(!On[e])return e;var t=On[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in uf)return ko[e]=t[a];return e}var sf=tn("animationend"),cf=tn("animationiteration"),ff=tn("animationstart"),ly=tn("transitionrun"),iy=tn("transitionstart"),ry=tn("transitioncancel"),df=tn("transitionend"),hf=new Map,Lo="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(" ");Lo.push("scrollEnd");function Kt(e,t){hf.set(e,t),Ia(t,[e])}var Mi=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)},kt=[],Dn=0,qo=0;function Bi(){for(var e=Dn,t=qo=Dn=0;t<e;){var a=kt[t];kt[t++]=null;var n=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var r=kt[t];if(kt[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 Ni(e,t,a,n){kt[Dn++]=e,kt[Dn++]=t,kt[Dn++]=a,kt[Dn++]=n,qo|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Yo(e,t,a,n){return Ni(e,t,a,n),Hi(e)}function an(e,t){return Ni(e,null,null,t),Hi(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-zt(a),e=r.hiddenUpdates,n=e[l],n===null?e[l]=[t]:n.push(t),t.lane=a|536870912),r):null}function Hi(e){if(50<Ql)throw Ql=0,Wu=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Mn={};function oy(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 _t(e,t,a,n){return new oy(e,t,a,n)}function Go(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var a=e.alternate;return a===null?(a=_t(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 Ui(e,t,a,n,l,r){var d=0;if(n=e,typeof e=="function")Go(e)&&(d=1);else if(typeof e=="string")d=dg(e,a,G.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Be:return e=_t(31,a,t,l),e.elementType=Be,e.lanes=r,e;case w:return nn(a.children,l,r,t);case z:d=8,l|=24;break;case X:return e=_t(12,a,t,l|2),e.elementType=X,e.lanes=r,e;case ce:return e=_t(13,a,t,l),e.elementType=ce,e.lanes=r,e;case ye:return e=_t(19,a,t,l),e.elementType=ye,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:d=10;break e;case P:d=9;break e;case le:d=11;break e;case J:d=14;break e;case we:d=16,n=null;break e}d=29,a=Error(u(130,e===null?"null":typeof e,"")),n=null}return t=_t(d,a,t,l),t.elementType=e,t.type=n,t.lanes=r,t}function nn(e,t,a,n){return e=_t(7,e,n,t),e.lanes=a,e}function Vo(e,t,a){return e=_t(6,e,null,t),e.lanes=a,e}function yf(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Xo(e,t,a){return t=_t(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,ki=null,Al=0,qt=[],Yt=0,Ca=null,Pt=1,ea="";function ca(e,t){Bn[Nn++]=Al,Bn[Nn++]=ki,ki=e,Al=t}function vf(e,t,a){qt[Yt++]=Pt,qt[Yt++]=ea,qt[Yt++]=Ca,Ca=e;var n=Pt;e=ea;var l=32-zt(n)-1;n&=~(1<<l),a+=1;var r=32-zt(t)+l;if(30<r){var d=l-l%5;r=(n&(1<<d)-1).toString(32),n>>=d,l-=d,Pt=1<<32-zt(t)+l|a<<l|n,ea=r+e}else Pt=1<<r|a<<l|n,ea=e}function Qo(e){e.return!==null&&(ca(e,1),vf(e,1,0))}function Zo(e){for(;e===ki;)ki=Bn[--Nn],Bn[Nn]=null,Al=Bn[--Nn],Bn[Nn]=null;for(;e===Ca;)Ca=qt[--Yt],qt[Yt]=null,ea=qt[--Yt],qt[Yt]=null,Pt=qt[--Yt],qt[Yt]=null}function xf(e,t){qt[Yt++]=Pt,qt[Yt++]=ea,qt[Yt++]=Ca,Pt=t.id,ea=t.overflow,Ca=e}var st=null,Ye=null,Ae=!1,_a=null,Gt=!1,Ko=Error(u(519));function wa(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rl(Lt(t,e)),Ko}function bf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ut]=e,t[yt]=n,a){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(a=0;a<Kl.length;a++)ve(Kl[a],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),Dc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("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||Uh(t.textContent,a)?(n.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),n.onScroll!=null&&ve("scroll",t),n.onScrollEnd!=null&&ve("scrollend",t),n.onClick!=null&&(t.onclick=oa),t=!0):t=!1,t||wa(e,!0)}function Sf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:st=st.return}}function Hn(e){if(e!==st)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")||fs(e.type,e.memoizedProps)),a=!a),a&&Ye&&wa(e),Sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ye=Zh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ye=Zh(e)}else t===27?(t=Ye,Xa(e.type)?(e=ys,ys=null,Ye=e):Ye=t):Ye=st?Xt(e.stateNode.nextSibling):null;return!0}function ln(){Ye=st=null,Ae=!1}function Jo(){var e=_a;return e!==null&&(St===null?St=e:St.push.apply(St,e),_a=null),e}function Rl(e){_a===null?_a=[e]:_a.push(e)}var Fo=S(null),rn=null,fa=null;function Oa(e,t,a){Y(Fo,t._currentValue),t._currentValue=a}function da(e){e._currentValue=Fo.current,B(Fo)}function Wo(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 $o(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 E=0;E<t.length;E++)if(m.context===t[E]){r.lanes|=a,m=r.alternate,m!==null&&(m.lanes|=a),Wo(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(u(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),Wo(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 Un(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(u(387));if(d=d.memoizedProps,d!==null){var m=l.type;Ct(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(u(387));d.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Il):e=[Il])}l=l.return}e!==null&&$o(t,e,a,n),t.flags|=262144}function Li(e){for(e=e.firstContext;e!==null;){if(!Ct(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 Ef(rn,e)}function qi(e,t){return rn===null&&on(e),Ef(e,t)}function Ef(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},fa===null){if(e===null)throw Error(u(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()})}},sy=i.unstable_scheduleCallback,cy=i.unstable_NormalPriority,Ie={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new uy,data:new Map,refCount:0}}function Tl(e){e.refCount--,e.refCount===0&&sy(cy,function(){e.controller.abort()})}var zl=null,Po=0,kn=0,Ln=null;function fy(e,t){if(zl===null){var a=zl=[];Po=0,kn=as(),Ln={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Po++,t.then(jf,jf),t}function jf(){if(--Po===0&&zl!==null){Ln!==null&&(Ln.status="fulfilled");var e=zl;zl=null,kn=0,Ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dy(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"&&fy(e,t),Af!==null&&Af(e,t)};var un=S(null);function eu(){var e=un.current;return e!==null?e:Le.pooledCache}function Yi(e,t){t===null?Y(un,un.current):Y(un,t.pool)}function Rf(){var e=eu();return e===null?null:{parent:Ie._currentValue,pool:e}}var qn=Error(u(460)),tu=Error(u(474)),Gi=Error(u(542)),Vi={then:function(){}};function Tf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zf(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,_f(e),e;default:if(typeof t.status=="string")t.then(oa,oa);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(u(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,_f(e),e}throw cn=t,qn}}function sn(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 Cf(){if(cn===null)throw Error(u(459));var e=cn;return cn=null,e}function _f(e){if(e===qn||e===Gi)throw Error(u(483))}var Yn=null,Cl=0;function Xi(e){var t=Cl;return Cl+=1,Yn===null&&(Yn=[]),zf(Yn,e,t)}function _l(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Qi(e,t){throw t.$$typeof===M?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wf(e){function t(R,j){if(e){var C=R.deletions;C===null?(R.deletions=[j],R.flags|=16):C.push(j)}}function a(R,j){if(!e)return null;for(;j!==null;)t(R,j),j=j.sibling;return null}function n(R){for(var j=new Map;R!==null;)R.key!==null?j.set(R.key,R):j.set(R.index,R),R=R.sibling;return j}function l(R,j){return R=sa(R,j),R.index=0,R.sibling=null,R}function r(R,j,C){return R.index=C,e?(C=R.alternate,C!==null?(C=C.index,C<j?(R.flags|=67108866,j):C):(R.flags|=67108866,j)):(R.flags|=1048576,j)}function d(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function m(R,j,C,L){return j===null||j.tag!==6?(j=Vo(C,R.mode,L),j.return=R,j):(j=l(j,C),j.return=R,j)}function E(R,j,C,L){var ne=C.type;return ne===w?U(R,j,C.props.children,L,C.key):j!==null&&(j.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&sn(ne)===j.type)?(j=l(j,C.props),_l(j,C),j.return=R,j):(j=Ui(C.type,C.key,C.props,null,R.mode,L),_l(j,C),j.return=R,j)}function _(R,j,C,L){return j===null||j.tag!==4||j.stateNode.containerInfo!==C.containerInfo||j.stateNode.implementation!==C.implementation?(j=Xo(C,R.mode,L),j.return=R,j):(j=l(j,C.children||[]),j.return=R,j)}function U(R,j,C,L,ne){return j===null||j.tag!==7?(j=nn(C,R.mode,L,ne),j.return=R,j):(j=l(j,C),j.return=R,j)}function q(R,j,C){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Vo(""+j,R.mode,C),j.return=R,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case k:return C=Ui(j.type,j.key,j.props,null,R.mode,C),_l(C,j),C.return=R,C;case T:return j=Xo(j,R.mode,C),j.return=R,j;case we:return j=sn(j),q(R,j,C)}if(Oe(j)||Z(j))return j=nn(j,R.mode,C,null),j.return=R,j;if(typeof j.then=="function")return q(R,Xi(j),C);if(j.$$typeof===V)return q(R,qi(R,j),C);Qi(R,j)}return null}function O(R,j,C,L){var ne=j!==null?j.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ne!==null?null:m(R,j,""+C,L);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return C.key===ne?E(R,j,C,L):null;case T:return C.key===ne?_(R,j,C,L):null;case we:return C=sn(C),O(R,j,C,L)}if(Oe(C)||Z(C))return ne!==null?null:U(R,j,C,L,null);if(typeof C.then=="function")return O(R,j,Xi(C),L);if(C.$$typeof===V)return O(R,j,qi(R,C),L);Qi(R,C)}return null}function H(R,j,C,L,ne){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return R=R.get(C)||null,m(j,R,""+L,ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case k:return R=R.get(L.key===null?C:L.key)||null,E(j,R,L,ne);case T:return R=R.get(L.key===null?C:L.key)||null,_(j,R,L,ne);case we:return L=sn(L),H(R,j,C,L,ne)}if(Oe(L)||Z(L))return R=R.get(C)||null,U(j,R,L,ne,null);if(typeof L.then=="function")return H(R,j,C,Xi(L),ne);if(L.$$typeof===V)return H(R,j,C,qi(j,L),ne);Qi(j,L)}return null}function W(R,j,C,L){for(var ne=null,ze=null,te=j,he=j=0,Se=null;te!==null&&he<C.length;he++){te.index>he?(Se=te,te=null):Se=te.sibling;var Ce=O(R,te,C[he],L);if(Ce===null){te===null&&(te=Se);break}e&&te&&Ce.alternate===null&&t(R,te),j=r(Ce,j,he),ze===null?ne=Ce:ze.sibling=Ce,ze=Ce,te=Se}if(he===C.length)return a(R,te),Ae&&ca(R,he),ne;if(te===null){for(;he<C.length;he++)te=q(R,C[he],L),te!==null&&(j=r(te,j,he),ze===null?ne=te:ze.sibling=te,ze=te);return Ae&&ca(R,he),ne}for(te=n(te);he<C.length;he++)Se=H(te,R,he,C[he],L),Se!==null&&(e&&Se.alternate!==null&&te.delete(Se.key===null?he:Se.key),j=r(Se,j,he),ze===null?ne=Se:ze.sibling=Se,ze=Se);return e&&te.forEach(function(Fa){return t(R,Fa)}),Ae&&ca(R,he),ne}function ie(R,j,C,L){if(C==null)throw Error(u(151));for(var ne=null,ze=null,te=j,he=j=0,Se=null,Ce=C.next();te!==null&&!Ce.done;he++,Ce=C.next()){te.index>he?(Se=te,te=null):Se=te.sibling;var Fa=O(R,te,Ce.value,L);if(Fa===null){te===null&&(te=Se);break}e&&te&&Fa.alternate===null&&t(R,te),j=r(Fa,j,he),ze===null?ne=Fa:ze.sibling=Fa,ze=Fa,te=Se}if(Ce.done)return a(R,te),Ae&&ca(R,he),ne;if(te===null){for(;!Ce.done;he++,Ce=C.next())Ce=q(R,Ce.value,L),Ce!==null&&(j=r(Ce,j,he),ze===null?ne=Ce:ze.sibling=Ce,ze=Ce);return Ae&&ca(R,he),ne}for(te=n(te);!Ce.done;he++,Ce=C.next())Ce=H(te,R,he,Ce.value,L),Ce!==null&&(e&&Ce.alternate!==null&&te.delete(Ce.key===null?he:Ce.key),j=r(Ce,j,he),ze===null?ne=Ce:ze.sibling=Ce,ze=Ce);return e&&te.forEach(function(jg){return t(R,jg)}),Ae&&ca(R,he),ne}function Ue(R,j,C,L){if(typeof C=="object"&&C!==null&&C.type===w&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case k:e:{for(var ne=C.key;j!==null;){if(j.key===ne){if(ne=C.type,ne===w){if(j.tag===7){a(R,j.sibling),L=l(j,C.props.children),L.return=R,R=L;break e}}else if(j.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&sn(ne)===j.type){a(R,j.sibling),L=l(j,C.props),_l(L,C),L.return=R,R=L;break e}a(R,j);break}else t(R,j);j=j.sibling}C.type===w?(L=nn(C.props.children,R.mode,L,C.key),L.return=R,R=L):(L=Ui(C.type,C.key,C.props,null,R.mode,L),_l(L,C),L.return=R,R=L)}return d(R);case T:e:{for(ne=C.key;j!==null;){if(j.key===ne)if(j.tag===4&&j.stateNode.containerInfo===C.containerInfo&&j.stateNode.implementation===C.implementation){a(R,j.sibling),L=l(j,C.children||[]),L.return=R,R=L;break e}else{a(R,j);break}else t(R,j);j=j.sibling}L=Xo(C,R.mode,L),L.return=R,R=L}return d(R);case we:return C=sn(C),Ue(R,j,C,L)}if(Oe(C))return W(R,j,C,L);if(Z(C)){if(ne=Z(C),typeof ne!="function")throw Error(u(150));return C=ne.call(C),ie(R,j,C,L)}if(typeof C.then=="function")return Ue(R,j,Xi(C),L);if(C.$$typeof===V)return Ue(R,j,qi(R,C),L);Qi(R,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,j!==null&&j.tag===6?(a(R,j.sibling),L=l(j,C),L.return=R,R=L):(a(R,j),L=Vo(C,R.mode,L),L.return=R,R=L),d(R)):a(R,j)}return function(R,j,C,L){try{Cl=0;var ne=Ue(R,j,C,L);return Yn=null,ne}catch(te){if(te===qn||te===Gi)throw te;var ze=_t(29,te,null,R.mode);return ze.lanes=L,ze.return=R,ze}}}var fn=wf(!0),Of=wf(!1),Da=!1;function au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nu(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,(_e&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,t=Hi(e),pf(e,null,a),t}return Ni(e,n,t,a),Hi(e)}function wl(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 lu(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 iu=!1;function Ol(){if(iu){var e=Ln;if(e!==null)throw e}}function Dl(e,t,a,n){iu=!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 E=m,_=E.next;E.next=null,d===null?r=_:d.next=_,d=E;var U=e.alternate;U!==null&&(U=U.updateQueue,m=U.lastBaseUpdate,m!==d&&(m===null?U.firstBaseUpdate=_:m.next=_,U.lastBaseUpdate=E))}if(r!==null){var q=l.baseState;d=0,U=_=E=null,m=r;do{var O=m.lane&-536870913,H=O!==m.lane;if(H?(be&O)===O:(n&O)===O){O!==0&&O===kn&&(iu=!0),U!==null&&(U=U.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var W=e,ie=m;O=t;var Ue=a;switch(ie.tag){case 1:if(W=ie.payload,typeof W=="function"){q=W.call(Ue,q,O);break e}q=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ie.payload,O=typeof W=="function"?W.call(Ue,q,O):W,O==null)break e;q=v({},q,O);break e;case 2:Da=!0}}O=m.callback,O!==null&&(e.flags|=64,H&&(e.flags|=8192),H=l.callbacks,H===null?l.callbacks=[O]:H.push(O))}else H={lane:O,tag:m.tag,payload:m.payload,callback:m.callback,next:null},U===null?(_=U=H,E=q):U=U.next=H,d|=O;if(m=m.next,m===null){if(m=l.shared.pending,m===null)break;H=m,m=H.next,H.next=null,l.lastBaseUpdate=H,l.shared.pending=null}}while(!0);U===null&&(E=q),l.baseState=E,l.firstBaseUpdate=_,l.lastBaseUpdate=U,r===null&&(l.shared.lanes=0),La|=d,e.lanes=d,e.memoizedState=q}}function Df(e,t){if(typeof e!="function")throw Error(u(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 Gn=S(null),Zi=S(0);function Bf(e,t){e=Sa,Y(Zi,e),Y(Gn,t),Sa=e|t.baseLanes}function ru(){Y(Zi,Sa),Y(Gn,Gn.current)}function ou(){Sa=Zi.current,B(Gn),B(Zi)}var wt=S(null),Vt=null;function Na(e){var t=e.alternate;Y(Je,Je.current&1),Y(wt,e),Vt===null&&(t===null||Gn.current!==null||t.memoizedState!==null)&&(Vt=e)}function uu(e){Y(Je,Je.current),Y(wt,e),Vt===null&&(Vt=e)}function Nf(e){e.tag===22?(Y(Je,Je.current),Y(wt,e),Vt===null&&(Vt=e)):Ha()}function Ha(){Y(Je,Je.current),Y(wt,wt.current)}function Ot(e){B(wt),Vt===e&&(Vt=null),B(Je)}var Je=S(0);function Ki(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ps(a)||ms(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,Ji=!1,Vn=!1,dn=!1,Fi=0,Ml=0,Xn=null,hy=0;function Qe(){throw Error(u(321))}function su(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function cu(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?vd:Ru,dn=!1,r=a(n,l),dn=!1,Vn&&(r=Uf(t,a,n,l)),Hf(e),r}function Hf(e){D.H=Hl;var t=Ne!==null&&Ne.next!==null;if(ha=0,Pe=Ne=fe=null,Ji=!1,Ml=0,Xn=null,t)throw Error(u(300));e===null||et||(e=e.dependencies,e!==null&&Li(e)&&(et=!0))}function Uf(e,t,a,n){fe=e;var l=0;do{if(Vn&&(Xn=null),Ml=0,Vn=!1,25<=l)throw Error(u(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=xd,r=t(a,n)}while(Vn);return r}function py(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Bl(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(fe.flags|=1024),t}function fu(){var e=Fi!==0;return Fi=0,e}function du(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function hu(e){if(Ji){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ji=!1}ha=0,Pe=Ne=fe=null,Vn=!1,Ml=Fi=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(u(467)):Error(u(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 Wi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bl(e){var t=Ml;return Ml+=1,Xn===null&&(Xn=[]),e=zf(Xn,e,t),t=fe,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?vd:Ru),e}function $i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bl(e);if(e.$$typeof===V)return ct(e)}throw Error(u(438,String(e)))}function pu(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=Wi(),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 Ii(e){var t=Fe();return mu(t,Ne,e)}function mu(e,t,a){var n=e.queue;if(n===null)throw Error(u(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,E=null,_=t,U=!1;do{var q=_.lane&-536870913;if(q!==_.lane?(be&q)===q:(ha&q)===q){var O=_.revertLane;if(O===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),q===kn&&(U=!0);else if((ha&O)===O){_=_.next,O===kn&&(U=!0);continue}else q={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},E===null?(m=E=q,d=r):E=E.next=q,fe.lanes|=O,La|=O;q=_.action,dn&&a(r,q),r=_.hasEagerState?_.eagerState:a(r,q)}else O={lane:q,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},E===null?(m=E=O,d=r):E=E.next=O,fe.lanes|=q,La|=q;_=_.next}while(_!==null&&_!==t);if(E===null?d=r:E.next=m,!Ct(r,e.memoizedState)&&(et=!0,U&&(a=Ln,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=E,n.lastRenderedState=r}return l===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function yu(e){var t=Fe(),a=t.queue;if(a===null)throw Error(u(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);Ct(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function kf(e,t,a){var n=fe,l=Fe(),r=Ae;if(r){if(a===void 0)throw Error(u(407));a=a()}else a=t();var d=!Ct((Ne||l).memoizedState,a);if(d&&(l.memoizedState=a,et=!0),l=l.queue,xu(Yf.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(u(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=Wi(),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,Gf(t)&&Vf(e)}function Yf(e,t,a){return a(function(){Gf(t)&&Vf(e)})}function Gf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Vf(e){var t=an(e,2);t!==null&&Et(t,e,2)}function gu(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,mu(e,Ne,typeof n=="function"?n:pa)}function my(e,t,a,n,l){if(tr(e))throw Error(u(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),E=D.S;E!==null&&E(d,m),Zf(e,t,m)}catch(_){vu(e,t,_)}finally{r!==null&&d.types!==null&&(r.types=d.types),D.T=r}}else try{r=a(l,n),Zf(e,t,r)}catch(_){vu(e,t,_)}}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 vu(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 vu(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(Ye){t:{for(var l=Ye,r=Gt;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){Ye=Xt(l.nextSibling),n=l.data==="F!";break e}}wa(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=gu(!1),r=Au.bind(null,fe,!1,n.queue),n=mt(),l={state:t,dispatch:null,action:e,pending:null},n.queue=l,a=my.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=mu(e,t,Ff)[0],e=Ii(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Bl(t)}catch(d){throw d===qn?Gi: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},yy.bind(null,l,a),null)),[n,r,e]}function yy(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=Wi(),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 Pi(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 er(e,t,a,n){var l=Fe();n=n===void 0?null:n;var r=l.memoizedState.inst;Ne!==null&&n!==null&&su(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){Pi(8390656,8,e,t)}function xu(e,t){er(2048,8,e,t)}function gy(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=Wi(),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 gy({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function nd(e,t){return er(4,2,e,t)}function ld(e,t){return er(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,er(4,4,id.bind(null,t,e),a)}function bu(){}function od(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&su(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function ud(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&su(t,n[1]))return n[0];if(n=e(),dn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n}function Su(e,t,a){return a===void 0||(ha&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=sh(),fe.lanes|=e,La|=e,a)}function sd(e,t,a,n){return Ct(a,t)?a:Gn.current!==null?(e=Su(e,a,n),Ct(e,t)||(et=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(be&261930)===0?(et=!0,e.memoizedState=a):(e=sh(),fe.lanes|=e,La|=e,t)}function cd(e,t,a,n,l){var r=Q.p;Q.p=r!==0&&8>r?r:8;var d=D.T,m={};D.T=m,Au(e,!1,t,a);try{var E=l(),_=D.S;if(_!==null&&_(m,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var U=dy(E,n);Nl(e,t,U,Bt(e))}else Nl(e,t,n,Bt(e))}catch(q){Nl(e,t,{then:function(){},status:"rejected",reason:q},Bt())}finally{Q.p=r,d!==null&&m.types!==null&&(d.types=m.types),D.T=d}}function vy(){}function Eu(e,t,a,n){if(e.tag!==5)throw Error(u(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),Nl(e,t.next.queue,{},Bt())}function ju(){return ct(Il)}function hd(){return Fe().memoizedState}function pd(){return Fe().memoizedState}function xy(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&&(Et(n,t,a),wl(n,t,a)),t={cache:Io()},e.payload=t;return}t=t.return}}function by(e,t,a){var n=Bt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},tr(e)?yd(t,a):(a=Yo(e,t,a,n),a!==null&&(Et(a,e,n),gd(a,t,n)))}function md(e,t,a){var n=Bt();Nl(e,t,a,n)}function Nl(e,t,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(tr(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,Ct(m,d))return Ni(e,t,l,0),Le===null&&Bi(),!1}catch{}if(a=Yo(e,t,l,n),a!==null)return Et(a,e,n),gd(a,t,n),!0}return!1}function Au(e,t,a,n){if(n={lane:2,revertLane:as(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},tr(e)){if(t)throw Error(u(479))}else t=Yo(e,a,n,2),t!==null&&Et(t,e,2)}function tr(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function yd(e,t){Vn=Ji=!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:$i,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 vd={readContext:ct,use:$i,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,Pi(4194308,4,id.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){Pi(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=by.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=gu(e);var t=e.queue,a=md.bind(null,fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:bu,useDeferredValue:function(e,t){var a=mt();return Su(a,e,t)},useTransition:function(){var e=gu(!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(u(407));a=a()}else{if(a=t(),Le===null)throw Error(u(349));(be&127)!==0||Lf(n,t,a)}l.memoizedState=a;var r={value:a,getSnapshot:t};return l.queue=r,td(Yf.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-zt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Fi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=hy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ju,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=Au.bind(null,fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:pu,useCacheRefresh:function(){return mt().memoizedState=xy.bind(null,fe)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((_e&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},Ru={readContext:ct,use:$i,useCallback:od,useContext:ct,useEffect:xu,useImperativeHandle:rd,useInsertionEffect:nd,useLayoutEffect:ld,useMemo:ud,useReducer:Ii,useRef:ed,useState:function(){return Ii(pa)},useDebugValue:bu,useDeferredValue:function(e,t){var a=Fe();return sd(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Ii(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:kf,useId:hd,useHostTransitionStatus:ju,useFormState:$f,useActionState:$f,useOptimistic:function(e,t){var a=Fe();return Xf(a,Ne,e,t)},useMemoCache:pu,useCacheRefresh:pd};Ru.useEffectEvent=ad;var xd={readContext:ct,use:$i,useCallback:od,useContext:ct,useEffect:xu,useImperativeHandle:rd,useInsertionEffect:nd,useLayoutEffect:ld,useMemo:ud,useReducer:yu,useRef:ed,useState:function(){return yu(pa)},useDebugValue:bu,useDeferredValue:function(e,t){var a=Fe();return Ne===null?Su(a,e,t):sd(a,Ne.memoizedState,e,t)},useTransition:function(){var e=yu(pa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:kf,useId:hd,useHostTransitionStatus:ju,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:pu,useCacheRefresh:pd};xd.useEffectEvent=ad;function Tu(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var zu={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&&(Et(t,e,n),wl(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&&(Et(t,e,n),wl(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&&(Et(t,e,a),wl(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&&zu.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=v({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Ed(e){Mi(e)}function jd(e){console.error(e)}function Ad(e){Mi(e)}function ar(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 Cu(e,t,a){return a=Ma(a),a.tag=3,a.payload={element:null},a.callback=function(){ar(e,t)},a}function Td(e){return e=Ma(e),e.tag=3,e}function zd(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 Sy(e,t,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Un(t,a,l,!0),a=wt.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?pr():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Vi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Pu(e,n,l)),!1;case 22:return a.flags|=65536,n===Vi?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)),Pu(e,n,l)),!1}throw Error(u(435,a.tag))}return Pu(e,n,l),pr(),!1}if(Ae)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,n!==Ko&&(e=Error(u(422),{cause:n}),Rl(Lt(e,a)))):(n!==Ko&&(t=Error(u(423),{cause:n}),Rl(Lt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,n=Lt(n,a),l=Cu(e.stateNode,n,l),lu(e,l),Ze!==4&&(Ze=2)),!1;var r=Error(u(520),{cause:n});if(r=Lt(r,a),Xl===null?Xl=[r]:Xl.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=Cu(a.stateNode,n,e),lu(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),zd(l,e,a,n),lu(a,l),!1}a=a.return}while(a!==null);return!1}var _u=Error(u(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 Cd(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=cu(e,t,a,d,r,l),m=fu(),e!==null&&!et?(du(e,t,l),ma(e,t,l)):(Ae&&m&&Qo(t),t.flags|=1,ft(e,t,n,l),t.child)}function _d(e,t,a,n,l){if(e===null){var r=a.type;return typeof r=="function"&&!Go(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,wd(e,t,r,n,l)):(e=Ui(a.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Uu(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=sa(r,n),e.ref=t.ref,e.return=t,t.child=e}function wd(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,Uu(e,l))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,ma(e,t,l)}return wu(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&&Yi(t,r!==null?r.cachePool:null),r!==null?Bf(t,r):ru(),Nf(t);else return n=t.lanes=536870912,Dd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Yi(t,r.cachePool),Bf(t,r),Ha(),t.memoizedState=null):(e!==null&&Yi(t,null),ru(),Ha());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=eu();return r=r===null?null:{parent:Ie._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Yi(t,null),ru(),Nf(t),e!==null&&Un(e,t,n,!0),t.childLanes=l,null}function nr(e,t){return t=ir({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=nr(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=nr(t,n),t.lanes=536870912,Ul(null,e);if(uu(t),(e=Ye)?(e=Qh(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=yf(e),a.return=t,t.child=a,st=t,Ye=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return nr(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(uu(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(u(558));else if(et||Un(e,t,a,!1),l=(a&e.childLanes)!==0,et||l){if(n=Le,n!==null&&(d=Ec(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,an(e,d),Et(n,e,d),_u;pr(),t=Md(e,t,a)}else e=r.treeContext,Ye=Xt(d.nextSibling),st=t,Ae=!0,_a=null,Gt=!1,e!==null&&xf(t,e),t=nr(t,n),t.flags|=4096;return t}return e=sa(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function lr(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(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function wu(e,t,a,n,l){return on(t),a=cu(e,t,a,n,void 0,l),n=fu(),e!==null&&!et?(du(e,t,l),ma(e,t,l)):(Ae&&n&&Qo(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=Uf(t,n,a,l),Hf(e),n=fu(),e!==null&&!et?(du(e,t,r),ma(e,t,r)):(Ae&&n&&Qo(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=zu,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},au(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?ct(d):Mn,r.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Tu(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&&zu.enqueueReplaceState(r,r.state,null),Dl(t,n,r,l),Ol(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var m=t.memoizedProps,E=hn(a,m);r.props=E;var _=r.context,U=a.contextType;d=Mn,typeof U=="object"&&U!==null&&(d=ct(U));var q=a.getDerivedStateFromProps;U=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,U||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||_!==d)&&Sd(t,r,n,d),Da=!1;var O=t.memoizedState;r.state=O,Dl(t,n,r,l),Ol(),_=t.memoizedState,m||O!==_||Da?(typeof q=="function"&&(Tu(t,a,q,n),_=t.memoizedState),(E=Da||bd(t,a,E,n,O,_,d))?(U||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=_),r.props=n,r.state=_,r.context=d,n=E):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,nu(e,t),d=t.memoizedProps,U=hn(a,d),r.props=U,q=t.pendingProps,O=r.context,_=a.contextType,E=Mn,typeof _=="object"&&_!==null&&(E=ct(_)),m=a.getDerivedStateFromProps,(_=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==q||O!==E)&&Sd(t,r,n,E),Da=!1,O=t.memoizedState,r.state=O,Dl(t,n,r,l),Ol();var H=t.memoizedState;d!==q||O!==H||Da||e!==null&&e.dependencies!==null&&Li(e.dependencies)?(typeof m=="function"&&(Tu(t,a,m,n),H=t.memoizedState),(U=Da||bd(t,a,U,n,O,H,E)||e!==null&&e.dependencies!==null&&Li(e.dependencies))?(_||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,H,E),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,H,E)),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=H),r.props=n,r.state=H,r.context=E,n=U):(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,lr(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 Hd(e,t,a,n){return ln(),t.flags|=256,ft(e,t,a,n),t.child}var Ou={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Du(e){return{baseLanes:e,cachePool:Rf()}}function Mu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Mt),e}function Ud(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):Ha(),(e=Ye)?(e=Qh(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:Pt,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=yf(e),a.return=t,t.child=a,st=t,Ye=null)):e=null,e===null)throw wa(t);return ms(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,l?(Ha(),l=t.mode,m=ir({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=Du(a),n.childLanes=Mu(e,d,a),t.memoizedState=Ou,Ul(null,n)):(Na(t),Bu(t,m))}var E=e.memoizedState;if(E!==null&&(m=E.dehydrated,m!==null)){if(r)t.flags&256?(Na(t),t.flags&=-257,t=Nu(e,t,a)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),m=n.fallback,l=t.mode,n=ir({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=Du(a),n.childLanes=Mu(e,d,a),t.memoizedState=Ou,t=Ul(null,n));else if(Na(t),ms(m)){if(d=m.nextSibling&&m.nextSibling.dataset,d)var _=d.dgst;d=_,n=Error(u(419)),n.stack="",n.digest=d,Rl({value:n,source:null,stack:null}),t=Nu(e,t,a)}else if(et||Un(e,t,a,!1),d=(a&e.childLanes)!==0,et||d){if(d=Le,d!==null&&(n=Ec(d,a),n!==0&&n!==E.retryLane))throw E.retryLane=n,an(e,n),Et(d,e,n),_u;ps(m)||pr(),t=Nu(e,t,a)}else ps(m)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ye=Xt(m.nextSibling),st=t,Ae=!0,_a=null,Gt=!1,e!==null&&xf(t,e),t=Bu(t,n.children),t.flags|=4096);return t}return l?(Ha(),m=n.fallback,l=t.mode,E=e.child,_=E.sibling,n=sa(E,{mode:"hidden",children:n.children}),n.subtreeFlags=E.subtreeFlags&65011712,_!==null?m=sa(_,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=Du(a):(l=m.cachePool,l!==null?(E=Ie._currentValue,l=l.parent!==E?{parent:E,pool:E}:l):l=Rf(),m={baseLanes:m.baseLanes|a,cachePool:l}),n.memoizedState=m,n.childLanes=Mu(e,d,a),t.memoizedState=Ou,Ul(e.child,n)):(Na(t),a=e.child,e=a.sibling,a=sa(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 Bu(e,t){return t=ir({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ir(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function Nu(e,t,a){return fn(t,e.child,null,a),e=Bu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Wo(e.return,t,a)}function Hu(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?Al:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kd(e,a,t);else if(e.tag===19)kd(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&&Ki(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Hu(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&&Ki(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Hu(t,!0,a,null,r,n);break;case"together":Hu(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(Un(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=sa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=sa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Uu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Li(e)))}function jy(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:sl(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,uu(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?Ud(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||(Un(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(!Uu(e,a)&&(t.flags&128)===0)return et=!1,jy(e,t,a);et=(e.flags&131072)!==0}else et=!1,Ae&&(t.flags&1048576)!==0&&vf(t,Al,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=sn(t.elementType),t.type=e,typeof e=="function")Go(e)?(n=hn(e,n),t.tag=1,t=Nd(null,t,e,n,a)):(t.tag=0,t=wu(null,t,e,n,a));else{if(e!=null){var l=e.$$typeof;if(l===le){t.tag=11,t=Cd(null,t,e,n,a);break e}else if(l===J){t.tag=14,t=_d(null,t,e,n,a);break e}}throw t=xe(e)||e,Error(u(306,t,""))}}return t;case 0:return wu(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(u(387));n=t.pendingProps;var r=t.memoizedState;l=r.element,nu(e,t),Dl(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Oa(t,Ie,n),n!==r.cache&&$o(t,[Ie],a,!0),Ol(),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=Hd(e,t,n,a);break e}else if(n!==l){l=Lt(Error(u(424)),t),Rl(l),t=Hd(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,Ye=Xt(e.firstChild),st=t,Ae=!0,_a=null,Gt=!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 lr(e,t),e===null?(a=$h(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,n=Sr(ue.current).createElement(a),n[ut]=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 sl(t),e===null&&Ae&&(n=t.stateNode=Jh(t.type,t.pendingProps,ue.current),st=t,Gt=!0,l=Ye,Xa(t.type)?(ys=l,Ye=Xt(n.firstChild)):Ye=l),ft(e,t,t.pendingProps.children,a),lr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((l=n=Ye)&&(n=Py(n,t.type,t.pendingProps,Gt),n!==null?(t.stateNode=n,st=t,Ye=Xt(n.firstChild),Gt=!1,l=!0):l=!1),l||wa(t)),sl(t),l=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,fs(l,r)?n=null:d!==null&&fs(l,d)&&(t.flags|=32),t.memoizedState!==null&&(l=cu(e,t,py,null,null,a),Il._currentValue=l),lr(e,t),ft(e,t,n,a),t.child;case 6:return e===null&&Ae&&((e=a=Ye)&&(a=eg(a,t.pendingProps,Gt),a!==null?(t.stateNode=a,st=t,Ye=null,e=!0):e=!1),e||wa(t)),null;case 13:return Ud(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 Cd(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 _d(e,t,t.type,t.pendingProps,a);case 15:return wd(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=eu(),l===null&&(l=Le,r=Io(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=a),l=r),t.memoizedState={parent:n,cache:l},au(t),Oa(t,Ie,l)):((e.lanes&a)!==0&&(nu(e,t),Dl(t,null,null,a),Ol()),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&&$o(t,[Ie],a,!0))),ft(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ya(e){e.flags|=4}function ku(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=Vi,tu}else e.flags&=-16777217}function Yd(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=Vi,tu}function rr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?xc():536870912,e.lanes|=t,Fn|=t)}function kl(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 Ge(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 Ay(e,t,a){var n=t.pendingProps;switch(Zo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(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)&&(Hn(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jo())),Ge(t),null;case 26:var l=t.type,r=t.memoizedState;return e===null?(ya(t),r!==null?(Ge(t),Yd(t,r)):(Ge(t),ku(t,l,null,n,a))):r?r!==e.memoizedState?(ya(t),Ge(t),Yd(t,r)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ya(t),Ge(t),ku(t,l,e,n,a)),null;case 27:if(gi(t),a=ue.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return Ge(t),null}e=G.current,Hn(t)?bf(t):(e=Jh(l,n,a),t.stateNode=e,ya(t))}return Ge(t),null;case 5:if(gi(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ya(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return Ge(t),null}if(r=G.current,Hn(t))bf(t);else{var d=Sr(ue.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[ut]=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 Ge(t),ku(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(u(166));if(e=ue.current,Hn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,l=st,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}e[ut]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Uh(e.nodeValue,a)),e||wa(t,!0)}else e=Sr(e).createTextNode(n),e[ut]=t,t.stateNode=e}return Ge(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Hn(t),a!==null){if(e===null){if(!n)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ut]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else a=Jo(),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(u(558))}return Ge(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Hn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error(u(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(u(317));l[ut]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),l=!1}else l=Jo(),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),rr(t,t.updateQueue),Ge(t),null);case 4:return Ke(),e===null&&rs(t.stateNode.containerInfo),Ge(t),null;case 10:return da(t.type),Ge(t),null;case 19:if(B(Je),n=t.memoizedState,n===null)return Ge(t),null;if(l=(t.flags&128)!==0,r=n.rendering,r===null)if(l)kl(n,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ki(e),r!==null){for(t.flags|=128,kl(n,!1),e=r.updateQueue,t.updateQueue=e,rr(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()>fr&&(t.flags|=128,l=!0,kl(n,!1),t.lanes=4194304)}else{if(!l)if(e=Ki(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,rr(t,e),kl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!Ae)return Ge(t),null}else 2*Rt()-n.renderingStartTime>fr&&a!==536870912&&(t.flags|=128,l=!0,kl(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):(Ge(t),null);case 22:case 23:return Ot(t),ou(),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&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),a=t.updateQueue,a!==null&&rr(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(un),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),da(Ie),Ge(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ry(e,t){switch(Zo(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 gi(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(u(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(u(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),ou(),e!==null&&B(un),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 Gd(e,t){switch(Zo(t),t.tag){case 3:da(Ie),Ke();break;case 26:case 27:case 5:gi(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),ou(),e!==null&&B(un);break;case 24:da(Ie)}}function Ll(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 Ua(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 E=a,_=m;try{_()}catch(U){Me(l,E,U)}}}n=n.next}while(n!==r)}}catch(U){Me(t,t.return,U)}}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 ql(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 Lu(e,t,a){try{var n=e.stateNode;Ky(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 qu(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 Yu(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(Yu(e,t,a),e=e.sibling;e!==null;)Yu(e,t,a),e=e.sibling}function or(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(or(e,t,a),e=e.sibling;e!==null;)or(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[ut]=e,t[yt]=a}catch(r){Me(e,e.return,r)}}var ga=!1,tt=!1,Gu=!1,Jd=typeof WeakSet=="function"?WeakSet:Set,it=null;function Ty(e,t){if(e=e.containerInfo,ss=Cr,e=rf(e),No(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,E=-1,_=0,U=0,q=e,O=null;t:for(;;){for(var H;q!==a||l!==0&&q.nodeType!==3||(m=d+l),q!==r||n!==0&&q.nodeType!==3||(E=d+n),q.nodeType===3&&(d+=q.nodeValue.length),(H=q.firstChild)!==null;)O=q,q=H;for(;;){if(q===e)break t;if(O===a&&++_===l&&(m=d),O===r&&++U===n&&(E=d),(H=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=H}a=m===-1||E===-1?null:{start:m,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(cs={focusedElem:e,selectionRange:a},Cr=!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(ie){Me(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)hs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":hs(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(u(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:xa(e,a),n&4&&Ll(5,a);break;case 1:if(xa(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&&ql(a,a.return);break;case 3:if(xa(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:xa(e,a),t===null&&n&4&&Qd(a),n&512&&ql(a,a.return);break;case 12:xa(e,a);break;case 31:xa(e,a),n&4&&Id(e,a);break;case 13:xa(e,a),n&4&&Pd(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ny.bind(null,a),tg(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):xa(e,a),ga=l,tt=r}break;case 30:break;default:xa(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,vt=!1;function va(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(cl,a)}catch{}switch(a.tag){case 26:tt||ta(a,t),va(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=vt;Xa(a.type)&&(Ve=a.stateNode,vt=!1),va(e,t,a),Fl(a.stateNode),Ve=n,vt=l;break;case 5:tt||ta(a,t);case 6:if(n=Ve,l=vt,Ve=null,va(e,t,a),Ve=n,vt=l,Ve!==null)if(vt)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&&(vt?(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=vt,Ve=a.stateNode.containerInfo,vt=!0,va(e,t,a),Ve=n,vt=l;break;case 0:case 11:case 14:case 15:Ua(2,a,t),tt||Ua(4,a,t),va(e,t,a);break;case 1:tt||(ta(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Xd(a,t,n)),va(e,t,a);break;case 21:va(e,t,a);break;case 22:tt=(n=tt)||a.memoizedState!==null,va(e,t,a),tt=n;break;default:va(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(u(435,e.tag))}}function ur(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 xt(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,vt=!1;break e}break;case 5:Ve=m.stateNode,vt=!1;break e;case 3:case 4:Ve=m.stateNode.containerInfo,vt=!0;break e}m=m.return}if(Ve===null)throw Error(u(160));$d(r,d,l),Ve=null,vt=!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:xt(t,e),bt(e),n&4&&(Ua(3,e,e.return),Ll(3,e),Ua(5,e,e.return));break;case 1:xt(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(xt(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[hl]||r[ut]||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[ut]=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(u(468,n))}r[ut]=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&&Lu(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),bt(e),n&512&&(tt||a===null||ta(a,a.return)),a!==null&&n&4&&Lu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(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,Lu(e,l,a!==null?a.memoizedProps:l)),n&1024&&(Gu=!0);break;case 6:if(xt(t,e),bt(e),n&4){if(e.stateNode===null)throw Error(u(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(W){Me(e,e.return,W)}}break;case 3:if(Ar=null,l=Jt,Jt=Er(t.containerInfo),xt(t,e),Jt=l,bt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{nl(t.containerInfo)}catch(W){Me(e,e.return,W)}Gu&&(Gu=!1,th(e));break;case 4:n=Jt,Jt=Er(e.stateNode.containerInfo),xt(t,e),bt(e),Jt=n;break;case 12:xt(t,e),bt(e);break;case 31:xt(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ur(e,n)));break;case 13:xt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(cr=Rt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ur(e,n)));break;case 22:l=e.memoizedState!==null;var E=a!==null&&a.memoizedState!==null,_=ga,U=tt;if(ga=_||l,tt=U||E,xt(t,e),tt=U,ga=_,bt(e),n&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(a===null||E||ga||tt||pn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){E=a=t;try{if(r=E.stateNode,l)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{m=E.stateNode;var q=E.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;m.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(W){Me(E,E.return,W)}}}else if(t.tag===6){if(a===null){E=t;try{E.stateNode.nodeValue=l?"":E.memoizedProps}catch(W){Me(E,E.return,W)}}}else if(t.tag===18){if(a===null){E=t;try{var H=E.stateNode;l?Xh(H,!0):Xh(E.stateNode,!1)}catch(W){Me(E,E.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,ur(e,a))));break;case 19:xt(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,ur(e,n)));break;case 30:break;case 21:break;default:xt(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(u(160));switch(a.tag){case 27:var l=a.stateNode,r=qu(e);or(e,r,l);break;case 5:var d=a.stateNode;a.flags&32&&(Tn(d,""),a.flags&=-33);var m=qu(e);or(e,m,d);break;case 3:case 4:var E=a.stateNode.containerInfo,_=qu(e);Yu(e,_,E);break;default:throw Error(u(161))}}catch(U){Me(e,e.return,U)}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 xa(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:Ua(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:Fl(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),Ll(4,r);break;case 1:if(ba(l,r,a),n=r,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(_){Me(n,n.return,_)}if(n=r,l=n.updateQueue,l!==null){var m=n.stateNode;try{var E=l.shared.hiddenCallbacks;if(E!==null)for(l.shared.hiddenCallbacks=null,l=0;l<E.length;l++)Df(E[l],m)}catch(_){Me(n,n.return,_)}}a&&d&64&&Vd(r),ql(r,r.return);break;case 27:Kd(r);case 26:case 5:ba(l,r,a),a&&n===null&&d&4&&Qd(r),ql(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),ql(r,r.return);break;case 30:break;default:ba(l,r,a)}t=t.sibling}}function Vu(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&&Tl(a))}function Xu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tl(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&&Ll(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&&Tl(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(E){Me(t,t.return,E)}}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&&Vu(d,t);break;case 24:Ft(e,t,a,n),l&2048&&Xu(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,E=n,_=d.flags;switch(d.tag){case 0:case 11:case 15:Zn(r,d,m,E,l),Ll(8,d);break;case 23:break;case 22:var U=d.stateNode;d.memoizedState!==null?U._visibility&2?Zn(r,d,m,E,l):Yl(r,d):(U._visibility|=2,Zn(r,d,m,E,l)),l&&_&2048&&Vu(d.alternate,d);break;case 24:Zn(r,d,m,E,l),l&&_&2048&&Xu(d.alternate,d);break;default:Zn(r,d,m,E,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&&Vu(n.alternate,n);break;case 24:Yl(a,n),l&2048&&Xu(n.alternate,n);break;default:Yl(a,n)}t=t.sibling}}var Gl=8192;function Kn(e,t,a){if(e.subtreeFlags&Gl)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&Gl&&e.memoizedState!==null&&hg(a,Jt,e.memoizedState,e.memoizedProps);break;case 5:Kn(e,t,a);break;case 3:case 4:var n=Jt;Jt=Er(e.stateNode.containerInfo),Kn(e,t,a),Jt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Gl,Gl=16777216,Kn(e,t,a),Gl=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 Vl(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:Vl(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Vl(e);break;case 12:Vl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,sr(e)):Vl(e);break;default:Vl(e)}}function sr(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:Ua(8,t,t.return),sr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,sr(t));break;default:sr(t)}e=e.sibling}}function rh(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:Ua(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:Tl(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 Cy={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,_e=0,Le=null,ge=null,be=0,De=0,Dt=null,ka=!1,Jn=!1,Qu=!1,Sa=0,Ze=0,La=0,mn=0,Zu=0,Mt=0,Fn=0,Xl=null,St=null,Ku=!1,cr=0,oh=0,fr=1/0,dr=null,qa=null,at=0,Ya=null,Wn=null,Ea=0,Ju=0,Fu=null,uh=null,Ql=0,Wu=null;function Bt(){return(_e&2)!==0&&be!==0?be&-be:D.T!==null?as():jc()}function sh(){if(Mt===0)if((be&536870912)===0||Ae){var e=bi;bi<<=1,(bi&3932160)===0&&(bi=262144),Mt=e}else Mt=536870912;return e=wt.current,e!==null&&(e.flags|=32),Mt}function Et(e,t,a){(e===Le&&(De===2||De===9)||e.cancelPendingCommit!==null)&&($n(e,0),Ga(e,be,Mt,!1)),dl(e,a),((_e&2)===0||e!==Le)&&(e===Le&&((_e&2)===0&&(mn|=a),Ze===4&&Ga(e,be,Mt,!1)),aa(e))}function ch(e,t,a){if((_e&6)!==0)throw Error(u(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||fl(e,t),l=n?Dy(e,t):Iu(e,t,!0),r=n;do{if(l===0){Jn&&!n&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!wy(a)){l=Iu(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=Xl;var E=m.current.memoizedState.isDehydrated;if(E&&($n(m,d).flags|=256),d=Iu(m,d,!1),d!==2){if(Qu&&!E){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),Ga(e,t,0,!0);break}e:{switch(n=e,r=l,r){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Ga(n,t,Mt,!ka);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(l=cr+300-Rt(),10<l)){if(Ga(n,t,Mt,!ka),Ei(n,0,!0)!==0)break e;Ea=t,n.timeoutHandle=Yh(fh.bind(null,n,a,St,dr,Ku,t,Mt,mn,Fn,ka,r,"Throttled",-0,0),l);break e}fh(n,a,St,dr,Ku,t,Mt,mn,Fn,ka,r,null,-0,0)}}break}while(!0);aa(e)}function fh(e,t,a,n,l,r,d,m,E,_,U,q,O,H){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?cr-Rt():(r&4194048)===r?oh-Rt():0;if(W=pg(q,W),W!==null){Ea=r,e.cancelPendingCommit=W(xh.bind(null,e,t,r,a,n,l,d,m,E,U,q,null,O,H)),Ga(e,r,d,!_);return}}xh(e,t,r,a,n,l,d,m,E)}function wy(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(!Ct(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 Ga(e,t,a,n){t&=~Zu,t&=~mn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var l=t;0<l;){var r=31-zt(l),d=1<<r;n[r]=-1,l&=~d}a!==0&&bc(e,a,t)}function hr(){return(_e&6)===0?(Zl(0),!1):!0}function $u(){if(ge!==null){if(De===0)var e=ge.return;else e=ge,fa=rn=null,hu(e),Yn=null,Cl=0,e=ge;for(;e!==null;)Gd(e.alternate,e),e=e.return;ge=null}}function $n(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Wy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ea=0,$u(),Le=e,ge=a=sa(e.current,null),be=t,De=0,Dt=null,ka=!1,Jn=fl(e,t),Qu=!1,Fn=Mt=Zu=mn=La=Ze=0,St=Xl=null,Ku=!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-zt(n),r=1<<l;t|=e[l],n&=~r}return Sa=t,Bi(),a}function dh(e,t){fe=null,D.H=Hl,t===qn||t===Gi?(t=Cf(),De=3):t===tu?(t=Cf(),De=4):De=t===_u?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,ge===null&&(Ze=1,ar(e,Lt(t,e.current)))}function hh(){var e=wt.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=Cy,e}function pr(){Ze=4,ka||(be&4194048)!==be&&wt.current!==null||(Jn=!0),(La&134217727)===0&&(mn&134217727)===0||Le===null||Ga(Le,be,Mt,!1)}function Iu(e,t,a){var n=_e;_e|=2;var l=ph(),r=mh();(Le!==e||be!==t)&&(dr=null,$n(e,t)),t=!1;var d=Ze;e:do try{if(De!==0&&ge!==null){var m=ge,E=Dt;switch(De){case 8:$u(),d=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var _=De;if(De=0,Dt=null,In(e,m,E,_),a&&Jn){d=0;break e}break;default:_=De,De=0,Dt=null,In(e,m,E,_)}}Oy(),d=Ze;break}catch(U){dh(e,U)}while(!0);return t&&e.shellSuspendCounter++,fa=rn=null,_e=n,D.H=l,D.A=r,ge===null&&(Le=null,be=0,Bi()),d}function Oy(){for(;ge!==null;)yh(ge)}function Dy(e,t){var a=_e;_e|=2;var n=ph(),l=mh();Le!==e||be!==t?(dr=null,fr=Rt()+500,$n(e,t)):Jn=fl(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 E=m.sibling;if(E!==null)ge=E;else{var _=m.return;_!==null?(ge=_,mr(_)):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:$u(),Ze=6;break e;default:throw Error(u(462))}}My();break}catch(U){dh(e,U)}while(!0);return fa=rn=null,D.H=n,D.A=l,_e=a,ge!==null?0:(Le=null,be=0,Bi(),Ze)}function My(){for(;ge!==null&&!a0();)yh(ge)}function yh(e){var t=qd(e.alternate,e,Sa);e.memoizedProps=e.pendingProps,t===null?mr(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:hu(t);default:Gd(a,t),t=ge=mf(t,Sa),t=qd(a,t,Sa)}e.memoizedProps=e.pendingProps,t===null?mr(e):ge=t}function In(e,t,a,n){fa=rn=null,hu(t),Yn=null,Cl=0;var l=t.return;try{if(Sy(e,l,t,a,be)){Ze=1,ar(e,Lt(a,e.current)),ge=null;return}}catch(r){if(l!==null)throw ge=l,r;Ze=1,ar(e,Lt(a,e.current)),ge=null;return}t.flags&32768?(Ae||n===1?e=!0:Jn||(be&536870912)!==0?e=!1:(ka=e=!0,(n===2||n===9||n===3||n===6)&&(n=wt.current,n!==null&&n.tag===13&&(n.flags|=16384))),vh(t,e)):mr(t)}function mr(e){var t=e;do{if((t.flags&32768)!==0){vh(t,ka);return}e=t.return;var a=Ay(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 vh(e,t){do{var a=Ry(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 xh(e,t,a,n,l,r,d,m,E){e.cancelPendingCommit=null;do yr();while(at!==0);if((_e&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(r=t.lanes|t.childLanes,r|=qo,d0(e,a,r,d,m,E),e===Le&&(ge=Le=null,be=0),Wn=t,Ya=e,Ea=a,Ju=r,Fu=l,uh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Uy(vi,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=Q.p,Q.p=2,d=_e,_e|=4;try{Ty(e,t,a)}finally{_e=d,Q.p=l,D.T=n}}at=1,bh(),Sh(),Eh()}}function bh(){if(at===1){at=0;var e=Ya,t=Wn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var n=Q.p;Q.p=2;var l=_e;_e|=4;try{eh(t,e);var r=cs,d=rf(e.containerInfo),m=r.focusedElem,E=r.selectionRange;if(d!==m&&m&&m.ownerDocument&&lf(m.ownerDocument.documentElement,m)){if(E!==null&&No(m)){var _=E.start,U=E.end;if(U===void 0&&(U=_),"selectionStart"in m)m.selectionStart=_,m.selectionEnd=Math.min(U,m.value.length);else{var q=m.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var H=O.getSelection(),W=m.textContent.length,ie=Math.min(E.start,W),Ue=E.end===void 0?ie:Math.min(E.end,W);!H.extend&&ie>Ue&&(d=Ue,Ue=ie,ie=d);var R=nf(m,ie),j=nf(m,Ue);if(R&&j&&(H.rangeCount!==1||H.anchorNode!==R.node||H.anchorOffset!==R.offset||H.focusNode!==j.node||H.focusOffset!==j.offset)){var C=q.createRange();C.setStart(R.node,R.offset),H.removeAllRanges(),ie>Ue?(H.addRange(C),H.extend(j.node,j.offset)):(C.setEnd(j.node,j.offset),H.addRange(C))}}}}for(q=[],H=m;H=H.parentNode;)H.nodeType===1&&q.push({element:H,left:H.scrollLeft,top:H.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}}Cr=!!ss,cs=ss=null}finally{_e=l,Q.p=n,D.T=a}}e.current=t,at=2}}function Sh(){if(at===2){at=0;var e=Ya,t=Wn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var n=Q.p;Q.p=2;var l=_e;_e|=4;try{Fd(e,t.alternate,t)}finally{_e=l,Q.p=n,D.T=a}}at=3}}function Eh(){if(at===4||at===3){at=0,n0();var e=Ya,t=Wn,a=Ea,n=uh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,Wn=Ya=null,jh(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(qa=null),yo(a),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(cl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=D.T,l=Q.p,Q.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,Q.p=l}}(Ea&3)!==0&&yr(),aa(e),l=e.pendingLanes,(a&261930)!==0&&(l&42)!==0?e===Wu?Ql++:(Ql=0,Wu=e):Ql=0,Zl(0)}}function jh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tl(t)))}function yr(){return bh(),Sh(),Eh(),Ah()}function Ah(){if(at!==5)return!1;var e=Ya,t=Ju;Ju=0;var a=yo(Ea),n=D.T,l=Q.p;try{Q.p=32>a?32:a,D.T=null,a=Fu,Fu=null;var r=Ya,d=Ea;if(at=0,Wn=Ya=null,Ea=0,(_e&6)!==0)throw Error(u(331));var m=_e;if(_e|=4,ih(r.current),ah(r,r.current,d,a),_e=m,Zl(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(cl,r)}catch{}return!0}finally{Q.p=l,D.T=n,jh(e,t)}}function Rh(e,t,a){t=Lt(a,t),t=Cu(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(dl(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&&(zd(a,n,t,e),dl(n,2),aa(n));break}}t=t.return}}function Pu(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)||(Qu=!0,l.add(a),e=By.bind(null,e,t,a),t.then(e,e))}function By(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()-cr?(_e&2)===0&&$n(e,0):Zu|=a,Fn===be&&(Fn=0)),aa(e)}function Th(e,t){t===0&&(t=xc()),e=an(e,t),e!==null&&(dl(e,t),aa(e))}function Ny(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(u(314))}n!==null&&n.delete(t),Th(e,a)}function Uy(e,t){return fo(e,t)}var gr=null,Pn=null,es=!1,vr=!1,ts=!1,Va=0;function aa(e){e!==Pn&&e.next===null&&(Pn===null?gr=Pn=e:Pn=Pn.next=e),vr=!0,es||(es=!0,Ly())}function Zl(e,t){if(!ts&&vr){ts=!0;do for(var a=!1,n=gr;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-zt(42|e)+1)-1,r&=l&~(d&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,wh(n,r))}else r=be,r=Ei(n,n===Le?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||fl(n,r)||(a=!0,wh(n,r));n=n.next}while(a);ts=!1}}function ky(){zh()}function zh(){vr=es=!1;var e=0;Va!==0&&Fy()&&(e=Va);for(var t=Rt(),a=null,n=gr;n!==null;){var l=n.next,r=Ch(n,t);r===0?(n.next=null,a===null?gr=l:a.next=l,l===null&&(Pn=a)):(a=n,(e!==0||(r&3)!==0)&&(vr=!0)),n=l}at!==0&&at!==5||Zl(e),Va!==0&&(Va=0)}function Ch(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-zt(r),m=1<<d,E=l[d];E===-1?((m&a)===0||(m&n)!==0)&&(l[d]=f0(m,t)):E<=t&&(e.expiredLanes|=m),r&=~m}if(t=Le,a=be,a=Ei(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&&ho(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||fl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&ho(n),yo(a)){case 2:case 8:a=gc;break;case 32:a=vi;break;case 268435456:a=vc;break;default:a=vi}return n=_h.bind(null,e),a=fo(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&ho(n),e.callbackPriority=2,e.callbackNode=null,2}function _h(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(yr()&&e.callbackNode!==a)return null;var n=be;return n=Ei(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(ch(e,n,t),Ch(e,Rt()),e.callbackNode!=null&&e.callbackNode===a?_h.bind(null,e):null)}function wh(e,t){if(yr())return null;ch(e,t,!0)}function Ly(){$y(function(){(_e&6)!==0?fo(yc,ky):zh()})}function as(){if(Va===0){var e=kn;e===0&&(e=xi,xi<<=1,(xi&261888)===0&&(xi=256)),Va=e}return Va}function Oh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ti(""+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 qy(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 wi("action","action",null,n,l);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Va!==0){var E=d?Dh(l,d):new FormData(l);Eu(a,{pending:!0,data:E,method:l.method,action:r},null,E)}}else typeof r=="function"&&(m.preventDefault(),E=d?Dh(l,d):new FormData(l),Eu(a,{pending:!0,data:E,method:l.method,action:r},r,E))},currentTarget:l}]})}}for(var ns=0;ns<Lo.length;ns++){var ls=Lo[ns],Yy=ls.toLowerCase(),Gy=ls[0].toUpperCase()+ls.slice(1);Kt(Yy,"on"+Gy)}Kt(sf,"onAnimationEnd"),Kt(cf,"onAnimationIteration"),Kt(ff,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(ly,"onTransitionRun"),Kt(iy,"onTransitionStart"),Kt(ry,"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 Kl="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(" "),Vy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kl));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],E=m.instance,_=m.currentTarget;if(m=m.listener,E!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=_;try{r(l)}catch(U){Mi(U)}l.currentTarget=null,r=E}else for(d=0;d<n.length;d++){if(m=n[d],E=m.instance,_=m.currentTarget,m=m.listener,E!==r&&l.isPropagationStopped())break e;r=m,l.currentTarget=_;try{r(l)}catch(U){Mi(U)}l.currentTarget=null,r=E}}}}function ve(e,t){var a=t[go];a===void 0&&(a=t[go]=new Set);var n=e+"__bubble";a.has(n)||(Bh(t,e,2,!1),a.add(n))}function is(e,t,a){var n=0;t&&(n|=4),Bh(a,e,n,t)}var xr="_reactListening"+Math.random().toString(36).slice(2);function rs(e){if(!e[xr]){e[xr]=!0,Tc.forEach(function(a){a!=="selectionchange"&&(Vy.has(a)||is(a,!1,e),is(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xr]||(t[xr]=!0,is("selectionchange",!1,t))}}function Bh(e,t,a,n){switch(sp(t)){case 2:var l=gg;break;case 8:l=vg;break;default:l=Ss}a=l.bind(null,t,a,e),l=void 0,!To||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 os(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 E=d.tag;if((E===3||E===4)&&d.stateNode.containerInfo===l)return;d=d.return}for(;m!==null;){if(d=Sn(m),d===null)return;if(E=d.tag,E===5||E===6||E===26||E===27){n=r=d;continue e}m=m.parentNode}}n=n.return}kc(function(){var _=r,U=Ao(a),q=[];e:{var O=hf.get(e);if(O!==void 0){var H=wi,W=e;switch(e){case"keypress":if(Ci(a)===0)break e;case"keydown":case"keyup":H=H0;break;case"focusin":W="focus",H=wo;break;case"focusout":W="blur",H=wo;break;case"beforeblur":case"afterblur":H=wo;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":H=Yc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=A0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=L0;break;case sf:case cf:case ff:H=z0;break;case df:H=Y0;break;case"scroll":case"scrollend":H=E0;break;case"wheel":H=V0;break;case"copy":case"cut":case"paste":H=_0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Vc;break;case"toggle":case"beforetoggle":H=Q0}var ie=(t&4)!==0,Ue=!ie&&(e==="scroll"||e==="scrollend"),R=ie?O!==null?O+"Capture":null:O;ie=[];for(var j=_,C;j!==null;){var L=j;if(C=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||C===null||R===null||(L=ml(j,R),L!=null&&ie.push(Jl(j,L,C))),Ue)break;j=j.return}0<ie.length&&(O=new H(O,W,null,a,U),q.push({event:O,listeners:ie}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",O&&a!==jo&&(W=a.relatedTarget||a.fromElement)&&(Sn(W)||W[bn]))break e;if((H||O)&&(O=U.window===U?U:(O=U.ownerDocument)?O.defaultView||O.parentWindow:window,H?(W=a.relatedTarget||a.toElement,H=_,W=W?Sn(W):null,W!==null&&(Ue=h(W),ie=W.tag,W!==Ue||ie!==5&&ie!==27&&ie!==6)&&(W=null)):(H=null,W=_),H!==W)){if(ie=Yc,L="onMouseLeave",R="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Vc,L="onPointerLeave",R="onPointerEnter",j="pointer"),Ue=H==null?O:pl(H),C=W==null?O:pl(W),O=new ie(L,j+"leave",H,a,U),O.target=Ue,O.relatedTarget=C,L=null,Sn(U)===_&&(ie=new ie(R,j+"enter",W,a,U),ie.target=C,ie.relatedTarget=Ue,L=ie),Ue=L,H&&W)t:{for(ie=Xy,R=H,j=W,C=0,L=R;L;L=ie(L))C++;L=0;for(var ne=j;ne;ne=ie(ne))L++;for(;0<C-L;)R=ie(R),C--;for(;0<L-C;)j=ie(j),L--;for(;C--;){if(R===j||j!==null&&R===j.alternate){ie=R;break t}R=ie(R),j=ie(j)}ie=null}else ie=null;H!==null&&Nh(q,O,H,ie,!1),W!==null&&Ue!==null&&Nh(q,Ue,W,ie,!0)}}e:{if(O=_?pl(_):window,H=O.nodeName&&O.nodeName.toLowerCase(),H==="select"||H==="input"&&O.type==="file")var ze=$c;else if(Fc(O))if(Ic)ze=ty;else{ze=P0;var te=I0}else H=O.nodeName,!H||H.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?_&&Eo(_.elementType)&&(ze=$c):ze=ey;if(ze&&(ze=ze(e,_))){Wc(q,ze,a,U);break e}te&&te(e,O,_),e==="focusout"&&_&&O.type==="number"&&_.memoizedProps.value!=null&&So(O,"number",O.value)}switch(te=_?pl(_):window,e){case"focusin":(Fc(te)||te.contentEditable==="true")&&(wn=te,Ho=_,jl=null);break;case"focusout":jl=Ho=wn=null;break;case"mousedown":Uo=!0;break;case"contextmenu":case"mouseup":case"dragend":Uo=!1,of(q,a,U);break;case"selectionchange":if(ny)break;case"keydown":case"keyup":of(q,a,U)}var he;if(Do)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 _n?Kc(e,a)&&(Se="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(Xc&&a.locale!=="ko"&&(_n||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&_n&&(he=Lc()):(za=U,zo="value"in za?za.value:za.textContent,_n=!0)),te=br(_,Se),0<te.length&&(Se=new Gc(Se,e,null,a,U),q.push({event:Se,listeners:te}),he?Se.data=he:(he=Jc(a),he!==null&&(Se.data=he)))),(he=K0?J0(e,a):F0(e,a))&&(Se=br(_,"onBeforeInput"),0<Se.length&&(te=new Gc("onBeforeInput","beforeinput",null,a,U),q.push({event:te,listeners:Se}),te.data=he)),qy(q,e,_,a,U)}Mh(q,t)})}function Jl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function br(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=ml(e,a),l!=null&&n.unshift(Jl(e,l,r)),l=ml(e,t),l!=null&&n.push(Jl(e,l,r))),e.tag===3)return n;e=e.return}return[]}function Xy(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,E=m.alternate,_=m.stateNode;if(m=m.tag,E!==null&&E===n)break;m!==5&&m!==26&&m!==27||_===null||(E=_,l?(_=ml(a,r),_!=null&&d.unshift(Jl(a,_,E))):l||(_=ml(a,r),_!=null&&d.push(Jl(a,_,E)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Qy=/\r\n?/g,Zy=/\u0000|\uFFFD/g;function Hh(e){return(typeof e=="string"?e:""+e).replace(Qy,`
9
- `).replace(Zy,"")}function Uh(e,t){return t=Hh(t),Hh(e)===t}function He(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":Ai(e,"class",n);break;case"tabIndex":Ai(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ai(e,a,n);break;case"style":Hc(e,n,r);break;case"data":if(t!=="object"){Ai(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=Ti(""+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"&&He(e,t,"name",l.name,l,null),He(e,t,"formEncType",l.formEncType,l,null),He(e,t,"formMethod",l.formMethod,l,null),He(e,t,"formTarget",l.formTarget,l,null)):(He(e,t,"encType",l.encType,l,null),He(e,t,"method",l.method,l,null),He(e,t,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ti(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=oa);break;case"onScroll":n!=null&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(u(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=Ti(""+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":ve("beforetoggle",e),ve("toggle",e),ji(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":ji(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=b0.get(a)||a,ji(e,a,n))}}function us(e,t,a,n,l,r){switch(a){case"style":Hc(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(u(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&&ve("scroll",e);break;case"onScrollEnd":n!=null&&ve("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(!zc.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,""):ji(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":ve("error",e),ve("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(u(137,t));default:He(e,t,r,d,a,null)}}l&&He(e,t,"srcSet",a.srcSet,a,null),n&&He(e,t,"src",a.src,a,null);return;case"input":ve("invalid",e);var m=r=d=l=null,E=null,_=null;for(n in a)if(a.hasOwnProperty(n)){var U=a[n];if(U!=null)switch(n){case"name":l=U;break;case"type":d=U;break;case"checked":E=U;break;case"defaultChecked":_=U;break;case"value":r=U;break;case"defaultValue":m=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:He(e,t,n,U,a,null)}}Dc(e,r,m,E,_,d,l,!1);return;case"select":ve("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:He(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":ve("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(u(91));break;default:He(e,t,d,m,a,null)}Bc(e,n,l,r);return;case"option":for(E in a)a.hasOwnProperty(E)&&(n=a[E],n!=null)&&(E==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":He(e,t,E,n,a,null));return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(n=0;n<Kl.length;n++)ve(Kl[n],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("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(_ in a)if(a.hasOwnProperty(_)&&(n=a[_],n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:He(e,t,_,n,a,null)}return;default:if(Eo(t)){for(U in a)a.hasOwnProperty(U)&&(n=a[U],n!==void 0&&us(e,t,U,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&He(e,t,m,n,a,null))}function Ky(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,E=null,_=null,U=null;for(H in a){var q=a[H];if(a.hasOwnProperty(H)&&q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":E=q;default:n.hasOwnProperty(H)||He(e,t,H,null,n,q)}}for(var O in n){var H=n[O];if(q=a[O],n.hasOwnProperty(O)&&(H!=null||q!=null))switch(O){case"type":r=H;break;case"name":l=H;break;case"checked":_=H;break;case"defaultChecked":U=H;break;case"value":d=H;break;case"defaultValue":m=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:H!==q&&He(e,t,O,H,n,q)}}bo(e,d,m,E,_,U,r,l);return;case"select":H=d=m=O=null;for(r in a)if(E=a[r],a.hasOwnProperty(r)&&E!=null)switch(r){case"value":break;case"multiple":H=E;default:n.hasOwnProperty(r)||He(e,t,r,null,n,E)}for(l in n)if(r=n[l],E=a[l],n.hasOwnProperty(l)&&(r!=null||E!=null))switch(l){case"value":O=r;break;case"defaultValue":m=r;break;case"multiple":d=r;default:r!==E&&He(e,t,l,r,n,E)}t=m,a=d,n=H,O!=null?Rn(e,!!a,O,!1):!!n!=!!a&&(t!=null?Rn(e,!!a,t,!0):Rn(e,!!a,a?[]:"",!1));return;case"textarea":H=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:He(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":H=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(u(91));break;default:l!==r&&He(e,t,d,l,n,r)}Mc(e,O,H);return;case"option":for(var W in a)O=a[W],a.hasOwnProperty(W)&&O!=null&&!n.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:He(e,t,W,null,n,O));for(E in n)O=n[E],H=a[E],n.hasOwnProperty(E)&&O!==H&&(O!=null||H!=null)&&(E==="selected"?e.selected=O&&typeof O!="function"&&typeof O!="symbol":He(e,t,E,O,n,H));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in a)O=a[ie],a.hasOwnProperty(ie)&&O!=null&&!n.hasOwnProperty(ie)&&He(e,t,ie,null,n,O);for(_ in n)if(O=n[_],H=a[_],n.hasOwnProperty(_)&&O!==H&&(O!=null||H!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,t));break;default:He(e,t,_,O,n,H)}return;default:if(Eo(t)){for(var Ue in a)O=a[Ue],a.hasOwnProperty(Ue)&&O!==void 0&&!n.hasOwnProperty(Ue)&&us(e,t,Ue,void 0,n,O);for(U in n)O=n[U],H=a[U],!n.hasOwnProperty(U)||O===H||O===void 0&&H===void 0||us(e,t,U,O,n,H);return}}for(var R in a)O=a[R],a.hasOwnProperty(R)&&O!=null&&!n.hasOwnProperty(R)&&He(e,t,R,null,n,O);for(q in n)O=n[q],H=a[q],!n.hasOwnProperty(q)||O===H||O==null&&H==null||He(e,t,q,O,n,H)}function kh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jy(){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&&kh(d)){for(d=0,m=l.responseEnd,n+=1;n<a.length;n++){var E=a[n],_=E.startTime;if(_>m)break;var U=E.transferSize,q=E.initiatorType;U&&kh(q)&&(E=E.responseEnd,d+=U*(E<m?1:(m-_)/(E-_)))}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 ss=null,cs=null;function Sr(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 fs(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 ds=null;function Fy(){var e=window.event;return e&&e.type==="popstate"?e===ds?!1:(ds=e,!0):(ds=null,!1)}var Yh=typeof setTimeout=="function"?setTimeout:void 0,Wy=typeof clearTimeout=="function"?clearTimeout:void 0,Gh=typeof Promise=="function"?Promise:void 0,$y=typeof queueMicrotask=="function"?queueMicrotask:typeof Gh<"u"?function(e){return Gh.resolve(null).then(e).catch(Iy)}:Yh;function Iy(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")Fl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Fl(a);for(var r=a.firstChild;r;){var d=r.nextSibling,m=r.nodeName;r[hl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&Fl(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 hs(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":hs(a),vo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Py(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[hl])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 eg(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 ps(e){return e.data==="$?"||e.data==="$~"}function ms(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tg(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 ys=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=Sr(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Fl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vo(e)}var Qt=new Map,Fh=new Set;function Er(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=Q.d;Q.d={f:ag,r:ng,D:lg,C:ig,L:rg,m:og,X:sg,S:ug,M:cg};function ag(){var e=ja.f(),t=hr();return e||t}function ng(e){var t=En(e);t!==null&&t.tag===5&&t.type==="form"?dd(t):ja.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=Ut(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 lg(e){ja.D(e),Wh("dns-prefetch",e,null)}function ig(e,t){ja.C(e,t),Wh("preconnect",e,t)}function rg(e,t,a){ja.L(e,t,a);var n=el;if(n&&e&&t){var l='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Ut(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Ut(a.imageSizes)+'"]')):l+='[href="'+Ut(e)+'"]';var r=l;switch(t){case"style":r=tl(e);break;case"script":r=al(e)}Qt.has(r)||(e=v({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(Wl(r))||t==="script"&&n.querySelector($l(r))||(t=n.createElement("link"),dt(t,"link",e),lt(t),n.head.appendChild(t)))}}function og(e,t){ja.m(e,t);var a=el;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Ut(n)+'"][href="'+Ut(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=v({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($l(r)))return}n=a.createElement("link"),dt(n,"link",e),lt(n),a.head.appendChild(n)}}}function ug(e,t,a){ja.S(e,t,a);var n=el;if(n&&e){var l=jn(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(Wl(r)))m.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Qt.get(r))&&gs(e,a);var E=d=n.createElement("link");lt(E),dt(E,"link",e),E._p=new Promise(function(_,U){E.onload=_,E.onerror=U}),E.addEventListener("load",function(){m.loading|=1}),E.addEventListener("error",function(){m.loading|=2}),m.loading|=4,jr(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:m},l.set(r,d)}}}function sg(e,t){ja.X(e,t);var a=el;if(a&&e){var n=jn(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector($l(l)),r||(e=v({src:e,async:!0},t),(t=Qt.get(l))&&vs(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 cg(e,t){ja.M(e,t);var a=el;if(a&&e){var n=jn(a).hoistableScripts,l=al(e),r=n.get(l);r||(r=a.querySelector($l(l)),r||(e=v({src:e,async:!0,type:"module"},t),(t=Qt.get(l))&&vs(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=ue.current)?Er(l):null;if(!l)throw Error(u(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=jn(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=jn(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(Wl(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||fg(l,e,a,d.state))),t&&n===null)throw Error(u(528,""));return d}if(t&&n!==null)throw Error(u(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=jn(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(u(444,e))}}function tl(e){return'href="'+Ut(e)+'"'}function Wl(e){return'link[rel="stylesheet"]['+e+"]"}function Ih(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function fg(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="'+Ut(e)+'"]'}function $l(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~="'+Ut(a.href)+'"]');if(n)return t.instance=n,lt(n),n;var l=v({},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),jr(n,a.precedence,e),t.instance=n;case"stylesheet":l=tl(a.href);var r=e.querySelector(Wl(l));if(r)return t.state.loading|=4,t.instance=r,lt(r),r;n=Ih(a),(l=Qt.get(l))&&gs(n,l),r=(e.ownerDocument||e).createElement("link"),lt(r);var d=r;return d._p=new Promise(function(m,E){d.onload=m,d.onerror=E}),dt(r,"link",n),t.state.loading|=4,jr(r,a.precedence,e),t.instance=r;case"script":return r=al(a.src),(l=e.querySelector($l(r)))?(t.instance=l,lt(l),l):(n=a,(l=Qt.get(r))&&(n=v({},a),vs(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(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,jr(n,a.precedence,e));return t.instance}function jr(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 gs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ar=null;function ep(e,t,a){if(Ar===null){var n=new Map,l=Ar=new Map;l.set(a,n)}else l=Ar,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[hl]||r[ut]||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 dg(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 hg(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(Wl(l));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Rr.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))&&gs(n,l),r=r.createElement("link"),lt(r);var d=r;d._p=new Promise(function(m,E){d.onload=m,d.onerror=E}),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=Rr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var xs=0;function pg(e,t){return e.stylesheets&&e.count===0&&zr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&zr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&xs===0&&(xs=62500*Jy());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&zr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>xs?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function Rr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tr=null;function zr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tr=new Map,t.forEach(mg,e),Tr=null,Rr.call(e))}function mg(e,t){if(!(t.state.loading&4)){var a=Tr.get(e);if(a)var n=a.get(null);else{a=new Map,Tr.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=Rr.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 Il={$$typeof:V,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function yg(e,t,a,n,l,r,d,m,E){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=po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.hiddenUpdates=po(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function np(e,t,a,n,l,r,d,m,E,_,U,q){return e=new yg(e,t,a,d,E,_,U,q,m),t=1,r===!0&&(t|=24),r=_t(3,null,null,t),e.current=r,r.stateNode=e,t=Io(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},au(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&&(Et(a,e,t),wl(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 bs(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&&Et(t,e,67108864),bs(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=Bt();t=mo(t);var a=an(e,t);a!==null&&Et(a,e,t),bs(e,t)}}var Cr=!0;function gg(e,t,a,n){var l=D.T;D.T=null;var r=Q.p;try{Q.p=2,Ss(e,t,a,n)}finally{Q.p=r,D.T=l}}function vg(e,t,a,n){var l=D.T;D.T=null;var r=Q.p;try{Q.p=8,Ss(e,t,a,n)}finally{Q.p=r,D.T=l}}function Ss(e,t,a,n){if(Cr){var l=Es(n);if(l===null)os(e,t,n,_r,a),cp(e,n);else if(bg(l,e,t,a,n))n.stopPropagation();else if(cp(e,n),t&4&&-1<xg.indexOf(e)){for(;l!==null;){var r=En(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 E=1<<31-zt(d);m.entanglements[1]|=E,d&=~E}aa(r),(_e&6)===0&&(fr=Rt()+500,Zl(0))}}break;case 31:case 13:m=an(r,2),m!==null&&Et(m,r,2),hr(),bs(r,2)}if(r=Es(n),r===null&&os(e,t,n,_r,a),r===l)break;l=r}l!==null&&n.stopPropagation()}else os(e,t,n,null,a)}}function Es(e){return e=Ao(e),js(e)}var _r=null;function js(e){if(_r=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 _r=e,null}function sp(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(l0()){case yc:return 2;case gc:return 8;case vi:case i0:return 32;case vc:return 268435456;default:return 32}default:return 32}}var As=!1,Qa=null,Za=null,Ka=null,Pl=new Map,ei=new Map,Ja=[],xg="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":Pl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ei.delete(t.pointerId)}}function ti(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=En(t),t!==null&&op(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function bg(e,t,a,n,l){switch(t){case"focusin":return Qa=ti(Qa,e,t,a,n,l),!0;case"dragenter":return Za=ti(Za,e,t,a,n,l),!0;case"mouseover":return Ka=ti(Ka,e,t,a,n,l),!0;case"pointerover":var r=l.pointerId;return Pl.set(r,ti(Pl.get(r)||null,e,t,a,n,l)),!0;case"gotpointercapture":return r=l.pointerId,ei.set(r,ti(ei.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(){up(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Ac(e.priority,function(){up(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 wr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Es(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);jo=n,a.target.dispatchEvent(n),jo=null}else return t=En(a),t!==null&&op(t),e.blockedOn=a,!1;t.shift()}return!0}function dp(e,t,a){wr(e)&&a.delete(t)}function Sg(){As=!1,Qa!==null&&wr(Qa)&&(Qa=null),Za!==null&&wr(Za)&&(Za=null),Ka!==null&&wr(Ka)&&(Ka=null),Pl.forEach(dp),ei.forEach(dp)}function Or(e,t){e.blockedOn===t&&(e.blockedOn=null,As||(As=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Sg)))}var Dr=null;function hp(e){Dr!==e&&(Dr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Dr===e&&(Dr=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(js(n||a)===null)continue;break}var r=En(a);r!==null&&(e.splice(t,3),t-=3,Eu(r,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function nl(e){function t(E){return Or(E,e)}Qa!==null&&Or(Qa,e),Za!==null&&Or(Za,e),Ka!==null&&Or(Ka,e),Pl.forEach(t),ei.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(js(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 Rs(e){this._internalRoot=e}Mr.prototype.render=Rs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,n=Bt();ip(a,n,e,t,null,null)},Mr.prototype.unmount=Rs.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),hr(),t[bn]=null}};function Mr(e){this._internalRoot=e}Mr.prototype.unstable_scheduleHydration=function(e){if(e){var t=jc();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(u(527,mp,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(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 Br=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Br.isDisabled&&Br.supportsFiber)try{cl=Br.inject(Eg),Tt=Br}catch{}}return ni.createRoot=function(e,t){if(!f(e))throw Error(u(299));var a=!1,n="",l=Ed,r=jd,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,rs(e),new Rs(t)},ni.hydrateRoot=function(e,t,a){if(!f(e))throw Error(u(299));var n=!1,l="",r=Ed,d=jd,m=Ad,E=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&&(E=a.formState)),t=np(e,1,!0,t,a??null,n,l,E,r,d,m,pp),t.context=lp(null),a=t.current,n=Bt(),n=mo(n),l=Ma(n),l.callback=null,Ba(a,l,n),a=n,t.current.lanes=a,dl(t,a),aa(t),e[bn]=t.current,rs(e),new Mr(t)},ni.version="19.2.4",ni}var Rp;function Dg(){if(Rp)return Cs.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(),Cs.exports=Og(),Cs.exports}var Mg=Dg();const Bg=um(Mg);var Tp="popstate";function zp(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ng(i={}){function o(u,f){let h=f.state?.masked,{pathname:p,search:g,hash:x}=h||u.location;return Vs("",{pathname:p,search:g,hash:x},f.state&&f.state.usr||null,f.state&&f.state.key||"default",h?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function s(u,f){return typeof f=="string"?f:oi(f)}return Ug(o,s,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 Cp(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 Vs(i,o,s=null,u,f){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?il(o):o,state:s,key:o&&o.key||u||Hg(),unstable_mask:f}}function oi({pathname:i="/",search:o="",hash:s=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function il(i){let o={};if(i){let s=i.indexOf("#");s>=0&&(o.hash=i.substring(s),i=i.substring(0,s));let u=i.indexOf("?");u>=0&&(o.search=i.substring(u),i=i.substring(0,u)),i&&(o.pathname=i)}return o}function Ug(i,o,s,u={}){let{window:f=document.defaultView,v5Compat:h=!1}=u,p=f.history,g="POP",x=null,y=b();y==null&&(y=0,p.replaceState({...p.state,idx:y},""));function b(){return(p.state||{idx:null}).idx}function v(){g="POP";let z=b(),X=z==null?null:z-y;y=z,x&&x({action:g,location:w.location,delta:X})}function M(z,X){g="PUSH";let P=zp(z)?z:Vs(w.location,z,X);y=b()+1;let V=Cp(P,y),le=w.createHref(P.unstable_mask||P);try{p.pushState(V,"",le)}catch(ce){if(ce instanceof DOMException&&ce.name==="DataCloneError")throw ce;f.location.assign(le)}h&&x&&x({action:g,location:w.location,delta:1})}function k(z,X){g="REPLACE";let P=zp(z)?z:Vs(w.location,z,X);y=b();let V=Cp(P,y),le=w.createHref(P.unstable_mask||P);p.replaceState(V,"",le),h&&x&&x({action:g,location:w.location,delta:0})}function T(z){return kg(z)}let w={get action(){return g},get location(){return i(f,p)},listen(z){if(x)throw new Error("A history only accepts one active listener");return f.addEventListener(Tp,v),x=z,()=>{f.removeEventListener(Tp,v),x=null}},createHref(z){return o(f,z)},createURL:T,encodeLocation(z){let X=T(z);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:M,replace:k,go(z){return p.go(z)}};return w}function kg(i,o=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(s,"No window.location.(origin|href) available to create URL");let u=typeof i=="string"?i:oi(i);return u=u.replace(/ $/,"%20"),!o&&u.startsWith("//")&&(u=s+u),new URL(u,s)}function sm(i,o,s="/"){return Lg(i,o,s,!1)}function Lg(i,o,s,u){let f=typeof o=="string"?il(o):o,h=Aa(f.pathname||"/",s);if(h==null)return null;let p=cm(i);qg(p);let g=null;for(let x=0;g==null&&x<p.length;++x){let y=$g(h);g=Fg(p[x],y,u)}return g}function cm(i,o=[],s=[],u="",f=!1){let h=(p,g,x=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(u)&&x)return;Xe(b.relativePath.startsWith(u),`Absolute route path "${b.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(u.length)}let v=la([u,b.relativePath]),M=s.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 "${v}".`),cm(p.children,o,M,v,x)),!(p.path==null&&!p.index)&&o.push({path:v,score:Kg(v,p.index),routesMeta:M})};return i.forEach((p,g)=>{if(p.path===""||!p.path?.includes("?"))h(p,g);else for(let x of fm(p.path))h(p,g,!0,x)}),o}function fm(i){let o=i.split("/");if(o.length===0)return[];let[s,...u]=o,f=s.endsWith("?"),h=s.replace(/\?$/,"");if(u.length===0)return f?[h,""]:[h];let p=fm(u.join("/")),g=[];return g.push(...p.map(x=>x===""?h:[h,x].join("/"))),f&&g.push(...p),g.map(x=>i.startsWith("/")&&x===""?"/":x)}function qg(i){i.sort((o,s)=>o.score!==s.score?s.score-o.score:Jg(o.routesMeta.map(u=>u.childrenIndex),s.routesMeta.map(u=>u.childrenIndex)))}var Yg=/^:[\w-]+$/,Gg=3,Vg=2,Xg=1,Qg=10,Zg=-2,_p=i=>i==="*";function Kg(i,o){let s=i.split("/"),u=s.length;return s.some(_p)&&(u+=Zg),o&&(u+=Vg),s.filter(f=>!_p(f)).reduce((f,h)=>f+(Yg.test(h)?Gg:h===""?Xg:Qg),u)}function Jg(i,o){return i.length===o.length&&i.slice(0,-1).every((u,f)=>u===o[f])?i[i.length-1]-o[o.length-1]:0}function Fg(i,o,s=!1){let{routesMeta:u}=i,f={},h="/",p=[];for(let g=0;g<u.length;++g){let x=u[g],y=g===u.length-1,b=h==="/"?o:o.slice(h.length)||"/",v=Zr({path:x.relativePath,caseSensitive:x.caseSensitive,end:y},b),M=x.route;if(!v&&y&&s&&!u[u.length-1].route.index&&(v=Zr({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},b)),!v)return null;Object.assign(f,v.params),p.push({params:f,pathname:la([h,v.pathname]),pathnameBase:t1(la([h,v.pathnameBase])),route:M}),v.pathnameBase!=="/"&&(h=la([h,v.pathnameBase]))}return p}function Zr(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,u]=Wg(i.path,i.caseSensitive,i.end),f=o.match(s);if(!f)return null;let h=f[0],p=h.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:u.reduce((y,{paramName:b,isOptional:v},M)=>{if(b==="*"){let T=g[M]||"";p=h.slice(0,h.length-T.length).replace(/(.)\/+$/,"$1")}const k=g[M];return v&&!k?y[b]=void 0:y[b]=(k||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:p,pattern:i}}function Wg(i,o=!1,s=!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 u=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,g,x,y,b)=>{if(u.push({paramName:g,isOptional:x!=null}),x){let v=b.charAt(y+p.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(u.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,o?void 0:"i"),u]}function $g(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 s=o.endsWith("/")?o.length-1:o.length,u=i.charAt(s);return u&&u!=="/"?null:i.slice(s)||"/"}var Ig=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Pg(i,o="/"){let{pathname:s,search:u="",hash:f=""}=typeof i=="string"?il(i):i,h;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?h=wp(s.substring(1),"/"):h=wp(s,o)):h=o,{pathname:h,search:a1(u),hash:n1(f)}}function wp(i,o){let s=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function Ds(i,o,s,u){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function e1(i){return i.filter((o,s)=>s===0||o.route.path&&o.route.path.length>0)}function Ps(i){let o=e1(i);return o.map((s,u)=>u===o.length-1?s.pathname:s.pathnameBase)}function $r(i,o,s,u=!1){let f;typeof i=="string"?f=il(i):(f={...i},Xe(!f.pathname||!f.pathname.includes("?"),Ds("?","pathname","search",f)),Xe(!f.pathname||!f.pathname.includes("#"),Ds("#","pathname","hash",f)),Xe(!f.search||!f.search.includes("#"),Ds("#","search","hash",f)));let h=i===""||f.pathname==="",p=h?"/":f.pathname,g;if(p==null)g=s;else{let v=o.length-1;if(!u&&p.startsWith("..")){let M=p.split("/");for(;M[0]==="..";)M.shift(),v-=1;f.pathname=M.join("/")}g=v>=0?o[v]:"/"}let x=Pg(f,g),y=p&&p!=="/"&&p.endsWith("/"),b=(h||p===".")&&s.endsWith("/");return!x.pathname.endsWith("/")&&(y||b)&&(x.pathname+="/"),x}var la=i=>i.join("/").replace(/\/\/+/g,"/"),t1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),a1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,n1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,l1=class{constructor(i,o,s,u=!1){this.status=i,this.statusText=o||"",this.internal=u,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function i1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function r1(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 s=i;if(typeof s!="string"||!Ig.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let u=s,f=!1;if(dm)try{let h=new URL(window.location.href),p=s.startsWith("//")?new URL(h.protocol+s):new URL(s),g=Aa(p.pathname,o);p.origin===h.origin&&g!=null?s=g+p.search+p.hash:f=!0}catch{Wt(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var pm=["POST","PUT","PATCH","DELETE"];new Set(pm);var o1=["GET",...pm];new Set(o1);var rl=A.createContext(null);rl.displayName="DataRouter";var Ir=A.createContext(null);Ir.displayName="DataRouterState";var u1=A.createContext(!1),mm=A.createContext({isTransitioning:!1});mm.displayName="ViewTransition";var s1=A.createContext(new Map);s1.displayName="Fetchers";var c1=A.createContext(null);c1.displayName="Await";var Nt=A.createContext(null);Nt.displayName="Navigation";var ci=A.createContext(null);ci.displayName="Location";var ia=A.createContext({outlet:null,matches:[],isDataRoute:!1});ia.displayName="Route";var ec=A.createContext(null);ec.displayName="RouteError";var ym="REACT_ROUTER_ERROR",f1="REDIRECT",d1="ROUTE_ERROR_RESPONSE";function h1(i){if(i.startsWith(`${ym}:${f1}:{`))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 p1(i){if(i.startsWith(`${ym}:${d1}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new l1(o.status,o.statusText,o.data)}catch{}}function m1(i,{relative:o}={}){Xe(ol(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:u}=A.useContext(Nt),{hash:f,pathname:h,search:p}=fi(i,{relative:o}),g=h;return s!=="/"&&(g=h==="/"?s:la([s,h])),u.createHref({pathname:g,search:p,hash:f})}function ol(){return A.useContext(ci)!=null}function $t(){return Xe(ol(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(ci).location}var gm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vm(i){A.useContext(Nt).static||A.useLayoutEffect(i)}function Pr(){let{isDataRoute:i}=A.useContext(ia);return i?C1():y1()}function y1(){Xe(ol(),"useNavigate() may be used only in the context of a <Router> component.");let i=A.useContext(rl),{basename:o,navigator:s}=A.useContext(Nt),{matches:u}=A.useContext(ia),{pathname:f}=$t(),h=JSON.stringify(Ps(u)),p=A.useRef(!1);return vm(()=>{p.current=!0}),A.useCallback((x,y={})=>{if(Wt(p.current,gm),!p.current)return;if(typeof x=="number"){s.go(x);return}let b=$r(x,JSON.parse(h),f,y.relative==="path");i==null&&o!=="/"&&(b.pathname=b.pathname==="/"?o:la([o,b.pathname])),(y.replace?s.replace:s.push)(b,y.state,y)},[o,s,h,f,i])}A.createContext(null);function fi(i,{relative:o}={}){let{matches:s}=A.useContext(ia),{pathname:u}=$t(),f=JSON.stringify(Ps(s));return A.useMemo(()=>$r(i,JSON.parse(f),u,o==="path"),[i,f,u,o])}function g1(i,o){return xm(i,o)}function xm(i,o,s){Xe(ol(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=A.useContext(Nt),{matches:f}=A.useContext(ia),h=f[f.length-1],p=h?h.params:{},g=h?h.pathname:"/",x=h?h.pathnameBase:"/",y=h&&h.route;{let z=y&&y.path||"";Sm(g,!y||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${z}">) 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="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let b=$t(),v;if(o){let z=typeof o=="string"?il(o):o;Xe(x==="/"||z.pathname?.startsWith(x),`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 "${x}" but pathname "${z.pathname}" was given in the \`location\` prop.`),v=z}else v=b;let M=v.pathname||"/",k=M;if(x!=="/"){let z=x.replace(/^\//,"").split("/");k="/"+M.replace(/^\//,"").split("/").slice(z.length).join("/")}let T=sm(i,{pathname:k});Wt(y||T!=null,`No routes matched location "${v.pathname}${v.search}${v.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 "${v.pathname}${v.search}${v.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 w=E1(T&&T.map(z=>Object.assign({},z,{params:Object.assign({},p,z.params),pathname:la([x,u.encodeLocation?u.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?x:la([x,u.encodeLocation?u.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),f,s);return o&&w?A.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},w):w}function v1(){let i=z1(),o=i1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,u="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:u},h={padding:"2px 4px",backgroundColor:u},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),s?A.createElement("pre",{style:f},s):null,p)}var x1=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 s=p1(i.digest);s&&(i=s)}let o=i!==void 0?A.createElement(ia.Provider,{value:this.props.routeContext},A.createElement(ec.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?A.createElement(b1,{error:i},o):o}};bm.contextType=u1;var Ms=new WeakMap;function b1({children:i,error:o}){let{basename:s}=A.useContext(Nt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let u=h1(o.digest);if(u){let f=Ms.get(o);if(f)throw f;let h=hm(u.location,s);if(dm&&!Ms.get(o))if(h.isExternal||u.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:u.replace}));throw Ms.set(o,p),p}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function S1({routeContext:i,match:o,children:s}){let u=A.useContext(rl);return u&&u.static&&u.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=o.route.id),A.createElement(ia.Provider,{value:i},s)}function E1(i,o=[],s){let u=s?.state;if(i==null){if(!u)return null;if(u.errors)i=u.matches;else if(o.length===0&&!u.initialized&&u.matches.length>0)i=u.matches;else return null}let f=i,h=u?.errors;if(h!=null){let b=f.findIndex(v=>v.route.id&&h?.[v.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(s&&u){p=u.renderFallback;for(let b=0;b<f.length;b++){let v=f[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=b),v.route.id){let{loaderData:M,errors:k}=u,T=v.route.loader&&!M.hasOwnProperty(v.route.id)&&(!k||k[v.route.id]===void 0);if(v.route.lazy||T){s.isStatic&&(p=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let x=s?.onError,y=u&&x?(b,v)=>{x(b,{location:u.location,params:u.matches?.[0]?.params??{},unstable_pattern:r1(u.matches),errorInfo:v})}:void 0;return f.reduceRight((b,v,M)=>{let k,T=!1,w=null,z=null;u&&(k=h&&v.route.id?h[v.route.id]:void 0,w=v.route.errorElement||x1,p&&(g<0&&M===0?(Sm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,z=null):g===M&&(T=!0,z=v.route.hydrateFallbackElement||null)));let X=o.concat(f.slice(0,M+1)),P=()=>{let V;return k?V=w:T?V=z:v.route.Component?V=A.createElement(v.route.Component,null):v.route.element?V=v.route.element:V=b,A.createElement(S1,{match:v,routeContext:{outlet:b,matches:X,isDataRoute:u!=null},children:V})};return u&&(v.route.ErrorBoundary||v.route.errorElement||M===0)?A.createElement(bm,{location:u.location,revalidation:u.revalidation,component:w,error:k,children:P(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:y}):P()},null)}function tc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function j1(i){let o=A.useContext(rl);return Xe(o,tc(i)),o}function A1(i){let o=A.useContext(Ir);return Xe(o,tc(i)),o}function R1(i){let o=A.useContext(ia);return Xe(o,tc(i)),o}function ac(i){let o=R1(i),s=o.matches[o.matches.length-1];return Xe(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function T1(){return ac("useRouteId")}function z1(){let i=A.useContext(ec),o=A1("useRouteError"),s=ac("useRouteError");return i!==void 0?i:o.errors?.[s]}function C1(){let{router:i}=j1("useNavigate"),o=ac("useNavigate"),s=A.useRef(!1);return vm(()=>{s.current=!0}),A.useCallback(async(f,h={})=>{Wt(s.current,gm),s.current&&(typeof f=="number"?await i.navigate(f):await i.navigate(f,{fromRouteId:o,...h}))},[i,o])}var Op={};function Sm(i,o,s){!o&&!Op[i]&&(Op[i]=!0,Wt(!1,s))}A.memo(_1);function _1({routes:i,future:o,state:s,isStatic:u,onError:f}){return xm(i,void 0,{state:s,isStatic:u,onError:f})}function w1({to:i,replace:o,state:s,relative:u}){Xe(ol(),"<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=Pr(),x=$r(i,Ps(h),p,u==="path"),y=JSON.stringify(x);return A.useEffect(()=>{g(JSON.parse(y),{replace:o,state:s,relative:u})},[g,y,u,o,s]),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 O1({basename:i="/",children:o=null,location:s,navigationType:u="POP",navigator:f,static:h=!1,unstable_useTransitions:p}){Xe(!ol(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=i.replace(/^\/*/,"/"),x=A.useMemo(()=>({basename:g,navigator:f,static:h,unstable_useTransitions:p,future:{}}),[g,f,h,p]);typeof s=="string"&&(s=il(s));let{pathname:y="/",search:b="",hash:v="",state:M=null,key:k="default",unstable_mask:T}=s,w=A.useMemo(()=>{let z=Aa(y,g);return z==null?null:{location:{pathname:z,search:b,hash:v,state:M,key:k,unstable_mask:T},navigationType:u}},[g,y,b,v,M,k,u,T]);return Wt(w!=null,`<Router basename="${g}"> is not able to match the URL "${y}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:A.createElement(Nt.Provider,{value:x},A.createElement(ci.Provider,{children:o,value:w}))}function D1({children:i,location:o}){return g1(Xs(i),o)}function Xs(i,o=[]){let s=[];return A.Children.forEach(i,(u,f)=>{if(!A.isValidElement(u))return;let h=[...o,f];if(u.type===A.Fragment){s.push.apply(s,Xs(u.props.children,h));return}Xe(u.type===na,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xe(!u.props.index||!u.props.children,"An index route cannot have child routes.");let p={id:u.props.id||h.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(p.children=Xs(u.props.children,h)),s.push(p)}),s}var Lr="get",qr="application/x-www-form-urlencoded";function eo(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function M1(i){return eo(i)&&i.tagName.toLowerCase()==="button"}function B1(i){return eo(i)&&i.tagName.toLowerCase()==="form"}function N1(i){return eo(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 Nr=null;function k1(){if(Nr===null)try{new FormData(document.createElement("form"),0),Nr=!1}catch{Nr=!0}return Nr}var L1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bs(i){return i!=null&&!L1.has(i)?(Wt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qr}"`),null):i}function q1(i,o){let s,u,f,h,p;if(B1(i)){let g=i.getAttribute("action");u=g?Aa(g,o):null,s=i.getAttribute("method")||Lr,f=Bs(i.getAttribute("enctype"))||qr,h=new FormData(i)}else if(M1(i)||N1(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 x=i.getAttribute("formaction")||g.getAttribute("action");if(u=x?Aa(x,o):null,s=i.getAttribute("formmethod")||g.getAttribute("method")||Lr,f=Bs(i.getAttribute("formenctype"))||Bs(g.getAttribute("enctype"))||qr,h=new FormData(g,i),!k1()){let{name:y,type:b,value:v}=i;if(b==="image"){let M=y?`${y}.`:"";h.append(`${M}x`,"0"),h.append(`${M}y`,"0")}else y&&h.append(y,v)}}else{if(eo(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Lr,u=null,f=qr,p=i}return h&&f==="text/plain"&&(p=h,h=void 0),{action:u,method:s.toLowerCase(),encType:f,formData:h,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function nc(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Y1(i,o,s,u){let f=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${u}`:f.pathname=`${f.pathname}.${u}`:f.pathname==="/"?f.pathname=`_root.${u}`:o&&Aa(f.pathname,o)==="/"?f.pathname=`${o.replace(/\/$/,"")}/_root.${u}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${u}`,f}async function G1(i,o){if(i.id in o)return o[i.id];try{let s=await import(i.module);return o[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function V1(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 X1(i,o,s){let u=await Promise.all(i.map(async f=>{let h=o.routes[f.route.id];if(h){let p=await G1(h,s);return p.links?p.links():[]}return[]}));return J1(u.flat(1).filter(V1).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,s,u,f,h){let p=(x,y)=>s[y]?x.route.id!==s[y].route.id:!0,g=(x,y)=>s[y].pathname!==x.pathname||s[y].route.path?.endsWith("*")&&s[y].params["*"]!==x.params["*"];return h==="assets"?o.filter((x,y)=>p(x,y)||g(x,y)):h==="data"?o.filter((x,y)=>{let b=u.routes[x.route.id];if(!b||!b.hasLoader)return!1;if(p(x,y)||g(x,y))return!0;if(x.route.shouldRevalidate){let v=x.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Q1(i,o,{includeHydrateFallback:s}={}){return Z1(i.map(u=>{let f=o.routes[u.route.id];if(!f)return[];let h=[f.module];return f.clientActionModule&&(h=h.concat(f.clientActionModule)),f.clientLoaderModule&&(h=h.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(h=h.concat(f.hydrateFallbackModule)),f.imports&&(h=h.concat(f.imports)),h}).flat(1))}function Z1(i){return[...new Set(i)]}function K1(i){let o={},s=Object.keys(i).sort();for(let u of s)o[u]=i[u];return o}function J1(i,o){let s=new Set;return new Set(o),i.reduce((u,f)=>{let h=JSON.stringify(K1(f));return s.has(h)||(s.add(h),u.push({key:h,link:f})),u},[])}function Em(){let i=A.useContext(rl);return nc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function F1(){let i=A.useContext(Ir);return nc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var lc=A.createContext(void 0);lc.displayName="FrameworkContext";function jm(){let i=A.useContext(lc);return nc(i,"You must render this element inside a <HydratedRouter> element"),i}function W1(i,o){let s=A.useContext(lc),[u,f]=A.useState(!1),[h,p]=A.useState(!1),{onFocus:g,onBlur:x,onMouseEnter:y,onMouseLeave:b,onTouchStart:v}=o,M=A.useRef(null);A.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let w=X=>{X.forEach(P=>{p(P.isIntersecting)})},z=new IntersectionObserver(w,{threshold:.5});return M.current&&z.observe(M.current),()=>{z.disconnect()}}},[i]),A.useEffect(()=>{if(u){let w=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(w)}}},[u]);let k=()=>{f(!0)},T=()=>{f(!1),p(!1)};return s?i!=="intent"?[h,M,{}]:[h,M,{onFocus:li(g,k),onBlur:li(x,T),onMouseEnter:li(y,k),onMouseLeave:li(b,T),onTouchStart:li(v,k)}]:[!1,M,{}]}function li(i,o){return s=>{i&&i(s),s.defaultPrevented||o(s)}}function $1({page:i,...o}){let{router:s}=Em(),u=A.useMemo(()=>sm(s.routes,i,s.basename),[s.routes,i,s.basename]);return u?A.createElement(P1,{page:i,matches:u,...o}):null}function I1(i){let{manifest:o,routeModules:s}=jm(),[u,f]=A.useState([]);return A.useEffect(()=>{let h=!1;return X1(i,o,s).then(p=>{h||f(p)}),()=>{h=!0}},[i,o,s]),u}function P1({page:i,matches:o,...s}){let u=$t(),{future:f,manifest:h,routeModules:p}=jm(),{basename:g}=Em(),{loaderData:x,matches:y}=F1(),b=A.useMemo(()=>Dp(i,o,y,h,u,"data"),[i,o,y,h,u]),v=A.useMemo(()=>Dp(i,o,y,h,u,"assets"),[i,o,y,h,u]),M=A.useMemo(()=>{if(i===u.pathname+u.search+u.hash)return[];let w=new Set,z=!1;if(o.forEach(P=>{let V=h.routes[P.route.id];!V||!V.hasLoader||(!b.some(le=>le.route.id===P.route.id)&&P.route.id in x&&p[P.route.id]?.shouldRevalidate||V.hasClientLoader?z=!0:w.add(P.route.id))}),w.size===0)return[];let X=Y1(i,g,f.unstable_trailingSlashAwareDataRequests,"data");return z&&w.size>0&&X.searchParams.set("_routes",o.filter(P=>w.has(P.route.id)).map(P=>P.route.id).join(",")),[X.pathname+X.search]},[g,f.unstable_trailingSlashAwareDataRequests,x,u,h,b,o,i,p]),k=A.useMemo(()=>Q1(v,h),[v,h]),T=I1(v);return A.createElement(A.Fragment,null,M.map(w=>A.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...s})),k.map(w=>A.createElement("link",{key:w,rel:"modulepreload",href:w,...s})),T.map(({key:w,link:z})=>A.createElement("link",{key:w,nonce:s.nonce,...z,crossOrigin:z.crossOrigin??s.crossOrigin})))}function ev(...i){return o=>{i.forEach(s=>{typeof s=="function"?s(o):s!=null&&(s.current=o)})}}var tv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tv&&(window.__reactRouterVersion="7.13.1")}catch{}function av({basename:i,children:o,unstable_useTransitions:s,window:u}){let f=A.useRef();f.current==null&&(f.current=Ng({window:u,v5Compat:!0}));let h=f.current,[p,g]=A.useState({action:h.action,location:h.location}),x=A.useCallback(y=>{s===!1?g(y):A.startTransition(()=>g(y))},[s]);return A.useLayoutEffect(()=>h.listen(x),[h,x]),A.createElement(O1,{basename:i,children:o,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:s})}var Am=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kr=A.forwardRef(function({onClick:o,discover:s="render",prefetch:u="none",relative:f,reloadDocument:h,replace:p,unstable_mask:g,state:x,target:y,to:b,preventScrollReset:v,viewTransition:M,unstable_defaultShouldRevalidate:k,...T},w){let{basename:z,navigator:X,unstable_useTransitions:P}=A.useContext(Nt),V=typeof b=="string"&&Am.test(b),le=hm(b,z);b=le.to;let ce=m1(b,{relative:f}),ye=$t(),J=null;if(g){let Oe=$r(g,[],ye.unstable_mask?ye.unstable_mask.pathname:"/",!0);z!=="/"&&(Oe.pathname=Oe.pathname==="/"?z:la([z,Oe.pathname])),J=X.createHref(Oe)}let[we,Be,rt]=W1(u,T),$e=rv(b,{replace:p,unstable_mask:g,state:x,target:y,preventScrollReset:v,relative:f,viewTransition:M,unstable_defaultShouldRevalidate:k,unstable_useTransitions:P});function Z(Oe){o&&o(Oe),Oe.defaultPrevented||$e(Oe)}let de=!(le.isExternal||h),xe=A.createElement("a",{...T,...rt,href:(de?J:void 0)||le.absoluteURL||ce,onClick:de?Z:o,ref:ev(w,Be),target:y,"data-discover":!V&&s==="render"?"true":void 0});return we&&!V?A.createElement(A.Fragment,null,xe,A.createElement($1,{page:ce})):xe});Kr.displayName="Link";var nv=A.forwardRef(function({"aria-current":o="page",caseSensitive:s=!1,className:u="",end:f=!1,style:h,to:p,viewTransition:g,children:x,...y},b){let v=fi(p,{relative:y.relative}),M=$t(),k=A.useContext(Ir),{navigator:T,basename:w}=A.useContext(Nt),z=k!=null&&fv(v)&&g===!0,X=T.encodeLocation?T.encodeLocation(v).pathname:v.pathname,P=M.pathname,V=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;s||(P=P.toLowerCase(),V=V?V.toLowerCase():null,X=X.toLowerCase()),V&&w&&(V=Aa(V,w)||V);const le=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let ce=P===X||!f&&P.startsWith(X)&&P.charAt(le)==="/",ye=V!=null&&(V===X||!f&&V.startsWith(X)&&V.charAt(X.length)==="/"),J={isActive:ce,isPending:ye,isTransitioning:z},we=ce?o:void 0,Be;typeof u=="function"?Be=u(J):Be=[u,ce?"active":null,ye?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let rt=typeof h=="function"?h(J):h;return A.createElement(Kr,{...y,"aria-current":we,className:Be,ref:b,style:rt,to:p,viewTransition:g},typeof x=="function"?x(J):x)});nv.displayName="NavLink";var lv=A.forwardRef(({discover:i="render",fetcherKey:o,navigate:s,reloadDocument:u,replace:f,state:h,method:p=Lr,action:g,onSubmit:x,relative:y,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:M,...k},T)=>{let{unstable_useTransitions:w}=A.useContext(Nt),z=sv(),X=cv(g,{relative:y}),P=p.toLowerCase()==="get"?"get":"post",V=typeof g=="string"&&Am.test(g),le=ce=>{if(x&&x(ce),ce.defaultPrevented)return;ce.preventDefault();let ye=ce.nativeEvent.submitter,J=ye?.getAttribute("formmethod")||p,we=()=>z(ye||ce.currentTarget,{fetcherKey:o,method:J,navigate:s,replace:f,state:h,relative:y,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:M});w&&s!==!1?A.startTransition(()=>we()):we()};return A.createElement("form",{ref:T,method:P,action:X,onSubmit:u?x:le,...k,"data-discover":!V&&i==="render"?"true":void 0})});lv.displayName="Form";function iv(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(rl);return Xe(o,iv(i)),o}function rv(i,{target:o,replace:s,unstable_mask:u,state:f,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:x,unstable_useTransitions:y}={}){let b=Pr(),v=$t(),M=fi(i,{relative:p});return A.useCallback(k=>{if(U1(k,o)){k.preventDefault();let T=s!==void 0?s:oi(v)===oi(M),w=()=>b(i,{replace:T,unstable_mask:u,state:f,preventScrollReset:h,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:x});y?A.startTransition(()=>w()):w()}},[v,b,M,s,u,f,o,i,h,p,g,x,y])}var ov=0,uv=()=>`__${String(++ov)}__`;function sv(){let{router:i}=Rm("useSubmit"),{basename:o}=A.useContext(Nt),s=T1(),u=i.fetch,f=i.navigate;return A.useCallback(async(h,p={})=>{let{action:g,method:x,encType:y,formData:b,body:v}=q1(h,o);if(p.navigate===!1){let M=p.fetcherKey||uv();await u(M,s,p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:v,formMethod:p.method||x,formEncType:p.encType||y,flushSync:p.flushSync})}else await f(p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:b,body:v,formMethod:p.method||x,formEncType:p.encType||y,replace:p.replace,state:p.state,fromRouteId:s,flushSync:p.flushSync,viewTransition:p.viewTransition})},[u,f,o,s])}function cv(i,{relative:o}={}){let{basename:s}=A.useContext(Nt),u=A.useContext(ia);Xe(u,"useFormAction must be used inside a RouteContext");let[f]=u.matches.slice(-1),h={...fi(i||".",{relative:o})},p=$t();if(i==null){h.search=p.search;let g=new URLSearchParams(h.search),x=g.getAll("index");if(x.some(b=>b==="")){g.delete("index"),x.filter(v=>v).forEach(v=>g.append("index",v));let b=g.toString();h.search=b?`?${b}`:""}}return(!i||i===".")&&f.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(h.pathname=h.pathname==="/"?s:la([s,h.pathname])),oi(h)}function fv(i,{relative:o}={}){let s=A.useContext(mm);Xe(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Rm("useViewTransitionState"),f=fi(i,{relative:o});if(!s.isTransitioning)return!1;let h=Aa(s.currentLocation.pathname,u)||s.currentLocation.pathname,p=Aa(s.nextLocation.pathname,u)||s.nextLocation.pathname;return Zr(f.pathname,p)!=null||Zr(f.pathname,h)!=null}const Tm=(...i)=>i.filter((o,s,u)=>!!o&&o.trim()!==""&&u.indexOf(o)===s).join(" ").trim();const dv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const hv=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,s,u)=>u?u.toUpperCase():s.toLowerCase());const Mp=i=>{const o=hv(i);return o.charAt(0).toUpperCase()+o.slice(1)};var pv={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 mv=i=>{for(const o in i)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const yv=A.forwardRef(({color:i="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:u,className:f="",children:h,iconNode:p,...g},x)=>A.createElement("svg",{ref:x,...pv,width:o,height:o,stroke:i,strokeWidth:u?Number(s)*24/Number(o):s,className:Tm("lucide",f),...!h&&!mv(g)&&{"aria-hidden":"true"},...g},[...p.map(([y,b])=>A.createElement(y,b)),...Array.isArray(h)?h:[h]]));const oe=(i,o)=>{const s=A.forwardRef(({className:u,...f},h)=>A.createElement(yv,{ref:h,iconNode:o,className:Tm(`lucide-${dv(Mp(i))}`,`lucide-${i}`,u),...f}));return s.displayName=Mp(i),s};const gv=[["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"}]],Yr=oe("activity",gv);const vv=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],xv=oe("arrow-left",vv);const bv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Sv=oe("arrow-right",bv);const Ev=[["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=oe("bot",Ev);const jv=[["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"}]],Av=oe("camera",jv);const Rv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qs=oe("check",Rv);const Tv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zv=oe("chevron-down",Tv);const Cv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],_v=oe("chevron-left",Cv);const wv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ui=oe("chevron-right",wv);const Ov=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Dv=oe("chevron-up",Ov);const Mv=[["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"}]],Bv=oe("circle-play",Mv);const Nv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Zs=oe("clock",Nv);const Hv=[["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"}]],zm=oe("cpu",Hv);const Uv=[["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"}]],kv=oe("download",Uv);const Lv=[["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"}]],qv=oe("eye",Lv);const Yv=[["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"}]],Hr=oe("file-code",Yv);const Gv=[["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"}]],Ns=oe("file-image",Gv);const Vv=[["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"}]],Ks=oe("file-text",Vv);const Xv=[["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=oe("file",Xv);const Qv=[["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"}]],Hp=oe("folder-plus",Qv);const Zv=[["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=oe("folder",Zv);const Kv=[["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"}]],Jv=oe("funnel",Kv);const Fv=[["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"}]],Wv=oe("github",Fv);const $v=[["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"}]],Iv=oe("globe",$v);const Pv=[["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"}]],ic=oe("hard-drive",Pv);const ex=[["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"}]],tx=oe("layout-dashboard",ex);const ax=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],nx=oe("loader-circle",ax);const lx=[["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"}]],ix=oe("lock",lx);const rx=[["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"}]],rc=oe("message-square",rx);const ox=[["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"}]],ux=oe("mic-off",ox);const sx=[["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"}]],Up=oe("mic",sx);const cx=[["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"}]],fx=oe("panels-top-left",cx);const dx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],hx=oe("plus",dx);const px=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],kp=oe("power",px);const mx=[["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"}]],yx=oe("refresh-cw",mx);const gx=[["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=oe("rotate-ccw",gx);const vx=[["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"}]],xx=oe("save",vx);const bx=[["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"}]],Sx=oe("send",bx);const Ex=[["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"}]],jx=oe("server",Ex);const Ax=[["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"}]],Rx=oe("settings",Ax);const Tx=[["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"}]],si=oe("shield",Tx);const zx=[["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=oe("trash-2",zx);const Cx=[["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"}]],wm=oe("triangle-alert",Cx);const _x=[["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"}]],wx=oe("upload",_x);const Ox=[["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"}]],Om=oe("user",Ox);const Dx=[["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"}]],Jr=oe("wrench",Dx);const Mx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],qp=oe("x",Mx);const Bx=[["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"}]],to=oe("zap",Bx),Nx=[{icon:tx,label:"Control Center",labelHi:"डैशबोर्ड",path:"/"},{icon:rc,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:ic,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:Jr,label:"Modules",path:"/tools"},{icon:to,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:si,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:Rx,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function Hx({user:i,isOpen:o,onToggle:s,onLogout:u}){const f=Pr(),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:s,style:nt.toggleBtn,children:o?c.jsx(_v,{size:18}):c.jsx(ui,{size:18})})]}),c.jsx("nav",{style:nt.nav,children:Nx.map(p=>{const g=p.icon,x=h.pathname===p.path||p.path!=="/"&&h.pathname.startsWith(p.path);return c.jsxs("button",{onClick:()=>f(p.path),style:{...nt.navItem,...x?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}),x&&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 Dm(i,o){return function(){return i.apply(o,arguments)}}const{toString:Ux}=Object.prototype,{getPrototypeOf:oc}=Object,{iterator:ao,toStringTag:Mm}=Symbol,no=(i=>o=>{const s=Ux.call(o);return i[s]||(i[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),It=i=>(i=i.toLowerCase(),o=>no(o)===i),lo=i=>o=>typeof o===i,{isArray:ul}=Array,ll=lo("undefined");function di(i){return i!==null&&!ll(i)&&i.constructor!==null&&!ll(i.constructor)&&jt(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const Bm=It("ArrayBuffer");function kx(i){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(i):o=i&&i.buffer&&Bm(i.buffer),o}const Lx=lo("string"),jt=lo("function"),Nm=lo("number"),hi=i=>i!==null&&typeof i=="object",qx=i=>i===!0||i===!1,Gr=i=>{if(no(i)!=="object")return!1;const o=oc(i);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Mm in i)&&!(ao in i)},Yx=i=>{if(!hi(i)||di(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch{return!1}},Gx=It("Date"),Vx=It("File"),Xx=It("Blob"),Qx=It("FileList"),Zx=i=>hi(i)&&jt(i.pipe),Kx=i=>{let o;return i&&(typeof FormData=="function"&&i instanceof FormData||jt(i.append)&&((o=no(i))==="formdata"||o==="object"&&jt(i.toString)&&i.toString()==="[object FormData]"))},Jx=It("URLSearchParams"),[Fx,Wx,$x,Ix]=["ReadableStream","Request","Response","Headers"].map(It),Px=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pi(i,o,{allOwnKeys:s=!1}={}){if(i===null||typeof i>"u")return;let u,f;if(typeof i!="object"&&(i=[i]),ul(i))for(u=0,f=i.length;u<f;u++)o.call(null,i[u],u,i);else{if(di(i))return;const h=s?Object.getOwnPropertyNames(i):Object.keys(i),p=h.length;let g;for(u=0;u<p;u++)g=h[u],o.call(null,i[g],g,i)}}function Hm(i,o){if(di(i))return null;o=o.toLowerCase();const s=Object.keys(i);let u=s.length,f;for(;u-- >0;)if(f=s[u],o===f.toLowerCase())return f;return null}const gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Um=i=>!ll(i)&&i!==gn;function Js(){const{caseless:i,skipUndefined:o}=Um(this)&&this||{},s={},u=(f,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=i&&Hm(s,h)||h;Gr(s[p])&&Gr(f)?s[p]=Js(s[p],f):Gr(f)?s[p]=Js({},f):ul(f)?s[p]=f.slice():(!o||!ll(f))&&(s[p]=f)};for(let f=0,h=arguments.length;f<h;f++)arguments[f]&&pi(arguments[f],u);return s}const eb=(i,o,s,{allOwnKeys:u}={})=>(pi(o,(f,h)=>{s&&jt(f)?Object.defineProperty(i,h,{value:Dm(f,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(i,h,{value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:u}),i),tb=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),ab=(i,o,s,u)=>{i.prototype=Object.create(o.prototype,u),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(i,"super",{value:o.prototype}),s&&Object.assign(i.prototype,s)},nb=(i,o,s,u)=>{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],(!u||u(p,i,o))&&!g[p]&&(o[p]=i[p],g[p]=!0);i=s!==!1&&oc(i)}while(i&&(!s||s(i,o))&&i!==Object.prototype);return o},lb=(i,o,s)=>{i=String(i),(s===void 0||s>i.length)&&(s=i.length),s-=o.length;const u=i.indexOf(o,s);return u!==-1&&u===s},ib=i=>{if(!i)return null;if(ul(i))return i;let o=i.length;if(!Nm(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=i[o];return s},rb=(i=>o=>i&&o instanceof i)(typeof Uint8Array<"u"&&oc(Uint8Array)),ob=(i,o)=>{const u=(i&&i[ao]).call(i);let f;for(;(f=u.next())&&!f.done;){const h=f.value;o.call(i,h[0],h[1])}},ub=(i,o)=>{let s;const u=[];for(;(s=i.exec(o))!==null;)u.push(s);return u},sb=It("HTMLFormElement"),cb=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,u,f){return u.toUpperCase()+f}),Yp=(({hasOwnProperty:i})=>(o,s)=>i.call(o,s))(Object.prototype),fb=It("RegExp"),km=(i,o)=>{const s=Object.getOwnPropertyDescriptors(i),u={};pi(s,(f,h)=>{let p;(p=o(f,h,i))!==!1&&(u[h]=p||f)}),Object.defineProperties(i,u)},db=i=>{km(i,(o,s)=>{if(jt(i)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const u=i[s];if(jt(u)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},hb=(i,o)=>{const s={},u=f=>{f.forEach(h=>{s[h]=!0})};return ul(i)?u(i):u(String(i).split(o)),s},pb=()=>{},mb=(i,o)=>i!=null&&Number.isFinite(i=+i)?i:o;function yb(i){return!!(i&&jt(i.append)&&i[Mm]==="FormData"&&i[ao])}const gb=i=>{const o=new Array(10),s=(u,f)=>{if(hi(u)){if(o.indexOf(u)>=0)return;if(di(u))return u;if(!("toJSON"in u)){o[f]=u;const h=ul(u)?[]:{};return pi(u,(p,g)=>{const x=s(p,f+1);!ll(x)&&(h[g]=x)}),o[f]=void 0,h}}return u};return s(i,0)},vb=It("AsyncFunction"),xb=i=>i&&(hi(i)||jt(i))&&jt(i.then)&&jt(i.catch),Lm=((i,o)=>i?setImmediate:o?((s,u)=>(gn.addEventListener("message",({source:f,data:h})=>{f===gn&&h===s&&u.length&&u.shift()()},!1),f=>{u.push(f),gn.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",jt(gn.postMessage)),bb=typeof queueMicrotask<"u"?queueMicrotask.bind(gn):typeof process<"u"&&process.nextTick||Lm,Sb=i=>i!=null&&jt(i[ao]),N={isArray:ul,isArrayBuffer:Bm,isBuffer:di,isFormData:Kx,isArrayBufferView:kx,isString:Lx,isNumber:Nm,isBoolean:qx,isObject:hi,isPlainObject:Gr,isEmptyObject:Yx,isReadableStream:Fx,isRequest:Wx,isResponse:$x,isHeaders:Ix,isUndefined:ll,isDate:Gx,isFile:Vx,isBlob:Xx,isRegExp:fb,isFunction:jt,isStream:Zx,isURLSearchParams:Jx,isTypedArray:rb,isFileList:Qx,forEach:pi,merge:Js,extend:eb,trim:Px,stripBOM:tb,inherits:ab,toFlatObject:nb,kindOf:no,kindOfTest:It,endsWith:lb,toArray:ib,forEachEntry:ob,matchAll:ub,isHTMLForm:sb,hasOwnProperty:Yp,hasOwnProp:Yp,reduceDescriptors:km,freezeMethods:db,toObjectSet:hb,toCamelCase:cb,noop:pb,toFiniteNumber:mb,findKey:Hm,global:gn,isContextDefined:Um,isSpecCompliantForm:yb,toJSONObject:gb,isAsyncFn:vb,isThenable:xb,setImmediate:Lm,asap:bb,isIterable:Sb};let re=class qm extends Error{static from(o,s,u,f,h,p){const g=new qm(o.message,s||o.code,u,f,h);return g.cause=o,g.name=o.name,p&&Object.assign(g,p),g}constructor(o,s,u,f,h){super(o),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),u&&(this.config=u),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}}};re.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";re.ERR_BAD_OPTION="ERR_BAD_OPTION";re.ECONNABORTED="ECONNABORTED";re.ETIMEDOUT="ETIMEDOUT";re.ERR_NETWORK="ERR_NETWORK";re.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";re.ERR_DEPRECATED="ERR_DEPRECATED";re.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";re.ERR_BAD_REQUEST="ERR_BAD_REQUEST";re.ERR_CANCELED="ERR_CANCELED";re.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";re.ERR_INVALID_URL="ERR_INVALID_URL";const Eb=null;function Fs(i){return N.isPlainObject(i)||N.isArray(i)}function Ym(i){return N.endsWith(i,"[]")?i.slice(0,-2):i}function Gp(i,o,s){return i?i.concat(o).map(function(f,h){return f=Ym(f),!s&&h?"["+f+"]":f}).join(s?".":""):o}function jb(i){return N.isArray(i)&&!i.some(Fs)}const Ab=N.toFlatObject(N,{},null,function(o){return/^is[A-Z]/.test(o)});function io(i,o,s){if(!N.isObject(i))throw new TypeError("target must be an object");o=o||new FormData,s=N.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,z){return!N.isUndefined(z[w])});const u=s.metaTokens,f=s.visitor||b,h=s.dots,p=s.indexes,x=(s.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(!x&&N.isBlob(T))throw new re("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(T)||N.isTypedArray(T)?x&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function b(T,w,z){let X=T;if(T&&!z&&typeof T=="object"){if(N.endsWith(w,"{}"))w=u?w:w.slice(0,-2),T=JSON.stringify(T);else if(N.isArray(T)&&jb(T)||(N.isFileList(T)||N.endsWith(w,"[]"))&&(X=N.toArray(T)))return w=Ym(w),X.forEach(function(V,le){!(N.isUndefined(V)||V===null)&&o.append(p===!0?Gp([w],le,h):p===null?w:w+"[]",y(V))}),!1}return Fs(T)?!0:(o.append(Gp(z,w,h),y(T)),!1)}const v=[],M=Object.assign(Ab,{defaultVisitor:b,convertValue:y,isVisitable:Fs});function k(T,w){if(!N.isUndefined(T)){if(v.indexOf(T)!==-1)throw Error("Circular reference detected in "+w.join("."));v.push(T),N.forEach(T,function(X,P){(!(N.isUndefined(X)||X===null)&&f.call(o,X,N.isString(P)?P.trim():P,w,M))===!0&&k(X,w?w.concat(P):[P])}),v.pop()}}if(!N.isObject(i))throw new TypeError("data must be an object");return k(i),o}function Vp(i){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(u){return o[u]})}function uc(i,o){this._pairs=[],i&&io(i,this,o)}const Gm=uc.prototype;Gm.append=function(o,s){this._pairs.push([o,s])};Gm.toString=function(o){const s=o?function(u){return o.call(this,u,Vp)}:Vp;return this._pairs.map(function(f){return s(f[0])+"="+s(f[1])},"").join("&")};function Rb(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vm(i,o,s){if(!o)return i;const u=s&&s.encode||Rb,f=N.isFunction(s)?{serialize:s}:s,h=f&&f.serialize;let p;if(h?p=h(o,f):p=N.isURLSearchParams(o)?o.toString():new uc(o,f).toString(u),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,s,u){return this.handlers.push({fulfilled:o,rejected:s,synchronous:u?u.synchronous:!1,runWhen:u?u.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(u){u!==null&&o(u)})}}const sc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Tb=typeof URLSearchParams<"u"?URLSearchParams:uc,zb=typeof FormData<"u"?FormData:null,Cb=typeof Blob<"u"?Blob:null,_b={isBrowser:!0,classes:{URLSearchParams:Tb,FormData:zb,Blob:Cb},protocols:["http","https","file","blob","url","data"]},cc=typeof window<"u"&&typeof document<"u",Ws=typeof navigator=="object"&&navigator||void 0,wb=cc&&(!Ws||["ReactNative","NativeScript","NS"].indexOf(Ws.product)<0),Ob=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Db=cc&&window.location.href||"http://localhost",Mb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cc,hasStandardBrowserEnv:wb,hasStandardBrowserWebWorkerEnv:Ob,navigator:Ws,origin:Db},Symbol.toStringTag,{value:"Module"})),pt={...Mb,..._b};function Bb(i,o){return io(i,new pt.classes.URLSearchParams,{visitor:function(s,u,f,h){return pt.isNode&&N.isBuffer(s)?(this.append(u,s.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...o})}function Nb(i){return N.matchAll(/\w+|\[(\w*)]/g,i).map(o=>o[0]==="[]"?"":o[1]||o[0])}function Hb(i){const o={},s=Object.keys(i);let u;const f=s.length;let h;for(u=0;u<f;u++)h=s[u],o[h]=i[h];return o}function Xm(i){function o(s,u,f,h){let p=s[h++];if(p==="__proto__")return!0;const g=Number.isFinite(+p),x=h>=s.length;return p=!p&&N.isArray(f)?f.length:p,x?(N.hasOwnProp(f,p)?f[p]=[f[p],u]:f[p]=u,!g):((!f[p]||!N.isObject(f[p]))&&(f[p]=[]),o(s,u,f[p],h)&&N.isArray(f[p])&&(f[p]=Hb(f[p])),!g)}if(N.isFormData(i)&&N.isFunction(i.entries)){const s={};return N.forEachEntry(i,(u,f)=>{o(Nb(u),f,s,0)}),s}return null}function Ub(i,o,s){if(N.isString(i))try{return(o||JSON.parse)(i),N.trim(i)}catch(u){if(u.name!=="SyntaxError")throw u}return(s||JSON.stringify)(i)}const mi={transitional:sc,adapter:["xhr","http","fetch"],transformRequest:[function(o,s){const u=s.getContentType()||"",f=u.indexOf("application/json")>-1,h=N.isObject(o);if(h&&N.isHTMLForm(o)&&(o=new FormData(o)),N.isFormData(o))return f?JSON.stringify(Xm(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 s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let g;if(h){if(u.indexOf("application/x-www-form-urlencoded")>-1)return Bb(o,this.formSerializer).toString();if((g=N.isFileList(o))||u.indexOf("multipart/form-data")>-1){const x=this.env&&this.env.FormData;return io(g?{"files[]":o}:o,x&&new x,this.formSerializer)}}return h||f?(s.setContentType("application/json",!1),Ub(o)):o}],transformResponse:[function(o){const s=this.transitional||mi.transitional,u=s&&s.forcedJSONParsing,f=this.responseType==="json";if(N.isResponse(o)||N.isReadableStream(o))return o;if(o&&N.isString(o)&&(u&&!this.responseType||f)){const p=!(s&&s.silentJSONParsing)&&f;try{return JSON.parse(o,this.parseReviver)}catch(g){if(p)throw g.name==="SyntaxError"?re.from(g,re.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=>{mi.headers[i]={}});const kb=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"]),Lb=i=>{const o={};let s,u,f;return i&&i.split(`
12
- `).forEach(function(p){f=p.indexOf(":"),s=p.substring(0,f).trim().toLowerCase(),u=p.substring(f+1).trim(),!(!s||o[s]&&kb[s])&&(s==="set-cookie"?o[s]?o[s].push(u):o[s]=[u]:o[s]=o[s]?o[s]+", "+u:u)}),o},Qp=Symbol("internals");function ii(i){return i&&String(i).trim().toLowerCase()}function Vr(i){return i===!1||i==null?i:N.isArray(i)?i.map(Vr):String(i)}function qb(i){const o=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let u;for(;u=s.exec(i);)o[u[1]]=u[2];return o}const Yb=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function Hs(i,o,s,u,f){if(N.isFunction(u))return u.call(this,o,s);if(f&&(o=s),!!N.isString(o)){if(N.isString(u))return o.indexOf(u)!==-1;if(N.isRegExp(u))return u.test(o)}}function Gb(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,s,u)=>s.toUpperCase()+u)}function Vb(i,o){const s=N.toCamelCase(" "+o);["get","set","has"].forEach(u=>{Object.defineProperty(i,u+s,{value:function(f,h,p){return this[u].call(this,o,f,h,p)},configurable:!0})})}let At=class{constructor(o){o&&this.set(o)}set(o,s,u){const f=this;function h(g,x,y){const b=ii(x);if(!b)throw new Error("header name must be a non-empty string");const v=N.findKey(f,b);(!v||f[v]===void 0||y===!0||y===void 0&&f[v]!==!1)&&(f[v||x]=Vr(g))}const p=(g,x)=>N.forEach(g,(y,b)=>h(y,b,x));if(N.isPlainObject(o)||o instanceof this.constructor)p(o,s);else if(N.isString(o)&&(o=o.trim())&&!Yb(o))p(Lb(o),s);else if(N.isObject(o)&&N.isIterable(o)){let g={},x,y;for(const b of o){if(!N.isArray(b))throw TypeError("Object iterator must return a key-value pair");g[y=b[0]]=(x=g[y])?N.isArray(x)?[...x,b[1]]:[x,b[1]]:b[1]}p(g,s)}else o!=null&&h(s,o,u);return this}get(o,s){if(o=ii(o),o){const u=N.findKey(this,o);if(u){const f=this[u];if(!s)return f;if(s===!0)return qb(f);if(N.isFunction(s))return s.call(this,f,u);if(N.isRegExp(s))return s.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,s){if(o=ii(o),o){const u=N.findKey(this,o);return!!(u&&this[u]!==void 0&&(!s||Hs(this,this[u],u,s)))}return!1}delete(o,s){const u=this;let f=!1;function h(p){if(p=ii(p),p){const g=N.findKey(u,p);g&&(!s||Hs(u,u[g],g,s))&&(delete u[g],f=!0)}}return N.isArray(o)?o.forEach(h):h(o),f}clear(o){const s=Object.keys(this);let u=s.length,f=!1;for(;u--;){const h=s[u];(!o||Hs(this,this[h],h,o,!0))&&(delete this[h],f=!0)}return f}normalize(o){const s=this,u={};return N.forEach(this,(f,h)=>{const p=N.findKey(u,h);if(p){s[p]=Vr(f),delete s[h];return}const g=o?Gb(h):String(h).trim();g!==h&&delete s[h],s[g]=Vr(f),u[g]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const s=Object.create(null);return N.forEach(this,(u,f)=>{u!=null&&u!==!1&&(s[f]=o&&N.isArray(u)?u.join(", "):u)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,s])=>o+": "+s).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,...s){const u=new this(o);return s.forEach(f=>u.set(f)),u}static accessor(o){const u=(this[Qp]=this[Qp]={accessors:{}}).accessors,f=this.prototype;function h(p){const g=ii(p);u[g]||(Vb(f,p),u[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 s=o[0].toUpperCase()+o.slice(1);return{get:()=>i,set(u){this[s]=u}}});N.freezeMethods(At);function Us(i,o){const s=this||mi,u=o||s,f=At.from(u.headers);let h=u.data;return N.forEach(i,function(g){h=g.call(s,h,f.normalize(),o?o.status:void 0)}),f.normalize(),h}function Qm(i){return!!(i&&i.__CANCEL__)}let yi=class extends re{constructor(o,s,u){super(o??"canceled",re.ERR_CANCELED,s,u),this.name="CanceledError",this.__CANCEL__=!0}};function Zm(i,o,s){const u=s.config.validateStatus;!s.status||!u||u(s.status)?i(s):o(new re("Request failed with status code "+s.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function Xb(i){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return o&&o[1]||""}function Qb(i,o){i=i||10;const s=new Array(i),u=new Array(i);let f=0,h=0,p;return o=o!==void 0?o:1e3,function(x){const y=Date.now(),b=u[h];p||(p=y),s[f]=x,u[f]=y;let v=h,M=0;for(;v!==f;)M+=s[v++],v=v%i;if(f=(f+1)%i,f===h&&(h=(h+1)%i),y-p<o)return;const k=b&&y-b;return k?Math.round(M*1e3/k):void 0}}function Zb(i,o){let s=0,u=1e3/o,f,h;const p=(y,b=Date.now())=>{s=b,f=null,h&&(clearTimeout(h),h=null),i(...y)};return[(...y)=>{const b=Date.now(),v=b-s;v>=u?p(y,b):(f=y,h||(h=setTimeout(()=>{h=null,p(f)},u-v)))},()=>f&&p(f)]}const Fr=(i,o,s=3)=>{let u=0;const f=Qb(50,250);return Zb(h=>{const p=h.loaded,g=h.lengthComputable?h.total:void 0,x=p-u,y=f(x),b=p<=g;u=p;const v={loaded:p,total:g,progress:g?p/g:void 0,bytes:x,rate:y||void 0,estimated:y&&g&&b?(g-p)/y:void 0,event:h,lengthComputable:g!=null,[o?"download":"upload"]:!0};i(v)},s)},Zp=(i,o)=>{const s=i!=null;return[u=>o[0]({lengthComputable:s,total:i,loaded:u}),o[1]]},Kp=i=>(...o)=>N.asap(()=>i(...o)),Kb=pt.hasStandardBrowserEnv?((i,o)=>s=>(s=new URL(s,pt.origin),i.protocol===s.protocol&&i.host===s.host&&(o||i.port===s.port)))(new URL(pt.origin),pt.navigator&&/(msie|trident)/i.test(pt.navigator.userAgent)):()=>!0,Jb=pt.hasStandardBrowserEnv?{write(i,o,s,u,f,h,p){if(typeof document>"u")return;const g=[`${i}=${encodeURIComponent(o)}`];N.isNumber(s)&&g.push(`expires=${new Date(s).toUTCString()}`),N.isString(u)&&g.push(`path=${u}`),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 Fb(i){return typeof i!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function Wb(i,o){return o?i.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):i}function Km(i,o,s){let u=!Fb(o);return i&&(u||s==!1)?Wb(i,o):o}const Jp=i=>i instanceof At?{...i}:i;function xn(i,o){o=o||{};const s={};function u(y,b,v,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,v,M){if(N.isUndefined(b)){if(!N.isUndefined(y))return u(void 0,y,v,M)}else return u(y,b,v,M)}function h(y,b){if(!N.isUndefined(b))return u(void 0,b)}function p(y,b){if(N.isUndefined(b)){if(!N.isUndefined(y))return u(void 0,y)}else return u(void 0,b)}function g(y,b,v){if(v in o)return u(y,b);if(v in i)return u(void 0,y)}const x={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,v)=>f(Jp(y),Jp(b),v,!0)};return N.forEach(Object.keys({...i,...o}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const v=N.hasOwnProp(x,b)?x[b]:f,M=v(i[b],o[b],b);N.isUndefined(M)&&v!==g||(s[b]=M)}),s}const Jm=i=>{const o=xn({},i);let{data:s,withXSRFToken:u,xsrfHeaderName:f,xsrfCookieName:h,headers:p,auth:g}=o;if(o.headers=p=At.from(p),o.url=Vm(Km(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(s)){if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(N.isFunction(s.getHeaders)){const x=s.getHeaders(),y=["content-type","content-length"];Object.entries(x).forEach(([b,v])=>{y.includes(b.toLowerCase())&&p.set(b,v)})}}if(pt.hasStandardBrowserEnv&&(u&&N.isFunction(u)&&(u=u(o)),u||u!==!1&&Kb(o.url))){const x=f&&h&&Jb.read(h);x&&p.set(f,x)}return o},$b=typeof XMLHttpRequest<"u",Ib=$b&&function(i){return new Promise(function(s,u){const f=Jm(i);let h=f.data;const p=At.from(f.headers).normalize();let{responseType:g,onUploadProgress:x,onDownloadProgress:y}=f,b,v,M,k,T;function w(){k&&k(),T&&T(),f.cancelToken&&f.cancelToken.unsubscribe(b),f.signal&&f.signal.removeEventListener("abort",b)}let z=new XMLHttpRequest;z.open(f.method.toUpperCase(),f.url,!0),z.timeout=f.timeout;function X(){if(!z)return;const V=At.from("getAllResponseHeaders"in z&&z.getAllResponseHeaders()),ce={data:!g||g==="text"||g==="json"?z.responseText:z.response,status:z.status,statusText:z.statusText,headers:V,config:i,request:z};Zm(function(J){s(J),w()},function(J){u(J),w()},ce),z=null}"onloadend"in z?z.onloadend=X:z.onreadystatechange=function(){!z||z.readyState!==4||z.status===0&&!(z.responseURL&&z.responseURL.indexOf("file:")===0)||setTimeout(X)},z.onabort=function(){z&&(u(new re("Request aborted",re.ECONNABORTED,i,z)),z=null)},z.onerror=function(le){const ce=le&&le.message?le.message:"Network Error",ye=new re(ce,re.ERR_NETWORK,i,z);ye.event=le||null,u(ye),z=null},z.ontimeout=function(){let le=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const ce=f.transitional||sc;f.timeoutErrorMessage&&(le=f.timeoutErrorMessage),u(new re(le,ce.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,i,z)),z=null},h===void 0&&p.setContentType(null),"setRequestHeader"in z&&N.forEach(p.toJSON(),function(le,ce){z.setRequestHeader(ce,le)}),N.isUndefined(f.withCredentials)||(z.withCredentials=!!f.withCredentials),g&&g!=="json"&&(z.responseType=f.responseType),y&&([M,T]=Fr(y,!0),z.addEventListener("progress",M)),x&&z.upload&&([v,k]=Fr(x),z.upload.addEventListener("progress",v),z.upload.addEventListener("loadend",k)),(f.cancelToken||f.signal)&&(b=V=>{z&&(u(!V||V.type?new yi(null,i,z):V),z.abort(),z=null)},f.cancelToken&&f.cancelToken.subscribe(b),f.signal&&(f.signal.aborted?b():f.signal.addEventListener("abort",b)));const P=Xb(f.url);if(P&&pt.protocols.indexOf(P)===-1){u(new re("Unsupported protocol "+P+":",re.ERR_BAD_REQUEST,i));return}z.send(h||null)})},Pb=(i,o)=>{const{length:s}=i=i?i.filter(Boolean):[];if(o||s){let u=new AbortController,f;const h=function(y){if(!f){f=!0,g();const b=y instanceof Error?y:this.reason;u.abort(b instanceof re?b:new yi(b instanceof Error?b.message:b))}};let p=o&&setTimeout(()=>{p=null,h(new re(`timeout of ${o}ms exceeded`,re.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:x}=u;return x.unsubscribe=()=>N.asap(g),x}},e2=function*(i,o){let s=i.byteLength;if(s<o){yield i;return}let u=0,f;for(;u<s;)f=u+o,yield i.slice(u,f),u=f},t2=async function*(i,o){for await(const s of a2(i))yield*e2(s,o)},a2=async function*(i){if(i[Symbol.asyncIterator]){yield*i;return}const o=i.getReader();try{for(;;){const{done:s,value:u}=await o.read();if(s)break;yield u}}finally{await o.cancel()}},Fp=(i,o,s,u)=>{const f=t2(i,o);let h=0,p,g=x=>{p||(p=!0,u&&u(x))};return new ReadableStream({async pull(x){try{const{done:y,value:b}=await f.next();if(y){g(),x.close();return}let v=b.byteLength;if(s){let M=h+=v;s(M)}x.enqueue(new Uint8Array(b))}catch(y){throw g(y),y}},cancel(x){return g(x),f.return()}},{highWaterMark:2})},Wp=64*1024,{isFunction:Ur}=N,n2=(({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}},l2=i=>{i=N.merge.call({skipUndefined:!0},n2,i);const{fetch:o,Request:s,Response:u}=i,f=o?Ur(o):typeof fetch=="function",h=Ur(s),p=Ur(u);if(!f)return!1;const g=f&&Ur($p),x=f&&(typeof Ip=="function"?(T=>w=>T.encode(w))(new Ip):async T=>new Uint8Array(await new s(T).arrayBuffer())),y=h&&g&&Pp(()=>{let T=!1;const w=new s(pt.origin,{body:new $p,method:"POST",get duplex(){return T=!0,"half"}}).headers.has("Content-Type");return T&&!w}),b=p&&g&&Pp(()=>N.isReadableStream(new u("").body)),v={stream:b&&(T=>T.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(T=>{!v[T]&&(v[T]=(w,z)=>{let X=w&&w[T];if(X)return X.call(w);throw new re(`Response type '${T}' is not supported`,re.ERR_NOT_SUPPORT,z)})});const M=async T=>{if(T==null)return 0;if(N.isBlob(T))return T.size;if(N.isSpecCompliantForm(T))return(await new s(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 x(T)).byteLength},k=async(T,w)=>{const z=N.toFiniteNumber(T.getContentLength());return z??M(w)};return async T=>{let{url:w,method:z,data:X,signal:P,cancelToken:V,timeout:le,onDownloadProgress:ce,onUploadProgress:ye,responseType:J,headers:we,withCredentials:Be="same-origin",fetchOptions:rt}=Jm(T),$e=o||fetch;J=J?(J+"").toLowerCase():"text";let Z=Pb([P,V&&V.toAbortSignal()],le),de=null;const xe=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let Oe;try{if(ye&&y&&z!=="get"&&z!=="head"&&(Oe=await k(we,X))!==0){let S=new s(w,{method:"POST",body:X,duplex:"half"}),B;if(N.isFormData(X)&&(B=S.headers.get("content-type"))&&we.setContentType(B),S.body){const[Y,G]=Zp(Oe,Fr(Kp(ye)));X=Fp(S.body,Wp,Y,G)}}N.isString(Be)||(Be=Be?"include":"omit");const D=h&&"credentials"in s.prototype,Q={...rt,signal:Z,method:z.toUpperCase(),headers:we.normalize().toJSON(),body:X,duplex:"half",credentials:D?Be:void 0};de=h&&new s(w,Q);let ae=await(h?$e(de,rt):$e(w,Q));const Re=b&&(J==="stream"||J==="response");if(b&&(ce||Re&&xe)){const S={};["status","statusText","headers"].forEach(I=>{S[I]=ae[I]});const B=N.toFiniteNumber(ae.headers.get("content-length")),[Y,G]=ce&&Zp(B,Fr(Kp(ce),!0))||[];ae=new u(Fp(ae.body,Wp,Y,()=>{G&&G(),xe&&xe()}),S)}J=J||"text";let K=await v[N.findKey(v,J)||"text"](ae,T);return!Re&&xe&&xe(),await new Promise((S,B)=>{Zm(S,B,{data:K,headers:At.from(ae.headers),status:ae.status,statusText:ae.statusText,config:T,request:de})})}catch(D){throw xe&&xe(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,T,de,D&&D.response),{cause:D.cause||D}):re.from(D,D&&D.code,T,de,D&&D.response)}}},i2=new Map,Fm=i=>{let o=i&&i.env||{};const{fetch:s,Request:u,Response:f}=o,h=[u,f,s];let p=h.length,g=p,x,y,b=i2;for(;g--;)x=h[g],y=b.get(x),y===void 0&&b.set(x,y=g?new Map:l2(o)),b=y;return y};Fm();const fc={http:Eb,xhr:Ib,fetch:{get:Fm}};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}`,r2=i=>N.isFunction(i)||i===null||i===!1;function o2(i,o){i=N.isArray(i)?i:[i];const{length:s}=i;let u,f;const h={};for(let p=0;p<s;p++){u=i[p];let g;if(f=u,!r2(u)&&(f=fc[(g=String(u)).toLowerCase()],f===void 0))throw new re(`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(([x,y])=>`adapter ${x} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=s?p.length>1?`since :
14
- `+p.map(em).join(`
15
- `):" "+em(p[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return f}const Wm={getAdapter:o2,adapters:fc};function ks(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new yi(null,i)}function tm(i){return ks(i),i.headers=At.from(i.headers),i.data=Us.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),Wm.getAdapter(i.adapter||mi.adapter,i)(i).then(function(u){return ks(i),u.data=Us.call(i,i.transformResponse,u),u.headers=At.from(u.headers),u},function(u){return Qm(u)||(ks(i),u&&u.response&&(u.response.data=Us.call(i,i.transformResponse,u.response),u.response.headers=At.from(u.response.headers))),Promise.reject(u)})}const $m="1.13.5",ro={};["object","boolean","number","function","string","symbol"].forEach((i,o)=>{ro[i]=function(u){return typeof u===i||"a"+(o<1?"n ":" ")+i}});const am={};ro.transitional=function(o,s,u){function f(h,p){return"[Axios v"+$m+"] Transitional option '"+h+"'"+p+(u?". "+u:"")}return(h,p,g)=>{if(o===!1)throw new re(f(p," has been removed"+(s?" in "+s:"")),re.ERR_DEPRECATED);return s&&!am[p]&&(am[p]=!0,console.warn(f(p," has been deprecated since v"+s+" and will be removed in the near future"))),o?o(h,p,g):!0}};ro.spelling=function(o){return(s,u)=>(console.warn(`${u} is likely a misspelling of ${o}`),!0)};function u2(i,o,s){if(typeof i!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const u=Object.keys(i);let f=u.length;for(;f-- >0;){const h=u[f],p=o[h];if(p){const g=i[h],x=g===void 0||p(g,h,i);if(x!==!0)throw new re("option "+h+" must be "+x,re.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new re("Unknown option "+h,re.ERR_BAD_OPTION)}}const Xr={assertOptions:u2,validators:ro},Zt=Xr.validators;let vn=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Xp,response:new Xp}}async request(o,s){try{return await this._request(o,s)}catch(u){if(u instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const h=f.stack?f.stack.replace(/^.+\n/,""):"";try{u.stack?h&&!String(u.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(u.stack+=`
16
- `+h):u.stack=h}catch{}}throw u}}_request(o,s){typeof o=="string"?(s=s||{},s.url=o):s=o||{},s=xn(this.defaults,s);const{transitional:u,paramsSerializer:f,headers:h}=s;u!==void 0&&Xr.assertOptions(u,{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)?s.paramsSerializer={serialize:f}:Xr.assertOptions(f,{encode:Zt.function,serialize:Zt.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Xr.assertOptions(s,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let p=h&&N.merge(h.common,h[s.method]);h&&N.forEach(["delete","get","head","post","put","patch","common"],T=>{delete h[T]}),s.headers=At.concat(p,h);const g=[];let x=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(s)===!1)return;x=x&&w.synchronous;const z=s.transitional||sc;z&&z.legacyInterceptorReqResOrdering?g.unshift(w.fulfilled,w.rejected):g.push(w.fulfilled,w.rejected)});const y=[];this.interceptors.response.forEach(function(w){y.push(w.fulfilled,w.rejected)});let b,v=0,M;if(!x){const T=[tm.bind(this),void 0];for(T.unshift(...g),T.push(...y),M=T.length,b=Promise.resolve(s);v<M;)b=b.then(T[v++],T[v++]);return b}M=g.length;let k=s;for(;v<M;){const T=g[v++],w=g[v++];try{k=T(k)}catch(z){w.call(this,z);break}}try{b=tm.call(this,k)}catch(T){return Promise.reject(T)}for(v=0,M=y.length;v<M;)b=b.then(y[v++],y[v++]);return b}getUri(o){o=xn(this.defaults,o);const s=Km(o.baseURL,o.url,o.allowAbsoluteUrls);return Vm(s,o.params,o.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(o){vn.prototype[o]=function(s,u){return this.request(xn(u||{},{method:o,url:s,data:(u||{}).data}))}});N.forEach(["post","put","patch"],function(o){function s(u){return function(h,p,g){return this.request(xn(g||{},{method:o,headers:u?{"Content-Type":"multipart/form-data"}:{},url:h,data:p}))}}vn.prototype[o]=s(),vn.prototype[o+"Form"]=s(!0)});let s2=class Im{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(h){s=h});const u=this;this.promise.then(f=>{if(!u._listeners)return;let h=u._listeners.length;for(;h-- >0;)u._listeners[h](f);u._listeners=null}),this.promise.then=f=>{let h;const p=new Promise(g=>{u.subscribe(g),h=g}).then(f);return p.cancel=function(){u.unsubscribe(h)},p},o(function(h,p,g){u.reason||(u.reason=new yi(h,p,g),s(u.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 s=this._listeners.indexOf(o);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const o=new AbortController,s=u=>{o.abort(u)};return this.subscribe(s),o.signal.unsubscribe=()=>this.unsubscribe(s),o.signal}static source(){let o;return{token:new Im(function(f){o=f}),cancel:o}}};function c2(i){return function(s){return i.apply(null,s)}}function f2(i){return N.isObject(i)&&i.isAxiosError===!0}const $s={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($s).forEach(([i,o])=>{$s[o]=i});function Pm(i){const o=new vn(i),s=Dm(vn.prototype.request,o);return N.extend(s,vn.prototype,o,{allOwnKeys:!0}),N.extend(s,o,null,{allOwnKeys:!0}),s.create=function(f){return Pm(xn(i,f))},s}const We=Pm(mi);We.Axios=vn;We.CanceledError=yi;We.CancelToken=s2;We.isCancel=Qm;We.VERSION=$m;We.toFormData=io;We.AxiosError=re;We.Cancel=We.CanceledError;We.all=function(o){return Promise.all(o)};We.spread=c2;We.isAxiosError=f2;We.mergeConfig=xn;We.AxiosHeaders=At;We.formToJSON=i=>Xm(N.isHTMLForm(i)?new FormData(i):i);We.getAdapter=Wm.getAdapter;We.HttpStatusCode=$s;We.default=We;const{Axios:M2,AxiosError:B2,CanceledError:N2,isCancel:H2,CancelToken:U2,VERSION:k2,all:L2,Cancel:q2,isAxiosError:Y2,spread:G2,toFormData:V2,AxiosHeaders:X2,HttpStatusCode:Q2,formToJSON:Z2,getAdapter:K2,mergeConfig:J2}=We,e0="/api",ke=We.create({baseURL:e0,headers:{"Content-Type":"application/json"}});ke.interceptors.request.use(i=>{const o=localStorage.getItem("samarthya_token");return o&&(i.headers.Authorization=`Bearer ${o}`),i});const dc={register:i=>ke.post("/auth/register",i),login:i=>ke.post("/auth/login",i),demoLogin:()=>ke.post("/auth/demo"),getProfile:()=>ke.get("/auth/profile"),updateProfile:i=>ke.put("/auth/profile",i)},ri={sendMessage:i=>ke.post("/chat/message",i),getConversations:()=>ke.get("/chat/conversations"),getConversation:i=>ke.get(`/chat/conversations/${i}`),deleteConversation:i=>ke.delete(`/chat/conversations/${i}`),togglePin:i=>ke.patch(`/chat/conversations/${i}/pin`)},Qr={getLogs:i=>ke.get("/audit/logs",{params:i}),getStats:()=>ke.get("/audit/stats"),rollback:i=>ke.post(`/audit/rollback/${i}`)},Ls={getAll:()=>ke.get("/tools"),getPacks:()=>ke.get("/tools/packs"),getPackTools:i=>ke.get(`/tools/packs/${i}`)},d2={analyze:(i,o)=>ke.post("/screen/analyze",{image:i,prompt:o}),getSupported:()=>ke.get("/screen/supported")},yn={list:i=>ke.get("/files/list",{params:{path:i}}),read:i=>ke.get("/files/read",{params:{path:i}}),download:i=>`${e0}/files/download?path=${encodeURIComponent(i)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(i,o)=>ke.post("/files/mkdir",{name:i,parentPath:o}),upload:(i,o,s)=>ke.post("/files/upload",{filename:i,content:o,parentPath:s}),deleteFile:i=>ke.delete("/files/delete",{params:{path:i}}),getStats:()=>ke.get("/files/stats")},qs={getStatus:()=>ke.get("/platform/status"),getJobs:()=>ke.get("/platform/jobs"),emergencyStop:()=>ke.post("/platform/emergency-stop")},h2=[{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"}],p2=i=>{if(!i)return"";const o=new Date(i);return isNaN(o)?"":o.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},m2=i=>{const o={};return i.forEach(s=>{const u=s.createdAt?new Date(s.createdAt):new Date;if(isNaN(u))return;const f=new Date,h=new Date;h.setDate(f.getDate()-1);let p;u.toDateString()===f.toDateString()?p="Today":u.toDateString()===h.toDateString()?p="Yesterday":p=u.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),o[p]||(o[p]=[]),o[p].push(s)}),o},nm=i=>i?i.split(`
17
- `).map((o,s)=>{const u=[];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);u.push(c.jsx("span",{children:g.replace(/\*\*/g,"")},`t-${p.index}`))}u.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)),u.push(c.jsx("span",{children:g.replace(/\*\*/g,"")},`end-${s}`))}return c.jsxs(Wr.Fragment,{children:[u.length>0?u:c.jsx("span",{children:o.replace(/\*\*/g,"")}),c.jsx("br",{})]},s)}):null;function lm({user:i}){const[o,s]=A.useState([]),[u,f]=A.useState(null),[h,p]=A.useState([]),[g,x]=A.useState(""),[y,b]=A.useState(!1),[v,M]=A.useState(!1),[k,T]=A.useState(!1),[w,z]=A.useState(!1),[X,P]=A.useState(null),V=A.useRef(null),le=A.useRef(null),[ce,ye]=A.useState(""),J=A.useRef(null),we=A.useRef(null),Be=A.useRef(null);A.useEffect(()=>{"Notification"in window&&Notification.permission!=="granted"&&Notification.permission!=="denied"&&Notification.requestPermission()},[]);const rt=K=>{const S=K||"Reminder";"Notification"in window&&Notification.permission==="granted"&&new Notification("⏰ Reminder from SamarthyaBot",{body:S});const B=window.AudioContext||window.webkitAudioContext;if(B){V.current=new B;const Y=V.current.createOscillator(),G=V.current.createGain();Y.type="triangle",Y.frequency.setValueAtTime(600,V.current.currentTime),setInterval(()=>{le.current&&V.current&&(Y.frequency.setValueAtTime(800,V.current.currentTime),Y.frequency.exponentialRampToValueAtTime(400,V.current.currentTime+.3))},500),G.gain.value=.1,Y.connect(G),G.connect(V.current.destination),Y.start(),le.current=Y}P(S)},$e=()=>{P(null),le.current&&(le.current.stop(),le.current=null),V.current&&(V.current.close(),V.current=null)};A.useEffect(()=>(xe(),Z(),()=>{J.current&&J.current.abort()}),[]),A.useEffect(()=>{we.current?.scrollIntoView({behavior:"smooth"})},[h]);const Z=()=>{const K=window.SpeechRecognition||window.webkitSpeechRecognition;if(!K)return;z(!0);const S=new K;S.continuous=!1,S.interimResults=!0,S.lang="hi-IN",S.maxAlternatives=1,S.onresult=B=>{let Y="";for(let G=0;G<B.results.length;G++)Y+=B.results[G][0].transcript;ye(Y),x(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)},J.current=S},de=()=>{J.current&&(k?(J.current.stop(),T(!1)):(ye(""),J.current.lang=i?.language==="hindi"?"hi-IN":i?.language==="english"?"en-IN":"hi-IN",J.current.start(),T(!0)))},xe=async()=>{try{const K=await ri.getConversations();s(K.data.conversations||[])}catch{console.error("Failed to load conversations")}},Oe=async K=>{try{const S=await ri.getConversation(K);f(S.data.conversation),p(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},D=async K=>{const S=K||g.trim();if(!S||y)return;x("");const B={role:"user",content:S,createdAt:new Date};p(Y=>[...Y,B]),b(!0),M(!0);try{const G=(await ri.sendMessage({message:S,conversationId:u?._id})).data;u||(f({_id:G.conversationId}),xe());const I={role:"assistant",content:G.message.content,toolCalls:G.message.toolCalls,sensitiveDataWarnings:G.message.sensitiveDataWarnings,createdAt:new Date};p(ue=>[...ue,I]),I.toolCalls&&I.toolCalls.forEach(ue=>{if(ue.toolName==="reminder_set"&&ue.notificationParams){const{delayMs:Te,message:ot}=ue.notificationParams;setTimeout(()=>{rt(ot)},Te||5e3)}})}catch{p(G=>[...G,{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()}},Q=()=>{f(null),p([]),Be.current?.focus()},ae=async(K,S)=>{S.stopPropagation();try{await ri.deleteConversation(K),u?._id===K&&Q(),xe()}catch{console.error("Delete failed")}},Re=K=>{K.key==="Enter"&&!K.shiftKey&&(K.preventDefault(),D())};return c.jsxs("div",{style:$.container,children:[X&&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:X})]}),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:Q,style:$.newBtn,title:"New Chat",children:c.jsx(hx,{size:18})})]}),c.jsxs("div",{style:$.convList,children:[o.map(K=>c.jsxs("button",{onClick:()=>Oe(K._id),style:{...$.convItem,...u?._id===K._id?$.convItemActive:{}},children:[c.jsx("span",{style:$.convItemTitle,children:K.title}),c.jsx("div",{style:$.convActions,children:c.jsx("button",{onClick:S=>ae(K._id,S),style:$.convDelBtn,children:c.jsx(_m,{size:14})})})]},K._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:[k&&c.jsxs("div",{style:$.voiceOverlay,children:[c.jsx("div",{style:$.voicePulseRing,children:c.jsx(Up,{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(ux,{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:h2.map((K,S)=>c.jsxs("button",{onClick:()=>D(i?.language==="english"?K.textEn:K.text),style:$.quickActionBtn,children:[c.jsx("span",{style:$.quickEmoji,children:K.emoji}),c.jsx("span",{children:i?.language==="english"?K.textEn:K.text})]},S))})]}),Object.entries(m2(h)).map(([K,S],B)=>c.jsxs(Wr.Fragment,{children:[c.jsx("div",{style:$.dateDivider,children:c.jsx("span",{style:$.dateBadge,children:K})}),S.map((Y,G)=>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(Om,{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(wm,{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,ue)=>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)})]},ue))}),c.jsx("div",{style:{...$.msgTime,color:Y.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:p2(Y.createdAt)})]})]},`msg-${B}-${G}`))]},`group-${B}`)),v&&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:we})]}),c.jsxs("div",{style:$.inputArea,children:[c.jsxs("div",{style:$.inputWrap,children:[c.jsx("textarea",{ref:Be,value:g,onChange:K=>x(K.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:K=>{K&&(K._screenInput=!0)},id:"screenInput",onChange:async K=>{const S=K.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,G=await d2.analyze(Y,g.trim()||"Is screenshot mein kya hai? Next step batao.");p(I=>[...I,{role:"assistant",content:`👁️ **Screen Analysis:**
18
-
19
- ${G.data.analysis.content}`,createdAt:new Date}]),x("")},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),K.target.value=""}}}}),c.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:$.voiceBtn,title:"Screenshot upload for AI analysis",children:c.jsx(Av,{size:20})}),w&&c.jsx("button",{onClick:de,style:{...$.voiceBtn,...k?$.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:c.jsx(Up,{size:20})}),c.jsx("button",{onClick:()=>D(),disabled:y||!g.trim(),style:{...$.sendBtn,opacity:y||!g.trim()?.5:1},children:y?c.jsx(nx,{size:20,style:{animation:"spin 1s linear infinite"}}):c.jsx(Sx,{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 y2({user:i}){const o=Pr(),[s,u]=A.useState(null),[f,h]=A.useState(null),[p,g]=A.useState([]),[x,y]=A.useState([]),[b,v]=A.useState(!0);A.useEffect(()=>{k();const w=setInterval(()=>{M()},15e3);return()=>clearInterval(w)},[]);const M=async()=>{try{const[w,z]=await Promise.all([qs.getStatus().catch(()=>({data:{status:null}})),qs.getJobs().catch(()=>({data:{jobs:[]}}))]);h(w.data.status),g(z.data.jobs||[])}catch{}},k=async()=>{v(!0);try{const[w,z]=await Promise.all([ri.getConversations().catch(()=>({data:{conversations:[]}})),Qr.getStats().catch(()=>({data:{stats:{totalActions:0,byCategory:{},byStatus:{}}}}))]);y(w.data.conversations?.slice(0,5)||[]),u(z.data.stats),await M()}catch(w){console.error("Dashboard load error:",w)}finally{v(!1)}},T=w=>{if(!w)return"0h 0m";const z=Math.floor(w/3600),X=Math.floor(w%3600/60);return`${z}h ${X}m`};return b?c.jsx("div",{style:{...ee.container,display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"},children:c.jsx(Yr,{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(jx,{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 qs.emergencyStop(),M(),alert("🚨 Emergency Stop Engaged. All systems halted."))},style:ee.dangerBtn,title:"Emergency Kill Switch",children:[c.jsx(kp,{size:18})," Kill Switch"]}),c.jsxs("button",{onClick:()=>o("/tools"),style:ee.secondaryBtn,children:[c.jsx(Jr,{size:18})," Modules"]}),c.jsxs("button",{onClick:()=>o("/chat"),style:ee.newChatBtn,children:[c.jsx(to,{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(Zs,{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(zm,{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(fx,{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(Yr,{size:22})}),c.jsxs("div",{style:ee.statInfo,children:[c.jsx("div",{style:ee.statValue,children:s?.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(Yr,{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(w=>c.jsxs("div",{style:ee.jobCard,children:[c.jsxs("div",{style:ee.jobHeader,children:[c.jsx("span",{style:ee.jobName,children:w.taskName}),c.jsx("span",{style:w.isActive?ee.jobActive:ee.jobInactive,children:w.isActive?"RUNNING":"STOPPED"})]}),c.jsxs("div",{style:ee.jobPrompt,children:['"',w.prompt,'"']}),c.jsxs("div",{style:ee.jobMeta,children:[c.jsxs("span",{children:[c.jsx(Zs,{size:12})," Interval: ",w.intervalMinutes,"m"]}),c.jsxs("span",{children:[c.jsx(Bv,{size:12})," Next Run: ",new Date(w.nextRunAt).toLocaleTimeString()]})]})]},w._id))}):c.jsxs("div",{style:ee.emptyState,children:[c.jsx(ic,{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(rc,{size:18,style:{color:"var(--accent-primary)"}}),"Recent Interactions"]}),c.jsxs("button",{onClick:()=>o("/chat"),style:ee.viewAllBtn,children:["View All ",c.jsx(ui,{size:14})]})]}),c.jsx("div",{style:ee.cardBody,children:x.length>0?x.map(w=>c.jsxs("button",{onClick:()=>o(`/chat/${w._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:w.title}),c.jsxs("span",{style:ee.convTime,children:[new Date(w.updatedAt).toLocaleDateString()," ",new Date(w.updatedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),c.jsx(ui,{size:14,style:{color:"var(--text-muted)"}})]},w._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(si,{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(kp,{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 g2({user:i,onUpdate:o}){const[s,u]=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),x=async()=>{h(!0);try{const v=await dc.updateProfile(s);o(v.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:Ee.container,children:[c.jsxs("div",{style:Ee.header,children:[c.jsx("h1",{style:Ee.title,children:"⚙️ Settings"}),c.jsx("button",{onClick:x,disabled:f,style:Ee.saveBtn,children:p?c.jsxs(c.Fragment,{children:[c.jsx(Qs,{size:18})," Saved!"]}):f?"Saving...":c.jsxs(c.Fragment,{children:[c.jsx(xx,{size:18})," Save Changes"]})})]}),c.jsxs("div",{style:Ee.grid,children:[c.jsxs("div",{style:Ee.section,children:[c.jsxs("div",{style:Ee.sectionHeader,children:[c.jsx(Om,{size:20,style:{color:"var(--accent-primary)"}}),c.jsx("h2",{style:Ee.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),c.jsxs("div",{style:Ee.sectionBody,children:[c.jsxs("div",{style:Ee.field,children:[c.jsx("label",{style:Ee.label,children:"Name / नाम"}),c.jsx("input",{style:Ee.input,value:s.name,onChange:v=>u({...s,name:v.target.value}),placeholder:"Your name"})]}),c.jsxs("div",{style:Ee.field,children:[c.jsx("label",{style:Ee.label,children:"City / शहर"}),c.jsx("input",{style:Ee.input,value:s.city,onChange:v=>u({...s,city:v.target.value}),placeholder:"Mumbai, Delhi, etc."})]})]})]}),c.jsxs("div",{style:Ee.section,children:[c.jsxs("div",{style:Ee.sectionHeader,children:[c.jsx(Iv,{size:20,style:{color:"var(--accent-saffron)"}}),c.jsx("h2",{style:Ee.sectionTitle,children:"Language / भाषा"})]}),c.jsx("div",{style:Ee.sectionBody,children:c.jsx("div",{style:Ee.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(v=>c.jsxs("button",{onClick:()=>u({...s,language:v.value}),style:{...Ee.langCard,...s.language===v.value?Ee.langCardActive:{}},children:[c.jsx("span",{style:Ee.langIcon,children:v.icon}),c.jsx("span",{style:Ee.langLabel,children:v.label}),c.jsx("span",{style:Ee.langDesc,children:v.desc}),s.language===v.value&&c.jsx(Qs,{size:16,style:Ee.langCheck})]},v.value))})})]}),c.jsxs("div",{style:Ee.section,children:[c.jsxs("div",{style:Ee.sectionHeader,children:[c.jsx(si,{size:20,style:{color:"var(--accent-rose)"}}),c.jsx("h2",{style:Ee.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),c.jsx("div",{style:Ee.sectionBody,children:b.map(v=>c.jsxs("div",{style:Ee.permRow,children:[c.jsxs("div",{style:Ee.permInfo,children:[c.jsx("span",{style:Ee.permIcon,children:v.icon}),c.jsxs("div",{children:[c.jsx("div",{style:Ee.permLabel,children:v.label}),c.jsx("div",{style:Ee.permDesc,children:v.desc})]})]}),c.jsx("select",{style:Ee.permSelect,value:s.permissions[v.key],onChange:M=>u({...s,permissions:{...s.permissions,[v.key]:M.target.value}}),children:y.map(M=>c.jsx("option",{value:M.value,children:M.label},M.value))})]},v.key))})]})]})]})}const Ee={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"}},Ys={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 v2({user:i}){const[o,s]=A.useState([]),[u,f]=A.useState(null),[h,p]=A.useState(""),[g,x]=A.useState(!0);A.useEffect(()=>{y()},[h]);const y=async()=>{x(!0);try{const v={};h&&(v.category=h);const[M,k]=await Promise.all([Qr.getLogs(v),Qr.getStats()]);s(M.data.logs||[]),f(k.data.stats||null)}catch{console.error("Failed to load audit data"),s([]),f({totalActions:0,byCategory:{},byStatus:{}})}finally{x(!1)}},b=async v=>{try{await Qr.rollback(v),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(Yr,{size:20,style:{color:"var(--accent-primary)"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:u?.totalActions||0}),c.jsx("div",{style:me.statLabel,children:"Total Actions"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(si,{size:20,style:{color:"#10b981"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:u?.byStatus?.success||0}),c.jsx("div",{style:me.statLabel,children:"Successful"})]})]}),c.jsxs("div",{style:me.statCard,children:[c.jsx(wm,{size:20,style:{color:"#f59e0b"}}),c.jsxs("div",{children:[c.jsx("div",{style:me.statValue,children:u?.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:u?.byStatus?.rolled_back||0}),c.jsx("div",{style:me.statLabel,children:"Rolled Back"})]})]})]}),c.jsxs("div",{style:me.filters,children:[c.jsx(Jv,{size:16,style:{color:"var(--text-muted)"}}),c.jsx("button",{onClick:()=>p(""),style:{...me.filterBtn,...h===""?me.filterBtnActive:{}},children:"All"}),Object.entries(Ys).map(([v,M])=>c.jsxs("button",{onClick:()=>p(v),style:{...me.filterBtn,...h===v?me.filterBtnActive:{}},children:[M.icon," ",v]},v))]}),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(si,{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((v,M)=>{const k=Ys[v.category]||Ys.system,T=im[v.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:k.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:k.bg,color:k.color},children:[k.icon," ",v.category]}),c.jsx("span",{style:{...me.logStatus,background:T.bg,color:T.color},children:v.status}),v.details?.riskLevel&&v.details.riskLevel!=="low"&&c.jsxs("span",{style:me.riskBadge,children:["⚠️ ",v.details.riskLevel," risk"]})]}),c.jsx("div",{style:me.logAction,children:v.action}),v.details?.toolName&&c.jsxs("div",{style:me.logDetail,children:["Tool: ",v.details.toolName]}),c.jsxs("div",{style:me.logTime,children:[c.jsx(Zs,{size:12}),new Date(v.createdAt).toLocaleString("en-IN",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})]}),v.canRollback&&v.status!=="rolled_back"&&c.jsxs("button",{onClick:()=>b(v._id),style:me.rollbackBtn,children:[c.jsx(Lp,{size:14})," Undo / Rollback"]})]})]},v._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 x2({user:i}){const[o,s]=A.useState([]),[u,f]=A.useState([]),[h,p]=A.useState(null),[g,x]=A.useState([]);A.useEffect(()=>{y()},[]);const y=async()=>{try{const[k,T]=await Promise.all([Ls.getPacks(),Ls.getAll()]);s(k.data.packs||[]),f(T.data.tools||[])}catch{console.error("Failed to load tools")}},b=async k=>{p(k);try{const T=await Ls.getPackTools(k);x(T.data.tools||[])}catch{x([])}},v=async k=>{try{await dc.updateProfile({activePack:k})}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((k,T)=>{const w=i?.activePack===k.id,z=h===k.id;return c.jsxs("div",{onClick:()=>b(k.id),style:{...qe.packCard,...w?qe.packCardActive:{},...z?qe.packCardSelected:{},animationDelay:`${T*.1}s`},children:[c.jsxs("div",{style:qe.packHeader,children:[c.jsx("span",{style:qe.packEmoji,children:k.id==="student"?"🎓":k.id==="business"?"🏢":k.id==="developer"?"👨‍💻":"🏠"}),w&&c.jsxs("span",{style:qe.activeBadge,children:[c.jsx(Qs,{size:12})," ",M?"Active":"सक्रिय"]})]}),c.jsx("h3",{style:qe.packName,children:M?k.name:k.nameHi||k.name}),c.jsx("p",{style:qe.packDesc,children:M?k.description:k.descriptionHi||k.description}),c.jsxs("div",{style:qe.packMeta,children:[c.jsxs("span",{style:qe.toolCount,children:[c.jsx(Jr,{size:14})," ",k.toolCount," tools"]}),c.jsx(ui,{size:16,style:{color:"var(--text-muted)"}})]}),!w&&c.jsxs("button",{onClick:X=>{X.stopPropagation(),v(k.id)},style:qe.activateBtn,children:[c.jsx(to,{size:14})," ",M?"Activate":"एक्टिवेट करें"]})]},k.id)})}),c.jsxs("div",{style:qe.section,children:[c.jsxs("h2",{style:qe.sectionTitle,children:[c.jsx(Jr,{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:u).map((k,T)=>{const w=rm[k.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:k.name}),c.jsx("span",{style:{...qe.riskBadge,background:w.bg,color:w.color},children:w.label})]}),c.jsx("p",{style:qe.toolDesc,children:M?k.description:k.descriptionHi||k.description}),c.jsx("div",{style:qe.toolMeta,children:c.jsxs("span",{style:qe.toolCategory,children:[k.category==="file"?"📁":k.category==="email"?"📧":k.category==="search"?"🔍":k.category==="calendar"?"📅":"🛠️"," ",k.category]})})]},k.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"}},b2=[{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"}],S2=[{title:"Runs on Your Machine",desc:"Mac, Windows, or Linux. Private by default—your data stays yours.",icon:c.jsx(zm,{size:24,color:"#FF9933"})},{title:"Any Chat App",desc:"Talk to it on WhatsApp or Telegram. Works in DMs and group chats.",icon:c.jsx(rc,{size:24,color:"#138808"})},{title:"Persistent Memory",desc:"Remembers your preferences and context 24/7 using encrypted local storage.",icon:c.jsx(ix,{size:24,color:"#6366f1"})}];function E2(){const[i,o]=A.useState(!1);return A.useEffect(()=>{const s=()=>o(window.scrollY>50);return window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)},[]),c.jsxs("div",{style:F.page,children:[c.jsx("header",{style:{...F.header,backgroundColor:i?"rgba(10, 10, 15, 0.9)":"transparent",borderBottom:i?"1px solid rgba(255, 255, 255, 0.1)":"1px solid transparent"},children:c.jsxs("div",{style:F.navInner,children:[c.jsxs("div",{style:F.brand,children:[c.jsx("img",{src:"/logo.png",style:F.logoImg,alt:"logo"}),c.jsx("span",{style:F.brandName,children:"SamarthyaBot"})]}),c.jsxs("nav",{style:F.navLinks,children:[c.jsx("a",{href:"#features",style:F.navLink,children:"Features"}),c.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",style:F.navLink,children:"GitHub"}),c.jsx("a",{href:"#docs",style:F.navLink,children:"Docs"}),c.jsx(Kr,{to:"/dashboard",style:F.navLink,children:"Admin"})]})]})}),c.jsxs("section",{style:F.hero,children:[c.jsx("div",{style:F.heroGlow}),c.jsxs("div",{style:F.container,children:[c.jsxs("div",{style:F.heroBadge,children:[c.jsx("span",{style:F.badgeDot}),"New: Samarthya Partners with Local LLMs for Skill Security →"]}),c.jsxs("h1",{style:F.heroTitle,children:["The AI that actually ",c.jsx("br",{}),c.jsx("span",{style:F.heroAccent,children:"does things."})]}),c.jsx("p",{style:F.heroSubtitle,children:"Clears your inbox, sends emails, manages your legacy workflows, and files your taxes. All from WhatsApp, Telegram, or any chat app you already use."}),c.jsxs("div",{style:F.installBox,children:[c.jsxs("div",{style:F.installHeader,children:[c.jsxs("div",{style:F.terminalDots,children:[c.jsx("div",{style:{...F.dot,background:"#ff5f56"}}),c.jsx("div",{style:{...F.dot,background:"#ffbd2e"}}),c.jsx("div",{style:{...F.dot,background:"#27c93f"}})]}),c.jsx("span",{style:F.terminalLabel,children:"Quick Start"})]}),c.jsxs("div",{style:F.installBody,children:[c.jsxs("code",{style:F.codeLine,children:[c.jsx("span",{style:F.codePrompt,children:"$"})," npm install -g samarthya-bot"]}),c.jsxs("code",{style:F.codeLine,children:[c.jsx("span",{style:F.codePrompt,children:"$"})," samarthya onboard"]})]})]}),c.jsxs("div",{style:F.heroCtas,children:[c.jsxs(Kr,{to:"/dashboard",style:F.primaryBtn,children:["Open Dashboard ",c.jsx(Sv,{size:18})]}),c.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",style:F.secondaryBtn,children:[c.jsx(Wv,{size:18})," Star on GitHub"]})]})]})]}),c.jsx("section",{style:F.testSection,children:c.jsxs("div",{style:F.container,children:[c.jsxs("div",{style:F.sectionHeader,children:[c.jsx("span",{style:F.subTitle,children:"⟩ What People Say"}),c.jsx("h2",{style:F.sectionTitle,children:"Built for the Community"})]}),c.jsx("div",{style:F.testGrid,children:b2.map((s,u)=>c.jsxs("div",{style:F.testCard,children:[c.jsxs("div",{style:F.testUser,children:[c.jsx("div",{style:F.avatar,children:s.avatar}),c.jsx("span",{style:F.userName,children:s.name})]}),c.jsxs("p",{style:F.testText,children:['"',s.text,'"']})]},u))})]})}),c.jsx("section",{id:"features",style:F.featureSection,children:c.jsxs("div",{style:F.container,children:[c.jsxs("div",{style:F.sectionHeader,children:[c.jsx("span",{style:F.subTitle,children:"⟩ What It Does"}),c.jsx("h2",{style:F.sectionTitle,children:"Powering Your Productivity"})]}),c.jsx("div",{style:F.highlightGrid,children:S2.map((s,u)=>c.jsxs("div",{style:F.highlightCard,children:[c.jsx("div",{style:F.iconContainer,children:s.icon}),c.jsx("h3",{style:F.cardTitle,children:s.title}),c.jsx("p",{style:F.cardDesc,children:s.desc})]},u))})]})}),c.jsx("footer",{style:F.footer,children:c.jsxs("div",{style:F.container,children:[c.jsxs("div",{style:F.footerInner,children:[c.jsxs("div",{style:F.footerBrand,children:[c.jsx("img",{src:"/logo.png",style:F.logoImgSmall,alt:"logo"}),c.jsx("span",{children:"SamarthyaBot — Built with ❤️ in India"})]}),c.jsxs("div",{style:F.footerLinks,children:[c.jsx("a",{href:"#",style:F.footerLink,children:"Docs"}),c.jsx("a",{href:"#",style:F.footerLink,children:"Vision"}),c.jsx("a",{href:"#",style:F.footerLink,children:"Privacy"}),c.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",style:F.footerLink,children:"GitHub"})]})]}),c.jsx("div",{style:F.footerBottom,children:"Built by Samarthya community. Independent project."})]})})]})}const F={page:{backgroundColor:"#0a0a0b",color:"#ffffff",minHeight:"100vh",fontFamily:"'Inter', sans-serif"},container:{maxWidth:"1100px",margin:"0 auto",padding:"0 24px"},header:{position:"fixed",top:0,left:0,right:0,zIndex:1e3,backdropFilter:"blur(10px)",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},navInner:{maxWidth:"1200px",margin:"0 auto",padding:"16px 24px",display:"flex",justifyContent:"space-between",alignItems:"center"},brand:{display:"flex",alignItems:"center",gap:"12px"},logoImg:{height:"32px",width:"32px",objectFit:"contain"},brandName:{fontSize:"1.25rem",fontWeight:"800",letterSpacing:"-0.5px"},navLinks:{display:"flex",gap:"32px",alignItems:"center"},navLink:{color:"#a0a0a0",textDecoration:"none",fontSize:"0.9rem",fontWeight:"500",transition:"color 0.2s","&:hover":{color:"#fff"}},hero:{padding:"180px 0 120px",textAlign:"center",position:"relative",overflow:"hidden"},heroGlow:{position:"absolute",top:"-10%",left:"50%",transform:"translateX(-50%)",width:"1000px",height:"600px",background:"radial-gradient(circle, rgba(255, 153, 51, 0.05) 0%, rgba(19, 136, 8, 0.03) 40%, transparent 70%)",zIndex:0},heroBadge:{display:"inline-flex",alignItems:"center",gap:"8px",backgroundColor:"rgba(255, 255, 255, 0.05)",padding:"8px 16px",borderRadius:"100px",fontSize:"0.8rem",color:"#808080",marginBottom:"40px",border:"1px solid rgba(255, 255, 255, 0.1)",position:"relative",zIndex:1},badgeDot:{width:"8px",height:"8px",backgroundColor:"#27c93f",borderRadius:"50%",boxShadow:"0 0 8px #27c93f"},heroTitle:{fontSize:"4.5rem",fontWeight:"900",lineHeight:"1",marginBottom:"24px",letterSpacing:"-3px",position:"relative",zIndex:1},heroAccent:{background:"linear-gradient(90deg, #FF9933, #ffffff, #138808)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},heroSubtitle:{fontSize:"1.25rem",color:"#a0a0a0",maxWidth:"700px",margin:"0 auto 56px",lineHeight:"1.6",position:"relative",zIndex:1},installBox:{maxWidth:"500px",margin:"0 auto 48px",background:"#121214",border:"1px solid rgba(255, 255, 255, 0.08)",borderRadius:"12px",overflow:"hidden",textAlign:"left",boxShadow:"0 20px 40px rgba(0,0,0,0.4)",position:"relative",zIndex:1},installHeader:{background:"#1a1a1e",padding:"12px 16px",display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid rgba(255, 255, 255, 0.05)"},terminalDots:{display:"flex",gap:"6px"},dot:{width:"10px",height:"10px",borderRadius:"50%"},terminalLabel:{fontSize:"0.65rem",color:"#606060",textTransform:"uppercase",fontWeight:"bold",letterSpacing:"1px"},installBody:{padding:"24px",fontFamily:"'Fira Code', 'Courier New', monospace"},codeLine:{display:"block",fontSize:"1rem",marginBottom:"8px",color:"#ffffff"},codePrompt:{color:"#FF9933",marginRight:"12px",userSelect:"none"},heroCtas:{display:"flex",justifyContent:"center",gap:"20px",position:"relative",zIndex:1},primaryBtn:{backgroundColor:"#ffffff",color:"#000000",padding:"14px 28px",borderRadius:"10px",textDecoration:"none",fontWeight:"700",fontSize:"1rem",display:"flex",alignItems:"center",gap:"10px",transition:"transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275)","&:hover":{transform:"scale(1.02) translateY(-2px)"}},secondaryBtn:{backgroundColor:"rgba(255, 255, 255, 0.05)",color:"#ffffff",padding:"14px 28px",borderRadius:"10px",textDecoration:"none",fontWeight:"700",fontSize:"1rem",border:"1px solid rgba(255, 255, 255, 0.1)",display:"flex",alignItems:"center",gap:"10px",transition:"all 0.2s","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderColor:"rgba(255, 255, 255, 0.2)"}},testSection:{padding:"100px 0",backgroundColor:"#0a0a0b"},sectionHeader:{marginBottom:"56px",textAlign:"center"},subTitle:{fontSize:"0.9rem",color:"#808080",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"1px",display:"block",marginBottom:"12px"},sectionTitle:{fontSize:"2.5rem",fontWeight:"800",letterSpacing:"-1px"},testGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:"20px"},testCard:{padding:"32px",backgroundColor:"#111113",borderRadius:"16px",border:"1px solid rgba(255, 255, 255, 0.05)"},testUser:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"20px"},avatar:{width:"32px",height:"32px",backgroundColor:"#FF9933",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.8rem",fontWeight:"bold",color:"#000"},userName:{fontSize:"0.9rem",fontWeight:"bold",color:"#ffffff"},testText:{fontSize:"1rem",color:"#a0a0a0",lineHeight:"1.6",fontStyle:"italic"},featureSection:{padding:"120px 0",backgroundColor:"rgba(255, 255, 255, 0.01)"},highlightGrid:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"24px"},highlightCard:{padding:"48px 32px",textAlign:"center",backgroundColor:"#111113",borderRadius:"24px",border:"1px solid rgba(255, 255, 255, 0.05)",transition:"transform 0.3s","&:hover":{transform:"translateY(-8px)"}},iconContainer:{width:"64px",height:"64px",backgroundColor:"rgba(255, 255, 255, 0.03)",borderRadius:"18px",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 24px"},cardTitle:{fontSize:"1.25rem",fontWeight:"800",marginBottom:"16px"},cardDesc:{fontSize:"0.95rem",color:"#a0a0a0",lineHeight:"1.6"},footer:{padding:"80px 0 40px",borderTop:"1px solid rgba(255, 255, 255, 0.05)"},footerInner:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"40px",flexWrap:"wrap",gap:"24px"},footerBrand:{display:"flex",alignItems:"center",gap:"16px",fontSize:"0.9rem",color:"#808080"},logoImgSmall:{height:"24px",width:"24px",filter:"grayscale(1) opacity(0.5)"},footerLinks:{display:"flex",gap:"32px"},footerLink:{color:"#606060",textDecoration:"none",fontSize:"0.85rem",transition:"color 0.2s","&:hover":{color:"#fff"}},footerBottom:{textAlign:"center",fontSize:"0.75rem",color:"#404040",paddingTop:"24px",borderTop:"1px solid rgba(255, 255, 255, 0.03)"}},kr=[{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:""}]}],j2={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 A2({user:i}){const[o,s]=A.useState(kr.reduce((y,b)=>({...y,[b.id]:!0}),{})),[u,f]=A.useState("all"),h=y=>{s(b=>({...b,[y]:!b[y]}))},p=kr.map(y=>({...y,items:u==="all"?y.items:y.items.filter(b=>b.status===u)})).filter(y=>y.items.length>0),g=kr.flatMap(y=>y.items).filter(y=>y.status==="live").length,x=kr.flatMap(y=>y.items).filter(y=>y.status==="coming").length;return c.jsxs("div",{style:je.container,children:[c.jsxs("div",{style:je.header,children:[c.jsxs("h1",{style:je.title,children:[c.jsx(to,{size:28,color:"#FF9933"}),"Integrations"]}),c.jsxs("p",{style:je.subtitle,children:[c.jsx("span",{style:je.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:je.filterBar,children:[{key:"all",label:`All (${g+x})`},{key:"live",label:`✅ Live (${g})`},{key:"coming",label:`🔜 Coming (${x})`}].map(y=>c.jsx("button",{onClick:()=>f(y.key),style:{...je.filterBtn,...u===y.key?je.filterBtnActive:{}},children:y.label},y.key))}),p.map(y=>c.jsxs("div",{style:je.category,children:[c.jsxs("button",{onClick:()=>h(y.id),style:je.categoryHeader,children:[c.jsxs("div",{children:[c.jsx("h2",{style:je.categoryTitle,children:y.title}),c.jsx("p",{style:je.categorySubtitle,children:y.subtitle})]}),o[y.id]?c.jsx(Dv,{size:20}):c.jsx(zv,{size:20})]}),o[y.id]&&c.jsx("div",{style:je.grid,children:y.items.map((b,v)=>{const M=j2[b.status];return c.jsxs("div",{style:je.card,children:[c.jsxs("div",{style:je.cardTop,children:[c.jsx("span",{style:je.cardIcon,children:b.icon}),c.jsxs("div",{style:je.cardInfo,children:[c.jsx("h3",{style:je.cardName,children:b.name}),c.jsx("p",{style:je.cardNameHi,children:b.nameHi})]}),b.tag&&c.jsx("span",{style:{...je.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:je.cardDesc,children:b.desc}),c.jsx("div",{style:{...je.statusBadge,background:M.bg,color:M.color},children:M.label})]},v)})})]},y.id)),c.jsxs("div",{style:je.footerCTA,children:[c.jsx("h2",{style:je.ctaTitle,children:"🔧 Want to add more integrations?"}),c.jsxs("p",{style:je.ctaText,children:["SamarthyaBot is open-source. Add your own tools in ",c.jsx("code",{style:je.code,children:"toolRegistry.js"})]}),c.jsxs("div",{style:je.ctaButtons,children:[c.jsxs("div",{style:je.ctaCard,children:[c.jsx("span",{style:je.ctaIcon,children:"📧"}),c.jsx("strong",{children:"Email Setup"}),c.jsx("p",{style:je.ctaSmall,children:"Add Gmail App Password to .env"})]}),c.jsxs("div",{style:je.ctaCard,children:[c.jsx("span",{style:je.ctaIcon,children:"📱"}),c.jsx("strong",{children:"WhatsApp Setup"}),c.jsx("p",{style:je.ctaSmall,children:"Meta Business API token"})]}),c.jsxs("div",{style:je.ctaCard,children:[c.jsx("span",{style:je.ctaIcon,children:"🏠"}),c.jsx("strong",{children:"Offline Mode"}),c.jsx("p",{style:je.ctaSmall,children:"Set USE_OLLAMA=true in .env"})]})]})]})]})}const je={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"}},Gs={folder:{icon:Cm,color:"#FF9933"},txt:{icon:Ks,color:"#94a3b8"},md:{icon:Ks,color:"#60a5fa"},json:{icon:Hr,color:"#fbbf24"},js:{icon:Hr,color:"#fbbf24"},html:{icon:Hr,color:"#f97316"},css:{icon:Hr,color:"#38bdf8"},png:{icon:Ns,color:"#a78bfa"},jpg:{icon:Ns,color:"#a78bfa"},jpeg:{icon:Ns,color:"#a78bfa"},pdf:{icon:Np,color:"#ef4444"},default:{icon:Np,color:"#64748b"}};function R2(i){return i.type==="folder"?Gs.folder:Gs[i.extension]||Gs.default}function om(i){return i?i<1024?`${i} B`:i<1048576?`${(i/1024).toFixed(1)} KB`:`${(i/1048576).toFixed(1)} MB`:"—"}function T2(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 z2({user:i}){const[o,s]=A.useState([]),[u,f]=A.useState(""),[h,p]=A.useState(!1),[g,x]=A.useState(null),[y,b]=A.useState(null),[v,M]=A.useState(!1),[k,T]=A.useState(""),[w,z]=A.useState(""),X=A.useRef(null);A.useEffect(()=>{P(),V()},[u]);const P=async()=>{p(!0),z("");try{const Z=await yn.list(u);s(Z.data.items||[])}catch(Z){z(Z.response?.data?.error||"Failed to load files"),s([])}finally{p(!1)}},V=async()=>{try{const Z=await yn.getStats();x(Z.data.stats)}catch{}},le=Z=>{Z.type==="folder"?f(Z.path):ye(Z)},ce=()=>{const Z=u.split("/");Z.pop(),f(Z.join("/"))},ye=async Z=>{try{const de=await yn.read(Z.path);b(de.data)}catch{z("Cannot preview this file")}},J=Z=>{const de=yn.download(Z.path);window.open(de,"_blank")},we=async Z=>{const de=Z.type==="folder"?`Delete folder "${Z.name}" and all its contents?`:`Delete file "${Z.name}"?`;if(window.confirm(de))try{await yn.deleteFile(Z.path),P(),V()}catch(xe){z(xe.response?.data?.error||"Delete failed")}},Be=async()=>{if(k.trim())try{await yn.mkdir(k.trim(),u),T(""),M(!1),P()}catch(Z){z(Z.response?.data?.error||"Failed to create folder")}},rt=async Z=>{const de=Z.target.files?.[0];if(!de)return;const xe=new FileReader;xe.onload=async()=>{try{await yn.upload(de.name,xe.result,u),P(),V()}catch(Oe){z(Oe.response?.data?.error||"Upload failed")}},de.type.startsWith("text/")||["application/json","application/javascript"].includes(de.type)?xe.readAsText(de):xe.readAsDataURL(de),Z.target.value=""},$e=["My Stuff",...u.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(ic,{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(Hp,{size:16})," New Folder"]}),c.jsxs("button",{onClick:()=>X.current?.click(),style:pe.actionBtn,children:[c.jsx(wx,{size:16})," Upload"]}),c.jsx("button",{onClick:P,style:pe.actionBtnIcon,children:c.jsx(yx,{size:16})}),c.jsx("input",{ref:X,type:"file",onChange:rt,style:{display:"none"}})]})]}),c.jsx("div",{style:pe.breadcrumb,children:$e.map((Z,de)=>c.jsxs(Wr.Fragment,{children:[de>0&&c.jsx(ui,{size:14,color:"#64748b"}),c.jsx("button",{onClick:()=>{if(de===0)f("");else{const xe=u.split("/").slice(0,de).join("/");f(xe)}},style:{...pe.crumbItem,color:de===$e.length-1?"#FF9933":"#94a3b8"},children:Z})]},de))}),v&&c.jsxs("div",{style:pe.newFolderRow,children:[c.jsx(Hp,{size:18,color:"#FF9933"}),c.jsx("input",{type:"text",value:k,onChange:Z=>T(Z.target.value),onKeyDown:Z=>Z.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})})]}),w&&c.jsxs("div",{style:pe.error,children:["❌ ",w,c.jsx("button",{onClick:()=>z(""),style:pe.errorClose,children:"×"})]}),u&&c.jsxs("button",{onClick:ce,style:pe.backBtn,children:[c.jsx(xv,{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((Z,de)=>{const xe=R2(Z),Oe=xe.icon;return c.jsxs("div",{style:pe.fileCard,onDoubleClick:()=>le(Z),children:[c.jsxs("div",{style:pe.fileCardTop,onClick:()=>le(Z),children:[c.jsx(Oe,{size:32,color:xe.color}),c.jsxs("div",{style:pe.fileInfo,children:[c.jsx("span",{style:pe.fileName,children:Z.name}),c.jsxs("span",{style:pe.fileMeta,children:[Z.type==="folder"?"Folder":om(Z.size),Z.modified&&` · ${T2(Z.modified)}`]})]})]}),c.jsxs("div",{style:pe.fileActions,children:[Z.type==="file"&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>ye(Z),style:pe.fileActionBtn,title:"Preview",children:c.jsx(qv,{size:14})}),c.jsx("button",{onClick:()=>J(Z),style:pe.fileActionBtn,title:"Download",children:c.jsx(kv,{size:14})})]}),c.jsx("button",{onClick:()=>we(Z),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:Z=>Z.stopPropagation(),children:[c.jsxs("div",{style:pe.modalHeader,children:[c.jsxs("h3",{style:pe.modalTitle,children:[c.jsx(Ks,{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"}},C2=({user:i,loading:o,updateUser:s,sidebarOpen:u,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(E2,{}):c.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[c.jsx(Hx,{user:i,isOpen:u,onToggle:()=>f(!u)}),c.jsx("main",{style:{flex:1,minHeight:"100vh"},children:c.jsxs(D1,{children:[c.jsx(na,{path:"/dashboard",element:c.jsx(y2,{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(g2,{user:i,onUpdate:s})}),c.jsx(na,{path:"/audit",element:c.jsx(v2,{user:i})}),c.jsx(na,{path:"/tools",element:c.jsx(x2,{user:i})}),c.jsx(na,{path:"/integrations",element:c.jsx(A2,{user:i})}),c.jsx(na,{path:"/my-stuff",element:c.jsx(z2,{user:i})}),c.jsx(na,{path:"*",element:c.jsx(w1,{to:"/dashboard"})})]})})]})};function _2(){const[i,o]=A.useState(null),[s,u]=A.useState(!0),[f,h]=A.useState(!0);A.useEffect(()=>{(async()=>{try{const x=await dc.getProfile();o(x.data.user)}catch(x){console.error(x)}u(!1)})()},[]);const p=g=>{o(g)};return c.jsx(av,{children:c.jsx(C2,{user:i,loading:s,updateUser:p,sidebarOpen:f,setSidebarOpen:h})})}Bg.createRoot(document.getElementById("root")).render(c.jsx(Wr.StrictMode,{children:c.jsx(_2,{})}));