samarthya-bot 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,149 @@
1
+ (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function c(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function s(f){if(f.ep)return;f.ep=!0;const h=c(f);fetch(f.href,h)}})();function jm(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Tu={exports:{}},li={};var Ap;function qy(){if(Ap)return li;Ap=1;var l=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function c(s,f,h){var p=null;if(h!==void 0&&(p=""+h),f.key!==void 0&&(p=""+f.key),"key"in f){h={};for(var x in f)x!=="key"&&(h[x]=f[x])}else h=f;return f=h.ref,{$$typeof:l,type:s,key:p,ref:f!==void 0?f:null,props:h}}return li.Fragment=o,li.jsx=c,li.jsxs=c,li}var Rp;function Gy(){return Rp||(Rp=1,Tu.exports=qy()),Tu.exports}var u=Gy(),Cu={exports:{}},se={};var zp;function Yy(){if(zp)return se;zp=1;var l=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),D=Symbol.iterator;function A(S){return S===null||typeof S!="object"?null:(S=D&&S[D]||S["@@iterator"],typeof S=="function"?S:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,w={};function Y(S,B,G){this.props=S,this.context=B,this.refs=w,this.updater=G||R}Y.prototype.isReactComponent={},Y.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")},Y.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=Y.prototype;function X(S,B,G){this.props=S,this.context=B,this.refs=w,this.updater=G||R}var le=X.prototype=new I;le.constructor=X,C(le,Y.prototype),le.isPureReactComponent=!0;var ue=Array.isArray;function me(){}var K={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function De(S,B,G){var V=G.ref;return{$$typeof:l,type:S,key:B,ref:V!==void 0?V:null,props:G}}function it(S,B){return De(S.type,B,S.props)}function We(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function Z(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return B[G]})}var fe=/\/+/g;function xe(S,B){return typeof S=="object"&&S!==null&&S.key!=null?Z(""+S.key):B.toString(36)}function _e(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(me,me):(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 k(S,B,G,V,$){var oe=typeof S;(oe==="undefined"||oe==="boolean")&&(S=null);var Re=!1;if(S===null)Re=!0;else switch(oe){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(S.$$typeof){case l:case o:Re=!0;break;case v:return Re=S._init,k(Re(S._payload),B,G,V,$)}}if(Re)return $=$(S),Re=V===""?"."+xe(S,0):V,ue($)?(G="",Re!=null&&(G=Re.replace(fe,"$&/")+"/"),k($,B,G,"",function(fl){return fl})):$!=null&&(We($)&&($=it($,G+($.key==null||S&&S.key===$.key?"":(""+$.key).replace(fe,"$&/")+"/")+Re)),B.push($)),1;Re=0;var rt=V===""?".":V+":";if(ue(S))for(var Ze=0;Ze<S.length;Ze++)V=S[Ze],oe=rt+xe(V,Ze),Re+=k(V,B,G,oe,$);else if(Ze=A(S),typeof Ze=="function")for(S=Ze.call(S),Ze=0;!(V=S.next()).done;)V=V.value,oe=rt+xe(V,Ze++),Re+=k(V,B,G,oe,$);else if(oe==="object"){if(typeof S.then=="function")return k(_e(S),B,G,V,$);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 Re}function Q(S,B,G){if(S==null)return S;var V=[],$=0;return k(S,V,"","",function(oe){return B.call(G,oe,$++)}),V}function te(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return S._result.default;throw S._result}var Ae=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)},F={map:Q,forEach:function(S,B,G){Q(S,function(){B.apply(this,arguments)},G)},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(!We(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return se.Activity=y,se.Children=F,se.Component=Y,se.Fragment=c,se.Profiler=f,se.PureComponent=X,se.StrictMode=s,se.Suspense=b,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,se.__COMPILER_RUNTIME={__proto__:null,c:function(S){return K.H.useMemoCache(S)}},se.cache=function(S){return function(){return S.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(S,B,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var V=C({},S.props),$=S.key;if(B!=null)for(oe in B.key!==void 0&&($=""+B.key),B)!we.call(B,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&B.ref===void 0||(V[oe]=B[oe]);var oe=arguments.length-2;if(oe===1)V.children=G;else if(1<oe){for(var Re=Array(oe),rt=0;rt<oe;rt++)Re[rt]=arguments[rt+2];V.children=Re}return De(S.type,$,V)},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,G){var V,$={},oe=null;if(B!=null)for(V in B.key!==void 0&&(oe=""+B.key),B)we.call(B,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&($[V]=B[V]);var Re=arguments.length-2;if(Re===1)$.children=G;else if(1<Re){for(var rt=Array(Re),Ze=0;Ze<Re;Ze++)rt[Ze]=arguments[Ze+2];$.children=rt}if(S&&S.defaultProps)for(V in Re=S.defaultProps,Re)$[V]===void 0&&($[V]=Re[V]);return De(S,oe,$)},se.createRef=function(){return{current:null}},se.forwardRef=function(S){return{$$typeof:x,render:S}},se.isValidElement=We,se.lazy=function(S){return{$$typeof:v,_payload:{_status:-1,_result:S},_init:te}},se.memo=function(S,B){return{$$typeof:g,type:S,compare:B===void 0?null:B}},se.startTransition=function(S){var B=K.T,G={};K.T=G;try{var V=S(),$=K.S;$!==null&&$(G,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(me,Ae)}catch(oe){Ae(oe)}finally{B!==null&&G.types!==null&&(B.types=G.types),K.T=B}},se.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},se.use=function(S){return K.H.use(S)},se.useActionState=function(S,B,G){return K.H.useActionState(S,B,G)},se.useCallback=function(S,B){return K.H.useCallback(S,B)},se.useContext=function(S){return K.H.useContext(S)},se.useDebugValue=function(){},se.useDeferredValue=function(S,B){return K.H.useDeferredValue(S,B)},se.useEffect=function(S,B){return K.H.useEffect(S,B)},se.useEffectEvent=function(S){return K.H.useEffectEvent(S)},se.useId=function(){return K.H.useId()},se.useImperativeHandle=function(S,B,G){return K.H.useImperativeHandle(S,B,G)},se.useInsertionEffect=function(S,B){return K.H.useInsertionEffect(S,B)},se.useLayoutEffect=function(S,B){return K.H.useLayoutEffect(S,B)},se.useMemo=function(S,B){return K.H.useMemo(S,B)},se.useOptimistic=function(S,B){return K.H.useOptimistic(S,B)},se.useReducer=function(S,B,G){return K.H.useReducer(S,B,G)},se.useRef=function(S){return K.H.useRef(S)},se.useState=function(S){return K.H.useState(S)},se.useSyncExternalStore=function(S,B,G){return K.H.useSyncExternalStore(S,B,G)},se.useTransition=function(){return K.H.useTransition()},se.version="19.2.4",se}var Tp;function nc(){return Tp||(Tp=1,Cu.exports=Yy()),Cu.exports}var z=nc();const Ir=jm(z);var wu={exports:{}},ii={},_u={exports:{}},Ou={};var Cp;function Vy(){return Cp||(Cp=1,(function(l){function o(k,Q){var te=k.length;k.push(Q);e:for(;0<te;){var Ae=te-1>>>1,F=k[Ae];if(0<f(F,Q))k[Ae]=Q,k[te]=F,te=Ae;else break e}}function c(k){return k.length===0?null:k[0]}function s(k){if(k.length===0)return null;var Q=k[0],te=k.pop();if(te!==Q){k[0]=te;e:for(var Ae=0,F=k.length,S=F>>>1;Ae<S;){var B=2*(Ae+1)-1,G=k[B],V=B+1,$=k[V];if(0>f(G,te))V<F&&0>f($,G)?(k[Ae]=$,k[V]=te,Ae=V):(k[Ae]=G,k[B]=te,Ae=B);else if(V<F&&0>f($,te))k[Ae]=$,k[V]=te,Ae=V;else break e}}return Q}function f(k,Q){var te=k.sortIndex-Q.sortIndex;return te!==0?te:k.id-Q.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var p=Date,x=p.now();l.unstable_now=function(){return p.now()-x}}var b=[],g=[],v=1,y=null,D=3,A=!1,R=!1,C=!1,w=!1,Y=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function le(k){for(var Q=c(g);Q!==null;){if(Q.callback===null)s(g);else if(Q.startTime<=k)s(g),Q.sortIndex=Q.expirationTime,o(b,Q);else break;Q=c(g)}}function ue(k){if(C=!1,le(k),!R)if(c(b)!==null)R=!0,me||(me=!0,Z());else{var Q=c(g);Q!==null&&_e(ue,Q.startTime-k)}}var me=!1,K=-1,we=5,De=-1;function it(){return w?!0:!(l.unstable_now()-De<we)}function We(){if(w=!1,me){var k=l.unstable_now();De=k;var Q=!0;try{e:{R=!1,C&&(C=!1,I(K),K=-1),A=!0;var te=D;try{t:{for(le(k),y=c(b);y!==null&&!(y.expirationTime>k&&it());){var Ae=y.callback;if(typeof Ae=="function"){y.callback=null,D=y.priorityLevel;var F=Ae(y.expirationTime<=k);if(k=l.unstable_now(),typeof F=="function"){y.callback=F,le(k),Q=!0;break t}y===c(b)&&s(b),le(k)}else s(b);y=c(b)}if(y!==null)Q=!0;else{var S=c(g);S!==null&&_e(ue,S.startTime-k),Q=!1}}break e}finally{y=null,D=te,A=!1}Q=void 0}}finally{Q?Z():me=!1}}}var Z;if(typeof X=="function")Z=function(){X(We)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,xe=fe.port2;fe.port1.onmessage=We,Z=function(){xe.postMessage(null)}}else Z=function(){Y(We,0)};function _e(k,Q){K=Y(function(){k(l.unstable_now())},Q)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(k){k.callback=null},l.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<k?Math.floor(1e3/k):5},l.unstable_getCurrentPriorityLevel=function(){return D},l.unstable_next=function(k){switch(D){case 1:case 2:case 3:var Q=3;break;default:Q=D}var te=D;D=Q;try{return k()}finally{D=te}},l.unstable_requestPaint=function(){w=!0},l.unstable_runWithPriority=function(k,Q){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var te=D;D=k;try{return Q()}finally{D=te}},l.unstable_scheduleCallback=function(k,Q,te){var Ae=l.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Ae+te:Ae):te=Ae,k){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=te+F,k={id:v++,callback:Q,priorityLevel:k,startTime:te,expirationTime:F,sortIndex:-1},te>Ae?(k.sortIndex=te,o(g,k),c(b)===null&&k===c(g)&&(C?(I(K),K=-1):C=!0,_e(ue,te-Ae))):(k.sortIndex=F,o(b,k),R||A||(R=!0,me||(me=!0,Z()))),k},l.unstable_shouldYield=it,l.unstable_wrapCallback=function(k){var Q=D;return function(){var te=D;D=Q;try{return k.apply(this,arguments)}finally{D=te}}}})(Ou)),Ou}var wp;function Xy(){return wp||(wp=1,_u.exports=Vy()),_u.exports}var Mu={exports:{}},dt={};var _p;function Qy(){if(_p)return dt;_p=1;var l=nc();function o(b){var g="https://react.dev/errors/"+b;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+b+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(o(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(b,g,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:y==null?null:""+y,children:b,containerInfo:g,implementation:v}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(b,g){if(b==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,dt.createPortal=function(b,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(o(299));return h(b,g,null,v)},dt.flushSync=function(b){var g=p.T,v=s.p;try{if(p.T=null,s.p=2,b)return b()}finally{p.T=g,s.p=v,s.d.f()}},dt.preconnect=function(b,g){typeof b=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(b,g))},dt.prefetchDNS=function(b){typeof b=="string"&&s.d.D(b)},dt.preinit=function(b,g){if(typeof b=="string"&&g&&typeof g.as=="string"){var v=g.as,y=x(v,g.crossOrigin),D=typeof g.integrity=="string"?g.integrity:void 0,A=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?s.d.S(b,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:D,fetchPriority:A}):v==="script"&&s.d.X(b,{crossOrigin:y,integrity:D,fetchPriority:A,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},dt.preinitModule=function(b,g){if(typeof b=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=x(g.as,g.crossOrigin);s.d.M(b,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(b)},dt.preload=function(b,g){if(typeof b=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,y=x(v,g.crossOrigin);s.d.L(b,v,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},dt.preloadModule=function(b,g){if(typeof b=="string")if(g){var v=x(g.as,g.crossOrigin);s.d.m(b,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(b)},dt.requestFormReset=function(b){s.d.r(b)},dt.unstable_batchedUpdates=function(b,g){return b(g)},dt.useFormState=function(b,g,v){return p.H.useFormState(b,g,v)},dt.useFormStatus=function(){return p.H.useHostTransitionStatus()},dt.version="19.2.4",dt}var Op;function Zy(){if(Op)return Mu.exports;Op=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(o){console.error(o)}}return l(),Mu.exports=Qy(),Mu.exports}var Mp;function Fy(){if(Mp)return ii;Mp=1;var l=Xy(),o=nc(),c=Zy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,n=t;;){var i=a.return;if(i===null)break;var r=i.alternate;if(r===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===a)return b(i),e;if(r===n)return b(i),t;r=r.sibling}throw Error(s(188))}if(a.return!==n.return)a=i,n=r;else{for(var d=!1,m=i.child;m;){if(m===a){d=!0,a=i,n=r;break}if(m===n){d=!0,n=i,a=r;break}m=m.sibling}if(!d){for(m=r.child;m;){if(m===a){d=!0,a=r,n=i;break}if(m===n){d=!0,n=r,a=i;break}m=m.sibling}if(!d)throw Error(s(189))}}if(a.alternate!==n)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,D=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),X=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),De=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),We=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=We&&e[We]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case Y:return"Profiler";case w:return"StrictMode";case ue:return"Suspense";case me:return"SuspenseList";case De:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case X:return e.displayName||"Context";case I: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 K: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 _e=Array.isArray,k=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},Ae=[],F=-1;function S(e){return{current:e}}function B(e){0>F||(e.current=Ae[F],Ae[F]=null,F--)}function G(e,t){F++,Ae[F]=e.current,e.current=t}var V=S(null),$=S(null),oe=S(null),Re=S(null);function rt(e,t){switch(G(oe,t),G($,e),G(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fh(t),e=Kh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(V),G(V,e)}function Ze(){B(V),B($),B(oe)}function fl(e){e.memoizedState!==null&&G(Re,e);var t=V.current,a=Kh(t,e.type);t!==a&&(G($,e),G(V,a))}function vi(e){$.current===e&&(B(V),B($)),Re.current===e&&(B(Re),ei._currentValue=te)}var so,jc;function Wa(e){if(so===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);so=t&&t[1]||"",jc=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+so+e+jc}var uo=!1;function co(e,t){if(!e||uo)return"";uo=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(H){var M=H}Reflect.construct(e,[],q)}else{try{q.call()}catch(H){M=H}e.call(q.prototype)}}else{try{throw Error()}catch(H){M=H}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(H){if(H&&M&&typeof H.stack=="string")return[H.stack,M.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),d=r[0],m=r[1];if(d&&m){var j=d.split(`
4
+ `),O=m.split(`
5
+ `);for(i=n=0;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;for(;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;if(n===j.length||i===O.length)for(n=j.length-1,i=O.length-1;1<=n&&0<=i&&j[n]!==O[i];)i--;for(;1<=n&&0<=i;n--,i--)if(j[n]!==O[i]){if(n!==1||i!==1)do if(n--,i--,0>i||j[n]!==O[i]){var U=`
6
+ `+j[n].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=n&&0<=i);break}}}finally{uo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wa(a):""}function y0(e,t){switch(e.tag){case 26:case 27:case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return e.child!==t&&t!==null?Wa("Suspense Fallback"):Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return co(e.type,!1);case 11:return co(e.type.render,!1);case 1:return co(e.type,!0);case 31:return Wa("Activity");default:return""}}function Ec(e){try{var t="",a=null;do t+=y0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var fo=Object.prototype.hasOwnProperty,ho=l.unstable_scheduleCallback,po=l.unstable_cancelCallback,x0=l.unstable_shouldYield,v0=l.unstable_requestPaint,At=l.unstable_now,b0=l.unstable_getCurrentPriorityLevel,Ac=l.unstable_ImmediatePriority,Rc=l.unstable_UserBlockingPriority,bi=l.unstable_NormalPriority,S0=l.unstable_LowPriority,zc=l.unstable_IdlePriority,j0=l.log,E0=l.unstable_setDisableYieldValue,dl=null,Rt=null;function Aa(e){if(typeof j0=="function"&&E0(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(dl,e)}catch{}}var zt=Math.clz32?Math.clz32:z0,A0=Math.log,R0=Math.LN2;function z0(e){return e>>>=0,e===0?32:31-(A0(e)/R0|0)|0}var Si=256,ji=262144,Ei=4194304;function $a(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ai(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~r,n!==0?i=$a(n):(d&=m,d!==0?i=$a(d):a||(a=m&~e,a!==0&&(i=$a(a))))):(m=n&~r,m!==0?i=$a(m):d!==0?i=$a(d):a||(a=n&~e,a!==0&&(i=$a(a)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:i}function hl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function T0(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 Tc(){var e=Ei;return Ei<<=1,(Ei&62914560)===0&&(Ei=4194304),e}function mo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function pl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function C0(e,t,a,n,i,r){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,j=e.expirationTimes,O=e.hiddenUpdates;for(a=d&~a;0<a;){var U=31-zt(a),q=1<<U;m[U]=0,j[U]=-1;var M=O[U];if(M!==null)for(O[U]=null,U=0;U<M.length;U++){var H=M[U];H!==null&&(H.lane&=-536870913)}a&=~q}n!==0&&Cc(e,n,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function Cc(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 wc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-zt(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function _c(e,t){var a=t&-t;return a=(a&42)!==0?1:go(a),(a&(e.suspendedLanes|t))!==0?0:a}function go(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 Oc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:yp(e.type))}function Mc(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var Ra=Math.random().toString(36).slice(2),ot="__reactFiber$"+Ra,mt="__reactProps$"+Ra,bn="__reactContainer$"+Ra,xo="__reactEvents$"+Ra,w0="__reactListeners$"+Ra,_0="__reactHandles$"+Ra,Dc="__reactResources$"+Ra,ml="__reactMarker$"+Ra;function vo(e){delete e[ot],delete e[mt],delete e[xo],delete e[w0],delete e[_0]}function Sn(e){var t=e[ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bn]||a[ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=tp(e);e!==null;){if(a=e[ot])return a;e=tp(e)}return t}e=a,a=e.parentNode}return null}function jn(e){if(e=e[ot]||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 gl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function En(e){var t=e[Dc];return t||(t=e[Dc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[ml]=!0}var kc=new Set,Bc={};function Ia(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(Bc[e]=t,e=0;e<t.length;e++)kc.add(t[e])}var O0=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]*$"),Nc={},Hc={};function M0(e){return fo.call(Hc,e)?!0:fo.call(Nc,e)?!1:O0.test(e)?Hc[e]=!0:(Nc[e]=!0,!1)}function Ri(e,t,a){if(M0(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 zi(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 ia(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 Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D0(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 i=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bo(e){if(!e._valueTracker){var t=Uc(e)?"checked":"value";e._valueTracker=D0(e,t,""+e[t])}}function Lc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Uc(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Ti(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 k0=/[\n"\\]/g;function Nt(e){return e.replace(k0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function So(e,t,a,n,i,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=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?jo(e,d,Bt(t)):a!=null?jo(e,d,Bt(a)):n!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Bt(m):e.removeAttribute("name")}function qc(e,t,a,n,i,r,d,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){bo(e);return}a=a!=null?""+Bt(a):"",t=t!=null?""+Bt(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),bo(e)}function jo(e,t,a){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Rn(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Bt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gc(e,t,a){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Bt(a):""}function Yc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(s(92));if(_e(n)){if(1<n.length)throw Error(s(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Bt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),bo(e)}function zn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var B0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Vc(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||B0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Xc(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&Vc(e,i,n)}else for(var r in t)t.hasOwnProperty(r)&&Vc(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 N0=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"]]),H0=/^[\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 Ci(e){return H0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var Ao=null;function Ro(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tn=null,Cn=null;function Qc(e){var t=jn(e);if(t&&(e=t.stateNode)){var a=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(So(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Nt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[mt]||null;if(!i)throw Error(s(90));So(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&Lc(n)}break e;case"textarea":Gc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Rn(e,!!a.multiple,t,!1)}}}var zo=!1;function Zc(e,t,a){if(zo)return e(t,a);zo=!0;try{var n=e(t);return n}finally{if(zo=!1,(Tn!==null||Cn!==null)&&(mr(),Tn&&(t=Tn,e=Cn,Cn=Tn=null,Qc(t),e)))for(t=0;t<e.length;t++)Qc(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[mt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),To=!1;if(oa)try{var xl={};Object.defineProperty(xl,"passive",{get:function(){To=!0}}),window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{To=!1}var za=null,Co=null,wi=null;function Fc(){if(wi)return wi;var e,t=Co,a=t.length,n,i="value"in za?za.value:za.textContent,r=i.length;for(e=0;e<a&&t[e]===i[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===i[r-n];n++);return wi=i.slice(e,1<n?1-n:void 0)}function _i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Oi(){return!0}function Kc(){return!1}function gt(e){function t(a,n,i,r,d){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Oi:Kc,this.isPropagationStopped=Kc,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Oi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mi=gt(Pa),vl=y({},Pa,{view:0,detail:0}),U0=gt(vl),wo,_o,bl,Di=y({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,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!==bl&&(bl&&e.type==="mousemove"?(wo=e.screenX-bl.screenX,_o=e.screenY-bl.screenY):_o=wo=0,bl=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),Jc=gt(Di),L0=y({},Di,{dataTransfer:0}),q0=gt(L0),G0=y({},vl,{relatedTarget:0}),Oo=gt(G0),Y0=y({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),V0=gt(Y0),X0=y({},Pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Q0=gt(X0),Z0=y({},Pa,{data:0}),Wc=gt(Z0),F0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K0={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"},J0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=J0[e])?!!t[e]:!1}function Mo(){return W0}var $0=y({},vl,{key:function(e){if(e.key){var t=F0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?K0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I0=gt($0),P0=y({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$c=gt(P0),eg=y({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),tg=gt(eg),ag=y({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ng=gt(ag),lg=y({},Di,{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}),ig=gt(lg),rg=y({},Pa,{newState:0,oldState:0}),og=gt(rg),sg=[9,13,27,32],Do=oa&&"CompositionEvent"in window,Sl=null;oa&&"documentMode"in document&&(Sl=document.documentMode);var ug=oa&&"TextEvent"in window&&!Sl,Ic=oa&&(!Do||Sl&&8<Sl&&11>=Sl),Pc=" ",ef=!1;function tf(e,t){switch(e){case"keyup":return sg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function af(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function cg(e,t){switch(e){case"compositionend":return af(t);case"keypress":return t.which!==32?null:(ef=!0,Pc);case"textInput":return e=t.data,e===Pc&&ef?null:e;default:return null}}function fg(e,t){if(wn)return e==="compositionend"||!Do&&tf(e,t)?(e=Fc(),wi=Co=za=null,wn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ic&&t.locale!=="ko"?null:t.data;default:return null}}var dg={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 nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dg[e.type]:t==="textarea"}function lf(e,t,a,n){Tn?Cn?Cn.push(n):Cn=[n]:Tn=n,t=jr(t,"onChange"),0<t.length&&(a=new Mi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var jl=null,El=null;function hg(e){Gh(e,0)}function ki(e){var t=gl(e);if(Lc(t))return e}function rf(e,t){if(e==="change")return t}var of=!1;if(oa){var ko;if(oa){var Bo="oninput"in document;if(!Bo){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),Bo=typeof sf.oninput=="function"}ko=Bo}else ko=!1;of=ko&&(!document.documentMode||9<document.documentMode)}function uf(){jl&&(jl.detachEvent("onpropertychange",cf),El=jl=null)}function cf(e){if(e.propertyName==="value"&&ki(El)){var t=[];lf(t,El,e,Ro(e)),Zc(hg,t)}}function pg(e,t,a){e==="focusin"?(uf(),jl=t,El=a,jl.attachEvent("onpropertychange",cf)):e==="focusout"&&uf()}function mg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ki(El)}function gg(e,t){if(e==="click")return ki(t)}function yg(e,t){if(e==="input"||e==="change")return ki(t)}function xg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:xg;function Al(e,t){if(Tt(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 i=a[n];if(!fo.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function ff(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function df(e,t){var a=ff(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=ff(a)}}function hf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(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=Ti(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 vg=oa&&"documentMode"in document&&11>=document.documentMode,_n=null,Ho=null,Rl=null,Uo=!1;function mf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Uo||_n==null||_n!==Ti(n)||(n=_n,"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}),Rl&&Al(Rl,n)||(Rl=n,n=jr(Ho,"onSelect"),0<n.length&&(t=new Mi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=_n)))}function en(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var On={animationend:en("Animation","AnimationEnd"),animationiteration:en("Animation","AnimationIteration"),animationstart:en("Animation","AnimationStart"),transitionrun:en("Transition","TransitionRun"),transitionstart:en("Transition","TransitionStart"),transitioncancel:en("Transition","TransitionCancel"),transitionend:en("Transition","TransitionEnd")},Lo={},gf={};oa&&(gf=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function tn(e){if(Lo[e])return Lo[e];if(!On[e])return e;var t=On[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in gf)return Lo[e]=t[a];return e}var yf=tn("animationend"),xf=tn("animationiteration"),vf=tn("animationstart"),bg=tn("transitionrun"),Sg=tn("transitionstart"),jg=tn("transitioncancel"),bf=tn("transitionend"),Sf=new Map,qo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");qo.push("scrollEnd");function Zt(e,t){Sf.set(e,t),Ia(t,[e])}var Bi=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)},Ht=[],Mn=0,Go=0;function Ni(){for(var e=Mn,t=Go=Mn=0;t<e;){var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var i=Ht[t];Ht[t++]=null;var r=Ht[t];if(Ht[t++]=null,n!==null&&i!==null){var d=n.pending;d===null?i.next=i:(i.next=d.next,d.next=i),n.pending=i}r!==0&&jf(a,i,r)}}function Hi(e,t,a,n){Ht[Mn++]=e,Ht[Mn++]=t,Ht[Mn++]=a,Ht[Mn++]=n,Go|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Yo(e,t,a,n){return Hi(e,t,a,n),Ui(e)}function an(e,t){return Hi(e,null,null,t),Ui(e)}function jf(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!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||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-zt(a),e=r.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),r):null}function Ui(e){if(50<Fl)throw Fl=0,$s=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dn={};function Eg(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 Ct(e,t,a,n){return new Eg(e,t,a,n)}function Vo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var a=e.alternate;return a===null?(a=Ct(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Ef(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Li(e,t,a,n,i,r){var d=0;if(n=e,typeof e=="function")Vo(e)&&(d=1);else if(typeof e=="string")d=Cy(e,a,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case De:return e=Ct(31,a,t,i),e.elementType=De,e.lanes=r,e;case C:return nn(a.children,i,r,t);case w:d=8,i|=24;break;case Y:return e=Ct(12,a,t,i|2),e.elementType=Y,e.lanes=r,e;case ue:return e=Ct(13,a,t,i),e.elementType=ue,e.lanes=r,e;case me:return e=Ct(19,a,t,i),e.elementType=me,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case I:d=9;break e;case le:d=11;break e;case K:d=14;break e;case we:d=16,n=null;break e}d=29,a=Error(s(130,e===null?"null":typeof e,"")),n=null}return t=Ct(d,a,t,i),t.elementType=e,t.type=n,t.lanes=r,t}function nn(e,t,a,n){return e=Ct(7,e,n,t),e.lanes=a,e}function Xo(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function Af(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Qo(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Rf=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var a=Rf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ec(t)},Rf.set(e,t),t)}return{value:e,source:t,stack:Ec(t)}}var kn=[],Bn=0,qi=null,zl=0,Lt=[],qt=0,Ta=null,It=1,Pt="";function ua(e,t){kn[Bn++]=zl,kn[Bn++]=qi,qi=e,zl=t}function zf(e,t,a){Lt[qt++]=It,Lt[qt++]=Pt,Lt[qt++]=Ta,Ta=e;var n=It;e=Pt;var i=32-zt(n)-1;n&=~(1<<i),a+=1;var r=32-zt(t)+i;if(30<r){var d=i-i%5;r=(n&(1<<d)-1).toString(32),n>>=d,i-=d,It=1<<32-zt(t)+i|a<<i|n,Pt=r+e}else It=1<<r|a<<i|n,Pt=e}function Zo(e){e.return!==null&&(ua(e,1),zf(e,1,0))}function Fo(e){for(;e===qi;)qi=kn[--Bn],kn[Bn]=null,zl=kn[--Bn],kn[Bn]=null;for(;e===Ta;)Ta=Lt[--qt],Lt[qt]=null,Pt=Lt[--qt],Lt[qt]=null,It=Lt[--qt],Lt[qt]=null}function Tf(e,t){Lt[qt++]=It,Lt[qt++]=Pt,Lt[qt++]=Ta,It=t.id,Pt=t.overflow,Ta=e}var st=null,qe=null,Ee=!1,Ca=null,Gt=!1,Ko=Error(s(519));function wa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(Ut(t,e)),Ko}function Cf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ot]=e,t[mt]=n,a){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(a=0;a<Jl.length;a++)ye(Jl[a],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),qc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),Yc(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||Qh(t.textContent,a)?(n.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),n.onScroll!=null&&ye("scroll",t),n.onScrollEnd!=null&&ye("scrollend",t),n.onClick!=null&&(t.onclick=ra),t=!0):t=!1,t||wa(e,!0)}function wf(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 Nn(e){if(e!==st)return!1;if(!Ee)return wf(e),Ee=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||du(e.type,e.memoizedProps)),a=!a),a&&qe&&wa(e),wf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));qe=ep(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));qe=ep(e)}else t===27?(t=qe,Va(e.type)?(e=yu,yu=null,qe=e):qe=t):qe=st?Vt(e.stateNode.nextSibling):null;return!0}function ln(){qe=st=null,Ee=!1}function Jo(){var e=Ca;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),Ca=null),e}function Tl(e){Ca===null?Ca=[e]:Ca.push(e)}var Wo=S(null),rn=null,ca=null;function _a(e,t,a){G(Wo,t._currentValue),t._currentValue=a}function fa(e){e._currentValue=Wo.current,B(Wo)}function $o(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Io(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var d=i.child;r=r.firstContext;e:for(;r!==null;){var m=r;r=i;for(var j=0;j<t.length;j++)if(m.context===t[j]){r.lanes|=a,m=r.alternate,m!==null&&(m.lanes|=a),$o(r.return,a,e),n||(d=null);break e}r=m.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(s(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),$o(d,a,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function Hn(e,t,a,n){e=null;for(var i=t,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var m=i.type;Tt(i.pendingProps.value,d.value)||(e!==null?e.push(m):e=[m])}}else if(i===Re.current){if(d=i.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ei):e=[ei])}i=i.return}e!==null&&Io(t,e,a,n),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function on(e){rn=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return _f(rn,e)}function Yi(e,t){return rn===null&&on(e),_f(e,t)}function _f(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ca===null){if(e===null)throw Error(s(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return a}var Ag=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()})}},Rg=l.unstable_scheduleCallback,zg=l.unstable_NormalPriority,$e={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Po(){return{controller:new Ag,data:new Map,refCount:0}}function Cl(e){e.refCount--,e.refCount===0&&Rg(zg,function(){e.controller.abort()})}var wl=null,es=0,Un=0,Ln=null;function Tg(e,t){if(wl===null){var a=wl=[];es=0,Un=nu(),Ln={status:"pending",value:void 0,then:function(n){a.push(n)}}}return es++,t.then(Of,Of),t}function Of(){if(--es===0&&wl!==null){Ln!==null&&(Ln.status="fulfilled");var e=wl;wl=null,Un=0,Ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Cg(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var Mf=k.S;k.S=function(e,t){mh=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Tg(e,t),Mf!==null&&Mf(e,t)};var sn=S(null);function ts(){var e=sn.current;return e!==null?e:Ue.pooledCache}function Vi(e,t){t===null?G(sn,sn.current):G(sn,t.pool)}function Df(){var e=ts();return e===null?null:{parent:$e._currentValue,pool:e}}var qn=Error(s(460)),as=Error(s(474)),Xi=Error(s(542)),Qi={then:function(){}};function kf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ra,ra),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e;default:if(typeof t.status=="string")t.then(ra,ra);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e}throw cn=t,qn}}function un(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(cn=a,qn):a}}var cn=null;function Nf(){if(cn===null)throw Error(s(459));var e=cn;return cn=null,e}function Hf(e){if(e===qn||e===Xi)throw Error(s(483))}var Gn=null,_l=0;function Zi(e){var t=_l;return _l+=1,Gn===null&&(Gn=[]),Bf(Gn,e,t)}function Ol(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fi(e,t){throw t.$$typeof===D?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Uf(e){function t(T,E){if(e){var _=T.deletions;_===null?(T.deletions=[E],T.flags|=16):_.push(E)}}function a(T,E){if(!e)return null;for(;E!==null;)t(T,E),E=E.sibling;return null}function n(T){for(var E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function i(T,E){return T=sa(T,E),T.index=0,T.sibling=null,T}function r(T,E,_){return T.index=_,e?(_=T.alternate,_!==null?(_=_.index,_<E?(T.flags|=67108866,E):_):(T.flags|=67108866,E)):(T.flags|=1048576,E)}function d(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,E,_,L){return E===null||E.tag!==6?(E=Xo(_,T.mode,L),E.return=T,E):(E=i(E,_),E.return=T,E)}function j(T,E,_,L){var ne=_.type;return ne===C?U(T,E,_.props.children,L,_.key):E!==null&&(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&un(ne)===E.type)?(E=i(E,_.props),Ol(E,_),E.return=T,E):(E=Li(_.type,_.key,_.props,null,T.mode,L),Ol(E,_),E.return=T,E)}function O(T,E,_,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==_.containerInfo||E.stateNode.implementation!==_.implementation?(E=Qo(_,T.mode,L),E.return=T,E):(E=i(E,_.children||[]),E.return=T,E)}function U(T,E,_,L,ne){return E===null||E.tag!==7?(E=nn(_,T.mode,L,ne),E.return=T,E):(E=i(E,_),E.return=T,E)}function q(T,E,_){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Xo(""+E,T.mode,_),E.return=T,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case A:return _=Li(E.type,E.key,E.props,null,T.mode,_),Ol(_,E),_.return=T,_;case R:return E=Qo(E,T.mode,_),E.return=T,E;case we:return E=un(E),q(T,E,_)}if(_e(E)||Z(E))return E=nn(E,T.mode,_,null),E.return=T,E;if(typeof E.then=="function")return q(T,Zi(E),_);if(E.$$typeof===X)return q(T,Yi(T,E),_);Fi(T,E)}return null}function M(T,E,_,L){var ne=E!==null?E.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ne!==null?null:m(T,E,""+_,L);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case A:return _.key===ne?j(T,E,_,L):null;case R:return _.key===ne?O(T,E,_,L):null;case we:return _=un(_),M(T,E,_,L)}if(_e(_)||Z(_))return ne!==null?null:U(T,E,_,L,null);if(typeof _.then=="function")return M(T,E,Zi(_),L);if(_.$$typeof===X)return M(T,E,Yi(T,_),L);Fi(T,_)}return null}function H(T,E,_,L,ne){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return T=T.get(_)||null,m(E,T,""+L,ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case A:return T=T.get(L.key===null?_:L.key)||null,j(E,T,L,ne);case R:return T=T.get(L.key===null?_:L.key)||null,O(E,T,L,ne);case we:return L=un(L),H(T,E,_,L,ne)}if(_e(L)||Z(L))return T=T.get(_)||null,U(E,T,L,ne,null);if(typeof L.then=="function")return H(T,E,_,Zi(L),ne);if(L.$$typeof===X)return H(T,E,_,Yi(E,L),ne);Fi(E,L)}return null}function J(T,E,_,L){for(var ne=null,ze=null,ee=E,de=E=0,be=null;ee!==null&&de<_.length;de++){ee.index>de?(be=ee,ee=null):be=ee.sibling;var Te=M(T,ee,_[de],L);if(Te===null){ee===null&&(ee=be);break}e&&ee&&Te.alternate===null&&t(T,ee),E=r(Te,E,de),ze===null?ne=Te:ze.sibling=Te,ze=Te,ee=be}if(de===_.length)return a(T,ee),Ee&&ua(T,de),ne;if(ee===null){for(;de<_.length;de++)ee=q(T,_[de],L),ee!==null&&(E=r(ee,E,de),ze===null?ne=ee:ze.sibling=ee,ze=ee);return Ee&&ua(T,de),ne}for(ee=n(ee);de<_.length;de++)be=H(ee,T,de,_[de],L),be!==null&&(e&&be.alternate!==null&&ee.delete(be.key===null?de:be.key),E=r(be,E,de),ze===null?ne=be:ze.sibling=be,ze=be);return e&&ee.forEach(function(Ka){return t(T,Ka)}),Ee&&ua(T,de),ne}function ie(T,E,_,L){if(_==null)throw Error(s(151));for(var ne=null,ze=null,ee=E,de=E=0,be=null,Te=_.next();ee!==null&&!Te.done;de++,Te=_.next()){ee.index>de?(be=ee,ee=null):be=ee.sibling;var Ka=M(T,ee,Te.value,L);if(Ka===null){ee===null&&(ee=be);break}e&&ee&&Ka.alternate===null&&t(T,ee),E=r(Ka,E,de),ze===null?ne=Ka:ze.sibling=Ka,ze=Ka,ee=be}if(Te.done)return a(T,ee),Ee&&ua(T,de),ne;if(ee===null){for(;!Te.done;de++,Te=_.next())Te=q(T,Te.value,L),Te!==null&&(E=r(Te,E,de),ze===null?ne=Te:ze.sibling=Te,ze=Te);return Ee&&ua(T,de),ne}for(ee=n(ee);!Te.done;de++,Te=_.next())Te=H(ee,T,de,Te.value,L),Te!==null&&(e&&Te.alternate!==null&&ee.delete(Te.key===null?de:Te.key),E=r(Te,E,de),ze===null?ne=Te:ze.sibling=Te,ze=Te);return e&&ee.forEach(function(Ly){return t(T,Ly)}),Ee&&ua(T,de),ne}function Ne(T,E,_,L){if(typeof _=="object"&&_!==null&&_.type===C&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case A:e:{for(var ne=_.key;E!==null;){if(E.key===ne){if(ne=_.type,ne===C){if(E.tag===7){a(T,E.sibling),L=i(E,_.props.children),L.return=T,T=L;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&un(ne)===E.type){a(T,E.sibling),L=i(E,_.props),Ol(L,_),L.return=T,T=L;break e}a(T,E);break}else t(T,E);E=E.sibling}_.type===C?(L=nn(_.props.children,T.mode,L,_.key),L.return=T,T=L):(L=Li(_.type,_.key,_.props,null,T.mode,L),Ol(L,_),L.return=T,T=L)}return d(T);case R:e:{for(ne=_.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){a(T,E.sibling),L=i(E,_.children||[]),L.return=T,T=L;break e}else{a(T,E);break}else t(T,E);E=E.sibling}L=Qo(_,T.mode,L),L.return=T,T=L}return d(T);case we:return _=un(_),Ne(T,E,_,L)}if(_e(_))return J(T,E,_,L);if(Z(_)){if(ne=Z(_),typeof ne!="function")throw Error(s(150));return _=ne.call(_),ie(T,E,_,L)}if(typeof _.then=="function")return Ne(T,E,Zi(_),L);if(_.$$typeof===X)return Ne(T,E,Yi(T,_),L);Fi(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(a(T,E.sibling),L=i(E,_),L.return=T,T=L):(a(T,E),L=Xo(_,T.mode,L),L.return=T,T=L),d(T)):a(T,E)}return function(T,E,_,L){try{_l=0;var ne=Ne(T,E,_,L);return Gn=null,ne}catch(ee){if(ee===qn||ee===Xi)throw ee;var ze=Ct(29,ee,null,T.mode);return ze.lanes=L,ze.return=T,ze}}}var fn=Uf(!0),Lf=Uf(!1),Oa=!1;function ns(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ls(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ce&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=Ui(e),jf(e,null,a),t}return Hi(e,n,t,a),Ui(e)}function Ml(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,wc(e,a)}}function is(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=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?i=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?i=r=t:r=r.next=t}else i=r=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var rs=!1;function Dl(){if(rs){var e=Ln;if(e!==null)throw e}}function kl(e,t,a,n){rs=!1;var i=e.updateQueue;Oa=!1;var r=i.firstBaseUpdate,d=i.lastBaseUpdate,m=i.shared.pending;if(m!==null){i.shared.pending=null;var j=m,O=j.next;j.next=null,d===null?r=O:d.next=O,d=j;var U=e.alternate;U!==null&&(U=U.updateQueue,m=U.lastBaseUpdate,m!==d&&(m===null?U.firstBaseUpdate=O:m.next=O,U.lastBaseUpdate=j))}if(r!==null){var q=i.baseState;d=0,U=O=j=null,m=r;do{var M=m.lane&-536870913,H=M!==m.lane;if(H?(ve&M)===M:(n&M)===M){M!==0&&M===Un&&(rs=!0),U!==null&&(U=U.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var J=e,ie=m;M=t;var Ne=a;switch(ie.tag){case 1:if(J=ie.payload,typeof J=="function"){q=J.call(Ne,q,M);break e}q=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ie.payload,M=typeof J=="function"?J.call(Ne,q,M):J,M==null)break e;q=y({},q,M);break e;case 2:Oa=!0}}M=m.callback,M!==null&&(e.flags|=64,H&&(e.flags|=8192),H=i.callbacks,H===null?i.callbacks=[M]:H.push(M))}else H={lane:M,tag:m.tag,payload:m.payload,callback:m.callback,next:null},U===null?(O=U=H,j=q):U=U.next=H,d|=M;if(m=m.next,m===null){if(m=i.shared.pending,m===null)break;H=m,m=H.next,H.next=null,i.lastBaseUpdate=H,i.shared.pending=null}}while(!0);U===null&&(j=q),i.baseState=j,i.firstBaseUpdate=O,i.lastBaseUpdate=U,r===null&&(i.shared.lanes=0),Ua|=d,e.lanes=d,e.memoizedState=q}}function qf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Gf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)qf(a[e],t)}var Yn=S(null),Ki=S(0);function Yf(e,t){e=ba,G(Ki,e),G(Yn,t),ba=e|t.baseLanes}function os(){G(Ki,ba),G(Yn,Yn.current)}function ss(){ba=Ki.current,B(Yn),B(Ki)}var wt=S(null),Yt=null;function ka(e){var t=e.alternate;G(Fe,Fe.current&1),G(wt,e),Yt===null&&(t===null||Yn.current!==null||t.memoizedState!==null)&&(Yt=e)}function us(e){G(Fe,Fe.current),G(wt,e),Yt===null&&(Yt=e)}function Vf(e){e.tag===22?(G(Fe,Fe.current),G(wt,e),Yt===null&&(Yt=e)):Ba()}function Ba(){G(Fe,Fe.current),G(wt,wt.current)}function _t(e){B(wt),Yt===e&&(Yt=null),B(Fe)}var Fe=S(0);function Ji(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||mu(a)||gu(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 da=0,ce=null,ke=null,Ie=null,Wi=!1,Vn=!1,dn=!1,$i=0,Bl=0,Xn=null,wg=0;function Xe(){throw Error(s(321))}function cs(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Tt(e[a],t[a]))return!1;return!0}function fs(e,t,a,n,i,r){return da=r,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?zd:zs,dn=!1,r=a(n,i),dn=!1,Vn&&(r=Qf(t,a,n,i)),Xf(e),r}function Xf(e){k.H=Ul;var t=ke!==null&&ke.next!==null;if(da=0,Ie=ke=ce=null,Wi=!1,Bl=0,Xn=null,t)throw Error(s(300));e===null||Pe||(e=e.dependencies,e!==null&&Gi(e)&&(Pe=!0))}function Qf(e,t,a,n){ce=e;var i=0;do{if(Vn&&(Xn=null),Bl=0,Vn=!1,25<=i)throw Error(s(301));if(i+=1,Ie=ke=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}k.H=Td,r=t(a,n)}while(Vn);return r}function _g(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?Nl(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(ce.flags|=1024),t}function ds(){var e=$i!==0;return $i=0,e}function hs(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ps(e){if(Wi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wi=!1}da=0,Ie=ke=ce=null,Vn=!1,Bl=$i=0,Xn=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?ce.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Ke(){if(ke===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=Ie===null?ce.memoizedState:Ie.next;if(t!==null)Ie=t,ke=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Ie===null?ce.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Ii(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nl(e){var t=Bl;return Bl+=1,Xn===null&&(Xn=[]),e=Bf(Xn,e,t),t=ce,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?zd:zs),e}function Pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nl(e);if(e.$$typeof===X)return ut(e)}throw Error(s(438,String(e)))}function ms(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ce.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ii(),ce.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]=it;return t.index++,a}function ha(e,t){return typeof t=="function"?t(e):t}function er(e){var t=Ke();return gs(t,ke,e)}function gs(e,t,a){var n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=a;var i=e.baseQueue,r=n.pending;if(r!==null){if(i!==null){var d=i.next;i.next=r.next,r.next=d}t.baseQueue=i=r,n.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var m=d=null,j=null,O=t,U=!1;do{var q=O.lane&-536870913;if(q!==O.lane?(ve&q)===q:(da&q)===q){var M=O.revertLane;if(M===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),q===Un&&(U=!0);else if((da&M)===M){O=O.next,M===Un&&(U=!0);continue}else q={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(m=j=q,d=r):j=j.next=q,ce.lanes|=M,Ua|=M;q=O.action,dn&&a(r,q),r=O.hasEagerState?O.eagerState:a(r,q)}else M={lane:q,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(m=j=M,d=r):j=j.next=M,ce.lanes|=q,Ua|=q;O=O.next}while(O!==null&&O!==t);if(j===null?d=r:j.next=m,!Tt(r,e.memoizedState)&&(Pe=!0,U&&(a=Ln,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=j,n.lastRenderedState=r}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function ys(e){var t=Ke(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var n=a.dispatch,i=a.pending,r=t.memoizedState;if(i!==null){a.pending=null;var d=i=i.next;do r=e(r,d.action),d=d.next;while(d!==i);Tt(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Zf(e,t,a){var n=ce,i=Ke(),r=Ee;if(r){if(a===void 0)throw Error(s(407));a=a()}else a=t();var d=!Tt((ke||i).memoizedState,a);if(d&&(i.memoizedState=a,Pe=!0),i=i.queue,bs(Jf.bind(null,n,i,e),[e]),i.getSnapshot!==t||d||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},Kf.bind(null,n,i,a,t),null),Ue===null)throw Error(s(349));r||(da&127)!==0||Ff(n,t,a)}return a}function Ff(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=Ii(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Kf(e,t,a,n){t.value=a,t.getSnapshot=n,Wf(t)&&$f(e)}function Jf(e,t,a){return a(function(){Wf(t)&&$f(e)})}function Wf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Tt(e,a)}catch{return!0}}function $f(e){var t=an(e,2);t!==null&&St(t,e,2)}function xs(e){var t=pt();if(typeof e=="function"){var a=e;if(e=a(),dn){Aa(!0);try{a()}finally{Aa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function If(e,t,a,n){return e.baseState=a,gs(e,ke,typeof n=="function"?n:ha)}function Og(e,t,a,n,i){if(nr(e))throw Error(s(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};k.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Pf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Pf(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var r=k.T,d={};k.T=d;try{var m=a(i,n),j=k.S;j!==null&&j(d,m),ed(e,t,m)}catch(O){vs(e,t,O)}finally{r!==null&&d.types!==null&&(r.types=d.types),k.T=r}}else try{r=a(i,n),ed(e,t,r)}catch(O){vs(e,t,O)}}function ed(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){td(e,t,n)},function(n){return vs(e,t,n)}):td(e,t,a)}function td(e,t,a){t.status="fulfilled",t.value=a,ad(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Pf(e,a)))}function vs(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,ad(t),t=t.next;while(t!==n)}e.action=null}function ad(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nd(e,t){return t}function ld(e,t){if(Ee){var a=Ue.formState;if(a!==null){e:{var n=ce;if(Ee){if(qe){t:{for(var i=qe,r=Gt;i.nodeType!==8;){if(!r){i=null;break t}if(i=Vt(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){qe=Vt(i.nextSibling),n=i.data==="F!";break e}}wa(n)}n=!1}n&&(t=a[0])}}return a=pt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nd,lastRenderedState:t},a.queue=n,a=Ed.bind(null,ce,n),n.dispatch=a,n=xs(!1),r=Rs.bind(null,ce,!1,n.queue),n=pt(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=Og.bind(null,ce,i,r,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function id(e){var t=Ke();return rd(t,ke,e)}function rd(e,t,a){if(t=gs(e,t,nd)[0],e=er(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Nl(t)}catch(d){throw d===qn?Xi:d}else n=t;t=Ke();var i=t.queue,r=i.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Qn(9,{destroy:void 0},Mg.bind(null,i,a),null)),[n,r,e]}function Mg(e,t){e.action=t}function od(e){var t=Ke(),a=ke;if(a!==null)return rd(t,a,e);Ke(),t=t.memoizedState,a=Ke();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=ce.updateQueue,t===null&&(t=Ii(),ce.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 sd(){return Ke().memoizedState}function tr(e,t,a,n){var i=pt();ce.flags|=e,i.memoizedState=Qn(1|t,{destroy:void 0},a,n===void 0?null:n)}function ar(e,t,a,n){var i=Ke();n=n===void 0?null:n;var r=i.memoizedState.inst;ke!==null&&n!==null&&cs(n,ke.memoizedState.deps)?i.memoizedState=Qn(t,r,a,n):(ce.flags|=e,i.memoizedState=Qn(1|t,r,a,n))}function ud(e,t){tr(8390656,8,e,t)}function bs(e,t){ar(2048,8,e,t)}function Dg(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Ii(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function cd(e){var t=Ke().memoizedState;return Dg({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function fd(e,t){return ar(4,2,e,t)}function dd(e,t){return ar(4,4,e,t)}function hd(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 pd(e,t,a){a=a!=null?a.concat([e]):null,ar(4,4,hd.bind(null,t,e),a)}function Ss(){}function md(e,t){var a=Ke();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&cs(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function gd(e,t){var a=Ke();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&cs(t,n[1]))return n[0];if(n=e(),dn){Aa(!0);try{e()}finally{Aa(!1)}}return a.memoizedState=[n,t],n}function js(e,t,a){return a===void 0||(da&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=yh(),ce.lanes|=e,Ua|=e,a)}function yd(e,t,a,n){return Tt(a,t)?a:Yn.current!==null?(e=js(e,a,n),Tt(e,t)||(Pe=!0),e):(da&42)===0||(da&1073741824)!==0&&(ve&261930)===0?(Pe=!0,e.memoizedState=a):(e=yh(),ce.lanes|=e,Ua|=e,t)}function xd(e,t,a,n,i){var r=Q.p;Q.p=r!==0&&8>r?r:8;var d=k.T,m={};k.T=m,Rs(e,!1,t,a);try{var j=i(),O=k.S;if(O!==null&&O(m,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var U=Cg(j,n);Hl(e,t,U,Dt(e))}else Hl(e,t,n,Dt(e))}catch(q){Hl(e,t,{then:function(){},status:"rejected",reason:q},Dt())}finally{Q.p=r,d!==null&&m.types!==null&&(d.types=m.types),k.T=d}}function kg(){}function Es(e,t,a,n){if(e.tag!==5)throw Error(s(476));var i=vd(e).queue;xd(e,i,t,te,a===null?kg:function(){return bd(e),a(n)})}function vd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:te},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bd(e){var t=vd(e);t.next===null&&(t=e.alternate.memoizedState),Hl(e,t.next.queue,{},Dt())}function As(){return ut(ei)}function Sd(){return Ke().memoizedState}function jd(){return Ke().memoizedState}function Bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Dt();e=Ma(a);var n=Da(t,e,a);n!==null&&(St(n,t,a),Ml(n,t,a)),t={cache:Po()},e.payload=t;return}t=t.return}}function Ng(e,t,a){var n=Dt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},nr(e)?Ad(t,a):(a=Yo(e,t,a,n),a!==null&&(St(a,e,n),Rd(a,t,n)))}function Ed(e,t,a){var n=Dt();Hl(e,t,a,n)}function Hl(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(nr(e))Ad(t,i);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(i.hasEagerState=!0,i.eagerState=m,Tt(m,d))return Hi(e,t,i,0),Ue===null&&Ni(),!1}catch{}if(a=Yo(e,t,i,n),a!==null)return St(a,e,n),Rd(a,t,n),!0}return!1}function Rs(e,t,a,n){if(n={lane:2,revertLane:nu(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},nr(e)){if(t)throw Error(s(479))}else t=Yo(e,a,n,2),t!==null&&St(t,e,2)}function nr(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Ad(e,t){Vn=Wi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Rd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,wc(e,a)}}var Ul={readContext:ut,use:Pi,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Ul.useEffectEvent=Xe;var zd={readContext:ut,use:Pi,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:ud,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,tr(4194308,4,hd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return tr(4194308,4,e,t)},useInsertionEffect:function(e,t){tr(4,2,e,t)},useMemo:function(e,t){var a=pt();t=t===void 0?null:t;var n=e();if(dn){Aa(!0);try{e()}finally{Aa(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=pt();if(a!==void 0){var i=a(t);if(dn){Aa(!0);try{a(t)}finally{Aa(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Ng.bind(null,ce,e),[n.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,a=Ed.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ss,useDeferredValue:function(e,t){var a=pt();return js(a,e,t)},useTransition:function(){var e=xs(!1);return e=xd.bind(null,ce,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ce,i=pt();if(Ee){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Ue===null)throw Error(s(349));(ve&127)!==0||Ff(n,t,a)}i.memoizedState=a;var r={value:a,getSnapshot:t};return i.queue=r,ud(Jf.bind(null,n,r,e),[e]),n.flags|=2048,Qn(9,{destroy:void 0},Kf.bind(null,n,r,a,t),null),a},useId:function(){var e=pt(),t=Ue.identifierPrefix;if(Ee){var a=Pt,n=It;a=(n&~(1<<32-zt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=$i++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=wg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:As,useFormState:ld,useActionState:ld,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Rs.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:ms,useCacheRefresh:function(){return pt().memoizedState=Bg.bind(null,ce)},useEffectEvent:function(e){var t=pt(),a={impl:e};return t.memoizedState=a,function(){if((Ce&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},zs={readContext:ut,use:Pi,useCallback:md,useContext:ut,useEffect:bs,useImperativeHandle:pd,useInsertionEffect:fd,useLayoutEffect:dd,useMemo:gd,useReducer:er,useRef:sd,useState:function(){return er(ha)},useDebugValue:Ss,useDeferredValue:function(e,t){var a=Ke();return yd(a,ke.memoizedState,e,t)},useTransition:function(){var e=er(ha)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:Zf,useId:Sd,useHostTransitionStatus:As,useFormState:id,useActionState:id,useOptimistic:function(e,t){var a=Ke();return If(a,ke,e,t)},useMemoCache:ms,useCacheRefresh:jd};zs.useEffectEvent=cd;var Td={readContext:ut,use:Pi,useCallback:md,useContext:ut,useEffect:bs,useImperativeHandle:pd,useInsertionEffect:fd,useLayoutEffect:dd,useMemo:gd,useReducer:ys,useRef:sd,useState:function(){return ys(ha)},useDebugValue:Ss,useDeferredValue:function(e,t){var a=Ke();return ke===null?js(a,e,t):yd(a,ke.memoizedState,e,t)},useTransition:function(){var e=ys(ha)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:Zf,useId:Sd,useHostTransitionStatus:As,useFormState:od,useActionState:od,useOptimistic:function(e,t){var a=Ke();return ke!==null?If(a,ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ms,useCacheRefresh:jd};Td.useEffectEvent=cd;function Ts(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Cs={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Dt(),i=Ma(n);i.payload=t,a!=null&&(i.callback=a),t=Da(e,i,n),t!==null&&(St(t,e,n),Ml(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Dt(),i=Ma(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Da(e,i,n),t!==null&&(St(t,e,n),Ml(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Dt(),n=Ma(a);n.tag=2,t!=null&&(n.callback=t),t=Da(e,n,a),t!==null&&(St(t,e,a),Ml(t,e,a))}};function Cd(e,t,a,n,i,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,d):t.prototype&&t.prototype.isPureReactComponent?!Al(a,n)||!Al(i,r):!0}function wd(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&&Cs.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=y({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function _d(e){Bi(e)}function Od(e){console.error(e)}function Md(e){Bi(e)}function lr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Dd(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function ws(e,t,a){return a=Ma(a),a.tag=3,a.payload={element:null},a.callback=function(){lr(e,t)},a}function kd(e){return e=Ma(e),e.tag=3,e}function Bd(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var r=n.value;e.payload=function(){return i(r)},e.callback=function(){Dd(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Dd(t,a,n),typeof i!="function"&&(La===null?La=new Set([this]):La.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function Hg(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Hn(t,a,i,!0),a=wt.current,a!==null){switch(a.tag){case 31:case 13:return Yt===null?gr():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===Qi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),eu(e,n,i)),!1;case 22:return a.flags|=65536,n===Qi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),eu(e,n,i)),!1}throw Error(s(435,a.tag))}return eu(e,n,i),gr(),!1}if(Ee)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==Ko&&(e=Error(s(422),{cause:n}),Tl(Ut(e,a)))):(n!==Ko&&(t=Error(s(423),{cause:n}),Tl(Ut(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=Ut(n,a),i=ws(e.stateNode,n,i),is(e,i),Qe!==4&&(Qe=2)),!1;var r=Error(s(520),{cause:n});if(r=Ut(r,a),Zl===null?Zl=[r]:Zl.push(r),Qe!==4&&(Qe=2),t===null)return!0;n=Ut(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=ws(a.stateNode,n,e),is(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(La===null||!La.has(r))))return a.flags|=65536,i&=-i,a.lanes|=i,i=kd(i),Bd(i,e,a,n),is(a,i),!1}a=a.return}while(a!==null);return!1}var _s=Error(s(461)),Pe=!1;function ct(e,t,a,n){t.child=e===null?Lf(t,null,a,n):fn(t,e.child,a,n)}function Nd(e,t,a,n,i){a=a.render;var r=t.ref;if("ref"in n){var d={};for(var m in n)m!=="ref"&&(d[m]=n[m])}else d=n;return on(t),n=fs(e,t,a,d,r,i),m=ds(),e!==null&&!Pe?(hs(e,t,i),pa(e,t,i)):(Ee&&m&&Zo(t),t.flags|=1,ct(e,t,n,i),t.child)}function Hd(e,t,a,n,i){if(e===null){var r=a.type;return typeof r=="function"&&!Vo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Ud(e,t,r,n,i)):(e=Li(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Us(e,i)){var d=r.memoizedProps;if(a=a.compare,a=a!==null?a:Al,a(d,n)&&e.ref===t.ref)return pa(e,t,i)}return t.flags|=1,e=sa(r,n),e.ref=t.ref,e.return=t,t.child=e}function Ud(e,t,a,n,i){if(e!==null){var r=e.memoizedProps;if(Al(r,n)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=n=r,Us(e,i))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,pa(e,t,i)}return Os(e,t,a,n,i)}function Ld(e,t,a,n){var i=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,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~r}else n=0,t.child=null;return qd(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vi(t,r!==null?r.cachePool:null),r!==null?Yf(t,r):os(),Vf(t);else return n=t.lanes=536870912,qd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Vi(t,r.cachePool),Yf(t,r),Ba(),t.memoizedState=null):(e!==null&&Vi(t,null),os(),Ba());return ct(e,t,i,a),t.child}function Ll(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qd(e,t,a,n,i){var r=ts();return r=r===null?null:{parent:$e._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Vi(t,null),os(),Vf(t),e!==null&&Hn(e,t,n,!0),t.childLanes=i,null}function ir(e,t){return t=or({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gd(e,t,a){return fn(t,e.child,null,a),e=ir(t,t.pendingProps),e.flags|=2,_t(t),t.memoizedState=null,e}function Ug(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(n.mode==="hidden")return e=ir(t,n),t.lanes=536870912,Ll(null,e);if(us(t),(e=qe)?(e=Ph(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},a=Af(e),a.return=t,t.child=a,st=t,qe=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return ir(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(us(t),i)if(t.flags&256)t.flags&=-257,t=Gd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Pe||Hn(e,t,a,!1),i=(a&e.childLanes)!==0,Pe||i){if(n=Ue,n!==null&&(d=_c(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,an(e,d),St(n,e,d),_s;gr(),t=Gd(e,t,a)}else e=r.treeContext,qe=Vt(d.nextSibling),st=t,Ee=!0,Ca=null,Gt=!1,e!==null&&Tf(t,e),t=ir(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 rr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Os(e,t,a,n,i){return on(t),a=fs(e,t,a,n,void 0,i),n=ds(),e!==null&&!Pe?(hs(e,t,i),pa(e,t,i)):(Ee&&n&&Zo(t),t.flags|=1,ct(e,t,a,i),t.child)}function Yd(e,t,a,n,i,r){return on(t),t.updateQueue=null,a=Qf(t,n,a,i),Xf(e),n=ds(),e!==null&&!Pe?(hs(e,t,r),pa(e,t,r)):(Ee&&n&&Zo(t),t.flags|=1,ct(e,t,a,r),t.child)}function Vd(e,t,a,n,i){if(on(t),t.stateNode===null){var r=Dn,d=a.contextType;typeof d=="object"&&d!==null&&(r=ut(d)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Cs,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},ns(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?ut(d):Dn,r.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Ts(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&&Cs.enqueueReplaceState(r,r.state,null),kl(t,n,r,i),Dl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var m=t.memoizedProps,j=hn(a,m);r.props=j;var O=r.context,U=a.contextType;d=Dn,typeof U=="object"&&U!==null&&(d=ut(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||O!==d)&&wd(t,r,n,d),Oa=!1;var M=t.memoizedState;r.state=M,kl(t,n,r,i),Dl(),O=t.memoizedState,m||M!==O||Oa?(typeof q=="function"&&(Ts(t,a,q,n),O=t.memoizedState),(j=Oa||Cd(t,a,j,n,M,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=O),r.props=n,r.state=O,r.context=d,n=j):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,ls(e,t),d=t.memoizedProps,U=hn(a,d),r.props=U,q=t.pendingProps,M=r.context,O=a.contextType,j=Dn,typeof O=="object"&&O!==null&&(j=ut(O)),m=a.getDerivedStateFromProps,(O=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==q||M!==j)&&wd(t,r,n,j),Oa=!1,M=t.memoizedState,r.state=M,kl(t,n,r,i),Dl();var H=t.memoizedState;d!==q||M!==H||Oa||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof m=="function"&&(Ts(t,a,m,n),H=t.memoizedState),(U=Oa||Cd(t,a,U,n,M,H,j)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(O||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,H,j),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,H,j)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=H),r.props=n,r.state=H,r.context=j,n=U):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,rr(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=fn(t,e.child,null,i),t.child=fn(t,null,a,i)):ct(e,t,a,i),t.memoizedState=r.state,e=t.child):e=pa(e,t,i),e}function Xd(e,t,a,n){return ln(),t.flags|=256,ct(e,t,a,n),t.child}var Ms={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ds(e){return{baseLanes:e,cachePool:Df()}}function ks(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Mt),e}function Qd(e,t,a){var n=t.pendingProps,i=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(i?ka(t):Ba(),(e=qe)?(e=Ph(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},a=Af(e),a.return=t,t.child=a,st=t,qe=null)):e=null,e===null)throw wa(t);return gu(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,i?(Ba(),i=t.mode,m=or({mode:"hidden",children:m},i),n=nn(n,i,a,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=Ds(a),n.childLanes=ks(e,d,a),t.memoizedState=Ms,Ll(null,n)):(ka(t),Bs(t,m))}var j=e.memoizedState;if(j!==null&&(m=j.dehydrated,m!==null)){if(r)t.flags&256?(ka(t),t.flags&=-257,t=Ns(e,t,a)):t.memoizedState!==null?(Ba(),t.child=e.child,t.flags|=128,t=null):(Ba(),m=n.fallback,i=t.mode,n=or({mode:"visible",children:n.children},i),m=nn(m,i,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=Ds(a),n.childLanes=ks(e,d,a),t.memoizedState=Ms,t=Ll(null,n));else if(ka(t),gu(m)){if(d=m.nextSibling&&m.nextSibling.dataset,d)var O=d.dgst;d=O,n=Error(s(419)),n.stack="",n.digest=d,Tl({value:n,source:null,stack:null}),t=Ns(e,t,a)}else if(Pe||Hn(e,t,a,!1),d=(a&e.childLanes)!==0,Pe||d){if(d=Ue,d!==null&&(n=_c(d,a),n!==0&&n!==j.retryLane))throw j.retryLane=n,an(e,n),St(d,e,n),_s;mu(m)||gr(),t=Ns(e,t,a)}else mu(m)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,qe=Vt(m.nextSibling),st=t,Ee=!0,Ca=null,Gt=!1,e!==null&&Tf(t,e),t=Bs(t,n.children),t.flags|=4096);return t}return i?(Ba(),m=n.fallback,i=t.mode,j=e.child,O=j.sibling,n=sa(j,{mode:"hidden",children:n.children}),n.subtreeFlags=j.subtreeFlags&65011712,O!==null?m=sa(O,m):(m=nn(m,i,a,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,Ll(null,n),n=t.child,m=e.child.memoizedState,m===null?m=Ds(a):(i=m.cachePool,i!==null?(j=$e._currentValue,i=i.parent!==j?{parent:j,pool:j}:i):i=Df(),m={baseLanes:m.baseLanes|a,cachePool:i}),n.memoizedState=m,n.childLanes=ks(e,d,a),t.memoizedState=Ms,Ll(e.child,n)):(ka(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 Bs(e,t){return t=or({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function or(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Ns(e,t,a){return fn(t,e.child,null,a),e=Bs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),$o(e.return,t,a)}function Hs(e,t,a,n,i,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=i,d.treeForkCount=r)}function Fd(e,t,a){var n=t.pendingProps,i=n.revealOrder,r=n.tail;n=n.children;var d=Fe.current,m=(d&2)!==0;if(m?(d=d&1|2,t.flags|=128):d&=1,G(Fe,d),ct(e,t,n,a),n=Ee?zl:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zd(e,a,t);else if(e.tag===19)Zd(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(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Ji(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Hs(t,!1,i,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ji(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Hs(t,!0,a,null,r,n);break;case"together":Hs(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function pa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ua|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Hn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=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 Us(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function Lg(e,t,a){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),_a(t,$e,e.memoizedState.cache),ln();break;case 27:case 5:fl(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,us(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(ka(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Qd(e,t,a):(ka(t),e=pa(e,t,a),e!==null?e.sibling:null);ka(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Hn(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return Fd(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(Fe,Fe.current),n)break;return null;case 22:return t.lanes=0,Ld(e,t,a,t.pendingProps);case 24:_a(t,$e,e.memoizedState.cache)}return pa(e,t,a)}function Kd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!Us(e,a)&&(t.flags&128)===0)return Pe=!1,Lg(e,t,a);Pe=(e.flags&131072)!==0}else Pe=!1,Ee&&(t.flags&1048576)!==0&&zf(t,zl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=un(t.elementType),t.type=e,typeof e=="function")Vo(e)?(n=hn(e,n),t.tag=1,t=Vd(null,t,e,n,a)):(t.tag=0,t=Os(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===le){t.tag=11,t=Nd(null,t,e,n,a);break e}else if(i===K){t.tag=14,t=Hd(null,t,e,n,a);break e}}throw t=xe(e)||e,Error(s(306,t,""))}}return t;case 0:return Os(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=hn(n,t.pendingProps),Vd(e,t,n,i,a);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));n=t.pendingProps;var r=t.memoizedState;i=r.element,ls(e,t),kl(t,n,null,a);var d=t.memoizedState;if(n=d.cache,_a(t,$e,n),n!==r.cache&&Io(t,[$e],a,!0),Dl(),n=d.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Xd(e,t,n,a);break e}else if(n!==i){i=Ut(Error(s(424)),t),Tl(i),t=Xd(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,qe=Vt(e.firstChild),st=t,Ee=!0,Ca=null,Gt=!0,a=Lf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ln(),n===i){t=pa(e,t,a);break e}ct(e,t,n,a)}t=t.child}return t;case 26:return rr(e,t),e===null?(a=ip(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ee||(a=t.type,e=t.pendingProps,n=Er(oe.current).createElement(a),n[ot]=t,n[mt]=e,ft(n,a,e),at(n),t.stateNode=n):t.memoizedState=ip(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fl(t),e===null&&Ee&&(n=t.stateNode=ap(t.type,t.pendingProps,oe.current),st=t,Gt=!0,i=qe,Va(t.type)?(yu=i,qe=Vt(n.firstChild)):qe=i),ct(e,t,t.pendingProps.children,a),rr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((i=n=qe)&&(n=my(n,t.type,t.pendingProps,Gt),n!==null?(t.stateNode=n,st=t,qe=Vt(n.firstChild),Gt=!1,i=!0):i=!1),i||wa(t)),fl(t),i=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,du(i,r)?n=null:d!==null&&du(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=fs(e,t,_g,null,null,a),ei._currentValue=i),rr(e,t),ct(e,t,n,a),t.child;case 6:return e===null&&Ee&&((e=a=qe)&&(a=gy(a,t.pendingProps,Gt),a!==null?(t.stateNode=a,st=t,qe=null,e=!0):e=!1),e||wa(t)),null;case 13:return Qd(e,t,a);case 4:return rt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=fn(t,null,n,a):ct(e,t,n,a),t.child;case 11:return Nd(e,t,t.type,t.pendingProps,a);case 7:return ct(e,t,t.pendingProps,a),t.child;case 8:return ct(e,t,t.pendingProps.children,a),t.child;case 12:return ct(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,_a(t,t.type,n.value),ct(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,on(t),i=ut(i),n=n(i),t.flags|=1,ct(e,t,n,a),t.child;case 14:return Hd(e,t,t.type,t.pendingProps,a);case 15:return Ud(e,t,t.type,t.pendingProps,a);case 19:return Fd(e,t,a);case 31:return Ug(e,t,a);case 22:return Ld(e,t,a,t.pendingProps);case 24:return on(t),n=ut($e),e===null?(i=ts(),i===null&&(i=Ue,r=Po(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=a),i=r),t.memoizedState={parent:n,cache:i},ns(t),_a(t,$e,i)):((e.lanes&a)!==0&&(ls(e,t),kl(t,null,null,a),Dl()),i=e.memoizedState,r=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),_a(t,$e,n)):(n=r.cache,_a(t,$e,n),n!==i.cache&&Io(t,[$e],a,!0))),ct(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ma(e){e.flags|=4}function Ls(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Sh())e.flags|=8192;else throw cn=Qi,as}else e.flags&=-16777217}function Jd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cp(t))if(Sh())e.flags|=8192;else throw cn=Qi,as}function sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Tc():536870912,e.lanes|=t,Jn|=t)}function ql(e,t){if(!Ee)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 i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function qg(e,t,a){var n=t.pendingProps;switch(Fo(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),fa($e),Ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Nn(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jo())),Ge(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(ma(t),r!==null?(Ge(t),Jd(t,r)):(Ge(t),Ls(t,i,null,n,a))):r?r!==e.memoizedState?(ma(t),Ge(t),Jd(t,r)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ma(t),Ge(t),Ls(t,i,e,n,a)),null;case 27:if(vi(t),a=oe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ma(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ge(t),null}e=V.current,Nn(t)?Cf(t):(e=ap(i,n,a),t.stateNode=e,ma(t))}return Ge(t),null;case 5:if(vi(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ma(t);else{if(!n){if(t.stateNode===null)throw Error(s(166));return Ge(t),null}if(r=V.current,Nn(t))Cf(t);else{var d=Er(oe.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);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(i,{is:n.is}):d.createElement(i)}}r[ot]=t,r[mt]=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(ft(r,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ma(t)}}return Ge(t),Ls(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ma(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(e=oe.current,Nn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=st,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Qh(e.nodeValue,a)),e||wa(t,!0)}else e=Er(e).createTextNode(n),e[ot]=t,t.stateNode=e}return Ge(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Nn(t),a!==null){if(e===null){if(!n)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ot]=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?(_t(t),t):(_t(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ge(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Nn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[ot]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else i=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(_t(t),t):(_t(t),null)}return _t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),sr(t,t.updateQueue),Ge(t),null);case 4:return Ze(),e===null&&ou(t.stateNode.containerInfo),Ge(t),null;case 10:return fa(t.type),Ge(t),null;case 19:if(B(Fe),n=t.memoizedState,n===null)return Ge(t),null;if(i=(t.flags&128)!==0,r=n.rendering,r===null)if(i)ql(n,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ji(e),r!==null){for(t.flags|=128,ql(n,!1),e=r.updateQueue,t.updateQueue=e,sr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ef(a,e),a=a.sibling;return G(Fe,Fe.current&1|2),Ee&&ua(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&At()>hr&&(t.flags|=128,i=!0,ql(n,!1),t.lanes=4194304)}else{if(!i)if(e=Ji(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,sr(t,e),ql(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!Ee)return Ge(t),null}else 2*At()-n.renderingStartTime>hr&&a!==536870912&&(t.flags|=128,i=!0,ql(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=At(),e.sibling=null,a=Fe.current,G(Fe,i?a&1|2:a&1),Ee&&ua(t,n.treeForkCount),e):(Ge(t),null);case 22:case 23:return _t(t),ss(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),a=t.updateQueue,a!==null&&sr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&B(sn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fa($e),Ge(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Gg(e,t){switch(Fo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa($e),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vi(t),null;case 31:if(t.memoizedState!==null){if(_t(t),t.alternate===null)throw Error(s(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Fe),null;case 4:return Ze(),null;case 10:return fa(t.type),null;case 22:case 23:return _t(t),ss(),e!==null&&B(sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa($e),null;case 25:return null;default:return null}}function Wd(e,t){switch(Fo(t),t.tag){case 3:fa($e),Ze();break;case 26:case 27:case 5:vi(t);break;case 4:Ze();break;case 31:t.memoizedState!==null&&_t(t);break;case 13:_t(t);break;case 19:B(Fe);break;case 10:fa(t.type);break;case 22:case 23:_t(t),ss(),e!==null&&B(sn);break;case 24:fa($e)}}function Gl(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;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!==i)}}catch(m){Me(t,t.return,m)}}function Na(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){var d=n.inst,m=d.destroy;if(m!==void 0){d.destroy=void 0,i=t;var j=a,O=m;try{O()}catch(U){Me(i,j,U)}}}n=n.next}while(n!==r)}}catch(U){Me(t,t.return,U)}}function $d(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Gf(t,a)}catch(n){Me(e,e.return,n)}}}function Id(e,t,a){a.props=hn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Me(e,t,n)}}function Yl(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(i){Me(e,t,i)}}function ea(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Me(e,t,i)}else a.current=null}function Pd(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(i){Me(e,e.return,i)}}function qs(e,t,a){try{var n=e.stateNode;uy(n,e.type,a,t),n[mt]=t}catch(i){Me(e,e.return,i)}}function eh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Va(e.type)||e.tag===4}function Gs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eh(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&&Va(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ys(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ra));else if(n!==4&&(n===27&&Va(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ys(e,t,a),e=e.sibling;e!==null;)Ys(e,t,a),e=e.sibling}function ur(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Va(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ur(e,t,a),e=e.sibling;e!==null;)ur(e,t,a),e=e.sibling}function th(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ft(t,n,a),t[ot]=e,t[mt]=a}catch(r){Me(e,e.return,r)}}var ga=!1,et=!1,Vs=!1,ah=typeof WeakSet=="function"?WeakSet:Set,nt=null;function Yg(e,t){if(e=e.containerInfo,cu=_r,e=pf(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 i=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,m=-1,j=-1,O=0,U=0,q=e,M=null;t:for(;;){for(var H;q!==a||i!==0&&q.nodeType!==3||(m=d+i),q!==r||n!==0&&q.nodeType!==3||(j=d+n),q.nodeType===3&&(d+=q.nodeValue.length),(H=q.firstChild)!==null;)M=q,q=H;for(;;){if(q===e)break t;if(M===a&&++O===i&&(m=d),M===r&&++U===n&&(j=d),(H=q.nextSibling)!==null)break;q=M,M=q.parentNode}q=H}a=m===-1||j===-1?null:{start:m,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(fu={focusedElem:e,selectionRange:a},_r=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,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++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,i=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var J=hn(a.type,i);e=n.getSnapshotBeforeUpdate(J,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)pu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function nh(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:xa(e,a),n&4&&Gl(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 i=hn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Me(a,a.return,d)}}n&64&&$d(a),n&512&&Yl(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{Gf(e,t)}catch(d){Me(a,a.return,d)}}break;case 27:t===null&&n&4&&th(a);case 26:case 5:xa(e,a),t===null&&n&4&&Pd(a),n&512&&Yl(a,a.return);break;case 12:xa(e,a);break;case 31:xa(e,a),n&4&&rh(e,a);break;case 13:xa(e,a),n&4&&oh(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=$g.bind(null,a),yy(e,a))));break;case 22:if(n=a.memoizedState!==null||ga,!n){t=t!==null&&t.memoizedState!==null||et,i=ga;var r=et;ga=n,(et=t)&&!r?va(e,a,(a.subtreeFlags&8772)!==0):xa(e,a),ga=i,et=r}break;case 30:break;default:xa(e,a)}}function lh(e){var t=e.alternate;t!==null&&(e.alternate=null,lh(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 Ye=null,yt=!1;function ya(e,t,a){for(a=a.child;a!==null;)ih(e,t,a),a=a.sibling}function ih(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(dl,a)}catch{}switch(a.tag){case 26:et||ea(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:et||ea(a,t);var n=Ye,i=yt;Va(a.type)&&(Ye=a.stateNode,yt=!1),ya(e,t,a),$l(a.stateNode),Ye=n,yt=i;break;case 5:et||ea(a,t);case 6:if(n=Ye,i=yt,Ye=null,ya(e,t,a),Ye=n,yt=i,Ye!==null)if(yt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(r){Me(a,t,r)}else try{Ye.removeChild(a.stateNode)}catch(r){Me(a,t,r)}break;case 18:Ye!==null&&(yt?(e=Ye,$h(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),nl(e)):$h(Ye,a.stateNode));break;case 4:n=Ye,i=yt,Ye=a.stateNode.containerInfo,yt=!0,ya(e,t,a),Ye=n,yt=i;break;case 0:case 11:case 14:case 15:Na(2,a,t),et||Na(4,a,t),ya(e,t,a);break;case 1:et||(ea(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Id(a,t,n)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:et=(n=et)||a.memoizedState!==null,ya(e,t,a),et=n;break;default:ya(e,t,a)}}function rh(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 oh(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 Vg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ah),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ah),t;default:throw Error(s(435,e.tag))}}function cr(e,t){var a=Vg(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=Ig.bind(null,e,n);n.then(i,i)}})}function xt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],r=e,d=t,m=d;e:for(;m!==null;){switch(m.tag){case 27:if(Va(m.type)){Ye=m.stateNode,yt=!1;break e}break;case 5:Ye=m.stateNode,yt=!1;break e;case 3:case 4:Ye=m.stateNode.containerInfo,yt=!0;break e}m=m.return}if(Ye===null)throw Error(s(160));ih(r,d,i),Ye=null,yt=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sh(t,e),t=t.sibling}var Ft=null;function sh(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),vt(e),n&4&&(Na(3,e,e.return),Gl(3,e),Na(5,e,e.return));break;case 1:xt(t,e),vt(e),n&512&&(et||a===null||ea(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 i=Ft;if(xt(t,e),vt(e),n&512&&(et||a===null||ea(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,i=i.ownerDocument||i;t:switch(n){case"title":r=i.getElementsByTagName("title")[0],(!r||r[ml]||r[ot]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(n),i.head.insertBefore(r,i.querySelector("head > title"))),ft(r,n,a),r[ot]=e,at(r),n=r;break e;case"link":var d=sp("link","href",i).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=i.createElement(n),ft(r,n,a),i.head.appendChild(r);break;case"meta":if(d=sp("meta","content",i).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=i.createElement(n),ft(r,n,a),i.head.appendChild(r);break;default:throw Error(s(468,n))}r[ot]=e,at(r),n=r}e.stateNode=n}else up(i,e.type,e.stateNode);else e.stateNode=op(i,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?up(i,e.type,e.stateNode):op(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&qs(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),vt(e),n&512&&(et||a===null||ea(a,a.return)),a!==null&&n&4&&qs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(t,e),vt(e),n&512&&(et||a===null||ea(a,a.return)),e.flags&32){i=e.stateNode;try{zn(i,"")}catch(J){Me(e,e.return,J)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,qs(e,i,a!==null?a.memoizedProps:i)),n&1024&&(Vs=!0);break;case 6:if(xt(t,e),vt(e),n&4){if(e.stateNode===null)throw Error(s(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(J){Me(e,e.return,J)}}break;case 3:if(zr=null,i=Ft,Ft=Ar(t.containerInfo),xt(t,e),Ft=i,vt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{nl(t.containerInfo)}catch(J){Me(e,e.return,J)}Vs&&(Vs=!1,uh(e));break;case 4:n=Ft,Ft=Ar(e.stateNode.containerInfo),xt(t,e),vt(e),Ft=n;break;case 12:xt(t,e),vt(e);break;case 31:xt(t,e),vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cr(e,n)));break;case 13:xt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(dr=At()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cr(e,n)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,O=ga,U=et;if(ga=O||i,et=U||j,xt(t,e),et=U,ga=O,vt(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||j||ga||et||pn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(r=j.stateNode,i)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{m=j.stateNode;var q=j.memoizedProps.style,M=q!=null&&q.hasOwnProperty("display")?q.display:null;m.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(J){Me(j,j.return,J)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch(J){Me(j,j.return,J)}}}else if(t.tag===18){if(a===null){j=t;try{var H=j.stateNode;i?Ih(H,!0):Ih(j.stateNode,!1)}catch(J){Me(j,j.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,cr(e,a))));break;case 19:xt(t,e),vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cr(e,n)));break;case 30:break;case 21:break;default:xt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(eh(n)){a=n;break}n=n.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var i=a.stateNode,r=Gs(e);ur(e,r,i);break;case 5:var d=a.stateNode;a.flags&32&&(zn(d,""),a.flags&=-33);var m=Gs(e);ur(e,m,d);break;case 3:case 4:var j=a.stateNode.containerInfo,O=Gs(e);Ys(e,O,j);break;default:throw Error(s(161))}}catch(U){Me(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function uh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;uh(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;)nh(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:Na(4,t,t.return),pn(t);break;case 1:ea(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Id(t,t.return,a),pn(t);break;case 27:$l(t.stateNode);case 26:case 5:ea(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 va(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:va(i,r,a),Gl(4,r);break;case 1:if(va(i,r,a),n=r,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(O){Me(n,n.return,O)}if(n=r,i=n.updateQueue,i!==null){var m=n.stateNode;try{var j=i.shared.hiddenCallbacks;if(j!==null)for(i.shared.hiddenCallbacks=null,i=0;i<j.length;i++)qf(j[i],m)}catch(O){Me(n,n.return,O)}}a&&d&64&&$d(r),Yl(r,r.return);break;case 27:th(r);case 26:case 5:va(i,r,a),a&&n===null&&d&4&&Pd(r),Yl(r,r.return);break;case 12:va(i,r,a);break;case 31:va(i,r,a),a&&d&4&&rh(i,r);break;case 13:va(i,r,a),a&&d&4&&oh(i,r);break;case 22:r.memoizedState===null&&va(i,r,a),Yl(r,r.return);break;case 30:break;default:va(i,r,a)}t=t.sibling}}function Xs(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Cl(a))}function Qs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e))}function Kt(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ch(e,t,a,n),t=t.sibling}function ch(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,a,n),i&2048&&Gl(9,t);break;case 1:Kt(e,t,a,n);break;case 3:Kt(e,t,a,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e)));break;case 12:if(i&2048){Kt(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,m=r.onPostCommit;typeof m=="function"&&m(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Me(t,t.return,j)}}else Kt(e,t,a,n);break;case 31:Kt(e,t,a,n);break;case 13:Kt(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?r._visibility&2?Kt(e,t,a,n):Vl(e,t):r._visibility&2?Kt(e,t,a,n):(r._visibility|=2,Zn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Xs(d,t);break;case 24:Kt(e,t,a,n),i&2048&&Qs(t.alternate,t);break;default:Kt(e,t,a,n)}}function Zn(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,m=a,j=n,O=d.flags;switch(d.tag){case 0:case 11:case 15:Zn(r,d,m,j,i),Gl(8,d);break;case 23:break;case 22:var U=d.stateNode;d.memoizedState!==null?U._visibility&2?Zn(r,d,m,j,i):Vl(r,d):(U._visibility|=2,Zn(r,d,m,j,i)),i&&O&2048&&Xs(d.alternate,d);break;case 24:Zn(r,d,m,j,i),i&&O&2048&&Qs(d.alternate,d);break;default:Zn(r,d,m,j,i)}t=t.sibling}}function Vl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:Vl(a,n),i&2048&&Xs(n.alternate,n);break;case 24:Vl(a,n),i&2048&&Qs(n.alternate,n);break;default:Vl(a,n)}t=t.sibling}}var Xl=8192;function Fn(e,t,a){if(e.subtreeFlags&Xl)for(e=e.child;e!==null;)fh(e,t,a),e=e.sibling}function fh(e,t,a){switch(e.tag){case 26:Fn(e,t,a),e.flags&Xl&&e.memoizedState!==null&&wy(a,Ft,e.memoizedState,e.memoizedProps);break;case 5:Fn(e,t,a);break;case 3:case 4:var n=Ft;Ft=Ar(e.stateNode.containerInfo),Fn(e,t,a),Ft=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Xl,Xl=16777216,Fn(e,t,a),Xl=n):Fn(e,t,a));break;default:Fn(e,t,a)}}function dh(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 Ql(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];nt=n,ph(n,e)}dh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hh(e),e=e.sibling}function hh(e){switch(e.tag){case 0:case 11:case 15:Ql(e),e.flags&2048&&Na(9,e,e.return);break;case 3:Ql(e);break;case 12:Ql(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fr(e)):Ql(e);break;default:Ql(e)}}function fr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];nt=n,ph(n,e)}dh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Na(8,t,t.return),fr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,fr(t));break;default:fr(t)}e=e.sibling}}function ph(e,t){for(;nt!==null;){var a=nt;switch(a.tag){case 0:case 11:case 15:Na(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Cl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,nt=n;else e:for(a=e;nt!==null;){n=nt;var i=n.sibling,r=n.return;if(lh(n),n===a){nt=null;break e}if(i!==null){i.return=r,nt=i;break e}nt=r}}}var Xg={getCacheForType:function(e){var t=ut($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ut($e).controller.signal}},Qg=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Ue=null,ge=null,ve=0,Oe=0,Ot=null,Ha=!1,Kn=!1,Zs=!1,ba=0,Qe=0,Ua=0,mn=0,Fs=0,Mt=0,Jn=0,Zl=null,bt=null,Ks=!1,dr=0,mh=0,hr=1/0,pr=null,La=null,tt=0,qa=null,Wn=null,Sa=0,Js=0,Ws=null,gh=null,Fl=0,$s=null;function Dt(){return(Ce&2)!==0&&ve!==0?ve&-ve:k.T!==null?nu():Oc()}function yh(){if(Mt===0)if((ve&536870912)===0||Ee){var e=ji;ji<<=1,(ji&3932160)===0&&(ji=262144),Mt=e}else Mt=536870912;return e=wt.current,e!==null&&(e.flags|=32),Mt}function St(e,t,a){(e===Ue&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&($n(e,0),Ga(e,ve,Mt,!1)),pl(e,a),((Ce&2)===0||e!==Ue)&&(e===Ue&&((Ce&2)===0&&(mn|=a),Qe===4&&Ga(e,ve,Mt,!1)),ta(e))}function xh(e,t,a){if((Ce&6)!==0)throw Error(s(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||hl(e,t),i=n?Kg(e,t):Ps(e,t,!0),r=n;do{if(i===0){Kn&&!n&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!Zg(a)){i=Ps(e,t,!1),r=!1;continue}if(i===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;i=Zl;var j=m.current.memoizedState.isDehydrated;if(j&&($n(m,d).flags|=256),d=Ps(m,d,!1),d!==2){if(Zs&&!j){m.errorRecoveryDisabledLanes|=r,mn|=r,i=4;break e}r=bt,bt=i,r!==null&&(bt===null?bt=r:bt.push.apply(bt,r))}i=d}if(r=!1,i!==2)continue}}if(i===1){$n(e,0),Ga(e,t,0,!0);break}e:{switch(n=e,r=i,r){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ga(n,t,Mt,!Ha);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=dr+300-At(),10<i)){if(Ga(n,t,Mt,!Ha),Ai(n,0,!0)!==0)break e;Sa=t,n.timeoutHandle=Jh(vh.bind(null,n,a,bt,pr,Ks,t,Mt,mn,Jn,Ha,r,"Throttled",-0,0),i);break e}vh(n,a,bt,pr,Ks,t,Mt,mn,Jn,Ha,r,null,-0,0)}}break}while(!0);ta(e)}function vh(e,t,a,n,i,r,d,m,j,O,U,q,M,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:ra},fh(t,r,q);var J=(r&62914560)===r?dr-At():(r&4194048)===r?mh-At():0;if(J=_y(q,J),J!==null){Sa=r,e.cancelPendingCommit=J(Th.bind(null,e,t,r,a,n,i,d,m,j,U,q,null,M,H)),Ga(e,r,d,!O);return}}Th(e,t,r,a,n,i,d,m,j)}function Zg(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 i=a[n],r=i.getSnapshot;i=i.value;try{if(!Tt(r(),i))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&=~Fs,t&=~mn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var r=31-zt(i),d=1<<r;n[r]=-1,i&=~d}a!==0&&Cc(e,a,t)}function mr(){return(Ce&6)===0?(Kl(0),!1):!0}function Is(){if(ge!==null){if(Oe===0)var e=ge.return;else e=ge,ca=rn=null,ps(e),Gn=null,_l=0,e=ge;for(;e!==null;)Wd(e.alternate,e),e=e.return;ge=null}}function $n(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,dy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Sa=0,Is(),Ue=e,ge=a=sa(e.current,null),ve=t,Oe=0,Ot=null,Ha=!1,Kn=hl(e,t),Zs=!1,Jn=Mt=Fs=mn=Ua=Qe=0,bt=Zl=null,Ks=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-zt(n),r=1<<i;t|=e[i],n&=~r}return ba=t,Ni(),a}function bh(e,t){ce=null,k.H=Ul,t===qn||t===Xi?(t=Nf(),Oe=3):t===as?(t=Nf(),Oe=4):Oe=t===_s?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,ge===null&&(Qe=1,lr(e,Ut(t,e.current)))}function Sh(){var e=wt.current;return e===null?!0:(ve&4194048)===ve?Yt===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Yt:!1}function jh(){var e=k.H;return k.H=Ul,e===null?Ul:e}function Eh(){var e=k.A;return k.A=Xg,e}function gr(){Qe=4,Ha||(ve&4194048)!==ve&&wt.current!==null||(Kn=!0),(Ua&134217727)===0&&(mn&134217727)===0||Ue===null||Ga(Ue,ve,Mt,!1)}function Ps(e,t,a){var n=Ce;Ce|=2;var i=jh(),r=Eh();(Ue!==e||ve!==t)&&(pr=null,$n(e,t)),t=!1;var d=Qe;e:do try{if(Oe!==0&&ge!==null){var m=ge,j=Ot;switch(Oe){case 8:Is(),d=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var O=Oe;if(Oe=0,Ot=null,In(e,m,j,O),a&&Kn){d=0;break e}break;default:O=Oe,Oe=0,Ot=null,In(e,m,j,O)}}Fg(),d=Qe;break}catch(U){bh(e,U)}while(!0);return t&&e.shellSuspendCounter++,ca=rn=null,Ce=n,k.H=i,k.A=r,ge===null&&(Ue=null,ve=0,Ni()),d}function Fg(){for(;ge!==null;)Ah(ge)}function Kg(e,t){var a=Ce;Ce|=2;var n=jh(),i=Eh();Ue!==e||ve!==t?(pr=null,hr=At()+500,$n(e,t)):Kn=hl(e,t);e:do try{if(Oe!==0&&ge!==null){t=ge;var r=Ot;t:switch(Oe){case 1:Oe=0,Ot=null,In(e,t,r,1);break;case 2:case 9:if(kf(r)){Oe=0,Ot=null,Rh(t);break}t=function(){Oe!==2&&Oe!==9||Ue!==e||(Oe=7),ta(e)},r.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:kf(r)?(Oe=0,Ot=null,Rh(t)):(Oe=0,Ot=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?cp(d):m.stateNode.complete){Oe=0,Ot=null;var j=m.sibling;if(j!==null)ge=j;else{var O=m.return;O!==null?(ge=O,yr(O)):ge=null}break t}}Oe=0,Ot=null,In(e,t,r,5);break;case 6:Oe=0,Ot=null,In(e,t,r,6);break;case 8:Is(),Qe=6;break e;default:throw Error(s(462))}}Jg();break}catch(U){bh(e,U)}while(!0);return ca=rn=null,k.H=n,k.A=i,Ce=a,ge!==null?0:(Ue=null,ve=0,Ni(),Qe)}function Jg(){for(;ge!==null&&!x0();)Ah(ge)}function Ah(e){var t=Kd(e.alternate,e,ba);e.memoizedProps=e.pendingProps,t===null?yr(e):ge=t}function Rh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Yd(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Yd(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:ps(t);default:Wd(a,t),t=ge=Ef(t,ba),t=Kd(a,t,ba)}e.memoizedProps=e.pendingProps,t===null?yr(e):ge=t}function In(e,t,a,n){ca=rn=null,ps(t),Gn=null,_l=0;var i=t.return;try{if(Hg(e,i,t,a,ve)){Qe=1,lr(e,Ut(a,e.current)),ge=null;return}}catch(r){if(i!==null)throw ge=i,r;Qe=1,lr(e,Ut(a,e.current)),ge=null;return}t.flags&32768?(Ee||n===1?e=!0:Kn||(ve&536870912)!==0?e=!1:(Ha=e=!0,(n===2||n===9||n===3||n===6)&&(n=wt.current,n!==null&&n.tag===13&&(n.flags|=16384))),zh(t,e)):yr(t)}function yr(e){var t=e;do{if((t.flags&32768)!==0){zh(t,Ha);return}e=t.return;var a=qg(t.alternate,t,ba);if(a!==null){ge=a;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Qe===0&&(Qe=5)}function zh(e,t){do{var a=Gg(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);Qe=6,ge=null}function Th(e,t,a,n,i,r,d,m,j){e.cancelPendingCommit=null;do xr();while(tt!==0);if((Ce&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(r=t.lanes|t.childLanes,r|=Go,C0(e,a,r,d,m,j),e===Ue&&(ge=Ue=null,ve=0),Wn=t,qa=e,Sa=a,Js=r,Ws=i,gh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pg(bi,function(){return Mh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=k.T,k.T=null,i=Q.p,Q.p=2,d=Ce,Ce|=4;try{Yg(e,t,a)}finally{Ce=d,Q.p=i,k.T=n}}tt=1,Ch(),wh(),_h()}}function Ch(){if(tt===1){tt=0;var e=qa,t=Wn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var n=Q.p;Q.p=2;var i=Ce;Ce|=4;try{sh(t,e);var r=fu,d=pf(e.containerInfo),m=r.focusedElem,j=r.selectionRange;if(d!==m&&m&&m.ownerDocument&&hf(m.ownerDocument.documentElement,m)){if(j!==null&&No(m)){var O=j.start,U=j.end;if(U===void 0&&(U=O),"selectionStart"in m)m.selectionStart=O,m.selectionEnd=Math.min(U,m.value.length);else{var q=m.ownerDocument||document,M=q&&q.defaultView||window;if(M.getSelection){var H=M.getSelection(),J=m.textContent.length,ie=Math.min(j.start,J),Ne=j.end===void 0?ie:Math.min(j.end,J);!H.extend&&ie>Ne&&(d=Ne,Ne=ie,ie=d);var T=df(m,ie),E=df(m,Ne);if(T&&E&&(H.rangeCount!==1||H.anchorNode!==T.node||H.anchorOffset!==T.offset||H.focusNode!==E.node||H.focusOffset!==E.offset)){var _=q.createRange();_.setStart(T.node,T.offset),H.removeAllRanges(),ie>Ne?(H.addRange(_),H.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),H.addRange(_))}}}}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}}_r=!!cu,fu=cu=null}finally{Ce=i,Q.p=n,k.T=a}}e.current=t,tt=2}}function wh(){if(tt===2){tt=0;var e=qa,t=Wn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var n=Q.p;Q.p=2;var i=Ce;Ce|=4;try{nh(e,t.alternate,t)}finally{Ce=i,Q.p=n,k.T=a}}tt=3}}function _h(){if(tt===4||tt===3){tt=0,v0();var e=qa,t=Wn,a=Sa,n=gh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,Wn=qa=null,Oh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(La=null),yo(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(dl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=k.T,i=Q.p,Q.p=2,k.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{k.T=t,Q.p=i}}(Sa&3)!==0&&xr(),ta(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===$s?Fl++:(Fl=0,$s=e):Fl=0,Kl(0)}}function Oh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cl(t)))}function xr(){return Ch(),wh(),_h(),Mh()}function Mh(){if(tt!==5)return!1;var e=qa,t=Js;Js=0;var a=yo(Sa),n=k.T,i=Q.p;try{Q.p=32>a?32:a,k.T=null,a=Ws,Ws=null;var r=qa,d=Sa;if(tt=0,Wn=qa=null,Sa=0,(Ce&6)!==0)throw Error(s(331));var m=Ce;if(Ce|=4,hh(r.current),ch(r,r.current,d,a),Ce=m,Kl(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(dl,r)}catch{}return!0}finally{Q.p=i,k.T=n,Oh(e,t)}}function Dh(e,t,a){t=Ut(a,t),t=ws(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(pl(e,2),ta(e))}function Me(e,t,a){if(e.tag===3)Dh(e,e,a);else for(;t!==null;){if(t.tag===3){Dh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(La===null||!La.has(n))){e=Ut(a,e),a=kd(2),n=Da(t,a,2),n!==null&&(Bd(a,n,t,e),pl(n,2),ta(n));break}}t=t.return}}function eu(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Qg;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(Zs=!0,i.add(a),e=Wg.bind(null,e,t,a),t.then(e,e))}function Wg(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(ve&a)===a&&(Qe===4||Qe===3&&(ve&62914560)===ve&&300>At()-dr?(Ce&2)===0&&$n(e,0):Fs|=a,Jn===ve&&(Jn=0)),ta(e)}function kh(e,t){t===0&&(t=Tc()),e=an(e,t),e!==null&&(pl(e,t),ta(e))}function $g(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),kh(e,a)}function Ig(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(t),kh(e,a)}function Pg(e,t){return ho(e,t)}var vr=null,Pn=null,tu=!1,br=!1,au=!1,Ya=0;function ta(e){e!==Pn&&e.next===null&&(Pn===null?vr=Pn=e:Pn=Pn.next=e),br=!0,tu||(tu=!0,ty())}function Kl(e,t){if(!au&&br){au=!0;do for(var a=!1,n=vr;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var r=0;else{var d=n.suspendedLanes,m=n.pingedLanes;r=(1<<31-zt(42|e)+1)-1,r&=i&~(d&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Uh(n,r))}else r=ve,r=Ai(n,n===Ue?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||hl(n,r)||(a=!0,Uh(n,r));n=n.next}while(a);au=!1}}function ey(){Bh()}function Bh(){br=tu=!1;var e=0;Ya!==0&&fy()&&(e=Ya);for(var t=At(),a=null,n=vr;n!==null;){var i=n.next,r=Nh(n,t);r===0?(n.next=null,a===null?vr=i:a.next=i,i===null&&(Pn=a)):(a=n,(e!==0||(r&3)!==0)&&(br=!0)),n=i}tt!==0&&tt!==5||Kl(e),Ya!==0&&(Ya=0)}function Nh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-zt(r),m=1<<d,j=i[d];j===-1?((m&a)===0||(m&n)!==0)&&(i[d]=T0(m,t)):j<=t&&(e.expiredLanes|=m),r&=~m}if(t=Ue,a=ve,a=Ai(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&po(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||hl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&po(n),yo(a)){case 2:case 8:a=Rc;break;case 32:a=bi;break;case 268435456:a=zc;break;default:a=bi}return n=Hh.bind(null,e),a=ho(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&po(n),e.callbackPriority=2,e.callbackNode=null,2}function Hh(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(xr()&&e.callbackNode!==a)return null;var n=ve;return n=Ai(e,e===Ue?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(xh(e,n,t),Nh(e,At()),e.callbackNode!=null&&e.callbackNode===a?Hh.bind(null,e):null)}function Uh(e,t){if(xr())return null;xh(e,t,!0)}function ty(){hy(function(){(Ce&6)!==0?ho(Ac,ey):Bh()})}function nu(){if(Ya===0){var e=Un;e===0&&(e=Si,Si<<=1,(Si&261888)===0&&(Si=256)),Ya=e}return Ya}function Lh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ci(""+e)}function qh(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 ay(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var r=Lh((i[mt]||null).action),d=n.submitter;d&&(t=(t=d[mt]||null)?Lh(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var m=new Mi("action","action",null,n,i);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ya!==0){var j=d?qh(i,d):new FormData(i);Es(a,{pending:!0,data:j,method:i.method,action:r},null,j)}}else typeof r=="function"&&(m.preventDefault(),j=d?qh(i,d):new FormData(i),Es(a,{pending:!0,data:j,method:i.method,action:r},r,j))},currentTarget:i}]})}}for(var lu=0;lu<qo.length;lu++){var iu=qo[lu],ny=iu.toLowerCase(),ly=iu[0].toUpperCase()+iu.slice(1);Zt(ny,"on"+ly)}Zt(yf,"onAnimationEnd"),Zt(xf,"onAnimationIteration"),Zt(vf,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(bg,"onTransitionRun"),Zt(Sg,"onTransitionStart"),Zt(jg,"onTransitionCancel"),Zt(bf,"onTransitionEnd"),An("onMouseEnter",["mouseout","mouseover"]),An("onMouseLeave",["mouseout","mouseover"]),An("onPointerEnter",["pointerout","pointerover"]),An("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jl));function Gh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var d=n.length-1;0<=d;d--){var m=n[d],j=m.instance,O=m.currentTarget;if(m=m.listener,j!==r&&i.isPropagationStopped())break e;r=m,i.currentTarget=O;try{r(i)}catch(U){Bi(U)}i.currentTarget=null,r=j}else for(d=0;d<n.length;d++){if(m=n[d],j=m.instance,O=m.currentTarget,m=m.listener,j!==r&&i.isPropagationStopped())break e;r=m,i.currentTarget=O;try{r(i)}catch(U){Bi(U)}i.currentTarget=null,r=j}}}}function ye(e,t){var a=t[xo];a===void 0&&(a=t[xo]=new Set);var n=e+"__bubble";a.has(n)||(Yh(t,e,2,!1),a.add(n))}function ru(e,t,a){var n=0;t&&(n|=4),Yh(a,e,n,t)}var Sr="_reactListening"+Math.random().toString(36).slice(2);function ou(e){if(!e[Sr]){e[Sr]=!0,kc.forEach(function(a){a!=="selectionchange"&&(iy.has(a)||ru(a,!1,e),ru(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sr]||(t[Sr]=!0,ru("selectionchange",!1,t))}}function Yh(e,t,a,n){switch(yp(t)){case 2:var i=Dy;break;case 8:i=ky;break;default:i=ju}a=i.bind(null,t,a,e),i=void 0,!To||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function su(e,t,a,n,i){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===i)break;if(d===4)for(d=n.return;d!==null;){var j=d.tag;if((j===3||j===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;m!==null;){if(d=Sn(m),d===null)return;if(j=d.tag,j===5||j===6||j===26||j===27){n=r=d;continue e}m=m.parentNode}}n=n.return}Zc(function(){var O=r,U=Ro(a),q=[];e:{var M=Sf.get(e);if(M!==void 0){var H=Mi,J=e;switch(e){case"keypress":if(_i(a)===0)break e;case"keydown":case"keyup":H=I0;break;case"focusin":J="focus",H=Oo;break;case"focusout":J="blur",H=Oo;break;case"beforeblur":case"afterblur":H=Oo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Jc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=q0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=tg;break;case yf:case xf:case vf:H=V0;break;case bf:H=ng;break;case"scroll":case"scrollend":H=U0;break;case"wheel":H=ig;break;case"copy":case"cut":case"paste":H=Q0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=$c;break;case"toggle":case"beforetoggle":H=og}var ie=(t&4)!==0,Ne=!ie&&(e==="scroll"||e==="scrollend"),T=ie?M!==null?M+"Capture":null:M;ie=[];for(var E=O,_;E!==null;){var L=E;if(_=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||_===null||T===null||(L=yl(E,T),L!=null&&ie.push(Wl(E,L,_))),Ne)break;E=E.return}0<ie.length&&(M=new H(M,J,null,a,U),q.push({event:M,listeners:ie}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",M&&a!==Ao&&(J=a.relatedTarget||a.fromElement)&&(Sn(J)||J[bn]))break e;if((H||M)&&(M=U.window===U?U:(M=U.ownerDocument)?M.defaultView||M.parentWindow:window,H?(J=a.relatedTarget||a.toElement,H=O,J=J?Sn(J):null,J!==null&&(Ne=h(J),ie=J.tag,J!==Ne||ie!==5&&ie!==27&&ie!==6)&&(J=null)):(H=null,J=O),H!==J)){if(ie=Jc,L="onMouseLeave",T="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ie=$c,L="onPointerLeave",T="onPointerEnter",E="pointer"),Ne=H==null?M:gl(H),_=J==null?M:gl(J),M=new ie(L,E+"leave",H,a,U),M.target=Ne,M.relatedTarget=_,L=null,Sn(U)===O&&(ie=new ie(T,E+"enter",J,a,U),ie.target=_,ie.relatedTarget=Ne,L=ie),Ne=L,H&&J)t:{for(ie=ry,T=H,E=J,_=0,L=T;L;L=ie(L))_++;L=0;for(var ne=E;ne;ne=ie(ne))L++;for(;0<_-L;)T=ie(T),_--;for(;0<L-_;)E=ie(E),L--;for(;_--;){if(T===E||E!==null&&T===E.alternate){ie=T;break t}T=ie(T),E=ie(E)}ie=null}else ie=null;H!==null&&Vh(q,M,H,ie,!1),J!==null&&Ne!==null&&Vh(q,Ne,J,ie,!0)}}e:{if(M=O?gl(O):window,H=M.nodeName&&M.nodeName.toLowerCase(),H==="select"||H==="input"&&M.type==="file")var ze=rf;else if(nf(M))if(of)ze=yg;else{ze=mg;var ee=pg}else H=M.nodeName,!H||H.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?O&&Eo(O.elementType)&&(ze=rf):ze=gg;if(ze&&(ze=ze(e,O))){lf(q,ze,a,U);break e}ee&&ee(e,M,O),e==="focusout"&&O&&M.type==="number"&&O.memoizedProps.value!=null&&jo(M,"number",M.value)}switch(ee=O?gl(O):window,e){case"focusin":(nf(ee)||ee.contentEditable==="true")&&(_n=ee,Ho=O,Rl=null);break;case"focusout":Rl=Ho=_n=null;break;case"mousedown":Uo=!0;break;case"contextmenu":case"mouseup":case"dragend":Uo=!1,mf(q,a,U);break;case"selectionchange":if(vg)break;case"keydown":case"keyup":mf(q,a,U)}var de;if(Do)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else wn?tf(e,a)&&(be="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(be="onCompositionStart");be&&(Ic&&a.locale!=="ko"&&(wn||be!=="onCompositionStart"?be==="onCompositionEnd"&&wn&&(de=Fc()):(za=U,Co="value"in za?za.value:za.textContent,wn=!0)),ee=jr(O,be),0<ee.length&&(be=new Wc(be,e,null,a,U),q.push({event:be,listeners:ee}),de?be.data=de:(de=af(a),de!==null&&(be.data=de)))),(de=ug?cg(e,a):fg(e,a))&&(be=jr(O,"onBeforeInput"),0<be.length&&(ee=new Wc("onBeforeInput","beforeinput",null,a,U),q.push({event:ee,listeners:be}),ee.data=de)),ay(q,e,O,a,U)}Gh(q,t)})}function Wl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function jr(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=yl(e,a),i!=null&&n.unshift(Wl(e,i,r)),i=yl(e,t),i!=null&&n.push(Wl(e,i,r))),e.tag===3)return n;e=e.return}return[]}function ry(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vh(e,t,a,n,i){for(var r=t._reactName,d=[];a!==null&&a!==n;){var m=a,j=m.alternate,O=m.stateNode;if(m=m.tag,j!==null&&j===n)break;m!==5&&m!==26&&m!==27||O===null||(j=O,i?(O=yl(a,r),O!=null&&d.unshift(Wl(a,O,j))):i||(O=yl(a,r),O!=null&&d.push(Wl(a,O,j)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var oy=/\r\n?/g,sy=/\u0000|\uFFFD/g;function Xh(e){return(typeof e=="string"?e:""+e).replace(oy,`
9
+ `).replace(sy,"")}function Qh(e,t){return t=Xh(t),Xh(e)===t}function Be(e,t,a,n,i,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||zn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&zn(e,""+n);break;case"className":zi(e,"class",n);break;case"tabIndex":zi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":zi(e,a,n);break;case"style":Xc(e,n,r);break;case"data":if(t!=="object"){zi(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=Ci(""+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"&&Be(e,t,"name",i.name,i,null),Be(e,t,"formEncType",i.formEncType,i,null),Be(e,t,"formMethod",i.formMethod,i,null),Be(e,t,"formTarget",i.formTarget,i,null)):(Be(e,t,"encType",i.encType,i,null),Be(e,t,"method",i.method,i,null),Be(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ci(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=ra);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=Ci(""+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":ye("beforetoggle",e),ye("toggle",e),Ri(e,"popover",n);break;case"xlinkActuate":ia(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ia(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ia(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ia(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ia(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ia(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ia(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ia(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ia(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ri(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=N0.get(a)||a,Ri(e,a,n))}}function uu(e,t,a,n,i,r){switch(a){case"style":Xc(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof n=="string"?zn(e,n):(typeof n=="number"||typeof n=="bigint")&&zn(e,""+n);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),r=e[mt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Ri(e,a,n)}}}function ft(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var n=!1,i=!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":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Be(e,t,r,d,a,null)}}i&&Be(e,t,"srcSet",a.srcSet,a,null),n&&Be(e,t,"src",a.src,a,null);return;case"input":ye("invalid",e);var m=r=d=i=null,j=null,O=null;for(n in a)if(a.hasOwnProperty(n)){var U=a[n];if(U!=null)switch(n){case"name":i=U;break;case"type":d=U;break;case"checked":j=U;break;case"defaultChecked":O=U;break;case"value":r=U;break;case"defaultValue":m=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:Be(e,t,n,U,a,null)}}qc(e,r,m,j,O,d,i,!1);return;case"select":ye("invalid",e),n=d=r=null;for(i in a)if(a.hasOwnProperty(i)&&(m=a[i],m!=null))switch(i){case"value":r=m;break;case"defaultValue":d=m;break;case"multiple":n=m;default:Be(e,t,i,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":ye("invalid",e),r=i=n=null;for(d in a)if(a.hasOwnProperty(d)&&(m=a[d],m!=null))switch(d){case"value":n=m;break;case"defaultValue":i=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:Be(e,t,d,m,a,null)}Yc(e,n,i,r);return;case"option":for(j in a)a.hasOwnProperty(j)&&(n=a[j],n!=null)&&(j==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Be(e,t,j,n,a,null));return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(n=0;n<Jl.length;n++)ye(Jl[n],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("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(O in a)if(a.hasOwnProperty(O)&&(n=a[O],n!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Be(e,t,O,n,a,null)}return;default:if(Eo(t)){for(U in a)a.hasOwnProperty(U)&&(n=a[U],n!==void 0&&uu(e,t,U,n,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(n=a[m],n!=null&&Be(e,t,m,n,a,null))}function uy(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 i=null,r=null,d=null,m=null,j=null,O=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":j=q;default:n.hasOwnProperty(H)||Be(e,t,H,null,n,q)}}for(var M in n){var H=n[M];if(q=a[M],n.hasOwnProperty(M)&&(H!=null||q!=null))switch(M){case"type":r=H;break;case"name":i=H;break;case"checked":O=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(s(137,t));break;default:H!==q&&Be(e,t,M,H,n,q)}}So(e,d,m,j,O,U,r,i);return;case"select":H=d=m=M=null;for(r in a)if(j=a[r],a.hasOwnProperty(r)&&j!=null)switch(r){case"value":break;case"multiple":H=j;default:n.hasOwnProperty(r)||Be(e,t,r,null,n,j)}for(i in n)if(r=n[i],j=a[i],n.hasOwnProperty(i)&&(r!=null||j!=null))switch(i){case"value":M=r;break;case"defaultValue":m=r;break;case"multiple":d=r;default:r!==j&&Be(e,t,i,r,n,j)}t=m,a=d,n=H,M!=null?Rn(e,!!a,M,!1):!!n!=!!a&&(t!=null?Rn(e,!!a,t,!0):Rn(e,!!a,a?[]:"",!1));return;case"textarea":H=M=null;for(m in a)if(i=a[m],a.hasOwnProperty(m)&&i!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Be(e,t,m,null,n,i)}for(d in n)if(i=n[d],r=a[d],n.hasOwnProperty(d)&&(i!=null||r!=null))switch(d){case"value":M=i;break;case"defaultValue":H=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==r&&Be(e,t,d,i,n,r)}Gc(e,M,H);return;case"option":for(var J in a)M=a[J],a.hasOwnProperty(J)&&M!=null&&!n.hasOwnProperty(J)&&(J==="selected"?e.selected=!1:Be(e,t,J,null,n,M));for(j in n)M=n[j],H=a[j],n.hasOwnProperty(j)&&M!==H&&(M!=null||H!=null)&&(j==="selected"?e.selected=M&&typeof M!="function"&&typeof M!="symbol":Be(e,t,j,M,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)M=a[ie],a.hasOwnProperty(ie)&&M!=null&&!n.hasOwnProperty(ie)&&Be(e,t,ie,null,n,M);for(O in n)if(M=n[O],H=a[O],n.hasOwnProperty(O)&&M!==H&&(M!=null||H!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:Be(e,t,O,M,n,H)}return;default:if(Eo(t)){for(var Ne in a)M=a[Ne],a.hasOwnProperty(Ne)&&M!==void 0&&!n.hasOwnProperty(Ne)&&uu(e,t,Ne,void 0,n,M);for(U in n)M=n[U],H=a[U],!n.hasOwnProperty(U)||M===H||M===void 0&&H===void 0||uu(e,t,U,M,n,H);return}}for(var T in a)M=a[T],a.hasOwnProperty(T)&&M!=null&&!n.hasOwnProperty(T)&&Be(e,t,T,null,n,M);for(q in n)M=n[q],H=a[q],!n.hasOwnProperty(q)||M===H||M==null&&H==null||Be(e,t,q,M,n,H)}function Zh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],r=i.transferSize,d=i.initiatorType,m=i.duration;if(r&&m&&Zh(d)){for(d=0,m=i.responseEnd,n+=1;n<a.length;n++){var j=a[n],O=j.startTime;if(O>m)break;var U=j.transferSize,q=j.initiatorType;U&&Zh(q)&&(j=j.responseEnd,d+=U*(j<m?1:(m-O)/(j-O)))}if(--n,t+=8*(r+d)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var cu=null,fu=null;function Er(e){return e.nodeType===9?e:e.ownerDocument}function Fh(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 Kh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function du(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hu=null;function fy(){var e=window.event;return e&&e.type==="popstate"?e===hu?!1:(hu=e,!0):(hu=null,!1)}var Jh=typeof setTimeout=="function"?setTimeout:void 0,dy=typeof clearTimeout=="function"?clearTimeout:void 0,Wh=typeof Promise=="function"?Promise:void 0,hy=typeof queueMicrotask=="function"?queueMicrotask:typeof Wh<"u"?function(e){return Wh.resolve(null).then(e).catch(py)}:Jh;function py(e){setTimeout(function(){throw e})}function Va(e){return e==="head"}function $h(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),nl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")$l(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$l(a);for(var r=a.firstChild;r;){var d=r.nextSibling,m=r.nodeName;r[ml]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&$l(e.ownerDocument.body);a=i}while(a);nl(t)}function Ih(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function pu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":pu(a),vo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function my(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[ml])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!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function gy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Vt(e.nextSibling),e===null))return null;return e}function Ph(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function mu(e){return e.data==="$?"||e.data==="$~"}function gu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yy(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 Vt(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 yu=null;function ep(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Vt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function tp(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 ap(e,t,a){switch(t=Er(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function $l(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vo(e)}var Xt=new Map,np=new Set;function Ar(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=Q.d;Q.d={f:xy,r:vy,D:by,C:Sy,L:jy,m:Ey,X:Ry,S:Ay,M:zy};function xy(){var e=ja.f(),t=mr();return e||t}function vy(e){var t=jn(e);t!==null&&t.tag===5&&t.type==="form"?bd(t):ja.r(e)}var el=typeof document>"u"?null:document;function lp(e,t,a){var n=el;if(n&&typeof t=="string"&&t){var i=Nt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),np.has(i)||(np.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),ft(t,"link",e),at(t),n.head.appendChild(t)))}}function by(e){ja.D(e),lp("dns-prefetch",e,null)}function Sy(e,t){ja.C(e,t),lp("preconnect",e,t)}function jy(e,t,a){ja.L(e,t,a);var n=el;if(n&&e&&t){var i='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Nt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Nt(a.imageSizes)+'"]')):i+='[href="'+Nt(e)+'"]';var r=i;switch(t){case"style":r=tl(e);break;case"script":r=al(e)}Xt.has(r)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Xt.set(r,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Il(r))||t==="script"&&n.querySelector(Pl(r))||(t=n.createElement("link"),ft(t,"link",e),at(t),n.head.appendChild(t)))}}function Ey(e,t){ja.m(e,t);var a=el;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Nt(n)+'"][href="'+Nt(e)+'"]',r=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=al(e)}if(!Xt.has(r)&&(e=y({rel:"modulepreload",href:e},t),Xt.set(r,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Pl(r)))return}n=a.createElement("link"),ft(n,"link",e),at(n),a.head.appendChild(n)}}}function Ay(e,t,a){ja.S(e,t,a);var n=el;if(n&&e){var i=En(n).hoistableStyles,r=tl(e);t=t||"default";var d=i.get(r);if(!d){var m={loading:0,preload:null};if(d=n.querySelector(Il(r)))m.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Xt.get(r))&&xu(e,a);var j=d=n.createElement("link");at(j),ft(j,"link",e),j._p=new Promise(function(O,U){j.onload=O,j.onerror=U}),j.addEventListener("load",function(){m.loading|=1}),j.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Rr(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:m},i.set(r,d)}}}function Ry(e,t){ja.X(e,t);var a=el;if(a&&e){var n=En(a).hoistableScripts,i=al(e),r=n.get(i);r||(r=a.querySelector(Pl(i)),r||(e=y({src:e,async:!0},t),(t=Xt.get(i))&&vu(e,t),r=a.createElement("script"),at(r),ft(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function zy(e,t){ja.M(e,t);var a=el;if(a&&e){var n=En(a).hoistableScripts,i=al(e),r=n.get(i);r||(r=a.querySelector(Pl(i)),r||(e=y({src:e,async:!0,type:"module"},t),(t=Xt.get(i))&&vu(e,t),r=a.createElement("script"),at(r),ft(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function ip(e,t,a,n){var i=(i=oe.current)?Ar(i):null;if(!i)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=tl(a.href),a=En(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=tl(a.href);var r=En(i).hoistableStyles,d=r.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=i.querySelector(Il(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Xt.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},Xt.set(e,a),r||Ty(i,e,a,d.state))),t&&n===null)throw Error(s(528,""));return d}if(t&&n!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=al(a),a=En(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function tl(e){return'href="'+Nt(e)+'"'}function Il(e){return'link[rel="stylesheet"]['+e+"]"}function rp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Ty(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}),ft(t,"link",a),at(t),e.head.appendChild(t))}function al(e){return'[src="'+Nt(e)+'"]'}function Pl(e){return"script[async]"+e}function op(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Nt(a.href)+'"]');if(n)return t.instance=n,at(n),n;var i=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),at(n),ft(n,"style",i),Rr(n,a.precedence,e),t.instance=n;case"stylesheet":i=tl(a.href);var r=e.querySelector(Il(i));if(r)return t.state.loading|=4,t.instance=r,at(r),r;n=rp(a),(i=Xt.get(i))&&xu(n,i),r=(e.ownerDocument||e).createElement("link"),at(r);var d=r;return d._p=new Promise(function(m,j){d.onload=m,d.onerror=j}),ft(r,"link",n),t.state.loading|=4,Rr(r,a.precedence,e),t.instance=r;case"script":return r=al(a.src),(i=e.querySelector(Pl(r)))?(t.instance=i,at(i),i):(n=a,(i=Xt.get(r))&&(n=y({},a),vu(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),at(i),ft(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Rr(n,a.precedence,e));return t.instance}function Rr(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,r=i,d=0;d<n.length;d++){var m=n[d];if(m.dataset.precedence===t)r=m;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function xu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var zr=null;function sp(e,t,a){if(zr===null){var n=new Map,i=zr=new Map;i.set(a,n)}else i=zr,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var r=a[i];if(!(r[ml]||r[ot]||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 up(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Cy(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 cp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function wy(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 i=tl(n.href),r=t.querySelector(Il(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Tr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,at(r);return}r=t.ownerDocument||t,n=rp(n),(i=Xt.get(i))&&xu(n,i),r=r.createElement("link"),at(r);var d=r;d._p=new Promise(function(m,j){d.onload=m,d.onerror=j}),ft(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=Tr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var bu=0;function _y(e,t){return e.stylesheets&&e.count===0&&wr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&bu===0&&(bu=62500*cy());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>bu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function Tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cr=null;function wr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cr=new Map,t.forEach(Oy,e),Cr=null,Tr.call(e))}function Oy(e,t){if(!(t.state.loading&4)){var a=Cr.get(e);if(a)var n=a.get(null);else{a=new Map,Cr.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var d=i[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}i=t.instance,d=i.getAttribute("data-precedence"),r=a.get(d)||n,r===n&&a.set(null,i),a.set(d,i),this.count++,n=Tr.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ei={$$typeof:X,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function My(e,t,a,n,i,r,d,m,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mo(0),this.hiddenUpdates=mo(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function fp(e,t,a,n,i,r,d,m,j,O,U,q){return e=new My(e,t,a,d,j,O,U,q,m),t=1,r===!0&&(t|=24),r=Ct(3,null,null,t),e.current=r,r.stateNode=e,t=Po(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},ns(r),e}function dp(e){return e?(e=Dn,e):Dn}function hp(e,t,a,n,i,r){i=dp(i),n.context===null?n.context=i:n.pendingContext=i,n=Ma(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Da(e,n,t),a!==null&&(St(a,e,t),Ml(a,e,t))}function pp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Su(e,t){pp(e,t),(e=e.alternate)&&pp(e,t)}function mp(e){if(e.tag===13||e.tag===31){var t=an(e,67108864);t!==null&&St(t,e,67108864),Su(e,67108864)}}function gp(e){if(e.tag===13||e.tag===31){var t=Dt();t=go(t);var a=an(e,t);a!==null&&St(a,e,t),Su(e,t)}}var _r=!0;function Dy(e,t,a,n){var i=k.T;k.T=null;var r=Q.p;try{Q.p=2,ju(e,t,a,n)}finally{Q.p=r,k.T=i}}function ky(e,t,a,n){var i=k.T;k.T=null;var r=Q.p;try{Q.p=8,ju(e,t,a,n)}finally{Q.p=r,k.T=i}}function ju(e,t,a,n){if(_r){var i=Eu(n);if(i===null)su(e,t,n,Or,a),xp(e,n);else if(Ny(i,e,t,a,n))n.stopPropagation();else if(xp(e,n),t&4&&-1<By.indexOf(e)){for(;i!==null;){var r=jn(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=$a(r.pendingLanes);if(d!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;d;){var j=1<<31-zt(d);m.entanglements[1]|=j,d&=~j}ta(r),(Ce&6)===0&&(hr=At()+500,Kl(0))}}break;case 31:case 13:m=an(r,2),m!==null&&St(m,r,2),mr(),Su(r,2)}if(r=Eu(n),r===null&&su(e,t,n,Or,a),r===i)break;i=r}i!==null&&n.stopPropagation()}else su(e,t,n,null,a)}}function Eu(e){return e=Ro(e),Au(e)}var Or=null;function Au(e){if(Or=null,e=Sn(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(t),e!==null)return e;e=null}else if(a===31){if(e=x(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Or=e,null}function yp(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(b0()){case Ac:return 2;case Rc:return 8;case bi:case S0:return 32;case zc:return 268435456;default:return 32}default:return 32}}var Ru=!1,Xa=null,Qa=null,Za=null,ti=new Map,ai=new Map,Fa=[],By="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 xp(e,t){switch(e){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function ni(e,t,a,n,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[i]},t!==null&&(t=jn(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ny(e,t,a,n,i){switch(t){case"focusin":return Xa=ni(Xa,e,t,a,n,i),!0;case"dragenter":return Qa=ni(Qa,e,t,a,n,i),!0;case"mouseover":return Za=ni(Za,e,t,a,n,i),!0;case"pointerover":var r=i.pointerId;return ti.set(r,ni(ti.get(r)||null,e,t,a,n,i)),!0;case"gotpointercapture":return r=i.pointerId,ai.set(r,ni(ai.get(r)||null,e,t,a,n,i)),!0}return!1}function vp(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,Mc(e.priority,function(){gp(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,Mc(e.priority,function(){gp(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 Mr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Eu(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Ao=n,a.target.dispatchEvent(n),Ao=null}else return t=jn(a),t!==null&&mp(t),e.blockedOn=a,!1;t.shift()}return!0}function bp(e,t,a){Mr(e)&&a.delete(t)}function Hy(){Ru=!1,Xa!==null&&Mr(Xa)&&(Xa=null),Qa!==null&&Mr(Qa)&&(Qa=null),Za!==null&&Mr(Za)&&(Za=null),ti.forEach(bp),ai.forEach(bp)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ru||(Ru=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Hy)))}var kr=null;function Sp(e){kr!==e&&(kr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){kr===e&&(kr=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(Au(n||a)===null)continue;break}var r=jn(a);r!==null&&(e.splice(t,3),t-=3,Es(r,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function nl(e){function t(j){return Dr(j,e)}Xa!==null&&Dr(Xa,e),Qa!==null&&Dr(Qa,e),Za!==null&&Dr(Za,e),ti.forEach(t),ai.forEach(t);for(var a=0;a<Fa.length;a++){var n=Fa[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Fa.length&&(a=Fa[0],a.blockedOn===null);)vp(a),a.blockedOn===null&&Fa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],r=a[n+1],d=i[mt]||null;if(typeof r=="function")d||Sp(a);else if(d){var m=null;if(r&&r.hasAttribute("formAction")){if(i=r,d=r[mt]||null)m=d.formAction;else if(Au(i)!==null)continue}else m=d.action;typeof m=="function"?a[n+1]=m:(a.splice(n,3),n-=3),Sp(a)}}}function jp(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=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,i=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),i!==null&&(i(),i=null)}}}function zu(e){this._internalRoot=e}Br.prototype.render=zu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,n=Dt();hp(a,n,e,t,null,null)},Br.prototype.unmount=zu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hp(e.current,2,null,e,null,null),mr(),t[bn]=null}};function Br(e){this._internalRoot=e}Br.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Fa.length&&t!==0&&t<Fa[a].priority;a++);Fa.splice(a,0,e),a===0&&vp(e)}};var Ep=o.version;if(Ep!=="19.2.4")throw Error(s(527,Ep,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Uy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nr.isDisabled&&Nr.supportsFiber)try{dl=Nr.inject(Uy),Rt=Nr}catch{}}return ii.createRoot=function(e,t){if(!f(e))throw Error(s(299));var a=!1,n="",i=_d,r=Od,d=Md;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=fp(e,1,!1,null,null,a,n,null,i,r,d,jp),e[bn]=t.current,ou(e),new zu(t)},ii.hydrateRoot=function(e,t,a){if(!f(e))throw Error(s(299));var n=!1,i="",r=_d,d=Od,m=Md,j=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=fp(e,1,!0,t,a??null,n,i,j,r,d,m,jp),t.context=dp(null),a=t.current,n=Dt(),n=go(n),i=Ma(n),i.callback=null,Da(a,i,n),a=n,t.current.lanes=a,pl(t,a),ta(t),e[bn]=t.current,ou(e),new Br(t)},ii.version="19.2.4",ii}var Dp;function Ky(){if(Dp)return wu.exports;Dp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(o){console.error(o)}}return l(),wu.exports=Fy(),wu.exports}var Jy=Ky();const Wy=jm(Jy);var kp="popstate";function Bp(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function $y(l={}){function o(s,f){let h=f.state?.masked,{pathname:p,search:x,hash:b}=h||s.location;return Fu("",{pathname:p,search:x,hash:b},f.state&&f.state.usr||null,f.state&&f.state.key||"default",h?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function c(s,f){return typeof f=="string"?f:ci(f)}return Py(o,c,null,l)}function Ve(l,o){if(l===!1||l===null||typeof l>"u")throw new Error(o)}function Jt(l,o){if(!l){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Iy(){return Math.random().toString(36).substring(2,10)}function Np(l,o){return{usr:l.state,key:l.key,idx:o,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function Fu(l,o,c=null,s,f){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof o=="string"?ol(o):o,state:c,key:o&&o.key||s||Iy(),unstable_mask:f}}function ci({pathname:l="/",search:o="",hash:c=""}){return o&&o!=="?"&&(l+=o.charAt(0)==="?"?o:"?"+o),c&&c!=="#"&&(l+=c.charAt(0)==="#"?c:"#"+c),l}function ol(l){let o={};if(l){let c=l.indexOf("#");c>=0&&(o.hash=l.substring(c),l=l.substring(0,c));let s=l.indexOf("?");s>=0&&(o.search=l.substring(s),l=l.substring(0,s)),l&&(o.pathname=l)}return o}function Py(l,o,c,s={}){let{window:f=document.defaultView,v5Compat:h=!1}=s,p=f.history,x="POP",b=null,g=v();g==null&&(g=0,p.replaceState({...p.state,idx:g},""));function v(){return(p.state||{idx:null}).idx}function y(){x="POP";let w=v(),Y=w==null?null:w-g;g=w,b&&b({action:x,location:C.location,delta:Y})}function D(w,Y){x="PUSH";let I=Bp(w)?w:Fu(C.location,w,Y);g=v()+1;let X=Np(I,g),le=C.createHref(I.unstable_mask||I);try{p.pushState(X,"",le)}catch(ue){if(ue instanceof DOMException&&ue.name==="DataCloneError")throw ue;f.location.assign(le)}h&&b&&b({action:x,location:C.location,delta:1})}function A(w,Y){x="REPLACE";let I=Bp(w)?w:Fu(C.location,w,Y);g=v();let X=Np(I,g),le=C.createHref(I.unstable_mask||I);p.replaceState(X,"",le),h&&b&&b({action:x,location:C.location,delta:0})}function R(w){return e1(w)}let C={get action(){return x},get location(){return l(f,p)},listen(w){if(b)throw new Error("A history only accepts one active listener");return f.addEventListener(kp,y),b=w,()=>{f.removeEventListener(kp,y),b=null}},createHref(w){return o(f,w)},createURL:R,encodeLocation(w){let Y=R(w);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:D,replace:A,go(w){return p.go(w)}};return C}function e1(l,o=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(c,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:ci(l);return s=s.replace(/ $/,"%20"),!o&&s.startsWith("//")&&(s=c+s),new URL(s,c)}function Em(l,o,c="/"){return t1(l,o,c,!1)}function t1(l,o,c,s){let f=typeof o=="string"?ol(o):o,h=Ea(f.pathname||"/",c);if(h==null)return null;let p=Am(l);a1(p);let x=null;for(let b=0;x==null&&b<p.length;++b){let g=h1(h);x=f1(p[b],g,s)}return x}function Am(l,o=[],c=[],s="",f=!1){let h=(p,x,b=f,g)=>{let v={relativePath:g===void 0?p.path||"":g,caseSensitive:p.caseSensitive===!0,childrenIndex:x,route:p};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(s)&&b)return;Ve(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length)}let y=na([s,v.relativePath]),D=c.concat(v);p.children&&p.children.length>0&&(Ve(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Am(p.children,o,D,y,b)),!(p.path==null&&!p.index)&&o.push({path:y,score:u1(y,p.index),routesMeta:D})};return l.forEach((p,x)=>{if(p.path===""||!p.path?.includes("?"))h(p,x);else for(let b of Rm(p.path))h(p,x,!0,b)}),o}function Rm(l){let o=l.split("/");if(o.length===0)return[];let[c,...s]=o,f=c.endsWith("?"),h=c.replace(/\?$/,"");if(s.length===0)return f?[h,""]:[h];let p=Rm(s.join("/")),x=[];return x.push(...p.map(b=>b===""?h:[h,b].join("/"))),f&&x.push(...p),x.map(b=>l.startsWith("/")&&b===""?"/":b)}function a1(l){l.sort((o,c)=>o.score!==c.score?c.score-o.score:c1(o.routesMeta.map(s=>s.childrenIndex),c.routesMeta.map(s=>s.childrenIndex)))}var n1=/^:[\w-]+$/,l1=3,i1=2,r1=1,o1=10,s1=-2,Hp=l=>l==="*";function u1(l,o){let c=l.split("/"),s=c.length;return c.some(Hp)&&(s+=s1),o&&(s+=i1),c.filter(f=>!Hp(f)).reduce((f,h)=>f+(n1.test(h)?l1:h===""?r1:o1),s)}function c1(l,o){return l.length===o.length&&l.slice(0,-1).every((s,f)=>s===o[f])?l[l.length-1]-o[o.length-1]:0}function f1(l,o,c=!1){let{routesMeta:s}=l,f={},h="/",p=[];for(let x=0;x<s.length;++x){let b=s[x],g=x===s.length-1,v=h==="/"?o:o.slice(h.length)||"/",y=Kr({path:b.relativePath,caseSensitive:b.caseSensitive,end:g},v),D=b.route;if(!y&&g&&c&&!s[s.length-1].route.index&&(y=Kr({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},v)),!y)return null;Object.assign(f,y.params),p.push({params:f,pathname:na([h,y.pathname]),pathnameBase:y1(na([h,y.pathnameBase])),route:D}),y.pathnameBase!=="/"&&(h=na([h,y.pathnameBase]))}return p}function Kr(l,o){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[c,s]=d1(l.path,l.caseSensitive,l.end),f=o.match(c);if(!f)return null;let h=f[0],p=h.replace(/(.)\/+$/,"$1"),x=f.slice(1);return{params:s.reduce((g,{paramName:v,isOptional:y},D)=>{if(v==="*"){let R=x[D]||"";p=h.slice(0,h.length-R.length).replace(/(.)\/+$/,"$1")}const A=x[D];return y&&!A?g[v]=void 0:g[v]=(A||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:p,pattern:l}}function d1(l,o=!1,c=!0){Jt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],f="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,x,b,g,v)=>{if(s.push({paramName:x,isOptional:b!=null}),b){let y=v.charAt(g+p.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),f+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?f+="\\/*$":l!==""&&l!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,o?void 0:"i"),s]}function h1(l){try{return l.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Jt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),l}}function Ea(l,o){if(o==="/")return l;if(!l.toLowerCase().startsWith(o.toLowerCase()))return null;let c=o.endsWith("/")?o.length-1:o.length,s=l.charAt(c);return s&&s!=="/"?null:l.slice(c)||"/"}var p1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function m1(l,o="/"){let{pathname:c,search:s="",hash:f=""}=typeof l=="string"?ol(l):l,h;return c?(c=c.replace(/\/\/+/g,"/"),c.startsWith("/")?h=Up(c.substring(1),"/"):h=Up(c,o)):h=o,{pathname:h,search:x1(s),hash:v1(f)}}function Up(l,o){let c=o.replace(/\/+$/,"").split("/");return l.split("/").forEach(f=>{f===".."?c.length>1&&c.pop():f!=="."&&c.push(f)}),c.length>1?c.join("/"):"/"}function Du(l,o,c,s){return`Cannot include a '${l}' character in a manually specified \`to.${o}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function g1(l){return l.filter((o,c)=>c===0||o.route.path&&o.route.path.length>0)}function lc(l){let o=g1(l);return o.map((c,s)=>s===o.length-1?c.pathname:c.pathnameBase)}function Pr(l,o,c,s=!1){let f;typeof l=="string"?f=ol(l):(f={...l},Ve(!f.pathname||!f.pathname.includes("?"),Du("?","pathname","search",f)),Ve(!f.pathname||!f.pathname.includes("#"),Du("#","pathname","hash",f)),Ve(!f.search||!f.search.includes("#"),Du("#","search","hash",f)));let h=l===""||f.pathname==="",p=h?"/":f.pathname,x;if(p==null)x=c;else{let y=o.length-1;if(!s&&p.startsWith("..")){let D=p.split("/");for(;D[0]==="..";)D.shift(),y-=1;f.pathname=D.join("/")}x=y>=0?o[y]:"/"}let b=m1(f,x),g=p&&p!=="/"&&p.endsWith("/"),v=(h||p===".")&&c.endsWith("/");return!b.pathname.endsWith("/")&&(g||v)&&(b.pathname+="/"),b}var na=l=>l.join("/").replace(/\/\/+/g,"/"),y1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),x1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,v1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,b1=class{constructor(l,o,c,s=!1){this.status=l,this.statusText=o||"",this.internal=s,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function S1(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function j1(l){return l.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var zm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Tm(l,o){let c=l;if(typeof c!="string"||!p1.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let s=c,f=!1;if(zm)try{let h=new URL(window.location.href),p=c.startsWith("//")?new URL(h.protocol+c):new URL(c),x=Ea(p.pathname,o);p.origin===h.origin&&x!=null?c=x+p.search+p.hash:f=!0}catch{Jt(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:f,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Cm=["POST","PUT","PATCH","DELETE"];new Set(Cm);var E1=["GET",...Cm];new Set(E1);var sl=z.createContext(null);sl.displayName="DataRouter";var eo=z.createContext(null);eo.displayName="DataRouterState";var A1=z.createContext(!1),wm=z.createContext({isTransitioning:!1});wm.displayName="ViewTransition";var R1=z.createContext(new Map);R1.displayName="Fetchers";var z1=z.createContext(null);z1.displayName="Await";var kt=z.createContext(null);kt.displayName="Navigation";var fi=z.createContext(null);fi.displayName="Location";var la=z.createContext({outlet:null,matches:[],isDataRoute:!1});la.displayName="Route";var ic=z.createContext(null);ic.displayName="RouteError";var _m="REACT_ROUTER_ERROR",T1="REDIRECT",C1="ROUTE_ERROR_RESPONSE";function w1(l){if(l.startsWith(`${_m}:${T1}:{`))try{let o=JSON.parse(l.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 _1(l){if(l.startsWith(`${_m}:${C1}:{`))try{let o=JSON.parse(l.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new b1(o.status,o.statusText,o.data)}catch{}}function O1(l,{relative:o}={}){Ve(ul(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:s}=z.useContext(kt),{hash:f,pathname:h,search:p}=di(l,{relative:o}),x=h;return c!=="/"&&(x=h==="/"?c:na([c,h])),s.createHref({pathname:x,search:p,hash:f})}function ul(){return z.useContext(fi)!=null}function Wt(){return Ve(ul(),"useLocation() may be used only in the context of a <Router> component."),z.useContext(fi).location}var Om="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mm(l){z.useContext(kt).static||z.useLayoutEffect(l)}function to(){let{isDataRoute:l}=z.useContext(la);return l?X1():M1()}function M1(){Ve(ul(),"useNavigate() may be used only in the context of a <Router> component.");let l=z.useContext(sl),{basename:o,navigator:c}=z.useContext(kt),{matches:s}=z.useContext(la),{pathname:f}=Wt(),h=JSON.stringify(lc(s)),p=z.useRef(!1);return Mm(()=>{p.current=!0}),z.useCallback((b,g={})=>{if(Jt(p.current,Om),!p.current)return;if(typeof b=="number"){c.go(b);return}let v=Pr(b,JSON.parse(h),f,g.relative==="path");l==null&&o!=="/"&&(v.pathname=v.pathname==="/"?o:na([o,v.pathname])),(g.replace?c.replace:c.push)(v,g.state,g)},[o,c,h,f,l])}z.createContext(null);function di(l,{relative:o}={}){let{matches:c}=z.useContext(la),{pathname:s}=Wt(),f=JSON.stringify(lc(c));return z.useMemo(()=>Pr(l,JSON.parse(f),s,o==="path"),[l,f,s,o])}function D1(l,o){return Dm(l,o)}function Dm(l,o,c){Ve(ul(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=z.useContext(kt),{matches:f}=z.useContext(la),h=f[f.length-1],p=h?h.params:{},x=h?h.pathname:"/",b=h?h.pathnameBase:"/",g=h&&h.route;{let w=g&&g.path||"";Bm(x,!g||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${w}">) 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="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let v=Wt(),y;if(o){let w=typeof o=="string"?ol(o):o;Ve(b==="/"||w.pathname?.startsWith(b),`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 "${b}" but pathname "${w.pathname}" was given in the \`location\` prop.`),y=w}else y=v;let D=y.pathname||"/",A=D;if(b!=="/"){let w=b.replace(/^\//,"").split("/");A="/"+D.replace(/^\//,"").split("/").slice(w.length).join("/")}let R=Em(l,{pathname:A});Jt(g||R!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Jt(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 C=U1(R&&R.map(w=>Object.assign({},w,{params:Object.assign({},p,w.params),pathname:na([b,s.encodeLocation?s.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?b:na([b,s.encodeLocation?s.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),f,c);return o&&C?z.createElement(fi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},C):C}function k1(){let l=V1(),o=S1(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),c=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:s},h={padding:"2px 4px",backgroundColor:s},p=null;return console.error("Error handled by React Router default ErrorBoundary:",l),p=z.createElement(z.Fragment,null,z.createElement("p",null,"💿 Hey developer 👋"),z.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",z.createElement("code",{style:h},"ErrorBoundary")," or"," ",z.createElement("code",{style:h},"errorElement")," prop on your route.")),z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},o),c?z.createElement("pre",{style:f},c):null,p)}var B1=z.createElement(k1,null),km=class extends z.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,o){return o.location!==l.location||o.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:o.error,location:o.location,revalidation:l.revalidation||o.revalidation}}componentDidCatch(l,o){this.props.onError?this.props.onError(l,o):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const c=_1(l.digest);c&&(l=c)}let o=l!==void 0?z.createElement(la.Provider,{value:this.props.routeContext},z.createElement(ic.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?z.createElement(N1,{error:l},o):o}};km.contextType=A1;var ku=new WeakMap;function N1({children:l,error:o}){let{basename:c}=z.useContext(kt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let s=w1(o.digest);if(s){let f=ku.get(o);if(f)throw f;let h=Tm(s.location,c);if(zm&&!ku.get(o))if(h.isExternal||s.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:s.replace}));throw ku.set(o,p),p}return z.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return l}function H1({routeContext:l,match:o,children:c}){let s=z.useContext(sl);return s&&s.static&&s.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=o.route.id),z.createElement(la.Provider,{value:l},c)}function U1(l,o=[],c){let s=c?.state;if(l==null){if(!s)return null;if(s.errors)l=s.matches;else if(o.length===0&&!s.initialized&&s.matches.length>0)l=s.matches;else return null}let f=l,h=s?.errors;if(h!=null){let v=f.findIndex(y=>y.route.id&&h?.[y.route.id]!==void 0);Ve(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,v+1))}let p=!1,x=-1;if(c&&s){p=s.renderFallback;for(let v=0;v<f.length;v++){let y=f[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(x=v),y.route.id){let{loaderData:D,errors:A}=s,R=y.route.loader&&!D.hasOwnProperty(y.route.id)&&(!A||A[y.route.id]===void 0);if(y.route.lazy||R){c.isStatic&&(p=!0),x>=0?f=f.slice(0,x+1):f=[f[0]];break}}}}let b=c?.onError,g=s&&b?(v,y)=>{b(v,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:j1(s.matches),errorInfo:y})}:void 0;return f.reduceRight((v,y,D)=>{let A,R=!1,C=null,w=null;s&&(A=h&&y.route.id?h[y.route.id]:void 0,C=y.route.errorElement||B1,p&&(x<0&&D===0?(Bm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,w=null):x===D&&(R=!0,w=y.route.hydrateFallbackElement||null)));let Y=o.concat(f.slice(0,D+1)),I=()=>{let X;return A?X=C:R?X=w:y.route.Component?X=z.createElement(y.route.Component,null):y.route.element?X=y.route.element:X=v,z.createElement(H1,{match:y,routeContext:{outlet:v,matches:Y,isDataRoute:s!=null},children:X})};return s&&(y.route.ErrorBoundary||y.route.errorElement||D===0)?z.createElement(km,{location:s.location,revalidation:s.revalidation,component:C,error:A,children:I(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:g}):I()},null)}function rc(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function L1(l){let o=z.useContext(sl);return Ve(o,rc(l)),o}function q1(l){let o=z.useContext(eo);return Ve(o,rc(l)),o}function G1(l){let o=z.useContext(la);return Ve(o,rc(l)),o}function oc(l){let o=G1(l),c=o.matches[o.matches.length-1];return Ve(c.route.id,`${l} can only be used on routes that contain a unique "id"`),c.route.id}function Y1(){return oc("useRouteId")}function V1(){let l=z.useContext(ic),o=q1("useRouteError"),c=oc("useRouteError");return l!==void 0?l:o.errors?.[c]}function X1(){let{router:l}=L1("useNavigate"),o=oc("useNavigate"),c=z.useRef(!1);return Mm(()=>{c.current=!0}),z.useCallback(async(f,h={})=>{Jt(c.current,Om),c.current&&(typeof f=="number"?await l.navigate(f):await l.navigate(f,{fromRouteId:o,...h}))},[l,o])}var Lp={};function Bm(l,o,c){!o&&!Lp[l]&&(Lp[l]=!0,Jt(!1,c))}z.memo(Q1);function Q1({routes:l,future:o,state:c,isStatic:s,onError:f}){return Dm(l,void 0,{state:c,isStatic:s,onError:f})}function Z1({to:l,replace:o,state:c,relative:s}){Ve(ul(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=z.useContext(kt);Jt(!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}=z.useContext(la),{pathname:p}=Wt(),x=to(),b=Pr(l,lc(h),p,s==="path"),g=JSON.stringify(b);return z.useEffect(()=>{x(JSON.parse(g),{replace:o,state:c,relative:s})},[x,g,s,o,c]),null}function aa(l){Ve(!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 F1({basename:l="/",children:o=null,location:c,navigationType:s="POP",navigator:f,static:h=!1,unstable_useTransitions:p}){Ve(!ul(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=l.replace(/^\/*/,"/"),b=z.useMemo(()=>({basename:x,navigator:f,static:h,unstable_useTransitions:p,future:{}}),[x,f,h,p]);typeof c=="string"&&(c=ol(c));let{pathname:g="/",search:v="",hash:y="",state:D=null,key:A="default",unstable_mask:R}=c,C=z.useMemo(()=>{let w=Ea(g,x);return w==null?null:{location:{pathname:w,search:v,hash:y,state:D,key:A,unstable_mask:R},navigationType:s}},[x,g,v,y,D,A,s,R]);return Jt(C!=null,`<Router basename="${x}"> is not able to match the URL "${g}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:z.createElement(kt.Provider,{value:b},z.createElement(fi.Provider,{children:o,value:C}))}function K1({children:l,location:o}){return D1(Ku(l),o)}function Ku(l,o=[]){let c=[];return z.Children.forEach(l,(s,f)=>{if(!z.isValidElement(s))return;let h=[...o,f];if(s.type===z.Fragment){c.push.apply(c,Ku(s.props.children,h));return}Ve(s.type===aa,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!s.props.index||!s.props.children,"An index route cannot have child routes.");let p={id:s.props.id||h.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(p.children=Ku(s.props.children,h)),c.push(p)}),c}var Gr="get",Yr="application/x-www-form-urlencoded";function ao(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function J1(l){return ao(l)&&l.tagName.toLowerCase()==="button"}function W1(l){return ao(l)&&l.tagName.toLowerCase()==="form"}function $1(l){return ao(l)&&l.tagName.toLowerCase()==="input"}function I1(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function P1(l,o){return l.button===0&&(!o||o==="_self")&&!I1(l)}var Hr=null;function ex(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var tx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bu(l){return l!=null&&!tx.has(l)?(Jt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yr}"`),null):l}function ax(l,o){let c,s,f,h,p;if(W1(l)){let x=l.getAttribute("action");s=x?Ea(x,o):null,c=l.getAttribute("method")||Gr,f=Bu(l.getAttribute("enctype"))||Yr,h=new FormData(l)}else if(J1(l)||$1(l)&&(l.type==="submit"||l.type==="image")){let x=l.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=l.getAttribute("formaction")||x.getAttribute("action");if(s=b?Ea(b,o):null,c=l.getAttribute("formmethod")||x.getAttribute("method")||Gr,f=Bu(l.getAttribute("formenctype"))||Bu(x.getAttribute("enctype"))||Yr,h=new FormData(x,l),!ex()){let{name:g,type:v,value:y}=l;if(v==="image"){let D=g?`${g}.`:"";h.append(`${D}x`,"0"),h.append(`${D}y`,"0")}else g&&h.append(g,y)}}else{if(ao(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Gr,s=null,f=Yr,p=l}return h&&f==="text/plain"&&(p=h,h=void 0),{action:s,method:c.toLowerCase(),encType:f,formData:h,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sc(l,o){if(l===!1||l===null||typeof l>"u")throw new Error(o)}function nx(l,o,c,s){let f=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return c?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:o&&Ea(f.pathname,o)==="/"?f.pathname=`${o.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function lx(l,o){if(l.id in o)return o[l.id];try{let c=await import(l.module);return o[l.id]=c,c}catch(c){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ix(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function rx(l,o,c){let s=await Promise.all(l.map(async f=>{let h=o.routes[f.route.id];if(h){let p=await lx(h,c);return p.links?p.links():[]}return[]}));return cx(s.flat(1).filter(ix).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function qp(l,o,c,s,f,h){let p=(b,g)=>c[g]?b.route.id!==c[g].route.id:!0,x=(b,g)=>c[g].pathname!==b.pathname||c[g].route.path?.endsWith("*")&&c[g].params["*"]!==b.params["*"];return h==="assets"?o.filter((b,g)=>p(b,g)||x(b,g)):h==="data"?o.filter((b,g)=>{let v=s.routes[b.route.id];if(!v||!v.hasLoader)return!1;if(p(b,g)||x(b,g))return!0;if(b.route.shouldRevalidate){let y=b.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:c[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function ox(l,o,{includeHydrateFallback:c}={}){return sx(l.map(s=>{let f=o.routes[s.route.id];if(!f)return[];let h=[f.module];return f.clientActionModule&&(h=h.concat(f.clientActionModule)),f.clientLoaderModule&&(h=h.concat(f.clientLoaderModule)),c&&f.hydrateFallbackModule&&(h=h.concat(f.hydrateFallbackModule)),f.imports&&(h=h.concat(f.imports)),h}).flat(1))}function sx(l){return[...new Set(l)]}function ux(l){let o={},c=Object.keys(l).sort();for(let s of c)o[s]=l[s];return o}function cx(l,o){let c=new Set;return new Set(o),l.reduce((s,f)=>{let h=JSON.stringify(ux(f));return c.has(h)||(c.add(h),s.push({key:h,link:f})),s},[])}function Nm(){let l=z.useContext(sl);return sc(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function fx(){let l=z.useContext(eo);return sc(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var uc=z.createContext(void 0);uc.displayName="FrameworkContext";function Hm(){let l=z.useContext(uc);return sc(l,"You must render this element inside a <HydratedRouter> element"),l}function dx(l,o){let c=z.useContext(uc),[s,f]=z.useState(!1),[h,p]=z.useState(!1),{onFocus:x,onBlur:b,onMouseEnter:g,onMouseLeave:v,onTouchStart:y}=o,D=z.useRef(null);z.useEffect(()=>{if(l==="render"&&p(!0),l==="viewport"){let C=Y=>{Y.forEach(I=>{p(I.isIntersecting)})},w=new IntersectionObserver(C,{threshold:.5});return D.current&&w.observe(D.current),()=>{w.disconnect()}}},[l]),z.useEffect(()=>{if(s){let C=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(C)}}},[s]);let A=()=>{f(!0)},R=()=>{f(!1),p(!1)};return c?l!=="intent"?[h,D,{}]:[h,D,{onFocus:ri(x,A),onBlur:ri(b,R),onMouseEnter:ri(g,A),onMouseLeave:ri(v,R),onTouchStart:ri(y,A)}]:[!1,D,{}]}function ri(l,o){return c=>{l&&l(c),c.defaultPrevented||o(c)}}function hx({page:l,...o}){let{router:c}=Nm(),s=z.useMemo(()=>Em(c.routes,l,c.basename),[c.routes,l,c.basename]);return s?z.createElement(mx,{page:l,matches:s,...o}):null}function px(l){let{manifest:o,routeModules:c}=Hm(),[s,f]=z.useState([]);return z.useEffect(()=>{let h=!1;return rx(l,o,c).then(p=>{h||f(p)}),()=>{h=!0}},[l,o,c]),s}function mx({page:l,matches:o,...c}){let s=Wt(),{future:f,manifest:h,routeModules:p}=Hm(),{basename:x}=Nm(),{loaderData:b,matches:g}=fx(),v=z.useMemo(()=>qp(l,o,g,h,s,"data"),[l,o,g,h,s]),y=z.useMemo(()=>qp(l,o,g,h,s,"assets"),[l,o,g,h,s]),D=z.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let C=new Set,w=!1;if(o.forEach(I=>{let X=h.routes[I.route.id];!X||!X.hasLoader||(!v.some(le=>le.route.id===I.route.id)&&I.route.id in b&&p[I.route.id]?.shouldRevalidate||X.hasClientLoader?w=!0:C.add(I.route.id))}),C.size===0)return[];let Y=nx(l,x,f.unstable_trailingSlashAwareDataRequests,"data");return w&&C.size>0&&Y.searchParams.set("_routes",o.filter(I=>C.has(I.route.id)).map(I=>I.route.id).join(",")),[Y.pathname+Y.search]},[x,f.unstable_trailingSlashAwareDataRequests,b,s,h,v,o,l,p]),A=z.useMemo(()=>ox(y,h),[y,h]),R=px(y);return z.createElement(z.Fragment,null,D.map(C=>z.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...c})),A.map(C=>z.createElement("link",{key:C,rel:"modulepreload",href:C,...c})),R.map(({key:C,link:w})=>z.createElement("link",{key:C,nonce:c.nonce,...w,crossOrigin:w.crossOrigin??c.crossOrigin})))}function gx(...l){return o=>{l.forEach(c=>{typeof c=="function"?c(o):c!=null&&(c.current=o)})}}var yx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yx&&(window.__reactRouterVersion="7.13.1")}catch{}function xx({basename:l,children:o,unstable_useTransitions:c,window:s}){let f=z.useRef();f.current==null&&(f.current=$y({window:s,v5Compat:!0}));let h=f.current,[p,x]=z.useState({action:h.action,location:h.location}),b=z.useCallback(g=>{c===!1?x(g):z.startTransition(()=>x(g))},[c]);return z.useLayoutEffect(()=>h.listen(b),[h,b]),z.createElement(F1,{basename:l,children:o,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:c})}var Um=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ui=z.forwardRef(function({onClick:o,discover:c="render",prefetch:s="none",relative:f,reloadDocument:h,replace:p,unstable_mask:x,state:b,target:g,to:v,preventScrollReset:y,viewTransition:D,unstable_defaultShouldRevalidate:A,...R},C){let{basename:w,navigator:Y,unstable_useTransitions:I}=z.useContext(kt),X=typeof v=="string"&&Um.test(v),le=Tm(v,w);v=le.to;let ue=O1(v,{relative:f}),me=Wt(),K=null;if(x){let _e=Pr(x,[],me.unstable_mask?me.unstable_mask.pathname:"/",!0);w!=="/"&&(_e.pathname=_e.pathname==="/"?w:na([w,_e.pathname])),K=Y.createHref(_e)}let[we,De,it]=dx(s,R),We=jx(v,{replace:p,unstable_mask:x,state:b,target:g,preventScrollReset:y,relative:f,viewTransition:D,unstable_defaultShouldRevalidate:A,unstable_useTransitions:I});function Z(_e){o&&o(_e),_e.defaultPrevented||We(_e)}let fe=!(le.isExternal||h),xe=z.createElement("a",{...R,...it,href:(fe?K:void 0)||le.absoluteURL||ue,onClick:fe?Z:o,ref:gx(C,De),target:g,"data-discover":!X&&c==="render"?"true":void 0});return we&&!X?z.createElement(z.Fragment,null,xe,z.createElement(hx,{page:ue})):xe});ui.displayName="Link";var vx=z.forwardRef(function({"aria-current":o="page",caseSensitive:c=!1,className:s="",end:f=!1,style:h,to:p,viewTransition:x,children:b,...g},v){let y=di(p,{relative:g.relative}),D=Wt(),A=z.useContext(eo),{navigator:R,basename:C}=z.useContext(kt),w=A!=null&&Tx(y)&&x===!0,Y=R.encodeLocation?R.encodeLocation(y).pathname:y.pathname,I=D.pathname,X=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;c||(I=I.toLowerCase(),X=X?X.toLowerCase():null,Y=Y.toLowerCase()),X&&C&&(X=Ea(X,C)||X);const le=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let ue=I===Y||!f&&I.startsWith(Y)&&I.charAt(le)==="/",me=X!=null&&(X===Y||!f&&X.startsWith(Y)&&X.charAt(Y.length)==="/"),K={isActive:ue,isPending:me,isTransitioning:w},we=ue?o:void 0,De;typeof s=="function"?De=s(K):De=[s,ue?"active":null,me?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let it=typeof h=="function"?h(K):h;return z.createElement(ui,{...g,"aria-current":we,className:De,ref:v,style:it,to:p,viewTransition:x},typeof b=="function"?b(K):b)});vx.displayName="NavLink";var bx=z.forwardRef(({discover:l="render",fetcherKey:o,navigate:c,reloadDocument:s,replace:f,state:h,method:p=Gr,action:x,onSubmit:b,relative:g,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:D,...A},R)=>{let{unstable_useTransitions:C}=z.useContext(kt),w=Rx(),Y=zx(x,{relative:g}),I=p.toLowerCase()==="get"?"get":"post",X=typeof x=="string"&&Um.test(x),le=ue=>{if(b&&b(ue),ue.defaultPrevented)return;ue.preventDefault();let me=ue.nativeEvent.submitter,K=me?.getAttribute("formmethod")||p,we=()=>w(me||ue.currentTarget,{fetcherKey:o,method:K,navigate:c,replace:f,state:h,relative:g,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:D});C&&c!==!1?z.startTransition(()=>we()):we()};return z.createElement("form",{ref:R,method:I,action:Y,onSubmit:s?b:le,...A,"data-discover":!X&&l==="render"?"true":void 0})});bx.displayName="Form";function Sx(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lm(l){let o=z.useContext(sl);return Ve(o,Sx(l)),o}function jx(l,{target:o,replace:c,unstable_mask:s,state:f,preventScrollReset:h,relative:p,viewTransition:x,unstable_defaultShouldRevalidate:b,unstable_useTransitions:g}={}){let v=to(),y=Wt(),D=di(l,{relative:p});return z.useCallback(A=>{if(P1(A,o)){A.preventDefault();let R=c!==void 0?c:ci(y)===ci(D),C=()=>v(l,{replace:R,unstable_mask:s,state:f,preventScrollReset:h,relative:p,viewTransition:x,unstable_defaultShouldRevalidate:b});g?z.startTransition(()=>C()):C()}},[y,v,D,c,s,f,o,l,h,p,x,b,g])}var Ex=0,Ax=()=>`__${String(++Ex)}__`;function Rx(){let{router:l}=Lm("useSubmit"),{basename:o}=z.useContext(kt),c=Y1(),s=l.fetch,f=l.navigate;return z.useCallback(async(h,p={})=>{let{action:x,method:b,encType:g,formData:v,body:y}=ax(h,o);if(p.navigate===!1){let D=p.fetcherKey||Ax();await s(D,c,p.action||x,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:v,body:y,formMethod:p.method||b,formEncType:p.encType||g,flushSync:p.flushSync})}else await f(p.action||x,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:v,body:y,formMethod:p.method||b,formEncType:p.encType||g,replace:p.replace,state:p.state,fromRouteId:c,flushSync:p.flushSync,viewTransition:p.viewTransition})},[s,f,o,c])}function zx(l,{relative:o}={}){let{basename:c}=z.useContext(kt),s=z.useContext(la);Ve(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),h={...di(l||".",{relative:o})},p=Wt();if(l==null){h.search=p.search;let x=new URLSearchParams(h.search),b=x.getAll("index");if(b.some(v=>v==="")){x.delete("index"),b.filter(y=>y).forEach(y=>x.append("index",y));let v=x.toString();h.search=v?`?${v}`:""}}return(!l||l===".")&&f.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(h.pathname=h.pathname==="/"?c:na([c,h.pathname])),ci(h)}function Tx(l,{relative:o}={}){let c=z.useContext(wm);Ve(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Lm("useViewTransitionState"),f=di(l,{relative:o});if(!c.isTransitioning)return!1;let h=Ea(c.currentLocation.pathname,s)||c.currentLocation.pathname,p=Ea(c.nextLocation.pathname,s)||c.nextLocation.pathname;return Kr(f.pathname,p)!=null||Kr(f.pathname,h)!=null}const qm=(...l)=>l.filter((o,c,s)=>!!o&&o.trim()!==""&&s.indexOf(o)===c).join(" ").trim();const Cx=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const wx=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,c,s)=>s?s.toUpperCase():c.toLowerCase());const Gp=l=>{const o=wx(l);return o.charAt(0).toUpperCase()+o.slice(1)};var _x={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 Ox=l=>{for(const o in l)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const Mx=z.forwardRef(({color:l="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:s,className:f="",children:h,iconNode:p,...x},b)=>z.createElement("svg",{ref:b,..._x,width:o,height:o,stroke:l,strokeWidth:s?Number(c)*24/Number(o):c,className:qm("lucide",f),...!h&&!Ox(x)&&{"aria-hidden":"true"},...x},[...p.map(([g,v])=>z.createElement(g,v)),...Array.isArray(h)?h:[h]]));const ae=(l,o)=>{const c=z.forwardRef(({className:s,...f},h)=>z.createElement(Mx,{ref:h,iconNode:o,className:qm(`lucide-${Cx(Gp(l))}`,`lucide-${l}`,s),...f}));return c.displayName=Gp(l),c};const Dx=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Vr=ae("activity",Dx);const kx=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Bx=ae("arrow-left",kx);const Nx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Hx=ae("arrow-right",Nx);const Ux=[["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"}]],Ju=ae("bot",Ux);const Lx=[["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"}]],qx=ae("camera",Lx);const Gx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Jr=ae("check",Gx);const Yx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Vx=ae("chevron-down",Yx);const Xx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Qx=ae("chevron-left",Xx);const Zx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ll=ae("chevron-right",Zx);const Fx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Kx=ae("chevron-up",Fx);const Jx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Wx=ae("circle-check",Jx);const $x=[["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"}]],Ix=ae("circle-play",$x);const Px=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Wu=ae("clock",Px);const ev=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],tv=ae("copy",ev);const av=[["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"}]],$u=ae("cpu",av);const nv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Gm=ae("database",nv);const lv=[["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"}]],iv=ae("download",lv);const rv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ov=ae("external-link",rv);const sv=[["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"}]],Ym=ae("eye",sv);const uv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Ur=ae("file-code",uv);const cv=[["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"}]],Nu=ae("file-image",cv);const fv=[["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"}]],Iu=ae("file-text",fv);const dv=[["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"}]],Yp=ae("file",dv);const hv=[["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"}]],Vp=ae("folder-plus",hv);const pv=[["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"}]],Vm=ae("folder",pv);const mv=[["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"}]],gv=ae("funnel",mv);const yv=[["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"}]],Hu=ae("github",yv);const xv=[["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"}]],cc=ae("globe",xv);const vv=[["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"}]],fc=ae("hard-drive",vv);const bv=[["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"}]],Sv=ae("layout-dashboard",bv);const jv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ev=ae("loader-circle",jv);const Av=[["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"}]],Rv=ae("lock",Av);const zv=[["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"}]],dc=ae("message-square",zv);const Tv=[["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"}]],Cv=ae("mic-off",Tv);const wv=[["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"}]],Xp=ae("mic",wv);const _v=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Ov=ae("moon",_v);const Mv=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Xm=ae("package",Mv);const Dv=[["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"}]],kv=ae("panels-top-left",Dv);const Bv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Nv=ae("plus",Bv);const Hv=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Qp=ae("power",Hv);const Uv=[["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"}]],Lv=ae("refresh-cw",Uv);const qv=[["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"}]],Zp=ae("rotate-ccw",qv);const Gv=[["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"}]],Yv=ae("save",Gv);const Vv=[["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"}]],Xv=ae("send",Vv);const Qv=[["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"}]],hc=ae("server",Qv);const Zv=[["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"}]],Fv=ae("settings",Zv);const Kv=[["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"}]],il=ae("shield",Kv);const Jv=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Fp=ae("star",Jv);const Wv=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],$v=ae("sun",Wv);const Iv=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Qm=ae("terminal",Iv);const Pv=[["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"}]],Zm=ae("trash-2",Pv);const e2=[["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"}]],pc=ae("triangle-alert",e2);const t2=[["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"}]],a2=ae("upload",t2);const n2=[["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"}]],Fm=ae("user",n2);const l2=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],i2=ae("workflow",l2);const r2=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Wr=ae("wrench",r2);const o2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kp=ae("x",o2);const s2=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],hi=ae("zap",s2),u2=[{icon:Sv,label:"Control Center",labelHi:"डैशबोर्ड",path:"/dashboard"},{icon:dc,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:fc,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:Wr,label:"Modules",path:"/tools"},{icon:hi,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:il,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:Fv,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function c2({user:l,isOpen:o,onToggle:c,onLogout:s}){const f=to(),h=Wt();return u.jsxs("aside",{style:{...lt.sidebar,width:o?"280px":"72px",resize:o?"horizontal":"none",minWidth:o?"200px":"72px",maxWidth:o?"500px":"72px"},children:[u.jsxs("div",{style:lt.header,children:[u.jsxs("div",{style:lt.brand,onClick:()=>f("/"),children:[u.jsx("div",{style:lt.logoWrap,children:u.jsx("img",{src:"/logo.png",alt:"SamarthyaBot",style:{width:"32px",height:"32px",objectFit:"contain"}})}),o&&u.jsxs("div",{style:lt.brandText,children:[u.jsx("span",{style:lt.brandName,children:"SamarthyaBot"}),u.jsx("span",{style:lt.brandSub,children:"v1.0.0"})]})]}),u.jsx("button",{onClick:c,style:lt.toggleBtn,children:o?u.jsx(Qx,{size:18}):u.jsx(ll,{size:18})})]}),u.jsx("nav",{style:lt.nav,children:u2.map(p=>{const x=p.icon,b=h.pathname===p.path||p.path!=="/"&&h.pathname.startsWith(p.path);return u.jsxs("button",{onClick:()=>f(p.path),style:{...lt.navItem,...b?lt.navItemActive:{},justifyContent:o?"flex-start":"center"},title:o?void 0:p.label,children:[u.jsx(x,{size:20,style:{minWidth:"20px"}}),o&&u.jsx("span",{children:p.label}),b&&u.jsx("div",{style:lt.activeIndicator})]},p.path)})}),u.jsx("div",{style:lt.footer,children:o&&u.jsxs("div",{style:lt.userInfo,children:[u.jsx("div",{style:lt.avatar,children:(l?.name||"U").charAt(0).toUpperCase()}),u.jsxs("div",{style:lt.userText,children:[u.jsx("div",{style:lt.userName,children:l?.name||"Local Admin"}),u.jsx("div",{style:lt.userStatus,children:"AI Agent Operator"})]})]})})]})}const lt={sidebar:{position:"sticky",top:0,height:"100vh",background:"rgba(6, 6, 10, 0.97)",backdropFilter:"blur(24px)",borderRight:"1px solid #1e1e28",display:"flex",flexDirection:"column",zIndex:100,overflow:"hidden",transition:"width 0.25s cubic-bezier(0.4,0,0.2,1)"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 14px",borderBottom:"1px solid #1e1e28",minHeight:"68px"},brand:{display:"flex",alignItems:"center",gap:"10px",cursor:"pointer",overflow:"hidden"},logoWrap:{width:"38px",height:"38px",borderRadius:"10px",background:"#0e0e16",border:"1px solid #2a2a38",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden"},brandText:{display:"flex",flexDirection:"column",whiteSpace:"nowrap"},brandName:{fontWeight:800,fontSize:"1rem",color:"#f0f0ff",letterSpacing:"-0.3px"},brandSub:{fontSize:"0.68rem",color:"#3a3a4e",fontWeight:600,letterSpacing:"0.5px"},toggleBtn:{background:"transparent",border:"1px solid #1e1e28",color:"#3a3a4e",width:"28px",height:"28px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.15s ease",flexShrink:0},nav:{flex:1,padding:"12px 10px",display:"flex",flexDirection:"column",gap:"3px"},navItem:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 12px",borderRadius:"10px",background:"transparent",border:"none",color:"#8888a8",fontSize:"0.875rem",fontWeight:600,cursor:"pointer",transition:"all 0.15s ease",position:"relative",fontFamily:"'Inter', -apple-system, sans-serif",whiteSpace:"nowrap",width:"100%"},navItemActive:{background:"rgba(255, 153, 51, 0.10)",color:"#FF9933",borderLeft:"2px solid #FF9933"},activeIndicator:{display:"none"},footer:{padding:"14px",borderTop:"1px solid #1e1e28",display:"flex",flexDirection:"column",gap:"10px"},userInfo:{display:"flex",alignItems:"center",gap:"10px",overflow:"hidden",padding:"8px 10px",borderRadius:"10px",background:"#0e0e16",border:"1px solid #1e1e28"},avatar:{width:"34px",height:"34px",borderRadius:"8px",background:"linear-gradient(135deg,#FF9933,#e8851d)",display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:800,fontSize:"0.88rem",flexShrink:0},userText:{overflow:"hidden",whiteSpace:"nowrap"},userName:{fontWeight:700,fontSize:"0.83rem",color:"#f0f0ff"},userStatus:{fontSize:"0.72rem",color:"#3a3a4e",marginTop:"2px"}};function Km(l,o){return function(){return l.apply(o,arguments)}}const{toString:f2}=Object.prototype,{getPrototypeOf:mc}=Object,{iterator:no,toStringTag:Jm}=Symbol,lo=(l=>o=>{const c=f2.call(o);return l[c]||(l[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),$t=l=>(l=l.toLowerCase(),o=>lo(o)===l),io=l=>o=>typeof o===l,{isArray:cl}=Array,rl=io("undefined");function pi(l){return l!==null&&!rl(l)&&l.constructor!==null&&!rl(l.constructor)&&jt(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const Wm=$t("ArrayBuffer");function d2(l){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(l):o=l&&l.buffer&&Wm(l.buffer),o}const h2=io("string"),jt=io("function"),$m=io("number"),mi=l=>l!==null&&typeof l=="object",p2=l=>l===!0||l===!1,Xr=l=>{if(lo(l)!=="object")return!1;const o=mc(l);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Jm in l)&&!(no in l)},m2=l=>{if(!mi(l)||pi(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},g2=$t("Date"),y2=$t("File"),x2=$t("Blob"),v2=$t("FileList"),b2=l=>mi(l)&&jt(l.pipe),S2=l=>{let o;return l&&(typeof FormData=="function"&&l instanceof FormData||jt(l.append)&&((o=lo(l))==="formdata"||o==="object"&&jt(l.toString)&&l.toString()==="[object FormData]"))},j2=$t("URLSearchParams"),[E2,A2,R2,z2]=["ReadableStream","Request","Response","Headers"].map($t),T2=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gi(l,o,{allOwnKeys:c=!1}={}){if(l===null||typeof l>"u")return;let s,f;if(typeof l!="object"&&(l=[l]),cl(l))for(s=0,f=l.length;s<f;s++)o.call(null,l[s],s,l);else{if(pi(l))return;const h=c?Object.getOwnPropertyNames(l):Object.keys(l),p=h.length;let x;for(s=0;s<p;s++)x=h[s],o.call(null,l[x],x,l)}}function Im(l,o){if(pi(l))return null;o=o.toLowerCase();const c=Object.keys(l);let s=c.length,f;for(;s-- >0;)if(f=c[s],o===f.toLowerCase())return f;return null}const yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pm=l=>!rl(l)&&l!==yn;function Pu(){const{caseless:l,skipUndefined:o}=Pm(this)&&this||{},c={},s=(f,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=l&&Im(c,h)||h;Xr(c[p])&&Xr(f)?c[p]=Pu(c[p],f):Xr(f)?c[p]=Pu({},f):cl(f)?c[p]=f.slice():(!o||!rl(f))&&(c[p]=f)};for(let f=0,h=arguments.length;f<h;f++)arguments[f]&&gi(arguments[f],s);return c}const C2=(l,o,c,{allOwnKeys:s}={})=>(gi(o,(f,h)=>{c&&jt(f)?Object.defineProperty(l,h,{value:Km(f,c),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(l,h,{value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),l),w2=l=>(l.charCodeAt(0)===65279&&(l=l.slice(1)),l),_2=(l,o,c,s)=>{l.prototype=Object.create(o.prototype,s),Object.defineProperty(l.prototype,"constructor",{value:l,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(l,"super",{value:o.prototype}),c&&Object.assign(l.prototype,c)},O2=(l,o,c,s)=>{let f,h,p;const x={};if(o=o||{},l==null)return o;do{for(f=Object.getOwnPropertyNames(l),h=f.length;h-- >0;)p=f[h],(!s||s(p,l,o))&&!x[p]&&(o[p]=l[p],x[p]=!0);l=c!==!1&&mc(l)}while(l&&(!c||c(l,o))&&l!==Object.prototype);return o},M2=(l,o,c)=>{l=String(l),(c===void 0||c>l.length)&&(c=l.length),c-=o.length;const s=l.indexOf(o,c);return s!==-1&&s===c},D2=l=>{if(!l)return null;if(cl(l))return l;let o=l.length;if(!$m(o))return null;const c=new Array(o);for(;o-- >0;)c[o]=l[o];return c},k2=(l=>o=>l&&o instanceof l)(typeof Uint8Array<"u"&&mc(Uint8Array)),B2=(l,o)=>{const s=(l&&l[no]).call(l);let f;for(;(f=s.next())&&!f.done;){const h=f.value;o.call(l,h[0],h[1])}},N2=(l,o)=>{let c;const s=[];for(;(c=l.exec(o))!==null;)s.push(c);return s},H2=$t("HTMLFormElement"),U2=l=>l.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(c,s,f){return s.toUpperCase()+f}),Jp=(({hasOwnProperty:l})=>(o,c)=>l.call(o,c))(Object.prototype),L2=$t("RegExp"),e0=(l,o)=>{const c=Object.getOwnPropertyDescriptors(l),s={};gi(c,(f,h)=>{let p;(p=o(f,h,l))!==!1&&(s[h]=p||f)}),Object.defineProperties(l,s)},q2=l=>{e0(l,(o,c)=>{if(jt(l)&&["arguments","caller","callee"].indexOf(c)!==-1)return!1;const s=l[c];if(jt(s)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+c+"'")})}})},G2=(l,o)=>{const c={},s=f=>{f.forEach(h=>{c[h]=!0})};return cl(l)?s(l):s(String(l).split(o)),c},Y2=()=>{},V2=(l,o)=>l!=null&&Number.isFinite(l=+l)?l:o;function X2(l){return!!(l&&jt(l.append)&&l[Jm]==="FormData"&&l[no])}const Q2=l=>{const o=new Array(10),c=(s,f)=>{if(mi(s)){if(o.indexOf(s)>=0)return;if(pi(s))return s;if(!("toJSON"in s)){o[f]=s;const h=cl(s)?[]:{};return gi(s,(p,x)=>{const b=c(p,f+1);!rl(b)&&(h[x]=b)}),o[f]=void 0,h}}return s};return c(l,0)},Z2=$t("AsyncFunction"),F2=l=>l&&(mi(l)||jt(l))&&jt(l.then)&&jt(l.catch),t0=((l,o)=>l?setImmediate:o?((c,s)=>(yn.addEventListener("message",({source:f,data:h})=>{f===yn&&h===c&&s.length&&s.shift()()},!1),f=>{s.push(f),yn.postMessage(c,"*")}))(`axios@${Math.random()}`,[]):c=>setTimeout(c))(typeof setImmediate=="function",jt(yn.postMessage)),K2=typeof queueMicrotask<"u"?queueMicrotask.bind(yn):typeof process<"u"&&process.nextTick||t0,J2=l=>l!=null&&jt(l[no]),N={isArray:cl,isArrayBuffer:Wm,isBuffer:pi,isFormData:S2,isArrayBufferView:d2,isString:h2,isNumber:$m,isBoolean:p2,isObject:mi,isPlainObject:Xr,isEmptyObject:m2,isReadableStream:E2,isRequest:A2,isResponse:R2,isHeaders:z2,isUndefined:rl,isDate:g2,isFile:y2,isBlob:x2,isRegExp:L2,isFunction:jt,isStream:b2,isURLSearchParams:j2,isTypedArray:k2,isFileList:v2,forEach:gi,merge:Pu,extend:C2,trim:T2,stripBOM:w2,inherits:_2,toFlatObject:O2,kindOf:lo,kindOfTest:$t,endsWith:M2,toArray:D2,forEachEntry:B2,matchAll:N2,isHTMLForm:H2,hasOwnProperty:Jp,hasOwnProp:Jp,reduceDescriptors:e0,freezeMethods:q2,toObjectSet:G2,toCamelCase:U2,noop:Y2,toFiniteNumber:V2,findKey:Im,global:yn,isContextDefined:Pm,isSpecCompliantForm:X2,toJSONObject:Q2,isAsyncFn:Z2,isThenable:F2,setImmediate:t0,asap:K2,isIterable:J2};let re=class a0 extends Error{static from(o,c,s,f,h,p){const x=new a0(o.message,c||o.code,s,f,h);return x.cause=o,x.name=o.name,p&&Object.assign(x,p),x}constructor(o,c,s,f,h){super(o),this.name="AxiosError",this.isAxiosError=!0,c&&(this.code=c),s&&(this.config=s),f&&(this.request=f),h&&(this.response=h,this.status=h.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.status}}};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 W2=null;function ec(l){return N.isPlainObject(l)||N.isArray(l)}function n0(l){return N.endsWith(l,"[]")?l.slice(0,-2):l}function Wp(l,o,c){return l?l.concat(o).map(function(f,h){return f=n0(f),!c&&h?"["+f+"]":f}).join(c?".":""):o}function $2(l){return N.isArray(l)&&!l.some(ec)}const I2=N.toFlatObject(N,{},null,function(o){return/^is[A-Z]/.test(o)});function ro(l,o,c){if(!N.isObject(l))throw new TypeError("target must be an object");o=o||new FormData,c=N.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,w){return!N.isUndefined(w[C])});const s=c.metaTokens,f=c.visitor||v,h=c.dots,p=c.indexes,b=(c.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(o);if(!N.isFunction(f))throw new TypeError("visitor must be a function");function g(R){if(R===null)return"";if(N.isDate(R))return R.toISOString();if(N.isBoolean(R))return R.toString();if(!b&&N.isBlob(R))throw new re("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(R)||N.isTypedArray(R)?b&&typeof Blob=="function"?new Blob([R]):Buffer.from(R):R}function v(R,C,w){let Y=R;if(R&&!w&&typeof R=="object"){if(N.endsWith(C,"{}"))C=s?C:C.slice(0,-2),R=JSON.stringify(R);else if(N.isArray(R)&&$2(R)||(N.isFileList(R)||N.endsWith(C,"[]"))&&(Y=N.toArray(R)))return C=n0(C),Y.forEach(function(X,le){!(N.isUndefined(X)||X===null)&&o.append(p===!0?Wp([C],le,h):p===null?C:C+"[]",g(X))}),!1}return ec(R)?!0:(o.append(Wp(w,C,h),g(R)),!1)}const y=[],D=Object.assign(I2,{defaultVisitor:v,convertValue:g,isVisitable:ec});function A(R,C){if(!N.isUndefined(R)){if(y.indexOf(R)!==-1)throw Error("Circular reference detected in "+C.join("."));y.push(R),N.forEach(R,function(Y,I){(!(N.isUndefined(Y)||Y===null)&&f.call(o,Y,N.isString(I)?I.trim():I,C,D))===!0&&A(Y,C?C.concat(I):[I])}),y.pop()}}if(!N.isObject(l))throw new TypeError("data must be an object");return A(l),o}function $p(l){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(l).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function gc(l,o){this._pairs=[],l&&ro(l,this,o)}const l0=gc.prototype;l0.append=function(o,c){this._pairs.push([o,c])};l0.toString=function(o){const c=o?function(s){return o.call(this,s,$p)}:$p;return this._pairs.map(function(f){return c(f[0])+"="+c(f[1])},"").join("&")};function P2(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function i0(l,o,c){if(!o)return l;const s=c&&c.encode||P2,f=N.isFunction(c)?{serialize:c}:c,h=f&&f.serialize;let p;if(h?p=h(o,f):p=N.isURLSearchParams(o)?o.toString():new gc(o,f).toString(s),p){const x=l.indexOf("#");x!==-1&&(l=l.slice(0,x)),l+=(l.indexOf("?")===-1?"?":"&")+p}return l}class Ip{constructor(){this.handlers=[]}use(o,c,s){return this.handlers.push({fulfilled:o,rejected:c,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){N.forEach(this.handlers,function(s){s!==null&&o(s)})}}const yc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},eb=typeof URLSearchParams<"u"?URLSearchParams:gc,tb=typeof FormData<"u"?FormData:null,ab=typeof Blob<"u"?Blob:null,nb={isBrowser:!0,classes:{URLSearchParams:eb,FormData:tb,Blob:ab},protocols:["http","https","file","blob","url","data"]},xc=typeof window<"u"&&typeof document<"u",tc=typeof navigator=="object"&&navigator||void 0,lb=xc&&(!tc||["ReactNative","NativeScript","NS"].indexOf(tc.product)<0),ib=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rb=xc&&window.location.href||"http://localhost",ob=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xc,hasStandardBrowserEnv:lb,hasStandardBrowserWebWorkerEnv:ib,navigator:tc,origin:rb},Symbol.toStringTag,{value:"Module"})),ht={...ob,...nb};function sb(l,o){return ro(l,new ht.classes.URLSearchParams,{visitor:function(c,s,f,h){return ht.isNode&&N.isBuffer(c)?(this.append(s,c.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...o})}function ub(l){return N.matchAll(/\w+|\[(\w*)]/g,l).map(o=>o[0]==="[]"?"":o[1]||o[0])}function cb(l){const o={},c=Object.keys(l);let s;const f=c.length;let h;for(s=0;s<f;s++)h=c[s],o[h]=l[h];return o}function r0(l){function o(c,s,f,h){let p=c[h++];if(p==="__proto__")return!0;const x=Number.isFinite(+p),b=h>=c.length;return p=!p&&N.isArray(f)?f.length:p,b?(N.hasOwnProp(f,p)?f[p]=[f[p],s]:f[p]=s,!x):((!f[p]||!N.isObject(f[p]))&&(f[p]=[]),o(c,s,f[p],h)&&N.isArray(f[p])&&(f[p]=cb(f[p])),!x)}if(N.isFormData(l)&&N.isFunction(l.entries)){const c={};return N.forEachEntry(l,(s,f)=>{o(ub(s),f,c,0)}),c}return null}function fb(l,o,c){if(N.isString(l))try{return(o||JSON.parse)(l),N.trim(l)}catch(s){if(s.name!=="SyntaxError")throw s}return(c||JSON.stringify)(l)}const yi={transitional:yc,adapter:["xhr","http","fetch"],transformRequest:[function(o,c){const s=c.getContentType()||"",f=s.indexOf("application/json")>-1,h=N.isObject(o);if(h&&N.isHTMLForm(o)&&(o=new FormData(o)),N.isFormData(o))return f?JSON.stringify(r0(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 c.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let x;if(h){if(s.indexOf("application/x-www-form-urlencoded")>-1)return sb(o,this.formSerializer).toString();if((x=N.isFileList(o))||s.indexOf("multipart/form-data")>-1){const b=this.env&&this.env.FormData;return ro(x?{"files[]":o}:o,b&&new b,this.formSerializer)}}return h||f?(c.setContentType("application/json",!1),fb(o)):o}],transformResponse:[function(o){const c=this.transitional||yi.transitional,s=c&&c.forcedJSONParsing,f=this.responseType==="json";if(N.isResponse(o)||N.isReadableStream(o))return o;if(o&&N.isString(o)&&(s&&!this.responseType||f)){const p=!(c&&c.silentJSONParsing)&&f;try{return JSON.parse(o,this.parseReviver)}catch(x){if(p)throw x.name==="SyntaxError"?re.from(x,re.ERR_BAD_RESPONSE,this,null,this.response):x}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.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"],l=>{yi.headers[l]={}});const db=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"]),hb=l=>{const o={};let c,s,f;return l&&l.split(`
12
+ `).forEach(function(p){f=p.indexOf(":"),c=p.substring(0,f).trim().toLowerCase(),s=p.substring(f+1).trim(),!(!c||o[c]&&db[c])&&(c==="set-cookie"?o[c]?o[c].push(s):o[c]=[s]:o[c]=o[c]?o[c]+", "+s:s)}),o},Pp=Symbol("internals");function oi(l){return l&&String(l).trim().toLowerCase()}function Qr(l){return l===!1||l==null?l:N.isArray(l)?l.map(Qr):String(l)}function pb(l){const o=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=c.exec(l);)o[s[1]]=s[2];return o}const mb=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim());function Uu(l,o,c,s,f){if(N.isFunction(s))return s.call(this,o,c);if(f&&(o=c),!!N.isString(o)){if(N.isString(s))return o.indexOf(s)!==-1;if(N.isRegExp(s))return s.test(o)}}function gb(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,c,s)=>c.toUpperCase()+s)}function yb(l,o){const c=N.toCamelCase(" "+o);["get","set","has"].forEach(s=>{Object.defineProperty(l,s+c,{value:function(f,h,p){return this[s].call(this,o,f,h,p)},configurable:!0})})}let Et=class{constructor(o){o&&this.set(o)}set(o,c,s){const f=this;function h(x,b,g){const v=oi(b);if(!v)throw new Error("header name must be a non-empty string");const y=N.findKey(f,v);(!y||f[y]===void 0||g===!0||g===void 0&&f[y]!==!1)&&(f[y||b]=Qr(x))}const p=(x,b)=>N.forEach(x,(g,v)=>h(g,v,b));if(N.isPlainObject(o)||o instanceof this.constructor)p(o,c);else if(N.isString(o)&&(o=o.trim())&&!mb(o))p(hb(o),c);else if(N.isObject(o)&&N.isIterable(o)){let x={},b,g;for(const v of o){if(!N.isArray(v))throw TypeError("Object iterator must return a key-value pair");x[g=v[0]]=(b=x[g])?N.isArray(b)?[...b,v[1]]:[b,v[1]]:v[1]}p(x,c)}else o!=null&&h(c,o,s);return this}get(o,c){if(o=oi(o),o){const s=N.findKey(this,o);if(s){const f=this[s];if(!c)return f;if(c===!0)return pb(f);if(N.isFunction(c))return c.call(this,f,s);if(N.isRegExp(c))return c.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,c){if(o=oi(o),o){const s=N.findKey(this,o);return!!(s&&this[s]!==void 0&&(!c||Uu(this,this[s],s,c)))}return!1}delete(o,c){const s=this;let f=!1;function h(p){if(p=oi(p),p){const x=N.findKey(s,p);x&&(!c||Uu(s,s[x],x,c))&&(delete s[x],f=!0)}}return N.isArray(o)?o.forEach(h):h(o),f}clear(o){const c=Object.keys(this);let s=c.length,f=!1;for(;s--;){const h=c[s];(!o||Uu(this,this[h],h,o,!0))&&(delete this[h],f=!0)}return f}normalize(o){const c=this,s={};return N.forEach(this,(f,h)=>{const p=N.findKey(s,h);if(p){c[p]=Qr(f),delete c[h];return}const x=o?gb(h):String(h).trim();x!==h&&delete c[h],c[x]=Qr(f),s[x]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const c=Object.create(null);return N.forEach(this,(s,f)=>{s!=null&&s!==!1&&(c[f]=o&&N.isArray(s)?s.join(", "):s)}),c}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,c])=>o+": "+c).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,...c){const s=new this(o);return c.forEach(f=>s.set(f)),s}static accessor(o){const s=(this[Pp]=this[Pp]={accessors:{}}).accessors,f=this.prototype;function h(p){const x=oi(p);s[x]||(yb(f,p),s[x]=!0)}return N.isArray(o)?o.forEach(h):h(o),this}};Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(Et.prototype,({value:l},o)=>{let c=o[0].toUpperCase()+o.slice(1);return{get:()=>l,set(s){this[c]=s}}});N.freezeMethods(Et);function Lu(l,o){const c=this||yi,s=o||c,f=Et.from(s.headers);let h=s.data;return N.forEach(l,function(x){h=x.call(c,h,f.normalize(),o?o.status:void 0)}),f.normalize(),h}function o0(l){return!!(l&&l.__CANCEL__)}let xi=class extends re{constructor(o,c,s){super(o??"canceled",re.ERR_CANCELED,c,s),this.name="CanceledError",this.__CANCEL__=!0}};function s0(l,o,c){const s=c.config.validateStatus;!c.status||!s||s(c.status)?l(c):o(new re("Request failed with status code "+c.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}function xb(l){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l);return o&&o[1]||""}function vb(l,o){l=l||10;const c=new Array(l),s=new Array(l);let f=0,h=0,p;return o=o!==void 0?o:1e3,function(b){const g=Date.now(),v=s[h];p||(p=g),c[f]=b,s[f]=g;let y=h,D=0;for(;y!==f;)D+=c[y++],y=y%l;if(f=(f+1)%l,f===h&&(h=(h+1)%l),g-p<o)return;const A=v&&g-v;return A?Math.round(D*1e3/A):void 0}}function bb(l,o){let c=0,s=1e3/o,f,h;const p=(g,v=Date.now())=>{c=v,f=null,h&&(clearTimeout(h),h=null),l(...g)};return[(...g)=>{const v=Date.now(),y=v-c;y>=s?p(g,v):(f=g,h||(h=setTimeout(()=>{h=null,p(f)},s-y)))},()=>f&&p(f)]}const $r=(l,o,c=3)=>{let s=0;const f=vb(50,250);return bb(h=>{const p=h.loaded,x=h.lengthComputable?h.total:void 0,b=p-s,g=f(b),v=p<=x;s=p;const y={loaded:p,total:x,progress:x?p/x:void 0,bytes:b,rate:g||void 0,estimated:g&&x&&v?(x-p)/g:void 0,event:h,lengthComputable:x!=null,[o?"download":"upload"]:!0};l(y)},c)},em=(l,o)=>{const c=l!=null;return[s=>o[0]({lengthComputable:c,total:l,loaded:s}),o[1]]},tm=l=>(...o)=>N.asap(()=>l(...o)),Sb=ht.hasStandardBrowserEnv?((l,o)=>c=>(c=new URL(c,ht.origin),l.protocol===c.protocol&&l.host===c.host&&(o||l.port===c.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,jb=ht.hasStandardBrowserEnv?{write(l,o,c,s,f,h,p){if(typeof document>"u")return;const x=[`${l}=${encodeURIComponent(o)}`];N.isNumber(c)&&x.push(`expires=${new Date(c).toUTCString()}`),N.isString(s)&&x.push(`path=${s}`),N.isString(f)&&x.push(`domain=${f}`),h===!0&&x.push("secure"),N.isString(p)&&x.push(`SameSite=${p}`),document.cookie=x.join("; ")},read(l){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+l+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(l){this.write(l,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Eb(l){return typeof l!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(l)}function Ab(l,o){return o?l.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):l}function u0(l,o,c){let s=!Eb(o);return l&&(s||c==!1)?Ab(l,o):o}const am=l=>l instanceof Et?{...l}:l;function vn(l,o){o=o||{};const c={};function s(g,v,y,D){return N.isPlainObject(g)&&N.isPlainObject(v)?N.merge.call({caseless:D},g,v):N.isPlainObject(v)?N.merge({},v):N.isArray(v)?v.slice():v}function f(g,v,y,D){if(N.isUndefined(v)){if(!N.isUndefined(g))return s(void 0,g,y,D)}else return s(g,v,y,D)}function h(g,v){if(!N.isUndefined(v))return s(void 0,v)}function p(g,v){if(N.isUndefined(v)){if(!N.isUndefined(g))return s(void 0,g)}else return s(void 0,v)}function x(g,v,y){if(y in o)return s(g,v);if(y in l)return s(void 0,g)}const b={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:x,headers:(g,v,y)=>f(am(g),am(v),y,!0)};return N.forEach(Object.keys({...l,...o}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const y=N.hasOwnProp(b,v)?b[v]:f,D=y(l[v],o[v],v);N.isUndefined(D)&&y!==x||(c[v]=D)}),c}const c0=l=>{const o=vn({},l);let{data:c,withXSRFToken:s,xsrfHeaderName:f,xsrfCookieName:h,headers:p,auth:x}=o;if(o.headers=p=Et.from(p),o.url=i0(u0(o.baseURL,o.url,o.allowAbsoluteUrls),l.params,l.paramsSerializer),x&&p.set("Authorization","Basic "+btoa((x.username||"")+":"+(x.password?unescape(encodeURIComponent(x.password)):""))),N.isFormData(c)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(N.isFunction(c.getHeaders)){const b=c.getHeaders(),g=["content-type","content-length"];Object.entries(b).forEach(([v,y])=>{g.includes(v.toLowerCase())&&p.set(v,y)})}}if(ht.hasStandardBrowserEnv&&(s&&N.isFunction(s)&&(s=s(o)),s||s!==!1&&Sb(o.url))){const b=f&&h&&jb.read(h);b&&p.set(f,b)}return o},Rb=typeof XMLHttpRequest<"u",zb=Rb&&function(l){return new Promise(function(c,s){const f=c0(l);let h=f.data;const p=Et.from(f.headers).normalize();let{responseType:x,onUploadProgress:b,onDownloadProgress:g}=f,v,y,D,A,R;function C(){A&&A(),R&&R(),f.cancelToken&&f.cancelToken.unsubscribe(v),f.signal&&f.signal.removeEventListener("abort",v)}let w=new XMLHttpRequest;w.open(f.method.toUpperCase(),f.url,!0),w.timeout=f.timeout;function Y(){if(!w)return;const X=Et.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),ue={data:!x||x==="text"||x==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:X,config:l,request:w};s0(function(K){c(K),C()},function(K){s(K),C()},ue),w=null}"onloadend"in w?w.onloadend=Y:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(Y)},w.onabort=function(){w&&(s(new re("Request aborted",re.ECONNABORTED,l,w)),w=null)},w.onerror=function(le){const ue=le&&le.message?le.message:"Network Error",me=new re(ue,re.ERR_NETWORK,l,w);me.event=le||null,s(me),w=null},w.ontimeout=function(){let le=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const ue=f.transitional||yc;f.timeoutErrorMessage&&(le=f.timeoutErrorMessage),s(new re(le,ue.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,l,w)),w=null},h===void 0&&p.setContentType(null),"setRequestHeader"in w&&N.forEach(p.toJSON(),function(le,ue){w.setRequestHeader(ue,le)}),N.isUndefined(f.withCredentials)||(w.withCredentials=!!f.withCredentials),x&&x!=="json"&&(w.responseType=f.responseType),g&&([D,R]=$r(g,!0),w.addEventListener("progress",D)),b&&w.upload&&([y,A]=$r(b),w.upload.addEventListener("progress",y),w.upload.addEventListener("loadend",A)),(f.cancelToken||f.signal)&&(v=X=>{w&&(s(!X||X.type?new xi(null,l,w):X),w.abort(),w=null)},f.cancelToken&&f.cancelToken.subscribe(v),f.signal&&(f.signal.aborted?v():f.signal.addEventListener("abort",v)));const I=xb(f.url);if(I&&ht.protocols.indexOf(I)===-1){s(new re("Unsupported protocol "+I+":",re.ERR_BAD_REQUEST,l));return}w.send(h||null)})},Tb=(l,o)=>{const{length:c}=l=l?l.filter(Boolean):[];if(o||c){let s=new AbortController,f;const h=function(g){if(!f){f=!0,x();const v=g instanceof Error?g:this.reason;s.abort(v instanceof re?v:new xi(v instanceof Error?v.message:v))}};let p=o&&setTimeout(()=>{p=null,h(new re(`timeout of ${o}ms exceeded`,re.ETIMEDOUT))},o);const x=()=>{l&&(p&&clearTimeout(p),p=null,l.forEach(g=>{g.unsubscribe?g.unsubscribe(h):g.removeEventListener("abort",h)}),l=null)};l.forEach(g=>g.addEventListener("abort",h));const{signal:b}=s;return b.unsubscribe=()=>N.asap(x),b}},Cb=function*(l,o){let c=l.byteLength;if(c<o){yield l;return}let s=0,f;for(;s<c;)f=s+o,yield l.slice(s,f),s=f},wb=async function*(l,o){for await(const c of _b(l))yield*Cb(c,o)},_b=async function*(l){if(l[Symbol.asyncIterator]){yield*l;return}const o=l.getReader();try{for(;;){const{done:c,value:s}=await o.read();if(c)break;yield s}}finally{await o.cancel()}},nm=(l,o,c,s)=>{const f=wb(l,o);let h=0,p,x=b=>{p||(p=!0,s&&s(b))};return new ReadableStream({async pull(b){try{const{done:g,value:v}=await f.next();if(g){x(),b.close();return}let y=v.byteLength;if(c){let D=h+=y;c(D)}b.enqueue(new Uint8Array(v))}catch(g){throw x(g),g}},cancel(b){return x(b),f.return()}},{highWaterMark:2})},lm=64*1024,{isFunction:Lr}=N,Ob=(({Request:l,Response:o})=>({Request:l,Response:o}))(N.global),{ReadableStream:im,TextEncoder:rm}=N.global,om=(l,...o)=>{try{return!!l(...o)}catch{return!1}},Mb=l=>{l=N.merge.call({skipUndefined:!0},Ob,l);const{fetch:o,Request:c,Response:s}=l,f=o?Lr(o):typeof fetch=="function",h=Lr(c),p=Lr(s);if(!f)return!1;const x=f&&Lr(im),b=f&&(typeof rm=="function"?(R=>C=>R.encode(C))(new rm):async R=>new Uint8Array(await new c(R).arrayBuffer())),g=h&&x&&om(()=>{let R=!1;const C=new c(ht.origin,{body:new im,method:"POST",get duplex(){return R=!0,"half"}}).headers.has("Content-Type");return R&&!C}),v=p&&x&&om(()=>N.isReadableStream(new s("").body)),y={stream:v&&(R=>R.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(R=>{!y[R]&&(y[R]=(C,w)=>{let Y=C&&C[R];if(Y)return Y.call(C);throw new re(`Response type '${R}' is not supported`,re.ERR_NOT_SUPPORT,w)})});const D=async R=>{if(R==null)return 0;if(N.isBlob(R))return R.size;if(N.isSpecCompliantForm(R))return(await new c(ht.origin,{method:"POST",body:R}).arrayBuffer()).byteLength;if(N.isArrayBufferView(R)||N.isArrayBuffer(R))return R.byteLength;if(N.isURLSearchParams(R)&&(R=R+""),N.isString(R))return(await b(R)).byteLength},A=async(R,C)=>{const w=N.toFiniteNumber(R.getContentLength());return w??D(C)};return async R=>{let{url:C,method:w,data:Y,signal:I,cancelToken:X,timeout:le,onDownloadProgress:ue,onUploadProgress:me,responseType:K,headers:we,withCredentials:De="same-origin",fetchOptions:it}=c0(R),We=o||fetch;K=K?(K+"").toLowerCase():"text";let Z=Tb([I,X&&X.toAbortSignal()],le),fe=null;const xe=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let _e;try{if(me&&g&&w!=="get"&&w!=="head"&&(_e=await A(we,Y))!==0){let S=new c(C,{method:"POST",body:Y,duplex:"half"}),B;if(N.isFormData(Y)&&(B=S.headers.get("content-type"))&&we.setContentType(B),S.body){const[G,V]=em(_e,$r(tm(me)));Y=nm(S.body,lm,G,V)}}N.isString(De)||(De=De?"include":"omit");const k=h&&"credentials"in c.prototype,Q={...it,signal:Z,method:w.toUpperCase(),headers:we.normalize().toJSON(),body:Y,duplex:"half",credentials:k?De:void 0};fe=h&&new c(C,Q);let te=await(h?We(fe,it):We(C,Q));const Ae=v&&(K==="stream"||K==="response");if(v&&(ue||Ae&&xe)){const S={};["status","statusText","headers"].forEach($=>{S[$]=te[$]});const B=N.toFiniteNumber(te.headers.get("content-length")),[G,V]=ue&&em(B,$r(tm(ue),!0))||[];te=new s(nm(te.body,lm,G,()=>{V&&V(),xe&&xe()}),S)}K=K||"text";let F=await y[N.findKey(y,K)||"text"](te,R);return!Ae&&xe&&xe(),await new Promise((S,B)=>{s0(S,B,{data:F,headers:Et.from(te.headers),status:te.status,statusText:te.statusText,config:R,request:fe})})}catch(k){throw xe&&xe(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,R,fe,k&&k.response),{cause:k.cause||k}):re.from(k,k&&k.code,R,fe,k&&k.response)}}},Db=new Map,f0=l=>{let o=l&&l.env||{};const{fetch:c,Request:s,Response:f}=o,h=[s,f,c];let p=h.length,x=p,b,g,v=Db;for(;x--;)b=h[x],g=v.get(b),g===void 0&&v.set(b,g=x?new Map:Mb(o)),v=g;return g};f0();const vc={http:W2,xhr:zb,fetch:{get:f0}};N.forEach(vc,(l,o)=>{if(l){try{Object.defineProperty(l,"name",{value:o})}catch{}Object.defineProperty(l,"adapterName",{value:o})}});const sm=l=>`- ${l}`,kb=l=>N.isFunction(l)||l===null||l===!1;function Bb(l,o){l=N.isArray(l)?l:[l];const{length:c}=l;let s,f;const h={};for(let p=0;p<c;p++){s=l[p];let x;if(f=s,!kb(s)&&(f=vc[(x=String(s)).toLowerCase()],f===void 0))throw new re(`Unknown adapter '${x}'`);if(f&&(N.isFunction(f)||(f=f.get(o))))break;h[x||"#"+p]=f}if(!f){const p=Object.entries(h).map(([b,g])=>`adapter ${b} `+(g===!1?"is not supported by the environment":"is not available in the build"));let x=c?p.length>1?`since :
14
+ `+p.map(sm).join(`
15
+ `):" "+sm(p[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+x,"ERR_NOT_SUPPORT")}return f}const d0={getAdapter:Bb,adapters:vc};function qu(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new xi(null,l)}function um(l){return qu(l),l.headers=Et.from(l.headers),l.data=Lu.call(l,l.transformRequest),["post","put","patch"].indexOf(l.method)!==-1&&l.headers.setContentType("application/x-www-form-urlencoded",!1),d0.getAdapter(l.adapter||yi.adapter,l)(l).then(function(s){return qu(l),s.data=Lu.call(l,l.transformResponse,s),s.headers=Et.from(s.headers),s},function(s){return o0(s)||(qu(l),s&&s.response&&(s.response.data=Lu.call(l,l.transformResponse,s.response),s.response.headers=Et.from(s.response.headers))),Promise.reject(s)})}const h0="1.13.5",oo={};["object","boolean","number","function","string","symbol"].forEach((l,o)=>{oo[l]=function(s){return typeof s===l||"a"+(o<1?"n ":" ")+l}});const cm={};oo.transitional=function(o,c,s){function f(h,p){return"[Axios v"+h0+"] Transitional option '"+h+"'"+p+(s?". "+s:"")}return(h,p,x)=>{if(o===!1)throw new re(f(p," has been removed"+(c?" in "+c:"")),re.ERR_DEPRECATED);return c&&!cm[p]&&(cm[p]=!0,console.warn(f(p," has been deprecated since v"+c+" and will be removed in the near future"))),o?o(h,p,x):!0}};oo.spelling=function(o){return(c,s)=>(console.warn(`${s} is likely a misspelling of ${o}`),!0)};function Nb(l,o,c){if(typeof l!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const s=Object.keys(l);let f=s.length;for(;f-- >0;){const h=s[f],p=o[h];if(p){const x=l[h],b=x===void 0||p(x,h,l);if(b!==!0)throw new re("option "+h+" must be "+b,re.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new re("Unknown option "+h,re.ERR_BAD_OPTION)}}const Zr={assertOptions:Nb,validators:oo},Qt=Zr.validators;let xn=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Ip,response:new Ip}}async request(o,c){try{return await this._request(o,c)}catch(s){if(s instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const h=f.stack?f.stack.replace(/^.+\n/,""):"";try{s.stack?h&&!String(s.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(s.stack+=`
16
+ `+h):s.stack=h}catch{}}throw s}}_request(o,c){typeof o=="string"?(c=c||{},c.url=o):c=o||{},c=vn(this.defaults,c);const{transitional:s,paramsSerializer:f,headers:h}=c;s!==void 0&&Zr.assertOptions(s,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean),legacyInterceptorReqResOrdering:Qt.transitional(Qt.boolean)},!1),f!=null&&(N.isFunction(f)?c.paramsSerializer={serialize:f}:Zr.assertOptions(f,{encode:Qt.function,serialize:Qt.function},!0)),c.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?c.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:c.allowAbsoluteUrls=!0),Zr.assertOptions(c,{baseUrl:Qt.spelling("baseURL"),withXsrfToken:Qt.spelling("withXSRFToken")},!0),c.method=(c.method||this.defaults.method||"get").toLowerCase();let p=h&&N.merge(h.common,h[c.method]);h&&N.forEach(["delete","get","head","post","put","patch","common"],R=>{delete h[R]}),c.headers=Et.concat(p,h);const x=[];let b=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(c)===!1)return;b=b&&C.synchronous;const w=c.transitional||yc;w&&w.legacyInterceptorReqResOrdering?x.unshift(C.fulfilled,C.rejected):x.push(C.fulfilled,C.rejected)});const g=[];this.interceptors.response.forEach(function(C){g.push(C.fulfilled,C.rejected)});let v,y=0,D;if(!b){const R=[um.bind(this),void 0];for(R.unshift(...x),R.push(...g),D=R.length,v=Promise.resolve(c);y<D;)v=v.then(R[y++],R[y++]);return v}D=x.length;let A=c;for(;y<D;){const R=x[y++],C=x[y++];try{A=R(A)}catch(w){C.call(this,w);break}}try{v=um.call(this,A)}catch(R){return Promise.reject(R)}for(y=0,D=g.length;y<D;)v=v.then(g[y++],g[y++]);return v}getUri(o){o=vn(this.defaults,o);const c=u0(o.baseURL,o.url,o.allowAbsoluteUrls);return i0(c,o.params,o.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(o){xn.prototype[o]=function(c,s){return this.request(vn(s||{},{method:o,url:c,data:(s||{}).data}))}});N.forEach(["post","put","patch"],function(o){function c(s){return function(h,p,x){return this.request(vn(x||{},{method:o,headers:s?{"Content-Type":"multipart/form-data"}:{},url:h,data:p}))}}xn.prototype[o]=c(),xn.prototype[o+"Form"]=c(!0)});let Hb=class p0{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(h){c=h});const s=this;this.promise.then(f=>{if(!s._listeners)return;let h=s._listeners.length;for(;h-- >0;)s._listeners[h](f);s._listeners=null}),this.promise.then=f=>{let h;const p=new Promise(x=>{s.subscribe(x),h=x}).then(f);return p.cancel=function(){s.unsubscribe(h)},p},o(function(h,p,x){s.reason||(s.reason=new xi(h,p,x),c(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const c=this._listeners.indexOf(o);c!==-1&&this._listeners.splice(c,1)}toAbortSignal(){const o=new AbortController,c=s=>{o.abort(s)};return this.subscribe(c),o.signal.unsubscribe=()=>this.unsubscribe(c),o.signal}static source(){let o;return{token:new p0(function(f){o=f}),cancel:o}}};function Ub(l){return function(c){return l.apply(null,c)}}function Lb(l){return N.isObject(l)&&l.isAxiosError===!0}const ac={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(ac).forEach(([l,o])=>{ac[o]=l});function m0(l){const o=new xn(l),c=Km(xn.prototype.request,o);return N.extend(c,xn.prototype,o,{allOwnKeys:!0}),N.extend(c,o,null,{allOwnKeys:!0}),c.create=function(f){return m0(vn(l,f))},c}const Je=m0(yi);Je.Axios=xn;Je.CanceledError=xi;Je.CancelToken=Hb;Je.isCancel=o0;Je.VERSION=h0;Je.toFormData=ro;Je.AxiosError=re;Je.Cancel=Je.CanceledError;Je.all=function(o){return Promise.all(o)};Je.spread=Ub;Je.isAxiosError=Lb;Je.mergeConfig=vn;Je.AxiosHeaders=Et;Je.formToJSON=l=>r0(N.isHTMLForm(l)?new FormData(l):l);Je.getAdapter=d0.getAdapter;Je.HttpStatusCode=ac;Je.default=Je;const{Axios:mS,AxiosError:gS,CanceledError:yS,isCancel:xS,CancelToken:vS,VERSION:bS,all:SS,Cancel:jS,isAxiosError:ES,spread:AS,toFormData:RS,AxiosHeaders:zS,HttpStatusCode:TS,formToJSON:CS,getAdapter:wS,mergeConfig:_S}=Je,g0="/api",He=Je.create({baseURL:g0,headers:{"Content-Type":"application/json"}});He.interceptors.request.use(l=>{const o=localStorage.getItem("samarthya_token");return o&&(l.headers.Authorization=`Bearer ${o}`),l});const bc={register:l=>He.post("/auth/register",l),login:l=>He.post("/auth/login",l),demoLogin:()=>He.post("/auth/demo"),getProfile:()=>He.get("/auth/profile"),updateProfile:l=>He.put("/auth/profile",l)},si={sendMessage:l=>He.post("/chat/message",l),getConversations:()=>He.get("/chat/conversations"),getConversation:l=>He.get(`/chat/conversations/${l}`),deleteConversation:l=>He.delete(`/chat/conversations/${l}`),togglePin:l=>He.patch(`/chat/conversations/${l}/pin`)},Fr={getLogs:l=>He.get("/audit/logs",{params:l}),getStats:()=>He.get("/audit/stats"),rollback:l=>He.post(`/audit/rollback/${l}`)},Gu={getAll:()=>He.get("/tools"),getPacks:()=>He.get("/tools/packs"),getPackTools:l=>He.get(`/tools/packs/${l}`)},qb={analyze:(l,o)=>He.post("/screen/analyze",{image:l,prompt:o}),getSupported:()=>He.get("/screen/supported")},gn={list:l=>He.get("/files/list",{params:{path:l}}),read:l=>He.get("/files/read",{params:{path:l}}),download:l=>`${g0}/files/download?path=${encodeURIComponent(l)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(l,o)=>He.post("/files/mkdir",{name:l,parentPath:o}),upload:(l,o,c)=>He.post("/files/upload",{filename:l,content:o,parentPath:c}),deleteFile:l=>He.delete("/files/delete",{params:{path:l}}),getStats:()=>He.get("/files/stats")},Yu={getStatus:()=>He.get("/platform/status"),getJobs:()=>He.get("/platform/jobs"),emergencyStop:()=>He.post("/platform/emergency-stop")},Gb=[{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"}],Yb=l=>{if(!l)return"";const o=new Date(l);return isNaN(o)?"":o.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},Vb=l=>{const o={};return l.forEach(c=>{const s=c.createdAt?new Date(c.createdAt):new Date;if(isNaN(s))return;const f=new Date,h=new Date;h.setDate(f.getDate()-1);let p;s.toDateString()===f.toDateString()?p="Today":s.toDateString()===h.toDateString()?p="Yesterday":p=s.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),o[p]||(o[p]=[]),o[p].push(c)}),o},fm=l=>l?l.split(`
17
+ `).map((o,c)=>{const s=[];let f=o;const h=/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/;let p;for(;(p=h.exec(f))!==null;){if(p.index>0){const x=f.substring(0,p.index);s.push(u.jsx("span",{children:x.replace(/\*\*/g,"")},`t-${p.index}`))}s.push(u.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 x=f;x.startsWith("- ")&&(x="• "+x.substring(2)),s.push(u.jsx("span",{children:x.replace(/\*\*/g,"")},`end-${c}`))}return u.jsxs(Ir.Fragment,{children:[s.length>0?s:u.jsx("span",{children:o.replace(/\*\*/g,"")}),u.jsx("br",{})]},c)}):null;function dm({user:l}){const[o,c]=z.useState([]),[s,f]=z.useState(null),[h,p]=z.useState([]),[x,b]=z.useState(""),[g,v]=z.useState(!1),[y,D]=z.useState(!1),[A,R]=z.useState(!1),[C,w]=z.useState(!1),[Y,I]=z.useState(null),X=z.useRef(null),le=z.useRef(null),[ue,me]=z.useState(""),K=z.useRef(null),we=z.useRef(null),De=z.useRef(null);z.useEffect(()=>{"Notification"in window&&Notification.permission!=="granted"&&Notification.permission!=="denied"&&Notification.requestPermission()},[]);const it=F=>{const S=F||"Reminder";"Notification"in window&&Notification.permission==="granted"&&new Notification("⏰ Reminder from SamarthyaBot",{body:S});const B=window.AudioContext||window.webkitAudioContext;if(B){X.current=new B;const G=X.current.createOscillator(),V=X.current.createGain();G.type="triangle",G.frequency.setValueAtTime(600,X.current.currentTime),setInterval(()=>{le.current&&X.current&&(G.frequency.setValueAtTime(800,X.current.currentTime),G.frequency.exponentialRampToValueAtTime(400,X.current.currentTime+.3))},500),V.gain.value=.1,G.connect(V),V.connect(X.current.destination),G.start(),le.current=G}I(S)},We=()=>{I(null),le.current&&(le.current.stop(),le.current=null),X.current&&(X.current.close(),X.current=null)};z.useEffect(()=>(xe(),Z(),()=>{K.current&&K.current.abort()}),[]),z.useEffect(()=>{we.current?.scrollIntoView({behavior:"smooth"})},[h]);const Z=()=>{const F=window.SpeechRecognition||window.webkitSpeechRecognition;if(!F)return;w(!0);const S=new F;S.continuous=!1,S.interimResults=!0,S.lang="hi-IN",S.maxAlternatives=1,S.onresult=B=>{let G="";for(let V=0;V<B.results.length;V++)G+=B.results[V][0].transcript;me(G),b(G),B.results[B.results.length-1].isFinal&&setTimeout(()=>{R(!1),G.trim()&&k(G.trim())},500)},S.onerror=B=>{console.error("Voice error:",B.error),R(!1)},S.onend=()=>{R(!1)},K.current=S},fe=()=>{K.current&&(A?(K.current.stop(),R(!1)):(me(""),K.current.lang=l?.language==="hindi"?"hi-IN":l?.language==="english"?"en-IN":"hi-IN",K.current.start(),R(!0)))},xe=async()=>{try{const F=await si.getConversations();c(F.data.conversations||[])}catch{console.error("Failed to load conversations")}},_e=async F=>{try{const S=await si.getConversation(F);f(S.data.conversation),p(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},k=async F=>{const S=F||x.trim();if(!S||g)return;b("");const B={role:"user",content:S,createdAt:new Date};p(G=>[...G,B]),v(!0),D(!0);try{const V=(await si.sendMessage({message:S,conversationId:s?._id})).data;s||(f({_id:V.conversationId}),xe());const $={role:"assistant",content:V.message.content,toolCalls:V.message.toolCalls,sensitiveDataWarnings:V.message.sensitiveDataWarnings,createdAt:new Date};p(oe=>[...oe,$]),$.toolCalls&&$.toolCalls.forEach(oe=>{if(oe.toolName==="reminder_set"&&oe.notificationParams){const{delayMs:Re,message:rt}=oe.notificationParams;setTimeout(()=>{it(rt)},Re||5e3)}})}catch{p(V=>[...V,{role:"assistant",content:l?.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{v(!1),D(!1),De.current?.focus()}},Q=()=>{f(null),p([]),De.current?.focus()},te=async(F,S)=>{S.stopPropagation();try{await si.deleteConversation(F),s?._id===F&&Q(),xe()}catch{console.error("Delete failed")}},Ae=F=>{F.key==="Enter"&&!F.shiftKey&&(F.preventDefault(),k())};return u.jsxs("div",{style:W.container,children:[Y&&u.jsx("div",{style:W.alarmPopupLayer,children:u.jsxs("div",{style:W.alarmBox,children:[u.jsx("div",{style:W.alarmIcon,children:"⏰"}),u.jsxs("div",{style:W.alarmContent,children:[u.jsx("h4",{style:W.alarmTitle,children:"Reminder"}),u.jsx("p",{style:W.alarmMessage,children:Y})]}),u.jsx("button",{onClick:We,style:W.alarmStopBtn,children:"Stop Alarm"})]})}),u.jsxs("div",{style:W.convSidebar,children:[u.jsxs("div",{style:W.convHeader,children:[u.jsx("h3",{style:W.convTitle,children:"💬 Conversations"}),u.jsx("button",{onClick:Q,style:W.newBtn,title:"New Chat",children:u.jsx(Nv,{size:18})})]}),u.jsxs("div",{style:W.convList,children:[o.map(F=>u.jsxs("button",{onClick:()=>_e(F._id),style:{...W.convItem,...s?._id===F._id?W.convItemActive:{}},children:[u.jsx("span",{style:W.convItemTitle,children:F.title}),u.jsx("div",{style:W.convActions,children:u.jsx("button",{onClick:S=>te(F._id,S),style:W.convDelBtn,children:u.jsx(Zm,{size:14})})})]},F._id)),o.length===0&&u.jsx("p",{style:W.emptyConv,children:l?.language==="english"?"No conversations found. Start a new one! 🚀":"Koi conversation nahi. Naya shuru karo! 🚀"})]})]}),u.jsxs("div",{style:W.chatArea,children:[A&&u.jsxs("div",{style:W.voiceOverlay,children:[u.jsx("div",{style:W.voicePulseRing,children:u.jsx(Xp,{size:36,color:"#FF9933"})}),u.jsx("p",{style:W.voiceText,children:ue||(l?.language==="hindi"?"बोलिए...":l?.language==="english"?"Listening...":"Bol rahe ho... sunna shuru")}),u.jsx("p",{style:W.voiceHint,children:"🎙️ Hindi, Hinglish & English voice supported"}),u.jsxs("button",{onClick:fe,style:W.voiceStopBtn,children:[u.jsx(Cv,{size:18})," Stop Listening"]})]}),u.jsxs("div",{style:W.messages,children:[h.length===0&&u.jsxs("div",{style:W.welcome,children:[u.jsx("div",{style:W.welcomeLogo,children:"स"}),u.jsxs("h2",{style:W.welcomeTitle,children:[l?.language==="english"?"Hello":"Namaste",", ",l?.name||"User","! 🙏"]}),u.jsx("p",{style:W.welcomeSubtitle,children:l?.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?"}),u.jsx("div",{style:W.quickActions,children:Gb.map((F,S)=>u.jsxs("button",{onClick:()=>k(l?.language==="english"?F.textEn:F.text),style:W.quickActionBtn,children:[u.jsx("span",{style:W.quickEmoji,children:F.emoji}),u.jsx("span",{children:l?.language==="english"?F.textEn:F.text})]},S))})]}),Object.entries(Vb(h)).map(([F,S],B)=>u.jsxs(Ir.Fragment,{children:[u.jsx("div",{style:W.dateDivider,children:u.jsx("span",{style:W.dateBadge,children:F})}),S.map((G,V)=>u.jsxs("div",{style:{...W.message,...G.role==="user"?W.userMessage:W.assistantMessage,animation:"fadeInUp 0.3s ease-out"},children:[u.jsx("div",{style:G.role==="user"?W.userAvatar:W.assistantAvatar,children:G.role==="user"?u.jsx(Fm,{size:16}):u.jsx(Ju,{size:16})}),u.jsxs("div",{style:W.messageContent,children:[G.sensitiveDataWarnings?.length>0&&u.jsxs("div",{style:W.warningBanner,children:[u.jsx(pc,{size:14}),u.jsxs("span",{children:["⚠️ Sensitive data detected: ",G.sensitiveDataWarnings.map($=>$.type).join(", ")]})]}),u.jsx("div",{style:W.messageText,children:fm(G.content)}),G.toolCalls?.length>0&&u.jsx("div",{style:W.toolCalls,children:G.toolCalls.map(($,oe)=>u.jsxs("div",{style:W.toolCall,children:[u.jsxs("div",{style:W.toolCallHeader,children:[u.jsxs("span",{style:{...W.toolBadge,background:$.status==="completed"?"rgba(16,185,129,0.15)":$.status==="blocked"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:$.status==="completed"?"#10b981":$.status==="blocked"?"#ef4444":"#f59e0b"},children:[$.status==="completed"?"✅":$.status==="blocked"?"🚫":"⏳"," ",$.toolName]}),u.jsxs("span",{style:W.toolRisk,children:["Risk: ",$.riskLevel]})]}),$.result&&u.jsx("div",{style:W.toolResult,children:fm($.result)})]},oe))}),u.jsx("div",{style:{...W.msgTime,color:G.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:Yb(G.createdAt)})]})]},`msg-${B}-${V}`))]},`group-${B}`)),y&&u.jsxs("div",{style:{...W.message,...W.assistantMessage},children:[u.jsx("div",{style:W.assistantAvatar,children:u.jsx(Ju,{size:16})}),u.jsxs("div",{style:W.typingIndicator,children:[u.jsx("span",{style:{...W.typingDot,animationDelay:"0s"}}),u.jsx("span",{style:{...W.typingDot,animationDelay:"0.2s"}}),u.jsx("span",{style:{...W.typingDot,animationDelay:"0.4s"}})]})]}),u.jsx("div",{ref:we})]}),u.jsxs("div",{style:W.inputArea,children:[u.jsxs("div",{style:W.inputWrap,children:[u.jsx("textarea",{ref:De,value:x,onChange:F=>b(F.target.value),onKeyDown:Ae,placeholder:l?.language==="hindi"?"यहां टाइप करें...":l?.language==="hinglish"?"Yahan type karo...":"Type your message...",style:W.textarea,rows:1,disabled:g}),u.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:F=>{F&&(F._screenInput=!0)},id:"screenInput",onChange:async F=>{const S=F.target.files?.[0];if(S){v(!0),p(B=>[...B,{role:"user",content:`📸 Screenshot uploaded: ${S.name}`,createdAt:new Date}]),D(!0);try{const B=new FileReader;B.onload=async()=>{const G=B.result,V=await qb.analyze(G,x.trim()||"Is screenshot mein kya hai? Next step batao.");p($=>[...$,{role:"assistant",content:`👁️ **Screen Analysis:**
18
+
19
+ ${V.data.analysis.content}`,createdAt:new Date}]),b("")},B.readAsDataURL(S)}catch{p(G=>[...G,{role:"assistant",content:l?.language==="english"?"❌ Screen analysis failed. Check the Gemini API key.":"❌ Screen analysis fail ho gaya. Gemini API key check karo.",createdAt:new Date}])}finally{v(!1),D(!1),F.target.value=""}}}}),u.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:W.voiceBtn,title:"Screenshot upload for AI analysis",children:u.jsx(qx,{size:20})}),C&&u.jsx("button",{onClick:fe,style:{...W.voiceBtn,...A?W.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:u.jsx(Xp,{size:20})}),u.jsx("button",{onClick:()=>k(),disabled:g||!x.trim(),style:{...W.sendBtn,opacity:g||!x.trim()?.5:1},children:g?u.jsx(Ev,{size:20,style:{animation:"spin 1s linear infinite"}}):u.jsx(Xv,{size:20})})]}),u.jsx("p",{style:W.inputHint,children:"🇮🇳 Hindi, Hinglish & English supported • Enter to send • Shift+Enter for new line"})]})]})]})}const W={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 Xb({user:l}){const o=to(),[c,s]=z.useState(null),[f,h]=z.useState(null),[p,x]=z.useState([]),[b,g]=z.useState([]),[v,y]=z.useState(!0);z.useEffect(()=>{A();const C=setInterval(()=>{D()},15e3);return()=>clearInterval(C)},[]);const D=async()=>{try{const[C,w]=await Promise.all([Yu.getStatus().catch(()=>({data:{status:null}})),Yu.getJobs().catch(()=>({data:{jobs:[]}}))]);h(C.data.status),x(w.data.jobs||[])}catch{}},A=async()=>{y(!0);try{const[C,w]=await Promise.all([si.getConversations().catch(()=>({data:{conversations:[]}})),Fr.getStats().catch(()=>({data:{stats:{totalActions:0,byCategory:{},byStatus:{}}}}))]);g(C.data.conversations?.slice(0,5)||[]),s(w.data.stats),await D()}catch(C){console.error("Dashboard load error:",C)}finally{y(!1)}},R=C=>{if(!C)return"0h 0m";const w=Math.floor(C/3600),Y=Math.floor(C%3600/60);return`${w}h ${Y}m`};return v?u.jsx("div",{style:{...P.container,display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"},children:u.jsx(Vr,{size:40,className:"spinner",style:{color:"var(--accent-primary)"}})}):u.jsxs("div",{style:P.container,children:[u.jsxs("div",{style:P.header,children:[u.jsxs("div",{children:[u.jsx("h1",{style:P.title,children:"Control Center"}),u.jsxs("div",{style:P.systemBadge,children:[u.jsx(hc,{size:14})," System Online • OS: ",f?.osName||"SamarthyaOS"]})]}),u.jsxs("div",{style:P.headerActions,children:[u.jsxs("button",{onClick:async()=>{window.confirm("Are you sure you want to KILL all background processes? This will stop all autonomous activity immediately.")&&(await Yu.emergencyStop(),D(),alert("🚨 Emergency Stop Engaged. All systems halted."))},style:P.dangerBtn,title:"Emergency Kill Switch",children:[u.jsx(Qp,{size:18})," Kill Switch"]}),u.jsxs("button",{onClick:()=>o("/tools"),style:P.secondaryBtn,children:[u.jsx(Wr,{size:18})," Modules"]}),u.jsxs("button",{onClick:()=>o("/chat"),style:P.newChatBtn,children:[u.jsx(hi,{size:18})," Spawn Agent"]})]})]}),u.jsx("h3",{style:P.sectionTitle,children:"System Vitals"}),u.jsxs("div",{style:P.statsGrid,children:[u.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #6366f1"},children:[u.jsx("div",{style:{...P.statIcon,background:"#6366f120",color:"#6366f1"},children:u.jsx(Wu,{size:22})}),u.jsxs("div",{style:P.statInfo,children:[u.jsx("div",{style:P.statValue,children:R(f?.uptime)}),u.jsx("div",{style:P.statLabel,children:"Agent Uptime"})]})]}),u.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #14b8a6"},children:[u.jsx("div",{style:{...P.statIcon,background:"#14b8a620",color:"#14b8a6"},children:u.jsx($u,{size:22})}),u.jsxs("div",{style:P.statInfo,children:[u.jsxs("div",{style:P.statValue,children:[f?.ramUsage||0,"%"]}),u.jsx("div",{style:P.statLabel,children:"Memory Load"})]})]}),u.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f59e0b"},children:[u.jsx("div",{style:{...P.statIcon,background:"#f59e0b20",color:"#f59e0b"},children:u.jsx(kv,{size:22})}),u.jsxs("div",{style:P.statInfo,children:[u.jsxs("div",{style:P.statValue,children:[f?.totalTools||0," / ",f?.loadedPlugins||0]}),u.jsx("div",{style:P.statLabel,children:"Core Tools / Plugins"})]})]}),u.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f43f5e"},children:[u.jsx("div",{style:{...P.statIcon,background:"#f43f5e20",color:"#f43f5e"},children:u.jsx(Vr,{size:22})}),u.jsxs("div",{style:P.statInfo,children:[u.jsx("div",{style:P.statValue,children:c?.totalActions||0}),u.jsx("div",{style:P.statLabel,children:"Tasks Executed"})]})]})]}),u.jsxs("div",{style:P.mainGrid,children:[u.jsxs("div",{style:{...P.card,gridColumn:"span 2"},children:[u.jsxs("div",{style:P.cardHeader,children:[u.jsxs("h3",{style:P.cardTitle,children:[u.jsx(Vr,{size:18,style:{color:"#10b981"}}),"Autonomous Background Processes"]}),u.jsxs("span",{style:P.liveBadge,children:[u.jsx("span",{style:P.pulseDot})," LIVE"]})]}),u.jsx("div",{style:P.cardBody,children:p.length>0?u.jsx("div",{style:P.jobsList,children:p.map(C=>u.jsxs("div",{style:P.jobCard,children:[u.jsxs("div",{style:P.jobHeader,children:[u.jsx("span",{style:P.jobName,children:C.taskName}),u.jsx("span",{style:C.isActive?P.jobActive:P.jobInactive,children:C.isActive?"RUNNING":"STOPPED"})]}),u.jsxs("div",{style:P.jobPrompt,children:['"',C.prompt,'"']}),u.jsxs("div",{style:P.jobMeta,children:[u.jsxs("span",{children:[u.jsx(Wu,{size:12})," Interval: ",C.intervalMinutes,"m"]}),u.jsxs("span",{children:[u.jsx(Ix,{size:12})," Next Run: ",new Date(C.nextRunAt).toLocaleTimeString()]})]})]},C._id))}):u.jsxs("div",{style:P.emptyState,children:[u.jsx(fc,{size:32,style:{color:"var(--text-muted)",marginBottom:"8px"}}),u.jsx("p",{children:"No autonomous background tasks running."}),u.jsx("span",{style:{fontSize:"0.8rem",color:"var(--text-muted)"},children:'Ask the agent to "schedule a background task" to monitor processes!'})]})})]}),u.jsxs("div",{style:P.card,children:[u.jsxs("div",{style:P.cardHeader,children:[u.jsxs("h3",{style:P.cardTitle,children:[u.jsx(dc,{size:18,style:{color:"var(--accent-primary)"}}),"Recent Interactions"]}),u.jsxs("button",{onClick:()=>o("/chat"),style:P.viewAllBtn,children:["View All ",u.jsx(ll,{size:14})]})]}),u.jsx("div",{style:P.cardBody,children:b.length>0?b.map(C=>u.jsxs("button",{onClick:()=>o(`/chat/${C._id}`),style:P.convRow,children:[u.jsx("div",{style:P.convDot}),u.jsxs("div",{style:P.convInfo,children:[u.jsx("span",{style:P.convName,children:C.title}),u.jsxs("span",{style:P.convTime,children:[new Date(C.updatedAt).toLocaleDateString()," ",new Date(C.updatedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),u.jsx(ll,{size:14,style:{color:"var(--text-muted)"}})]},C._id)):u.jsx("div",{style:P.emptyState,children:u.jsx("p",{children:"System idle. No recent sessions."})})})]})]}),u.jsxs("div",{style:P.bannerGrid,children:[u.jsxs("div",{style:P.vaultBanner,children:[u.jsx(il,{size:24,style:{color:"#10b981"}}),u.jsxs("div",{style:{flex:1},children:[u.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Encrypted Memory Vault Active"}),u.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"AES-256-CBC encryption enabled for secrets and PI data."})]}),u.jsx("button",{onClick:()=>o("/settings"),style:P.outlineBtn,children:"Configure"})]}),u.jsxs("div",{style:P.pluginBanner,children:[u.jsx(Qp,{size:24,style:{color:"#f59e0b"}}),u.jsxs("div",{style:{flex:1},children:[u.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Extensibility Engine"}),u.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"Drop JS modules in ~/SamarthyaBot_Files/plugins/ to expand OS."})]})]})]})]})}const P={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}},Sc=document.createElement("style");Sc.type="text/css";Sc.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(Sc);function Qb({user:l,onUpdate:o}){const[c,s]=z.useState({name:l?.name||"",language:l?.language||"hinglish",city:l?.city||"",permissions:l?.permissions||{fileAccess:"ask",emailAccess:"ask",browserAccess:"ask",calendarAccess:"ask"}}),[f,h]=z.useState(!1),[p,x]=z.useState(!1),b=async()=>{h(!0);try{const y=await bc.updateProfile(c);o(y.data.user),x(!0),setTimeout(()=>x(!1),3e3)}catch{console.error("Save failed")}finally{h(!1)}},g=[{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:"कभी नहीं"}],v=[{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 u.jsxs("div",{style:Se.container,children:[u.jsxs("div",{style:Se.header,children:[u.jsx("h1",{style:Se.title,children:"⚙️ Settings"}),u.jsx("button",{onClick:b,disabled:f,style:Se.saveBtn,children:p?u.jsxs(u.Fragment,{children:[u.jsx(Jr,{size:18})," Saved!"]}):f?"Saving...":u.jsxs(u.Fragment,{children:[u.jsx(Yv,{size:18})," Save Changes"]})})]}),u.jsxs("div",{style:Se.grid,children:[u.jsxs("div",{style:Se.section,children:[u.jsxs("div",{style:Se.sectionHeader,children:[u.jsx(Fm,{size:20,style:{color:"var(--accent-primary)"}}),u.jsx("h2",{style:Se.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),u.jsxs("div",{style:Se.sectionBody,children:[u.jsxs("div",{style:Se.field,children:[u.jsx("label",{style:Se.label,children:"Name / नाम"}),u.jsx("input",{style:Se.input,value:c.name,onChange:y=>s({...c,name:y.target.value}),placeholder:"Your name"})]}),u.jsxs("div",{style:Se.field,children:[u.jsx("label",{style:Se.label,children:"City / शहर"}),u.jsx("input",{style:Se.input,value:c.city,onChange:y=>s({...c,city:y.target.value}),placeholder:"Mumbai, Delhi, etc."})]})]})]}),u.jsxs("div",{style:Se.section,children:[u.jsxs("div",{style:Se.sectionHeader,children:[u.jsx(cc,{size:20,style:{color:"var(--accent-saffron)"}}),u.jsx("h2",{style:Se.sectionTitle,children:"Language / भाषा"})]}),u.jsx("div",{style:Se.sectionBody,children:u.jsx("div",{style:Se.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(y=>u.jsxs("button",{onClick:()=>s({...c,language:y.value}),style:{...Se.langCard,...c.language===y.value?Se.langCardActive:{}},children:[u.jsx("span",{style:Se.langIcon,children:y.icon}),u.jsx("span",{style:Se.langLabel,children:y.label}),u.jsx("span",{style:Se.langDesc,children:y.desc}),c.language===y.value&&u.jsx(Jr,{size:16,style:Se.langCheck})]},y.value))})})]}),u.jsxs("div",{style:Se.section,children:[u.jsxs("div",{style:Se.sectionHeader,children:[u.jsx(il,{size:20,style:{color:"var(--accent-rose)"}}),u.jsx("h2",{style:Se.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),u.jsx("div",{style:Se.sectionBody,children:v.map(y=>u.jsxs("div",{style:Se.permRow,children:[u.jsxs("div",{style:Se.permInfo,children:[u.jsx("span",{style:Se.permIcon,children:y.icon}),u.jsxs("div",{children:[u.jsx("div",{style:Se.permLabel,children:y.label}),u.jsx("div",{style:Se.permDesc,children:y.desc})]})]}),u.jsx("select",{style:Se.permSelect,value:c.permissions[y.key],onChange:D=>s({...c,permissions:{...c.permissions,[y.key]:D.target.value}}),children:g.map(D=>u.jsx("option",{value:D.value,children:D.label},D.value))})]},y.key))})]})]})]})}const Se={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},saveBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 22px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",boxShadow:"var(--shadow-glow)",transition:"all var(--transition-normal)"},grid:{display:"flex",flexDirection:"column",gap:"20px"},section:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden"},sectionHeader:{display:"flex",alignItems:"center",gap:"10px",padding:"18px 22px",borderBottom:"1px solid var(--border-subtle)"},sectionTitle:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},sectionBody:{padding:"22px"},field:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"16px",flex:1},label:{fontSize:"0.8rem",fontWeight:600,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.05em"},input:{width:"100%",padding:"11px 16px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.9rem",outline:"none",transition:"all 0.2s"},langOptions:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px"},langCard:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px",padding:"18px 14px",background:"var(--bg-card)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer",transition:"all var(--transition-fast)",fontFamily:"var(--font-primary)",position:"relative",color:"var(--text-primary)"},langCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.08)"},langIcon:{fontSize:"1.5rem"},langLabel:{fontWeight:600,fontSize:"0.9rem"},langDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},langCheck:{position:"absolute",top:"8px",right:"8px",color:"var(--accent-primary)"},permRow:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 0",borderBottom:"1px solid var(--border-subtle)",gap:"16px"},permInfo:{display:"flex",alignItems:"center",gap:"12px",flex:1},permIcon:{fontSize:"1.3rem"},permLabel:{fontWeight:600,fontSize:"0.9rem",color:"var(--text-primary)"},permDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},permSelect:{padding:"8px 12px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.8rem",outline:"none",minWidth:"170px"}},Vu={file:{bg:"rgba(99,102,241,0.1)",color:"#6366f1",icon:"📁"},email:{bg:"rgba(14,165,233,0.1)",color:"#0ea5e9",icon:"📧"},browser:{bg:"rgba(245,158,11,0.1)",color:"#f59e0b",icon:"🌐"},calendar:{bg:"rgba(16,185,129,0.1)",color:"#10b981",icon:"📅"},search:{bg:"rgba(139,92,246,0.1)",color:"#8b5cf6",icon:"🔍"},system:{bg:"rgba(107,114,128,0.1)",color:"#6b7280",icon:"⚙️"},security:{bg:"rgba(244,63,94,0.1)",color:"#f43f5e",icon:"🔐"},tool:{bg:"rgba(20,184,166,0.1)",color:"#14b8a6",icon:"🛠️"}},hm={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 Zb({user:l}){const[o,c]=z.useState([]),[s,f]=z.useState(null),[h,p]=z.useState(""),[x,b]=z.useState(!0);z.useEffect(()=>{g()},[h]);const g=async()=>{b(!0);try{const y={};h&&(y.category=h);const[D,A]=await Promise.all([Fr.getLogs(y),Fr.getStats()]);c(D.data.logs||[]),f(A.data.stats||null)}catch{console.error("Failed to load audit data"),c([]),f({totalActions:0,byCategory:{},byStatus:{}})}finally{b(!1)}},v=async y=>{try{await Fr.rollback(y),g()}catch{console.error("Rollback failed")}};return u.jsxs("div",{style:pe.container,children:[u.jsx("div",{style:pe.header,children:u.jsxs("div",{children:[u.jsx("h1",{style:pe.title,children:"🔐 Audit Log / ऑडिट लॉग"}),u.jsx("p",{style:pe.subtitle,children:"Full action replay timeline • हर एक्शन की पूरी जानकारी"})]})}),u.jsxs("div",{style:pe.statsRow,children:[u.jsxs("div",{style:pe.statCard,children:[u.jsx(Vr,{size:20,style:{color:"var(--accent-primary)"}}),u.jsxs("div",{children:[u.jsx("div",{style:pe.statValue,children:s?.totalActions||0}),u.jsx("div",{style:pe.statLabel,children:"Total Actions"})]})]}),u.jsxs("div",{style:pe.statCard,children:[u.jsx(il,{size:20,style:{color:"#10b981"}}),u.jsxs("div",{children:[u.jsx("div",{style:pe.statValue,children:s?.byStatus?.success||0}),u.jsx("div",{style:pe.statLabel,children:"Successful"})]})]}),u.jsxs("div",{style:pe.statCard,children:[u.jsx(pc,{size:20,style:{color:"#f59e0b"}}),u.jsxs("div",{children:[u.jsx("div",{style:pe.statValue,children:s?.byStatus?.blocked||0}),u.jsx("div",{style:pe.statLabel,children:"Blocked"})]})]}),u.jsxs("div",{style:pe.statCard,children:[u.jsx(Zp,{size:20,style:{color:"#8b5cf6"}}),u.jsxs("div",{children:[u.jsx("div",{style:pe.statValue,children:s?.byStatus?.rolled_back||0}),u.jsx("div",{style:pe.statLabel,children:"Rolled Back"})]})]})]}),u.jsxs("div",{style:pe.filters,children:[u.jsx(gv,{size:16,style:{color:"var(--text-muted)"}}),u.jsx("button",{onClick:()=>p(""),style:{...pe.filterBtn,...h===""?pe.filterBtnActive:{}},children:"All"}),Object.entries(Vu).map(([y,D])=>u.jsxs("button",{onClick:()=>p(y),style:{...pe.filterBtn,...h===y?pe.filterBtnActive:{}},children:[D.icon," ",y]},y))]}),u.jsx("div",{style:pe.timeline,children:x?u.jsxs("div",{style:pe.loadingState,children:[u.jsx("div",{style:pe.spinner}),u.jsx("span",{children:"Loading audit logs..."})]}):o.length===0?u.jsxs("div",{style:pe.emptyState,children:[u.jsx(il,{size:48,style:{color:"var(--text-muted)",marginBottom:"12px"}}),u.jsx("p",{children:"No audit logs yet. Start chatting with SamarthyaBot to see activity here."})]}):o.map((y,D)=>{const A=Vu[y.category]||Vu.system,R=hm[y.status]||hm.success;return u.jsxs("div",{style:pe.logEntry,children:[u.jsxs("div",{style:pe.logTimeline,children:[u.jsx("div",{style:{...pe.logDot,background:A.color}}),D<o.length-1&&u.jsx("div",{style:pe.logLine})]}),u.jsxs("div",{style:pe.logContent,children:[u.jsxs("div",{style:pe.logHeader,children:[u.jsxs("span",{style:{...pe.logCategory,background:A.bg,color:A.color},children:[A.icon," ",y.category]}),u.jsx("span",{style:{...pe.logStatus,background:R.bg,color:R.color},children:y.status}),y.details?.riskLevel&&y.details.riskLevel!=="low"&&u.jsxs("span",{style:pe.riskBadge,children:["⚠️ ",y.details.riskLevel," risk"]})]}),u.jsx("div",{style:pe.logAction,children:y.action}),y.details?.toolName&&u.jsxs("div",{style:pe.logDetail,children:["Tool: ",y.details.toolName]}),u.jsxs("div",{style:pe.logTime,children:[u.jsx(Wu,{size:12}),new Date(y.createdAt).toLocaleString("en-IN",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})]}),y.canRollback&&y.status!=="rolled_back"&&u.jsxs("button",{onClick:()=>v(y._id),style:pe.rollbackBtn,children:[u.jsx(Zp,{size:14})," Undo / Rollback"]})]})]},y._id||D)})})]})}const pe={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"}},pm={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 Fb({user:l}){const[o,c]=z.useState([]),[s,f]=z.useState([]),[h,p]=z.useState(null),[x,b]=z.useState([]);z.useEffect(()=>{g()},[]);const g=async()=>{try{const[A,R]=await Promise.all([Gu.getPacks(),Gu.getAll()]);c(A.data.packs||[]),f(R.data.tools||[])}catch{console.error("Failed to load tools")}},v=async A=>{p(A);try{const R=await Gu.getPackTools(A);b(R.data.tools||[])}catch{b([])}},y=async A=>{try{await bc.updateProfile({activePack:A})}catch{console.error("Failed to activate pack")}},D=l?.language==="english";return u.jsxs("div",{style:Le.container,children:[u.jsx("div",{style:Le.header,children:u.jsxs("div",{children:[u.jsxs("h1",{style:Le.title,children:["🛠️ ",D?"Tool Packs":"टूल पैक्स"]}),u.jsx("p",{style:Le.subtitle,children:D?"Choose the right tool pack for your workflow":"अपने काम के हिसाब से पैक चुनो"})]})}),u.jsx("div",{style:Le.packsGrid,children:o.map((A,R)=>{const C=l?.activePack===A.id,w=h===A.id;return u.jsxs("div",{onClick:()=>v(A.id),style:{...Le.packCard,...C?Le.packCardActive:{},...w?Le.packCardSelected:{},animationDelay:`${R*.1}s`},children:[u.jsxs("div",{style:Le.packHeader,children:[u.jsx("span",{style:Le.packEmoji,children:A.id==="student"?"🎓":A.id==="business"?"🏢":A.id==="developer"?"👨‍💻":"🏠"}),C&&u.jsxs("span",{style:Le.activeBadge,children:[u.jsx(Jr,{size:12})," ",D?"Active":"सक्रिय"]})]}),u.jsx("h3",{style:Le.packName,children:D?A.name:A.nameHi||A.name}),u.jsx("p",{style:Le.packDesc,children:D?A.description:A.descriptionHi||A.description}),u.jsxs("div",{style:Le.packMeta,children:[u.jsxs("span",{style:Le.toolCount,children:[u.jsx(Wr,{size:14})," ",A.toolCount," tools"]}),u.jsx(ll,{size:16,style:{color:"var(--text-muted)"}})]}),!C&&u.jsxs("button",{onClick:Y=>{Y.stopPropagation(),y(A.id)},style:Le.activateBtn,children:[u.jsx(hi,{size:14})," ",D?"Activate":"एक्टिवेट करें"]})]},A.id)})}),u.jsxs("div",{style:Le.section,children:[u.jsxs("h2",{style:Le.sectionTitle,children:[u.jsx(Wr,{size:20,style:{color:"var(--accent-primary)"}}),h?D?`Tools in ${h} pack`:`${h} पैक के टूल्स`:D?"All Available Tools":"सभी टूल्स"]}),u.jsx("div",{style:Le.toolsGrid,children:(h?x:s).map((A,R)=>{const C=pm[A.riskLevel]||pm.low;return u.jsxs("div",{style:{...Le.toolCard,animationDelay:`${R*.05}s`},children:[u.jsxs("div",{style:Le.toolHeader,children:[u.jsx("span",{style:Le.toolName,children:A.name}),u.jsx("span",{style:{...Le.riskBadge,background:C.bg,color:C.color},children:C.label})]}),u.jsx("p",{style:Le.toolDesc,children:D?A.description:A.descriptionHi||A.description}),u.jsx("div",{style:Le.toolMeta,children:u.jsxs("span",{style:Le.toolCategory,children:[A.category==="file"?"📁":A.category==="email"?"📧":A.category==="search"?"🔍":A.category==="calendar"?"📅":"🛠️"," ",A.category]})})]},A.name)})})]})]})}const Le={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"}},mm=[{label:"Features",href:"#features"},{label:"CLI",href:"#cli"},{label:"Architecture",href:"#architecture"},{label:"Security",href:"#security"}],Kb=[{icon:u.jsx(i2,{size:22}),accent:"#FF9933",title:"Autonomous Planning",desc:"Native ReAct engine (Reason → Act → Observe) that breaks complex goals into discrete steps and executes them without holding your hand."},{icon:u.jsx(il,{size:22}),accent:"#6ee7f7",title:"Full Local Sovereignty",desc:"Your data never leaves your machine. Use Ollama for 100% offline inference, or encrypted tunnels to cloud providers. You own the compute."},{icon:u.jsx(Gm,{size:22}),accent:"#a78bfa",title:"Encrypted Memory Vault",desc:"Every interaction stored locally. Sensitive data is encrypted via AES-256-CBC. Semantic vector search surfaces context across sessions."},{icon:u.jsx(cc,{size:22}),accent:"#138808",title:"Indian Digital Highway",desc:"Native support for GST filings, IRCTC bookings, UPI payments, and Hinglish fluency. Built for India's digital infrastructure."},{icon:u.jsx(Xm,{size:22}),accent:"#fb923c",title:"Plugin Extensibility",desc:"Drop any JS file into the plugins folder and the assistant learns it instantly. Build custom automations for unique business logic."},{icon:u.jsx(Ym,{size:22}),accent:"#f472b6",title:"Visual Intelligence",desc:"Built-in screen understanding for contextual automation. Let the agent see what you see and act on it autonomously."},{icon:u.jsx(Ju,{size:22}),accent:"#3b82f6",title:"Browser DOM Automation",desc:"Advanced RPA with Puppeteer-core. Let the AI click, type, and extract data precisely via DOM selectors."},{icon:u.jsx(Qm,{size:22}),accent:"#facc15",title:"Go Background Worker",desc:"High-performance Go worker node for long-running, CPU-intensive tasks with real-time streaming of stdout/stderr."},{icon:u.jsx(hc,{size:22}),accent:"#ef4444",title:"Remote SSH Deployments",desc:"Securely connect to and manage your VPS or remote servers via SSH directly from the local agentic hub."}],gm=[{cmd:"samarthya onboard",desc:"Start the installation & configuration wizard"},{cmd:"samarthya gateway",desc:"Run the backend control plane and serve the Dashboard"},{cmd:"samarthya status",desc:"Display the status of background jobs and the engine"},{cmd:"samarthya stop",desc:"Gracefully shut down all background autonomous agents"},{cmd:"samarthya model [name]",desc:"Swap between LLM providers (e.g. ollama, gemini)"}],Jb=[{name:"WhatsApp",emoji:"💬",bg:"#25D366",fg:"#fff"},{name:"Telegram",emoji:"✈️",bg:"#2AABEE",fg:"#fff"},{name:"Gmail",emoji:"📧",bg:"#EA4335",fg:"#fff"},{name:"GitHub",emoji:"🐙",bg:"#24292e",fg:"#fff"},{name:"Discord",emoji:"🎮",bg:"#5865F2",fg:"#fff"},{name:"Slack",emoji:"#",bg:"#4A154B",fg:"#fff"},{name:"UPI",emoji:"₹",bg:"#FF6600",fg:"#fff"},{name:"IRCTC",emoji:"🚂",bg:"#1565C0",fg:"#fff"}],Wb=[{name:"jonahships_",handle:"@jonahships_",text:"Setup SamarthyaBot 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.",initials:"JS",avatarBg:"#FF9933"},{name:"markjaquith",handle:"@markjaquith",text:'SamarthyaBot feels like a "just had to glue all the parts together" leap forward. Incredible experience running locally.',initials:"MJ",avatarBg:"#6ee7f7"},{name:"danpeguine",handle:"@danpeguine",text:"Your context and skills live on YOUR computer. Proactive AF: cron jobs, reminders, background tasks. Memory is amazing.",initials:"DP",avatarBg:"#a78bfa"},{name:"nateliason",handle:"@nateliason",text:"Managing autonomous agent sessions I can kick off anywhere, running tests on my app and resolving them. The future of digital employees.",initials:"NL",avatarBg:"#22c55e"}],ym=`// ~/SamarthyaBot_Files/plugins/hello.js
26
+ module.exports = {
27
+ name: 'greet',
28
+ description: 'Greets the user in a friendly way',
29
+ parameters: {
30
+ name: { type: 'string', required: true }
31
+ },
32
+ execute: async (args) => ({
33
+ success: true,
34
+ result: \`Namaste \${args.name}! Main SamarthyaBot hoon.\`
35
+ })
36
+ };`;function xm({text:l,dark:o}){const[c,s]=z.useState(!1),f=()=>{navigator.clipboard.writeText(l),s(!0),setTimeout(()=>s(!1),2e3)};return u.jsx("button",{onClick:f,style:nS(),"aria-label":"Copy to clipboard",children:c?u.jsx(Jr,{size:15,color:"#22c55e"}):u.jsx(tv,{size:15,color:o?"#666":"#999"})})}function Ja({children:l,dark:o}){return u.jsx("div",{style:lS(),children:u.jsx("span",{style:{color:"#FF9933",fontSize:"0.7rem",fontWeight:800,letterSpacing:"3px",textTransform:"uppercase"},children:l})})}function $b(){const[l,o]=z.useState(!0),[c,s]=z.useState(!1),[f,h]=z.useState(!1);z.useEffect(()=>{const A=()=>h(window.scrollY>20);return window.addEventListener("scroll",A,{passive:!0}),()=>window.removeEventListener("scroll",A)},[]);const p=(A,R)=>{A.preventDefault(),s(!1),document.querySelector(R)?.scrollIntoView({behavior:"smooth"})},x=l?"#06060a":"#ffffff",b=l?"#0e0e14":"#f8f8fb",g=l?"#1e1e28":"#e8e8ee",v=l?"#ffffff":"#0a0a0f",y=l?"#8888a8":"#555568",D=l?"#3a3a4e":"#ccccdb";return u.jsxs(u.Fragment,{children:[u.jsx("style",{children:`
37
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
38
+ html { scroll-behavior: smooth; }
39
+ body { background: ${x}; transition: background 0.3s; }
40
+ a { text-decoration: none; color: inherit; }
41
+ @keyframes fadeUp {
42
+ from { opacity: 0; transform: translateY(28px); }
43
+ to { opacity: 1; transform: translateY(0); }
44
+ }
45
+ @keyframes glow {
46
+ 0%, 100% { opacity: 0.4; }
47
+ 50% { opacity: 0.8; }
48
+ }
49
+ @keyframes flagFlow {
50
+ 0% { background-position: 0% 50%; }
51
+ 50% { background-position: 100% 50%; }
52
+ 100% { background-position: 0% 50%; }
53
+ }
54
+ .flag-text {
55
+ background: linear-gradient(90deg, #FF9933 0%, #ffffff 33%, #138808 66%, #FF9933 100%);
56
+ background-size: 300% auto;
57
+ -webkit-background-clip: text;
58
+ -webkit-text-fill-color: transparent;
59
+ background-clip: text;
60
+ animation: flagFlow 6s ease infinite;
61
+ }
62
+ .fade-up { animation: fadeUp 0.7s ease both; }
63
+ .fade-up-d1 { animation: fadeUp 0.7s ease 0.1s both; }
64
+ .fade-up-d2 { animation: fadeUp 0.7s ease 0.2s both; }
65
+ .fade-up-d3 { animation: fadeUp 0.7s ease 0.3s both; }
66
+ .fade-up-d4 { animation: fadeUp 0.7s ease 0.4s both; }
67
+ .card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
68
+ .card-hover:hover {
69
+ transform: translateY(-4px);
70
+ box-shadow: 0 20px 60px rgba(0,0,0,0.15);
71
+ }
72
+ .nav-link {
73
+ font-size: 0.85rem; font-weight: 600; letter-spacing: 0.3px;
74
+ padding: 8px 14px; border-radius: 8px; transition: background 0.15s; cursor: pointer;
75
+ }
76
+ .nav-link:hover { background: ${l?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"}; }
77
+ .btn-primary {
78
+ display: inline-flex; align-items: center; gap: 8px;
79
+ padding: 12px 24px; border-radius: 10px; font-size: 0.9rem;
80
+ font-weight: 700; cursor: pointer;
81
+ background: linear-gradient(135deg, #FF9933 0%, #e8851d 100%);
82
+ color: #fff; border: none;
83
+ transition: transform 0.15s, box-shadow 0.15s;
84
+ box-shadow: 0 4px 20px rgba(255,153,51,0.35);
85
+ }
86
+ .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,153,51,0.5); }
87
+ .btn-secondary {
88
+ display: inline-flex; align-items: center; gap: 8px;
89
+ padding: 12px 24px; border-radius: 10px; font-size: 0.9rem;
90
+ font-weight: 700; cursor: pointer; background: transparent;
91
+ color: ${v}; border: 1.5px solid ${g};
92
+ transition: border-color 0.15s, background 0.15s;
93
+ }
94
+ .btn-secondary:hover {
95
+ border-color: ${l?"#3a3a4e":"#aaaacc"};
96
+ background: ${l?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"};
97
+ }
98
+ .mobile-menu {
99
+ position: fixed; top: 0; left: 0; width: 100%; height: 100%;
100
+ z-index: 998;
101
+ background: ${l?"rgba(6,6,10,0.97)":"rgba(255,255,255,0.97)"};
102
+ display: flex; flex-direction: column; align-items: center;
103
+ justify-content: center; gap: 8px; backdrop-filter: blur(12px);
104
+ }
105
+ .mobile-menu-link {
106
+ font-size: 1.4rem; font-weight: 700; padding: 14px 32px;
107
+ color: ${v}; border-radius: 12px; cursor: pointer; transition: background 0.15s;
108
+ }
109
+ .mobile-menu-link:hover { background: ${l?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.05)"}; }
110
+ ::-webkit-scrollbar { width: 6px; }
111
+ ::-webkit-scrollbar-track { background: ${x}; }
112
+ ::-webkit-scrollbar-thumb { background: ${D}; border-radius: 99px; }
113
+ @media (max-width: 900px) {
114
+ .feat-grid { grid-template-columns: repeat(2, 1fr) !important; }
115
+ .int-grid { grid-template-columns: repeat(4, 1fr) !important; }
116
+ .arch-row { flex-direction: column !important; }
117
+ }
118
+ @media (max-width: 640px) {
119
+ .hero-title { font-size: clamp(2.4rem, 12vw, 3.5rem) !important; letter-spacing: -2px !important; }
120
+ .feat-grid { grid-template-columns: 1fr !important; }
121
+ .spec-grid { grid-template-columns: 1fr !important; }
122
+ .int-grid { grid-template-columns: repeat(2, 1fr) !important; }
123
+ .test-grid { grid-template-columns: 1fr !important; }
124
+ .footer-inner { flex-direction: column; gap: 40px !important; }
125
+ .nav-desktop { display: none !important; }
126
+ .hamburger { display: flex !important; }
127
+ .hero-btns { flex-direction: column !important; align-items: stretch !important; }
128
+ .hero-btns > * { text-align: center !important; justify-content: center; }
129
+ .plug-row { flex-direction: column !important; }
130
+ .stats-row { gap: 24px !important; }
131
+ .cta-pad { padding: 40px 24px !important; }
132
+ .section-padded{ padding: 64px 20px !important; }
133
+ }
134
+ `}),u.jsxs("div",{style:{background:x,color:v,fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",minHeight:"100vh",overflowX:"hidden"},children:[u.jsx("nav",{style:Pb(l,f,g),children:u.jsxs("div",{style:eS(),children:[u.jsxs("a",{href:"/",style:{display:"flex",alignItems:"center",gap:10,fontWeight:900,fontSize:"1.1rem",color:v},children:[u.jsx("span",{style:vm,children:u.jsx("img",{src:"/logo.png",alt:"SamarthyaBot",style:{width:"24px",height:"24px",objectFit:"contain"}})}),u.jsxs("span",{children:["Samarthya",u.jsx("span",{style:{color:"#FF9933"},children:"Bot"})]})]}),u.jsx("div",{className:"nav-desktop",style:{display:"flex",alignItems:"center",gap:4},children:mm.map(A=>u.jsx("a",{href:A.href,className:"nav-link",style:{color:y},onClick:R=>p(R,A.href),children:A.label},A.label))}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[u.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center",gap:7,padding:"8px 14px",borderRadius:9,border:`1.5px solid ${g}`,fontSize:"0.82rem",fontWeight:700,color:y},children:[u.jsx(Hu,{size:15})," GitHub"]}),u.jsx("button",{onClick:()=>o(A=>!A),style:tS(l,g),"aria-label":"Toggle theme",children:l?u.jsx($v,{size:16}):u.jsx(Ov,{size:16})}),u.jsx("button",{className:"hamburger",onClick:()=>s(A=>!A),style:{display:"none",background:"none",border:"none",cursor:"pointer",color:v,padding:6},children:u.jsxs("div",{style:{width:22,display:"flex",flexDirection:"column",gap:5},children:[u.jsx("span",{style:{height:2,background:v,borderRadius:2,display:"block",transition:"0.2s",transform:c?"rotate(45deg) translateY(7px)":"none"}}),u.jsx("span",{style:{height:2,background:v,borderRadius:2,display:"block",opacity:c?0:1,transition:"0.2s"}}),u.jsx("span",{style:{height:2,background:v,borderRadius:2,display:"block",transition:"0.2s",transform:c?"rotate(-45deg) translateY(-7px)":"none"}})]})})]})]})}),c&&u.jsxs("div",{className:"mobile-menu",children:[mm.map(A=>u.jsx("a",{href:A.href,className:"mobile-menu-link",onClick:R=>p(R,A.href),children:A.label},A.label)),u.jsx(ui,{to:"/dashboard",className:"mobile-menu-link",onClick:()=>s(!1),children:"Dashboard"})]}),u.jsxs("section",{style:{maxWidth:1100,margin:"0 auto",padding:"160px 24px 120px",textAlign:"center",position:"relative"},children:[u.jsx("div",{style:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",width:700,height:420,background:"radial-gradient(ellipse at center, rgba(255,153,51,0.10) 0%, transparent 70%)",pointerEvents:"none",animation:"glow 5s ease infinite",zIndex:0}}),u.jsxs("div",{style:{position:"relative",zIndex:1},children:[u.jsxs("div",{className:"fade-up",style:aS(l,g),children:[u.jsx("span",{style:{background:"linear-gradient(135deg,#FF9933,#e8851d)",color:"#fff",fontSize:"0.62rem",fontWeight:800,padding:"3px 9px",borderRadius:5,letterSpacing:1},children:"v1.1.3"}),u.jsx("span",{style:{color:y,fontSize:"0.82rem",fontWeight:600},children:"God-Mode DOM RPA, Go Streaming & SSH"}),u.jsx(ll,{size:13,color:y})]}),u.jsx("div",{className:"fade-up-d1",style:{marginBottom:28,display:"flex",justifyContent:"center"},children:u.jsx("img",{src:"/logo.png",alt:"SamarthyaBot",style:Ib()})}),u.jsxs("h1",{className:"fade-up-d2 hero-title",style:{fontSize:"clamp(3rem, 8vw, 5.5rem)",fontWeight:950,letterSpacing:"-4px",lineHeight:1.05,marginBottom:22,color:v},children:["Your Local",u.jsx("br",{}),u.jsx("span",{className:"flag-text",children:"Agentic OS"})]}),u.jsxs("p",{className:"fade-up-d3",style:{fontSize:"clamp(0.95rem, 2.5vw, 1.15rem)",color:y,maxWidth:640,margin:"0 auto 52px",lineHeight:1.75,fontWeight:400},children:["Run powerful AI agents ",u.jsx("strong",{style:{color:v,fontWeight:700},children:"locally on your machine"}),". Bypass cloud limits, own your compute, and automate complex ",u.jsx("strong",{style:{color:v,fontWeight:700},children:"Indian digital workflows"})," — fully private."]}),u.jsxs("div",{className:"fade-up-d4 hero-btns",style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[u.jsxs("a",{href:"#install",onClick:A=>p(A,"#install"),className:"btn-primary",children:[u.jsx(Qm,{size:16})," Get Started Free"]}),u.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",className:"btn-secondary",children:[u.jsx(Hu,{size:16})," View on GitHub"]}),u.jsxs(ui,{to:"/dashboard",className:"btn-secondary",children:[u.jsx($u,{size:16})," Open Dashboard"]})]}),u.jsx("div",{className:"fade-up-d4 stats-row",style:{display:"flex",gap:48,justifyContent:"center",marginTop:72,flexWrap:"wrap"},children:[{label:"License",val:"MIT"},{label:"LLM Providers",val:"4+"},{label:"Built-in Tools",val:"30+"},{label:"Cloud Required",val:"Zero"}].map(A=>u.jsxs("div",{style:{textAlign:"center"},children:[u.jsx("div",{style:{fontSize:"1.45rem",fontWeight:900,color:v},children:A.val}),u.jsx("div",{style:{fontSize:"0.74rem",color:y,fontWeight:600,letterSpacing:"0.5px",marginTop:5},children:A.label})]},A.label))})]})]}),u.jsx("div",{style:{maxWidth:1100,margin:"0 auto",padding:"0 24px"},children:u.jsx("div",{style:{height:1,background:`linear-gradient(90deg, transparent, ${g}, transparent)`}})}),u.jsxs("section",{id:"install",className:"section-padded",style:{maxWidth:820,margin:"0 auto",padding:"96px 24px"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[u.jsx(Ja,{dark:l,children:"Quick Start"}),u.jsx("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.2rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Deploy in 60 Seconds"}),u.jsx("p",{style:{color:y,marginTop:12,fontSize:"0.92rem"},children:"Requires Node.js ≥ 20 and a local MongoDB instance."})]}),u.jsxs("div",{style:Xu(l,g),children:[u.jsxs("div",{style:Qu(l),children:[u.jsx("div",{style:{display:"flex",gap:7},children:["#ff5f56","#ffbd2e","#27c93f"].map(A=>u.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:A}},A))}),u.jsx("span",{style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:2,color:D},children:"Terminal"}),u.jsx("div",{})]}),u.jsx("div",{style:{padding:"8px 0",fontFamily:"monospace"},children:[{cmd:"npm install -g samarthya-bot",comment:"# install globally"},{cmd:"samarthya onboard",comment:"# interactive setup wizard"},{cmd:"samarthya gateway",comment:"# launch the control plane"}].map((A,R)=>u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 24px",borderBottom:R<2?`1px solid ${l?"#13131e":"#1e1e2a"}`:"none"},children:[u.jsxs("div",{style:{display:"flex",gap:14,fontSize:"0.88rem",flexWrap:"wrap",alignItems:"center"},children:[u.jsx("span",{style:{color:"#FF9933",fontWeight:700,userSelect:"none"},children:"$"}),u.jsx("span",{style:{color:l?"#d0d0f0":"#c8c8e8"},children:A.cmd}),u.jsx("span",{style:{color:D,fontSize:"0.8rem"},children:A.comment})]}),u.jsx(xm,{text:A.cmd,dark:l})]},R))})]}),u.jsxs("p",{style:{color:y,fontSize:"0.8rem",textAlign:"center",marginTop:20},children:["From source:"," ",u.jsx("code",{style:{background:l?"#1a1a24":"#eeeefc",padding:"2px 8px",borderRadius:5,fontSize:"0.78rem",color:l?"#b0b0d8":"#3a3a6e"},children:"git clone https://github.com/mebishnusahu0595/SamarthyaBot"})]})]}),u.jsx("section",{id:"features",style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:u.jsxs("div",{style:{maxWidth:1100,margin:"0 auto"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:60},children:[u.jsx(Ja,{dark:l,children:"Capabilities"}),u.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Built Different. Runs Locally."}),u.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.93rem",maxWidth:520,margin:"14px auto 0"},children:"Everything you need to run an autonomous AI agent on your own hardware."})]}),u.jsx("div",{className:"feat-grid",style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:20},children:Kb.map((A,R)=>u.jsxs("div",{className:"card-hover",style:{padding:"28px 24px",borderRadius:14,border:`1px solid ${g}`,background:l?"#0e0e16":"#ffffff",display:"flex",flexDirection:"column"},children:[u.jsx("div",{style:{width:42,height:42,borderRadius:10,background:`${A.accent}18`,display:"flex",alignItems:"center",justifyContent:"center",color:A.accent,marginBottom:18},children:A.icon}),u.jsx("h3",{style:{fontSize:"0.98rem",fontWeight:800,color:v,marginBottom:10},children:A.title}),u.jsx("p",{style:{fontSize:"0.85rem",color:y,lineHeight:1.7},children:A.desc})]},R))})]})}),u.jsxs("section",{style:{maxWidth:1100,margin:"0 auto",padding:"96px 24px"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:48},children:[u.jsx(Ja,{dark:l,children:"Integrations"}),u.jsx("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.2rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Omnichannel Connectivity"}),u.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.92rem",maxWidth:440,margin:"14px auto 0"},children:"One control plane, many frontends. Talk to your agent where you already are."})]}),u.jsx("div",{className:"int-grid",style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:14},children:Jb.map((A,R)=>u.jsxs("div",{className:"card-hover",style:{padding:"18px 20px",borderRadius:12,border:`1px solid ${g}`,background:b,display:"flex",alignItems:"center",gap:12},children:[u.jsx("span",{style:{width:32,height:32,borderRadius:8,background:A.bg,color:A.fg,display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:"1rem",fontWeight:900,flexShrink:0,lineHeight:1},children:A.emoji}),u.jsx("span",{style:{fontSize:"0.85rem",fontWeight:700,color:v},children:A.name})]},R))})]}),u.jsx("div",{style:{maxWidth:1100,margin:"0 auto",padding:"0 24px"},children:u.jsx("div",{style:{height:1,background:`linear-gradient(90deg, transparent, ${g}, transparent)`}})}),u.jsx("section",{id:"architecture",style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:u.jsxs("div",{style:{maxWidth:960,margin:"0 auto"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[u.jsx(Ja,{dark:l,children:"Under the Hood"}),u.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Architecture Overview"})]}),u.jsxs("div",{className:"arch-row",style:{display:"flex",gap:36,alignItems:"flex-start"},children:[u.jsx("div",{style:{flex:1,minWidth:280},children:u.jsxs("div",{style:{...Xu(l,g),padding:0},children:[u.jsxs("div",{style:Qu(l),children:[u.jsx("div",{style:{display:"flex",gap:7},children:["#ff5f56","#ffbd2e","#27c93f"].map(A=>u.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:A}},A))}),u.jsx("span",{style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:2,color:D},children:"System Topology"}),u.jsx("div",{})]}),u.jsx("pre",{style:{padding:"22px 24px",fontFamily:"monospace",fontSize:"0.78rem",lineHeight:1.85,color:l?"#7070a0":"#5050a0",overflowX:"auto"},children:`WhatsApp · Telegram · WebUI · CLI
135
+
136
+
137
+ ┌─────────────────────────┐
138
+ │ Samarthya Gateway │
139
+ │ localhost:5000 │
140
+ └──────────┬──────────────┘
141
+
142
+ ┌─────┴───────┐
143
+ ▼ ▼
144
+ Planner Skill Registry
145
+ (ReAct) (Plugins + Tools)
146
+
147
+ ├─ Background CRON
148
+ ├─ Memory Vault (AES-256)
149
+ └─ Vector Search (Local)`})]})}),u.jsx("div",{style:{flex:1,minWidth:260,display:"flex",flexDirection:"column",gap:12},children:[{icon:u.jsx(dc,{size:18}),title:"Surface Layer",desc:"WhatsApp, Telegram, Web UI, CLI — unified gateway",accent:"#FF9933"},{icon:u.jsx($u,{size:18}),title:"Planner Engine",desc:"ReAct loop: Reason → Act → Observe",accent:"#6ee7f7"},{icon:u.jsx(Gm,{size:18}),title:"Memory Vault",desc:"AES-256 encrypted + semantic vector indexing",accent:"#a78bfa"},{icon:u.jsx(hi,{size:18}),title:"Skill Registry",desc:"Hot-plug JS plugins, shell scripts, 30+ built-ins",accent:"#22c55e"}].map((A,R)=>u.jsxs("div",{style:{display:"flex",gap:14,alignItems:"flex-start",padding:"16px 18px",borderRadius:12,border:`1px solid ${g}`,background:l?"#0e0e16":"#ffffff"},children:[u.jsx("div",{style:{width:34,height:34,borderRadius:8,background:`${A.accent}18`,display:"flex",alignItems:"center",justifyContent:"center",color:A.accent,flexShrink:0},children:A.icon}),u.jsxs("div",{children:[u.jsx("div",{style:{fontWeight:800,fontSize:"0.87rem",color:v,marginBottom:4},children:A.title}),u.jsx("div",{style:{fontSize:"0.78rem",color:y,lineHeight:1.5},children:A.desc})]})]},R))})]})]})}),u.jsxs("section",{id:"cli",className:"section-padded",style:{maxWidth:860,margin:"0 auto",padding:"96px 24px"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:48},children:[u.jsx(Ja,{dark:l,children:"CLI Reference"}),u.jsx("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.2rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Control Everything from Your Terminal"})]}),u.jsx("div",{style:{border:`1px solid ${g}`,borderRadius:14,overflow:"hidden",background:b},children:u.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[u.jsx("thead",{children:u.jsxs("tr",{style:{background:l?"#0a0a14":"#ededf8",borderBottom:`1px solid ${g}`},children:[u.jsx("th",{style:{padding:"13px 22px",textAlign:"left",fontWeight:700,fontSize:"0.72rem",color:y,letterSpacing:"1.8px",textTransform:"uppercase"},children:"Command"}),u.jsx("th",{style:{padding:"13px 22px",textAlign:"left",fontWeight:700,fontSize:"0.72rem",color:y,letterSpacing:"1.8px",textTransform:"uppercase"},children:"Description"})]})}),u.jsx("tbody",{children:gm.map((A,R)=>u.jsxs("tr",{style:{borderBottom:R<gm.length-1?`1px solid ${g}`:"none"},onMouseEnter:C=>C.currentTarget.style.background=l?"#0c0c18":"#f4f4fb",onMouseLeave:C=>C.currentTarget.style.background="transparent",children:[u.jsx("td",{style:{padding:"15px 22px"},children:u.jsx("code",{style:{fontFamily:"monospace",fontSize:"0.85rem",color:"#FF9933",background:"rgba(255,153,51,0.08)",padding:"4px 10px",borderRadius:6,fontWeight:700,whiteSpace:"nowrap"},children:A.cmd})}),u.jsx("td",{style:{padding:"15px 22px",fontSize:"0.86rem",color:y,lineHeight:1.5},children:A.desc})]},R))})]})})]}),u.jsx("section",{style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:u.jsxs("div",{className:"plug-row",style:{maxWidth:960,margin:"0 auto",display:"flex",gap:56,alignItems:"center",flexWrap:"wrap"},children:[u.jsxs("div",{style:{flex:1,minWidth:260},children:[u.jsx(Ja,{dark:l,children:"Extensibility"}),u.jsxs("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.1rem)",fontWeight:900,color:v,marginTop:16,marginBottom:18,letterSpacing:"-1px",lineHeight:1.2},children:["Teach the Agent",u.jsx("br",{}),"New Superpowers"]}),u.jsxs("p",{style:{fontSize:"0.9rem",color:y,lineHeight:1.8,marginBottom:28},children:["Drop any ",u.jsx("code",{style:{background:l?"#1a1a24":"#e4e4f4",padding:"1px 6px",borderRadius:4,fontSize:"0.83rem"},children:".js"})," file into"," ",u.jsx("code",{style:{background:l?"#1a1a24":"#e4e4f4",padding:"1px 6px",borderRadius:4,fontSize:"0.83rem"},children:"~/SamarthyaBot_Files/plugins/"})," ","and the agent learns it on the fly — no restart required."]}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:["Hot-reload without restarting","Full async/await support","Type-safe parameter schema","Access to all memory APIs"].map((A,R)=>u.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:"0.87rem",color:y},children:[u.jsx(Wx,{size:16,color:"#22c55e"})," ",A]},R))})]}),u.jsx("div",{style:{flex:1.2,minWidth:300},children:u.jsxs("div",{style:{...Xu(l,g)},children:[u.jsxs("div",{style:Qu(l),children:[u.jsx("div",{style:{display:"flex",gap:7},children:["#ff5f56","#ffbd2e","#27c93f"].map(A=>u.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:A}},A))}),u.jsx("span",{style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:2,color:D},children:"plugins/hello.js"}),u.jsx(xm,{text:ym,dark:l})]}),u.jsx("pre",{style:{padding:"22px 24px",fontFamily:"monospace",fontSize:"0.8rem",lineHeight:1.8,overflowX:"auto",color:l?"#b0b0e0":"#3a3a6e"},children:ym})]})})]})}),u.jsxs("section",{id:"security",className:"section-padded",style:{maxWidth:1100,margin:"0 auto",padding:"96px 24px"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[u.jsx(Ja,{dark:l,children:"Privacy"}),u.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Zero-Trust. Local-First. Always."}),u.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.93rem",maxWidth:520,margin:"14px auto 0"},children:"Connecting an AI to your real-world data requires trust. That's why we built privacy in from the ground up."})]}),u.jsx("div",{className:"spec-grid",style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:20},children:[{icon:u.jsx(hc,{size:22}),accent:"#6ee7f7",title:"Local Control Plane",desc:"The gateway runs entirely on YOUR machine. No SaaS, no subscription, no vendor lock-in."},{icon:u.jsx(cc,{size:22}),accent:"#22c55e",title:"Offline-Ready with Ollama",desc:"Swap to Ollama for 100% offline inference. Zero data ever reaches a remote server."},{icon:u.jsx(Rv,{size:22}),accent:"#a78bfa",title:"AES-256 Vault",desc:"All sensitive data including API keys are encrypted at rest with your own vault key."},{icon:u.jsx(pc,{size:22}),accent:"#FF9933",title:"Emergency Kill Switch",desc:"Stop all background agents instantly with a single command from the dashboard."}].map((A,R)=>u.jsxs("div",{className:"card-hover",style:{padding:"28px 24px",borderRadius:14,border:`1px solid ${g}`,background:b,display:"flex",flexDirection:"column"},children:[u.jsx("div",{style:{width:42,height:42,borderRadius:10,background:`${A.accent}18`,display:"flex",alignItems:"center",justifyContent:"center",color:A.accent,marginBottom:16},children:A.icon}),u.jsx("h3",{style:{fontSize:"0.98rem",fontWeight:800,color:v,marginBottom:8},children:A.title}),u.jsx("p",{style:{fontSize:"0.85rem",color:y,lineHeight:1.7},children:A.desc})]},R))})]}),u.jsx("section",{style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:u.jsxs("div",{style:{maxWidth:1100,margin:"0 auto"},children:[u.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[u.jsx(Ja,{dark:l,children:"Community"}),u.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:v,marginTop:14,letterSpacing:"-1.5px"},children:"Loved by Developers"})]}),u.jsx("div",{className:"test-grid",style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:20},children:Wb.map((A,R)=>u.jsxs("div",{className:"card-hover",style:{padding:"26px",borderRadius:14,border:`1px solid ${g}`,background:l?"#0e0e16":"#ffffff"},children:[u.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center",marginBottom:16},children:[u.jsx("div",{style:{width:40,height:40,borderRadius:"50%",background:A.avatarBg,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.85rem",fontWeight:900,color:"#fff",flexShrink:0,letterSpacing:"-0.5px"},children:A.initials}),u.jsxs("div",{children:[u.jsx("div",{style:{fontWeight:800,fontSize:"0.9rem",color:v},children:A.name}),u.jsx("div",{style:{fontSize:"0.76rem",color:D,marginTop:2},children:A.handle})]}),u.jsx("div",{style:{marginLeft:"auto",display:"flex",gap:2},children:[1,2,3,4,5].map(C=>u.jsx(Fp,{size:11,fill:"#FF9933",color:"#FF9933"},C))})]}),u.jsxs("p",{style:{fontSize:"0.9rem",color:y,lineHeight:1.75,fontStyle:"italic"},children:['"',A.text,'"']})]},R))})]})}),u.jsx("section",{style:{maxWidth:860,margin:"0 auto",padding:"96px 24px"},children:u.jsxs("div",{className:"cta-pad",style:{borderRadius:22,overflow:"hidden",position:"relative",padding:"76px 60px",textAlign:"center",background:l?"linear-gradient(135deg, #120a02 0%, #0c0c16 50%, #060818 100%)":"linear-gradient(135deg, #fff8f0 0%, #ffffff 50%, #f0f0ff 100%)",border:`1px solid ${l?"#2a1a0a":"#f0e8e0"}`},children:[u.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"radial-gradient(ellipse at 50% 0%, rgba(255,153,51,0.10) 0%, transparent 65%)",pointerEvents:"none"}}),u.jsxs("div",{style:{position:"relative"},children:[u.jsx("span",{style:{fontSize:"3rem",display:"block",marginBottom:18},children:"🇮🇳"}),u.jsxs("h2",{style:{fontSize:"clamp(1.8rem, 5vw, 2.8rem)",fontWeight:950,color:v,letterSpacing:"-2px",marginBottom:18,lineHeight:1.15},children:["Built for India's",u.jsx("br",{}),"Digital Future"]}),u.jsx("p",{style:{color:y,fontSize:"0.95rem",maxWidth:480,margin:"0 auto 40px",lineHeight:1.75},children:"Native support for GST portals, IRCTC, UPI, and Hinglish — the first Agentic OS designed from the ground up for the Indian digital highway."}),u.jsxs("div",{style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[u.jsxs("a",{href:"#install",onClick:A=>p(A,"#install"),className:"btn-primary",children:["Start Building ",u.jsx(Hx,{size:16})]}),u.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",className:"btn-secondary",children:[u.jsx(Fp,{size:16})," Star on GitHub"]})]})]})]})}),u.jsxs("footer",{style:{borderTop:`1px solid ${g}`,padding:"64px 24px 40px"},children:[u.jsxs("div",{className:"footer-inner",style:{maxWidth:1100,margin:"0 auto",display:"flex",justifyContent:"space-between",gap:40,flexWrap:"wrap",marginBottom:52},children:[u.jsxs("div",{style:{maxWidth:250},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,fontWeight:900,fontSize:"1.05rem",color:v,marginBottom:12},children:[u.jsx("span",{style:vm,children:u.jsx("img",{src:"/logo.png",alt:"SamarthyaBot",style:{width:"24px",height:"24px",objectFit:"contain"}})}),"Samarthya",u.jsx("span",{style:{color:"#FF9933"},children:"Bot"})]}),u.jsx("p",{style:{fontSize:"0.82rem",color:y,lineHeight:1.7},children:"Privacy-first agentic OS built for India's digital future. Run it locally, own your intelligence."}),u.jsxs("div",{style:{display:"flex",gap:8,marginTop:18},children:[u.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",style:bm(l,g),children:u.jsx(Hu,{size:14,color:y})}),u.jsx("a",{href:"https://www.npmjs.com/package/samarthya-bot",target:"_blank",rel:"noreferrer",style:bm(l,g),children:u.jsx(Xm,{size:14,color:y})})]})]}),u.jsx("div",{style:{display:"flex",gap:52,flexWrap:"wrap"},children:[{heading:"Product",links:[{label:"Features",href:"#features",scroll:!0},{label:"CLI Reference",href:"#cli",scroll:!0},{label:"Architecture",href:"#architecture",scroll:!0},{label:"Dashboard",href:"/dashboard",internal:!0}]},{heading:"Resources",links:[{label:"GitHub",href:"https://github.com/mebishnusahu0595/SamarthyaBot",ext:!0},{label:"NPM Package",href:"https://www.npmjs.com/package/samarthya-bot",ext:!0},{label:"Report a Bug",href:"https://github.com/mebishnusahu0595/SamarthyaBot/issues",ext:!0}]}].map((A,R)=>u.jsxs("div",{children:[u.jsx("div",{style:{fontWeight:800,fontSize:"0.72rem",letterSpacing:"2px",textTransform:"uppercase",color:D,marginBottom:18},children:A.heading}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:A.links.map((C,w)=>C.internal?u.jsx(ui,{to:C.href,style:{fontSize:"0.86rem",color:y,fontWeight:600},onMouseEnter:Y=>Y.target.style.color=v,onMouseLeave:Y=>Y.target.style.color=y,children:C.label},w):C.ext?u.jsxs("a",{href:C.href,target:"_blank",rel:"noreferrer",style:{fontSize:"0.86rem",color:y,fontWeight:600,display:"flex",alignItems:"center",gap:5},onMouseEnter:Y=>Y.currentTarget.style.color=v,onMouseLeave:Y=>Y.currentTarget.style.color=y,children:[C.label," ",u.jsx(ov,{size:11})]},w):u.jsx("a",{href:C.href,style:{fontSize:"0.86rem",color:y,fontWeight:600},onClick:Y=>p(Y,C.href),onMouseEnter:Y=>Y.target.style.color=v,onMouseLeave:Y=>Y.target.style.color=y,children:C.label},w))})]},R))})]}),u.jsxs("div",{style:{maxWidth:1100,margin:"0 auto",paddingTop:24,borderTop:`1px solid ${g}`,display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:10},children:[u.jsxs("p",{style:{fontSize:"0.76rem",color:D},children:["© 2025 Samarthya Project · MIT License · Built with ❤️ in India by ",u.jsx("strong",{style:{color:y},children:"Bishnu Sahu"})]}),u.jsx("p",{style:{fontSize:"0.72rem",color:D},children:"Not affiliated with OpenAI or Anthropic 🇮🇳"})]})]})]})]})}const vm={width:34,height:34,borderRadius:8,background:"#0e0e16",border:"1px solid #2a2a38",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},Ib=()=>({width:84,height:84,borderRadius:22,objectFit:"contain",filter:"drop-shadow(0 8px 28px rgba(255,153,51,0.40))",flexShrink:0}),Pb=(l,o,c)=>({position:"fixed",top:0,left:0,right:0,zIndex:999,background:o?l?"rgba(6,6,10,0.88)":"rgba(255,255,255,0.88)":"transparent",backdropFilter:o?"blur(18px) saturate(160%)":"none",borderBottom:o?`1px solid ${c}`:"1px solid transparent",transition:"all 0.3s ease"}),eS=()=>({maxWidth:1100,margin:"0 auto",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 24px",height:66}),tS=(l,o)=>({width:36,height:36,borderRadius:9,border:`1.5px solid ${o}`,background:"transparent",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:l?"#888":"#555"}),aS=(l,o)=>({display:"inline-flex",alignItems:"center",gap:10,padding:"7px 16px",borderRadius:100,border:`1px solid ${o}`,background:l?"rgba(255,255,255,0.025)":"rgba(0,0,0,0.025)",marginBottom:30,cursor:"default"}),Xu=(l,o)=>({borderRadius:14,overflow:"hidden",border:`1px solid ${o}`,background:l?"#09090f":"#111"}),Qu=(l,o)=>({padding:"11px 16px",display:"flex",alignItems:"center",justifyContent:"space-between",background:l?"rgba(255,255,255,0.02)":"rgba(255,255,255,0.04)",borderBottom:`1px solid ${l?"#151520":"#1e1e28"}`}),nS=l=>({background:"none",border:"none",cursor:"pointer",padding:"4px 6px",borderRadius:6,flexShrink:0,display:"flex",alignItems:"center"}),lS=()=>({display:"inline-flex",alignItems:"center",gap:8,padding:"5px 14px",borderRadius:100,background:"rgba(255,153,51,0.08)",border:"1px solid rgba(255,153,51,0.18)"}),bm=(l,o)=>({width:32,height:32,borderRadius:8,border:`1.5px solid ${o}`,display:"flex",alignItems:"center",justifyContent:"center",transition:"border-color 0.15s",background:"transparent"}),qr=[{id:"chat",title:"⟩ Chat Providers",subtitle:"Message SamarthyaBot from any chat app — it responds right where you are.",items:[{name:"WhatsApp",nameHi:"व्हाट्सएप",icon:"📱",desc:"WhatsApp Business Cloud API",status:"live",tag:"🇮🇳 #1 in India"},{name:"Telegram",nameHi:"टेलीग्राम",icon:"✈️",desc:"Bot API integration",status:"live",tag:"Active"},{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:""}]}],iS={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 rS({user:l}){const[o,c]=z.useState(qr.reduce((g,v)=>({...g,[v.id]:!0}),{})),[s,f]=z.useState("all"),h=g=>{c(v=>({...v,[g]:!v[g]}))},p=qr.map(g=>({...g,items:s==="all"?g.items:g.items.filter(v=>v.status===s)})).filter(g=>g.items.length>0),x=qr.flatMap(g=>g.items).filter(g=>g.status==="live").length,b=qr.flatMap(g=>g.items).filter(g=>g.status==="coming").length;return u.jsxs("div",{style:je.container,children:[u.jsxs("div",{style:je.header,children:[u.jsxs("h1",{style:je.title,children:[u.jsx(hi,{size:28,color:"#FF9933"}),"Integrations"]}),u.jsxs("p",{style:je.subtitle,children:[u.jsx("span",{style:je.countBadge,children:x})," live integrations with real tools & services.",u.jsx("br",{}),"Chat from WhatsApp, control files, send emails, check weather — all from one AI."]})]}),u.jsx("div",{style:je.filterBar,children:[{key:"all",label:`All (${x+b})`},{key:"live",label:`✅ Live (${x})`},{key:"coming",label:`🔜 Coming (${b})`}].map(g=>u.jsx("button",{onClick:()=>f(g.key),style:{...je.filterBtn,...s===g.key?je.filterBtnActive:{}},children:g.label},g.key))}),p.map(g=>u.jsxs("div",{style:je.category,children:[u.jsxs("button",{onClick:()=>h(g.id),style:je.categoryHeader,children:[u.jsxs("div",{children:[u.jsx("h2",{style:je.categoryTitle,children:g.title}),u.jsx("p",{style:je.categorySubtitle,children:g.subtitle})]}),o[g.id]?u.jsx(Kx,{size:20}):u.jsx(Vx,{size:20})]}),o[g.id]&&u.jsx("div",{style:je.grid,children:g.items.map((v,y)=>{const D=iS[v.status];return u.jsxs("div",{style:je.card,children:[u.jsxs("div",{style:je.cardTop,children:[u.jsx("span",{style:je.cardIcon,children:v.icon}),u.jsxs("div",{style:je.cardInfo,children:[u.jsx("h3",{style:je.cardName,children:v.name}),u.jsx("p",{style:je.cardNameHi,children:v.nameHi})]}),v.tag&&u.jsx("span",{style:{...je.tag,background:v.tag.includes("Real")?"rgba(19,136,8,0.3)":v.tag.includes("🇮🇳")?"rgba(255,153,51,0.2)":"rgba(100,100,200,0.2)",color:v.tag.includes("Real")?"#4ade80":v.tag.includes("🇮🇳")?"#FF9933":"#a0a0ff"},children:v.tag})]}),u.jsx("p",{style:je.cardDesc,children:v.desc}),u.jsx("div",{style:{...je.statusBadge,background:D.bg,color:D.color},children:D.label})]},y)})})]},g.id)),u.jsxs("div",{style:je.footerCTA,children:[u.jsx("h2",{style:je.ctaTitle,children:"🔧 Want to add more integrations?"}),u.jsxs("p",{style:je.ctaText,children:["SamarthyaBot is open-source. Add your own tools in ",u.jsx("code",{style:je.code,children:"toolRegistry.js"})]}),u.jsxs("div",{style:je.ctaButtons,children:[u.jsxs("div",{style:je.ctaCard,children:[u.jsx("span",{style:je.ctaIcon,children:"📧"}),u.jsx("strong",{children:"Email Setup"}),u.jsx("p",{style:je.ctaSmall,children:"Add Gmail App Password to .env"})]}),u.jsxs("div",{style:je.ctaCard,children:[u.jsx("span",{style:je.ctaIcon,children:"📱"}),u.jsx("strong",{children:"WhatsApp Setup"}),u.jsx("p",{style:je.ctaSmall,children:"Meta Business API token"})]}),u.jsxs("div",{style:je.ctaCard,children:[u.jsx("span",{style:je.ctaIcon,children:"🏠"}),u.jsx("strong",{children:"Offline Mode"}),u.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"}},Zu={folder:{icon:Vm,color:"#FF9933"},txt:{icon:Iu,color:"#94a3b8"},md:{icon:Iu,color:"#60a5fa"},json:{icon:Ur,color:"#fbbf24"},js:{icon:Ur,color:"#fbbf24"},html:{icon:Ur,color:"#f97316"},css:{icon:Ur,color:"#38bdf8"},png:{icon:Nu,color:"#a78bfa"},jpg:{icon:Nu,color:"#a78bfa"},jpeg:{icon:Nu,color:"#a78bfa"},pdf:{icon:Yp,color:"#ef4444"},default:{icon:Yp,color:"#64748b"}};function oS(l){return l.type==="folder"?Zu.folder:Zu[l.extension]||Zu.default}function Sm(l){return l?l<1024?`${l} B`:l<1048576?`${(l/1024).toFixed(1)} KB`:`${(l/1048576).toFixed(1)} MB`:"—"}function sS(l){return new Date(l).toLocaleString("en-IN",{timeZone:"Asia/Kolkata",day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function uS({user:l}){const[o,c]=z.useState([]),[s,f]=z.useState(""),[h,p]=z.useState(!1),[x,b]=z.useState(null),[g,v]=z.useState(null),[y,D]=z.useState(!1),[A,R]=z.useState(""),[C,w]=z.useState(""),Y=z.useRef(null);z.useEffect(()=>{I(),X()},[s]);const I=async()=>{p(!0),w("");try{const Z=await gn.list(s);c(Z.data.items||[])}catch(Z){w(Z.response?.data?.error||"Failed to load files"),c([])}finally{p(!1)}},X=async()=>{try{const Z=await gn.getStats();b(Z.data.stats)}catch{}},le=Z=>{Z.type==="folder"?f(Z.path):me(Z)},ue=()=>{const Z=s.split("/");Z.pop(),f(Z.join("/"))},me=async Z=>{try{const fe=await gn.read(Z.path);v(fe.data)}catch{w("Cannot preview this file")}},K=Z=>{const fe=gn.download(Z.path);window.open(fe,"_blank")},we=async Z=>{const fe=Z.type==="folder"?`Delete folder "${Z.name}" and all its contents?`:`Delete file "${Z.name}"?`;if(window.confirm(fe))try{await gn.deleteFile(Z.path),I(),X()}catch(xe){w(xe.response?.data?.error||"Delete failed")}},De=async()=>{if(A.trim())try{await gn.mkdir(A.trim(),s),R(""),D(!1),I()}catch(Z){w(Z.response?.data?.error||"Failed to create folder")}},it=async Z=>{const fe=Z.target.files?.[0];if(!fe)return;const xe=new FileReader;xe.onload=async()=>{try{await gn.upload(fe.name,xe.result,s),I(),X()}catch(_e){w(_e.response?.data?.error||"Upload failed")}},fe.type.startsWith("text/")||["application/json","application/javascript"].includes(fe.type)?xe.readAsText(fe):xe.readAsDataURL(fe),Z.target.value=""},We=["My Stuff",...s.split("/").filter(Boolean)];return u.jsxs("div",{style:he.container,children:[u.jsxs("div",{style:he.header,children:[u.jsxs("div",{style:he.headerLeft,children:[u.jsx(fc,{size:24,color:"#FF9933"}),u.jsx("h1",{style:he.title,children:"My Stuff"}),x&&u.jsxs("span",{style:he.statsTag,children:[x.fileCount," files · ",x.folderCount," folders · ",x.totalSizeFormatted]})]}),u.jsxs("div",{style:he.headerActions,children:[u.jsxs("button",{onClick:()=>D(!0),style:he.actionBtn,children:[u.jsx(Vp,{size:16})," New Folder"]}),u.jsxs("button",{onClick:()=>Y.current?.click(),style:he.actionBtn,children:[u.jsx(a2,{size:16})," Upload"]}),u.jsx("button",{onClick:I,style:he.actionBtnIcon,children:u.jsx(Lv,{size:16})}),u.jsx("input",{ref:Y,type:"file",onChange:it,style:{display:"none"}})]})]}),u.jsx("div",{style:he.breadcrumb,children:We.map((Z,fe)=>u.jsxs(Ir.Fragment,{children:[fe>0&&u.jsx(ll,{size:14,color:"#64748b"}),u.jsx("button",{onClick:()=>{if(fe===0)f("");else{const xe=s.split("/").slice(0,fe).join("/");f(xe)}},style:{...he.crumbItem,color:fe===We.length-1?"#FF9933":"#94a3b8"},children:Z})]},fe))}),y&&u.jsxs("div",{style:he.newFolderRow,children:[u.jsx(Vp,{size:18,color:"#FF9933"}),u.jsx("input",{type:"text",value:A,onChange:Z=>R(Z.target.value),onKeyDown:Z=>Z.key==="Enter"&&De(),placeholder:"Folder name...",style:he.newFolderInput,autoFocus:!0}),u.jsx("button",{onClick:De,style:he.newFolderOk,children:"Create"}),u.jsx("button",{onClick:()=>{D(!1),R("")},style:he.newFolderCancel,children:u.jsx(Kp,{size:16})})]}),C&&u.jsxs("div",{style:he.error,children:["❌ ",C,u.jsx("button",{onClick:()=>w(""),style:he.errorClose,children:"×"})]}),s&&u.jsxs("button",{onClick:ue,style:he.backBtn,children:[u.jsx(Bx,{size:16})," Back"]}),h?u.jsx("div",{style:he.loadingBox,children:"Loading..."}):o.length===0?u.jsxs("div",{style:he.emptyBox,children:[u.jsx(Vm,{size:48,color:"#333"}),u.jsx("p",{style:he.emptyText,children:"This folder is empty"}),u.jsx("p",{style:he.emptyHint,children:"Upload a file or ask SamarthyaBot to create one in chat!"})]}):u.jsx("div",{style:he.fileGrid,children:o.map((Z,fe)=>{const xe=oS(Z),_e=xe.icon;return u.jsxs("div",{style:he.fileCard,onDoubleClick:()=>le(Z),children:[u.jsxs("div",{style:he.fileCardTop,onClick:()=>le(Z),children:[u.jsx(_e,{size:32,color:xe.color}),u.jsxs("div",{style:he.fileInfo,children:[u.jsx("span",{style:he.fileName,children:Z.name}),u.jsxs("span",{style:he.fileMeta,children:[Z.type==="folder"?"Folder":Sm(Z.size),Z.modified&&` · ${sS(Z.modified)}`]})]})]}),u.jsxs("div",{style:he.fileActions,children:[Z.type==="file"&&u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>me(Z),style:he.fileActionBtn,title:"Preview",children:u.jsx(Ym,{size:14})}),u.jsx("button",{onClick:()=>K(Z),style:he.fileActionBtn,title:"Download",children:u.jsx(iv,{size:14})})]}),u.jsx("button",{onClick:()=>we(Z),style:{...he.fileActionBtn,...he.deleteBtn},title:"Delete",children:u.jsx(Zm,{size:14})})]})]},fe)})}),g&&u.jsx("div",{style:he.modalOverlay,onClick:()=>v(null),children:u.jsxs("div",{style:he.modal,onClick:Z=>Z.stopPropagation(),children:[u.jsxs("div",{style:he.modalHeader,children:[u.jsxs("h3",{style:he.modalTitle,children:[u.jsx(Iu,{size:18,color:"#FF9933"}),g.name]}),u.jsxs("span",{style:he.modalMeta,children:[Sm(g.size)," · ",g.extension?.toUpperCase()]}),u.jsx("button",{onClick:()=>v(null),style:he.modalClose,children:u.jsx(Kp,{size:20})})]}),u.jsx("pre",{style:he.previewContent,children:g.content})]})})]})}const he={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"}},cS=({user:l,loading:o,updateUser:c,sidebarOpen:s,setSidebarOpen:f})=>{const h=Wt();return o&&h.pathname!=="/"?u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",flexDirection:"column",background:"var(--bg-primary)"},children:[u.jsx("div",{style:{width:"48px",height:"48px",border:"3px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),u.jsx("span",{style:{color:"var(--text-muted)"},children:"Loading SamarthyaBot..."})]}):h.pathname==="/"?u.jsx($b,{}):u.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[u.jsx(c2,{user:l,isOpen:s,onToggle:()=>f(!s)}),u.jsx("main",{style:{flex:1,minHeight:"100vh"},children:u.jsxs(K1,{children:[u.jsx(aa,{path:"/dashboard",element:u.jsx(Xb,{user:l})}),u.jsx(aa,{path:"/chat",element:u.jsx(dm,{user:l})}),u.jsx(aa,{path:"/chat/:id",element:u.jsx(dm,{user:l})}),u.jsx(aa,{path:"/settings",element:u.jsx(Qb,{user:l,onUpdate:c})}),u.jsx(aa,{path:"/audit",element:u.jsx(Zb,{user:l})}),u.jsx(aa,{path:"/tools",element:u.jsx(Fb,{user:l})}),u.jsx(aa,{path:"/integrations",element:u.jsx(rS,{user:l})}),u.jsx(aa,{path:"/my-stuff",element:u.jsx(uS,{user:l})}),u.jsx(aa,{path:"*",element:u.jsx(Z1,{to:"/dashboard"})})]})})]})};function fS(){const[l,o]=z.useState(null),[c,s]=z.useState(!0),[f,h]=z.useState(!0);z.useEffect(()=>{(async()=>{try{const b=await bc.getProfile();o(b.data.user)}catch(b){console.error(b)}s(!1)})()},[]);const p=x=>{o(x)};return u.jsx(xx,{children:u.jsx(cS,{user:l,loading:c,updateUser:p,sidebarOpen:f,setSidebarOpen:h})})}Wy.createRoot(document.getElementById("root")).render(u.jsx(Ir.StrictMode,{children:u.jsx(fS,{})}));