levix-bot 4.0.0-beta → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -2
- package/app.cjs +9 -3
- package/package.json +1 -1
- package/public/dashboard/assets/index-BKU7nW6g.css +2 -0
- package/public/dashboard/assets/index-CTOEAQIt.js +426 -0
- package/public/dashboard/index.html +2 -2
- package/src/panel/feedback.cjs +230 -0
- package/src/routes/dashboard.api.esm.js +52 -0
- package/src/services/aiTools.cjs +7 -10
- package/public/dashboard/assets/index-C1b7ijfu.js +0 -391
- package/public/dashboard/assets/index-pYaivHON.css +0 -1
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&c(p)}).observe(document,{childList:!0,subtree:!0});function u(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(d){if(d.ep)return;d.ep=!0;const h=u(d);fetch(d.href,h)}})();function zd(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Cu={exports:{}},Ls={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var hg;function lv(){if(hg)return Ls;hg=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function u(c,d,h){var p=null;if(h!==void 0&&(p=""+h),d.key!==void 0&&(p=""+d.key),"key"in d){h={};for(var g in d)g!=="key"&&(h[g]=d[g])}else h=d;return d=h.ref,{$$typeof:s,type:c,key:p,ref:d!==void 0?d:null,props:h}}return Ls.Fragment=o,Ls.jsx=u,Ls.jsxs=u,Ls}var mg;function sv(){return mg||(mg=1,Cu.exports=lv()),Cu.exports}var r=sv(),Eu={exports:{}},we={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var pg;function iv(){if(pg)return we;pg=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),T=Symbol.for("react.view_transition"),U=Symbol.iterator;function Z(N){return N===null||typeof N!="object"?null:(N=U&&N[U]||N["@@iterator"],typeof N=="function"?N:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,G={};function K(N,S,P){this.props=N,this.context=S,this.refs=G,this.updater=P||R}K.prototype.isReactComponent={},K.prototype.setState=function(N,S){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,S,"setState")},K.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function ee(){}ee.prototype=K.prototype;function $(N,S,P){this.props=N,this.context=S,this.refs=G,this.updater=P||R}var pe=$.prototype=new ee;pe.constructor=$,B(pe,K.prototype),pe.isPureReactComponent=!0;var J=Array.isArray;function V(){}var z={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function se(N,S,P){var ae=P.ref;return{$$typeof:s,type:N,key:S,ref:ae!==void 0?ae:null,props:P}}function W(N,S){return se(N.type,S,N.props)}function ne(N){return typeof N=="object"&&N!==null&&N.$$typeof===s}function X(N){var S={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(P){return S[P]})}var ie=/\/+/g;function ge(N,S){return typeof N=="object"&&N!==null&&N.key!=null?X(""+N.key):S.toString(36)}function C(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(V,V):(N.status="pending",N.then(function(S){N.status==="pending"&&(N.status="fulfilled",N.value=S)},function(S){N.status==="pending"&&(N.status="rejected",N.reason=S)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function F(N,S,P,ae,ye){var fe=typeof N;(fe==="undefined"||fe==="boolean")&&(N=null);var Se=!1;if(N===null)Se=!0;else switch(fe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(N.$$typeof){case s:case o:Se=!0;break;case v:return Se=N._init,F(Se(N._payload),S,P,ae,ye)}}if(Se)return ye=ye(N),Se=ae===""?"."+ge(N,0):ae,J(ye)?(P="",Se!=null&&(P=Se.replace(ie,"$&/")+"/"),F(ye,S,P,"",function(L){return L})):ye!=null&&(ne(ye)&&(ye=W(ye,P+(ye.key==null||N&&N.key===ye.key?"":(""+ye.key).replace(ie,"$&/")+"/")+Se)),S.push(ye)),1;Se=0;var oe=ae===""?".":ae+":";if(J(N))for(var be=0;be<N.length;be++)ae=N[be],fe=oe+ge(ae,be),Se+=F(ae,S,P,fe,ye);else if(be=Z(N),typeof be=="function")for(N=be.call(N),be=0;!(ae=N.next()).done;)ae=ae.value,fe=oe+ge(ae,be++),Se+=F(ae,S,P,fe,ye);else if(fe==="object"){if(typeof N.then=="function")return F(C(N),S,P,ae,ye);throw S=String(N),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.")}return Se}function M(N,S,P){if(N==null)return N;var ae=[],ye=0;return F(N,ae,"","",function(fe){return S.call(P,fe,ye++)}),ae}function re(N){if(N._status===-1){var S=N._result,P=S();P.then(function(ae){(N._status===0||N._status===-1)&&(N._status=1,N._result=ae,P.status===void 0&&(P.status="fulfilled",P.value=ae))},function(ae){(N._status===0||N._status===-1)&&(N._status=2,N._result=ae,P.status===void 0&&(P.status="rejected",P.reason=ae))}),N._status===-1&&(N._status=0,N._result=P)}if(N._status===1)return N._result.default;throw N._result}var Y=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var S=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(S))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function ke(N){var S=z.T,P={};P.types=S!==null?S.types:null,z.T=P;try{var ae=N(),ye=z.S;ye!==null&&ye(P,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(V,Y)}catch(fe){Y(fe)}finally{S!==null&&P.types!==null&&(S.types=P.types),z.T=S}}function Ue(N){var S=z.T;if(S!==null){var P=S.types;P===null?S.types=[N]:P.indexOf(N)===-1&&P.push(N)}else ke(Ue.bind(null,N))}var Ge={map:M,forEach:function(N,S,P){M(N,function(){S.apply(this,arguments)},P)},count:function(N){var S=0;return M(N,function(){S++}),S},toArray:function(N){return M(N,function(S){return S})||[]},only:function(N){if(!ne(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return we.Activity=x,we.Children=Ge,we.Component=K,we.Fragment=u,we.Profiler=d,we.PureComponent=$,we.StrictMode=c,we.Suspense=b,we.ViewTransition=T,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,we.__COMPILER_RUNTIME={__proto__:null,c:function(N){return z.H.useMemoCache(N)}},we.addTransitionType=Ue,we.cache=function(N){return function(){return N.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(N,S,P){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ae=B({},N.props),ye=N.key;if(S!=null)for(fe in S.key!==void 0&&(ye=""+S.key),S)!I.call(S,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&S.ref===void 0||(ae[fe]=S[fe]);var fe=arguments.length-2;if(fe===1)ae.children=P;else if(1<fe){for(var Se=Array(fe),oe=0;oe<fe;oe++)Se[oe]=arguments[oe+2];ae.children=Se}return se(N.type,ye,ae)},we.createContext=function(N){return N={$$typeof:p,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:h,_context:N},N},we.createElement=function(N,S,P){var ae,ye={},fe=null;if(S!=null)for(ae in S.key!==void 0&&(fe=""+S.key),S)I.call(S,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ye[ae]=S[ae]);var Se=arguments.length-2;if(Se===1)ye.children=P;else if(1<Se){for(var oe=Array(Se),be=0;be<Se;be++)oe[be]=arguments[be+2];ye.children=oe}if(N&&N.defaultProps)for(ae in Se=N.defaultProps,Se)ye[ae]===void 0&&(ye[ae]=Se[ae]);return se(N,fe,ye)},we.createRef=function(){return{current:null}},we.forwardRef=function(N){return{$$typeof:g,render:N}},we.isValidElement=ne,we.lazy=function(N){return{$$typeof:v,_payload:{_status:-1,_result:N},_init:re}},we.memo=function(N,S){return{$$typeof:E,type:N,compare:S===void 0?null:S}},we.startTransition=ke,we.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},we.use=function(N){return z.H.use(N)},we.useActionState=function(N,S,P){return z.H.useActionState(N,S,P)},we.useCallback=function(N,S){return z.H.useCallback(N,S)},we.useContext=function(N){return z.H.useContext(N)},we.useDebugValue=function(){},we.useDeferredValue=function(N,S){return z.H.useDeferredValue(N,S)},we.useEffect=function(N,S){return z.H.useEffect(N,S)},we.useEffectEvent=function(N){return z.H.useEffectEvent(N)},we.useId=function(){return z.H.useId()},we.useImperativeHandle=function(N,S,P){return z.H.useImperativeHandle(N,S,P)},we.useInsertionEffect=function(N,S){return z.H.useInsertionEffect(N,S)},we.useLayoutEffect=function(N,S){return z.H.useLayoutEffect(N,S)},we.useMemo=function(N,S){return z.H.useMemo(N,S)},we.useOptimistic=function(N,S){return z.H.useOptimistic(N,S)},we.useReducer=function(N,S,P){return z.H.useReducer(N,S,P)},we.useRef=function(N){return z.H.useRef(N)},we.useState=function(N){return z.H.useState(N)},we.useSyncExternalStore=function(N,S,P){return z.H.useSyncExternalStore(N,S,P)},we.useTransition=function(){return z.H.useTransition()},we.version="19.3.0",we}var gg;function kd(){return gg||(gg=1,Eu.exports=iv()),Eu.exports}var Q=kd();const Qs=zd(Q);var zu={exports:{}},qs={},ku={exports:{}},Mu={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var xg;function rv(){return xg||(xg=1,(function(s){function o(C,F){var M=C.length;C.push(F);e:for(;0<M;){var re=M-1>>>1,Y=C[re];if(0<d(Y,F))C[re]=F,C[M]=Y,M=re;else break e}}function u(C){return C.length===0?null:C[0]}function c(C){if(C.length===0)return null;var F=C[0],M=C.pop();if(M!==F){C[0]=M;e:for(var re=0,Y=C.length,ke=Y>>>1;re<ke;){var Ue=2*(re+1)-1,Ge=C[Ue],N=Ue+1,S=C[N];if(0>d(Ge,M))N<Y&&0>d(S,Ge)?(C[re]=S,C[N]=M,re=N):(C[re]=Ge,C[Ue]=M,re=Ue);else if(N<Y&&0>d(S,M))C[re]=S,C[N]=M,re=N;else break e}}return F}function d(C,F){var M=C.sortIndex-F.sortIndex;return M!==0?M:C.id-F.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var p=Date,g=p.now();s.unstable_now=function(){return p.now()-g}}var b=[],E=[],v=1,x=null,T=3,U=!1,Z=!1,R=!1,B=!1,G=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;function $(C){for(var F=u(E);F!==null;){if(F.callback===null)c(E);else if(F.startTime<=C)c(E),F.sortIndex=F.expirationTime,o(b,F);else break;F=u(E)}}function pe(C){if(R=!1,$(C),!Z)if(u(b)!==null)Z=!0,J||(J=!0,ne());else{var F=u(E);F!==null&&ge(pe,F.startTime-C)}}var J=!1,V=-1,z=5,I=-1;function se(){return B?!0:!(s.unstable_now()-I<z)}function W(){if(B=!1,J){var C=s.unstable_now();I=C;var F=!0;try{e:{Z=!1,R&&(R=!1,K(V),V=-1),U=!0;var M=T;try{t:{for($(C),x=u(b);x!==null&&!(x.expirationTime>C&&se());){var re=x.callback;if(typeof re=="function"){x.callback=null,T=x.priorityLevel;var Y=re(x.expirationTime<=C);if(C=s.unstable_now(),typeof Y=="function"){x.callback=Y,$(C),F=!0;break t}x===u(b)&&c(b),$(C)}else c(b);x=u(b)}if(x!==null)F=!0;else{var ke=u(E);ke!==null&&ge(pe,ke.startTime-C),F=!1}}break e}finally{x=null,T=M,U=!1}F=void 0}}finally{F?ne():J=!1}}}var ne;if(typeof ee=="function")ne=function(){ee(W)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,ie=X.port2;X.port1.onmessage=W,ne=function(){ie.postMessage(null)}}else ne=function(){G(W,0)};function ge(C,F){V=G(function(){C(s.unstable_now())},F)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(C){C.callback=null},s.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<C?Math.floor(1e3/C):5},s.unstable_getCurrentPriorityLevel=function(){return T},s.unstable_next=function(C){switch(T){case 1:case 2:case 3:var F=3;break;default:F=T}var M=T;T=F;try{return C()}finally{T=M}},s.unstable_requestPaint=function(){B=!0},s.unstable_runWithPriority=function(C,F){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var M=T;T=C;try{return F()}finally{T=M}},s.unstable_scheduleCallback=function(C,F,M){var re=s.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?re+M:re):M=re,C){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=M+Y,C={id:v++,callback:F,priorityLevel:C,startTime:M,expirationTime:Y,sortIndex:-1},M>re?(C.sortIndex=M,o(E,C),u(b)===null&&C===u(E)&&(R?(K(V),V=-1):R=!0,ge(pe,M-re))):(C.sortIndex=Y,o(b,C),Z||U||(Z=!0,J||(J=!0,ne()))),C},s.unstable_shouldYield=se,s.unstable_wrapCallback=function(C){var F=T;return function(){var M=T;T=F;try{return C.apply(this,arguments)}finally{T=M}}}})(Mu)),Mu}var bg;function ov(){return bg||(bg=1,ku.exports=rv()),ku.exports}var Ou={exports:{}},vt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var yg;function cv(){if(yg)return vt;yg=1;var s=kd();function o(v){var x="https://react.dev/errors/"+v;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)x+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+v+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(o(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal"),h=Symbol.for("react.recoverable"),p=Symbol.for("react.optimistic_key");function g(v,x,T){var U=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:U==null?null:U===p?p:""+U,children:v,containerInfo:x,implementation:T}}var b=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(v,x){if(v==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,vt.browser=function(v){return{$$typeof:h,_reason:v}},vt.createPortal=function(v,x){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(o(299));return g(v,x,null,T)},vt.flushSync=function(v){var x=b.T,T=c.p;try{if(b.T=null,c.p=2,v)return v()}finally{b.T=x,c.p=T,c.d.f()}},vt.preconnect=function(v,x){typeof v=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,c.d.C(v,x))},vt.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},vt.preinit=function(v,x){if(typeof v=="string"&&x&&typeof x.as=="string"){var T=x.as,U=E(T,x.crossOrigin),Z=typeof x.integrity=="string"?x.integrity:void 0,R=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;T==="style"?c.d.S(v,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:U,integrity:Z,fetchPriority:R}):T==="script"&&c.d.X(v,{crossOrigin:U,integrity:Z,fetchPriority:R,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},vt.preinitModule=function(v,x){if(typeof v=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var T=E(x.as,x.crossOrigin);c.d.M(v,{crossOrigin:T,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}}else x==null&&c.d.M(v)},vt.preload=function(v,x){if(typeof v=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var T=x.as,U=E(T,x.crossOrigin);c.d.L(v,T,{crossOrigin:U,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},vt.preloadModule=function(v,x){if(typeof v=="string")if(x){var T=E(x.as,x.crossOrigin);c.d.m(v,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:T,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}else c.d.m(v)},vt.requestFormReset=function(v){c.d.r(v)},vt.unstable_batchedUpdates=function(v,x){return v(x)},vt.useFormState=function(v,x,T){return b.H.useFormState(v,x,T)},vt.useFormStatus=function(){return b.H.useHostTransitionStatus()},vt.version="19.3.0",vt}var vg;function uv(){if(vg)return Ou.exports;vg=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Ou.exports=cv(),Ou.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Ng;function dv(){if(Ng)return qs;Ng=1;var s=ov(),o=kd(),u=uv();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(c(188))}function E(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,a=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return b(l),e;if(i===a)return b(l),t;i=i.sibling}throw Error(c(188))}if(n.return!==a.return)n=l,a=i;else{for(var f=!1,m=l.child;m;){if(m===n){f=!0,n=l,a=i;break}if(m===a){f=!0,a=l,n=i;break}m=m.sibling}if(!f){for(m=i.child;m;){if(m===n){f=!0,n=i,a=l;break}if(m===a){f=!0,a=i,n=l;break}m=m.sibling}if(!f)throw Error(c(189))}}if(n.alternate!==a)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?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}function x(e,t,n,a,l,i){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,l,i)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&x(e.child,t,n,a,l,i))return!0;e=e.sibling}return!1}function T(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function U(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Z(e){var t=[null,null],n=T(e);return n===null||R(t,e,n.child,{foundSelf:!1}),t}function R(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&R(e,t,n.child,a))return!0;n=n.sibling}return!1}function B(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(c(559))}}var G=null,K=null;function ee(e,t,n){return e===n?!0:e===t?(G=e,!0):!1}function $(e,t,n){return e===n?(K=e,!1):e===t?(K!==null&&(G=e),!0):!1}function pe(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function J(e,t,n){for(var a=0,l=e;l;l=n(l))a++;l=0;for(var i=t;i;i=n(i))l++;for(;0<a-l;)e=n(e),a--;for(;0<l-a;)t=n(t),l--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var V=Object.assign,z=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),se=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ie=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ke=Symbol.for("react.activity"),Ue=Symbol.for("react.legacy_hidden"),Ge=Symbol.for("react.memo_cache_sentinel"),N=Symbol.for("react.view_transition"),S=Symbol.for("react.recoverable"),P=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case X:return"Profiler";case ne:return"StrictMode";case F:return"Suspense";case M:return"SuspenseList";case ke:return"Activity";case N:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case se:return"Portal";case ge:return e.displayName||"Context";case ie:return(e._context.displayName||"Context")+".Consumer";case C:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var Se=Array.isArray,oe=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,be=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},je=[],nt=-1;function Le(e){return{current:e}}function ve(e){0>nt||(e.current=je[nt],je[nt]=null,nt--)}function Be(e,t){nt++,je[nt]=e.current,e.current=t}var Ze=Le(null),Ql=Le(null),Gn=Le(null),Ps=Le(null);function Fs(e,t){switch(Be(Gn,t),Be(Ql,e),Be(Ze,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?wp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=wp(t),e=Sp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ve(Ze),Be(Ze,e)}function Ia(){ve(Ze),ve(Ql),ve(Gn)}function Zr(e){var t=e.memoizedState;t!==null&&(Bl._currentValue=t.memoizedState,Be(Ps,e)),t=Ze.current;var n=Sp(t,e.type);t!==n&&(Be(Ql,e),Be(Ze,n))}function $s(e){Ql.current===e&&(ve(Ze),ve(Ql)),Ps.current===e&&(ve(Ps),Bl._currentValue=L)}var Jr,Vd;function Vn(e){if(Jr===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jr=t&&t[1]||"",Vd=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Jr+e+Vd}var Ir=!1;function Pr(e,t){if(!e||Ir)return"";Ir=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(te){var j=te}Reflect.construct(e,[],H)}else{try{H.call()}catch(te){j=te}H=!1;try{var O=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),H=!0,new e}finally{H&&(O!==void 0?Object.defineProperty(e.prototype,"props",O):delete e.prototype.props)}}}else{try{throw Error()}catch(te){j=te}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(te){if(te&&j&&typeof te.stack=="string")return[te.stack,j.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),f=i[0],m=i[1];if(f&&m){var y=f.split(`
|
|
44
|
+
`),A=m.split(`
|
|
45
|
+
`);for(l=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;if(a===y.length||l===A.length)for(a=y.length-1,l=A.length-1;1<=a&&0<=l&&y[a]!==A[l];)l--;for(;1<=a&&0<=l;a--,l--)if(y[a]!==A[l]){if(a!==1||l!==1)do if(a--,l--,0>l||y[a]!==A[l]){var D=`
|
|
46
|
+
`+y[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=l);break}}}finally{Ir=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Vn(n):""}function o0(e,t){switch(e.tag){case 26:case 27:case 5:return Vn(e.type);case 16:return Vn("Lazy");case 13:return e.child!==t&&t!==null?Vn("Suspense Fallback"):Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 15:return Pr(e.type,!1);case 11:return Pr(e.type.render,!1);case 1:return Pr(e.type,!0);case 31:return Vn("Activity");case 30:return Vn("ViewTransition");default:return""}}function Yd(e){try{var t="",n=null;do t+=o0(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Fr=Object.prototype.hasOwnProperty,$r=s.unstable_scheduleCallback,Wr=s.unstable_cancelCallback,c0=s.unstable_shouldYield,u0=s.unstable_requestPaint,Mt=s.unstable_now,d0=s.unstable_getCurrentPriorityLevel,Qd=s.unstable_ImmediatePriority,Xd=s.unstable_UserBlockingPriority,Ws=s.unstable_NormalPriority,f0=s.unstable_LowPriority,Kd=s.unstable_IdlePriority,h0=s.log,m0=s.unstable_setDisableYieldValue,Xl=null,Ot=null;function Yn(e){if(typeof h0=="function"&&m0(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Xl,e)}catch{}}var Dt=Math.clz32?Math.clz32:x0,p0=Math.log,g0=Math.LN2;function x0(e){return e>>>=0,e===0?32:31-(p0(e)/g0|0)|0}var ei=256,ti=262144,ni=4194304;function va(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&-e;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,n){var a=e.pendingLanes;if(a===0)return 0;var l=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~i,a!==0?l=va(a):(f&=m,f!==0?l=va(f):n||(n=m&~e,n!==0&&(l=va(n))))):(m=a&~i,m!==0?l=va(m):f!==0?l=va(f):n||(n=a&~e,n!==0&&(l=va(n)))),l===0?0:t!==0&&t!==l&&(t&i)===0&&(i=l&-l,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:l}function Kl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Zd(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-Dt(n),l=1<<a;t|=e[a],n&=~l}return t}function b0(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 Jd(){var e=ni;return ni<<=1,(ni&62914560)===0&&(ni=4194304),e}function eo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function y0(e,t,n,a,l,i){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var m=e.entanglements,y=e.expirationTimes,A=e.hiddenUpdates;for(n=f&~n;0<n;){var D=31-Dt(n),H=1<<D;m[D]=0,y[D]=-1;var j=A[D];if(j!==null)for(A[D]=null,D=0;D<j.length;D++){var O=j[D];O!==null&&(O.lane&=-536870913)}n&=~H}a!==0&&Id(e,a,0),i!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function Id(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Pd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Dt(n),l=1<<a;l&t|e[a]&t&&(e[a]|=t),n&=~l}}function Fd(e,t){var n=t&-t;return n=(n&42)!==0?1:to(n),(n&(e.suspendedLanes|t))!==0?0:n}function to(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 no(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $d(){var e=be.p;return e!==0?e:(e=window.event,e===void 0?32:ig(e.type))}function Wd(e,t){var n=be.p;try{return be.p=e,t()}finally{be.p=n}}var jn=Math.random().toString(36).slice(2),mt="__reactFiber$"+jn,At="__reactProps$"+jn,Pa="__reactContainer$"+jn,ef="__reactEvents$"+jn,v0="__reactListeners$"+jn,N0="__reactHandles$"+jn,tf="__reactResources$"+jn,Jl="__reactMarker$"+jn,li="__reactLoad$"+jn;function si(e){delete e[mt],delete e[At],delete e[v0],delete e[N0]}function Na(e){var t;if(t=e[mt])return t;for(var n=e.parentNode;n;){if(t=n[Pa]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Hp(e);e!==null;){if(n=e[mt])return n;e=Hp(e)}return t}e=n,n=e.parentNode}return null}function Fa(e){if(e=e[mt]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Il(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function $a(e){var t=e[tf];return t||(t=e[tf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Jl]=!0}function nf(e){e[li]=void 0}var af=new Set,lf={};function wa(e,t){Wa(e,t),Wa(e+"Capture",t)}function Wa(e,t){for(lf[e]=t,e=0;e<t.length;e++)af.add(t[e])}var w0=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]*$"),sf={},rf={};function S0(e){return Fr.call(rf,e)?!0:Fr.call(sf,e)?!1:w0.test(e)?rf[e]=!0:(sf[e]=!0,!1)}var qe=!1;function of(){var e=qe;return qe=!1,e}function ii(e,t,n){if(S0(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function ri(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function _n(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,a)}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j0(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(f){n=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ao(e){if(!e._valueTracker){var t=cf(e)?"checked":"value";e._valueTracker=j0(e,t,""+e[t])}}function uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=cf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var _0=/[\n"\\]/g;function Qt(e){return e.replace(_0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lo(e,t,n,a,l,i,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?f==="number"&&e.value==t?so(e,Rt(e.value)):so(e,Rt(t)):n!=null?so(e,Rt(n)):a!=null&&e.removeAttribute("value"),l==null&&i!=null&&(e.defaultChecked=!!i),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Rt(m):e.removeAttribute("name")}function df(e,t,n,a,l,i,f,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){ao(e);return}n=n!=null?""+Rt(n):"",t=t!=null?""+Rt(t):n,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),ao(e)}function so(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function el(e,t,n,a){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Rt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,a&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function ff(e,t,n){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Rt(n):""}function hf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(c(92));if(Se(a)){if(1<a.length)throw Error(c(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Rt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ao(e)}function tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var A0=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 mf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||A0.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function pf(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",qe=!0);for(var l in t)a=t[l],t.hasOwnProperty(l)&&n[l]!==a&&(mf(e,l,a),qe=!0)}else for(var i in t)t.hasOwnProperty(i)&&mf(e,i,t[i])}function io(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 T0=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"],["maskType","mask-type"],["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"]]),C0=/^[\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 oi(e){return C0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function cn(){}var ro=null;function oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nl=null,al=null;function gf(e){var t=Fa(e);if(t&&(e=t.stateNode)){var n=e[At]||null;e:switch(e=t.stateNode,t.type){case"input":if(lo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var l=a[At]||null;if(!l)throw Error(c(90));lo(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&uf(a)}break e;case"textarea":ff(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&el(e,!!n.multiple,t,!1)}}}var co=!1;function xf(e,t,n){if(co)return e(t,n);co=!0;try{var a=e(t);return a}finally{if(co=!1,(nl!==null||al!==null)&&(or(),nl&&(t=nl,e=al,al=nl=null,gf(t),e)))for(t=0;t<e.length;t++)gf(e[t])}}function Pl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[At]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,t,typeof n));return n}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uo=!1;if(An)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){uo=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{uo=!1}var Qn=null,fo=null,ci=null;function bf(){if(ci)return ci;var e,t=fo,n=t.length,a,l="value"in Qn?Qn.value:Qn.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var f=n-e;for(a=1;a<=f&&t[n-a]===l[i-a];a++);return ci=l.slice(e,1<a?1-a:void 0)}function ui(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 di(){return!0}function yf(){return!1}function wt(e){function t(n,a,l,i,f){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(n=e[m],this[m]=n?n(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?di:yf,this.isPropagationStopped=yf,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=di)},persist:function(){},isPersistent:di}),t}var Xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fi=wt(Xn),$l=V({},Xn,{view:0,detail:0}),E0=wt($l),ho,mo,Wl,hi=V({},$l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:go,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!==Wl&&(Wl&&e.type==="mousemove"?(ho=e.screenX-Wl.screenX,mo=e.screenY-Wl.screenY):mo=ho=0,Wl=e),ho)},movementY:function(e){return"movementY"in e?e.movementY:mo}}),vf=wt(hi),z0=V({},hi,{dataTransfer:0}),k0=wt(z0),M0=V({},$l,{relatedTarget:0}),po=wt(M0),O0=V({},Xn,{animationName:0,elapsedTime:0,pseudoElement:0}),D0=wt(O0),R0=V({},Xn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),B0=wt(R0),U0=V({},Xn,{data:0}),Nf=wt(U0),L0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q0={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"},H0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function G0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=H0[e])?!!t[e]:!1}function go(){return G0}var V0=V({},$l,{key:function(e){if(e.key){var t=L0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ui(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?q0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:go,charCode:function(e){return e.type==="keypress"?ui(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ui(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Y0=wt(V0),Q0=V({},hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wf=wt(Q0),X0=V({},Xn,{submitter:0}),K0=wt(X0),Z0=V({},$l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:go}),J0=wt(Z0),I0=V({},Xn,{propertyName:0,elapsedTime:0,pseudoElement:0}),P0=wt(I0),F0=V({},hi,{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}),$0=wt(F0),W0=V({},Xn,{newState:0,oldState:0,source:0}),e1=wt(W0),t1=[9,13,27,32],xo=An&&"CompositionEvent"in window,es=null;An&&"documentMode"in document&&(es=document.documentMode);var n1=An&&"TextEvent"in window&&!es,Sf=An&&(!xo||es&&8<es&&11>=es),jf=" ",_f=!1;function Af(e,t){switch(e){case"keyup":return t1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ll=!1;function a1(e,t){switch(e){case"compositionend":return Tf(t);case"keypress":return t.which!==32?null:(_f=!0,jf);case"textInput":return e=t.data,e===jf&&_f?null:e;default:return null}}function l1(e,t){if(ll)return e==="compositionend"||!xo&&Af(e,t)?(e=bf(),ci=fo=Qn=null,ll=!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 Sf&&t.locale!=="ko"?null:t.data;default:return null}}var s1={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 Cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!s1[e.type]:t==="textarea"}function Ef(e,t,n,a){nl?al?al.push(a):al=[a]:nl=a,t=mr(t,"onChange"),0<t.length&&(n=new fi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ts=null,ns=null;function i1(e){gp(e,0)}function mi(e){var t=Il(e);if(uf(t))return e}function zf(e,t){if(e==="change")return t}var kf=!1;if(An){var bo;if(An){var yo="oninput"in document;if(!yo){var Mf=document.createElement("div");Mf.setAttribute("oninput","return;"),yo=typeof Mf.oninput=="function"}bo=yo}else bo=!1;kf=bo&&(!document.documentMode||9<document.documentMode)}function Of(){ts&&(ts.detachEvent("onpropertychange",Df),ns=ts=null)}function Df(e){if(e.propertyName==="value"&&mi(ns)){var t=[];Ef(t,ns,e,oo(e)),xf(i1,t)}}function r1(e,t,n){e==="focusin"?(Of(),ts=t,ns=n,ts.attachEvent("onpropertychange",Df)):e==="focusout"&&Of()}function o1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mi(ns)}function c1(e,t){if(e==="click")return mi(t)}function u1(e,t){if(e==="input"||e==="change")return mi(t)}function d1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:d1;function as(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Fr.call(t,l)||!Bt(e[l],t[l]))return!1}return!0}function vo(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}}function Rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bf(e,t){var n=Rf(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rf(n)}}function Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vo(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 f1=An&&"documentMode"in document&&11>=document.documentMode,sl=null,wo=null,ls=null,So=!1;function qf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;So||sl==null||sl!==vo(a)||(a=sl,"selectionStart"in a&&No(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ls&&as(ls,a)||(ls=a,a=mr(wo,"onSelect"),0<a.length&&(t=new fi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=sl)))}function Sa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var il={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionrun:Sa("Transition","TransitionRun"),transitionstart:Sa("Transition","TransitionStart"),transitioncancel:Sa("Transition","TransitionCancel"),transitionend:Sa("Transition","TransitionEnd")},jo={},Hf={};An&&(Hf=document.createElement("div").style,"AnimationEvent"in window||(delete il.animationend.animation,delete il.animationiteration.animation,delete il.animationstart.animation),"TransitionEvent"in window||delete il.transitionend.transition);function ja(e){if(jo[e])return jo[e];if(!il[e])return e;var t=il[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hf)return jo[e]=t[n];return e}var Gf=ja("animationend"),Vf=ja("animationiteration"),Yf=ja("animationstart"),h1=ja("transitionrun"),m1=ja("transitionstart"),p1=ja("transitioncancel"),Qf=ja("transitionend"),Xf=new Map,_o="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");_o.push("scrollEnd");function tn(e,t){Xf.set(e,t),wa(t,[e])}var g1=0;function Tn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=sn.identifierPrefix;var n=g1++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Kf(e){if(e==null||typeof e=="string")return e;var t=null,n=Al;if(n!==null)for(var a=0;a<n.length;a++){var l=e[n[a]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function Cn(e,t){return e=Kf(e),t=Kf(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var pi=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)},Xt=[],rl=0,Ao=0;function gi(){for(var e=rl,t=Ao=rl=0;t<e;){var n=Xt[t];Xt[t++]=null;var a=Xt[t];Xt[t++]=null;var l=Xt[t];Xt[t++]=null;var i=Xt[t];if(Xt[t++]=null,a!==null&&l!==null){var f=a.pending;f===null?l.next=l:(l.next=f.next,f.next=l),a.pending=l}i!==0&&Zf(n,l,i)}}function xi(e,t,n,a){Xt[rl++]=e,Xt[rl++]=t,Xt[rl++]=n,Xt[rl++]=a,Ao|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function To(e,t,n,a){return xi(e,t,n,a),bi(e)}function _a(e,t){return xi(e,null,null,t),bi(e)}function Zf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var l=!1,i=e.return;i!==null;)i.childLanes|=n,a=i.alternate,a!==null&&(a.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(l=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,l&&t!==null&&(l=31-Dt(n),e=i.hiddenUpdates,a=e[l],a===null?e[l]=[t]:a.push(t),t.lane=n|536870912),i):null}function bi(e){if(50<As)throw As=0,rr=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function x1(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,a){return new x1(e,t,n,a)}function Co(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var n=e.alternate;return n===null?(n=Tt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Jf(e,t){e.flags&=1206910978;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yi(e,t,n,a,l,i){var f=0;if(a=e,typeof a=="function")Co(a)&&(f=1);else if(typeof a=="string")f=Xy(e,n,Ze.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case ke:return e=Tt(31,n,t,l),e.elementType=ke,e.lanes=i,e;case W:return Aa(n.children,l,i,t);case ne:f=8,l|=24;break;case X:return e=Tt(12,n,t,l|2),e.elementType=X,e.lanes=i,e;case F:return e=Tt(13,n,t,l),e.elementType=F,e.lanes=i,e;case M:return e=Tt(19,n,t,l),e.elementType=M,e.lanes=i,e;case Ue:case N:return e=l|32,e=Tt(30,n,t,e),e.elementType=N,e.lanes=i,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ge:f=10;break e;case ie:f=9;break e;case C:f=11;break e;case re:f=14;break e;case Y:f=16,a=null;break e}f=29,n=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Tt(f,n,t,l),t.elementType=e,t.type=a,t.lanes=i,t}function Aa(e,t,n,a){return e=Tt(7,e,a,t),e.lanes=n,e}function Eo(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function If(e){var t=Tt(18,null,null,0);return t.stateNode=e,t}function zo(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pf=new WeakMap;function Kt(e,t){if(typeof e=="object"&&e!==null){var n=Pf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Yd(t)},Pf.set(e,t),t)}return{value:e,source:t,stack:Yd(t)}}var cl=[],ul=0,vi=null,ss=0,Zt=[],Jt=0,Kn=null,un=1,dn="";function zn(e,t){cl[ul++]=ss,cl[ul++]=vi,vi=e,ss=t}function Ff(e,t,n){Zt[Jt++]=un,Zt[Jt++]=dn,Zt[Jt++]=Kn,Kn=e;var a=un;e=dn;var l=32-Dt(a)-1;a&=~(1<<l),n+=1;var i=32-Dt(t)+l;if(30<i){var f=l-l%5;i=(a&(1<<f)-1).toString(32),a>>=f,l-=f,un=1<<32-Dt(t)+l|n<<l|a,dn=i+e}else un=1<<i|n<<l|a,dn=e}function Ni(e){e.return!==null&&(zn(e,1),Ff(e,1,0))}function ko(e){for(;e===vi;)vi=cl[--ul],cl[ul]=null,ss=cl[--ul],cl[ul]=null;for(;e===Kn;)Kn=Zt[--Jt],Zt[Jt]=null,dn=Zt[--Jt],Zt[Jt]=null,un=Zt[--Jt],Zt[Jt]=null}function $f(e,t){Zt[Jt++]=un,Zt[Jt++]=dn,Zt[Jt++]=Kn,un=t.id,dn=t.overflow,Kn=e}var dt=null,Ie=null,Te=!1,Zn=null,It=!1,Mo=Error(c(519));function Jn(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw is(Kt(t,e)),Mo}function Wf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[mt]=e,t[At]=a,n){case"dialog":ze("cancel",t),ze("close",t);break;case"iframe":case"object":case"embed":ze("load",t);break;case"video":case"audio":for(n=0;n<Cs.length;n++)ze(Cs[n],t);break;case"source":ze("error",t);break;case"img":case"image":case"link":ze("error",t),ze("load",t);break;case"details":ze("toggle",t);break;case"input":ze("invalid",t),df(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ze("invalid",t);break;case"textarea":ze("invalid",t),hf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||vp(t.textContent,n)?(a.popover!=null&&(ze("beforetoggle",t),ze("toggle",t)),a.onScroll!=null&&ze("scroll",t),a.onScrollEnd!=null&&ze("scrollend",t),a.onClick!=null&&(t.onclick=cn),t=!0):t=!1,t||Jn(e,!0)}function wi(e){for(dt=e.return;dt;)switch(dt.tag){case 5:case 31:case 13:It=!1;return;case 27:case 3:It=!0;return;default:dt=dt.return}}function dl(e){if(e!==dt)return!1;if(!Te)return wi(e),Te=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ou(e.type,e.memoizedProps)),n=!n),n&&Ie&&Jn(e),wi(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ie=qp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ie=qp(e)}else t===27?(t=Ie,ua(e.type)?(e=xu,xu=null,Ie=e):Ie=t):Ie=dt?Ft(e.stateNode.nextSibling):null;return!0}function Ta(){Ie=dt=null,Te=!1}function Oo(){var e=Zn;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),Zn=null),e}function is(e){Zn===null?Zn=[e]:Zn.push(e)}var Do=Le(null),Ca=null,kn=null;function In(e,t,n){Be(Do,t._currentValue),t._currentValue=n}function Mn(e){e._currentValue=Do.current,ve(Do)}function Si(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Ro(e,t,n,a){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var i=l.dependencies;if(i!==null){var f=l.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=l;for(var y=0;y<t.length;y++)if(m.context===t[y]){i.lanes|=n,m=i.alternate,m!==null&&(m.lanes|=n),Si(i.return,n,e),a||(f=null);break e}i=m.next}}else if(l.tag===18){if(f=l.return,f===null)throw Error(c(341));f.lanes|=n,i=f.alternate,i!==null&&(i.lanes|=n),Si(f,n,e),f=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=n,f=l.alternate,f!==null&&(f.lanes|=n),Si(l.return,n,e),f=l.child,f=f!==null?f.sibling:null):f=l.child;if(f!==null)f.return=l;else for(f=l;f!==null;){if(f===e){f=null;break}if(l=f.sibling,l!==null){l.return=f.return,f=l;break}f=f.return}l=f}}function Ea(e,t,n,a){e=null;for(var l=t,i=!1;l!==null;){if(!i){if((l.flags&524288)!==0)i=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var f=l.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var m=l.type;Bt(l.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(l===Ps.current){if(f=l.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Bl):e=[Bl])}l=l.return}return e!==null&&Ro(t,e,n,a),t.flags|=262144,e!==null}function ji(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function za(e){Ca=e,kn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return eh(Ca,e)}function _i(e,t){return Ca===null&&za(e),eh(e,t)}function eh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},kn===null){if(e===null)throw Error(c(308));kn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kn=kn.next=t;return n}var b1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},y1=s.unstable_scheduleCallback,v1=s.unstable_NormalPriority,at={$$typeof:ge,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bo(){return{controller:new b1,data:new Map,refCount:0}}function rs(e){e.refCount--,e.refCount===0&&y1(v1,function(){e.controller.abort()})}function th(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var os=null;function N1(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var cs=null,Uo=0,ka=0,fl=null;function w1(e,t){if(cs===null){var n=cs=[];Uo=0,ka=Wc(),fl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Uo++,t.then(nh,nh),t}function nh(){if(--Uo===0&&(os=null,cs!==null)){fl!==null&&(fl.status="fulfilled");var e=cs;cs=null,ka=0,fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function S1(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var ah=oe.S;oe.S=function(e,t){if(Im=Mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&w1(e,t),os!==null)for(var n=zl;n!==null;)th(n,os),n=n.next;if(n=e.types,n!==null){for(var a=zl;a!==null;)th(a,n),a=a.next;if(ka!==0){a=os,a===null&&(a=os=[]);for(var l=0;l<n.length;l++){var i=n[l];a.indexOf(i)===-1&&a.push(i)}}}ah!==null&&ah(e,t)};var Ma=Le(null);function Lo(){var e=Ma.current;return e!==null?e:Je.pooledCache}function Ai(e,t){t===null?Be(Ma,Ma.current):Be(Ma,t.pool)}function lh(){var e=Lo();return e===null?null:{parent:at._currentValue,pool:e}}var hl=Error(c(460)),qo=Error(c(474)),Ti=Error(c(542)),Ci={then:function(){}};function sh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ih(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(cn,cn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,oh(e),e===void 0&&!("reason"in t)?Error(c(600)):e;default:if(typeof t.status=="string")t.then(cn,cn);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=a}},function(a){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,oh(e),e}throw Da=t,hl}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Da=n,hl):n}}var Da=null;function rh(){if(Da===null)throw Error(c(459));var e=Da;return Da=null,e}function oh(e){if(e===hl||e===Ti)throw Error(c(483))}var ml=null,us=0;function Ei(e){var t=us;return us+=1,ml===null&&(ml=[]),ih(ml,e,t)}function Pn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function zi(e,t){throw t.$$typeof===z?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ch(e){function t(_,w){if(e){var k=_.deletions;k===null?(_.deletions=[w],_.flags|=16):k.push(w)}}function n(_,w){if(!e)return null;for(;w!==null;)t(_,w),w=w.sibling;return null}function a(_){for(var w=new Map;_!==null;)_.key===null?w.set(_.index,_):w.set(_.key,_),_=_.sibling;return w}function l(_,w){return _=En(_,w),_.index=0,_.sibling=null,_}function i(_,w,k){return _.index=k,e?(k=_.alternate,k!==null?(k=k.index,k<w?(_.flags|=2,w):k):(_.flags|=134217730,w)):(_.flags|=1048576,w)}function f(_){return e&&_.alternate===null&&(_.flags|=134217730),_}function m(_,w,k,q){return w===null||w.tag!==6?(w=Eo(k,_.mode,q),w.return=_,w):(w=l(w,k),w.return=_,w)}function y(_,w,k,q){var ce=k.type;return ce===W?(_=D(_,w,k.props.children,q,k.key),Pn(_,k),_):w!==null&&(w.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Y&&Oa(ce)===w.type)?(w=l(w,k.props),Pn(w,k),w.return=_,w):(w=yi(k.type,k.key,k.props,null,_.mode,q),Pn(w,k),w.return=_,w)}function A(_,w,k,q){return w===null||w.tag!==4||w.stateNode.containerInfo!==k.containerInfo||w.stateNode.implementation!==k.implementation?(w=zo(k,_.mode,q),w.return=_,w):(w=l(w,k.children||[]),w.return=_,w)}function D(_,w,k,q,ce){return w===null||w.tag!==7?(w=Aa(k,_.mode,q,ce),w.return=_,w):(w=l(w,k),w.return=_,w)}function H(_,w,k){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Eo(""+w,_.mode,k),w.return=_,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case I:return k=yi(w.type,w.key,w.props,null,_.mode,k),Pn(k,w),k.return=_,k;case se:return w=zo(w,_.mode,k),w.return=_,w;case Y:return w=Oa(w),H(_,w,k)}if(Se(w)||ae(w))return w=Aa(w,_.mode,k,null),w.return=_,w;if(typeof w.then=="function")return H(_,Ei(w),k);if(w.$$typeof===ge)return H(_,_i(_,w),k);zi(_,w)}return null}function j(_,w,k,q){var ce=w!==null?w.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return ce!==null?null:m(_,w,""+k,q);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case I:return k.key===ce?y(_,w,k,q):null;case se:return k.key===ce?A(_,w,k,q):null;case Y:return k=Oa(k),j(_,w,k,q)}if(Se(k)||ae(k))return ce!==null?null:D(_,w,k,q,null);if(typeof k.then=="function")return j(_,w,Ei(k),q);if(k.$$typeof===ge)return j(_,w,_i(_,k),q);zi(_,k)}return null}function O(_,w,k,q,ce){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return _=_.get(k)||null,m(w,_,""+q,ce);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case I:return _=_.get(q.key===null?k:q.key)||null,y(w,_,q,ce);case se:return _=_.get(q.key===null?k:q.key)||null,A(w,_,q,ce);case Y:return q=Oa(q),O(_,w,k,q,ce)}if(Se(q)||ae(q))return _=_.get(k)||null,D(w,_,q,ce,null);if(typeof q.then=="function")return O(_,w,k,Ei(q),ce);if(q.$$typeof===ge)return O(_,w,k,_i(w,q),ce);zi(w,q)}return null}function te(_,w,k,q){for(var ce=null,Oe=null,xe=w,Ne=w=0,it=null;xe!==null&&Ne<k.length;Ne++){xe.index>Ne?(it=xe,xe=null):it=xe.sibling;var Re=j(_,xe,k[Ne],q);if(Re===null){xe===null&&(xe=it);break}e&&xe&&Re.alternate===null&&t(_,xe),w=i(Re,w,Ne),Oe===null?ce=Re:Oe.sibling=Re,Oe=Re,xe=it}if(Ne===k.length)return n(_,xe),Te&&zn(_,Ne),ce;if(xe===null){for(;Ne<k.length;Ne++)xe=H(_,k[Ne],q),xe!==null&&(w=i(xe,w,Ne),Oe===null?ce=xe:Oe.sibling=xe,Oe=xe);return Te&&zn(_,Ne),ce}for(xe=a(xe);Ne<k.length;Ne++)it=O(xe,_,Ne,k[Ne],q),it!==null&&(e&&(Re=it.alternate,Re!==null&&xe.delete(Re.key===null?Ne:Re.key)),w=i(it,w,Ne),Oe===null?ce=it:Oe.sibling=it,Oe=it);return e&&xe.forEach(function(pa){return t(_,pa)}),Te&&zn(_,Ne),ce}function he(_,w,k,q){if(k==null)throw Error(c(151));for(var ce=null,Oe=null,xe=w,Ne=w=0,it=null,Re=k.next();xe!==null&&!Re.done;Ne++,Re=k.next()){xe.index>Ne?(it=xe,xe=null):it=xe.sibling;var pa=j(_,xe,Re.value,q);if(pa===null){xe===null&&(xe=it);break}e&&xe&&pa.alternate===null&&t(_,xe),w=i(pa,w,Ne),Oe===null?ce=pa:Oe.sibling=pa,Oe=pa,xe=it}if(Re.done)return n(_,xe),Te&&zn(_,Ne),ce;if(xe===null){for(;!Re.done;Ne++,Re=k.next())Re=H(_,Re.value,q),Re!==null&&(w=i(Re,w,Ne),Oe===null?ce=Re:Oe.sibling=Re,Oe=Re);return Te&&zn(_,Ne),ce}for(xe=a(xe);!Re.done;Ne++,Re=k.next())Re=O(xe,_,Ne,Re.value,q),Re!==null&&(e&&(it=Re.alternate,it!==null&&xe.delete(it.key===null?Ne:it.key)),w=i(Re,w,Ne),Oe===null?ce=Re:Oe.sibling=Re,Oe=Re);return e&&xe.forEach(function(av){return t(_,av)}),Te&&zn(_,Ne),ce}function Ae(_,w,k,q){if(typeof k=="object"&&k!==null&&k.type===W&&k.key===null&&k.props.ref===void 0&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case I:e:{for(var ce=k.key;w!==null;){if(w.key===ce){if(ce=k.type,ce===W){if(w.tag===7){n(_,w.sibling),q=l(w,k.props.children),Pn(q,k),q.return=_,_=q;break e}}else if(w.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Y&&Oa(ce)===w.type){n(_,w.sibling),q=l(w,k.props),Pn(q,k),q.return=_,_=q;break e}n(_,w);break}else t(_,w);w=w.sibling}k.type===W?(q=Aa(k.props.children,_.mode,q,k.key),Pn(q,k),q.return=_,_=q):(q=yi(k.type,k.key,k.props,null,_.mode,q),Pn(q,k),q.return=_,_=q)}return f(_);case se:e:{for(ce=k.key;w!==null;){if(w.key===ce)if(w.tag===4&&w.stateNode.containerInfo===k.containerInfo&&w.stateNode.implementation===k.implementation){n(_,w.sibling),q=l(w,k.children||[]),q.return=_,_=q;break e}else{n(_,w);break}else t(_,w);w=w.sibling}q=zo(k,_.mode,q),q.return=_,_=q}return f(_);case Y:return k=Oa(k),Ae(_,w,k,q)}if(Se(k))return te(_,w,k,q);if(ae(k)){if(ce=ae(k),typeof ce!="function")throw Error(c(150));return k=ce.call(k),he(_,w,k,q)}if(typeof k.then=="function")return Ae(_,w,Ei(k),q);if(k.$$typeof===ge)return Ae(_,w,_i(_,k),q);zi(_,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,w!==null&&w.tag===6?(n(_,w.sibling),q=l(w,k),q.return=_,_=q):(n(_,w),q=Eo(k,_.mode,q),q.return=_,_=q),f(_)):n(_,w)}return function(_,w,k,q){try{us=0;var ce=Ae(_,w,k,q);return ml=null,ce}catch(xe){if(xe===hl||xe===Ti)throw xe;var Oe=Tt(29,xe,null,_.mode);return Oe.lanes=q,Oe.return=_,Oe}finally{}}}var Ra=ch(!0),uh=ch(!1),Fn=!1;function Ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Go(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 $n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(He&2)!==0){var l=a.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),a.pending=t,t=bi(e),Zf(e,null,n),t}return xi(e,a,t,n),bi(e)}function ds(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Pd(e,n)}}function Vo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?l=i=f:i=i.next=f,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Yo=!1;function fs(){if(Yo){var e=fl;if(e!==null)throw e}}function hs(e,t,n,a){Yo=!1;var l=e.updateQueue;Fn=!1;var i=l.firstBaseUpdate,f=l.lastBaseUpdate,m=l.shared.pending;if(m!==null){l.shared.pending=null;var y=m,A=y.next;y.next=null,f===null?i=A:f.next=A,f=y;var D=e.alternate;D!==null&&(D=D.updateQueue,m=D.lastBaseUpdate,m!==f&&(m===null?D.firstBaseUpdate=A:m.next=A,D.lastBaseUpdate=y))}if(i!==null){var H=l.baseState;f=0,D=A=y=null,m=i;do{var j=m.lane&-536870913,O=j!==m.lane;if(O?(Me&j)===j:(a&j)===j){j!==0&&j===ka&&(Yo=!0),D!==null&&(D=D.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var te=e,he=m;j=t;var Ae=n;switch(he.tag){case 1:if(te=he.payload,typeof te=="function"){H=te.call(Ae,H,j);break e}H=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=he.payload,j=typeof te=="function"?te.call(Ae,H,j):te,j==null)break e;H=V({},H,j);break e;case 2:Fn=!0}}j=m.callback,j!==null&&(e.flags|=64,O&&(e.flags|=8192),O=l.callbacks,O===null?l.callbacks=[j]:O.push(j))}else O={lane:j,tag:m.tag,payload:m.payload,callback:m.callback,next:null},D===null?(A=D=O,y=H):D=D.next=O,f|=j;if(m=m.next,m===null){if(m=l.shared.pending,m===null)break;O=m,m=O.next,O.next=null,l.lastBaseUpdate=O,l.shared.pending=null}}while(!0);D===null&&(y=H),l.baseState=y,l.firstBaseUpdate=A,l.lastBaseUpdate=D,i===null&&(l.shared.lanes=0),ia|=f,e.lanes=f,e.memoizedState=H}}function dh(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function fh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)dh(n[e],t)}var ea=Le(null),ki=Le(0);function hh(e,t){e=Un,Be(ki,e),Be(ea,t),Un=e|t.baseLanes}function Qo(){Be(ki,Un),Be(ea,ea.current)}function Xo(){Un=ki.current,ve(ea),ve(ki)}var gt=Le(null),Nt=null;function ta(e){var t=e.alternate;Be(xt,xt.current&1),Be(gt,e),Nt===null&&(t===null||ea.current!==null||t.memoizedState!==null)&&(Nt=e)}function Ko(e){Be(xt,xt.current),Be(gt,e),Nt===null&&(Nt=e)}function mh(e){e.tag===22?(Be(xt,xt.current),Be(gt,e),Nt===null&&(Nt=e)):na()}function na(){Be(xt,xt.current),Be(gt,gt.current)}function Ut(e){ve(gt),Nt===e&&(Nt=null),ve(xt)}var xt=Le(0);function ms(e,t){Be(gt,gt.current),Be(xt,t)}function Zo(e){ve(xt),ve(gt),Nt===e&&(Nt=null)}function Mi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pu(n)||gu(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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 On=0,_e=null,Ke=null,lt=null,Oi=!1,pl=!1,Ba=!1,Di=0,ps=0,gl=null,j1=0;function We(){throw Error(c(321))}function Jo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function Io(e,t,n,a,l,i){return On=i,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oe.H=e===null||e.memoizedState===null?Fh:$h,Ba=!1,i=n(a,l),Ba=!1,pl&&(i=gh(t,n,a,l)),ph(e),i}function ph(e){oe.H=Gi;var t=Ke!==null&&Ke.next!==null;if(On=0,lt=Ke=_e=null,Oi=!1,ps=0,gl=null,t)throw Error(c(300));e===null||st||(e=e.dependencies,e!==null&&ji(e)&&(st=!0))}function gh(e,t,n,a){_e=e;var l=0;do{if(pl&&(gl=null),ps=0,pl=!1,25<=l)throw Error(c(301));if(l+=1,lt=Ke=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}oe.H=M1,i=t(n,a)}while(pl);return i}function _1(){var e=oe.H,t=e.useState()[0];return t=typeof t.then=="function"?gs(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(_e.flags|=1024),t}function Po(){var e=Di!==0;return Di=0,e}function Fo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $o(e){if(Oi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Oi=!1}On=0,lt=Ke=_e=null,pl=!1,ps=Di=0,gl=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?_e.memoizedState=lt=e:lt=lt.next=e,lt}function tt(){if(Ke===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=lt===null?_e.memoizedState:lt.next;if(t!==null)lt=t,Ke=e;else{if(e===null)throw _e.alternate===null?Error(c(467)):Error(c(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},lt===null?_e.memoizedState=lt=e:lt=lt.next=e}return lt}function Ri(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gs(e){var t=ps;return ps+=1,gl===null&&(gl=[]),e=ih(gl,e,t),t=_e,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,oe.H=t===null||t.memoizedState===null?Fh:$h),e}function Bi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gs(e);if(e.$$typeof===S)return;if(e.$$typeof===ge)return pt(e)}throw Error(c(438,String(e)))}function Wo(e){var t=null,n=_e.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=_e.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ri(),_e.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Ge;return t.index++,n}function Dn(e,t){return typeof t=="function"?t(e):t}function Ui(e){var t=tt();return ec(t,Ke,e)}function ec(e,t,n){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=n;var l=e.baseQueue,i=a.pending;if(i!==null){if(l!==null){var f=l.next;l.next=i.next,i.next=f}t.baseQueue=l=i,a.pending=null}if(i=e.baseState,l===null)e.memoizedState=i;else{t=l.next;var m=f=null,y=null,A=t,D=!1;do{var H=A.lane&-536870913;if(H!==A.lane?(Me&H)===H:(On&H)===H){var j=A.revertLane;if(j===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),H===ka&&(D=!0);else if((On&j)===j){A=A.next,j===ka&&(D=!0);continue}else H={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(m=y=H,f=i):y=y.next=H,_e.lanes|=j,ia|=j;H=A.action,Ba&&n(i,H),i=A.hasEagerState?A.eagerState:n(i,H)}else j={lane:H,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(m=y=j,f=i):y=y.next=j,_e.lanes|=H,ia|=H;A=A.next}while(A!==null&&A!==t);if(y===null?f=i:y.next=m,!Bt(i,e.memoizedState)&&(st=!0,D&&(n=fl,n!==null)))throw n;e.memoizedState=i,e.baseState=f,e.baseQueue=y,a.lastRenderedState=i}return l===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function tc(e){var t=tt(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var a=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var f=l=l.next;do i=e(i,f.action),f=f.next;while(f!==l);Bt(i,t.memoizedState)||(st=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function xh(e,t,n){var a=_e,l=tt(),i=Te;if(i){if(n===void 0)throw Error(c(407));n=n()}else n=t();var f=!Bt((Ke||l).memoizedState,n);if(f&&(l.memoizedState=n,st=!0),l=l.queue,lc(vh.bind(null,a,l,e),[e]),e=l.getSnapshot!==t||f||lt!==null&&(lt.memoizedState.tag&1)!==0,xl(e?9:8,{destroy:void 0},yh.bind(null,a,l,n,t),null),e){if(a.flags|=2048,Je===null)throw Error(c(349));i||(On&127)!==0||bh(a,t,n)}return n}function bh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_e.updateQueue,t===null?(t=Ri(),_e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yh(e,t,n,a){t.value=n,t.getSnapshot=a,Nh(t)&&wh(e)}function vh(e,t,n){return n(function(){Nh(t)&&wh(e)})}function Nh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function wh(e){var t=_a(e,2);t!==null&&kt(t,e,2)}function nc(e){var t=St();if(typeof e=="function"){var n=e;if(e=n(),Ba){Yn(!0);try{n()}finally{Yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:e},t}function Sh(e,t,n,a){return e.baseState=n,ec(e,Ke,typeof a=="function"?a:Dn)}function A1(e,t,n,a,l){if(Hi(e))throw Error(c(485));if(e=t.action,e!==null){var i={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};oe.T!==null?n(!0):i.isTransition=!1,a(i),n=t.pending,n===null?(i.next=t.pending=i,jh(t,i)):(i.next=n.next,t.pending=n.next=i)}}function jh(e,t){var n=t.action,a=t.payload,l=e.state;if(t.isTransition){var i=oe.T,f={};f.types=i!==null?i.types:null,oe.T=f;try{var m=n(l,a),y=oe.S;y!==null&&y(f,m),_h(e,t,m)}catch(A){ac(e,t,A)}finally{i!==null&&f.types!==null&&(i.types=f.types),oe.T=i}}else try{i=n(l,a),_h(e,t,i)}catch(A){ac(e,t,A)}}function _h(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Ah(e,t,a)},function(a){return ac(e,t,a)}):Ah(e,t,n)}function Ah(e,t,n){t.status="fulfilled",t.value=n,Th(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,jh(e,n)))}function ac(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Th(t),t=t.next;while(t!==a)}e.action=null}function Th(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ch(e,t){return t}function Eh(e,t){if(Te){var n=Je.formState;if(n!==null){e:{var a=_e;if(Te){if(Ie){t:{for(var l=Ie,i=It;l.nodeType!==8;){if(!i){l=null;break t}if(l=Ft(l.nextSibling),l===null){l=null;break t}}i=l.data,l=i==="F!"||i==="F"?l:null}if(l){Ie=Ft(l.nextSibling),a=l.data==="F!";break e}}Jn(a)}a=!1}a&&(t=n[0])}}return n=St(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ch,lastRenderedState:t},n.queue=a,n=Jh.bind(null,_e,a),a.dispatch=n,a=nc(!1),i=cc.bind(null,_e,!1,a.queue),a=St(),l={state:t,dispatch:null,action:e,pending:null},a.queue=l,n=A1.bind(null,_e,l,i,n),l.dispatch=n,a.memoizedState=e,[t,n,!1]}function zh(e){var t=tt();return kh(t,Ke,e)}function kh(e,t,n){if(t=ec(e,t,Ch)[0],e=Ui(Dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=gs(t)}catch(f){throw f===hl?Ti:f}else a=t;t=tt();var l=t.queue,i=l.dispatch;return n!==t.memoizedState&&(_e.flags|=2048,xl(9,{destroy:void 0},T1.bind(null,l,n),null)),[a,i,e]}function T1(e,t){e.action=t}function Mh(e){var t=tt(),n=Ke;if(n!==null)return kh(t,n,e);tt(),t=t.memoizedState,n=tt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function xl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Ri(),_e.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Oh(){return tt().memoizedState}function Li(e,t,n,a){var l=St();_e.flags|=e,l.memoizedState=xl(1|t,{destroy:void 0},n,a===void 0?null:a)}function qi(e,t,n,a){var l=tt();a=a===void 0?null:a;var i=l.memoizedState.inst;Ke!==null&&a!==null&&Jo(a,Ke.memoizedState.deps)?l.memoizedState=xl(t,i,n,a):(_e.flags|=e,l.memoizedState=xl(1|t,i,n,a))}function Dh(e,t){Li(8390656,8,e,t)}function lc(e,t){qi(2048,8,e,t)}function C1(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Ri(),_e.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Rh(e){var t=tt().memoizedState;return C1({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Bh(e,t){return qi(4,2,e,t)}function Uh(e,t){return qi(4,4,e,t)}function Lh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qh(e,t,n){n=n!=null?n.concat([e]):null,qi(4,4,Lh.bind(null,t,e),n)}function sc(){}function Hh(e,t){var n=tt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Jo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Gh(e,t){var n=tt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Jo(t,a[1]))return a[0];if(a=e(),Ba){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[a,t],a}function ic(e,t,n){return n===void 0||(On&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Fm(),_e.lanes|=e,ia|=e,n)}function Vh(e,t,n,a){return Bt(n,t)?n:ea.current!==null?(e=ic(e,n,a),Bt(e,t)||(st=!0),e):(On&106)===0||(On&1073741824)!==0&&(Me&261930)===0?(st=!0,e.memoizedState=n):(e=Fm(),_e.lanes|=e,ia|=e,t)}function Yh(e,t,n,a,l){var i=be.p;be.p=i!==0&&8>i?i:8;var f=oe.T,m={};m.types=f!==null?f.types:null,oe.T=m,cc(e,!1,t,n);try{var y=l(),A=oe.S;if(A!==null&&A(m,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var D=S1(y,a);xs(e,t,D,Gt(e))}else xs(e,t,a,Gt(e))}catch(H){xs(e,t,{then:function(){},status:"rejected",reason:H},Gt())}finally{be.p=i,f!==null&&m.types!==null&&(f.types=m.types),oe.T=f}}function E1(){}function rc(e,t,n,a){if(e.tag!==5)throw Error(c(476));var l=Qh(e).queue;Yh(e,l,t,L,n===null?E1:function(){return Xh(e),n(a)})}function Qh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:L},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Xh(e){var t=Qh(e);t.next===null&&(t=e.alternate.memoizedState),xs(e,t.next.queue,{},Gt())}function oc(){return pt(Bl)}function Kh(){return tt().memoizedState}function Zh(){return tt().memoizedState}function z1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Gt();e=$n(n);var a=Wn(t,e,n);a!==null&&(kt(a,t,n),ds(a,t,n)),t={cache:Bo()},e.payload=t;return}t=t.return}}function k1(e,t,n){var a=Gt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Hi(e)?Ih(t,n):(n=To(e,t,n,a),n!==null&&(kt(n,e,a),Ph(n,t,a)))}function Jh(e,t,n){var a=Gt();xs(e,t,n,a)}function xs(e,t,n,a){var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hi(e))Ih(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var f=t.lastRenderedState,m=i(f,n);if(l.hasEagerState=!0,l.eagerState=m,Bt(m,f))return xi(e,t,l,0),Je===null&&gi(),!1}catch{}finally{}if(n=To(e,t,l,a),n!==null)return kt(n,e,a),Ph(n,t,a),!0}return!1}function cc(e,t,n,a){if(a={lane:2,revertLane:Wc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Hi(e)){if(t)throw Error(c(479))}else t=To(e,n,a,2),t!==null&&kt(t,e,2)}function Hi(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Ih(e,t){pl=Oi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ph(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Pd(e,n)}}var Gi={readContext:pt,use:Bi,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We,useEffectEvent:We},Fh={readContext:pt,use:Bi,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Dh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Li(4194308,4,Lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){Li(4,2,e,t)},useMemo:function(e,t){var n=St();t=t===void 0?null:t;var a=e();if(Ba){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=St();if(n!==void 0){var l=n(t);if(Ba){Yn(!0);try{n(t)}finally{Yn(!1)}}}else l=t;return a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},a.queue=e,e=e.dispatch=k1.bind(null,_e,e),[a.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=nc(e);var t=e.queue,n=Jh.bind(null,_e,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:sc,useDeferredValue:function(e,t){var n=St();return ic(n,e,t)},useTransition:function(){var e=nc(!1);return e=Yh.bind(null,_e,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=_e,l=St();if(Te){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Je===null)throw Error(c(349));(Me&127)!==0||bh(a,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Dh(vh.bind(null,a,i,e),[e]),a.flags|=2048,xl(9,{destroy:void 0},yh.bind(null,a,i,n,t),null),n},useId:function(){var e=St(),t=Je.identifierPrefix;if(Te){var n=dn,a=un;n=(a&~(1<<32-Dt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Di++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=j1++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:oc,useFormState:Eh,useActionState:Eh,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cc.bind(null,_e,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wo,useCacheRefresh:function(){return St().memoizedState=z1.bind(null,_e)},useEffectEvent:function(e){var t=St(),n={impl:e};return t.memoizedState=n,function(){if((He&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},$h={readContext:pt,use:Bi,useCallback:Hh,useContext:pt,useEffect:lc,useImperativeHandle:qh,useInsertionEffect:Bh,useLayoutEffect:Uh,useMemo:Gh,useReducer:Ui,useRef:Oh,useState:function(){return Ui(Dn)},useDebugValue:sc,useDeferredValue:function(e,t){var n=tt();return Vh(n,Ke.memoizedState,e,t)},useTransition:function(){var e=Ui(Dn)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:gs(e),t]},useSyncExternalStore:xh,useId:Kh,useHostTransitionStatus:oc,useFormState:zh,useActionState:zh,useOptimistic:function(e,t){var n=tt();return Sh(n,Ke,e,t)},useMemoCache:Wo,useCacheRefresh:Zh,useEffectEvent:Rh},M1={readContext:pt,use:Bi,useCallback:Hh,useContext:pt,useEffect:lc,useImperativeHandle:qh,useInsertionEffect:Bh,useLayoutEffect:Uh,useMemo:Gh,useReducer:tc,useRef:Oh,useState:function(){return tc(Dn)},useDebugValue:sc,useDeferredValue:function(e,t){var n=tt();return Ke===null?ic(n,e,t):Vh(n,Ke.memoizedState,e,t)},useTransition:function(){var e=tc(Dn)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:gs(e),t]},useSyncExternalStore:xh,useId:Kh,useHostTransitionStatus:oc,useFormState:Mh,useActionState:Mh,useOptimistic:function(e,t){var n=tt();return Ke!==null?Sh(n,Ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Wo,useCacheRefresh:Zh,useEffectEvent:Rh};function uc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Gt(),l=$n(a);l.payload=t,n!=null&&(l.callback=n),t=Wn(e,l,a),t!==null&&(kt(t,e,a),ds(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Gt(),l=$n(a);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Wn(e,l,a),t!==null&&(kt(t,e,a),ds(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gt(),a=$n(n);a.tag=2,t!=null&&(a.callback=t),t=Wn(e,a,n),t!==null&&(kt(t,e,n),ds(t,e,n))}};function Wh(e,t,n,a,l,i,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,f):t.prototype&&t.prototype.isPureReactComponent?!as(n,a)||!as(l,i):!0}function em(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&dc.enqueueReplaceState(t,t.state,null)}function Ua(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=V({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function tm(e){pi(e)}function nm(e){console.error(e)}function am(e){pi(e)}function Vi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function lm(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function fc(e,t,n){return n=$n(n),n.tag=3,n.payload={element:null},n.callback=function(){Vi(e,t)},n}function sm(e){return e=$n(e),e.tag=3,e}function im(e,t,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var i=a.value;e.payload=function(){return l(i)},e.callback=function(){lm(t,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){lm(t,n,a),typeof l!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function O1(e,t,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ea(t,n,l,!0),n=gt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Nt===null?cr():n.alternate===null&&et===0&&(et=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===Ci?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Pc(e,a,l)),!1;case 22:return n.flags|=65536,a===Ci?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Pc(e,a,l)),!1}throw Error(c(435,n.tag))}return Pc(e,a,l),cr(),!1}if(Te)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,a!==Mo&&(e=Error(c(422),{cause:a}),is(Kt(e,n)))):(a!==Mo&&(t=Error(c(423),{cause:a}),is(Kt(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,a=Kt(a,n),l=fc(e.stateNode,a,l),Vo(e,l),et!==4&&(et=2)),!1;var i=Error(c(520),{cause:a});if(i=Kt(i,n),_s===null?_s=[i]:_s.push(i),et!==4&&(et=2),t===null)return!0;a=Kt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=fc(n.stateNode,a,e),Vo(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ra===null||!ra.has(i))))return n.flags|=65536,l&=-l,n.lanes|=l,l=sm(l),im(l,e,n,a),Vo(n,l),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var hc=Error(c(461)),st=!1;function ot(e,t,n,a){t.child=e===null?uh(t,null,n,a):Ra(t,e.child,n,a)}function rm(e,t,n,a,l){n=n.render;var i=t.ref;if("ref"in a){var f={};for(var m in a)m!=="ref"&&(f[m]=a[m])}else f=a;return za(t),a=Io(e,t,n,f,i,l),m=Po(),e!==null&&!st?(Fo(e,t,l),Rn(e,t,l)):(Te&&m&&Ni(t),t.flags|=1,ot(e,t,a,l),t.child)}function om(e,t,n,a,l){if(e===null){var i=n.type;return typeof i=="function"&&!Co(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,cm(e,t,i,a,l)):(e=yi(n.type,null,a,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Nc(e,l)){var f=i.memoizedProps;if(n=n.compare,n=n!==null?n:as,n(f,a)&&e.ref===t.ref)return Rn(e,t,l)}return t.flags|=1,e=En(i,a),e.ref=t.ref,e.return=t,t.child=e}function cm(e,t,n,a,l){if(e!==null){var i=e.memoizedProps;if(as(i,a)&&e.ref===t.ref)if(st=!1,t.pendingProps=a=i,Nc(e,l))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Rn(e,t,l)}return mc(e,t,n,a,l)}function um(e,t,n,a){var l=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,e!==null){for(a=t.child=e.child,l=0;a!==null;)l=l|a.lanes|a.childLanes,a=a.sibling;a=l&~i}else a=0,t.child=null;return dm(e,t,i,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ai(t,i!==null?i.cachePool:null),i!==null?hh(t,i):Qo(),mh(t);else return a=t.lanes=536870912,dm(e,t,i!==null?i.baseLanes|n:n,n,a)}else i!==null?(Ai(t,i.cachePool),hh(t,i),na(),t.memoizedState=null):(e!==null&&Ai(t,null),Qo(),na());return ot(e,t,l,n),t.child}function bs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dm(e,t,n,a,l){var i=Lo();return i=i===null?null:{parent:at._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Ai(t,null),Qo(),mh(t),e!==null&&Ea(e,t,a,!0),t.childLanes=l,null}function Yi(e,t){return t=Qi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fm(e,t,n){return Ra(t,e.child,null,n),e=Yi(t,t.pendingProps),e.flags|=2,Ut(t),t.memoizedState=null,e}function D1(e,t,n){var a=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(a.mode==="hidden")return e=Yi(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},bs(null,e);if(Ko(t),(e=Ie)?(e=Lp(e,It),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:un,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},n=If(e),n.return=t,t.child=n,dt=t,Ie=null)):e=null,e===null)throw Jn(t);return t.lanes=536870912,null}return Yi(t,a)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(Ko(t),l)if(t.flags&256)t.flags&=-257,t=fm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(st||Ea(e,t,n,!1),l=(n&e.childLanes)!==0,st||l){if(ea.current===null){if(a=Je,a!==null&&(f=Fd(a,n),f!==0&&f!==i.retryLane))throw i.retryLane=f,_a(e,f),kt(a,e,f),hc;cr()}t=fm(e,t,n)}else e=i.treeContext,Ie=Ft(f.nextSibling),dt=t,Te=!0,Zn=null,It=!1,e!==null&&$f(t,e),t=Yi(t,a),t.flags|=134221824;return t}return e=En(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function bl(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mc(e,t,n,a,l){return za(t),n=Io(e,t,n,a,void 0,l),a=Po(),e!==null&&!st?(Fo(e,t,l),Rn(e,t,l)):(Te&&a&&Ni(t),t.flags|=1,ot(e,t,n,l),t.child)}function hm(e,t,n,a,l,i){return za(t),t.updateQueue=null,n=gh(t,a,n,l),ph(e),a=Po(),e!==null&&!st?(Fo(e,t,i),Rn(e,t,i)):(Te&&a&&Ni(t),t.flags|=1,ot(e,t,n,i),t.child)}function mm(e,t,n,a,l){if(za(t),t.stateNode===null){var i=ol,f=n.contextType;typeof f=="object"&&f!==null&&(i=pt(f)),i=new n(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=dc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Ho(t),f=n.contextType,i.context=typeof f=="object"&&f!==null?pt(f):ol,i.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(uc(t,n,f,a),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&dc.enqueueReplaceState(i,i.state,null),hs(t,a,i,l),fs(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,y=Ua(n,m);i.props=y;var A=i.context,D=n.contextType;f=ol,typeof D=="object"&&D!==null&&(f=pt(D));var H=n.getDerivedStateFromProps;D=typeof H=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,D||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||A!==f)&&em(t,i,a,f),Fn=!1;var j=t.memoizedState;i.state=j,hs(t,a,i,l),fs(),A=t.memoizedState,m||j!==A||Fn?(typeof H=="function"&&(uc(t,n,H,a),A=t.memoizedState),(y=Fn||Wh(t,n,y,a,j,A,f))?(D||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),i.props=a,i.state=A,i.context=f,a=y):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Go(e,t),f=t.memoizedProps,D=Ua(n,f),i.props=D,H=t.pendingProps,j=i.context,A=n.contextType,y=ol,typeof A=="object"&&A!==null&&(y=pt(A)),m=n.getDerivedStateFromProps,(A=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==H||j!==y)&&em(t,i,a,y),Fn=!1,j=t.memoizedState,i.state=j,hs(t,a,i,l),fs();var O=t.memoizedState;f!==H||j!==O||Fn||e!==null&&e.dependencies!==null&&ji(e.dependencies)?(typeof m=="function"&&(uc(t,n,m,a),O=t.memoizedState),(D=Fn||Wh(t,n,D,a,j,O,y)||e!==null&&e.dependencies!==null&&ji(e.dependencies))?(A||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,O,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,O,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),i.props=a,i.state=O,i.context=y,a=D):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,bl(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Ra(t,e.child,null,l),t.child=Ra(t,null,n,l)):ot(e,t,n,l),t.memoizedState=i.state,e=t.child):e=Rn(e,t,l),e}function pm(e,t,n,a){return Ta(),t.flags|=256,ot(e,t,n,a),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:lh()}}function xc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ht),e}function gm(e,t,n){var a=t.pendingProps,l=!1,i=(t.flags&128)!==0,f;if((f=i)||(f=e!==null&&e.memoizedState===null?!1:(xt.current&2)!==0),f&&(l=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(l?ta(t):na(),(e=Ie)?(e=Lp(e,It),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:un,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},n=If(e),n.return=t,t.child=n,dt=t,Ie=null)):e=null,e===null)throw Jn(t);return gu(e)?t.lanes=32:t.lanes=536870912,null}return i=a.children,a=a.fallback,l?(na(),l=t.mode,i=Qi({mode:"hidden",children:i},l),a=Aa(a,l,n,null),i.return=t,a.return=t,i.sibling=a,t.child=i,a=t.child,a.memoizedState=gc(n),a.childLanes=xc(e,f,n),t.memoizedState=pc,bs(null,a)):(ta(t),bc(t,i))}var m=e.memoizedState;if(m!==null){var y=m.dehydrated;if(y!==null)return R1(e,t,i,f,a,y,m,n)}return l?(na(),l=a.fallback,i=t.mode,m=e.child,y=m.sibling,a=En(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&1206910976,y!==null?l=En(y,l):(l=Aa(l,i,n,null),l.flags|=2),l.return=t,a.return=t,a.sibling=l,t.child=a,bs(null,a),a=t.child,l=e.child.memoizedState,l===null?l=gc(n):(i=l.cachePool,i!==null?(m=at._currentValue,i=i.parent!==m?{parent:m,pool:m}:i):i=lh(),l={baseLanes:l.baseLanes|n,cachePool:i}),a.memoizedState=l,a.childLanes=xc(e,f,n),t.memoizedState=pc,bs(e.child,a)):(ta(t),n=e.child,e=n.sibling,n=En(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function bc(e,t){return t=Qi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qi(e,t){return e=Tt(22,e,null,t),e.lanes=0,e}function Xi(e,t,n){return Ra(t,e.child,null,n),e=bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function R1(e,t,n,a,l,i,f,m){if(n)return t.flags&256?(ta(t),t.flags&=-257,Xi(e,t,m)):t.memoizedState!==null?(na(),t.child=e.child,t.flags|=128,null):(na(),i=l.fallback,f=t.mode,l=Qi({mode:"visible",children:l.children},f),i=Aa(i,f,m,null),i.flags|=2,l.return=t,i.return=t,l.sibling=i,t.child=l,Ra(t,e.child,null,m),l=t.child,l.memoizedState=gc(m),l.childLanes=xc(e,a,m),t.memoizedState=pc,bs(null,l));if(ta(t),gu(i)){if(a=i.nextSibling&&i.nextSibling.dataset,a)var y=a.dgst;return a=y,a!==""&&(l=Error(c(419)),l.stack="",l.digest=a,is({value:l,source:null,stack:null})),Xi(e,t,m)}if(st||Ea(e,t,m,!1),a=(m&e.childLanes)!==0,st||a){if(ea.current!==null)return Xi(e,t,m);if(a=Je,a!==null&&(l=Fd(a,m),l!==0&&l!==f.retryLane))throw f.retryLane=l,_a(e,l),kt(a,e,l),hc;return pu(i)||cr(),Xi(e,t,m)}return pu(i)?(t.flags|=192,t.child=e.child,null):(e=f.treeContext,Ie=Ft(i.nextSibling),dt=t,Te=!0,Zn=null,It=!1,e!==null&&$f(t,e),t=bc(t,l.children),t.flags|=134221824,t)}function xm(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Si(e.return,t,n)}function bm(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Mi(n)===null&&(t=e),e=e.sibling}return t}function Ki(e,t,n,a,l,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=l,f.treeForkCount=i)}function yc(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function vc(e,t,n){var a=t.pendingProps,l=a.revealOrder,i=a.tail;a=a.children;var f=xt.current;if(t.flags&128)return ms(t,f),null;var m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,ms(t,f),l==="backwards"&&e!==null?(yc(e),ot(e,t,a,n),yc(e)):ot(e,t,a,n),a=Te?ss:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xm(e,n,t);else if(e.tag===19)xm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"backwards":n=bm(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null,yc(t)),Ki(t,!0,l,null,i,a);break;case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Mi(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ki(t,!0,n,null,i,a);break;case"together":Ki(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=bm(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ki(t,!1,l,n,i,a)}return t.child}function ym(e,t,n){var a=t.pendingProps;return In(t,t.type,a.value),ot(e,t,a.children,n),t.child}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ia|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=En(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=En(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ji(e)))}function B1(e,t,n){switch(t.tag){case 3:Fs(t,t.stateNode.containerInfo),In(t,at,e.memoizedState.cache),Ta();break;case 27:case 5:Zr(t);break;case 4:Fs(t,t.stateNode.containerInfo);break;case 10:In(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ko(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return ta(t),t.flags|=128,null;a=Ea(e,t,n,!1);var l=t.child.childLanes;return a||(n&l)!==0?gm(e,t,n):(ta(t),e=Rn(e,t,n),e!==null?e.sibling:null)}ta(t);break;case 19:if(t.flags&128)return vc(e,t,n);if(l=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(Ea(e,t,n,!1),a=(n&t.childLanes)!==0),l){if(a)return vc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ms(t,xt.current),a)break;return null;case 22:return t.lanes=0,um(e,t,n,t.pendingProps);case 24:In(t,at,e.memoizedState.cache)}return Rn(e,t,n)}function vm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!Nc(e,n)&&(t.flags&128)===0)return st=!1,B1(e,t,n);st=(e.flags&131072)!==0}else st=!1,Te&&(t.flags&1048576)!==0&&Ff(t,ss,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e=="function")Co(e)?(a=Ua(e,a),t.tag=1,t=mm(null,t,e,a,n)):(t.tag=0,t=mc(null,t,e,a,n));else{if(e!=null){var l=e.$$typeof;if(l===C){t.tag=11,t=rm(null,t,e,a,n);break e}else if(l===re){t.tag=14,t=om(null,t,e,a,n);break e}else if(l===ge){t.tag=10,t.type=e,t=ym(null,t,n);break e}}throw t=fe(e)||e,Error(c(306,t,""))}}return t;case 0:return mc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,l=Ua(a,t.pendingProps),mm(e,t,a,l,n);case 3:e:{if(Fs(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var i=t.memoizedState;l=i.element,Go(e,t),hs(t,a,null,n);var f=t.memoizedState;if(a=f.cache,In(t,at,a),a!==i.cache&&Ro(t,[at],n,!0),fs(),a=f.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=pm(e,t,a,n);break e}else if(a!==l){l=Kt(Error(c(424)),t),is(l),t=pm(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ie=Ft(e.firstChild),dt=t,Te=!0,Zn=null,It=!0,n=uh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ta(),a===l){t=Rn(e,t,n);break e}ot(e,t,a,n)}t=t.child}return t;case 26:return bl(e,t),e===null?(n=Xp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Te||(t.stateNode=jp(t.type,t.pendingProps,Gn.current,t)):t.memoizedState=Xp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Zr(t),e===null&&Te&&(a=t.stateNode=Gp(t.type,t.pendingProps,Gn.current),dt=t,It=!0,l=Ie,ua(t.type)?(xu=l,Ie=Ft(a.firstChild)):Ie=l),ot(e,t,t.pendingProps.children,n),bl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((l=a=Ie)&&(a=zy(a,t.type,t.pendingProps,It),a!==null?(t.stateNode=a,dt=t,Ie=Ft(a.firstChild),It=!1,l=!0):l=!1),l||Jn(t)),Zr(t),l=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,a=i.children,ou(l,i)?a=null:f!==null&&ou(l,f)&&(t.flags|=32),t.memoizedState!==null&&(l=Io(e,t,_1,null,null,n),Bl._currentValue=l),bl(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&Te&&((e=n=Ie)&&(n=ky(n,t.pendingProps,It),n!==null?(t.stateNode=n,dt=t,Ie=null,e=!0):e=!1),e||Jn(t)),null;case 13:return gm(e,t,n);case 4:return Fs(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ra(t,null,a,n):ot(e,t,a,n),t.child;case 11:return rm(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,bl(e,t),ot(e,t,a,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:return ym(e,t,n);case 9:return l=t.type._context,a=t.pendingProps.children,za(t),l=pt(l),a=a(l),t.flags|=1,ot(e,t,a,n),t.child;case 14:return om(e,t,t.type,t.pendingProps,n);case 15:return cm(e,t,t.type,t.pendingProps,n);case 19:return vc(e,t,n);case 31:return D1(e,t,n);case 22:return um(e,t,n,t.pendingProps);case 24:return za(t),a=pt(at),e===null?(l=Lo(),l===null&&(l=Je,i=Bo(),l.pooledCache=i,i.refCount++,i!==null&&(l.pooledCacheLanes|=n),l=i),t.memoizedState={parent:a,cache:l},Ho(t),In(t,at,l)):((e.lanes&n)!==0&&(Go(e,t),hs(t,null,null,n),fs()),l=e.memoizedState,i=t.memoizedState,l.parent!==a?(l={parent:a,cache:a},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),In(t,at,a)):(a=i.cache,In(t,at,a),a!==l.cache&&Ro(t,[at],n,!0))),ot(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:Te&&Ni(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:bl(e,t),ot(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Bn(e){e.flags|=4}function wc(e,t,n,a,l){var i;if((i=(e.mode&32)!==0)&&(i=n===null?Ip(t,a):Ip(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),i){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(tp())e.flags|=8192;else throw Da=Ci,qo}else e.flags&=-16777217}function Nm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pp(t))if(tp())e.flags|=8192;else throw Da=Ci,qo}function Zi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jd():536870912,e.lanes|=t,Sl|=t)}function ys(e,t){if(!Te)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&1206910976,a|=l.flags&1206910976,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function U1(e,t,n){var a=t.pendingProps;switch(ko(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Mn(at),Ia(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dl(t)?Bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Oo())),Pe(t),null;case 26:var l=t.type,i=t.memoizedState;return e===null?(Bn(t),i!==null?(Pe(t),Nm(t,i)):(Pe(t),wc(t,l,null,a,n))):i?i!==e.memoizedState?(Bn(t),Pe(t),Nm(t,i)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Bn(t),Pe(t),wc(t,l,e,a,n)),null;case 27:if($s(t),n=Gn.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Bn(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Pe(t),t.subtreeFlags&=-33554433,null}e=Ze.current,dl(t)?Wf(t):(e=Gp(l,a,n),t.stateNode=e,Bn(t))}return Pe(t),t.subtreeFlags&=-33554433,null;case 5:if($s(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Bn(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Pe(t),t.subtreeFlags&=-33554433,null}if(i=Ze.current,dl(t))Wf(t);else{var f=zs(Gn.current);switch(i){case 1:i=f.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:i=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":i=f.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":i=f.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":i=f.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?f.createElement(l,{is:a.is}):f.createElement(l)}}i[mt]=t,i[At]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=i;e:switch(yt(i,l,a),l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Bn(t)}}return Pe(t),t.subtreeFlags&=-33554433,wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Bn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=Gn.current,dl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,l=dt,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}e[mt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||vp(e.nodeValue,n)),e||Jn(t,!0)}else e=zs(e).createTextNode(a),e[mt]=t,t.stateNode=e}return Pe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=dl(t),n!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[mt]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else n=Oo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ut(t),t):(Ut(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Pe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=dl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!l)throw Error(c(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(c(317));l[mt]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),l=!1}else l=Oo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Ut(t),t):(Ut(t),null)}return Ut(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==l&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Zi(t,t.updateQueue),Pe(t),null);case 4:return Ia(),e===null&&au(t.stateNode.containerInfo),t.flags|=67108864,Pe(t),null;case 10:return Mn(t.type),Pe(t),null;case 19:if(Zo(t),a=t.memoizedState,a===null)return Pe(t),null;if(l=(t.flags&128)!==0,i=a.rendering,i===null)if(l)ys(a,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Mi(e),i!==null){for(t.flags|=128,ys(a,!1),e=i.updateQueue,t.updateQueue=e,Zi(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Jf(n,e),n=n.sibling;return ms(t,xt.current&1|2),Te&&zn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Mt()>sr&&(t.flags|=128,l=!0,ys(a,!1),t.lanes=4194304)}else{if(!l)if(e=Mi(i),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Zi(t,e),ys(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!i.alternate&&!Te)return Pe(t),null}else 2*Mt()-a.renderingStartTime>sr&&n!==536870912&&(t.flags|=128,l=!0,ys(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Mt(),e.sibling=null,i=xt.current,i=l?i&1|2:i&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||Te?ms(t,i):(n=i,Be(gt,t),Be(xt,n),Nt===null&&(Nt=t)),Te&&zn(t,a.treeForkCount),e}return Pe(t),null;case 22:case 23:return Ut(t),Xo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),n=t.updateQueue,n!==null&&Zi(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&ve(Ma),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Mn(at),Pe(t),null;case 25:return null;case 30:return t.flags|=33554432,Pe(t),null}throw Error(c(156,t.tag))}function L1(e,t){switch(ko(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mn(at),Ia(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $s(t),null;case 31:if(t.memoizedState!==null){if(Ut(t),t.alternate===null)throw Error(c(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Zo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ia(),null;case 10:return Mn(t.type),null;case 22:case 23:return Ut(t),Xo(),e!==null&&ve(Ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mn(at),null;case 25:return null;default:return null}}function wm(e,t){switch(ko(t),t.tag){case 3:Mn(at),Ia();break;case 26:case 27:case 5:$s(t);break;case 4:Ia();break;case 31:t.memoizedState!==null&&Ut(t);break;case 13:Ut(t);break;case 19:Zo(t);break;case 10:Mn(t.type);break;case 22:case 23:Ut(t),Xo(),e!==null&&ve(Ma);break;case 24:Mn(at)}}function vs(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&e)===e){a=void 0;var i=n.create,f=n.inst;a=i(),f.destroy=a}n=n.next}while(n!==l)}}catch(m){Qe(t,t.return,m)}}function aa(e,t,n){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){var f=a.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,l=t;var y=n,A=m;try{A()}catch(D){Qe(l,y,D)}}}a=a.next}while(a!==i)}}catch(D){Qe(t,t.return,D)}}function Sm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{fh(t,n)}catch(a){Qe(e,e.return,a)}}}function jm(e,t,n){n.props=Ua(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Qe(e,t,a)}}function fn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var l=e.stateNode,i=Tn(e.memoizedProps,l);(l.ref===null||l.ref.name!==i)&&(l.ref=kp(i)),a=l.ref;break;case 7:if(e.stateNode===null){var f=new Vt(e);x(e.child,!1,Cy,f,void 0,void 0),e.stateNode=f}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(m){Qe(e,t,m)}}function bt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){Qe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){Qe(e,t,l)}else n.current=null}function Ji(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Up(e.stateNode,t[n])}function _m(e){for(var t=e.return;t!==null&&(jc(t)&&Up(e.stateNode,t.stateNode),!Sc(t));)t=t.return}function Ns(e){for(var t=e.return;t!==null&&(jc(t)&&Ey(e.stateNode,t.stateNode),!Sc(t));)t=t.return}function Sc(e){return e.tag===5||e.tag===3||e.tag===27}function jc(e){return e&&e.tag===7&&e.stateNode!==null}function _c(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){Qe(e,e.return,l)}}function Ac(e,t,n){try{var a=e.stateNode;uy(a,e.type,n,t),a[At]=t}catch(l){Qe(e,e.return,l)}}function Am(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ua(e.type)||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Am(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&&ua(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 Cc(e,t,n,a){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(l,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(l),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn)),Ji(e,a),qe=!0;else if(l!==4&&(l===27&&(Ji(e,a),a=null,ua(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Cc(e,t,n,a),e=e.sibling;e!==null;)Cc(e,t,n,a),e=e.sibling}function Ii(e,t,n,a){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?n.insertBefore(l,t):n.appendChild(l),Ji(e,a),qe=!0;else if(l!==4&&(l===27&&(Ji(e,a),a=null,ua(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ii(e,t,n,a),e=e.sibling;e!==null;)Ii(e,t,n,a),e=e.sibling}function Tm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);yt(t,a,n),t[mt]=e,t[At]=n}catch(i){Qe(e,e.return,i)}}var Pi=!1,Lt=null;function Cm(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Pi=!0)}var hn=null;function Em(){var e=hn;return hn=null,e}var Ct=0;function yl(e,t,n,a,l){return Ct=0,zm(e.child,t,n,a,l)}function zm(e,t,n,a,l){for(var i=!1;e!==null;){if(e.tag===5){var f=e.stateNode;if(a!==null){var m=du(f);a.push(m),m.view&&(i=!0)}else i||du(f).view&&(i=!0);Pi=!0,Ep(f,Ct===0?t:t+"_"+Ct,n),Ct++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||zm(e.child,t,n,a,l)&&(i=!0));e=e.sibling}return i}function mn(e,t){for(;e!==null;)e.tag===5?zp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||mn(e.child,t)),e=e.sibling}function Fi(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Fi(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(c(544));var n=t.name;t=Cn(t.default,t.share),t!=="none"&&(yl(e,n,t,null,!1)||mn(e.child,!1))}e=e.sibling}}function Ec(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,l=Tn(a,n),i=Cn(a.default,n.paired?a.share:a.enter);i!=="none"?yl(e,l,i,null,!1)?(Fi(e),n.paired||t||Tl(e,a.onEnter)):mn(e.child,!1):Fi(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Ec(e,t),e=e.sibling;else Fi(e)}function zc(e){if(Lt!==null&&Lt.size!==0){var t=Lt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,a=n.name;if(a!=null&&a!=="auto"){var l=t.get(a);if(l!==void 0){var i=Cn(n.default,n.share);if(i!=="none"&&(yl(e,a,i,null,!1)?(i=e.stateNode,l.paired=i,i.paired=l,Tl(e,n.onShare)):mn(e.child,!1)),t.delete(a),t.size===0)break}}}zc(e)}e=e.sibling}}}function kc(e){if(e.tag===30){var t=e.memoizedProps,n=Tn(t,e.stateNode),a=Lt!==null?Lt.get(n):void 0,l=Cn(t.default,a!==void 0?t.share:t.exit);l!=="none"&&(yl(e,n,l,null,!1)?a!==void 0?(l=e.stateNode,a.paired=l,l.paired=a,Lt.delete(n),Tl(e,t.onShare)):Tl(e,t.onExit):mn(e.child,!1)),Lt!==null&&zc(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)kc(e),e=e.sibling;else Lt!==null&&zc(e)}function km(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Tn(t,e.stateNode);t=Cn(t.default,t.update),e.flags&=-5,t!=="none"&&yl(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&km(e);e=e.sibling}}function Mc(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,mn(e.child,!1))}Mc(e)}e=e.sibling}}function $i(e){if(e.tag===30)e.stateNode.paired=null,mn(e.child,!1),Mc(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)$i(e),e=e.sibling;else Mc(e)}function Mm(e){for(e=e.child;e!==null;)e.tag===30?mn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Mm(e),e=e.sibling}function Oc(e,t,n,a,l,i,f){for(var m=!1;t!==null;){if(t.tag===5){var y=t.stateNode;if(i!==null&&Ct<i.length){var A=i[Ct],D=du(y);(A.view||D.view)&&(m=!0);var H;if(H=(e.flags&4)===0)if(D.clip)H=!0;else{H=A.rect;var j=D.rect;H=H.y!==j.y||H.x!==j.x||H.height!==j.height||H.width!==j.width}H&&(e.flags|=4),D.abs?D=!A.abs:(A=A.rect,D=D.rect,D=A.height!==D.height||A.width!==D.width),D&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Ep(y,Ct===0?n:n+"_"+Ct,l),m&&(e.flags&4)!==0||(hn===null&&(hn=[]),hn.push(y,Ct===0?a:a+"_"+Ct,t.memoizedProps)),Ct++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&f?e.flags|=t.flags&32:Oc(e,t.child,n,a,l,i,f)&&(m=!0));t=t.sibling}return m}function Om(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,l=Tn(n,a),i=Cn(n.default,n.update),f;f=e.memoizedState,e.memoizedState=null,a=e;var m=e.child;Ct=0,l=Oc(a,m,l,l,i,f,!1),(e.flags&4)!==0&&l&&Tl(e,n.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Om(e);e=e.sibling}}var ft=!1,Ve=!1,pn=!1,Dc=!1,Dm=typeof WeakSet=="function"?WeakSet:Set,ht=null,gn=!1,ws=!1,Wi=!1,Rc=!1;function q1(e,t,n){if(e=e.containerInfo,iu=Ul,e=Lf(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 l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var m=0,y=-1,A=-1,D=0,H=0,j=e,O=null;t:for(;;){for(var te;j!==a||i!==0&&j.nodeType!==3||(y=m+i),j!==f||l!==0&&j.nodeType!==3||(A=m+l),j.nodeType===3&&(m+=j.nodeValue.length),(te=j.firstChild)!==null;)O=j,j=te;for(;;){if(j===e)break t;if(O===a&&++D===i&&(y=m),O===f&&++H===l&&(A=m),(te=j.nextSibling)!==null)break;j=O,O=j.parentNode}j=te}a=y===-1||A===-1?null:{start:y,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(ru={focusedElem:e,selectionRange:a},Ul=!1,n=(n&335544064)===n,ht=t,t=n?9270:1024;ht!==null;){if(e=ht,n&&(a=e.deletions,a!==null))for(i=0;i<a.length;i++)n&&kc(a[i]);if(e.alternate===null&&(e.flags&2)!==0)n&&Cm(e),er(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&kc(a),er(n);continue}else if(a!==null&&a.memoizedState!==null){n&&Cm(e),er(n);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,ht=a):(n&&km(e),er(n))}}Lt=null}function er(e){for(;ht!==null;){var t=ht,n=e,a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((l&1024)!==0&&a!==null){n=void 0,l=a.memoizedProps,a=a.memoizedState;var i=t.stateNode;try{var f=Ua(t.type,l);n=i.getSnapshotBeforeUpdate(f,a),i.__reactInternalSnapshotBeforeUpdate=n}catch(m){Qe(t,t.return,m)}}break;case 3:if((l&1024)!==0){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)mu(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":mu(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=Tn(a.memoizedProps,a.stateNode),l=t.memoizedProps,l=Cn(l.default,l.update),l!=="none"&&yl(a,n,l,a.memoizedState=[],!0));break;default:if((l&1024)!==0)throw Error(c(163))}if(a=t.sibling,a!==null){a.return=t.return,ht=a;break}ht=t.return}}function Rm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:xn(e,n),a&4&&vs(5,n);break;case 1:if(xn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){Qe(n,n.return,f)}else{var l=Ua(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Qe(n,n.return,f)}}a&64&&Sm(n),a&512&&fn(n,n.return);break;case 3:if(xn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{fh(e,t)}catch(f){Qe(n,n.return,f)}}break;case 27:t===null&&a&4&&Tm(n);case 26:case 5:xn(e,n),t===null&&a&4&&_c(n),a&512&&fn(n,n.return);break;case 12:xn(e,n);break;case 31:xn(e,n),a&4&&qm(e,n);break;case 13:xn(e,n),a&4&&Hm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=F1.bind(null,n),My(e,n))));break;case 22:if(a=n.memoizedState!==null||ft,!a){var i=t!==null&&t.memoizedState!==null||Ve;t=ft,l=Ve,ft=a,(Ve=i)&&!l?(a=2,(n.subtreeFlags&8772)!==0&&(a|=1),ln(e,n,a)):xn(e,n),ft=t,Ve=l}break;case 30:xn(e,n),a&512&&fn(n,n.return);break;case 7:a&512&&fn(n,n.return);default:xn(e,n)}}function Bc(e,t){for(e=e.child;e!==null;)Bm(e,t),e=e.sibling}function Bm(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var l=e.stateNode,i=e.memoizedProps.style,f=i!=null&&i.hasOwnProperty("display")?i.display:null;l.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(y){Qe(e,e.return,y)}Uc(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,qe=!0}catch(y){Qe(e,e.return,y)}break;case 18:try{var m=e.stateNode;t?Cp(m,!0):Cp(e.stateNode,!1)}catch(y){Qe(e,e.return,y)}break;case 22:case 23:e.memoizedState===null&&Bc(e,t);break;default:Bc(e,t)}}function Uc(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,a=t;switch(n.tag){case 4:Bm(n,a);break e;case 22:n.memoizedState===null&&Uc(n,a);break e;default:Uc(n,a)}}e=e.sibling}}function Um(e){var t=e.alternate;t!==null&&(e.alternate=null,Um(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&si(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 Fe=null,Et=!1;function nn(e,t,n){for(n=n.child;n!==null;)Lm(e,t,n),n=n.sibling}function Lm(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 26:Ve||bt(n,t),nn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Ve&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ve||bt(n,t),Ns(n);var a=Fe,l=Et;ua(n.type)&&(Fe=n.stateNode,Et=!1),nn(e,t,n),Vp(n.stateNode,n.type,n.memoizedProps),Fe=a,Et=l;break;case 5:Ve||bt(n,t),Ns(n);case 6:if(n.tag===6&&Ns(n),a=Fe,l=Et,Fe=null,nn(e,t,n),Fe=a,Et=l,Fe!==null)if(Et)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(n.stateNode),qe=!0}catch(i){Qe(n,t,i)}else try{Fe.removeChild(n.stateNode),qe=!0}catch(i){Qe(n,t,i)}break;case 18:Fe!==null&&(Et?(e=Fe,Tp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ll(e)):Tp(Fe,n.stateNode));break;case 4:a=Fe,l=Et,Fe=n.stateNode.containerInfo,Et=!0,nn(e,t,n),Fe=a,Et=l;break;case 0:case 11:case 14:case 15:aa(2,n,t),Ve||aa(4,n,t),nn(e,t,n);break;case 1:Ve||(bt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&jm(n,t,a)),nn(e,t,n);break;case 21:nn(e,t,n);break;case 22:Ve=(a=Ve)||n.memoizedState!==null,nn(e,t,n),Ve=a;break;case 30:bt(n,t),nn(e,t,n);break;case 7:Ve||bt(n,t),nn(e,t,n);break;default:nn(e,t,n)}}function qm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ll(e)}catch(n){Qe(t,t.return,n)}}}function Hm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ll(e)}catch(n){Qe(t,t.return,n)}}function H1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dm),t;default:throw Error(c(435,e.tag))}}function tr(e,t){var n=H1(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var l=$1.bind(null,e,a);a.then(l,l)}})}function jt(e,t,n){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],f=e,m=t,y=m;e:for(;y!==null;){switch(y.tag){case 27:if(ua(y.type)){Fe=y.stateNode,Et=!1;break e}break;case 5:Fe=y.stateNode,Et=!1;break e;case 3:case 4:Fe=y.stateNode.containerInfo,Et=!0;break e}y=y.return}if(Fe===null)throw Error(c(160));Lm(f,m,i),Fe=null,Et=!1,f=i.alternate,f!==null&&(f.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Gm(t,e,n),t=t.sibling}var an=null;function Gm(e,t,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(l&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var i=0;i<a.length;i++){var f=a[i];f.ref.impl=f.nextImpl}jt(t,e,n),_t(e),l&4&&(aa(3,e,e.return),vs(3,e),aa(5,e,e.return));break;case 1:jt(t,e,n),_t(e),l&512&&(Ve||a===null||bt(a,a.return)),l&64&&ft&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(i=an,jt(t,e,n),_t(e),l&512&&(Ve||a===null||bt(a,a.return)),l&4)if(l=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if(ft)e.stateNode=jp(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,l=i.ownerDocument||i;t:switch(t){case"title":a=l.getElementsByTagName("title")[0],(!a||a[Jl]||a[mt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=l.createElement(t),l.head.insertBefore(a,l.querySelector("head > title"))),yt(a,t,n),a[mt]=e,ut(a),t=a;break e;case"link":if(i=Jp("link","href",l).get(t+(n.href||""))){for(f=0;f<i.length;f++)if(a=i[f],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(f,1);break t}}a=l.createElement(t),yt(a,t,n),l.head.appendChild(a);break;case"meta":if(i=Jp("meta","content",l).get(t+(n.content||""))){for(f=0;f<i.length;f++)if(a=i[f],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){i.splice(f,1);break t}}a=l.createElement(t),yt(a,t,n),l.head.appendChild(a);break;default:throw Error(c(468,t))}a[mt]=e,ut(a),t=a}e.stateNode=t}else ft||Nu(i,e.type,e.stateNode);else e.stateNode=Zp(i,n,e.memoizedProps);else l!==n?(l===null?(t=a.stateNode,t===null||Ve||t.parentNode.removeChild(t)):l.count--,n===null?ft||Nu(i,e.type,e.stateNode):Zp(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Ac(e,e.memoizedProps,a.memoizedProps);break;case 27:jt(t,e,n),_t(e),l&512&&(Ve||a===null||bt(a,a.return)),a!==null&&l&4&&Ac(e,e.memoizedProps,a.memoizedProps);break;case 5:if(i=pn,pn=!1,jt(t,e,n),pn=i,_t(e),l&512&&(Ve||a===null||bt(a,a.return)),e.flags&32){t=e.stateNode;try{tl(t,""),qe=!0}catch(D){Qe(e,e.return,D)}}l&4&&e.stateNode!=null&&(t=e.memoizedProps,Ac(e,t,a!==null?a.memoizedProps:t)),l&1024&&(Dc=!0);break;case 6:if(jt(t,e,n),_t(e),l&4){if(e.stateNode===null)throw Error(c(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,qe=!0}catch(D){Qe(e,e.return,D)}}break;case 3:if(qe=!1,gr=null,i=an,an=ks(t.containerInfo),jt(t,e,n),an=i,_t(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ll(t.containerInfo)}catch(D){Qe(e,e.return,D)}Dc&&(Dc=!1,Vm(e)),qe=!1;break;case 4:l=pn,pn=ft,a=of(),i=an,an=ks(e.stateNode.containerInfo),jt(t,e,n),_t(e),an=i,qe&&ws&&(Wi=!0),qe=a,pn=l;break;case 12:jt(t,e,n),_t(e);break;case 31:jt(t,e,n),_t(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,tr(e,t)));break;case 13:jt(t,e,n),_t(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lr=Mt()),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,tr(e,t)));break;case 22:i=e.memoizedState!==null,f=a!==null&&a.memoizedState!==null;var m=ft,y=Ve,A=pn;ft=m||i,pn=A||i,Ve=y||f,jt(t,e,n),Ve=y,pn=A,ft=m,_t(e),l&8192&&(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,!i||a===null||f||ft||Ve||(t=f||Ve,n=ft,a=Ve,ft=i||ft,Ve=t,la(e,2),ft=n,Ve=a),!i&&pn||Bc(e,i)),l&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,tr(e,n))));break;case 19:jt(t,e,n),_t(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,tr(e,t)));break;case 30:l&512&&(Ve||a===null||bt(a,a.return)),l=of(),i=ws,f=(n&335544064)===n,m=e.memoizedProps,ws=f&&Cn(m.default,m.update)!=="none",jt(t,e,n),_t(e),f&&a!==null&&qe&&(e.flags|=4),ws=i,qe=l;break;case 21:break;case 7:l&512&&(Ve||a===null||bt(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:jt(t,e,n),_t(e)}}function _t(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Am(a)){n=a;break}a=a.return}a=null;for(var l=e.return;l!==null;){if(jc(l)){var i=l.stateNode;a===null?a=[i]:a.push(i)}if(Sc(l))break;l=l.return}var f=a;if(n==null)throw Error(c(160));switch(n.tag){case 27:var m=n.stateNode,y=Tc(e);Ii(e,y,m,f);break;case 5:var A=n.stateNode;n.flags&32&&(tl(A,""),n.flags&=-33);var D=Tc(e);Ii(e,D,A,f);break;case 3:case 4:var H=n.stateNode.containerInfo,j=Tc(e);Cc(e,j,H,f);break;default:throw Error(c(161))}}catch(O){Qe(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vm(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Ul=!0,t.reset(),Ul=!1),e=e.sibling}}function vl(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Ym(t,e),t=t.sibling;else Om(t)}function Ym(e,t){var n=e.alternate;if(n===null)Ec(e,!1);else switch(e.tag){case 3:if(Rc=gn=!1,Em(),vl(t,e),!gn&&!Wi){if(e=hn,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var l=e[a+1];zp(n,e[a+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Rc=!0}hn=null;break;case 5:vl(t,e);break;case 4:a=gn,gn=!1,vl(t,e),gn&&(Wi=!0),gn=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?Ec(e,!1):vl(t,e));break;case 30:a=gn,l=Em(),gn=!1,vl(t,e),gn&&(e.flags|=4);var i=e.memoizedProps,f=e.stateNode;t=Tn(i,f),f=Tn(n.memoizedProps,f);var m=Cn(i.default,i.update);m==="none"?t=!1:(i=n.memoizedState,n.memoizedState=null,n=e.child,Ct=0,t=Oc(e,n,t,f,m,i,!0),Ct!==(i===null?0:i.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Tl(e,e.memoizedProps.onUpdate),hn=l):l!==null&&(l.push.apply(l,hn),hn=l),gn=(e.flags&32)!==0?!0:a;break;default:vl(t,e)}}function xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rm(e,t.alternate,t),t=t.sibling}function la(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:aa(4,n,n.return),la(n,a);break;case 1:bt(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&jm(n,n.return,l),la(n,a);break;case 27:(a&2)!==0&&Vp(n.stateNode,n.type,n.memoizedProps);case 5:bt(n,n.return),n.tag!==5&&n.tag!==27||Ns(n),la(n,a);break;case 6:Ns(n);break;case 26:bt(n,n.return),l=n.stateNode,n.memoizedState!==null||l===null||Ve||l.parentNode.removeChild(l),la(n,a);break;case 22:n.memoizedState===null&&la(n,a);break;case 30:bt(n,n.return),la(n,a);break;case 7:bt(n,n.return);default:la(n,a)}e=e.sibling}}function ln(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var a=t.alternate,l=e,i=t,f=i.flags,m=(n&1)!==0;switch(i.tag){case 0:case 11:case 15:ln(l,i,n),vs(4,i);break;case 1:if(ln(l,i,n),a=i,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(D){Qe(a,a.return,D)}if(a=i,l=a.updateQueue,l!==null){var y=a.stateNode;try{var A=l.shared.hiddenCallbacks;if(A!==null)for(l.shared.hiddenCallbacks=null,l=0;l<A.length;l++)dh(A[l],y)}catch(D){Qe(a,a.return,D)}}m&&f&64&&Sm(i),fn(i,i.return);break;case 27:(n&2)!==0&&Tm(i);case 5:i.tag!==5&&i.tag!==27||_m(i),ln(l,i,n),m&&a===null&&f&4&&_c(i),fn(i,i.return);break;case 6:_m(i);break;case 26:y=i.stateNode,i.memoizedState!==null||y===null||ft||Nu(ks(y.ownerDocument),i.type,y),ln(l,i,n),m&&a===null&&f&4&&_c(i),fn(i,i.return);break;case 12:ln(l,i,n);break;case 31:ln(l,i,n),m&&f&4&&qm(l,i);break;case 13:ln(l,i,n),m&&f&4&&Hm(l,i);break;case 22:i.memoizedState===null&&ln(l,i,n),fn(i,i.return);break;case 30:ln(l,i,n),fn(i,i.return);break;case 7:fn(i,i.return);default:ln(l,i,n)}t=t.sibling}}function Lc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&rs(n))}function qc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rs(e))}function Pt(e,t,n,a){var l=(n&335544064)===n;if(t.subtreeFlags&(l?10262:10256))for(t=t.child;t!==null;)Qm(e,t,n,a),t=t.sibling;else l&&Mm(t)}function Qm(e,t,n,a){var l=(n&335544064)===n;l&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&$i(t);var i=t.flags;switch(t.tag){case 0:case 11:case 15:Pt(e,t,n,a),i&2048&&vs(9,t);break;case 1:Pt(e,t,n,a);break;case 3:Pt(e,t,n,a),l&&Rc&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),i&2048&&(i=null,t.alternate!==null&&(i=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==i&&(t.refCount++,i!=null&&rs(i)));break;case 12:if(i&2048){Pt(e,t,n,a),i=t.stateNode;try{var f=t.memoizedProps,m=f.id,y=f.onPostCommit;typeof y=="function"&&y(m,t.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(A){Qe(t,t.return,A)}}else Pt(e,t,n,a);break;case 31:Pt(e,t,n,a);break;case 13:Pt(e,t,n,a);break;case 23:break;case 22:f=t.stateNode,m=t.alternate,t.memoizedState!==null?(l&&m!==null&&m.memoizedState===null&&$i(m),f._visibility&2?Pt(e,t,n,a):Ss(e,t)):(l&&m!==null&&m.memoizedState!==null&&$i(t),f._visibility&2?Pt(e,t,n,a):(f._visibility|=2,Nl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),i&2048&&Lc(m,t);break;case 24:Pt(e,t,n,a),i&2048&&qc(t.alternate,t);break;case 30:l&&(i=t.alternate,i!==null&&(mn(i.child,!0),mn(t.child,!0))),Pt(e,t,n,a);break;default:Pt(e,t,n,a)}}function Nl(e,t,n,a,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,f=t,m=n,y=a,A=f.flags;switch(f.tag){case 0:case 11:case 15:Nl(i,f,m,y,l),vs(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?Nl(i,f,m,y,l):Ss(i,f):(D._visibility|=2,Nl(i,f,m,y,l)),l&&A&2048&&Lc(f.alternate,f);break;case 24:Nl(i,f,m,y,l),l&&A&2048&&qc(f.alternate,f);break;default:Nl(i,f,m,y,l)}t=t.sibling}}function Ss(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,l=a.flags;switch(a.tag){case 22:Ss(n,a),l&2048&&Lc(a.alternate,a);break;case 24:Ss(n,a),l&2048&&qc(a.alternate,a);break;default:Ss(n,a)}t=t.sibling}}var La=8192;function qa(e,t,n){if(e.subtreeFlags&La)for(e=e.child;e!==null;)Xm(e,t,n),e=e.sibling}function Xm(e,t,n){switch(e.tag){case 26:qa(e,t,n),e.flags&La&&(e.memoizedState!==null?Ky(n,an,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&$p(n,e)));break;case 5:qa(e,t,n),e.flags&La&&(e=e.stateNode,(t&335544128)===t&&$p(n,e));break;case 3:case 4:var a=an;an=ks(e.stateNode.containerInfo),qa(e,t,n),an=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=La,La=16777216,qa(e,t,n),La=a):qa(e,t,n));break;case 30:if((e.flags&La)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var l=e.stateNode;l.paired=null,Lt===null&&(Lt=new Map),Lt.set(a,l)}qa(e,t,n);break;default:qa(e,t,n)}}function Km(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 js(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,Jm(a,e)}Km(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zm(e),e=e.sibling}function Zm(e){switch(e.tag){case 0:case 11:case 15:js(e),e.flags&2048&&aa(9,e,e.return);break;case 3:js(e);break;case 12:js(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nr(e)):js(e);break;default:js(e)}}function nr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ht=a,Jm(a,e)}Km(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:aa(8,t,t.return),nr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,nr(t));break;default:nr(t)}e=e.sibling}}function Jm(e,t){for(;ht!==null;){var n=ht;switch(n.tag){case 0:case 11:case 15:aa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:rs(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ht=a;else e:for(n=e;ht!==null;){a=ht;var l=a.sibling,i=a.return;if(Um(a),a===n){ht=null;break e}if(l!==null){l.return=i,ht=l;break e}ht=i}}}var G1={getCacheForType:function(e){var t=pt(at),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return pt(at).controller.signal}},V1=typeof WeakMap=="function"?WeakMap:Map,He=0,Je=null,Ee=null,Me=0,Ye=0,qt=null,sa=!1,wl=!1,Hc=!1,Un=0,et=0,ia=0,Ha=0,ar=0,Ht=0,Sl=0,_s=null,zt=null,Gc=!1,lr=0,Im=0,sr=1/0,ir=null,ra=null,$e=0,sn=null,Ga=null,bn=0,Vc=0,Yc=null,Pm=null,jl=null,_l=null,Al=null,As=0,rr=null;function Gt(){return(He&2)!==0&&Me!==0?Me&-Me:oe.T!==null?Wc():$d()}function Fm(){if(Ht===0)if((Me&536870912)===0||Te){var e=ti;ti<<=1,(ti&3932160)===0&&(ti=262144),Ht=e}else Ht=536870912;return e=gt.current,e!==null&&(e.flags|=32),Ht}function Tl(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=kp(Tn(e.memoizedProps,n))),_l===null&&(_l=[]),_l.push(t.bind(null,a))}}function kt(e,t,n){(e===Je&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(Cl(e,0),oa(e,Me,Ht,!1)),Zl(e,n),((He&2)===0||e!==Je)&&(e===Je&&((He&2)===0&&(Ha|=n),et===4&&oa(e,Me,Ht,!1)),yn(e))}function $m(e,t,n){if((He&6)!==0)throw Error(c(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Kl(e,t),l=a?X1(e,t):Xc(e,t,!0),i=a;do{if(l===0){wl&&!a&&oa(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!Y1(n)){l=Xc(e,t,!1),i=!1;continue}if(l===2){if(i=t,e.errorRecoveryDisabledLanes&i)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;l=_s;var y=m.current.memoizedState.isDehydrated;if(y&&(Cl(m,f).flags|=256),f=Xc(m,f,!1),f!==2&&f!==6){if(Hc&&!y){m.errorRecoveryDisabledLanes|=i,Ha|=i,l=4;break e}i=zt,zt=l,i!==null&&(zt===null?zt=i:zt.push.apply(zt,i))}l=f}if(i=!1,l!==2)continue}}if(l===1){Cl(e,0),oa(e,t,0,!0);break}e:{switch(a=e,i=l,i){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:oa(a,t,Ht,!sa);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(l=lr+300-Mt(),10<l)){if(oa(a,t,Ht,!sa),ai(a,0,!0)!==0)break e;bn=t,a.timeoutHandle=uu(Wm.bind(null,a,n,zt,ir,Gc,t,Ht,Ha,Sl,sa,i,"Throttled",-0,0),l);break e}Wm(a,n,zt,ir,Gc,t,Ht,Ha,Sl,sa,i,null,-0,0)}}break}while(!0);yn(e)}function Wm(e,t,n,a,l,i,f,m,y,A,D,H,j,O){e.timeoutHandle=-1;var te=t.subtreeFlags,he=(i&335544064)===i;if(H=null,(he||te&8192||(te&16785408)===16785408)&&(H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},Lt=null,Xm(t,i,H),he&&(te=H,he=e.containerInfo,he=(he.nodeType===9?he:he.ownerDocument).__reactViewTransition,he!=null&&(te.count++,te.waitingForViewTransition=!0,te=Ds.bind(te),he.finished.then(te,te))),te=(i&62914560)===i?lr-Mt():(i&4194048)===i?Im-Mt():0,te=Zy(H,te),te!==null)){bn=i,e.cancelPendingCommit=te(rp.bind(null,e,t,i,n,a,l,f,m,y,A,D,H,null,j,O)),oa(e,i,f,!A);return}rp(e,t,i,n,a,l,f,m,y,A,D,H)}function Y1(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],i=l.getSnapshot;l=l.value;try{if(!Bt(i(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 oa(e,t,n,a){t=Zd(e,t),t&=~ar,t&=~Ha,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var l=t;0<l;){var i=31-Dt(l),f=1<<i;a[i]=-1,l&=~f}n!==0&&Id(e,n,t)}function or(){return(He&6)===0?(Ts(0),!1):!0}function Qc(){if(Ee!==null){if(Ye===0)var e=Ee.return;else e=Ee,kn=Ca=null,$o(e),ml=null,us=0,e=Ee;for(;e!==null;)wm(e.alternate,e),e=e.return;Ee=null}}function Cl(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,hy(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),bn=0,Qc(),Je=e,Ee=n=En(e.current,null),Me=t,Ye=0,qt=null,sa=!1,wl=Kl(e,t),Hc=!1,Sl=Ht=ar=Ha=ia=et=0,zt=_s=null,Gc=!1,Un=Zd(e,t),gi(),n}function ep(e,t){_e=null,oe.H=Gi,t===hl||t===Ti?(t=rh(),Ye=3):t===qo?(t=rh(),Ye=4):Ye=t===hc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,Ee===null&&(et=1,Vi(e,Kt(t,e.current)))}function tp(){var e=gt.current;return e===null?!0:(Me&4194048)===Me?Nt===null:(Me&62914560)===Me||(Me&536870912)!==0?e===Nt:!1}function np(){var e=oe.H;return oe.H=Gi,e===null?Gi:e}function ap(){var e=oe.A;return oe.A=G1,e}function cr(){et=4,sa||(Me&4194048)!==Me&>.current!==null||(wl=!0),(ia&134217727)===0&&(Ha&134217727)===0||Je===null||oa(Je,Me,Ht,!1)}function Xc(e,t,n){var a=He;He|=2;var l=np(),i=ap();(Je!==e||Me!==t)&&(ir=null,Cl(e,t)),t=!1;var f=et;e:do try{if(Ye!==0&&Ee!==null){var m=Ee,y=qt;switch(Ye){case 8:Qc(),f=6;break e;case 3:case 2:case 9:case 6:gt.current===null&&(t=!0);var A=Ye;if(Ye=0,qt=null,El(e,m,y,A),n&&wl){f=0;break e}break;default:A=Ye,Ye=0,qt=null,El(e,m,y,A)}}Q1(),f=et;break}catch(D){ep(e,D)}while(!0);return t&&e.shellSuspendCounter++,kn=Ca=null,He=a,oe.H=l,oe.A=i,Ee===null&&(Je=null,Me=0,gi()),f}function Q1(){for(;Ee!==null;)lp(Ee)}function X1(e,t){var n=He;He|=2;var a=np(),l=ap();Je!==e||Me!==t?(ir=null,sr=Mt()+500,Cl(e,t)):wl=Kl(e,t);e:do try{if(Ye!==0&&Ee!==null){t=Ee;var i=qt;t:switch(Ye){case 1:Ye=0,qt=null,El(e,t,i,1);break;case 2:case 9:if(sh(i)){Ye=0,qt=null,sp(t);break}t=function(){Ye!==2&&Ye!==9||Je!==e||(Ye=7),yn(e)},i.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:sh(i)?(Ye=0,qt=null,sp(t)):(Ye=0,qt=null,El(e,t,i,7));break;case 5:var f=null;switch(Ee.tag){case 26:f=Ee.memoizedState;case 5:case 27:var m=Ee;if(f?Pp(f):m.stateNode.complete){Ye=0,qt=null;var y=m.sibling;if(y!==null)Ee=y;else{var A=m.return;A!==null?(Ee=A,ur(A)):Ee=null}break t}}Ye=0,qt=null,El(e,t,i,5);break;case 6:Ye=0,qt=null,El(e,t,i,6);break;case 8:Qc(),et=6;break e;default:throw Error(c(462))}}K1();break}catch(D){ep(e,D)}while(!0);return kn=Ca=null,oe.H=a,oe.A=l,He=n,Ee!==null?0:(Je=null,Me=0,gi(),et)}function K1(){for(;Ee!==null&&!c0();)lp(Ee)}function lp(e){var t=vm(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?ur(e):Ee=t}function sp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hm(n,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=hm(n,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:$o(t);var a=t;a===dt&&(Te?(wi(a),a.tag===5&&a.stateNode!=null&&(Ie=a.stateNode)):(wi(a),Te=!0));default:wm(n,t),t=Ee=Jf(t,Un),t=vm(n,t,Un)}e.memoizedProps=e.pendingProps,t===null?ur(e):Ee=t}function El(e,t,n,a){kn=Ca=null,$o(t),ml=null,us=0;var l=t.return;try{if(O1(e,l,t,n,Me)){et=1,Vi(e,Kt(n,e.current)),Ee=null;return}}catch(i){if(l!==null)throw Ee=l,i;et=1,Vi(e,Kt(n,e.current)),Ee=null;return}t.flags&32768?(Te||a===1?e=!0:wl||(Me&536870912)!==0?e=!1:(sa=e=!0,(a===2||a===9||a===3||a===6)&&(a=gt.current,a!==null&&a.tag===13&&(a.flags|=16384))),ip(t,e)):ur(t)}function ur(e){var t=e;do{if((t.flags&32768)!==0){ip(t,sa);return}e=t.return;var n=U1(t.alternate,t,Un);if(n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);et===0&&(et=5)}function ip(e,t){do{var n=L1(e.alternate,e);if(n!==null){n.flags&=32767,Ee=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=n}while(e!==null);et=6,Ee=null}function rp(e,t,n,a,l,i,f,m,y,A,D,H){e.cancelPendingCommit=null;do dr();while($e!==0);if((He&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));e===Je&&(Ee=Je=null,Me=0),Ga=t,sn=e,bn=n,Yc=l,Pm=a,Z1(e,t,n,f,m,y,H)}}function Z1(e,t,n,a,l,i,f){var m=t.lanes|t.childLanes;if(Vc=m,m|=Ao,y0(e,n,m,a,l,i),_l=null,(n&335544064)===n?(Al=N1(e),a=10262):(Al=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,W1(Ws,function(){return Ic(),null})):(e.callbackNode=null,e.callbackPriority=0),Pi=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=oe.T,oe.T=null,l=be.p,be.p=2,i=He,He|=4;try{q1(e,t,n)}finally{He=i,be.p=l,oe.T=a}}$e=1,Pi?jl=yy(f,e.containerInfo,Al,Kc,Zc,I1,Jc,Ic,J1):(Kc(),Zc(),Jc())}function J1(e){if($e!==0){var t=sn.onRecoverableError;t(e,{componentStack:null})}}function I1(){$e===3&&($e=0,Ym(Ga,sn),$e=4)}function Kc(){if($e===1){$e=0;var e=sn,t=Ga,n=bn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=oe.T,oe.T=null;var l=be.p;be.p=2;var i=He;He|=4;try{ws=Wi=!1,Gm(t,e,n),n=ru;var f=Lf(e.containerInfo),m=n.focusedElem,y=n.selectionRange;if(f!==m&&m&&m.ownerDocument&&Uf(m.ownerDocument.documentElement,m)){if(y!==null&&No(m)){var A=y.start,D=y.end;if(D===void 0&&(D=A),"selectionStart"in m)m.selectionStart=A,m.selectionEnd=Math.min(D,m.value.length);else{var H=m.ownerDocument||document,j=H&&H.defaultView||window;if(j.getSelection){var O=j.getSelection(),te=m.textContent.length,he=Math.min(y.start,te),Ae=y.end===void 0?he:Math.min(y.end,te);!O.extend&&he>Ae&&(f=Ae,Ae=he,he=f);var _=Bf(m,he),w=Bf(m,Ae);if(_&&w&&(O.rangeCount!==1||O.anchorNode!==_.node||O.anchorOffset!==_.offset||O.focusNode!==w.node||O.focusOffset!==w.offset)){var k=H.createRange();k.setStart(_.node,_.offset),O.removeAllRanges(),he>Ae?(O.addRange(k),O.extend(w.node,w.offset)):(k.setEnd(w.node,w.offset),O.addRange(k))}}}}for(H=[],O=m;O=O.parentNode;)O.nodeType===1&&H.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<H.length;m++){var q=H[m];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Ul=!!iu,ru=iu=null}finally{He=i,be.p=l,oe.T=a}}e.current=t,$e=2}}function Zc(){if($e===2){$e=0;var e=sn,t=Ga,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=oe.T,oe.T=null;var a=be.p;be.p=2;var l=He;He|=4;try{Rm(e,t.alternate,t)}finally{He=l,be.p=a,oe.T=n}}$e=3}}function Jc(){if($e===4||$e===3){$e=0;var e=jl;jl=null,u0();var t=sn,n=Ga,a=bn,l=Pm,i=(a&335544064)===a?10262:10256;if((n.subtreeFlags&i)!==0||(n.flags&i)!==0?$e=5:($e=0,Ga=sn=null,op(t,t.pendingLanes)),i=t.pendingLanes,i===0&&(ra=null),no(a),n=n.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Xl,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=oe.T,i=be.p,be.p=2,oe.T=null;try{for(var f=t.onRecoverableError,m=0;m<l.length;m++){var y=l[m];f(y.value,{componentStack:y.stack})}}finally{oe.T=n,be.p=i}}if(l=_l,f=Al,Al=null,l!==null&&(_l=null,f===null&&(f=[]),e!==null))for(y=0;y<l.length;y++)n=(0,l[y])(f),n!==void 0&&e.finished.finally(n);(bn&3)!==0&&dr(),yn(t),i=t.pendingLanes,(a&261930)!==0&&(i&42)!==0?t===rr?As++:(As=0,rr=t):(As=0,rr=null),Ts(0)}}function op(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,rs(t)))}function dr(){return jl!==null&&(jl.skipTransition(),jl=null),Kc(),Zc(),Jc(),Ic()}function Ic(){if($e!==5)return!1;var e=sn,t=Vc;Vc=0;var n=no(bn),a=oe.T,l=be.p;try{be.p=32>n?32:n,oe.T=null,n=Yc,Yc=null;var i=sn,f=bn;if($e=0,Ga=sn=null,bn=0,(He&6)!==0)throw Error(c(331));var m=He;if(He|=4,Zm(i.current),Qm(i,i.current,f,n),He=m,Ts(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Xl,i)}catch{}return!0}finally{be.p=l,oe.T=a,op(e,t)}}function cp(e,t,n){t=Kt(n,t),t=fc(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Zl(e,2),yn(e))}function Qe(e,t,n){if(e.tag===3)cp(e,e,n);else for(;t!==null;){if(t.tag===3){cp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ra===null||!ra.has(a))){e=Kt(n,e),n=sm(2),a=Wn(t,n,2),a!==null&&(im(n,a,t,e),Zl(a,2),yn(a));break}}t=t.return}}function Pc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new V1;var l=new Set;a.set(t,l)}else l=a.get(t),l===void 0&&(l=new Set,a.set(t,l));l.has(n)||(Hc=!0,l.add(n),e=P1.bind(null,e,t,n),t.then(e,e))}function P1(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Je===e&&(Me&n)===n&&((et===4||et===3&&(Me&62914560)===Me&&300>Mt()-lr)&&(He&2)===0?Cl(e,0):ar|=n,Sl===Me&&(Sl=0)),yn(e)}function up(e,t){t===0&&(t=Jd()),e=_a(e,t),e!==null&&(Zl(e,t),yn(e))}function F1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),up(e,n)}function $1(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),up(e,n)}function W1(e,t){return $r(e,t)}var zl=null,kl=null,Fc=!1,fr=!1,$c=!1,ca=0;function yn(e){e!==kl&&e.next===null&&(kl===null?zl=kl=e:kl=kl.next=e),fr=!0,Fc||(Fc=!0,ty())}function Ts(e,t){if(!$c&&fr){$c=!0;do for(var n=!1,a=zl;a!==null;){if(e!==0){var l=a.pendingLanes;if(l===0)var i=0;else{var f=a.suspendedLanes,m=a.pingedLanes;i=(1<<31-Dt(42|e)+1)-1,i&=l&~(f&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,mp(a,i))}else i=Me,i=ai(a,a===Je?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Kl(a,i)||(n=!0,mp(a,i));a=a.next}while(n);$c=!1}}function ey(){dp()}function dp(){fr=Fc=!1;var e=0;ca!==0&&fy()&&(e=ca);for(var t=Mt(),n=null,a=zl;a!==null;){var l=a.next,i=fp(a,t);i===0?(a.next=null,n===null?zl=l:n.next=l,l===null&&(kl=n)):(n=a,(e!==0||(i&3)!==0)&&(fr=!0)),a=l}$e!==0&&$e!==5||Ts(e),ca!==0&&(ca=0)}function fp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-Dt(i),m=1<<f,y=l[f];y===-1?((m&n)===0||(m&a)!==0)&&(l[f]=b0(m,t)):y<=t&&(e.expiredLanes|=m),i&=~m}if(t=Je,n=Me,n=ai(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Wr(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Kl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Wr(a),no(n)){case 2:case 8:n=Xd;break;case 32:n=Ws;break;case 268435456:n=Kd;break;default:n=Ws}return a=hp.bind(null,e),n=$r(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Wr(a),e.callbackPriority=2,e.callbackNode=null,2}function hp(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(dr()&&e.callbackNode!==n)return null;var a=Me;return a=ai(e,e===Je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($m(e,a,t),fp(e,Mt()),e.callbackNode!=null&&e.callbackNode===n?hp.bind(null,e):null)}function mp(e,t){if(dr())return null;$m(e,t,!0)}function ty(){my(function(){(He&6)!==0?$r(Qd,ey):dp()})}function Wc(){if(ca===0){var e=ka;e===0&&(e=ei,ei<<=1,(ei&261888)===0&&(ei=256)),ca=e}return ca}function pp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:oi(e)}function ny(e,t,n,a,l){if(t==="submit"&&n&&n.stateNode===l){var i=pp((l[At]||null).action),f=a.submitter;f&&(t=(t=f[At]||null)?pp(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var m=new fi("action","action",null,a,l);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ca!==0){var y=new FormData(l,f);rc(n,{pending:!0,data:y,method:l.method,action:i},null,y)}}else typeof i=="function"&&(m.preventDefault(),y=new FormData(l,f),rc(n,{pending:!0,data:y,method:l.method,action:i},i,y))},currentTarget:l}]})}}for(var eu=0;eu<_o.length;eu++){var tu=_o[eu],ay=tu.toLowerCase(),ly=tu[0].toUpperCase()+tu.slice(1);tn(ay,"on"+ly)}tn(Gf,"onAnimationEnd"),tn(Vf,"onAnimationIteration"),tn(Yf,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(h1,"onTransitionRun"),tn(m1,"onTransitionStart"),tn(p1,"onTransitionCancel"),tn(Qf,"onTransitionEnd"),Wa("onMouseEnter",["mouseout","mouseover"]),Wa("onMouseLeave",["mouseout","mouseover"]),Wa("onPointerEnter",["pointerout","pointerover"]),Wa("onPointerLeave",["pointerout","pointerover"]),wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cs="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(" "),sy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cs));function gp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],l=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var f=a.length-1;0<=f;f--){var m=a[f],y=m.instance,A=m.currentTarget;if(m=m.listener,y!==i&&l.isPropagationStopped())break e;i=m,l.currentTarget=A;try{i(l)}catch(D){pi(D)}l.currentTarget=null,i=y}else for(f=0;f<a.length;f++){if(m=a[f],y=m.instance,A=m.currentTarget,m=m.listener,y!==i&&l.isPropagationStopped())break e;i=m,l.currentTarget=A;try{i(l)}catch(D){pi(D)}l.currentTarget=null,i=y}}}}function ze(e,t){var n=t[ef];n===void 0&&(n=t[ef]=new Set);var a=e+"__bubble";n.has(a)||(xp(t,e,2,!1),n.add(a))}function nu(e,t,n){var a=0;t&&(a|=4),xp(n,e,a,t)}var hr="_reactListening"+Math.random().toString(36).slice(2);function au(e){if(!e[hr]){e[hr]=!0,af.forEach(function(n){n!=="selectionchange"&&(sy.has(n)||nu(n,!1,e),nu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hr]||(t[hr]=!0,nu("selectionchange",!1,t))}}function xp(e,t,n,a){switch(ig(t)){case 2:var l=Fy;break;case 8:l=$y;break;default:l=Su}n=l.bind(null,t,n,e),l=void 0,!uo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),a?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function lu(e,t,n,a,l){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var m=a.stateNode.containerInfo;if(m===l)break;if(f===4)for(f=a.return;f!==null;){var y=f.tag;if((y===3||y===4)&&f.stateNode.containerInfo===l)return;f=f.return}for(;m!==null;){if(f=Na(m),f===null)return;if(y=f.tag,y===5||y===6||y===26||y===27){a=i=f;continue e}m=m.parentNode}}a=a.return}xf(function(){var A=i,D=oo(n),H=[];e:{var j=Xf.get(e);if(j!==void 0){var O=fi,te=e;switch(e){case"keypress":if(ui(n)===0)break e;case"keydown":case"keyup":O=Y0;break;case"focusin":te="focus",O=po;break;case"focusout":te="blur",O=po;break;case"beforeblur":case"afterblur":O=po;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=k0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=J0;break;case Gf:case Vf:case Yf:O=D0;break;case Qf:O=P0;break;case"scroll":case"scrollend":O=E0;break;case"wheel":O=$0;break;case"copy":case"cut":case"paste":O=B0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=wf;break;case"submit":O=K0;break;case"toggle":case"beforetoggle":O=e1}var he=(t&4)!==0,Ae=!he&&(e==="scroll"||e==="scrollend"),_=he?j!==null?j+"Capture":null:j;he=[];for(var w=A,k;w!==null;){var q=w;if(k=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||k===null||_===null||(q=Pl(w,_),q!=null&&he.push(Es(w,q,k))),Ae)break;w=w.return}0<he.length&&(j=new O(j,te,null,n,D),H.push({event:j,listeners:he}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",O&&n!==ro&&(te=n.relatedTarget||n.fromElement)&&(Na(te)||te[Pa]))break e;(j||O)&&(te=D.window===D?D:(O=D.ownerDocument)?O.defaultView||O.parentWindow:window,j?(O=n.relatedTarget||n.toElement,j=A,O=O?Na(O):null,O!==null&&(Ae=h(O),he=O.tag,O!==Ae||he!==5&&he!==27&&he!==6)&&(O=null)):(j=null,O=A),j!==O&&(he=vf,q="onMouseLeave",_="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(he=wf,q="onPointerLeave",_="onPointerEnter",w="pointer"),Ae=j==null?te:Il(j),k=O==null?te:Il(O),te=new he(q,w+"leave",j,n,D),te.target=Ae,te.relatedTarget=k,q=null,Na(D)===A&&(he=new he(_,w+"enter",O,n,D),he.target=k,he.relatedTarget=Ae,q=he),Ae=q,he=j&&O?J(j,O,iy):null,j!==null&&bp(H,te,j,he,!1),O!==null&&Ae!==null&&bp(H,Ae,O,he,!0)))}e:{if(j=A?Il(A):window,O=j.nodeName&&j.nodeName.toLowerCase(),O==="select"||O==="input"&&j.type==="file")var ce=zf;else if(Cf(j))if(kf)ce=u1;else{ce=o1;var Oe=r1}else O=j.nodeName,!O||O.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?A&&io(A.elementType)&&(ce=zf):ce=c1;if(ce&&(ce=ce(e,A))){Ef(H,ce,n,D);break e}Oe&&Oe(e,j,A)}switch(Oe=A?Il(A):window,e){case"focusin":(Cf(Oe)||Oe.contentEditable==="true")&&(sl=Oe,wo=A,ls=null);break;case"focusout":ls=wo=sl=null;break;case"mousedown":So=!0;break;case"contextmenu":case"mouseup":case"dragend":So=!1,qf(H,n,D);break;case"selectionchange":if(f1)break;case"keydown":case"keyup":qf(H,n,D)}var xe;if(xo)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else ll?Af(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(Sf&&n.locale!=="ko"&&(ll||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&ll&&(xe=bf()):(Qn=D,fo="value"in Qn?Qn.value:Qn.textContent,ll=!0)),Oe=mr(A,Ne),0<Oe.length&&(Ne=new Nf(Ne,e,null,n,D),H.push({event:Ne,listeners:Oe}),xe?Ne.data=xe:(xe=Tf(n),xe!==null&&(Ne.data=xe)))),(xe=n1?a1(e,n):l1(e,n))&&(Ne=mr(A,"onBeforeInput"),0<Ne.length&&(Oe=new Nf("onBeforeInput","beforeinput",null,n,D),H.push({event:Oe,listeners:Ne}),Oe.data=xe)),ny(H,e,A,n,D)}gp(H,t)})}function Es(e,t,n){return{instance:e,listener:t,currentTarget:n}}function mr(e,t){for(var n=t+"Capture",a=[];e!==null;){var l=e,i=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||i===null||(l=Pl(e,n),l!=null&&a.unshift(Es(e,l,i)),l=Pl(e,t),l!=null&&a.push(Es(e,l,i))),e.tag===3)return a;e=e.return}return[]}function iy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bp(e,t,n,a,l){for(var i=t._reactName,f=[];n!==null&&n!==a;){var m=n,y=m.alternate,A=m.stateNode;if(m=m.tag,y!==null&&y===a)break;m!==5&&m!==26&&m!==27||A===null||(y=A,l?(A=Pl(n,i),A!=null&&f.unshift(Es(n,A,y))):l||(A=Pl(n,i),A!=null&&f.push(Es(n,A,y)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var ry=/\r\n?/g,oy=/\u0000|\uFFFD/g;function yp(e){return(typeof e=="string"?e:""+e).replace(ry,`
|
|
49
|
+
`).replace(oy,"")}function vp(e,t){return t=yp(t),yp(e)===t}function Xe(e,t,n,a,l,i){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||tl(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&tl(e,""+a);else return;break;case"className":ri(e,"class",a);break;case"tabIndex":ri(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ri(e,n,a);break;case"style":pf(e,a,i);return;case"data":if(t!=="object"){ri(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=oi(a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(t!=="input"&&Xe(e,t,"name",l.name,l,null),Xe(e,t,"formEncType",l.formEncType,l,null),Xe(e,t,"formMethod",l.formMethod,l,null),Xe(e,t,"formTarget",l.formTarget,l,null)):(Xe(e,t,"encType",l.encType,l,null),Xe(e,t,"method",l.method,l,null),Xe(e,t,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=oi(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=cn);return;case"onScroll":a!=null&&ze("scroll",e);return;case"onScrollEnd":a!=null&&ze("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(c(60));(i!=null?i.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=oi(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ze("beforetoggle",e),ze("toggle",e),ii(e,"popover",a);break;case"xlinkActuate":_n(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":_n(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":_n(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":_n(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":_n(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":_n(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":_n(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":_n(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":_n(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ii(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=T0.get(n)||n,ii(e,n,a);else return}qe=!0}function su(e,t,n,a,l,i){switch(n){case"style":pf(e,a,i);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(c(60));(i!=null?i.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")tl(e,a);else if(typeof a=="number"||typeof a=="bigint")tl(e,""+a);else return;break;case"onScroll":a!=null&&ze("scroll",e);return;case"onScrollEnd":a!=null&&ze("scrollend",e);return;case"onClick":a!=null&&(e.onclick=cn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!lf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),i=n.slice(2,l?n.length-7:void 0),t=e[At]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(i,t,l),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(i,a,l);break e}qe=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):ii(e,n,a)}return}qe=!0}function yt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var a=!1,l=!1,i;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Xe(e,t,i,f,n,null)}}l&&Xe(e,t,"srcSet",n.srcSet,n,null),a&&Xe(e,t,"src",n.src,n,null);return;case"input":ze("invalid",e);var m=i=f=l=null,y=null,A=null;for(a in n)if(n.hasOwnProperty(a)){var D=n[a];if(D!=null)switch(a){case"name":l=D;break;case"type":f=D;break;case"checked":y=D;break;case"defaultChecked":A=D;break;case"value":i=D;break;case"defaultValue":m=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,t));break;default:Xe(e,t,a,D,n,null)}}df(e,i,m,y,A,f,l,!1);return;case"select":ze("invalid",e),a=f=i=null;for(l in n)if(n.hasOwnProperty(l)&&(m=n[l],m!=null))switch(l){case"value":i=m;break;case"defaultValue":f=m;break;case"multiple":a=m;default:Xe(e,t,l,m,n,null)}t=i,n=f,e.multiple=!!a,t!=null?el(e,!!a,t,!1):n!=null&&el(e,!!a,n,!0);return;case"textarea":ze("invalid",e),i=l=a=null;for(f in n)if(n.hasOwnProperty(f)&&(m=n[f],m!=null))switch(f){case"value":a=m;break;case"defaultValue":l=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(c(91));break;default:Xe(e,t,f,m,n,null)}hf(e,a,l,i);return;case"option":for(y in n)if(n.hasOwnProperty(y)&&(a=n[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Xe(e,t,y,a,n,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(a=0;a<Cs.length;a++)ze(Cs[a],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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(A in n)if(n.hasOwnProperty(A)&&(a=n[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Xe(e,t,A,a,n,null)}return;default:if(io(t)){for(D in n)n.hasOwnProperty(D)&&(a=n[D],a!==void 0&&su(e,t,D,a,n,void 0));return}}for(m in n)n.hasOwnProperty(m)&&(a=n[m],a!=null&&Xe(e,t,m,a,n,null))}var cy={};function uy(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,i=null,f=null,m=null,y=null,A=null,D=null;for(O in n){var H=n[O];if(n.hasOwnProperty(O)&&H!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":y=H;default:a.hasOwnProperty(O)||Xe(e,t,O,null,a,H)}}for(var j in a){var O=a[j];if(H=n[j],a.hasOwnProperty(j)&&(O!=null||H!=null))switch(j){case"type":O!==H&&(qe=!0),i=O;break;case"name":O!==H&&(qe=!0),l=O;break;case"checked":O!==H&&(qe=!0),A=O;break;case"defaultChecked":O!==H&&(qe=!0),D=O;break;case"value":O!==H&&(qe=!0),f=O;break;case"defaultValue":O!==H&&(qe=!0),m=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,t));break;default:O!==H&&Xe(e,t,j,O,a,H)}}lo(e,f,m,y,A,D,i,l);return;case"select":O=f=m=j=null;for(i in n)if(y=n[i],n.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":O=y;default:a.hasOwnProperty(i)||Xe(e,t,i,null,a,y)}for(l in a)if(i=a[l],y=n[l],a.hasOwnProperty(l)&&(i!=null||y!=null))switch(l){case"value":i!==y&&(qe=!0),j=i;break;case"defaultValue":i!==y&&(qe=!0),m=i;break;case"multiple":i!==y&&(qe=!0),f=i;default:i!==y&&Xe(e,t,l,i,a,y)}t=m,n=f,a=O,j!=null?el(e,!!n,j,!1):!!a!=!!n&&(t!=null?el(e,!!n,t,!0):el(e,!!n,n?[]:"",!1));return;case"textarea":O=j=null;for(m in n)if(l=n[m],n.hasOwnProperty(m)&&l!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Xe(e,t,m,null,a,l)}for(f in a)if(l=a[f],i=n[f],a.hasOwnProperty(f)&&(l!=null||i!=null))switch(f){case"value":l!==i&&(qe=!0),j=l;break;case"defaultValue":l!==i&&(qe=!0),O=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(c(91));break;default:l!==i&&Xe(e,t,f,l,a,i)}ff(e,j,O);return;case"option":for(var te in n)if(j=n[te],n.hasOwnProperty(te)&&j!=null&&!a.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:Xe(e,t,te,null,a,j)}for(y in a)if(j=a[y],O=n[y],a.hasOwnProperty(y)&&j!==O&&(j!=null||O!=null))switch(y){case"selected":j!==O&&(qe=!0),e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Xe(e,t,y,j,a,O)}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 he in n)j=n[he],n.hasOwnProperty(he)&&j!=null&&!a.hasOwnProperty(he)&&Xe(e,t,he,null,a,j);for(A in a)if(j=a[A],O=n[A],a.hasOwnProperty(A)&&j!==O&&(j!=null||O!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(c(137,t));break;default:Xe(e,t,A,j,a,O)}return;default:if(io(t)){for(var Ae in n)j=n[Ae],n.hasOwnProperty(Ae)&&j!==void 0&&!a.hasOwnProperty(Ae)&&su(e,t,Ae,void 0,a,j);for(D in a)j=a[D],O=n[D],!a.hasOwnProperty(D)||j===O||j===void 0&&O===void 0||su(e,t,D,j,a,O);return}}for(var _ in n)j=n[_],n.hasOwnProperty(_)&&j!=null&&!a.hasOwnProperty(_)&&Xe(e,t,_,null,a,j);for(H in a)j=a[H],O=n[H],!a.hasOwnProperty(H)||j===O||j==null&&O==null||Xe(e,t,H,j,a,O)}function Np(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var l=n[a],i=l.transferSize,f=l.initiatorType,m=l.duration;if(i&&m&&Np(f)){for(f=0,m=l.responseEnd,a+=1;a<n.length;a++){var y=n[a],A=y.startTime;if(A>m)break;var D=y.transferSize,H=y.initiatorType;D&&Np(H)&&(y=y.responseEnd,f+=D*(y<m?1:(m-A)/(y-A)))}if(--a,t+=8*(i+f)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var iu=null,ru=null;function zs(e){return e.nodeType===9?e:e.ownerDocument}function wp(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 Sp(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 jp(e,t,n,a){return n=zs(n).createElement(e),n[mt]=a,n[At]=t,yt(n,e,t),ut(n),n}function ou(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 cu=null;function fy(){var e=window.event;return e&&e.type==="popstate"?e===cu?!1:(cu=e,!0):(cu=null,!1)}var uu=typeof setTimeout=="function"?setTimeout:void 0,hy=typeof clearTimeout=="function"?clearTimeout:void 0,_p=typeof Promise=="function"?Promise:void 0,Ap=typeof requestAnimationFrame=="function"?requestAnimationFrame:uu,my=typeof queueMicrotask=="function"?queueMicrotask:typeof _p<"u"?function(e){return _p.resolve(null).then(e).catch(py)}:uu;function py(e){setTimeout(function(){throw e})}function ua(e){return e==="head"}function Tp(e,t){var n=t,a=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(l),Ll(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")bu(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,bu(n);for(var i=n.firstChild;i;){var f=i.nextSibling,m=i.nodeName;i[Jl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=f}}else n==="body"&&bu(e.ownerDocument.body);n=l}while(n);Ll(t)}function Cp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Ep(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var l=a=0;l<t.length;l++){var i=t[l];0<i.width&&0<i.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function zp(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function gy(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function du(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return gy(t,n,e)}function xy(e){return e.documentElement.clientHeight}function by(e){this.addEventListener("load",e),this.addEventListener("error",e)}function yy(e,t,n,a,l,i,f,m,y){var A=t.nodeType===9?t:t.ownerDocument;try{var D=A.startViewTransition({update:function(){var j=A.defaultView,O=j.navigation&&j.navigation.transition,te=A.fonts.status;a();var he=[];if(te==="loaded"&&(xy(A),A.fonts.status==="loading"&&he.push(A.fonts.ready)),te=he.length,e!==null)for(var Ae=e.suspenseyImages,_=0,w=0;w<Ae.length;w++){var k=Ae[w];if(!k.complete){var q=k.getBoundingClientRect();if(0<q.bottom&&0<q.right&&q.top<j.innerHeight&&q.left<j.innerWidth){if(_+=Fp(k),_>xr){he.length=te;break}k=new Promise(by.bind(k)),he.push(k)}}}if(0<he.length)return j=Promise.race([Promise.all(he),new Promise(function(ce){return setTimeout(ce,500)})]).then(l,l),(O?Promise.allSettled([O.finished,j]):j).then(i,i);if(l(),O)return O.finished.then(i,i);i()},types:n});A.__reactViewTransition=D;var H=[];return D.ready.then(function(){for(var j=A.documentElement.getAnimations({subtree:!0}),O=0;O<j.length;O++){var te=j[O],he=te.effect,Ae=he.pseudoElement;if(Ae!=null&&Ae.startsWith("::view-transition")){H.push(te),te=he.getKeyframes();for(var _=Ae=void 0,w=!0,k=0;k<te.length;k++){var q=te[k],ce=q.width;if(Ae===void 0)Ae=ce;else if(Ae!==ce){w=!1;break}if(ce=q.height,_===void 0)_=ce;else if(_!==ce){w=!1;break}delete q.width,delete q.height,q.transform==="none"&&delete q.transform}w&&Ae!==void 0&&_!==void 0&&(he.setKeyframes(te),w=getComputedStyle(he.target,he.pseudoElement),w.width!==Ae||w.height!==_)&&(w=te[0],w.width=Ae,w.height=_,w=te[te.length-1],w.width=Ae,w.height=_,he.setKeyframes(te))}}f()},function(j){A.__reactViewTransition===D&&(A.__reactViewTransition=null);try{if(typeof j=="object"&&j!==null)switch(j.name){case"InvalidStateError":(j.message==="View transition was skipped because document visibility state is hidden."||j.message==="Skipping view transition because document visibility state has become hidden."||j.message==="Skipping view transition because viewport size changed."||j.message==="Transition was aborted because of invalid state")&&(j=null)}j!==null&&y(j)}finally{a(),l(),f()}}),D.finished.finally(function(){for(var j=0;j<H.length;j++)H[j].cancel();A.__reactViewTransition===D&&(A.__reactViewTransition=null),m()}),D}catch{return a(),l(),f(),null}}function Va(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Va.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:V({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Va.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],l=0;l<n.length;l++){var i=n[l].effect;i!==null&&i.target===e&&i.pseudoElement===t&&a.push(n[l])}return a},Va.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function kp(e){return{name:e,group:new Va("group",e),imagePair:new Va("image-pair",e),old:new Va("old",e),new:new Va("new",e)}}function Vt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Vt.prototype.addEventListener=function(e,t,n){var a=null,l=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(Op(i,e,t,n)===-1){var f=this,m=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(m=function(y){f.removeEventListener(e,t,n),typeof t=="function"?t.call(this,y):t.handleEvent(y)}),a!==null&&(l=f.removeEventListener.bind(f,e,t,n),a.addEventListener("abort",l,{once:!0}),l=a.removeEventListener.bind(a,"abort",l)),a=Ml(n),i.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:m,cleanup:l}),x(this._fragmentFiber.child,!1,vy,e,m,a)}this._eventListeners=i}};function vy(e,t,n,a){return B(e).addEventListener(t,n,a),!1}Vt.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=Op(a,e,t,n),t!==-1)){var l=a[t];n=l.attachedListener;var i=l.cleanup;l=Ml(l.optionsOrUseCapture),x(this._fragmentFiber.child,!1,Ny,e,n,l),a.splice(t,1),i!==null&&i()}};function Ny(e,t,n,a){return B(e).removeEventListener(t,n,a),!1}function Ml(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Mp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Op(e,t,n,a){if(e.length===0)return-1;a=Mp(a);for(var l=0;l<e.length;l++){var i=e[l];if(i.type===t&&i.listener===n&&Mp(i.optionsOrUseCapture)===a)return l}return-1}Vt.prototype.dispatchEvent=function(e){var t=T(this._fragmentFiber);if(t===null)return!0;t=B(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var l=0;l<n.length;l++){var i=n[l];a.addEventListener(i.type,i.attachedListener,Ml(i.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(l=0;l<n.length;l++)i=n[l],a.removeEventListener(i.type,i.attachedListener,Ml(i.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},Vt.prototype.focus=function(e){x(this._fragmentFiber.child,!0,Dp,e,void 0,void 0)};function Dp(e,t){return e.tag===6?!1:(e=B(e),Oy(e,t))}Vt.prototype.focusLast=function(e){var t=[];x(this._fragmentFiber.child,!0,fu,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Dp(t[n],e);n--);};function fu(e,t){return t.push(e),!1}Vt.prototype.blur=function(){var e=T(this._fragmentFiber);e!==null&&(e=B(e),e=zs(e).activeElement,e!==null&&x(this._fragmentFiber.child,!1,wy,e,void 0,void 0))};function wy(e,t){return e.tag===6?!1:(e=B(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Vt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),x(this._fragmentFiber.child,!1,Sy,e,void 0,void 0)};function Sy(e,t){return e.tag===6||(e=B(e),t.observe(e)),!1}Vt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),x(this._fragmentFiber.child,!1,jy,e,void 0,void 0);for(var n=t=0;n<rn.length;n++){var a=rn[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):rn[t++]=a}rn.length=t}};function jy(e,t){return e.tag===6||(e=B(e),t.unobserve(e)),!1}var rn=[],hu=!1;function _y(e,t,n){rn.push({fragmentInstance:e,observer:t,instance:n}),hu||(hu=!0,Dy(function(){hu=!1;var a=rn;rn=[];for(var l=0;l<a.length;l++){var i=a[l];i.observer.unobserve(i.instance)}}))}Vt.prototype.getClientRects=function(){var e=[];return x(this._fragmentFiber.child,!1,Ay,e,void 0,void 0),e};function Ay(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=B(e),t.push.apply(t,e.getClientRects());return!1}Vt.prototype.getRootNode=function(e){var t=T(this._fragmentFiber);return t===null?this:B(t).getRootNode(e)},Vt.prototype.compareDocumentPosition=function(e){var t=T(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];x(this._fragmentFiber.child,!1,fu,n,void 0,void 0);var a=B(t);if(n.length===0){if(n=a,U(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var l=a=n.compareDocumentPosition(e);return n===e?l=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Z(t)[1],n===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=B(n).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=B(n[0]),l=B(n[n.length-1]);var i=U(this._fragmentFiber)?t.parentElement:a;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=i.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var f=t.compareDocumentPosition(e),m=l.compareDocumentPosition(e),y=f&Node.DOCUMENT_POSITION_CONTAINED_BY||m&Node.DOCUMENT_POSITION_CONTAINED_BY;return m=a&&i&&f&Node.DOCUMENT_POSITION_FOLLOWING&&m&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||i&&l===e||y||m?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!i&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:f,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Ty(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Ty(e,t,n,a,l){var i=Na(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!i)e:{for(;i!==null;){if(i.tag===7&&(i===t||i.alternate===t)){n=!0;break e}i=i.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(i===null)return i=l.ownerDocument,l===i||l===i.documentElement||l===i.body;e:{for(i=t,t=T(t);i!==null;){if(!(i.tag!==5&&i.tag!==3&&i.tag!==27||i!==t&&i.alternate!==t)){i=!0;break e}i=i.return}i=!1}return i}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!i)&&!(t=i===n)&&(t=J(n,i,pe),t===null?t=!1:(x(t,!0,ee,i,n),i=G,G=null,t=i!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!i)&&!(t=i===a)&&(t=J(a,i,pe),t===null?t=!1:(x(t,!0,$,i,a),i=G,K=G=null,t=i!==null)),t):!1}function Rp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Vt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(c(566));var t=[];x(this._fragmentFiber.child,!1,fu,t,void 0,void 0);var n=e!==!1;if(t.length===0){var a=Z(this._fragmentFiber);if(a=n?a[1]||a[0]||T(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=B(a),Rp(e,n);return}if(a=B(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var l=t[a];l.tag===6?(l=B(l),Rp(l,n)):B(l).scrollIntoView(e),a+=n?-1:1}};function Cy(e,t){return e=B(e),Bp(e,t),!1}function Bp(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Up(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];e.addEventListener(l.type,l.attachedListener,Ml(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(i){for(var f=0,m=0;m<rn.length;m++){var y=rn[m];(y.fragmentInstance!==t||y.observer!==i||y.instance!==e)&&(rn[f++]=y)}rn.length=f,i.observe(e)}),Bp(e,t))}function Ey(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];e.removeEventListener(l.type,l.attachedListener,Ml(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(i){typeof i.rootMargin=="string"?_y(t,i,e):i.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function mu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":mu(n),si(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zy(e,t,n,a){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Jl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function ky(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ft(e.nextSibling),e===null))return null;return e}function Lp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function pu(e){return e.data==="$?"||e.data==="$~"}function gu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function My(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ft(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 xu=null;function qp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ft(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Hp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Oy(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function Dy(e){Ap(function(){Ap(function(t){return e(t)})})}function Gp(e,t,n){switch(t=zs(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Vp(e,t,n){for(var a in n){var l=n[a];n.hasOwnProperty(a)&&l!=null&&Xe(e,t,a,null,cy,l)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===cn&&(e.onclick=null),si(e)}function bu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);si(e)}var $t=new Map,Yp=new Set;function ks(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Ln=be.d;be.d={f:Ry,r:By,D:Uy,C:Ly,L:qy,m:Hy,X:Vy,S:Gy,M:Yy};function Ry(){var e=Ln.f(),t=or();return e||t}function By(e){var t=Fa(e);t!==null&&t.tag===5&&t.type==="form"?Xh(t):Ln.r(e)}var Ol=typeof document>"u"?null:document;function Qp(e,t,n){var a=Ol;if(a&&typeof t=="string"&&t){var l=Qt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Yp.has(l)||(Yp.add(l),e={rel:e,crossOrigin:n,href:t},a.querySelector(l)===null&&(t=a.createElement("link"),yt(t,"link",e),ut(t),a.head.appendChild(t)))}}function Uy(e){Ln.D(e),Qp("dns-prefetch",e,null)}function Ly(e,t){Ln.C(e,t),Qp("preconnect",e,t)}function qy(e,t,n){Ln.L(e,t,n);var a=Ol;if(a&&e&&t){var l='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+Qt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+Qt(n.imageSizes)+'"]')):l+='[href="'+Qt(e)+'"]';var i=l;switch(t){case"style":i=Dl(e);break;case"script":i=Rl(e)}if(!($t.has(i)||(e=V({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),$t.set(i,e),a.querySelector(l)!==null||t==="style"&&a.querySelector(Ms(i))||t==="script"&&a.querySelector(Os(i))))){var f=a.createElement("link");yt(f,"link",e),t==="style"&&(f[li]=!0,f.onload=f.onerror=function(){nf(f)}),ut(f),a.head.appendChild(f)}}}function Hy(e,t){Ln.m(e,t);var n=Ol;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Qt(a)+'"][href="'+Qt(e)+'"]',i=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Rl(e)}if(!$t.has(i)&&(e=V({rel:"modulepreload",href:e},t),$t.set(i,e),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Os(i)))return}a=n.createElement("link"),yt(a,"link",e),ut(a),n.head.appendChild(a)}}}function Gy(e,t,n){Ln.S(e,t,n);var a=Ol;if(a&&e){var l=$a(a).hoistableStyles,i=Dl(e);t=t||"default";var f=l.get(i);if(!f){var m={loading:0,preload:null};if(f=a.querySelector(Ms(i)))m.loading=5;else{e=V({rel:"stylesheet",href:e,"data-precedence":t},n),(n=$t.get(i))&&yu(e,n);var y=f=a.createElement("link");ut(y),yt(y,"link",e),y._p=new Promise(function(A,D){y.onload=A,y.onerror=D}),y.addEventListener("load",function(){m.loading|=1}),y.addEventListener("error",function(){m.loading|=2}),m.loading|=4,pr(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:m},l.set(i,f)}}}function Vy(e,t){Ln.X(e,t);var n=Ol;if(n&&e){var a=$a(n).hoistableScripts,l=Rl(e),i=a.get(l);i||(i=n.querySelector(Os(l)),i||(e=V({src:e,async:!0},t),(t=$t.get(l))&&vu(e,t),i=n.createElement("script"),ut(i),yt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function Yy(e,t){Ln.M(e,t);var n=Ol;if(n&&e){var a=$a(n).hoistableScripts,l=Rl(e),i=a.get(l);i||(i=n.querySelector(Os(l)),i||(e=V({src:e,async:!0,type:"module"},t),(t=$t.get(l))&&vu(e,t),i=n.createElement("script"),ut(i),yt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function Xp(e,t,n,a){var l=(l=Gn.current)?ks(l):null;if(!l)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Dl(n.href),t=$a(l).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Dl(n.href);var i=$a(l).hoistableStyles,f=i.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,f),(i=l.querySelector(Ms(e)))?i._p||(f.instance=i,f.state.loading=5):(i=$t.get(e),i||(i={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},$t.set(e,i)),Qy(l,e,i,f.state))),t&&a===null)throw Error(c(528,""));return f}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Rl(n),t=$a(l).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Dl(e){return'href="'+Qt(e)+'"'}function Ms(e){return'link[rel="stylesheet"]['+e+"]"}function Kp(e){return V({},e,{"data-precedence":e.precedence,precedence:null})}function Qy(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[li]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[li]=!0,t.onload=t.onerror=nf.bind(null,t),yt(t,"link",n),ut(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Rl(e){return'[src="'+Qt(e)+'"]'}function Os(e){return"script[async]"+e}function Zp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Qt(n.href)+'"]');if(a)return t.instance=a,ut(a),a;var l=V({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ut(a),yt(a,"style",l),pr(a,n.precedence,e),t.instance=a;case"stylesheet":l=Dl(n.href);var i=e.querySelector(Ms(l));if(i)return t.state.loading|=4,t.instance=i,ut(i),i;a=Kp(n),(l=$t.get(l))&&yu(a,l),i=(e.ownerDocument||e).createElement("link"),ut(i);var f=i;return f._p=new Promise(function(m,y){f.onload=m,f.onerror=y}),yt(i,"link",a),t.state.loading|=4,pr(i,n.precedence,e),t.instance=i;case"script":return i=Rl(n.src),(l=e.querySelector(Os(i)))?(t.instance=l,ut(l),l):(a=n,(l=$t.get(i))&&(a=V({},n),vu(a,l)),e=e.ownerDocument||e,l=e.createElement("script"),ut(l),yt(l,"link",a),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,pr(a,n.precedence,e));return t.instance}function pr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,i=l,f=0;f<a.length;f++){var m=a[f];if(m.dataset.precedence===t)i=m;else if(i!==l)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function yu(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 gr=null;function Jp(e,t,n){if(gr===null){var a=new Map,l=gr=new Map;l.set(n,a)}else l=gr,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var i=n[l];if(!(i[Jl]||i[mt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var f=i.getAttribute(t)||"";f=e+f;var m=a.get(f);m?m.push(i):a.set(f,[i])}}return a}function Nu(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Xy(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ip(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Pp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Fp(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function $p(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Fp(t),e.suspenseyImages.push(t)),e=Jy.bind(e),t.decode().then(e,e))}function Ky(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=Dl(a.href),i=t.querySelector(Ms(l));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ds.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,ut(i);return}i=t.ownerDocument||t,a=Kp(a),(l=$t.get(l))&&yu(a,l),i=i.createElement("link"),ut(i);var f=i;f._p=new Promise(function(m,y){f.onload=m,f.onerror=y}),yt(i,"link",a),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ds.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var xr=0;function Zy(e,t){return e.stylesheets&&e.count===0&&yr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&yr(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&xr===0&&(xr=62500*dy());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&yr(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>xr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(l)}}:null}function Wp(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)yr(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Ds(){this.count--,Wp(this)}function Jy(){this.imgCount--,Wp(this)}var br=null;function yr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,br=new Map,t.forEach(Iy,e),br=null,Ds.call(e))}function Iy(e,t){if(!(t.state.loading&4)){var n=br.get(e);if(n)var a=n.get(null);else{n=new Map,br.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<l.length;i++){var f=l[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}l=t.instance,f=l.getAttribute("data-precedence"),i=n.get(f)||a,i===a&&n.set(null,l),n.set(f,l),this.count++,a=Ds.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),i?i.parentNode.insertBefore(l,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Bl={$$typeof:ge,Provider:null,Consumer:null,_currentValue:L,_currentValue2:L,_threadCount:0};function Py(e,t,n,a,l,i,f,m,y){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=eo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eo(0),this.hiddenUpdates=eo(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.transitionTypes=null,this.incompleteTransitions=new Map}function eg(e,t,n,a,l,i,f,m,y,A,D,H){return e=new Py(e,t,n,f,y,A,D,H,m),t=1,i===!0&&(t|=24),i=Tt(3,null,null,t),e.current=i,i.stateNode=e,t=Bo(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:t},Ho(i),e}function tg(e){return e?(e=ol,e):ol}function ng(e,t,n,a,l,i){l=tg(l),a.context===null?a.context=l:a.pendingContext=l,a=$n(t),a.payload={element:n},i=i===void 0?null:i,i!==null&&(a.callback=i),n=Wn(e,a,t),n!==null&&(kt(n,e,t),ds(n,e,t))}function ag(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wu(e,t){ag(e,t),(e=e.alternate)&&ag(e,t)}function lg(e){if(e.tag===13||e.tag===31){var t=_a(e,67108864);t!==null&&kt(t,e,67108864),wu(e,67108864)}}function sg(e){if(e.tag===13||e.tag===31){var t=Gt();t=to(t);var n=_a(e,t);n!==null&&kt(n,e,t),wu(e,t)}}var Ul=!0;function Fy(e,t,n,a){var l=oe.T;oe.T=null;var i=be.p;try{be.p=2,Su(e,t,n,a)}finally{be.p=i,oe.T=l}}function $y(e,t,n,a){var l=oe.T;oe.T=null;var i=be.p;try{be.p=8,Su(e,t,n,a)}finally{be.p=i,oe.T=l}}function Su(e,t,n,a){if(Ul){var l=ju(a);if(l===null)lu(e,t,a,vr,n),rg(e,a);else if(ev(l,e,t,n,a))a.stopPropagation();else if(rg(e,a),t&4&&-1<Wy.indexOf(e)){for(;l!==null;){var i=Fa(l);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=va(i.pendingLanes);if(f!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var y=1<<31-Dt(f);m.entanglements[1]|=y,f&=~y}yn(i),(He&6)===0&&(sr=Mt()+500,Ts(0))}}break;case 31:case 13:m=_a(i,2),m!==null&&kt(m,i,2),or(),wu(i,2)}if(i=ju(a),i===null&&lu(e,t,a,vr,n),i===l)break;l=i}l!==null&&a.stopPropagation()}else lu(e,t,a,null,n)}}function ju(e){return e=oo(e),_u(e)}var vr=null;function _u(e){if(vr=null,e=Na(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vr=e,null}function ig(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(d0()){case Qd:return 2;case Xd:return 8;case Ws:case f0:return 32;case Kd:return 268435456;default:return 32}default:return 32}}var Au=!1,da=null,fa=null,ha=null,Rs=new Map,Bs=new Map,ma=[],Wy="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 rg(e,t){switch(e){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":Rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bs.delete(t.pointerId)}}function Us(e,t,n,a,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Fa(t),t!==null&&lg(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function ev(e,t,n,a,l){switch(t){case"focusin":return da=Us(da,e,t,n,a,l),!0;case"dragenter":return fa=Us(fa,e,t,n,a,l),!0;case"mouseover":return ha=Us(ha,e,t,n,a,l),!0;case"pointerover":var i=l.pointerId;return Rs.set(i,Us(Rs.get(i)||null,e,t,n,a,l)),!0;case"gotpointercapture":return i=l.pointerId,Bs.set(i,Us(Bs.get(i)||null,e,t,n,a,l)),!0}return!1}function og(e){var t=Na(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Wd(e.priority,function(){sg(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,Wd(e.priority,function(){sg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ju(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ro=a,n.target.dispatchEvent(a),ro=null}else return t=Fa(n),t!==null&&lg(t),e.blockedOn=n,!1;t.shift()}return!0}function cg(e,t,n){Nr(e)&&n.delete(t)}function tv(){Au=!1,da!==null&&Nr(da)&&(da=null),fa!==null&&Nr(fa)&&(fa=null),ha!==null&&Nr(ha)&&(ha=null),Rs.forEach(cg),Bs.forEach(cg)}function wr(e,t){e.blockedOn===t&&(e.blockedOn=null,Au||(Au=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,tv)))}var Sr=null;function ug(e){Sr!==e&&(Sr=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Sr===e&&(Sr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],l=e[t+2];if(typeof a!="function"){if(_u(a||n)===null)continue;break}var i=Fa(n);i!==null&&(e.splice(t,3),t-=3,rc(i,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function Ll(e){function t(y){return wr(y,e)}da!==null&&wr(da,e),fa!==null&&wr(fa,e),ha!==null&&wr(ha,e),Rs.forEach(t),Bs.forEach(t);for(var n=0;n<ma.length;n++){var a=ma[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ma.length&&(n=ma[0],n.blockedOn===null);)og(n),n.blockedOn===null&&ma.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],i=n[a+1],f=l[At]||null;if(typeof i=="function")f||ug(n);else if(f){var m=null;if(i&&i.hasAttribute("formAction")){if(l=i,f=i[At]||null)m=f.formAction;else if(_u(l)!==null)continue}else m=f.action;typeof m=="function"?n[a+1]=m:(n.splice(a,3),a-=3),ug(n)}}}function dg(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return l=f})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Tu(e){this._internalRoot=e}jr.prototype.render=Tu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,a=Gt();ng(n,a,e,t,null,null)},jr.prototype.unmount=Tu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ng(e.current,2,null,e,null,null),or(),t[Pa]=null}};function jr(e){this._internalRoot=e}jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=$d();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ma.length&&t!==0&&t<ma[n].priority;n++);ma.splice(n,0,e),n===0&&og(e)}};var fg=o.version;if(fg!=="19.3.0")throw Error(c(527,fg,"19.3.0"));be.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=E(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var nv={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:oe,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_r.isDisabled&&_r.supportsFiber)try{Xl=_r.inject(nv),Ot=_r}catch{}}return qs.createRoot=function(e,t){if(!d(e))throw Error(c(299));var n=!1,a="",l=tm,i=nm,f=am;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=eg(e,1,!1,null,null,n,a,null,l,i,f,dg),e[Pa]=t.current,au(e),new Tu(t)},qs.hydrateRoot=function(e,t,n){if(!d(e))throw Error(c(299));var a=!1,l="",i=tm,f=nm,m=am,y=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError),n.formState!==void 0&&(y=n.formState)),t=eg(e,1,!0,t,n??null,a,l,y,i,f,m,dg),t.context=tg(null),n=t.current,a=Gt(),a=to(a),l=$n(a),l.callback=null,Wn(n,l,a),n=a,t.current.lanes=n,Zl(t,n),yn(t),e[Pa]=t.current,au(e),new jr(t)},qs.version="19.3.0",qs}var wg;function fv(){if(wg)return zu.exports;wg=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),zu.exports=dv(),zu.exports}var hv=fv();const mv=zd(hv);class Sg extends Error{constructor(o,u,c){super(u),this.status=o,this.data=c,this.name="ApiError"}}async function Hs(s,o={}){const u=s.startsWith("/dashboard/api")?s:`/dashboard/api${s.startsWith("/")?s:`/${s}`}`,c={"Content-Type":"application/json",...o.headers},d=await fetch(u,{...o,headers:c});if(d.status===401)throw window.location.href="/login",new Sg(401,"Session expired, redirecting to login...");const h=await d.json().catch(()=>null);if(!d.ok)throw new Sg(d.status,(h==null?void 0:h.error)||(h==null?void 0:h.message)||`HTTP ${d.status}: Request failed`,h);return h}const le={get:s=>Hs(s,{method:"GET"}),post:(s,o)=>Hs(s,{method:"POST",body:o?JSON.stringify(o):void 0}),patch:(s,o)=>Hs(s,{method:"PATCH",body:o?JSON.stringify(o):void 0}),put:(s,o)=>Hs(s,{method:"PUT",body:o?JSON.stringify(o):void 0}),delete:s=>Hs(s,{method:"DELETE"}),getStats:()=>le.get("/stats"),getSession:()=>le.get("/bot/session"),startSession:s=>le.post("/bot/session/start",s),reconnectSession:()=>le.post("/bot/session/reconnect"),stopSession:()=>le.post("/bot/session/stop"),unlinkSession:()=>le.post("/bot/logout"),restartBot:()=>le.post("/bot/restart"),getSettings:()=>le.get("/settings"),updateSetting:(s,o)=>le.patch("/settings",{key:s,value:o}),updatePrefix:s=>le.patch("/settings",{key:"prefix",value:s}),getCommands:()=>le.get("/commands"),updateCommand:(s,o)=>le.patch(`/commands/${encodeURIComponent(s)}`,o),getSchedules:()=>le.get("/schedules"),createSchedule:s=>le.post("/schedules",s),deleteSchedule:s=>le.delete(`/schedules/${encodeURIComponent(s)}`),retrySchedule:s=>le.post(`/schedules/${encodeURIComponent(s)}/retry`),getGroups:()=>le.get("/groups"),updateGroup:(s,o)=>le.patch(`/groups/${encodeURIComponent(s)}`,o),getPersona:()=>le.get("/ai/persona"),updatePersona:s=>le.put("/ai/persona",{body:s}),getMemoryFiles:()=>le.get("/ai/memory"),getMemoryFile:s=>le.get(`/ai/memory/${encodeURIComponent(s)}`),updateMemoryFile:(s,o)=>le.put(`/ai/memory/${encodeURIComponent(s)}`,{content:o}),deleteMemoryFile:s=>le.delete(`/ai/memory/${encodeURIComponent(s)}`),getRecipients:()=>le.get("/recipients"),fetchAiModels:s=>le.post("/ai/models",s||{}),changePassword:(s,o)=>le.post("/security/password",{current:s,next:o}),getFeedbackMeta:()=>le.get("/feedback/meta"),sendFeedback:s=>le.post("/feedback",s),getLogs:()=>le.get("/logs")};/**
|
|
50
|
+
* @license lucide-react v1.46.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const pv=s=>s==null?void 0:s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
55
|
+
* @license lucide-react v1.46.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/function gv(s,o,u=[]){if(o==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:pv(s),size:24,node:o,...u.length>0?{aliases:u}:{}}}/**
|
|
60
|
+
* @license lucide-react v1.46.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const xv=s=>{let o="",u=!1;for(const c of s){if(c==="-"||c==="_"||c<=" "){u=o.length>0;continue}o.length===0?o+=c.toLowerCase():o+=u?c.toUpperCase():c,u=!1}return o};/**
|
|
65
|
+
* @license lucide-react v1.46.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const bv=s=>{const o=xv(s);return o.charAt(0).toUpperCase()+o.slice(1)};/**
|
|
70
|
+
* @license lucide-react v1.46.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const bd=(...s)=>s.filter((o,u,c)=>!!o&&o.trim()!==""&&c.indexOf(o)===u).join(" ").trim();/**
|
|
75
|
+
* @license lucide-react v1.46.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const Ya={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
80
|
+
* @license lucide-react v1.46.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/function Du(s){return s!=null}function yv(s,o={}){var T,U;const u=o.attributeNames??{},c=Z=>u[Z]??Z,d=s.size??s.width??Ya.width,h=s.size??s.height??Ya.height,p=((T=s.aliases)==null?void 0:T.filter(Z=>typeof Z=="string"&&Z.trim()!=="").map(Z=>`lucide-${Z}`))??[],g=[...s.name?[`lucide-${s.name}`]:[],...p],b=((U=o.className)==null?void 0:U.split(" ").filter(Boolean))??[],E=o.includeDefaultClasses===!1?bd(...b):bd("lucide",...g,...b),v=o.absoluteStrokeWidth?Number(o.strokeWidth??Ya["stroke-width"])*Number(s.size??s.width??Ya.width)/Number(o.size??o.width??Ya.width):o.strokeWidth??Ya["stroke-width"];return["svg",{...Object.entries(Ya).reduce((Z,[R,B])=>(Z[c(R)]=B,Z),{}),..."color"in o&&o.color&&{[c("stroke")]:o.color},..."size"in o&&Du(o.size)&&{[c("width")]:o.size,[c("height")]:o.size},..."width"in o&&Du(o.width)&&{[c("width")]:o.width},..."height"in o&&Du(o.height)&&{[c("height")]:o.height},[c("stroke-width")]:v,...E&&{[c("class")]:E},[c("viewBox")]:`0 0 ${d} ${h}`,...o.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in o&&o.attributes},s.node.map(Z=>{const[R,B,G]=Z,K=o.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...B}:B;return G?[R,K,G]:[R,K]})]}/**
|
|
85
|
+
* @license lucide-react v1.46.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/function vv(s,o={}){return yv(s,{...o,attributeNames:{...o.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
|
|
90
|
+
* @license lucide-react v1.46.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const Nv=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1},wv=Q.createContext({}),Sv=()=>Q.useContext(wv),jv=Q.forwardRef(({color:s,size:o,width:u,height:c,strokeWidth:d,absoluteStrokeWidth:h,nonScalingStroke:p,className:g="",children:b,iconNode:E=[],icon:v={node:E,aliases:[],size:24},...x},T)=>{const{size:U=24,strokeWidth:Z=2,absoluteStrokeWidth:R=!1,nonScalingStroke:B=!1,color:G="currentColor",className:K=""}=Sv()??{},ee=!!b||Nv(x),[$,pe,J=[]]=vv(v,{color:s??G,width:u??o??U,height:c??o??U,strokeWidth:d??Z,absoluteStrokeWidth:h??R,nonScalingStroke:p??B,className:bd(K,g),hasA11yProp:ee,attributes:x});return Q.createElement($,{ref:T,...pe},[...J.map(([V,z])=>Q.createElement(V,z)),...Array.isArray(b)?b:[b]])});/**
|
|
95
|
+
* @license lucide-react v1.46.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/function me(s,o=[],u=[]){const c=typeof s=="string"?gv(s,o,u):s,d=Q.forwardRef(({className:h,...p},g)=>Q.createElement(jv,{ref:g,icon:c,className:h,...p}));return c.name&&(d.displayName=bv(c.name)),d}/**
|
|
100
|
+
* @license lucide-react v1.46.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const hx={name:"activity",size:24,node:[["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"}]]};hx.node;const _v=me(hx);/**
|
|
105
|
+
* @license lucide-react v1.46.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const mx={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};mx.node;const Av=me(mx);/**
|
|
110
|
+
* @license lucide-react v1.46.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const px={name:"book-user",size:24,node:[["path",{d:"M15 13a3 3 0 1 0-6 0",key:"10j68g"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}]]};px.node;const Tv=me(px);/**
|
|
115
|
+
* @license lucide-react v1.46.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const gx={name:"bot",size:24,node:[["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"}]]};gx.node;const Md=me(gx);/**
|
|
120
|
+
* @license lucide-react v1.46.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const xx={name:"bug",size:24,node:[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]};xx.node;const Cv=me(xx);/**
|
|
125
|
+
* @license lucide-react v1.46.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const bx={name:"calendar",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]};bx.node;const yd=me(bx);/**
|
|
130
|
+
* @license lucide-react v1.46.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const yx={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};yx.node;const qr=me(yx);/**
|
|
135
|
+
* @license lucide-react v1.46.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const vx={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};vx.node;const Ev=me(vx);/**
|
|
140
|
+
* @license lucide-react v1.46.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const Nx={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};Nx.node;const Hr=me(Nx);/**
|
|
145
|
+
* @license lucide-react v1.46.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const wx={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};wx.node;const Js=me(wx);/**
|
|
150
|
+
* @license lucide-react v1.46.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const Sx={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};Sx.node;const zv=me(Sx);/**
|
|
155
|
+
* @license lucide-react v1.46.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const jx={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};jx.node;const kv=me(jx);/**
|
|
160
|
+
* @license lucide-react v1.46.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const _x={name:"copy",size:24,node:[["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"}]]};_x.node;const Mv=me(_x);/**
|
|
165
|
+
* @license lucide-react v1.46.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const Ax={name:"database",size:24,node:[["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"}]]};Ax.node;const Ov=me(Ax);/**
|
|
170
|
+
* @license lucide-react v1.46.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const Tx={name:"external-link",size:24,node:[["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"}]]};Tx.node;const Dv=me(Tx);/**
|
|
175
|
+
* @license lucide-react v1.46.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const Cx={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};Cx.node;const Ru=me(Cx);/**
|
|
180
|
+
* @license lucide-react v1.46.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const Ex={name:"eye",size:24,node:[["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"}]]};Ex.node;const Hl=me(Ex);/**
|
|
185
|
+
* @license lucide-react v1.46.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const zx={name:"file-text",size:24,node:[["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"}]]};zx.node;const Mr=me(zx);/**
|
|
190
|
+
* @license lucide-react v1.46.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const kx={name:"folder",size:24,node:[["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"}]]};kx.node;const Rv=me(kx);/**
|
|
195
|
+
* @license lucide-react v1.46.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const Mx={name:"funnel",size:24,node:[["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"}]],aliases:["filter"]};Mx.node;const Bv=me(Mx);/**
|
|
200
|
+
* @license lucide-react v1.46.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const Ox={name:"globe",size:24,node:[["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"}]]};Ox.node;const Gr=me(Ox);/**
|
|
205
|
+
* @license lucide-react v1.46.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const Dx={name:"hard-drive",size:24,node:[["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"}]]};Dx.node;const jg=me(Dx);/**
|
|
210
|
+
* @license lucide-react v1.46.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const Rx={name:"heart-handshake",size:24,node:[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]]};Rx.node;const Uv=me(Rx);/**
|
|
215
|
+
* @license lucide-react v1.46.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const Bx={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};Bx.node;const Lv=me(Bx);/**
|
|
220
|
+
* @license lucide-react v1.46.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const Ux={name:"key",size:24,node:[["path",{d:"m2 21 9.6-9.6",key:"9l79m3"}],["path",{d:"m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19",key:"fw8biw"}],["circle",{cx:"15.5",cy:"7.5",r:"5.5",key:"4wxmhb"}]]};Ux.node;const vd=me(Ux);/**
|
|
225
|
+
* @license lucide-react v1.46.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const Lx={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};Lx.node;const qv=me(Lx);/**
|
|
230
|
+
* @license lucide-react v1.46.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const qx={name:"lightbulb",size:24,node:[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]};qx.node;const Hv=me(qx);/**
|
|
235
|
+
* @license lucide-react v1.46.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const Hx={name:"lock",size:24,node:[["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"}]]};Hx.node;const Gv=me(Hx);/**
|
|
240
|
+
* @license lucide-react v1.46.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const Gx={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]};Gx.node;const Vv=me(Gx);/**
|
|
245
|
+
* @license lucide-react v1.46.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const Vx={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};Vx.node;const Yv=me(Vx);/**
|
|
250
|
+
* @license lucide-react v1.46.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const Yx={name:"message-square-heart",size:24,node:[["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"}],["path",{d:"M7.5 9.5c0 .687.265 1.383.697 1.844l3.009 3.264a1.14 1.14 0 0 0 .407.314 1 1 0 0 0 .783-.004 1.14 1.14 0 0 0 .398-.31l3.008-3.264A2.77 2.77 0 0 0 16.5 9.5 2.5 2.5 0 0 0 12 8a2.5 2.5 0 0 0-4.5 1.5",key:"1faxuh"}]]};Yx.node;const Qv=me(Yx);/**
|
|
255
|
+
* @license lucide-react v1.46.0 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const Qx={name:"message-square",size:24,node:[["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"}]]};Qx.node;const Xv=me(Qx);/**
|
|
260
|
+
* @license lucide-react v1.46.0 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const Xx={name:"mic",size:24,node:[["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"}]]};Xx.node;const Bu=me(Xx);/**
|
|
265
|
+
* @license lucide-react v1.46.0 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const Kx={name:"moon",size:24,node:[["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"}]]};Kx.node;const Kv=me(Kx);/**
|
|
270
|
+
* @license lucide-react v1.46.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const Zx={name:"pen-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],aliases:["edit-3"]};Zx.node;const Zv=me(Zx);/**
|
|
275
|
+
* @license lucide-react v1.46.0 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const Jx={name:"phone",size:24,node:[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]};Jx.node;const Jv=me(Jx);/**
|
|
280
|
+
* @license lucide-react v1.46.0 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const Ix={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};Ix.node;const Iv=me(Ix);/**
|
|
285
|
+
* @license lucide-react v1.46.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const Px={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};Px.node;const Fx=me(Px);/**
|
|
290
|
+
* @license lucide-react v1.46.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const $x={name:"qr-code",size:24,node:[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]};$x.node;const Uu=me($x);/**
|
|
295
|
+
* @license lucide-react v1.46.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const Wx={name:"radio",size:24,node:[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};Wx.node;const Ks=me(Wx);/**
|
|
300
|
+
* @license lucide-react v1.46.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const eb={name:"refresh-cw",size:24,node:[["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"}]]};eb.node;const Vr=me(eb);/**
|
|
305
|
+
* @license lucide-react v1.46.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const tb={name:"rotate-ccw",size:24,node:[["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"}]]};tb.node;const Ar=me(tb);/**
|
|
310
|
+
* @license lucide-react v1.46.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const nb={name:"save",size:24,node:[["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"}]]};nb.node;const Yr=me(nb);/**
|
|
315
|
+
* @license lucide-react v1.46.0 - ISC
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the ISC license.
|
|
318
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/const ab={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};ab.node;const lb=me(ab);/**
|
|
320
|
+
* @license lucide-react v1.46.0 - ISC
|
|
321
|
+
*
|
|
322
|
+
* This source code is licensed under the ISC license.
|
|
323
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
+
*/const sb={name:"send",size:24,node:[["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"}]]};sb.node;const Nd=me(sb);/**
|
|
325
|
+
* @license lucide-react v1.46.0 - ISC
|
|
326
|
+
*
|
|
327
|
+
* This source code is licensed under the ISC license.
|
|
328
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
+
*/const ib={name:"settings",size:24,node:[["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"}]]};ib.node;const Pv=me(ib);/**
|
|
330
|
+
* @license lucide-react v1.46.0 - ISC
|
|
331
|
+
*
|
|
332
|
+
* This source code is licensed under the ISC license.
|
|
333
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
+
*/const rb={name:"shield-alert",size:24,node:[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]};rb.node;const Fv=me(rb);/**
|
|
335
|
+
* @license lucide-react v1.46.0 - ISC
|
|
336
|
+
*
|
|
337
|
+
* This source code is licensed under the ISC license.
|
|
338
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
+
*/const ob={name:"shield",size:24,node:[["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"}]]};ob.node;const Od=me(ob);/**
|
|
340
|
+
* @license lucide-react v1.46.0 - ISC
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the ISC license.
|
|
343
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/const cb={name:"sliders-vertical",size:24,node:[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],aliases:["sliders"]};cb.node;const ub=me(cb);/**
|
|
345
|
+
* @license lucide-react v1.46.0 - ISC
|
|
346
|
+
*
|
|
347
|
+
* This source code is licensed under the ISC license.
|
|
348
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
349
|
+
*/const db={name:"smartphone",size:24,node:[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]};db.node;const Lu=me(db);/**
|
|
350
|
+
* @license lucide-react v1.46.0 - ISC
|
|
351
|
+
*
|
|
352
|
+
* This source code is licensed under the ISC license.
|
|
353
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
354
|
+
*/const fb={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};fb.node;const wd=me(fb);/**
|
|
355
|
+
* @license lucide-react v1.46.0 - ISC
|
|
356
|
+
*
|
|
357
|
+
* This source code is licensed under the ISC license.
|
|
358
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
359
|
+
*/const hb={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};hb.node;const Sd=me(hb);/**
|
|
360
|
+
* @license lucide-react v1.46.0 - ISC
|
|
361
|
+
*
|
|
362
|
+
* This source code is licensed under the ISC license.
|
|
363
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
+
*/const mb={name:"star",size:24,node:[["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"}]]};mb.node;const $v=me(mb);/**
|
|
365
|
+
* @license lucide-react v1.46.0 - ISC
|
|
366
|
+
*
|
|
367
|
+
* This source code is licensed under the ISC license.
|
|
368
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
369
|
+
*/const pb={name:"sun",size:24,node:[["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"}]]};pb.node;const Wv=me(pb);/**
|
|
370
|
+
* @license lucide-react v1.46.0 - ISC
|
|
371
|
+
*
|
|
372
|
+
* This source code is licensed under the ISC license.
|
|
373
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
374
|
+
*/const gb={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};gb.node;const e2=me(gb);/**
|
|
375
|
+
* @license lucide-react v1.46.0 - ISC
|
|
376
|
+
*
|
|
377
|
+
* This source code is licensed under the ISC license.
|
|
378
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
379
|
+
*/const xb={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};xb.node;const Vl=me(xb);/**
|
|
380
|
+
* @license lucide-react v1.46.0 - ISC
|
|
381
|
+
*
|
|
382
|
+
* This source code is licensed under the ISC license.
|
|
383
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
384
|
+
*/const bb={name:"trash",size:24,node:[["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"}]],aliases:["trash-2"]};bb.node;const yb=me(bb);/**
|
|
385
|
+
* @license lucide-react v1.46.0 - ISC
|
|
386
|
+
*
|
|
387
|
+
* This source code is licensed under the ISC license.
|
|
388
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
389
|
+
*/const vb={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};vb.node;const Or=me(vb);/**
|
|
390
|
+
* @license lucide-react v1.46.0 - ISC
|
|
391
|
+
*
|
|
392
|
+
* This source code is licensed under the ISC license.
|
|
393
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
394
|
+
*/const Nb={name:"unlink",size:24,node:[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]};Nb.node;const qu=me(Nb);/**
|
|
395
|
+
* @license lucide-react v1.46.0 - ISC
|
|
396
|
+
*
|
|
397
|
+
* This source code is licensed under the ISC license.
|
|
398
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
399
|
+
*/const wb={name:"user",size:24,node:[["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"}]]};wb.node;const Hu=me(wb);/**
|
|
400
|
+
* @license lucide-react v1.46.0 - ISC
|
|
401
|
+
*
|
|
402
|
+
* This source code is licensed under the ISC license.
|
|
403
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
404
|
+
*/const Sb={name:"users",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};Sb.node;const Gl=me(Sb);/**
|
|
405
|
+
* @license lucide-react v1.46.0 - ISC
|
|
406
|
+
*
|
|
407
|
+
* This source code is licensed under the ISC license.
|
|
408
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
409
|
+
*/const jb={name:"volume-2",size:24,node:[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]};jb.node;const t2=me(jb);/**
|
|
410
|
+
* @license lucide-react v1.46.0 - ISC
|
|
411
|
+
*
|
|
412
|
+
* This source code is licensed under the ISC license.
|
|
413
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
414
|
+
*/const _b={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};_b.node;const Is=me(_b);/**
|
|
415
|
+
* @license lucide-react v1.46.0 - ISC
|
|
416
|
+
*
|
|
417
|
+
* This source code is licensed under the ISC license.
|
|
418
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
419
|
+
*/const Ab={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};Ab.node;const n2=me(Ab),Gu={ar:{overview:"نظرة عامة",connection:"حالة الاتصال",control:"التحكم والإدارة",commands:"كتالوج الأوامر",ai:"الذكاء الاصطناعي",groups:"المجموعات",roles:"الأدوار والمشرفين",schedules:"الرسائل المجدولة",notes:"الملاحظات والقوائم",settings:"الإعدادات العامة",logs:"السجلات المباشرة",connected:"متصل بالواتساب",disconnected:"غير متصل",starting:"جاري إنشاء الاتصال...",waiting_for_qr:"بانتظار مسح رمز الـ QR",linking:"جاري ربط الجلسة...",reconnecting:"جاري إعادة الاتصال...",retry_exhausted:"استُنفذت محاولات الاتصال",logged_out:"تم تسجيل الخروج من الهاتف",idle:"الجلسة خاملة",paused:"متوقف مؤقتاً",resume:"استئناف الجلسة",connectSession:"الاتصال",start:"بدء الاتصال",stop:"إيقاف مؤقت",reconnect:"إعادة الاتصال",unlink:"إلغاء الربط (Unlink)",restart:"إعادة تشغيل البوت",save:"حفظ التغييرات",saving:"جاري الحفظ...",cancel:"إلغاء",delete:"حذف",edit:"تعديل",add:"إضافة",refresh:"تحديث",logout:"تسجيل الخروج",close:"إغلاق",copy:"نسخ",copied:"تم النسخ!",clientIdentity:"هوية العميل",noPhonePaired:"لم يتم ربط أي هاتف بعد",linkedAs:"مرتبط كـ",datastoreHealth:"حالة قاعدة البيانات",datastoreHealthy:"بيانات الاعتماد ومفاتيح الجلسة ومطابقات LID سليمة ومستقرة.",reconnectPolicy:"سياسة إعادة الاتصال",reconnectPolicyDesc:"تراجع خطي تدريجي (5ث، 10ث، 15ث، 20ث، 25ث) مع محاولات محدودة.",maxAttemptsAutoPause:"الحد الأقصى: 5 محاولات · إيقاف تلقائي دون إنترنت",platformWeb:"المنصة: واتساب ويب (v7 Multi-Device)",databaseNodeSqlite:"قاعدة البيانات: node:sqlite (تزامني)",totalGroups:"إجمالي المجموعات",totalUsers:"المستخدمين المسجلين",commandCount:"الأوامر المفعلة",uptime:"مدة التشغيل",dataDir:"مجلد البيانات",quickStatus:"حالة النظام",activeSchedules:"المهام المجدولة النشطة",activeListening:"المساعد نشط ويستقبل الرسائل",pausedOrLinking:"اتصال واتساب متوقف حالياً أو قيد المزامنة",aiTitle:"إعدادات الذكاء الاصطناعي",aiSubtitle:"اختر المزود المناسب بضغطة زر أو خصص النماذج والمفاتيح",aiAgentEnabled:"تفعيل وكيل الذكاء الاصطناعي",aiProvider:"المزود النشط",quickSetup:"معالج الإعداد السريع للمزودين",aiVision:"تحليل وفهم الصور (Vision)",aiVisionDesc:"تحويل الصور وتمريرها لنماذج الرؤية الذكية المتوافقة",aiStt:"محرك تحويل الصوت إلى نص (STT)",sttDesc:"محرك تفريغ الرسائل الصوتية وتحويلها إلى نص",sttAuto:"تلقائي (مطابق للمزود النشط)",sttGemini:"Google Gemini Audio API",sttOpenAI:"OpenAI / Groq Whisper API",botLanguage:"لغة ردود البوت",botLanguageDesc:"تحديد لغة ردود البوت أو تغييرها عبر الأمر !lang",langAuto:"تلقائي (حسب لغة رسالة المستخدم)",langAr:"العربية الفصحى (دائماً)",langEn:"English (دائماً)",modelName:"النموذج",apiKey:"مفتاح API",baseUrl:"Base URL",maxToolSteps:"الحد الأقصى لخطوات الأدوات",googleSearch:"أداة بحث جوجل المدمجة (Google Search)",personaPrompt:"برومبت شخصية البوت (AI Persona)",personaDesc:"تعديل التوجيه الأساسي الذي يحدد أسلوب وشخصية مساعدك الذكي",editPersona:"تعديل برومبت الشخصية",memoryFiles:"ملفات الذاكرة طويلة المدى",memoryDesc:"استعراض وتعديل ملفات الذاكرة التراكمية المحفوظة بصيغة Markdown",manageMemory:"إدارة ملفات الذاكرة",capabilities:"القدرات والميزات المتقدمة",modelsAvailableLive:"نماذج متاحة لحسابك (تم التحقق عبر API)",modelsRecommendedSeed:"نماذج مقترحة / معروفة (دليل النماذج)",connectKeyFirstPrompt:"يرجى إدخال مفتاح API أولاً لاكتشاف النماذج المتاحة لحسابك",refreshModels:"تحديث قائمة النماذج",refreshing:"جارِ التحديث...",fetchModels:"فحص النماذج المتاحة",fetchingModels:"جارِ فحص النماذج...",capVision:"الرؤية",capStt:"الصوت",capAudio:"إدخال الصوت",capText:"نص",capPdf:"PDF",capVideo:"فيديو",supported:"مدعوم",unsupported:"غير مدعوم",sourceLive:"حسابك",sourceSeed:"مقترح",sourceUnknown:"غير معروف",visionUnsupportedNotice:"النموذج المختار لا يدعم معالجة الصور والرؤية (Vision)، تم تعطيل الميزة تلقائياً.",sttUnsupportedNotice:"النموذج المختار لا يدعم تحويل وفهم الصوت (STT)، تم تعطيل الميزة تلقائياً.",aiSttEnabled:"تفعيل تحويل وفهم الصوت (STT)",aiSttEnabledDesc:"تفريغ الرسائل الصوتية وفهم الملفات الصوتية عبر النموذج المختار",providerGemini:"Google Gemini",providerGeminiDesc:"الافتراضي، يدعم البحث والملفات والصور والصوتيات محلياً",providerGroq:"Groq Cloud",providerGroqDesc:"فائق السرعة لنماذج Llama 3 و Mixtral مع دعم Vision",providerOpenAI:"OpenAI / Compatible",providerOpenAIDesc:"لنماذج GPT-4o أو أي خادم متوافق مع API OpenAI",providerOllama:"Ollama (محلي)",providerOllamaDesc:"تشغيل النماذج محلياً على جهازك مجاناً بدون إنترنت",providerAnthropic:"Anthropic Claude",providerAnthropicDesc:"لنماذج Claude 3.5 Sonnet الذكية والمتقدمة",scanQrHint:"افتح تطبيق واتساب على هاتفك > الأجهزة المرتبطة > ربط جهاز، وامسح الرمز أدناه.",pairingCode:"رمز الربط (Pairing Code)",reconnectingSoon:"إعادة الاتصال قريباً...",nextAttemptIn:"المحاولة القادمة خلال",seconds:"ثوانٍ",tabGeneral:"عام والبادئة",tabAI:"الذكاء الاصطناعي",tabSecurity:"الأمان والوصول",tabProxy:"بروكسي واتساب",tabStorage:"التخزين والوسائط",tabLogs:"سجلات النظام",prefixTitle:"بادئة أوامر البوت (Command Prefix)",prefixDesc:"الرمز أو الحرف الذي تبدأ به جميع الأوامر الموجهة للبوت في واتساب (مثل !help أو /ping)",prefixPlaceholder:"مثال: !",prefixPresets:"بادئات شائعة سريعة:",prefixPreview:"معاينة حية لشكل الأوامر:",prefixSaveBtn:"حفظ البادئة الجديدة",prefixUpdated:"تم تحديث بادئة الأوامر بنجاح!",prefixValidation:"يجب أن تكون البادئة من رمز واحد إلى 3 رموز",activePrefix:"البادئة الحالية",changePrefix:"تعديل البادئة",prefix:"بادئة الأوامر (Prefix)",botTimezone:"المنطقة الزمنية (Timezone)",botTimezoneDesc:"المنطقة الزمنية المعتمدة لحساب أوقات الصلاة والمهام المجدولة (مثل Africa/Cairo)",botMinDelay:"الحد الأدنى للتأخير البشري (ms)",botMaxDelay:"الحد الأقصى للتأخير البشري (ms)",delaysDesc:"فترة انتظار قصيرة قبل إرسال الردود ليبدو سلوك البوت طبيعياً وبشرياً",changePassword:"تغيير كلمة مرور لوحة التحكم",currentPassword:"كلمة المرور الحالية",newPassword:"كلمة المرور الجديدة",confirmPassword:"تأكيد كلمة المرور الجديدة",passwordMatchError:"كلمتا المرور غير متطابقتين",passwordMinLength:"يجب ألا تقل كلمة المرور عن 8 خانات",passwordChangedSuccess:"تم تغيير كلمة مرور لوحة التحكم بنجاح!",proxyTitle:"بروكسي واتساب الصادر (Outbound Proxy)",proxyDesc:"توجيه اتصالات Baileys إلى واتساب عبر بروكسي خارجي لتجاوز قيود الشبكة أو الحظر",proxyEnabled:"تفعيل البروكسي لاتصالات واتساب",proxyProtocol:"بروتوكول البروكسي (Protocol)",proxyHost:"عنوان المضيف (Host / IP)",proxyPort:"المنفذ (Port)",proxyUsername:"اسم المستخدم (اختياري)",proxyPassword:"كلمة المرور (اختياري)",proxyApplyHint:"⚠️ ملاحظة: عند تعديل إعدادات البروكسي، اضغط على زر إعادة الاتصال في صفحة الاتصال لتطبيق التغييرات.",storageTitle:"إدارة البيانات والاحتفاظ بها",storageDesc:"تحديد مدد صلاحية البيانات المؤقتة وسجلات الرسائل الموجهة والحدود القصوى للجلب",forwardTtl:"صلاحية سجلات الرسائل الموجهة (أيام)",forwardTtlDesc:"حذف إحصائيات الرسائل الموجهة القديمة تلقائياً بعد مرور هذا العدد من الأيام",maxFetchBytes:"الحد الأقصى لجلب محتوى صفحات الويب (Bytes)",maxFetchBytesDesc:"حجم المحتوى الأقصى المسموح لأدوات الذكاء الاصطناعي بجلبه من صفحات الويب (افتراضي: 512KB)",ffmpegPath:"مسار محرك FFmpeg مخصص (اختياري)",weatherApiKey:"مفتاح OpenWeatherMap API (اختياري)",chooseLanguage:"اختر اللغة",langCardTitle:"لغة الواجهة: العربية (RTL)",langCardDesc:"تصميم مخصص بالكامل لاتجاه الكتابة العربي من اليمين لليسار مع خط تجوال",langSwitchBtn:"Switch to English",langName:"العربية",interfaceLanguage:"لغة لوحة التحكم",interfaceLanguageDesc:"التبديل الفوري بين الواجهة العربية (RTL) والإنجليزية (LTR)",botPort:"منفذ خادم لوحة التحكم (Port)",botPortHint:"* يتطلب تغيير المنفذ إعادة تشغيل البوت ليأخذ مفعوله",searchPlaceholder:"ابحث في الأوامر أو الأسماء البديلة...",thCommand:"الأمر",thAliases:"الأسماء البديلة",thDescription:"الوصف",thScope:"النطاق",thRequiredRole:"الرتبة المطلوبة",thStatus:"الحالة",thGroupName:"اسم المجموعة",thGroupJid:"معرف المجموعة (JID)",thMembers:"الأعضاء",thAntiLink:"مانع الروابط",thMedia:"الوسائط",thWelcome:"الترحيب",thTarget:"الوجهة",thMessage:"الرسالة",thSchedule:"الموعد",thType:"النوع",thDelivery:"حالة الإرسال",thActions:"إجراءات",scheduleNewMsg:"جدولة رسالة جديدة",liveServerLogs:"سجلات النظام المباشرة",clearLogs:"مسح السجلات",allLogs:"جميع المستويات",noLogs:"لا توجد سجلات مسجلة حتى الآن.",savedSuccessfully:"تم حفظ الإعدادات بنجاح!",saveFailed:"حدث خطأ أثناء حفظ الإعدادات.",connectionStatusUpdated:"تم تحديث حالة الاتصال.",networkError:"تعذر الاتصال بالخادم.",loading:"جاري التحميل...",aiAssistantDesc:"وكيل ذكي متعدد الأدوات مع ذاكرة طويلة الأمد",settingsSub:"البادئة، التأخير، الخدمات، والأمان",editAliases:"تعديل الأسماء المستعارة",aliasesFor:"الأسماء المستعارة لـ",addAlias:"إضافة اسم مستعار",newAliasPlaceholder:"اكتب اسماً جديداً...",noAliases:"لا توجد أسماء مستعارة",selectRecipient:"اختر المحادثة المستهدفة",searchRecipients:"ابحث بالاسم أو رقم الهاتف...",recipients:"المستلمون",chooseChat:"اختر جهة اتصال أو مجموعة...",noRecipientsFound:"لم يتم العثور على محادثات",pickPhoneContact:"من دليل الهاتف",pickPhoneContactHint:"اختر جهة اتصال من هاتف أندرويد",maxSchedulesReached:"تم بلوغ الحد الأقصى (3 رسائل مجدولة)",limitReached:"الحد الأقصى مكتمل",tabIntegrations:"الربط والخدمات",integrationsDesc:"مفاتيح واجهات البرمجة (API) للخدمات الخارجية المرتبطة بالبوت",youtubeApiKey:"مفتاح YouTube Data API (اختياري)",selectModel:"اختر نموذجاً من القائمة...",availableModels:"النماذج المتاحة من المزود",customModel:"أو اكتب اسم نموذج مخصص",sessionStatus:"حالة الجلسة",sessionActive:"الجلسة متصلة وتستقبل الرسائل",sessionOffline:"الجلسة غير متصلة حالياً",connectedNumber:"الرقم المرتبط",tabFeedback:"الملاحظات والدعم",feedbackTitle:"أرسل ملاحظاتك إلى المطوّر",feedbackDesc:"مشكلة، اقتراح، أو سؤال — تُسلَّم رسالتك مباشرةً إلى مطوّر ليفيكس. لا يوجد وسيط ولا نظام تذاكر.",feedbackTopicLabel:"موضوع الرسالة",feedbackTopicBug:"هناك خلل",feedbackTopicIdea:"فكرة أو طلب",feedbackTopicQuestion:"سؤال",feedbackTopicPraise:"يعمل بشكل جيد",feedbackTopicOther:"شيء آخر",feedbackMessageLabel:"رسالتك",feedbackMessagePlaceholder:"ماذا حدث، وماذا كنت تتوقع، وماذا كنت تفعل في ذلك الوقت. التفاصيل تساعد — يقرأها شخص حقيقي.",feedbackCharsNeeded:"حرفاً إضافياً على الأقل",feedbackRatingLabel:"كيف يعمل ليفيكس معك؟ (اختياري)",feedbackContactLabel:"كيف نتواصل معك؟ (اختياري)",feedbackContactPlaceholder:"بريد إلكتروني أو معرّف واتساب/تيليجرام — فقط إن أردت رداً",feedbackSendBtn:"إرسال الملاحظات",feedbackSending:"جاري الإرسال...",feedbackSent:"تم الإرسال. شكراً لك!",feedbackSentDesc:"وصلت رسالتك إلى مطوّر ليفيكس. إن تركت وسيلة للتواصل، توقّع رداً.",feedbackSendAnother:"إرسال رسالة أخرى",feedbackWhatIsSent:"ما يُرسَل مع رسالتك",feedbackWhatIsSentDesc:"نص رسالتك، والموضوع، والتقييم ووسيلة التواصل إن أضفتهما، بالإضافة إلى إصدار ليفيكس والمنصة التي يعمل عليها. لا تُرسَل أي رسالة واتساب أو محادثة أو جهة اتصال أو مفتاح، ولا يُرسَل شيء إلا عند الضغط على إرسال.",feedbackRuntimeLabel:"يُرفَق مع الرسالة",feedbackGithubHint:"للأخطاء التي تريد تتبّعها علناً مع السجلات، افتح Issue على GitHub.",feedbackOpenGithub:"فتح Issue على GitHub"},en:{overview:"Overview",connection:"Connection",control:"Control & Management",commands:"Command Catalog",ai:"AI & Memory",groups:"Groups",roles:"Roles & Admins",schedules:"Scheduled Messages",notes:"Notes & Lists",settings:"Settings",logs:"Live Logs",connected:"Connected to WhatsApp",disconnected:"Disconnected",starting:"Starting socket...",waiting_for_qr:"Waiting for QR scan",linking:"Linking session...",reconnecting:"Reconnecting...",retry_exhausted:"Retries exhausted",logged_out:"Logged out from phone",idle:"Session idle",paused:"Paused",resume:"Resume session",connectSession:"Connect",start:"Start Connection",stop:"Pause",reconnect:"Reconnect",unlink:"Unlink Device",restart:"Restart Bot",save:"Save Changes",saving:"Saving...",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",refresh:"Refresh",logout:"Sign Out",close:"Close",copy:"Copy",copied:"Copied!",clientIdentity:"Client Identity",noPhonePaired:"No phone paired yet",linkedAs:"Linked as",datastoreHealth:"Datastore Health",datastoreHealthy:"SQLite credentials, auth keys, and LID mappings are healthy.",reconnectPolicy:"Reconnect Policy",reconnectPolicyDesc:"Staged linear backoff (5s, 10s, 15s, 20s, 25s) with bounded retries.",maxAttemptsAutoPause:"Max attempts: 5 • Auto-pause offline",platformWeb:"Platform: WhatsApp Web (v7 Multi-Device)",databaseNodeSqlite:"Database: node:sqlite (Synchronous)",totalGroups:"Total Groups",totalUsers:"Registered Users",commandCount:"Enabled Commands",uptime:"Uptime",dataDir:"Data Directory",quickStatus:"System Status",activeSchedules:"Active Schedules",activeListening:"Active and listening to messages",pausedOrLinking:"WhatsApp connection is currently paused or linking",aiTitle:"AI Assistant Configuration",aiSubtitle:"Select a provider with one click or configure custom endpoints and keys",aiAgentEnabled:"Enable AI Agent",aiProvider:"Active Provider",quickSetup:"Quick Provider Setup Wizard",aiVision:"Image Understanding (Vision)",aiVisionDesc:"Encode attached images and pass to supported multimodal vision models",aiStt:"Speech-to-Text Provider (STT)",sttDesc:"Speech-to-text transcription engine for voice notes",sttAuto:"Auto (Matches active provider)",sttGemini:"Google Gemini Audio API",sttOpenAI:"OpenAI / Groq Whisper API",botLanguage:"Bot Response Language",botLanguageDesc:"Set bot response language directly or via command !lang",langAuto:"Auto-detect (matches user's language)",langAr:"Modern Standard Arabic (Always)",langEn:"English (Always)",modelName:"Model",apiKey:"API key",baseUrl:"Base URL",maxToolSteps:"Max Tool Steps",googleSearch:"Built-in Google Search Grounding",personaPrompt:"AI Persona System Prompt",personaDesc:"Edit the live system prompt that shapes your AI assistant's persona, tone, and behavior.",editPersona:"Edit System Prompt",memoryFiles:"Long-term Memory Files",memoryDesc:"Inspect and manage markdown memory documents stored inside the data directory.",manageMemory:"Manage Memory Files",capabilities:"Capabilities & Toggles",modelsAvailableLive:"Models Available for Your Account (Live API Verified)",modelsRecommendedSeed:"Recommended / Known Models (Catalog)",connectKeyFirstPrompt:"Please connect your API key first to discover models available to your account",refreshModels:"Refresh Models",refreshing:"Refreshing...",fetchModels:"Fetch Available Models",fetchingModels:"Discovering models...",capVision:"Vision",capStt:"Speech",capAudio:"Audio in",capText:"Text",capPdf:"PDF",capVideo:"Video",supported:"Supported",unsupported:"Unsupported",sourceLive:"Your account",sourceSeed:"Catalog",sourceUnknown:"Unknown",visionUnsupportedNotice:"The selected model does not support Vision (image understanding). Feature disabled automatically.",sttUnsupportedNotice:"The selected model does not support Speech-to-Text (STT). Feature disabled automatically.",aiSttEnabled:"Enable Speech-to-Text (STT)",aiSttEnabledDesc:"Audio transcription and voice note understanding using the active model",providerGemini:"Google Gemini",providerGeminiDesc:"Default provider with native Google Search, Files upload, and Multimodal support",providerGroq:"Groq Cloud",providerGroqDesc:"Ultra-fast inference for Llama 3 & Mixtral models with Vision support",providerOpenAI:"OpenAI / Compatible",providerOpenAIDesc:"For GPT-4o models or any OpenAI-compatible API gateway",providerOllama:"Ollama (Local)",providerOllamaDesc:"Run local open-source models completely offline on your own machine",providerAnthropic:"Anthropic Claude",providerAnthropicDesc:"For Claude 3.5 Sonnet advanced reasoning models",scanQrHint:"Open WhatsApp on your phone > Settings > Linked Devices > Link a Device, and scan the QR code below.",pairingCode:"Pairing Code",reconnectingSoon:"Reconnecting soon...",nextAttemptIn:"Next attempt in",seconds:"seconds",tabGeneral:"General & Prefix",tabAI:"AI Assistant",tabSecurity:"Security & Access",tabProxy:"WhatsApp Proxy",tabStorage:"Storage & Media",tabLogs:"System Logs",prefixTitle:"Bot Command Prefix",prefixDesc:"The leading character or symbol that triggers commands in WhatsApp chats (e.g. !help, /ping)",prefixPlaceholder:"e.g. !",prefixPresets:"Common Quick Presets:",prefixPreview:"Live Command Syntax Preview:",prefixSaveBtn:"Save New Prefix",prefixUpdated:"Command prefix updated successfully!",prefixValidation:"Prefix must be 1 to 3 characters long",activePrefix:"Active Prefix",changePrefix:"Change Prefix",prefix:"Command Prefix",botTimezone:"Timezone",botTimezoneDesc:"IANA timezone used for prayer times, AI context, and cron schedules (e.g. Africa/Cairo)",botMinDelay:"Min Human Delay (ms)",botMaxDelay:"Max Human Delay (ms)",delaysDesc:"Simulated human typing pause before replying to avoid robotic triggers",changePassword:"Change Dashboard Password",currentPassword:"Current Password",newPassword:"New Password",confirmPassword:"Confirm New Password",passwordMatchError:"Passwords do not match",passwordMinLength:"Password must be at least 8 characters long",passwordChangedSuccess:"Dashboard password changed successfully!",proxyTitle:"Outbound WhatsApp Proxy",proxyDesc:"Route Baileys WhatsApp traffic through an HTTP or SOCKS5 proxy to bypass restrictions",proxyEnabled:"Enable Outbound Proxy for WhatsApp",proxyProtocol:"Proxy Protocol",proxyHost:"Proxy Host / IP",proxyPort:"Proxy Port",proxyUsername:"Username (Optional)",proxyPassword:"Password (Optional)",proxyApplyHint:"⚠️ Note: To apply proxy changes, go to Connection and reconnect WhatsApp.",storageTitle:"Data Retention & Storage Limits",storageDesc:"Configure data cleanup thresholds, forward score retention, and fetch limits",forwardTtl:"Forward Score Expiry (Days)",forwardTtlDesc:"Automatically purge forwarded message scores after this many days",maxFetchBytes:"Web Fetch Byte Limit",maxFetchBytesDesc:"Maximum response body size AI tools are allowed to fetch from web pages (default: 512KB)",ffmpegPath:"Custom FFmpeg Binary Path (Optional)",weatherApiKey:"OpenWeatherMap API Key (Optional)",chooseLanguage:"Choose Language",langCardTitle:"Interface Language: English (LTR)",langCardDesc:"Full bidirectional layout support with optimized Arabic RTL & English LTR",langSwitchBtn:"التبديل إلى العربية",langName:"English",interfaceLanguage:"Dashboard Interface Language",interfaceLanguageDesc:"Instantly toggle between Arabic (RTL) and English (LTR)",botPort:"Control Panel Port",botPortHint:"* Changing port takes effect on next process restart",searchPlaceholder:"Search commands or aliases...",thCommand:"Command",thAliases:"Aliases",thDescription:"Description",thScope:"Scope",thRequiredRole:"Required Role",thStatus:"Status",thGroupName:"Group Name",thGroupJid:"Group JID",thMembers:"Members",thAntiLink:"Anti-Link",thMedia:"Media",thWelcome:"Welcome",thTarget:"Target",thMessage:"Message",thSchedule:"Schedule",thType:"Type",thDelivery:"Delivery Status",thActions:"Actions",scheduleNewMsg:"Schedule New Message",liveServerLogs:"Live Server Logs",clearLogs:"Clear Logs",allLogs:"All Levels",noLogs:"No log entries to display.",savedSuccessfully:"Settings saved successfully!",saveFailed:"Failed to save settings.",connectionStatusUpdated:"Connection status updated.",networkError:"Network error connecting to server.",loading:"Loading...",aiAssistantDesc:"Autonomous tool-calling AI agent with long-term memory",settingsSub:"Prefix, delays, integrations, & security",editAliases:"Edit Aliases",aliasesFor:"Aliases for",addAlias:"Add Alias",newAliasPlaceholder:"Type new alias...",noAliases:"No custom aliases",selectRecipient:"Select Target Chat",searchRecipients:"Search by name or phone...",recipients:"Recipients",chooseChat:"Choose a contact or group...",noRecipientsFound:"No matching chats found",pickPhoneContact:"From phone book",pickPhoneContactHint:"Pick a contact from this Android phone",maxSchedulesReached:"Maximum limit reached (3 scheduled messages)",limitReached:"Limit Reached",tabIntegrations:"Integrations",integrationsDesc:"API keys for external services connected to the bot",youtubeApiKey:"YouTube Data API Key (Optional)",selectModel:"Select a model from list...",availableModels:"Models Available from Provider",customModel:"Or type a custom model name",sessionStatus:"Session Status",sessionActive:"Session active and receiving messages",sessionOffline:"Session currently offline",connectedNumber:"Linked Phone",tabFeedback:"Feedback & Support",feedbackTitle:"Send feedback to the developer",feedbackDesc:"A bug, an idea, or a question — it is delivered straight to the person who builds Levix. No middle layer, no ticket queue.",feedbackTopicLabel:"What is this about?",feedbackTopicBug:"Something is broken",feedbackTopicIdea:"An idea or request",feedbackTopicQuestion:"A question",feedbackTopicPraise:"It works well",feedbackTopicOther:"Something else",feedbackMessageLabel:"Your message",feedbackMessagePlaceholder:"What happened, what you expected, and what you were doing at the time. Detail helps — it is read by a person.",feedbackCharsNeeded:"more characters",feedbackRatingLabel:"How is Levix working out? (optional)",feedbackContactLabel:"How to reach you (optional)",feedbackContactPlaceholder:"Email, or a WhatsApp/Telegram handle — only if you want an answer",feedbackSendBtn:"Send feedback",feedbackSending:"Sending...",feedbackSent:"Sent. Thank you!",feedbackSentDesc:"It reached the developer of Levix. If you left a way to reach you, expect a reply.",feedbackSendAnother:"Send something else",feedbackWhatIsSent:"What goes with your message",feedbackWhatIsSentDesc:"Your text, the topic, and the rating and contact if you added them, plus the Levix version and the platform it runs on. No WhatsApp message, chat, contact or key is ever attached, and nothing is sent until you press Send.",feedbackRuntimeLabel:"Attached to the message",feedbackGithubHint:"For reproducible bugs you want tracked in public with logs, open a GitHub issue.",feedbackOpenGithub:"Open a GitHub issue"}},Tb=Q.createContext(null),a2=({children:s})=>{const[o,u]=Q.useState(()=>{const p=localStorage.getItem("levix_lang");return p==="ar"||p==="en"?p:navigator.language.startsWith("ar")?"ar":"en"}),c=o==="ar"?"rtl":"ltr";Q.useEffect(()=>{localStorage.setItem("levix_lang",o),document.documentElement.lang=o,document.documentElement.dir=c},[o,c]);const d=p=>{u(p)},h=Q.useMemo(()=>(p,g)=>(Gu[o]||Gu.en)[p]??Gu.en[p]??g??String(p),[o]);return r.jsx(Tb.Provider,{value:{language:o,direction:c,setLanguage:d,t:h},children:s})},en=()=>{const s=Q.useContext(Tb);if(!s)throw new Error("useI18n must be used within an I18nProvider");return s},l2=({onToggleMobileMenu:s,title:o,status:u})=>{const{language:c,setLanguage:d,t:h}=en(),[p,g]=Qs.useState(!1),b=Qs.useRef(null);Qs.useEffect(()=>{if(!p)return;const T=Z=>{b.current&&!b.current.contains(Z.target)&&g(!1)},U=Z=>{Z.key==="Escape"&&g(!1)};return document.addEventListener("mousedown",T),document.addEventListener("keydown",U),()=>{document.removeEventListener("mousedown",T),document.removeEventListener("keydown",U)}},[p]);const[E,v]=Qs.useState(()=>{const T=localStorage.getItem("levix_theme");return T?(document.documentElement.setAttribute("data-theme",T),T):document.documentElement.getAttribute("data-theme")||"dark"}),x=()=>{const T=E==="dark"?"light":"dark";v(T),document.documentElement.setAttribute("data-theme",T),localStorage.setItem("levix_theme",T)};return r.jsxs("header",{className:"h-16 sticky top-0 z-30 flex items-center justify-between px-4 md:px-6 bg-panel/85 backdrop-blur-md border-b border-line",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[r.jsx("button",{type:"button",onClick:s,className:"inline-flex md:hidden items-center justify-center w-11 h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main transition-colors focus-visible:ring-2 focus-visible:ring-brand-blue/50",id:"mobile-menu-btn","aria-label":"Open navigation menu",children:r.jsx(Yv,{size:20})}),r.jsx("h1",{className:"text-lg md:text-xl font-bold tracking-tight text-text-main truncate",title:o,children:o})]}),r.jsxs("div",{className:"flex items-center gap-2 md:gap-3",children:[r.jsxs("div",{className:"relative",ref:b,children:[r.jsx("button",{type:"button",onClick:()=>g(T=>!T),className:"inline-flex items-center justify-center w-11 h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main transition-colors focus-visible:ring-2 focus-visible:ring-brand-blue/50",title:h("chooseLanguage","Choose Language"),"aria-label":h("chooseLanguage","Choose Language"),"aria-expanded":p,"aria-haspopup":"true",id:"btn-header-lang",children:r.jsx(Gr,{size:18,className:"text-brand-cyan"})}),p&&r.jsxs("div",{role:"menu","aria-orientation":"vertical","aria-labelledby":"btn-header-lang",className:"absolute end-0 mt-2 w-48 rounded-2xl border border-line bg-panel-solid shadow-2xl p-1.5 z-50 ring-1 ring-black/10 animate-in fade-in zoom-in-95 duration-150",children:[r.jsx("div",{className:"px-2.5 py-1.5 text-[11px] font-semibold text-text-muted uppercase tracking-wider",children:h("chooseLanguage","Choose Language")}),r.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{d("ar"),g(!1)},className:`w-full flex items-center justify-between px-3 py-2 text-xs md:text-sm font-medium rounded-lg transition-colors ${c==="ar"?"bg-brand-blue/15 text-brand-cyan font-bold":"text-text-main hover:bg-panel-hover"}`,children:[r.jsx("span",{children:"العربية"}),c==="ar"&&r.jsx(qr,{size:16,className:"text-brand-cyan"})]}),r.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{d("en"),g(!1)},className:`w-full flex items-center justify-between px-3 py-2 text-xs md:text-sm font-medium rounded-lg transition-colors ${c==="en"?"bg-brand-blue/15 text-brand-cyan font-bold":"text-text-main hover:bg-panel-hover"}`,children:[r.jsx("span",{children:"English"}),c==="en"&&r.jsx(qr,{size:16,className:"text-brand-cyan"})]})]})]}),r.jsx("button",{type:"button",onClick:x,className:"inline-flex items-center justify-center w-11 h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main transition-colors focus-visible:ring-2 focus-visible:ring-brand-blue/50",title:"Toggle Theme","aria-label":"Toggle dark/light theme",children:E==="dark"?r.jsx(Wv,{size:18}):r.jsx(Kv,{size:18})}),r.jsx("form",{action:"/logout",method:"POST",className:"m-0",children:r.jsx("button",{type:"submit",className:"inline-flex items-center justify-center w-11 h-11 rounded-xl border border-line bg-panel-raised hover:bg-danger/15 hover:border-danger/40 hover:text-danger text-text-main transition-colors focus-visible:ring-2 focus-visible:ring-danger/50",title:h("logout"),"aria-label":"Sign out",children:r.jsx(Vv,{size:18,className:"rtl:-scale-x-100 transition-transform"})})})]})]})};function Cb(s){var o,u,c="";if(typeof s=="string"||typeof s=="number")c+=s;else if(typeof s=="object")if(Array.isArray(s)){var d=s.length;for(o=0;o<d;o++)s[o]&&(u=Cb(s[o]))&&(c&&(c+=" "),c+=u)}else for(u in s)s[u]&&(c&&(c+=" "),c+=u);return c}function s2(){for(var s,o,u=0,c="",d=arguments.length;u<d;u++)(s=arguments[u])&&(o=Cb(s))&&(c&&(c+=" "),c+=o);return c}const i2=(s,o)=>{const u=new Array(s.length+o.length);for(let c=0;c<s.length;c++)u[c]=s[c];for(let c=0;c<o.length;c++)u[s.length+c]=o[c];return u},r2=(s,o)=>({classGroupId:s,validator:o}),Eb=(s=new Map,o=null,u)=>({nextPart:s,validators:o,classGroupId:u}),Qr="-",_g=[],o2="arbitrary..",c2=s=>{const o=d2(s),{conflictingClassGroups:u,conflictingClassGroupModifiers:c}=s;return{getClassGroupId:p=>{if(p.startsWith("[")&&p.endsWith("]"))return u2(p);const g=p.split(Qr),b=g[0]===""&&g.length>1?1:0;return zb(g,b,o)},getConflictingClassGroupIds:(p,g)=>{if(g){const b=c[p],E=u[p];return b?E?i2(E,b):b:E||_g}return u[p]||_g}}},zb=(s,o,u)=>{if(s.length-o===0)return u.classGroupId;const d=s[o],h=u.nextPart.get(d);if(h){const E=zb(s,o+1,h);if(E)return E}const p=u.validators;if(p===null)return;const g=o===0?s.join(Qr):s.slice(o).join(Qr),b=p.length;for(let E=0;E<b;E++){const v=p[E];if(v.validator(g))return v.classGroupId}},u2=s=>s.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=s.slice(1,-1),u=o.indexOf(":"),c=o.slice(0,u);return c?o2+c:void 0})(),d2=s=>{const{theme:o,classGroups:u}=s;return f2(u,o)},f2=(s,o)=>{const u=Eb();for(const c in s){const d=s[c];Dd(d,u,c,o)}return u},Dd=(s,o,u,c)=>{const d=s.length;for(let h=0;h<d;h++){const p=s[h];h2(p,o,u,c)}},h2=(s,o,u,c)=>{if(typeof s=="string"){m2(s,o,u);return}if(typeof s=="function"){p2(s,o,u,c);return}g2(s,o,u,c)},m2=(s,o,u)=>{const c=s===""?o:kb(o,s);c.classGroupId=u},p2=(s,o,u,c)=>{if(x2(s)){Dd(s(c),o,u,c);return}o.validators===null&&(o.validators=[]),o.validators.push(r2(u,s))},g2=(s,o,u,c)=>{const d=Object.entries(s),h=d.length;for(let p=0;p<h;p++){const[g,b]=d[p];Dd(b,kb(o,g),u,c)}},kb=(s,o)=>{let u=s;const c=o.split(Qr),d=c.length;for(let h=0;h<d;h++){const p=c[h];let g=u.nextPart.get(p);g||(g=Eb(),u.nextPart.set(p,g)),u=g}return u},x2=s=>"isThemeGetter"in s&&s.isThemeGetter===!0,b2=s=>{if(s<1)return{get:()=>{},set:()=>{}};let o=0,u=Object.create(null),c=Object.create(null);const d=(h,p)=>{u[h]=p,o++,o>s&&(o=0,c=u,u=Object.create(null))};return{get(h){let p=u[h];if(p!==void 0)return p;if((p=c[h])!==void 0)return d(h,p),p},set(h,p){h in u?u[h]=p:d(h,p)}}},jd="!",Ag=":",y2=[],Tg=(s,o,u,c,d)=>({modifiers:s,hasImportantModifier:o,baseClassName:u,maybePostfixModifierPosition:c,isExternal:d}),v2=s=>{const{prefix:o,experimentalParseClassName:u}=s;let c=d=>{const h=[];let p=0,g=0,b=0,E;const v=d.length;for(let R=0;R<v;R++){const B=d[R];if(p===0&&g===0){if(B===Ag){h.push(d.slice(b,R)),b=R+1;continue}if(B==="/"){E=R;continue}}B==="["?p++:B==="]"?p--:B==="("?g++:B===")"&&g--}const x=h.length===0?d:d.slice(b);let T=x,U=!1;x.endsWith(jd)?(T=x.slice(0,-1),U=!0):x.startsWith(jd)&&(T=x.slice(1),U=!0);const Z=E&&E>b?E-b:void 0;return Tg(h,U,T,Z)};if(o){const d=o+Ag,h=c;c=p=>p.startsWith(d)?h(p.slice(d.length)):Tg(y2,!1,p,void 0,!0)}if(u){const d=c;c=h=>u({className:h,parseClassName:d})}return c},N2=s=>{const o=new Map;return s.orderSensitiveModifiers.forEach((u,c)=>{o.set(u,1e6+c)}),u=>{const c=[];let d=[];for(let h=0;h<u.length;h++){const p=u[h],g=p[0]==="[",b=o.has(p);g||b?(d.length>0&&(d.sort(),c.push(...d),d=[]),c.push(p)):d.push(p)}return d.length>0&&(d.sort(),c.push(...d)),c}},w2=s=>({cache:b2(s.cacheSize),parseClassName:v2(s),sortModifiers:N2(s),postfixLookupClassGroupIds:S2(s),...c2(s)}),S2=s=>{const o=Object.create(null),u=s.postfixLookupClassGroups;if(u)for(let c=0;c<u.length;c++)o[u[c]]=!0;return o},j2=/\s+/,_2=(s,o)=>{const{parseClassName:u,getClassGroupId:c,getConflictingClassGroupIds:d,sortModifiers:h,postfixLookupClassGroupIds:p}=o,g=[],b=s.trim().split(j2);let E="";for(let v=b.length-1;v>=0;v-=1){const x=b[v],{isExternal:T,modifiers:U,hasImportantModifier:Z,baseClassName:R,maybePostfixModifierPosition:B}=u(x);if(T){E=x+(E.length>0?" "+E:E);continue}let G=!!B,K;if(G){const V=R.substring(0,B);K=c(V);const z=K&&p[K]?c(R):void 0;z&&z!==K&&(K=z,G=!1)}else K=c(R);if(!K){if(!G){E=x+(E.length>0?" "+E:E);continue}if(K=c(R),!K){E=x+(E.length>0?" "+E:E);continue}G=!1}const ee=U.length===0?"":U.length===1?U[0]:h(U).join(":"),$=Z?ee+jd:ee,pe=$+K;if(g.indexOf(pe)>-1)continue;g.push(pe);const J=d(K,G);for(let V=0;V<J.length;++V){const z=J[V];g.push($+z)}E=x+(E.length>0?" "+E:E)}return E},A2=(...s)=>{let o=0,u,c,d="";for(;o<s.length;)(u=s[o++])&&(c=Mb(u))&&(d&&(d+=" "),d+=c);return d},Mb=s=>{if(typeof s=="string")return s;let o,u="";for(let c=0;c<s.length;c++)s[c]&&(o=Mb(s[c]))&&(u&&(u+=" "),u+=o);return u},T2=(s,...o)=>{let u,c,d,h;const p=b=>{const E=o.reduce((v,x)=>x(v),s());return u=w2(E),c=u.cache.get,d=u.cache.set,h=g,g(b)},g=b=>{const E=c(b);if(E)return E;const v=_2(b,u);return d(b,v),v};return h=p,(...b)=>h(A2(...b))},C2=[],ct=s=>{const o=u=>u[s]||C2;return o.isThemeGetter=!0,o.themeKey=s,o},Ob=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Db=/^\((?:(\w[\w-]*):)?(.+)\)$/i,E2=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,z2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,M2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,O2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,D2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ga=s=>E2.test(s),Ce=s=>!!s&&!Number.isNaN(Number(s)),vn=s=>!!s&&Number.isInteger(Number(s)),Vu=s=>s.endsWith("%")&&Ce(s.slice(0,-1)),qn=s=>z2.test(s),Rb=()=>!0,R2=s=>k2.test(s)&&!M2.test(s),Rd=()=>!1,B2=s=>O2.test(s),U2=s=>D2.test(s),L2=s=>!ue(s)&&!de(s),q2=s=>s.startsWith("@container")&&(s[10]==="/"&&s[11]!==void 0||s[11]==="s"&&s[16]!==void 0&&s.startsWith("-size/",10)||s[11]==="n"&&s[18]!==void 0&&s.startsWith("-normal/",10)),H2=s=>ya(s,Lb,Rd),ue=s=>Ob.test(s),Qa=s=>ya(s,qb,R2),Cg=s=>ya(s,J2,Ce),G2=s=>ya(s,Gb,Rb),V2=s=>ya(s,Hb,Rd),Eg=s=>ya(s,Bb,Rd),Y2=s=>ya(s,Ub,U2),Tr=s=>ya(s,Vb,B2),de=s=>Db.test(s),Gs=s=>Ka(s,qb),Q2=s=>Ka(s,Hb),zg=s=>Ka(s,Bb),X2=s=>Ka(s,Lb),K2=s=>Ka(s,Ub),Cr=s=>Ka(s,Vb,!0),Z2=s=>Ka(s,Gb,!0),ya=(s,o,u)=>{const c=Ob.exec(s);return c?c[1]?o(c[1]):u(c[2]):!1},Ka=(s,o,u=!1)=>{const c=Db.exec(s);return c?c[1]?o(c[1]):u:!1},Bb=s=>s==="position"||s==="percentage",Ub=s=>s==="image"||s==="url",Lb=s=>s==="length"||s==="size"||s==="bg-size",qb=s=>s==="length",J2=s=>s==="number",Hb=s=>s==="family-name",Gb=s=>s==="number"||s==="weight",Vb=s=>s==="shadow",I2=()=>{const s=ct("color"),o=ct("font"),u=ct("text"),c=ct("font-weight"),d=ct("tracking"),h=ct("leading"),p=ct("breakpoint"),g=ct("container"),b=ct("spacing"),E=ct("radius"),v=ct("shadow"),x=ct("inset-shadow"),T=ct("text-shadow"),U=ct("drop-shadow"),Z=ct("blur"),R=ct("perspective"),B=ct("aspect"),G=ct("ease"),K=ct("animate"),ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],pe=()=>[...$(),de,ue],J=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],z=()=>[de,ue,b],I=()=>[ga,"full","auto",...z()],se=()=>[vn,"none","subgrid",de,ue],W=()=>["auto",{span:["full",vn,de,ue]},vn,de,ue],ne=()=>[vn,"auto",de,ue],X=()=>["auto","min","max","fr",de,ue],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...z()],F=()=>[ga,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],M=()=>[g,ga,"screen","full","dvw","lvw","svw","min","max","fit",...z()],re=()=>[ga,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],Y=()=>[s,de,ue],ke=()=>[...$(),zg,Eg,{position:[de,ue]}],Ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ge=()=>["auto","cover","contain",X2,H2,{size:[de,ue]}],N=()=>[Vu,Gs,Qa],S=()=>["","none","full",E,de,ue],P=()=>["",Ce,Gs,Qa],ae=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Ce,Vu,zg,Eg],Se=()=>["","none",Z,de,ue],oe=()=>["none",Ce,de,ue],be=()=>["none",Ce,de,ue],L=()=>[Ce,de,ue],je=()=>[ga,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qn],breakpoint:[qn],color:[Rb],container:[qn],"drop-shadow":[qn],ease:["in","out","in-out"],font:[L2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qn],shadow:[qn],spacing:["px",Ce],text:[qn],"text-shadow":[qn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ga,ue,de,B]}],container:["container"],"container-type":[{"@container":["","normal","size",de,ue]}],"container-named":[q2],columns:[{columns:[Ce,"auto",ue,de,g]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:pe()}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[vn,"auto",de,ue]}],basis:[{basis:[ga,"full","auto",g,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,ga,"auto","initial","none",ue]}],grow:[{grow:["",Ce,de,ue]}],shrink:[{shrink:["",Ce,de,ue]}],order:[{order:[vn,"first","last","none",de,ue]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mbs:[{mbs:C()}],mbe:[{mbe:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[g,"screen",...F()]}],"min-w":[{"min-w":[g,"screen","none",...F()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh","none",...F()]}],"font-size":[{text:["base",u,Gs,Qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,Z2,G2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vu,ue]}],"font-family":[{font:[Q2,V2,o]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,de,ue]}],"line-clamp":[{"line-clamp":[Ce,"none",de,Cg]}],leading:[{leading:["none",h,...z()]}],"list-image":[{"list-image":["none",de,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",de,Qa]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ce,"auto",de,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"tab-size":[{tab:[vn,de,ue]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:Ue()}],"bg-size":[{bg:Ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vn,de,ue],radial:["",de,ue],conic:["",vn,de,ue]},K2,Y2]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-bs":[{"border-bs":Y()}],"border-color-be":[{"border-be":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,de,ue]}],"outline-w":[{outline:["",Ce,Gs,Qa]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","inner","none",v,Cr,Tr]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",x,Cr,Tr]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ce,Qa]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",T,Cr,Tr]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Ce,de,ue]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[de,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:Ue()}],"mask-size":[{mask:Ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ue]}],filter:[{filter:["","none",de,ue]}],blur:[{blur:Se()}],brightness:[{brightness:[Ce,de,ue]}],contrast:[{contrast:[Ce,de,ue]}],"drop-shadow":[{"drop-shadow":["","none",U,Cr,Tr]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Ce,de,ue]}],"hue-rotate":[{"hue-rotate":[Ce,de,ue]}],invert:[{invert:["",Ce,de,ue]}],saturate:[{saturate:[Ce,de,ue]}],sepia:[{sepia:["",Ce,de,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ue]}],"backdrop-blur":[{"backdrop-blur":Se()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,de,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,de,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,de,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,de,ue]}],"backdrop-invert":[{"backdrop-invert":["",Ce,de,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,de,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,de,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,de,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",de,ue]}],ease:[{ease:["linear","initial",G,de,ue]}],delay:[{delay:[Ce,de,ue]}],animate:[{animate:["none",K,de,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,de,ue]}],"perspective-origin":[{"perspective-origin":pe()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[de,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:pe()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:je()}],"translate-x":[{"translate-x":je()}],"translate-y":[{"translate-y":je()}],"translate-z":[{"translate-z":je()}],"translate-none":["translate-none"],zoom:[{zoom:[vn,de,ue]}],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Y()}],"scrollbar-track-color":[{"scrollbar-track":Y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,ue]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ce,Gs,Qa,Cg]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},P2=T2(I2);function Yt(...s){return P2(s2(s))}const F2=({currentView:s,onSelectView:o,isOpenMobile:u,onCloseMobile:c})=>{const{t:d}=en(),h=window.__BRAND__||{name:"Levix",tagline:"Private control room",version:"",developer:"Abdelrhman Diab",studio:"Leviro",developerSite:"https://github.com/Abdodiab2005",studioSite:"https://leviro.net"},p=[{id:"overview",label:d("overview"),icon:qv},{id:"connection",label:d("connection"),icon:Ks},{labelCategory:d("control")},{id:"commands",label:d("commands"),icon:Vl},{id:"ai",label:d("ai"),icon:Md},{id:"groups",label:d("groups"),icon:Gl},{id:"schedules",label:d("schedules"),icon:yd},{labelCategory:d("settings")},{id:"settings",label:d("settings"),icon:Pv},{id:"logs",label:d("logs"),icon:Mr}];return r.jsxs(r.Fragment,{children:[u&&r.jsx("button",{type:"button",className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-40 md:hidden border-0 p-0 cursor-default",onClick:c,"aria-label":"Close mobile sidebar backdrop"}),r.jsxs("aside",{className:Yt("fixed top-0 bottom-0 start-0 z-50 w-72 md:w-64 md:static md:z-auto bg-panel border-e border-line flex flex-col transition-transform duration-200 ease-out",u?"translate-x-0":"max-md:-translate-x-full rtl:max-md:translate-x-full"),"aria-label":"Main Navigation",children:[r.jsxs("div",{className:"p-4 flex items-center justify-between border-b border-line",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[r.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-brand-blue via-brand-blue to-brand-cyan flex items-center justify-center shadow-md shadow-brand-blue/20 shrink-0 text-white",children:r.jsx(n2,{size:20})}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("div",{className:"font-extrabold text-base text-text-main leading-tight tracking-tight truncate",children:h.name}),r.jsx("div",{className:"text-xs text-muted leading-none truncate mt-0.5",children:h.tagline})]})]}),r.jsx("button",{type:"button",onClick:c,className:"inline-flex md:hidden items-center justify-center w-10 h-10 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main transition-colors shrink-0","aria-label":"Close menu",children:r.jsx(Is,{size:18})})]}),r.jsx("nav",{className:"flex-1 overflow-y-auto p-3 space-y-1",children:p.map(g=>{if(g.labelCategory)return r.jsx("div",{className:"px-3 pt-3 pb-1 text-[11px] font-bold uppercase tracking-wider text-faint",children:g.labelCategory},`cat-${g.labelCategory}`);if(!g.icon)return null;const b=g.icon,E=s===g.id;return r.jsxs("button",{type:"button",onClick:()=>{g.id&&(o(g.id),c())},className:Yt("w-full flex items-center gap-3 px-3.5 py-2.5 rounded-xl font-medium text-sm transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 text-start min-h-[44px]",E?"bg-brand-blue text-white shadow-md shadow-brand-blue/25 font-bold":"text-muted hover:bg-panel-hover hover:text-text-main"),children:[r.jsx(b,{size:20,className:"shrink-0"}),r.jsx("span",{className:"truncate",children:g.label})]},g.id)})}),r.jsxs("div",{className:"p-4 border-t border-line text-xs text-faint flex flex-col gap-2.5",children:[r.jsxs("div",{className:"flex items-center justify-between text-[11px] text-muted",children:[r.jsx("span",{className:"font-mono",children:h.version?`v${h.version}`:""}),r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(Od,{size:14,className:"text-brand-cyan"})," Local-first"]})]}),r.jsxs("div",{className:"text-[11px] text-muted truncate",children:["© ",h.copyrightYear||2026," ",r.jsx("a",{href:h.developerSite||"#",target:"_blank",rel:"noopener noreferrer",className:"text-brand-cyan hover:underline",children:h.developer})," ","(",r.jsx("a",{href:h.studioSite||"#",target:"_blank",rel:"noopener noreferrer",className:"text-brand-cyan hover:underline",children:h.studio}),")"]})]})]})]})},Yb=Q.createContext(null),$2=({children:s})=>{const[o,u]=Q.useState([]),c=Q.useCallback(h=>{u(p=>p.filter(g=>g.id!==h))},[]),d=Q.useCallback((h,p="info",g=4e3)=>{const b=Math.random().toString(36).slice(2,9);u(E=>[...E,{id:b,message:h,type:p,duration:g}]),setTimeout(()=>c(b),g)},[c]);return r.jsxs(Yb.Provider,{value:{toast:d},children:[s,r.jsx("div",{className:"fixed bottom-5 end-5 z-50 flex flex-col gap-2.5 max-w-sm w-full px-4 pointer-events-none","aria-live":"polite",children:o.map(h=>r.jsxs("div",{className:`pointer-events-auto flex items-center gap-3 px-4 py-3 rounded-xl border bg-panel-raised/95 backdrop-blur-md shadow-xl text-xs md:text-sm text-text-main transition-all ${h.type==="success"?"border-ok/35":h.type==="error"?"border-danger/35":h.type==="warning"?"border-warn/35":"border-line"}`,children:[h.type==="success"&&r.jsx(Js,{size:18,className:"text-ok shrink-0"}),h.type==="error"&&r.jsx(zv,{size:18,className:"text-danger shrink-0"}),h.type==="warning"&&r.jsx(Or,{size:18,className:"text-warn shrink-0"}),h.type==="info"&&r.jsx(Lv,{size:18,className:"text-info shrink-0"}),r.jsx("span",{className:"flex-1 font-medium",children:h.message}),r.jsx("button",{type:"button",onClick:()=>c(h.id),className:"inline-flex items-center justify-center w-6 h-6 rounded-lg text-muted hover:text-text-main hover:bg-panel-hover transition-colors shrink-0","aria-label":"Dismiss notification",children:r.jsx(Is,{size:14})})]},h.id))})]})},Hn=()=>{const s=Q.useContext(Yb);if(!s)throw new Error("useToast must be used within a ToastProvider");return s},Sn=Object.create(null);Sn.open="0";Sn.close="1";Sn.ping="2";Sn.pong="3";Sn.message="4";Sn.upgrade="5";Sn.noop="6";const Dr=Object.create(null);Object.keys(Sn).forEach(s=>{Dr[Sn[s]]=s});const _d={type:"error",data:"parser error"},Qb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Xb=typeof ArrayBuffer=="function",Kb=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,Bd=({type:s,data:o},u,c)=>Qb&&o instanceof Blob?u?c(o):kg(o,c):Xb&&(o instanceof ArrayBuffer||Kb(o))?u?c(o):kg(new Blob([o]),c):c(Sn[s]+(o||"")),kg=(s,o)=>{const u=new FileReader;return u.onload=function(){const c=u.result.split(",")[1];o("b"+(c||""))},u.readAsDataURL(s)};function Mg(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let Yu;function W2(s,o){if(Qb&&s.data instanceof Blob)return s.data.arrayBuffer().then(Mg).then(o);if(Xb&&(s.data instanceof ArrayBuffer||Kb(s.data)))return o(Mg(s.data));Bd(s,!1,u=>{Yu||(Yu=new TextEncoder),o(Yu.encode(u))})}const Og="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<Og.length;s++)Xs[Og.charCodeAt(s)]=s;const e5=s=>{let o=s.length*.75,u=s.length,c,d=0,h,p,g,b;s[s.length-1]==="="&&(o--,s[s.length-2]==="="&&o--);const E=new ArrayBuffer(o),v=new Uint8Array(E);for(c=0;c<u;c+=4)h=Xs[s.charCodeAt(c)],p=Xs[s.charCodeAt(c+1)],g=Xs[s.charCodeAt(c+2)],b=Xs[s.charCodeAt(c+3)],v[d++]=h<<2|p>>4,v[d++]=(p&15)<<4|g>>2,v[d++]=(g&3)<<6|b&63;return E},t5=typeof ArrayBuffer=="function",Ud=(s,o)=>{if(typeof s!="string")return{type:"message",data:Zb(s,o)};const u=s.charAt(0);return u==="b"?{type:"message",data:n5(s.substring(1),o)}:Dr[u]?s.length>1?{type:Dr[u],data:s.substring(1)}:{type:Dr[u]}:_d},n5=(s,o)=>{if(t5){const u=e5(s);return Zb(u,o)}else return{base64:!0,data:s}},Zb=(s,o)=>{switch(o){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},Jb="",a5=(s,o)=>{const u=s.length,c=new Array(u);let d=0;s.forEach((h,p)=>{Bd(h,!1,g=>{c[p]=g,++d===u&&o(c.join(Jb))})})},l5=(s,o)=>{const u=s.split(Jb),c=[];for(let d=0;d<u.length;d++){const h=Ud(u[d],o);if(c.push(h),h.type==="error")break}return c};function s5(){return new TransformStream({transform(s,o){W2(s,u=>{const c=u.length;let d;if(c<126)d=new Uint8Array(1),new DataView(d.buffer).setUint8(0,c);else if(c<65536){d=new Uint8Array(3);const h=new DataView(d.buffer);h.setUint8(0,126),h.setUint16(1,c)}else{d=new Uint8Array(9);const h=new DataView(d.buffer);h.setUint8(0,127),h.setBigUint64(1,BigInt(c))}s.data&&typeof s.data!="string"&&(d[0]|=128),o.enqueue(d),o.enqueue(u)})}})}let Qu;function Er(s){return s.reduce((o,u)=>o+u.length,0)}function zr(s,o){if(s[0].length===o)return s.shift();const u=new Uint8Array(o);let c=0;for(let d=0;d<o;d++)u[d]=s[0][c++],c===s[0].length&&(s.shift(),c=0);return s.length&&c<s[0].length&&(s[0]=s[0].slice(c)),u}function i5(s,o){Qu||(Qu=new TextDecoder);const u=[];let c=0,d=-1,h=!1;return new TransformStream({transform(p,g){for(u.push(p);;){if(c===0){if(Er(u)<1)break;const b=zr(u,1);h=(b[0]&128)===128,d=b[0]&127,d<126?c=3:d===126?c=1:c=2}else if(c===1){if(Er(u)<2)break;const b=zr(u,2);d=new DataView(b.buffer,b.byteOffset,b.length).getUint16(0),c=3}else if(c===2){if(Er(u)<8)break;const b=zr(u,8),E=new DataView(b.buffer,b.byteOffset,b.length),v=E.getUint32(0);if(v>Math.pow(2,21)-1){g.enqueue(_d);break}d=v*Math.pow(2,32)+E.getUint32(4),c=3}else{if(Er(u)<d)break;const b=zr(u,d);g.enqueue(Ud(h?b:Qu.decode(b),o)),c=0}if(d===0||d>s){g.enqueue(_d);break}}}})}const Ib=4;function rt(s){if(s)return r5(s)}function r5(s){for(var o in rt.prototype)s[o]=rt.prototype[o];return s}rt.prototype.on=rt.prototype.addEventListener=function(s,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(o),this};rt.prototype.once=function(s,o){function u(){this.off(s,u),o.apply(this,arguments)}return u.fn=o,this.on(s,u),this};rt.prototype.off=rt.prototype.removeListener=rt.prototype.removeAllListeners=rt.prototype.removeEventListener=function(s,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var u=this._callbacks["$"+s];if(!u)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var c,d=0;d<u.length;d++)if(c=u[d],c===o||c.fn===o){u.splice(d,1);break}return u.length===0&&delete this._callbacks["$"+s],this};rt.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var o=new Array(arguments.length-1),u=this._callbacks["$"+s],c=1;c<arguments.length;c++)o[c-1]=arguments[c];if(u){u=u.slice(0);for(var c=0,d=u.length;c<d;++c)u[c].apply(this,o)}return this};rt.prototype.emitReserved=rt.prototype.emit;rt.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};rt.prototype.hasListeners=function(s){return!!this.listeners(s).length};const Xr=typeof Promise=="function"&&typeof Promise.resolve=="function"?o=>Promise.resolve().then(o):(o,u)=>u(o,0),Wt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),o5="arraybuffer";function Pb(s,...o){return o.reduce((u,c)=>(s.hasOwnProperty(c)&&(u[c]=s[c]),u),{})}const c5=Wt.setTimeout,u5=Wt.clearTimeout;function Kr(s,o){o.useNativeTimers?(s.setTimeoutFn=c5.bind(Wt),s.clearTimeoutFn=u5.bind(Wt)):(s.setTimeoutFn=Wt.setTimeout.bind(Wt),s.clearTimeoutFn=Wt.clearTimeout.bind(Wt))}const d5=1.33;function f5(s){return typeof s=="string"?h5(s):Math.ceil((s.byteLength||s.size)*d5)}function h5(s){let o=0,u=0;for(let c=0,d=s.length;c<d;c++)o=s.charCodeAt(c),o<128?u+=1:o<2048?u+=2:o<55296||o>=57344?u+=3:(c++,u+=4);return u}function Fb(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function m5(s){let o="";for(let u in s)s.hasOwnProperty(u)&&(o.length&&(o+="&"),o+=encodeURIComponent(u)+"="+encodeURIComponent(s[u]));return o}function p5(s){let o={},u=s.split("&");for(let c=0,d=u.length;c<d;c++){let h=u[c].split("=");o[decodeURIComponent(h[0])]=decodeURIComponent(h[1])}return o}class g5 extends Error{constructor(o,u,c){super(o),this.description=u,this.context=c,this.type="TransportError"}}class Ld extends rt{constructor(o){super(),this.writable=!1,Kr(this,o),this.opts=o,this.query=o.query,this.socket=o.socket,this.supportsBinary=!o.forceBase64}onError(o,u,c){return super.emitReserved("error",new g5(o,u,c)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(o){this.readyState==="open"&&this.write(o)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(o){const u=Ud(o,this.socket.binaryType);this.onPacket(u)}onPacket(o){super.emitReserved("packet",o)}onClose(o){this.readyState="closed",super.emitReserved("close",o)}pause(o){}createUri(o,u={}){return o+"://"+this._hostname()+this._port()+this.opts.path+this._query(u)}_hostname(){const o=this.opts.hostname;return o.indexOf(":")===-1?o:"["+o+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(o){const u=m5(o);return u.length?"?"+u:""}}class x5 extends Ld{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(o){this.readyState="pausing";const u=()=>{this.readyState="paused",o()};if(this._polling||!this.writable){let c=0;this._polling&&(c++,this.once("pollComplete",function(){--c||u()})),this.writable||(c++,this.once("drain",function(){--c||u()}))}else u()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(o){const u=c=>{if(this.readyState==="opening"&&c.type==="open"&&this.onOpen(),c.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(c)};l5(o,this.socket.binaryType).forEach(u),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const o=()=>{this.write([{type:"close"}])};this.readyState==="open"?o():this.once("open",o)}write(o){this.writable=!1,a5(o,u=>{this.doWrite(u,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const o=this.opts.secure?"https":"http",u=this.query||{};return this.opts.timestampRequests!==!1&&(u[this.opts.timestampParam]=Fb()),!this.supportsBinary&&!u.sid&&(u.b64=1),this.createUri(o,u)}}let $b=!1;try{$b=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const b5=$b;function y5(){}class v5 extends x5{constructor(o){if(super(o),typeof location<"u"){const u=location.protocol==="https:";let c=location.port;c||(c=u?"443":"80"),this.xd=typeof location<"u"&&o.hostname!==location.hostname||c!==o.port}}doWrite(o,u){const c=this.request({method:"POST",data:o});c.on("success",u),c.on("error",(d,h)=>{this.onError("xhr post error",d,h)})}doPoll(){const o=this.request();o.on("data",this.onData.bind(this)),o.on("error",(u,c)=>{this.onError("xhr poll error",u,c)}),this.pollXhr=o}}class wn extends rt{constructor(o,u,c){super(),this.createRequest=o,Kr(this,c),this._opts=c,this._method=c.method||"GET",this._uri=u,this._data=c.data!==void 0?c.data:null,this._create()}_create(){var o;const u=Pb(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");u.xdomain=!!this._opts.xd;const c=this._xhr=this.createRequest(u);try{c.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){c.setDisableHeaderCheck&&c.setDisableHeaderCheck(!0);for(let d in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(d)&&c.setRequestHeader(d,this._opts.extraHeaders[d])}}catch{}if(this._method==="POST")try{c.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{c.setRequestHeader("Accept","*/*")}catch{}(o=this._opts.cookieJar)===null||o===void 0||o.addCookies(c),"withCredentials"in c&&(c.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(c.timeout=this._opts.requestTimeout),c.onreadystatechange=()=>{var d;c.readyState===3&&((d=this._opts.cookieJar)===null||d===void 0||d.parseCookies(c.getResponseHeader("set-cookie"))),c.readyState===4&&(c.status===200||c.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof c.status=="number"?c.status:0)},0))},c.send(this._data)}catch(d){this.setTimeoutFn(()=>{this._onError(d)},0);return}typeof document<"u"&&(this._index=wn.requestsCount++,wn.requests[this._index]=this)}_onError(o){this.emitReserved("error",o,this._xhr),this._cleanup(!0)}_cleanup(o){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=y5,o)try{this._xhr.abort()}catch{}typeof document<"u"&&delete wn.requests[this._index],this._xhr=null}}_onLoad(){const o=this._xhr.responseText;o!==null&&(this.emitReserved("data",o),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}wn.requestsCount=0;wn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Dg);else if(typeof addEventListener=="function"){const s="onpagehide"in Wt?"pagehide":"unload";addEventListener(s,Dg,!1)}}function Dg(){for(let s in wn.requests)wn.requests.hasOwnProperty(s)&&wn.requests[s].abort()}const N5=(function(){const s=Wb({xdomain:!1});return s&&s.responseType!==null})();class w5 extends v5{constructor(o){super(o);const u=o&&o.forceBase64;this.supportsBinary=N5&&!u}request(o={}){return Object.assign(o,{xd:this.xd},this.opts),new wn(Wb,this.uri(),o)}}function Wb(s){const o=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!o||b5))return new XMLHttpRequest}catch{}if(!o)try{return new Wt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const e0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class S5 extends Ld{get name(){return"websocket"}doOpen(){const o=this.uri(),u=this.opts.protocols,c=e0?{}:Pb(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(c.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(o,u,c)}catch(d){return this.emitReserved("error",d)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=o=>this.onClose({description:"websocket connection closed",context:o}),this.ws.onmessage=o=>this.onData(o.data),this.ws.onerror=o=>this.onError("websocket error",o)}write(o){this.writable=!1;for(let u=0;u<o.length;u++){const c=o[u],d=u===o.length-1;Bd(c,this.supportsBinary,h=>{try{this.doWrite(c,h)}catch{}d&&Xr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const o=this.opts.secure?"wss":"ws",u=this.query||{};return this.opts.timestampRequests&&(u[this.opts.timestampParam]=Fb()),this.supportsBinary||(u.b64=1),this.createUri(o,u)}}const Xu=Wt.WebSocket||Wt.MozWebSocket;class j5 extends S5{createSocket(o,u,c){return e0?new Xu(o,u,c):u?new Xu(o,u):new Xu(o)}doWrite(o,u){this.ws.send(u)}}class _5 extends Ld{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(o){return this.emitReserved("error",o)}this._transport.closed.then(()=>{this.onClose()}).catch(o=>{this.onError("webtransport error",o)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(o=>{const u=i5(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=o.readable.pipeThrough(u).getReader(),d=s5();d.readable.pipeTo(o.writable),this._writer=d.writable.getWriter();const h=()=>{c.read().then(({done:g,value:b})=>{g||(this.onPacket(b),h())}).catch(g=>{})};h();const p={type:"open"};this.query.sid&&(p.data=`{"sid":"${this.query.sid}"}`),this._writer.write(p).then(()=>this.onOpen())})})}write(o){this.writable=!1;for(let u=0;u<o.length;u++){const c=o[u],d=u===o.length-1;this._writer.write(c).then(()=>{d&&Xr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var o;(o=this._transport)===null||o===void 0||o.close()}}const A5={websocket:j5,webtransport:_5,polling:w5},T5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,C5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ad(s){if(s.length>8e3)throw"URI too long";const o=s,u=s.indexOf("["),c=s.indexOf("]");u!=-1&&c!=-1&&(s=s.substring(0,u)+s.substring(u,c).replace(/:/g,";")+s.substring(c,s.length));let d=T5.exec(s||""),h={},p=14;for(;p--;)h[C5[p]]=d[p]||"";return u!=-1&&c!=-1&&(h.source=o,h.host=h.host.substring(1,h.host.length-1).replace(/;/g,":"),h.authority=h.authority.replace("[","").replace("]","").replace(/;/g,":"),h.ipv6uri=!0),h.pathNames=E5(h,h.path),h.queryKey=z5(h,h.query),h}function E5(s,o){const u=/\/{2,9}/g,c=o.replace(u,"/").split("/");return(o.slice(0,1)=="/"||o.length===0)&&c.splice(0,1),o.slice(-1)=="/"&&c.splice(c.length-1,1),c}function z5(s,o){const u={};return o.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,d,h){d&&(u[d]=h)}),u}const Td=typeof addEventListener=="function"&&typeof removeEventListener=="function",Rr=[];Td&&addEventListener("offline",()=>{Rr.forEach(s=>s())},!1);class ba extends rt{constructor(o,u){if(super(),this.binaryType=o5,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,o&&typeof o=="object"&&(u=o,o=null),o){const c=Ad(o);u.hostname=c.host,u.secure=c.protocol==="https"||c.protocol==="wss",u.port=c.port,c.query&&(u.query=c.query)}else u.host&&(u.hostname=Ad(u.host).host);Kr(this,u),this.secure=u.secure!=null?u.secure:typeof location<"u"&&location.protocol==="https:",u.hostname&&!u.port&&(u.port=this.secure?"443":"80"),this.hostname=u.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=u.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},u.transports.forEach(c=>{const d=c.prototype.name;this.transports.push(d),this._transportsByName[d]=c}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},u),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=p5(this.opts.query)),Td&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Rr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(o){const u=Object.assign({},this.opts.query);u.EIO=Ib,u.transport=o,this.id&&(u.sid=this.id);const c=Object.assign({},this.opts,{query:u,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[o]);return new this._transportsByName[o](c)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const o=this.opts.rememberUpgrade&&ba.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const u=this.createTransport(o);u.open(),this.setTransport(u)}setTransport(o){this.transport&&this.transport.removeAllListeners(),this.transport=o,o.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",u=>this._onClose("transport close",u))}onOpen(){this.readyState="open",ba.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(o){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",o),this.emitReserved("heartbeat"),o.type){case"open":this.onHandshake(JSON.parse(o.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const u=new Error("server error");u.code=o.data,this._onError(u);break;case"message":this.emitReserved("data",o.data),this.emitReserved("message",o.data);break}}onHandshake(o){this.emitReserved("handshake",o),this.id=o.sid,this.transport.query.sid=o.sid,this._pingInterval=o.pingInterval,this._pingTimeout=o.pingTimeout,this._maxPayload=o.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const o=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+o,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},o),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const o=this._getWritablePackets();this.transport.send(o),this._prevBufferLen=o.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let u=1;for(let c=0;c<this.writeBuffer.length;c++){const d=this.writeBuffer[c].data;if(d&&(u+=f5(d)),c>0&&u>this._maxPayload)return this.writeBuffer.slice(0,c);u+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const o=Date.now()>this._pingTimeoutTime;return o&&(this._pingTimeoutTime=0,Xr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),o}write(o,u,c){return this._sendPacket("message",o,u,c),this}send(o,u,c){return this._sendPacket("message",o,u,c),this}_sendPacket(o,u,c,d){if(typeof u=="function"&&(d=u,u=void 0),typeof c=="function"&&(d=c,c=null),this.readyState==="closing"||this.readyState==="closed")return;c=c||{},c.compress=c.compress!==!1;const h={type:o,data:u,options:c};this.emitReserved("packetCreate",h),this.writeBuffer.push(h),d&&this.once("flush",d),this.flush()}close(){const o=()=>{this._onClose("forced close"),this.transport.close()},u=()=>{this.off("upgrade",u),this.off("upgradeError",u),o()},c=()=>{this.once("upgrade",u),this.once("upgradeError",u)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?c():o()}):this.upgrading?c():o()),this}_onError(o){if(ba.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",o),this._onClose("transport error",o)}_onClose(o,u){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Td&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const c=Rr.indexOf(this._offlineEventListener);c!==-1&&Rr.splice(c,1)}this.readyState="closed",this.id=null,this.emitReserved("close",o,u),this.writeBuffer=[],this._prevBufferLen=0}}}ba.protocol=Ib;class k5 extends ba{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let o=0;o<this._upgrades.length;o++)this._probe(this._upgrades[o])}_probe(o){let u=this.createTransport(o),c=!1;ba.priorWebsocketSuccess=!1;const d=()=>{c||(u.send([{type:"ping",data:"probe"}]),u.once("packet",x=>{if(!c)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",u),!u)return;ba.priorWebsocketSuccess=u.name==="websocket",this.transport.pause(()=>{c||this.readyState!=="closed"&&(v(),this.setTransport(u),u.send([{type:"upgrade"}]),this.emitReserved("upgrade",u),u=null,this.upgrading=!1,this.flush())})}else{const T=new Error("probe error");T.transport=u.name,this.emitReserved("upgradeError",T)}}))};function h(){c||(c=!0,v(),u.close(),u=null)}const p=x=>{const T=new Error("probe error: "+x);T.transport=u.name,h(),this.emitReserved("upgradeError",T)};function g(){p("transport closed")}function b(){p("socket closed")}function E(x){u&&x.name!==u.name&&h()}const v=()=>{u.removeListener("open",d),u.removeListener("error",p),u.removeListener("close",g),this.off("close",b),this.off("upgrading",E)};u.once("open",d),u.once("error",p),u.once("close",g),this.once("close",b),this.once("upgrading",E),this._upgrades.indexOf("webtransport")!==-1&&o!=="webtransport"?this.setTimeoutFn(()=>{c||u.open()},200):u.open()}onHandshake(o){this._upgrades=this._filterUpgrades(o.upgrades),super.onHandshake(o)}_filterUpgrades(o){const u=[];for(let c=0;c<o.length;c++)~this.transports.indexOf(o[c])&&u.push(o[c]);return u}}let M5=class extends k5{constructor(o,u={}){const c=typeof o=="object",d=c?{...o}:{...u};(!d.transports||d.transports&&typeof d.transports[0]=="string")&&(d.transports=(d.transports||["polling","websocket","webtransport"]).map(h=>A5[h]).filter(h=>!!h)),super(c?d:o,d)}};function O5(s,o="",u){let c=s;u=u||typeof location<"u"&&location,s==null&&(s=u.protocol+"//"+u.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=u.protocol+s:s=u.host+s),/^(https?|wss?):\/\//.test(s)||(typeof u<"u"?s=u.protocol+"//"+s:s="https://"+s),c=Ad(s)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const h=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+h+":"+c.port+o,c.href=c.protocol+"://"+h+(u&&u.port===c.port?"":":"+c.port),c}const D5=typeof ArrayBuffer=="function",R5=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,t0=Object.prototype.toString,B5=typeof Blob=="function"||typeof Blob<"u"&&t0.call(Blob)==="[object BlobConstructor]",U5=typeof File=="function"||typeof File<"u"&&t0.call(File)==="[object FileConstructor]";function qd(s){return D5&&(s instanceof ArrayBuffer||R5(s))||B5&&s instanceof Blob||U5&&s instanceof File}function Br(s,o){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let u=0,c=s.length;u<c;u++)if(Br(s[u]))return!0;return!1}if(qd(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return Br(s.toJSON(),!0);for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)&&Br(s[u]))return!0;return!1}function L5(s){const o=[],u=s.data,c=s;return c.data=Ur(u,o),c.attachments=o.length,{packet:c,buffers:o}}function Ur(s,o,u){if(!s)return s;if(qd(s)){const c={_placeholder:!0,num:o.length};return o.push(s),c}else if(Array.isArray(s)){const c=new Array(s.length);for(let d=0;d<s.length;d++)c[d]=Ur(s[d],o);return c}else if(typeof s=="object"&&!(s instanceof Date)){if(s.toJSON&&typeof s.toJSON=="function"&&!u)return Ur(s.toJSON(),o,!0);const c={};for(const d in s)Object.prototype.hasOwnProperty.call(s,d)&&(c[d]=Ur(s[d],o));return c}return s}function q5(s,o){return s.data=Cd(s.data,o),delete s.attachments,s}function Cd(s,o){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<o.length)return o[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let u=0;u<s.length;u++)s[u]=Cd(s[u],o);else if(typeof s=="object")for(const u in s)Object.prototype.hasOwnProperty.call(s,u)&&(s[u]=Cd(s[u],o));return s}const H5=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var De;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(De||(De={}));class G5{constructor(o){this.replacer=o}encode(o){return(o.type===De.EVENT||o.type===De.ACK)&&Br(o)?this.encodeAsBinary({type:o.type===De.EVENT?De.BINARY_EVENT:De.BINARY_ACK,nsp:o.nsp,data:o.data,id:o.id}):[this.encodeAsString(o)]}encodeAsString(o){let u=""+o.type;return(o.type===De.BINARY_EVENT||o.type===De.BINARY_ACK)&&(u+=o.attachments+"-"),o.nsp&&o.nsp!=="/"&&(u+=o.nsp+","),o.id!=null&&(u+=o.id),o.data!=null&&(u+=JSON.stringify(o.data,this.replacer)),u}encodeAsBinary(o){const u=L5(o),c=this.encodeAsString(u.packet),d=u.buffers;return d.unshift(c),d}}class Hd extends rt{constructor(o){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof o=="function"?{reviver:o}:o)}add(o){let u;if(typeof o=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");u=this.decodeString(o);const c=u.type===De.BINARY_EVENT;c||u.type===De.BINARY_ACK?(u.type=c?De.EVENT:De.ACK,this.reconstructor=new V5(u)):super.emitReserved("decoded",u)}else if(qd(o)||o.base64)if(this.reconstructor)u=this.reconstructor.takeBinaryData(o),u&&(this.reconstructor=null,super.emitReserved("decoded",u));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+o)}decodeString(o){let u=0;const c={type:Number(o.charAt(0))};if(De[c.type]===void 0)throw new Error("unknown packet type "+c.type);if(c.type===De.BINARY_EVENT||c.type===De.BINARY_ACK){const h=u+1;for(;o.charAt(++u)!=="-"&&u!=o.length;);const p=o.substring(h,u);if(p!=Number(p)||o.charAt(u)!=="-")throw new Error("Illegal attachments");const g=Number(p);if(!Y5(g)||g<1)throw new Error("Illegal attachments");if(g>this.opts.maxAttachments)throw new Error("too many attachments");c.attachments=g}if(o.charAt(u+1)==="/"){const h=u+1;for(;++u&&!(o.charAt(u)===","||u===o.length););c.nsp=o.substring(h,u)}else c.nsp="/";const d=o.charAt(u+1);if(d!==""&&Number(d)==d){const h=u+1;for(;++u;){const p=o.charAt(u);if(p==null||Number(p)!=p){--u;break}if(u===o.length)break}c.id=Number(o.substring(h,u+1))}if(o.charAt(++u)){const h=this.tryParse(o.substr(u));if(Hd.isPayloadValid(c.type,h))c.data=h;else throw new Error("invalid payload")}return c}tryParse(o){try{return JSON.parse(o,this.opts.reviver)}catch{return!1}}static isPayloadValid(o,u){switch(o){case De.CONNECT:return Rg(u);case De.DISCONNECT:return u===void 0;case De.CONNECT_ERROR:return typeof u=="string"||Rg(u);case De.EVENT:case De.BINARY_EVENT:return Array.isArray(u)&&(typeof u[0]=="number"||typeof u[0]=="string"&&H5.indexOf(u[0])===-1);case De.ACK:case De.BINARY_ACK:return Array.isArray(u)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class V5{constructor(o){this.packet=o,this.buffers=[],this.reconPack=o}takeBinaryData(o){if(this.buffers.push(o),this.buffers.length===this.reconPack.attachments){const u=q5(this.reconPack,this.buffers);return this.finishedReconstruction(),u}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Y5=Number.isInteger||function(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s};function Rg(s){return Object.prototype.toString.call(s)==="[object Object]"}const Q5=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Hd,Encoder:G5,get PacketType(){return De}},Symbol.toStringTag,{value:"Module"}));function on(s,o,u){return s.on(o,u),function(){s.off(o,u)}}const X5=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class n0 extends rt{constructor(o,u,c){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=o,this.nsp=u,c&&c.auth&&(this.auth=c.auth),this._opts=Object.assign({},c),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const o=this.io;this.subs=[on(o,"open",this.onopen.bind(this)),on(o,"packet",this.onpacket.bind(this)),on(o,"error",this.onerror.bind(this)),on(o,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...o){return o.unshift("message"),this.emit.apply(this,o),this}emit(o,...u){var c,d,h;if(X5.hasOwnProperty(o))throw new Error('"'+o.toString()+'" is a reserved event name');if(u.unshift(o),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(u),this;const p={type:De.EVENT,data:u};if(p.options={},p.options.compress=this.flags.compress!==!1,typeof u[u.length-1]=="function"){const v=this.ids++,x=u.pop();this._registerAckCallback(v,x),p.id=v}const g=(d=(c=this.io.engine)===null||c===void 0?void 0:c.transport)===null||d===void 0?void 0:d.writable,b=this.connected&&!(!((h=this.io.engine)===null||h===void 0)&&h._hasPingExpired());return this.flags.volatile&&!g||(b?(this.notifyOutgoingListeners(p),this.packet(p)):this.sendBuffer.push(p)),this.flags={},this}_registerAckCallback(o,u){var c;const d=(c=this.flags.timeout)!==null&&c!==void 0?c:this._opts.ackTimeout;if(d===void 0){this.acks[o]=u;return}const h=this.io.setTimeoutFn(()=>{delete this.acks[o];for(let g=0;g<this.sendBuffer.length;g++)this.sendBuffer[g].id===o&&this.sendBuffer.splice(g,1);u.call(this,new Error("operation has timed out"))},d),p=(...g)=>{this.io.clearTimeoutFn(h),u.apply(this,g)};p.withError=!0,this.acks[o]=p}emitWithAck(o,...u){return new Promise((c,d)=>{const h=(p,g)=>p?d(p):c(g);h.withError=!0,u.push(h),this.emit(o,...u)})}_addToQueue(o){let u;typeof o[o.length-1]=="function"&&(u=o.pop());const c={id:this._queueSeq++,tryCount:0,pending:!1,args:o,flags:Object.assign({fromQueue:!0},this.flags)};o.push((d,...h)=>(this._queue[0],d!==null?c.tryCount>this._opts.retries&&(this._queue.shift(),u&&u(d)):(this._queue.shift(),u&&u(null,...h)),c.pending=!1,this._drainQueue())),this._queue.push(c),this._drainQueue()}_drainQueue(o=!1){if(!this.connected||this._queue.length===0)return;const u=this._queue[0];u.pending&&!o||(u.pending=!0,u.tryCount++,this.flags=u.flags,this.emit.apply(this,u.args))}packet(o){o.nsp=this.nsp,this.io._packet(o)}onopen(){typeof this.auth=="function"?this.auth(o=>{this._sendConnectPacket(o)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(o){this.packet({type:De.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},o):o})}onerror(o){this.connected||this.emitReserved("connect_error",o)}onclose(o,u){this.connected=!1,delete this.id,this.emitReserved("disconnect",o,u),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(o=>{if(!this.sendBuffer.some(c=>String(c.id)===o)){const c=this.acks[o];delete this.acks[o],c.withError&&c.call(this,new Error("socket has been disconnected"))}})}onpacket(o){if(o.nsp===this.nsp)switch(o.type){case De.CONNECT:o.data&&o.data.sid?this.onconnect(o.data.sid,o.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case De.EVENT:case De.BINARY_EVENT:this.onevent(o);break;case De.ACK:case De.BINARY_ACK:this.onack(o);break;case De.DISCONNECT:this.ondisconnect();break;case De.CONNECT_ERROR:this.destroy();const c=new Error(o.data.message);c.data=o.data.data,this.emitReserved("connect_error",c);break}}onevent(o){const u=o.data||[];o.id!=null&&u.push(this.ack(o.id)),this.connected?this.emitEvent(u):this.receiveBuffer.push(Object.freeze(u))}emitEvent(o){if(this._anyListeners&&this._anyListeners.length){const u=this._anyListeners.slice();for(const c of u)c.apply(this,o)}super.emit.apply(this,o),this._pid&&o.length&&typeof o[o.length-1]=="string"&&(this._lastOffset=o[o.length-1])}ack(o){const u=this;let c=!1;return function(...d){c||(c=!0,u.packet({type:De.ACK,id:o,data:d}))}}onack(o){const u=this.acks[o.id];typeof u=="function"&&(delete this.acks[o.id],u.withError&&o.data.unshift(null),u.apply(this,o.data))}onconnect(o,u){this.id=o,this.recovered=u&&this._pid===u,this._pid=u,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(o=>this.emitEvent(o)),this.receiveBuffer=[],this.sendBuffer.forEach(o=>{this.notifyOutgoingListeners(o),this.packet(o)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(o=>o()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:De.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(o){return this.flags.compress=o,this}get volatile(){return this.flags.volatile=!0,this}timeout(o){return this.flags.timeout=o,this}onAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(o),this}prependAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(o),this}offAny(o){if(!this._anyListeners)return this;if(o){const u=this._anyListeners;for(let c=0;c<u.length;c++)if(o===u[c])return u.splice(c,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(o){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(o),this}prependAnyOutgoing(o){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(o),this}offAnyOutgoing(o){if(!this._anyOutgoingListeners)return this;if(o){const u=this._anyOutgoingListeners;for(let c=0;c<u.length;c++)if(o===u[c])return u.splice(c,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(o){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const u=this._anyOutgoingListeners.slice();for(const c of u)c.apply(this,o.data)}}}function Yl(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}Yl.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var o=Math.random(),u=Math.floor(o*this.jitter*s);s=(Math.floor(o*10)&1)==0?s-u:s+u}return Math.min(s,this.max)|0};Yl.prototype.reset=function(){this.attempts=0};Yl.prototype.setMin=function(s){this.ms=s};Yl.prototype.setMax=function(s){this.max=s};Yl.prototype.setJitter=function(s){this.jitter=s};class Ed extends rt{constructor(o,u){var c;super(),this.nsps={},this.subs=[],o&&typeof o=="object"&&(u=o,o=void 0),u=u||{},u.path=u.path||"/socket.io",this.opts=u,Kr(this,u),this.reconnection(u.reconnection!==!1),this.reconnectionAttempts(u.reconnectionAttempts||1/0),this.reconnectionDelay(u.reconnectionDelay||1e3),this.reconnectionDelayMax(u.reconnectionDelayMax||5e3),this.randomizationFactor((c=u.randomizationFactor)!==null&&c!==void 0?c:.5),this.backoff=new Yl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(u.timeout==null?2e4:u.timeout),this._readyState="closed",this.uri=o;const d=u.parser||Q5;this.encoder=new d.Encoder,this.decoder=new d.Decoder,this._autoConnect=u.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(o){return arguments.length?(this._reconnection=!!o,o||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(o){return o===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=o,this)}reconnectionDelay(o){var u;return o===void 0?this._reconnectionDelay:(this._reconnectionDelay=o,(u=this.backoff)===null||u===void 0||u.setMin(o),this)}randomizationFactor(o){var u;return o===void 0?this._randomizationFactor:(this._randomizationFactor=o,(u=this.backoff)===null||u===void 0||u.setJitter(o),this)}reconnectionDelayMax(o){var u;return o===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=o,(u=this.backoff)===null||u===void 0||u.setMax(o),this)}timeout(o){return arguments.length?(this._timeout=o,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(o){if(~this._readyState.indexOf("open"))return this;this.engine=new M5(this.uri,this.opts);const u=this.engine,c=this;this._readyState="opening",this.skipReconnect=!1;const d=on(u,"open",function(){c.onopen(),o&&o()}),h=g=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",g),o?o(g):this.maybeReconnectOnOpen()},p=on(u,"error",h);if(this._timeout!==!1){const g=this._timeout,b=this.setTimeoutFn(()=>{d(),h(new Error("timeout")),u.close()},g);this.opts.autoUnref&&b.unref(),this.subs.push(()=>{this.clearTimeoutFn(b)})}return this.subs.push(d),this.subs.push(p),this}connect(o){return this.open(o)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const o=this.engine;this.subs.push(on(o,"ping",this.onping.bind(this)),on(o,"data",this.ondata.bind(this)),on(o,"error",this.onerror.bind(this)),on(o,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(o){try{this.decoder.add(o)}catch(u){this.onclose("parse error",u)}}ondecoded(o){Xr(()=>{this.emitReserved("packet",o)},this.setTimeoutFn)}onerror(o){this.emitReserved("error",o)}socket(o,u){let c=this.nsps[o];return c?this._autoConnect&&!c.active&&c.connect():(c=new n0(this,o,u),this.nsps[o]=c),c}_destroy(o){const u=Object.keys(this.nsps);for(const c of u)if(this.nsps[c].active)return;this._close()}_packet(o){const u=this.encoder.encode(o);for(let c=0;c<u.length;c++)this.engine.write(u[c],o.options)}cleanup(){this.subs.forEach(o=>o()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(o,u){var c;this.cleanup(),(c=this.engine)===null||c===void 0||c.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",o,u),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const o=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const u=this.backoff.duration();this._reconnecting=!0;const c=this.setTimeoutFn(()=>{o.skipReconnect||(this.emitReserved("reconnect_attempt",o.backoff.attempts),!o.skipReconnect&&o.open(d=>{d?(o._reconnecting=!1,o.reconnect(),this.emitReserved("reconnect_error",d)):o.onreconnect()}))},u);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}}onreconnect(){const o=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",o)}}const Vs={};function Lr(s,o){typeof s=="object"&&(o=s,s=void 0),o=o||{};const u=O5(s,o.path||"/socket.io"),c=u.source,d=u.id,h=u.path,p=Vs[d]&&h in Vs[d].nsps,g=o.forceNew||o["force new connection"]||o.multiplex===!1||p;let b;return g?b=new Ed(c,o):(Vs[d]||(Vs[d]=new Ed(c,o)),b=Vs[d]),u.query&&!o.query&&(o.query=u.queryKey),b.socket(u.path,o)}Object.assign(Lr,{Manager:Ed,Socket:n0,io:Lr,connect:Lr});let Ku=null;function Bg(){return Ku||(Ku=Lr(window.location.origin,{path:"/socket.io",transports:["websocket","polling"],reconnectionAttempts:10,reconnectionDelay:2e3})),Ku}function K5(s){const[o,u]=Q.useState(!1),[c,d]=Q.useState(null);return Q.useEffect(()=>{const h=Bg(),p=()=>u(!0),g=()=>u(!1),b=B=>{d(G=>({...G,...B,state:(B==null?void 0:B.state)||(G==null?void 0:G.state)||"idle"})),s==null||s("session",B)},E=B=>{d(G=>({...G,state:(B==null?void 0:B.state)||(G==null?void 0:G.state)||"idle",status:(B==null?void 0:B.status)||(G==null?void 0:G.status)})),s==null||s("status_update",B)},v=B=>{d(G=>({...G,...B})),s==null||s("status",B)},x=B=>{d(G=>({...G,state:"waiting_for_qr",qr:B})),s==null||s("qr",B)},T=B=>{const G=typeof B=="object"&&B&&"code"in B?String(B.code):String(B||"");d(K=>({...K,state:"waiting_for_qr",pairingCode:G})),s==null||s("pairing_code",G)},U=()=>{d(B=>B?{...B,qr:null}:null),s==null||s("qr_cleared",{})},Z=()=>{d(B=>B?{...B,pairingCode:null}:null),s==null||s("pairing_code_cleared",{})},R=(B,...G)=>{s==null||s(B,G[0])};return h.on("connect",p),h.on("disconnect",g),h.on("session",b),h.on("status_update",E),h.on("status",v),h.on("qr",x),h.on("pairing_code",T),h.on("pairing-code",T),h.on("qr_cleared",U),h.on("pairing_code_cleared",Z),h.onAny(R),u(h.connected),()=>{h.off("connect",p),h.off("disconnect",g),h.off("session",b),h.off("status_update",E),h.off("status",v),h.off("qr",x),h.off("pairing_code",T),h.off("pairing-code",T),h.off("qr_cleared",U),h.off("pairing_code_cleared",Z),h.offAny(R)}},[s]),{isConnected:o,sessionStatus:c,socket:Bg()}}const Zs=({isOpen:s,onClose:o,title:u,children:c,footer:d,maxWidth:h})=>(Q.useEffect(()=>{const p=g=>{g.key==="Escape"&&o()};return s&&(document.addEventListener("keydown",p),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="auto"}},[s,o]),s?r.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 overflow-y-auto",children:[r.jsx("button",{type:"button",className:"fixed inset-0 bg-black/65 backdrop-blur-sm border-0 p-0 cursor-default",onClick:o,"aria-label":"Close modal backdrop"}),r.jsxs("div",{className:"relative w-full rounded-2xl border border-line bg-panel shadow-2xl overflow-hidden my-auto z-10 animate-in fade-in zoom-in-95 duration-150",role:"dialog","aria-modal":"true","aria-label":u,style:h?{maxWidth:h}:{maxWidth:"520px"},children:[r.jsxs("div",{className:"flex items-center justify-between p-5 border-b border-line",children:[r.jsx("h3",{className:"text-base md:text-lg font-bold text-text-main",children:u}),r.jsx("button",{type:"button",onClick:o,className:"inline-flex items-center justify-center w-8 h-8 rounded-lg border border-line bg-panel-raised hover:bg-panel-hover text-text-main transition-colors","aria-label":"Close modal",children:r.jsx(Is,{size:18})})]}),r.jsx("div",{className:"p-5 overflow-y-auto max-h-[75vh]",children:c}),d&&r.jsx("div",{className:"flex items-center justify-end gap-3 p-4 border-t border-line bg-panel-raised/50",children:d})]})]}):null),Xa=({checked:s,onChange:o,disabled:u=!1,id:c,label:d,description:h})=>{const p=c||`toggle-${Math.random().toString(36).slice(2,8)}`;return r.jsxs("div",{className:"flex items-center justify-between gap-4",children:[(d||h)&&r.jsxs("div",{className:"min-w-0 flex-1",children:[d&&r.jsx("label",{htmlFor:p,className:"font-semibold text-sm cursor-pointer block text-text-main",children:d}),h&&r.jsx("p",{className:"text-xs text-muted mt-0.5",children:h})]}),r.jsx("button",{type:"button",role:"switch","aria-checked":s,id:p,disabled:u,onClick:()=>o(!s),className:Yt("relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50 disabled:cursor-not-allowed",s?"bg-brand-blue":"bg-panel-hover border border-line"),children:r.jsx("span",{className:Yt("pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow-md ring-0 transition duration-200 ease-in-out",s?"translate-x-5 rtl:-translate-x-5":"translate-x-0")})})]})},Z5=()=>{var ye,fe,Se,oe,be;const{t:s,language:o}=en(),{toast:u}=Hn(),[c,d]=Q.useState({}),[h,p]=Q.useState({}),[g,b]=Q.useState(!0),[E,v]=Q.useState({}),[x,T]=Q.useState(!1),[U,Z]=Q.useState(!1),[R,B]=Q.useState(!1),[G,K]=Q.useState(""),[ee,$]=Q.useState([]),[pe,J]=Q.useState(null),[V,z]=Q.useState(""),I=[{id:"gemini",name:"Google Gemini",descKey:"providerGeminiDesc",provider:"gemini",defaultModel:"gemini-3.7-flash",defaultBaseUrl:"",keySetting:"gemini_api_key",modelSetting:"gemini_model",baseUrlSetting:"gemini_base_url"},{id:"groq",name:"Groq Cloud",descKey:"providerGroqDesc",provider:"openai",defaultModel:"llama-3.3-70b-versatile",defaultBaseUrl:"https://api.groq.com/openai/v1",keySetting:"openai_api_key",modelSetting:"openai_model",baseUrlSetting:"openai_base_url"},{id:"openai",name:"OpenAI",descKey:"providerOpenAIDesc",provider:"openai",defaultModel:"gpt-4o-mini",defaultBaseUrl:"https://api.openai.com/v1",keySetting:"openai_api_key",modelSetting:"openai_model",baseUrlSetting:"openai_base_url"},{id:"ollama",name:"Ollama (Local)",descKey:"providerOllamaDesc",provider:"openai",defaultModel:"llama3.2",defaultBaseUrl:"http://localhost:11434/v1",keySetting:"openai_api_key",modelSetting:"openai_model",baseUrlSetting:"openai_base_url"},{id:"anthropic",name:"Anthropic Claude",descKey:"providerAnthropicDesc",provider:"anthropic",defaultModel:"claude-sonnet-4-5",defaultBaseUrl:"https://api.anthropic.com",keySetting:"anthropic_api_key",modelSetting:"anthropic_model",baseUrlSetting:"anthropic_base_url"}],se=async()=>{try{const L=await le.getSettings();if(L!=null&&L.settings){const je={},nt={};L.settings.forEach(Le=>{je[Le.key]=Le.value,Le.type==="secret"&&(nt[Le.key]=!!Le.configured)}),d(je),p(nt)}}catch(L){u(L.message,"error")}finally{b(!1)}};Q.useEffect(()=>{se()},[]);const W=async(L,je,nt=!1)=>{d(Le=>({...Le,[L]:je}));try{const Le=await le.updateSetting(L,je);if(nt||u(s("savedSuccessfully"),"success"),L.endsWith("_api_key")&&(d(ve=>({...ve,[L]:""})),p(ve=>({...ve,[L]:!!je}))),Le!=null&&Le.settings&&Array.isArray(Le.settings)){const ve={},Be={};Le.settings.forEach(Ze=>{Ze.type==="secret"?(Be[Ze.key]=!!Ze.configured,ve[Ze.key]=""):ve[Ze.key]=Ze.value}),d(Ze=>({...Ze,...ve})),p(Ze=>({...Ze,...Be}))}}catch(Le){u(Le.message,"error")}},ne=c.ai_provider||"gemini",X=I.find(L=>{var je,nt;return L.provider!==ne?!1:!!(L.id==="gemini"||L.id==="anthropic"||L.id==="groq"&&((je=c.openai_base_url)!=null&&je.includes("groq.com"))||L.id==="ollama"&&((nt=c.openai_base_url)!=null&&nt.includes("11434"))||L.id==="openai"&&(!c.openai_base_url||c.openai_base_url.includes("api.openai.com")))})||I[0],ie=async L=>{const je={...c,ai_provider:L.provider};L.baseUrlSetting&&(je[L.baseUrlSetting]=L.defaultBaseUrl),L.defaultModel&&(je[L.modelSetting]=L.defaultModel),d(je);try{await le.updateSetting("ai_provider",L.provider),L.baseUrlSetting&&await le.updateSetting(L.baseUrlSetting,L.defaultBaseUrl),L.defaultModel&&await le.updateSetting(L.modelSetting,L.defaultModel),u(o==="ar"?`تم التبديل إلى ${L.name}`:`Switched provider to ${L.name}`,"success")}catch(nt){u(nt.message,"error")}},ge=async(L=!1)=>{T(!0);const je=String(c[X.keySetting]||"").trim(),nt=!!h[X.keySetting];try{const Le={provider:X.provider,refresh:L};je&&(Le.apiKey=je),X.baseUrlSetting&&c[X.baseUrlSetting]&&(Le.baseUrl=c[X.baseUrlSetting]);const ve=await le.fetchAiModels(Le);ve&&(ve.success||ve.fallback)?(v(Be=>{var Ze;return{...Be,[X.id]:{live:!!ve.live,requiresApiKey:!!ve.requiresApiKey,fallback:!!ve.fallback,models:ve.models||[],cached:!!ve.cached,error:ve.success||(Ze=ve.error)==null?void 0:Ze.message}}}),ve.live&&ve.success?u(o==="ar"?`تم التحقق بنجاح وجلب ${ve.models.length} نموذجاً متاحاً لحسابك`:`Discovered ${ve.models.length} live models available for your account`,"success"):ve.requiresApiKey?L&&u(o==="ar"?"يرجى إدخال مفتاح API أولاً لاكتشاف النماذج المتاحة لحسابك":"Enter an API key to discover account models","info"):!ve.success&&ve.error&&u(ve.error.message||"Failed to discover models","error")):ve&&!ve.success&&ve.error&&(v(Be=>{var Ze;return{...Be,[X.id]:{live:!1,requiresApiKey:!(nt||je),fallback:!0,models:ve.models||[],error:(Ze=ve.error)==null?void 0:Ze.message}}}),u(ve.error.message||"Failed to discover models","error"))}catch(Le){u(Le.message||"Failed to fetch models","error")}finally{T(!1)}};Q.useEffect(()=>{g||ge(!1)},[X.id,h[X.keySetting],g]);const C=((ye=E[X.id])==null?void 0:ye.models)||[],F=!!((fe=E[X.id])!=null&&fe.live),M=!!(((Se=E[X.id])==null?void 0:Se.requiresApiKey)??!h[X.keySetting]),re=c[X.modelSetting]||X.defaultModel,Y=C.find(L=>L.id.toLowerCase()===re.toLowerCase())||{displayName:re,provider:X.provider,capabilities:{textInput:!0,textOutput:!0,vision:!1,audioInput:!1,stt:!1,videoInput:!1,pdfInput:!1},capabilitySource:"unknown"},ke=!!Y.capabilities.vision,Ue=!!Y.capabilities.stt;Q.useEffect(()=>{g||(!ke&&c.ai_vision_enabled&&W("ai_vision_enabled",!1,!0),!Ue&&c.ai_stt_enabled&&W("ai_stt_enabled",!1,!0))},[re,ke,Ue,g]);const Ge=async()=>{try{const L=await le.getPersona(),je=L==null?void 0:L.persona;K(typeof je=="string"?je:(je==null?void 0:je.body)||""),B(!0)}catch(L){u(L.message,"error")}},N=async()=>{try{await le.updatePersona(G),u(o==="ar"?"تم تحديث برومبت الشخصية بنجاح!":"Persona updated successfully!","success"),B(!1)}catch(L){u(L.message,"error")}},S=async()=>{try{const L=await le.getMemoryFiles(),je=(L==null?void 0:L.files)||((L==null?void 0:L.scopes)||[]).map(nt=>nt.scope);$(je)}catch(L){u(L.message,"error")}},P=async L=>{try{const je=await le.getMemoryFile(L);z((je==null?void 0:je.content)||"")}catch(je){u(je.message,"error")}},ae=async()=>{if(pe)try{await le.updateMemoryFile(pe,V),u(o==="ar"?"تم حفظ ملف الذاكرة بنجاح!":"Memory file updated!","success"),J(null)}catch(L){u(L.message,"error")}};return g?r.jsxs("div",{className:"flex items-center justify-center p-12 text-muted",children:[r.jsx("div",{className:"w-6 h-6 border-2 border-brand-cyan border-t-transparent rounded-full animate-spin mr-2"}),r.jsx("span",{className:"text-sm font-semibold",children:s("starting")})]}):r.jsxs("div",{className:"flex flex-col gap-5 sm:gap-6",children:[r.jsxs("div",{className:"rounded-2xl border border-line bg-gradient-to-br from-panel-raised via-panel to-panel p-4 sm:p-6 shadow-sm flex flex-col gap-3.5",children:[r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[r.jsx("div",{className:"w-11 h-11 sm:w-12 sm:h-12 rounded-2xl bg-gradient-to-br from-brand-blue to-brand-cyan text-white flex items-center justify-center shrink-0 shadow-md shadow-brand-blue/20",children:r.jsx(Md,{size:22,className:"sm:w-6 sm:h-6"})}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("h2",{className:"text-base sm:text-xl font-extrabold text-text-main truncate",children:s("aiTitle")}),r.jsx("p",{className:"text-xs sm:text-sm text-muted truncate",children:s("aiSubtitle")})]})]}),r.jsxs("div",{className:"shrink-0 flex items-center gap-2 bg-panel/60 border border-line/70 rounded-xl px-2.5 py-1.5 shadow-xs",children:[r.jsx("span",{className:"text-xs font-bold text-muted hidden sm:inline",children:c.ai_agent?o==="ar"?"مفعل":"Enabled":o==="ar"?"معطل":"Disabled"}),r.jsx(Xa,{checked:!!c.ai_agent,onChange:L=>W("ai_agent",L)})]})]}),r.jsx("div",{className:"flex items-center gap-2 pt-1 border-t border-line/40",children:r.jsxs("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-bold border ${c.ai_agent?"bg-ok/15 text-ok border-ok/30":"bg-danger/10 text-danger border-danger/25"}`,children:[r.jsx("span",{className:"pulse-dot"}),r.jsx("span",{children:c.ai_agent?s("aiAgentEnabled"):o==="ar"?"مساعد الذكاء الاصطناعي معطل":"AI Assistant Disabled"})]})})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col gap-5",children:[r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-3 border-b border-line",children:[r.jsxs("div",{className:"flex items-center gap-2.5",children:[r.jsx(wd,{size:18,className:"text-brand-cyan shrink-0"}),r.jsx("h3",{className:"text-base sm:text-lg font-bold text-text-main",children:s("aiProvider")})]}),r.jsxs("div",{className:"flex items-center gap-2 self-start sm:self-auto",children:[r.jsx("span",{className:"text-xs text-muted font-medium",children:o==="ar"?"المزود النشط:":"Active:"}),r.jsxs("span",{className:"text-xs font-bold text-brand-cyan px-2.5 py-1 rounded-lg bg-brand-cyan/10 border border-brand-cyan/25",children:[X.name," • ",r.jsx("span",{className:"font-mono",children:re})]})]})]}),r.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-2.5 sm:gap-3",children:I.map(L=>{const je=X.id===L.id;return r.jsxs("button",{type:"button",onClick:()=>ie(L),className:`p-3.5 rounded-xl border text-start transition-all flex flex-col justify-between gap-2.5 focus-visible:ring-2 focus-visible:ring-brand-blue/50 ${je?"bg-brand-blue/15 border-brand-blue/60 shadow-sm ring-1 ring-brand-blue/40":"bg-panel-raised border-line hover:bg-panel-hover"}`,children:[r.jsxs("div",{className:"flex items-center justify-between w-full",children:[r.jsx("span",{className:"font-bold text-xs sm:text-sm text-text-main",children:L.name}),je?r.jsx("span",{className:"w-5 h-5 rounded-full bg-brand-blue text-white flex items-center justify-center shrink-0",children:r.jsx(qr,{size:12,strokeWidth:3})}):r.jsx("span",{className:"w-2 h-2 rounded-full bg-line"})]}),r.jsx("span",{className:"text-[10px] sm:text-[11px] font-mono text-muted truncate block",children:L.defaultModel})]},L.id)})}),M&&r.jsxs("div",{className:"p-3.5 rounded-xl bg-amber-500/10 border border-amber-500/25 flex items-start gap-3",children:[r.jsx(Or,{size:18,className:"text-amber-500 shrink-0 mt-0.5"}),r.jsxs("div",{className:"text-xs text-text-main",children:[r.jsx("p",{className:"font-bold",children:s("connectKeyFirstPrompt")}),r.jsx("p",{className:"text-muted mt-0.5",children:o==="ar"?"النماذج المعروضة أدناه هي نماذج مقترحة من الدليل المحلي وليست مؤكدة لحسابك حتى يتم ربط المفتاح.":"Models shown below are catalog recommendations and are not verified for your account until a key is configured."})]})]}),((oe=E[X.id])==null?void 0:oe.error)&&r.jsxs("div",{className:"p-3 rounded-xl bg-danger/10 border border-danger/25 flex items-center justify-between gap-3",children:[r.jsxs("div",{className:"flex items-center gap-2 text-xs text-danger font-semibold",children:[r.jsx(Hr,{size:16,className:"shrink-0"}),r.jsx("span",{children:(be=E[X.id])==null?void 0:be.error})]}),r.jsx("button",{type:"button",onClick:()=>ge(!0),className:"text-xs font-bold underline hover:opacity-80 shrink-0",children:s("refreshModels")})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 pt-4 border-t border-line",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("label",{htmlFor:"input-api-key",className:"block text-xs font-bold text-muted",children:s("apiKey")}),h[X.keySetting]&&r.jsxs("span",{className:"text-[10px] text-ok font-semibold flex items-center gap-1",children:[r.jsx(Js,{size:11}),o==="ar"?"محفوظ":"Saved"]})]}),r.jsx("input",{id:"input-api-key",type:"password",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main font-mono text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:c[X.keySetting]||"",onChange:L=>d({...c,[X.keySetting]:L.target.value}),onBlur:L=>W(X.keySetting,L.target.value),placeholder:h[X.keySetting]?"••••••••••••":o==="ar"?"أدخل المفتاح":"Enter API key"})]}),X.baseUrlSetting&&r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{htmlFor:"input-base-url",className:"block text-xs font-bold text-muted",children:s("baseUrl")}),r.jsx("input",{id:"input-base-url",type:"text",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main font-mono text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:c[X.baseUrlSetting]||"",onChange:L=>{X.baseUrlSetting&&d({...c,[X.baseUrlSetting]:L.target.value})},onBlur:L=>{X.baseUrlSetting&&W(X.baseUrlSetting,L.target.value)},placeholder:X.defaultBaseUrl})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("label",{htmlFor:"input-model-name",className:"block text-xs font-bold text-muted",children:s("modelName")}),F?r.jsx("span",{className:"px-1.5 py-0.5 rounded text-[9px] font-bold bg-ok/15 text-ok border border-ok/30",children:s("sourceLive")}):r.jsx("span",{className:"px-1.5 py-0.5 rounded text-[9px] font-bold bg-brand-cyan/15 text-brand-cyan border border-brand-cyan/30",children:s("sourceSeed")})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("button",{type:"button",onClick:()=>Z(!U),className:"text-[11px] text-brand-cyan hover:underline font-semibold",children:U?o==="ar"?"القائمة":"List":o==="ar"?"مخصص":"Custom"}),r.jsxs("button",{type:"button",onClick:()=>ge(!0),disabled:x,className:"inline-flex items-center gap-1 text-[11px] text-brand-blue hover:text-brand-blue/80 font-bold",title:s("refreshModels"),children:[r.jsx(Vr,{size:11,className:x?"animate-spin":""}),r.jsx("span",{children:s(x?"refreshing":"refreshModels")})]})]})]}),U?r.jsx("input",{id:"input-model-name",type:"text",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main font-mono text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:c[X.modelSetting]||"",onChange:L=>d({...c,[X.modelSetting]:L.target.value}),onBlur:L=>W(X.modelSetting,L.target.value),placeholder:X.defaultModel}):r.jsxs("select",{id:"input-model-name",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main font-mono text-xs sm:text-sm font-semibold focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:re,onChange:L=>{W(X.modelSetting,L.target.value)},children:[r.jsx("optgroup",{label:s(F?"modelsAvailableLive":"modelsRecommendedSeed"),children:C.map(L=>r.jsxs("option",{value:L.id,children:[L.displayName&&L.displayName!==L.id?`${L.displayName} (${L.id})`:L.id,L.recommended?" ★":""]},L.id))}),!C.some(L=>L.id.toLowerCase()===re.toLowerCase())&&r.jsxs("option",{value:re,children:[re," (current)"]})]})]})]}),r.jsxs("div",{className:"p-3.5 rounded-xl border border-line bg-panel-raised/60 flex flex-col gap-2.5",children:[r.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[r.jsxs("span",{className:"font-bold text-text-main flex items-center gap-1.5",children:[r.jsx(wd,{size:14,className:"text-brand-cyan shrink-0"}),o==="ar"?"القدرات:":"Capabilities:"," ",r.jsx("span",{className:"font-mono text-brand-cyan",children:Y.displayName||re})]}),r.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-full border ${Y.capabilitySource==="provider"?"bg-ok/15 text-ok border-ok/30":Y.capabilitySource==="seed"?"bg-brand-blue/15 text-brand-blue border-brand-blue/30":"bg-muted/15 text-muted border-line"}`,children:Y.capabilitySource==="provider"?s("sourceLive"):Y.capabilitySource==="seed"?s("sourceSeed"):s("sourceUnknown")})]}),r.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-2 text-xs",children:[r.jsxs("div",{className:`p-2 rounded-lg border flex items-center justify-between ${ke?"bg-ok/10 border-ok/25 text-ok":"bg-panel border-line text-muted"}`,children:[r.jsxs("div",{className:"flex items-center gap-1.5 font-medium",children:[r.jsx(Hl,{size:14}),r.jsx("span",{children:s("capVision")})]}),r.jsx("span",{className:"text-[10px] font-bold",children:s(ke?"supported":"unsupported")})]}),r.jsxs("div",{className:`p-2 rounded-lg border flex items-center justify-between ${Ue?"bg-ok/10 border-ok/25 text-ok":"bg-panel border-line text-muted"}`,children:[r.jsxs("div",{className:"flex items-center gap-1.5 font-medium",children:[r.jsx(Bu,{size:14}),r.jsx("span",{children:s("capStt")})]}),r.jsx("span",{className:"text-[10px] font-bold",children:s(Ue?"supported":"unsupported")})]}),r.jsxs("div",{className:`p-2 rounded-lg border flex items-center justify-between ${Y.capabilities.audioInput?"bg-ok/10 border-ok/25 text-ok":"bg-panel border-line text-muted"}`,children:[r.jsxs("div",{className:"flex items-center gap-1.5 font-medium",children:[r.jsx(t2,{size:14}),r.jsx("span",{children:s("capAudio")})]}),r.jsx("span",{className:"text-[10px] font-bold",children:Y.capabilities.audioInput?s("supported"):s("unsupported")})]}),r.jsxs("div",{className:`p-2 rounded-lg border flex items-center justify-between ${Y.capabilities.textInput&&Y.capabilities.textOutput?"bg-ok/10 border-ok/25 text-ok":"bg-panel border-line text-muted"}`,children:[r.jsxs("div",{className:"flex items-center gap-1.5 font-medium",children:[r.jsx(Mr,{size:14}),r.jsx("span",{children:s("capText")})]}),r.jsx("span",{className:"text-[10px] font-bold",children:Y.capabilities.textInput&&Y.capabilities.textOutput?s("supported"):s("unsupported")})]}),r.jsxs("div",{className:`p-2 rounded-lg border flex items-center justify-between ${Y.capabilities.pdfInput?"bg-ok/10 border-ok/25 text-ok":"bg-panel border-line text-muted"}`,children:[r.jsxs("div",{className:"flex items-center gap-1.5 font-medium",children:[r.jsx(Mr,{size:14}),r.jsx("span",{children:s("capPdf")})]}),r.jsx("span",{className:"text-[10px] font-bold",children:Y.capabilities.pdfInput?s("supported"):s("unsupported")})]}),r.jsxs("div",{className:`p-2 rounded-lg border flex items-center justify-between ${Y.capabilities.videoInput?"bg-ok/10 border-ok/25 text-ok":"bg-panel border-line text-muted"}`,children:[r.jsxs("div",{className:"flex items-center gap-1.5 font-medium",children:[r.jsx(Hl,{size:14}),r.jsx("span",{children:s("capVideo")})]}),r.jsx("span",{className:"text-[10px] font-bold",children:Y.capabilities.videoInput?s("supported"):s("unsupported")})]})]})]})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col gap-4",children:[r.jsx("h3",{className:"text-base font-bold text-text-main",children:s("capabilities")}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"relative rounded-xl border border-line bg-panel-raised p-4 flex flex-col justify-between gap-3",children:[r.jsx("div",{className:"absolute top-3.5 end-3.5",children:r.jsx(Xa,{checked:!!c.ai_vision_enabled&&ke,disabled:!ke,onChange:L=>{ke&&W("ai_vision_enabled",L)}})}),r.jsxs("div",{className:"pe-12",children:[r.jsxs("div",{className:"flex items-center gap-2 text-text-main mb-1",children:[r.jsx(Hl,{size:17,className:ke?"text-brand-cyan shrink-0":"text-muted shrink-0"}),r.jsx("span",{className:"font-bold text-sm",children:s("aiVision")})]}),r.jsx("p",{className:"text-xs text-muted leading-relaxed",children:s("aiVisionDesc")}),!ke&&r.jsxs("p",{className:"text-[11px] text-amber-500 font-semibold mt-2 flex items-center gap-1",children:[r.jsx(Or,{size:13,className:"shrink-0"}),r.jsx("span",{children:s("visionUnsupportedNotice")})]})]})]}),r.jsxs("div",{className:"relative rounded-xl border border-line bg-panel-raised p-4 flex flex-col justify-between gap-3",children:[r.jsx("div",{className:"absolute top-3.5 end-3.5",children:r.jsx(Xa,{checked:!!(c.ai_stt_enabled??!0)&&Ue,disabled:!Ue,onChange:L=>{Ue&&W("ai_stt_enabled",L)}})}),r.jsxs("div",{className:"pe-12",children:[r.jsxs("div",{className:"flex items-center gap-2 text-text-main mb-1",children:[r.jsx(Bu,{size:17,className:Ue?"text-purple-400 shrink-0":"text-muted shrink-0"}),r.jsx("span",{className:"font-bold text-sm",children:s("aiSttEnabled")})]}),r.jsx("p",{className:"text-xs text-muted leading-relaxed",children:s("aiSttEnabledDesc")}),!Ue&&r.jsxs("p",{className:"text-[11px] text-amber-500 font-semibold mt-2 flex items-center gap-1",children:[r.jsx(Or,{size:13,className:"shrink-0"}),r.jsx("span",{children:s("sttUnsupportedNotice")})]})]})]}),r.jsxs("div",{className:"rounded-xl border border-line bg-panel-raised p-4 flex flex-col justify-between gap-3",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 text-text-main mb-1",children:[r.jsx(Bu,{size:17,className:"text-purple-400 shrink-0"}),r.jsx("span",{className:"font-bold text-sm",children:s("aiStt")})]}),r.jsx("p",{className:"text-xs text-muted leading-relaxed",children:s("sttDesc")})]}),r.jsxs("select",{className:"w-full h-10 px-3 rounded-lg border border-line bg-panel text-text-main text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-brand-blue/50 disabled:opacity-50",value:c.ai_stt_provider||"auto",disabled:!Ue,onChange:L=>{Ue&&W("ai_stt_provider",L.target.value)},children:[r.jsx("option",{value:"auto",children:s("sttAuto")}),r.jsx("option",{value:"gemini",children:s("sttGemini")}),r.jsx("option",{value:"openai",children:s("sttOpenAI")})]})]}),r.jsxs("div",{className:"rounded-xl border border-line bg-panel-raised p-4 flex flex-col justify-between gap-3",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 text-text-main mb-1",children:[r.jsx(Gr,{size:17,className:"text-ok shrink-0"}),r.jsx("span",{className:"font-bold text-sm",children:s("botLanguage")})]}),r.jsx("p",{className:"text-xs text-muted leading-relaxed",children:s("botLanguageDesc")})]}),r.jsxs("select",{className:"w-full h-10 px-3 rounded-lg border border-line bg-panel text-text-main text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:c.bot_language||"auto",onChange:L=>W("bot_language",L.target.value),children:[r.jsx("option",{value:"auto",children:s("langAuto")}),r.jsx("option",{value:"ar",children:s("langAr")}),r.jsx("option",{value:"en",children:s("langEn")})]})]})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-5",children:[r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col justify-between gap-4",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2.5 text-text-main mb-2",children:[r.jsx(Mr,{size:20,className:"text-brand-blue shrink-0"}),r.jsx("h3",{className:"text-base font-bold",children:s("personaPrompt")})]}),r.jsx("p",{className:"text-xs sm:text-sm text-muted leading-relaxed",children:s("personaDesc")})]}),r.jsx("button",{type:"button",onClick:Ge,className:"w-full h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-colors focus-visible:ring-2 focus-visible:ring-brand-blue/50 flex items-center justify-center gap-2",children:r.jsx("span",{children:s("editPersona")})})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col justify-between gap-4",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2.5 text-text-main mb-2",children:[r.jsx(Ov,{size:20,className:"text-brand-cyan shrink-0"}),r.jsx("h3",{className:"text-base font-bold",children:s("memoryFiles")})]}),r.jsx("p",{className:"text-xs sm:text-sm text-muted leading-relaxed",children:s("memoryDesc")})]}),r.jsx("button",{type:"button",onClick:()=>{S(),J("global"),P("global")},className:"w-full h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-colors focus-visible:ring-2 focus-visible:ring-brand-blue/50 flex items-center justify-center gap-2",children:r.jsx("span",{children:s("manageMemory")})})]})]}),r.jsx(Zs,{isOpen:R,onClose:()=>B(!1),title:s("personaPrompt"),maxWidth:"750px",footer:r.jsxs("div",{className:"flex items-center justify-end gap-2.5 w-full",children:[r.jsx("button",{type:"button",onClick:()=>B(!1),className:"px-4 h-10 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-colors",children:s("cancel")}),r.jsxs("button",{type:"button",onClick:N,className:"px-5 h-10 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-xs sm:text-sm shadow-md shadow-brand-blue/25 transition-colors flex items-center gap-2",children:[r.jsx(Yr,{size:16}),r.jsx("span",{children:s("save")})]})]}),children:r.jsx("textarea",{className:"w-full rounded-xl border border-line bg-panel-raised p-3.5 text-text-main font-mono text-xs sm:text-sm leading-relaxed focus:outline-none focus:ring-2 focus:ring-brand-blue/50",rows:12,value:G,onChange:L=>K(L.target.value)})}),r.jsx(Zs,{isOpen:!!pe,onClose:()=>J(null),title:`Memory File: ${pe||""}`,maxWidth:"750px",footer:r.jsxs("div",{className:"flex items-center justify-end gap-2.5 w-full",children:[r.jsx("button",{type:"button",onClick:()=>J(null),className:"px-4 h-10 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-colors",children:s("cancel")}),r.jsxs("button",{type:"button",onClick:ae,className:"px-5 h-10 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-xs sm:text-sm shadow-md shadow-brand-blue/25 transition-colors flex items-center gap-2",children:[r.jsx(Yr,{size:16}),r.jsx("span",{children:s("save")})]})]}),children:r.jsx("textarea",{className:"w-full rounded-xl border border-line bg-panel-raised p-3.5 text-text-main font-mono text-xs sm:text-sm leading-relaxed focus:outline-none focus:ring-2 focus:ring-brand-blue/50",rows:12,value:V,onChange:L=>z(L.target.value)})})]})},J5=()=>{const{t:s,language:o}=en(),{toast:u}=Hn(),[c,d]=Q.useState([]),[h,p]=Q.useState("!"),[g,b]=Q.useState(!1),[E,v]=Q.useState("!"),[x,T]=Q.useState(""),[U,Z]=Q.useState(!0),[R,B]=Q.useState(null),[G,K]=Q.useState([]),[ee,$]=Q.useState(""),[pe,J]=Q.useState(!1),V=async()=>{try{const C=await le.getCommands();C!=null&&C.commands&&d(C.commands),C!=null&&C.prefix&&(p(C.prefix),v(C.prefix))}catch(C){u(C.message,"error")}finally{Z(!1)}};Q.useEffect(()=>{V()},[]);const z=async()=>{const C=E.trim();if(!C||C.length>3){u(s("prefixValidation"),"error");return}try{await le.updatePrefix(C),p(C),b(!1),u(`${s("prefixUpdated")} (${C})`,"success")}catch(F){u(F.message,"error")}},I=async(C,F)=>{d(M=>M.map(re=>re.name===C.name?{...re,enabled:F,overridden:!0}:re));try{await le.updateCommand(C.name,{enabled:F}),u(o==="ar"?`تم ${F?"تفعيل":"تعطيل"} الأمر '${C.name}'`:`Command '${C.name}' ${F?"enabled":"disabled"}`,"success")}catch(M){u(M.message,"error"),V()}},se=async(C,F)=>{d(M=>M.map(re=>re.name===C.name?{...re,permission:F,overridden:!0}:re));try{await le.updateCommand(C.name,{permission:F}),u(o==="ar"?`تم تحديث رتبة '${C.name}'`:`Permission for '${C.name}' updated`,"success")}catch(M){u(M.message,"error"),V()}},W=C=>{B(C),K(Array.isArray(C.aliases)?[...C.aliases]:[]),$("")},ne=()=>{const C=ee.trim().replace(/^[!/#.?$]+/,"").toLowerCase();if(C){if(G.includes(C)){u(o==="ar"?"هذا الاسم المستعار مضاف بالفعل":"Alias already added","warning");return}K([...G,C]),$("")}},X=C=>{K(G.filter(F=>F!==C))},ie=async()=>{if(R){J(!0);try{await le.updateCommand(R.name,{aliases:G}),d(C=>C.map(F=>F.name===R.name?{...F,aliases:G}:F)),u(s("savedSuccessfully"),"success"),B(null)}catch(C){u(C.message,"error")}finally{J(!1)}}},ge=c.filter(C=>C.name.toLowerCase().includes(x.toLowerCase())||C.description.toLowerCase().includes(x.toLowerCase())||C.aliases.some(F=>F.toLowerCase().includes(x.toLowerCase())));return r.jsxs("div",{className:"flex flex-col gap-5 sm:gap-6",children:[r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col md:flex-row md:items-center justify-between gap-4",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsx("h2",{className:"text-lg md:text-xl font-bold text-text-main",children:s("commands")}),r.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-xl border border-line bg-panel-raised",children:[r.jsxs("span",{className:"text-xs text-muted font-semibold",children:[s("activePrefix"),":"]}),g?r.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[r.jsx("input",{type:"text",maxLength:3,value:E,onChange:C=>v(C.target.value),className:"w-12 h-7 px-1.5 text-center font-mono font-bold text-xs rounded-lg border border-line bg-panel text-text-main focus:outline-none focus:ring-2 focus:ring-brand-blue/50",onKeyDown:C=>{C.key==="Enter"&&z(),C.key==="Escape"&&b(!1)}}),r.jsx("button",{type:"button",onClick:z,className:"px-2 h-7 rounded-lg bg-brand-blue text-white font-bold text-xs hover:bg-brand-blue/90 transition-colors",children:s("save")}),r.jsx("button",{type:"button",onClick:()=>b(!1),className:"px-2 h-7 rounded-lg border border-line bg-panel-raised text-muted font-bold text-xs hover:bg-panel-hover transition-colors",children:s("cancel")})]}):r.jsx("button",{type:"button",onClick:()=>{v(h),b(!0)},className:"px-2.5 py-0.5 rounded-lg bg-brand-cyan/15 text-brand-cyan border border-brand-cyan/30 font-mono font-bold text-xs hover:bg-brand-cyan/25 transition-colors",title:o==="ar"?"اضغط لتعديل البادئة":"Click to change prefix",children:h})]})]}),r.jsx("p",{className:"text-xs md:text-sm text-muted mt-1",children:o==="ar"?"إدارة رتب الأوامر والأسماء المستعارة وتفعيلها أو تعطيلها مباشرة":"Manage role permissions, edit aliases, or enable/disable bot commands live"})]}),r.jsxs("div",{className:"relative w-full md:w-72 shrink-0",children:[r.jsx(lb,{size:18,className:"absolute start-3.5 top-3 text-muted"}),r.jsx("input",{type:"text",className:"w-full h-11 ps-10 pe-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",placeholder:s("searchPlaceholder"),value:x,onChange:C=>T(C.target.value)})]})]}),r.jsx("div",{className:"rounded-2xl border border-line bg-panel overflow-hidden shadow-sm overflow-x-auto",children:r.jsxs("table",{className:"w-full min-w-[760px] text-start border-collapse text-sm",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"bg-panel-raised border-b border-line text-xs font-bold text-muted uppercase tracking-wider",children:[r.jsx("th",{className:"px-4 py-3.5 text-start",children:s("thCommand")}),r.jsx("th",{className:"px-4 py-3.5 text-start",children:s("thAliases")}),r.jsx("th",{className:"px-4 py-3.5 text-start",children:s("thDescription")}),r.jsx("th",{className:"px-4 py-3.5 text-start",children:s("thScope")}),r.jsx("th",{className:"px-4 py-3.5 text-start",children:s("thRequiredRole")}),r.jsx("th",{className:"px-4 py-3.5 text-center",children:s("thStatus")})]})}),r.jsx("tbody",{className:"divide-y divide-line/40",children:U?r.jsx("tr",{children:r.jsx("td",{colSpan:6,className:"text-center py-12 text-muted",children:r.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[r.jsx("div",{className:"w-6 h-6 border-2 border-brand-cyan border-t-transparent rounded-full animate-spin"}),r.jsx("span",{className:"text-xs",children:s("loading")})]})})}):ge.map(C=>{var F;return r.jsxs("tr",{className:"hover:bg-panel-hover/50 transition-colors",children:[r.jsx("td",{className:"px-4 py-3.5 font-mono font-bold text-brand-cyan",children:r.jsxs("bdi",{children:[h,C.name]})}),r.jsx("td",{className:"px-4 py-3.5",children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[(F=C.aliases)!=null&&F.length?C.aliases.map(M=>r.jsx("span",{className:"inline-flex items-center font-mono text-[11px] px-2 py-0.5 rounded-md bg-panel-raised border border-line text-muted",children:r.jsxs("bdi",{children:[h,M]})},M)):r.jsx("span",{className:"text-xs text-muted/60",children:"—"}),r.jsx("button",{type:"button",onClick:()=>W(C),className:"inline-flex items-center justify-center w-6 h-6 rounded-md bg-panel-raised hover:bg-brand-blue/15 hover:text-brand-cyan text-muted border border-line transition-colors",title:s("editAliases"),children:r.jsx(Zv,{size:12})})]})}),r.jsx("td",{className:"px-4 py-3.5 max-w-xs text-text-main text-xs md:text-sm",children:C.description}),r.jsx("td",{className:"px-4 py-3.5",children:r.jsx("span",{className:"inline-flex px-2.5 py-0.5 rounded-lg bg-brand-blue/10 text-brand-cyan text-xs font-semibold",children:C.chat==="all"?o==="ar"?"الكل":"All":C.chat==="group"?o==="ar"?"المجموعات":"Group":o==="ar"?"خاص":"Private"})}),r.jsx("td",{className:"px-4 py-3.5",children:r.jsxs("select",{className:"h-9 px-2.5 rounded-lg border border-line bg-panel-raised text-text-main text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:C.permission,onChange:M=>se(C,M.target.value),children:[r.jsx("option",{value:"MEMBERS",children:o==="ar"?"الجميع (الأعضاء)":"Members (Everyone)"}),r.jsx("option",{value:"ADMIN_ONLY",children:o==="ar"?"مشرفو المجموعة":"Group Admins"}),r.jsx("option",{value:"OWNER_ONLY",children:o==="ar"?"مالك البوت فقط":"Bot Owner Only"})]})}),r.jsx("td",{className:"px-4 py-3.5 text-center",children:r.jsx(Xa,{checked:C.enabled,onChange:M=>I(C,M)})})]},C.name)})})]})}),r.jsx(Zs,{isOpen:!!R,onClose:()=>B(null),title:`${s("aliasesFor")} ${h}${(R==null?void 0:R.name)||""}`,footer:r.jsxs("div",{className:"flex items-center justify-end gap-2.5 w-full",children:[r.jsx("button",{type:"button",onClick:()=>B(null),className:"px-4 h-10 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-colors",children:s("cancel")}),r.jsx("button",{type:"button",onClick:ie,disabled:pe,className:"px-5 h-10 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-xs sm:text-sm shadow-md shadow-brand-blue/25 transition-colors disabled:opacity-50",children:s(pe?"saving":"save")})]}),children:r.jsxs("div",{className:"flex flex-col gap-4 py-1",children:[r.jsx("p",{className:"text-xs sm:text-sm text-muted",children:o==="ar"?"الأسماء المستعارة تتيح استدعاء هذا الأمر بأسماء بديلة (مثل: p بدلاً من ping).":"Aliases allow invoking this command using alternative names."}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("span",{className:"text-xs font-bold text-muted block",children:s("thAliases")}),r.jsx("div",{className:"flex items-center gap-2 flex-wrap min-h-[42px] p-2 rounded-xl border border-line bg-panel-raised",children:G.length>0?G.map(C=>r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-panel border border-line text-xs font-mono font-bold text-text-main",children:[r.jsxs("span",{children:[h,C]}),r.jsx("button",{type:"button",onClick:()=>X(C),className:"text-muted hover:text-danger p-0.5 rounded transition-colors",children:r.jsx(Is,{size:13})})]},C)):r.jsx("span",{className:"text-xs text-muted/60 px-1",children:s("noAliases")})})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{htmlFor:"new-alias-input",className:"text-xs font-bold text-muted block",children:s("addAlias")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"relative flex-1",children:[r.jsx(e2,{size:16,className:"absolute start-3 top-3 text-muted"}),r.jsx("input",{id:"new-alias-input",type:"text",value:ee,onChange:C=>$(C.target.value),onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),ne())},placeholder:s("newAliasPlaceholder"),className:"w-full h-11 ps-9 pe-3 rounded-xl border border-line bg-panel text-text-main font-mono text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50"})]}),r.jsxs("button",{type:"button",onClick:ne,className:"inline-flex items-center justify-center gap-1.5 px-4 h-11 rounded-xl bg-panel-raised hover:bg-panel-hover border border-line text-text-main font-bold text-xs sm:text-sm transition-colors shrink-0",children:[r.jsx(Fx,{size:16}),r.jsx("span",{children:s("add")})]})]})]})]})})]})};var ql={},Zu,Ug;function I5(){return Ug||(Ug=1,Zu=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Zu}var Ju={},xa={},Lg;function Za(){if(Lg)return xa;Lg=1;let s;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return xa.getSymbolSize=function(c){if(!c)throw new Error('"version" cannot be null or undefined');if(c<1||c>40)throw new Error('"version" should be in range from 1 to 40');return c*4+17},xa.getSymbolTotalCodewords=function(c){return o[c]},xa.getBCHDigit=function(u){let c=0;for(;u!==0;)c++,u>>>=1;return c},xa.setToSJISFunction=function(c){if(typeof c!="function")throw new Error('"toSJISFunc" is not a valid function.');s=c},xa.isKanjiModeEnabled=function(){return typeof s<"u"},xa.toSJIS=function(c){return s(c)},xa}var Iu={},qg;function Gd(){return qg||(qg=1,(function(s){s.L={bit:1},s.M={bit:0},s.Q={bit:3},s.H={bit:2};function o(u){if(typeof u!="string")throw new Error("Param is not a string");switch(u.toLowerCase()){case"l":case"low":return s.L;case"m":case"medium":return s.M;case"q":case"quartile":return s.Q;case"h":case"high":return s.H;default:throw new Error("Unknown EC Level: "+u)}}s.isValid=function(c){return c&&typeof c.bit<"u"&&c.bit>=0&&c.bit<4},s.from=function(c,d){if(s.isValid(c))return c;try{return o(c)}catch{return d}}})(Iu)),Iu}var Pu,Hg;function P5(){if(Hg)return Pu;Hg=1;function s(){this.buffer=[],this.length=0}return s.prototype={get:function(o){const u=Math.floor(o/8);return(this.buffer[u]>>>7-o%8&1)===1},put:function(o,u){for(let c=0;c<u;c++)this.putBit((o>>>u-c-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const u=Math.floor(this.length/8);this.buffer.length<=u&&this.buffer.push(0),o&&(this.buffer[u]|=128>>>this.length%8),this.length++}},Pu=s,Pu}var Fu,Gg;function F5(){if(Gg)return Fu;Gg=1;function s(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return s.prototype.set=function(o,u,c,d){const h=o*this.size+u;this.data[h]=c,d&&(this.reservedBit[h]=!0)},s.prototype.get=function(o,u){return this.data[o*this.size+u]},s.prototype.xor=function(o,u,c){this.data[o*this.size+u]^=c},s.prototype.isReserved=function(o,u){return this.reservedBit[o*this.size+u]},Fu=s,Fu}var $u={},Vg;function $5(){return Vg||(Vg=1,(function(s){const o=Za().getSymbolSize;s.getRowColCoords=function(c){if(c===1)return[];const d=Math.floor(c/7)+2,h=o(c),p=h===145?26:Math.ceil((h-13)/(2*d-2))*2,g=[h-7];for(let b=1;b<d-1;b++)g[b]=g[b-1]-p;return g.push(6),g.reverse()},s.getPositions=function(c){const d=[],h=s.getRowColCoords(c),p=h.length;for(let g=0;g<p;g++)for(let b=0;b<p;b++)g===0&&b===0||g===0&&b===p-1||g===p-1&&b===0||d.push([h[g],h[b]]);return d}})($u)),$u}var Wu={},Yg;function W5(){if(Yg)return Wu;Yg=1;const s=Za().getSymbolSize,o=7;return Wu.getPositions=function(c){const d=s(c);return[[0,0],[d-o,0],[0,d-o]]},Wu}var ed={},Qg;function eN(){return Qg||(Qg=1,(function(s){s.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};s.isValid=function(d){return d!=null&&d!==""&&!isNaN(d)&&d>=0&&d<=7},s.from=function(d){return s.isValid(d)?parseInt(d,10):void 0},s.getPenaltyN1=function(d){const h=d.size;let p=0,g=0,b=0,E=null,v=null;for(let x=0;x<h;x++){g=b=0,E=v=null;for(let T=0;T<h;T++){let U=d.get(x,T);U===E?g++:(g>=5&&(p+=o.N1+(g-5)),E=U,g=1),U=d.get(T,x),U===v?b++:(b>=5&&(p+=o.N1+(b-5)),v=U,b=1)}g>=5&&(p+=o.N1+(g-5)),b>=5&&(p+=o.N1+(b-5))}return p},s.getPenaltyN2=function(d){const h=d.size;let p=0;for(let g=0;g<h-1;g++)for(let b=0;b<h-1;b++){const E=d.get(g,b)+d.get(g,b+1)+d.get(g+1,b)+d.get(g+1,b+1);(E===4||E===0)&&p++}return p*o.N2},s.getPenaltyN3=function(d){const h=d.size;let p=0,g=0,b=0;for(let E=0;E<h;E++){g=b=0;for(let v=0;v<h;v++)g=g<<1&2047|d.get(E,v),v>=10&&(g===1488||g===93)&&p++,b=b<<1&2047|d.get(v,E),v>=10&&(b===1488||b===93)&&p++}return p*o.N3},s.getPenaltyN4=function(d){let h=0;const p=d.data.length;for(let b=0;b<p;b++)h+=d.data[b];return Math.abs(Math.ceil(h*100/p/5)-10)*o.N4};function u(c,d,h){switch(c){case s.Patterns.PATTERN000:return(d+h)%2===0;case s.Patterns.PATTERN001:return d%2===0;case s.Patterns.PATTERN010:return h%3===0;case s.Patterns.PATTERN011:return(d+h)%3===0;case s.Patterns.PATTERN100:return(Math.floor(d/2)+Math.floor(h/3))%2===0;case s.Patterns.PATTERN101:return d*h%2+d*h%3===0;case s.Patterns.PATTERN110:return(d*h%2+d*h%3)%2===0;case s.Patterns.PATTERN111:return(d*h%3+(d+h)%2)%2===0;default:throw new Error("bad maskPattern:"+c)}}s.applyMask=function(d,h){const p=h.size;for(let g=0;g<p;g++)for(let b=0;b<p;b++)h.isReserved(b,g)||h.xor(b,g,u(d,b,g))},s.getBestMask=function(d,h){const p=Object.keys(s.Patterns).length;let g=0,b=1/0;for(let E=0;E<p;E++){h(E),s.applyMask(E,d);const v=s.getPenaltyN1(d)+s.getPenaltyN2(d)+s.getPenaltyN3(d)+s.getPenaltyN4(d);s.applyMask(E,d),v<b&&(b=v,g=E)}return g}})(ed)),ed}var kr={},Xg;function a0(){if(Xg)return kr;Xg=1;const s=Gd(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return kr.getBlocksCount=function(d,h){switch(h){case s.L:return o[(d-1)*4+0];case s.M:return o[(d-1)*4+1];case s.Q:return o[(d-1)*4+2];case s.H:return o[(d-1)*4+3];default:return}},kr.getTotalCodewordsCount=function(d,h){switch(h){case s.L:return u[(d-1)*4+0];case s.M:return u[(d-1)*4+1];case s.Q:return u[(d-1)*4+2];case s.H:return u[(d-1)*4+3];default:return}},kr}var td={},Ys={},Kg;function tN(){if(Kg)return Ys;Kg=1;const s=new Uint8Array(512),o=new Uint8Array(256);return(function(){let c=1;for(let d=0;d<255;d++)s[d]=c,o[c]=d,c<<=1,c&256&&(c^=285);for(let d=255;d<512;d++)s[d]=s[d-255]})(),Ys.log=function(c){if(c<1)throw new Error("log("+c+")");return o[c]},Ys.exp=function(c){return s[c]},Ys.mul=function(c,d){return c===0||d===0?0:s[o[c]+o[d]]},Ys}var Zg;function nN(){return Zg||(Zg=1,(function(s){const o=tN();s.mul=function(c,d){const h=new Uint8Array(c.length+d.length-1);for(let p=0;p<c.length;p++)for(let g=0;g<d.length;g++)h[p+g]^=o.mul(c[p],d[g]);return h},s.mod=function(c,d){let h=new Uint8Array(c);for(;h.length-d.length>=0;){const p=h[0];for(let b=0;b<d.length;b++)h[b]^=o.mul(d[b],p);let g=0;for(;g<h.length&&h[g]===0;)g++;h=h.slice(g)}return h},s.generateECPolynomial=function(c){let d=new Uint8Array([1]);for(let h=0;h<c;h++)d=s.mul(d,new Uint8Array([1,o.exp(h)]));return d}})(td)),td}var nd,Jg;function aN(){if(Jg)return nd;Jg=1;const s=nN();function o(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(c){this.degree=c,this.genPoly=s.generateECPolynomial(this.degree)},o.prototype.encode=function(c){if(!this.genPoly)throw new Error("Encoder not initialized");const d=new Uint8Array(c.length+this.degree);d.set(c);const h=s.mod(d,this.genPoly),p=this.degree-h.length;if(p>0){const g=new Uint8Array(this.degree);return g.set(h,p),g}return h},nd=o,nd}var ad={},ld={},sd={},Ig;function l0(){return Ig||(Ig=1,sd.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),sd}var Nn={},Pg;function s0(){if(Pg)return Nn;Pg=1;const s="[0-9]+",o="[A-Z $%*+\\-./:]+";let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,"\\u");const c="(?:(?![A-Z0-9 $%*+\\-./:]|"+u+`)(?:.|[\r
|
|
420
|
+
]))+`;Nn.KANJI=new RegExp(u,"g"),Nn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Nn.BYTE=new RegExp(c,"g"),Nn.NUMERIC=new RegExp(s,"g"),Nn.ALPHANUMERIC=new RegExp(o,"g");const d=new RegExp("^"+u+"$"),h=new RegExp("^"+s+"$"),p=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Nn.testKanji=function(b){return d.test(b)},Nn.testNumeric=function(b){return h.test(b)},Nn.testAlphanumeric=function(b){return p.test(b)},Nn}var Fg;function Ja(){return Fg||(Fg=1,(function(s){const o=l0(),u=s0();s.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},s.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},s.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},s.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},s.MIXED={bit:-1},s.getCharCountIndicator=function(h,p){if(!h.ccBits)throw new Error("Invalid mode: "+h);if(!o.isValid(p))throw new Error("Invalid version: "+p);return p>=1&&p<10?h.ccBits[0]:p<27?h.ccBits[1]:h.ccBits[2]},s.getBestModeForData=function(h){return u.testNumeric(h)?s.NUMERIC:u.testAlphanumeric(h)?s.ALPHANUMERIC:u.testKanji(h)?s.KANJI:s.BYTE},s.toString=function(h){if(h&&h.id)return h.id;throw new Error("Invalid mode")},s.isValid=function(h){return h&&h.bit&&h.ccBits};function c(d){if(typeof d!="string")throw new Error("Param is not a string");switch(d.toLowerCase()){case"numeric":return s.NUMERIC;case"alphanumeric":return s.ALPHANUMERIC;case"kanji":return s.KANJI;case"byte":return s.BYTE;default:throw new Error("Unknown mode: "+d)}}s.from=function(h,p){if(s.isValid(h))return h;try{return c(h)}catch{return p}}})(ld)),ld}var $g;function lN(){return $g||($g=1,(function(s){const o=Za(),u=a0(),c=Gd(),d=Ja(),h=l0(),p=7973,g=o.getBCHDigit(p);function b(T,U,Z){for(let R=1;R<=40;R++)if(U<=s.getCapacity(R,Z,T))return R}function E(T,U){return d.getCharCountIndicator(T,U)+4}function v(T,U){let Z=0;return T.forEach(function(R){const B=E(R.mode,U);Z+=B+R.getBitsLength()}),Z}function x(T,U){for(let Z=1;Z<=40;Z++)if(v(T,Z)<=s.getCapacity(Z,U,d.MIXED))return Z}s.from=function(U,Z){return h.isValid(U)?parseInt(U,10):Z},s.getCapacity=function(U,Z,R){if(!h.isValid(U))throw new Error("Invalid QR Code version");typeof R>"u"&&(R=d.BYTE);const B=o.getSymbolTotalCodewords(U),G=u.getTotalCodewordsCount(U,Z),K=(B-G)*8;if(R===d.MIXED)return K;const ee=K-E(R,U);switch(R){case d.NUMERIC:return Math.floor(ee/10*3);case d.ALPHANUMERIC:return Math.floor(ee/11*2);case d.KANJI:return Math.floor(ee/13);case d.BYTE:default:return Math.floor(ee/8)}},s.getBestVersionForData=function(U,Z){let R;const B=c.from(Z,c.M);if(Array.isArray(U)){if(U.length>1)return x(U,B);if(U.length===0)return 1;R=U[0]}else R=U;return b(R.mode,R.getLength(),B)},s.getEncodedBits=function(U){if(!h.isValid(U)||U<7)throw new Error("Invalid QR Code version");let Z=U<<12;for(;o.getBCHDigit(Z)-g>=0;)Z^=p<<o.getBCHDigit(Z)-g;return U<<12|Z}})(ad)),ad}var id={},Wg;function sN(){if(Wg)return id;Wg=1;const s=Za(),o=1335,u=21522,c=s.getBCHDigit(o);return id.getEncodedBits=function(h,p){const g=h.bit<<3|p;let b=g<<10;for(;s.getBCHDigit(b)-c>=0;)b^=o<<s.getBCHDigit(b)-c;return(g<<10|b)^u},id}var rd={},od,ex;function iN(){if(ex)return od;ex=1;const s=Ja();function o(u){this.mode=s.NUMERIC,this.data=u.toString()}return o.getBitsLength=function(c){return 10*Math.floor(c/3)+(c%3?c%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(c){let d,h,p;for(d=0;d+3<=this.data.length;d+=3)h=this.data.substr(d,3),p=parseInt(h,10),c.put(p,10);const g=this.data.length-d;g>0&&(h=this.data.substr(d),p=parseInt(h,10),c.put(p,g*3+1))},od=o,od}var cd,tx;function rN(){if(tx)return cd;tx=1;const s=Ja(),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(c){this.mode=s.ALPHANUMERIC,this.data=c}return u.getBitsLength=function(d){return 11*Math.floor(d/2)+6*(d%2)},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(d){let h;for(h=0;h+2<=this.data.length;h+=2){let p=o.indexOf(this.data[h])*45;p+=o.indexOf(this.data[h+1]),d.put(p,11)}this.data.length%2&&d.put(o.indexOf(this.data[h]),6)},cd=u,cd}var ud,nx;function oN(){if(nx)return ud;nx=1;const s=Ja();function o(u){this.mode=s.BYTE,typeof u=="string"?this.data=new TextEncoder().encode(u):this.data=new Uint8Array(u)}return o.getBitsLength=function(c){return c*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(u){for(let c=0,d=this.data.length;c<d;c++)u.put(this.data[c],8)},ud=o,ud}var dd,ax;function cN(){if(ax)return dd;ax=1;const s=Ja(),o=Za();function u(c){this.mode=s.KANJI,this.data=c}return u.getBitsLength=function(d){return d*13},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(c){let d;for(d=0;d<this.data.length;d++){let h=o.toSJIS(this.data[d]);if(h>=33088&&h<=40956)h-=33088;else if(h>=57408&&h<=60351)h-=49472;else throw new Error("Invalid SJIS character: "+this.data[d]+`
|
|
421
|
+
Make sure your charset is UTF-8`);h=(h>>>8&255)*192+(h&255),c.put(h,13)}},dd=u,dd}var fd={exports:{}},lx;function uN(){return lx||(lx=1,(function(s){var o={single_source_shortest_paths:function(u,c,d){var h={},p={};p[c]=0;var g=o.PriorityQueue.make();g.push(c,0);for(var b,E,v,x,T,U,Z,R,B;!g.empty();){b=g.pop(),E=b.value,x=b.cost,T=u[E]||{};for(v in T)T.hasOwnProperty(v)&&(U=T[v],Z=x+U,R=p[v],B=typeof p[v]>"u",(B||R>Z)&&(p[v]=Z,g.push(v,Z),h[v]=E))}if(typeof d<"u"&&typeof p[d]>"u"){var G=["Could not find a path from ",c," to ",d,"."].join("");throw new Error(G)}return h},extract_shortest_path_from_predecessor_list:function(u,c){for(var d=[],h=c;h;)d.push(h),u[h],h=u[h];return d.reverse(),d},find_path:function(u,c,d){var h=o.single_source_shortest_paths(u,c,d);return o.extract_shortest_path_from_predecessor_list(h,d)},PriorityQueue:{make:function(u){var c=o.PriorityQueue,d={},h;u=u||{};for(h in c)c.hasOwnProperty(h)&&(d[h]=c[h]);return d.queue=[],d.sorter=u.sorter||c.default_sorter,d},default_sorter:function(u,c){return u.cost-c.cost},push:function(u,c){var d={value:u,cost:c};this.queue.push(d),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};s.exports=o})(fd)),fd.exports}var sx;function dN(){return sx||(sx=1,(function(s){const o=Ja(),u=iN(),c=rN(),d=oN(),h=cN(),p=s0(),g=Za(),b=uN();function E(G){return unescape(encodeURIComponent(G)).length}function v(G,K,ee){const $=[];let pe;for(;(pe=G.exec(ee))!==null;)$.push({data:pe[0],index:pe.index,mode:K,length:pe[0].length});return $}function x(G){const K=v(p.NUMERIC,o.NUMERIC,G),ee=v(p.ALPHANUMERIC,o.ALPHANUMERIC,G);let $,pe;return g.isKanjiModeEnabled()?($=v(p.BYTE,o.BYTE,G),pe=v(p.KANJI,o.KANJI,G)):($=v(p.BYTE_KANJI,o.BYTE,G),pe=[]),K.concat(ee,$,pe).sort(function(V,z){return V.index-z.index}).map(function(V){return{data:V.data,mode:V.mode,length:V.length}})}function T(G,K){switch(K){case o.NUMERIC:return u.getBitsLength(G);case o.ALPHANUMERIC:return c.getBitsLength(G);case o.KANJI:return h.getBitsLength(G);case o.BYTE:return d.getBitsLength(G)}}function U(G){return G.reduce(function(K,ee){const $=K.length-1>=0?K[K.length-1]:null;return $&&$.mode===ee.mode?(K[K.length-1].data+=ee.data,K):(K.push(ee),K)},[])}function Z(G){const K=[];for(let ee=0;ee<G.length;ee++){const $=G[ee];switch($.mode){case o.NUMERIC:K.push([$,{data:$.data,mode:o.ALPHANUMERIC,length:$.length},{data:$.data,mode:o.BYTE,length:$.length}]);break;case o.ALPHANUMERIC:K.push([$,{data:$.data,mode:o.BYTE,length:$.length}]);break;case o.KANJI:K.push([$,{data:$.data,mode:o.BYTE,length:E($.data)}]);break;case o.BYTE:K.push([{data:$.data,mode:o.BYTE,length:E($.data)}])}}return K}function R(G,K){const ee={},$={start:{}};let pe=["start"];for(let J=0;J<G.length;J++){const V=G[J],z=[];for(let I=0;I<V.length;I++){const se=V[I],W=""+J+I;z.push(W),ee[W]={node:se,lastCount:0},$[W]={};for(let ne=0;ne<pe.length;ne++){const X=pe[ne];ee[X]&&ee[X].node.mode===se.mode?($[X][W]=T(ee[X].lastCount+se.length,se.mode)-T(ee[X].lastCount,se.mode),ee[X].lastCount+=se.length):(ee[X]&&(ee[X].lastCount=se.length),$[X][W]=T(se.length,se.mode)+4+o.getCharCountIndicator(se.mode,K))}}pe=z}for(let J=0;J<pe.length;J++)$[pe[J]].end=0;return{map:$,table:ee}}function B(G,K){let ee;const $=o.getBestModeForData(G);if(ee=o.from(K,$),ee!==o.BYTE&&ee.bit<$.bit)throw new Error('"'+G+'" cannot be encoded with mode '+o.toString(ee)+`.
|
|
422
|
+
Suggested mode is: `+o.toString($));switch(ee===o.KANJI&&!g.isKanjiModeEnabled()&&(ee=o.BYTE),ee){case o.NUMERIC:return new u(G);case o.ALPHANUMERIC:return new c(G);case o.KANJI:return new h(G);case o.BYTE:return new d(G)}}s.fromArray=function(K){return K.reduce(function(ee,$){return typeof $=="string"?ee.push(B($,null)):$.data&&ee.push(B($.data,$.mode)),ee},[])},s.fromString=function(K,ee){const $=x(K,g.isKanjiModeEnabled()),pe=Z($),J=R(pe,ee),V=b.find_path(J.map,"start","end"),z=[];for(let I=1;I<V.length-1;I++)z.push(J.table[V[I]].node);return s.fromArray(U(z))},s.rawSplit=function(K){return s.fromArray(x(K,g.isKanjiModeEnabled()))}})(rd)),rd}var ix;function fN(){if(ix)return Ju;ix=1;const s=Za(),o=Gd(),u=P5(),c=F5(),d=$5(),h=W5(),p=eN(),g=a0(),b=aN(),E=lN(),v=sN(),x=Ja(),T=dN();function U(J,V){const z=J.size,I=h.getPositions(V);for(let se=0;se<I.length;se++){const W=I[se][0],ne=I[se][1];for(let X=-1;X<=7;X++)if(!(W+X<=-1||z<=W+X))for(let ie=-1;ie<=7;ie++)ne+ie<=-1||z<=ne+ie||(X>=0&&X<=6&&(ie===0||ie===6)||ie>=0&&ie<=6&&(X===0||X===6)||X>=2&&X<=4&&ie>=2&&ie<=4?J.set(W+X,ne+ie,!0,!0):J.set(W+X,ne+ie,!1,!0))}}function Z(J){const V=J.size;for(let z=8;z<V-8;z++){const I=z%2===0;J.set(z,6,I,!0),J.set(6,z,I,!0)}}function R(J,V){const z=d.getPositions(V);for(let I=0;I<z.length;I++){const se=z[I][0],W=z[I][1];for(let ne=-2;ne<=2;ne++)for(let X=-2;X<=2;X++)ne===-2||ne===2||X===-2||X===2||ne===0&&X===0?J.set(se+ne,W+X,!0,!0):J.set(se+ne,W+X,!1,!0)}}function B(J,V){const z=J.size,I=E.getEncodedBits(V);let se,W,ne;for(let X=0;X<18;X++)se=Math.floor(X/3),W=X%3+z-8-3,ne=(I>>X&1)===1,J.set(se,W,ne,!0),J.set(W,se,ne,!0)}function G(J,V,z){const I=J.size,se=v.getEncodedBits(V,z);let W,ne;for(W=0;W<15;W++)ne=(se>>W&1)===1,W<6?J.set(W,8,ne,!0):W<8?J.set(W+1,8,ne,!0):J.set(I-15+W,8,ne,!0),W<8?J.set(8,I-W-1,ne,!0):W<9?J.set(8,15-W-1+1,ne,!0):J.set(8,15-W-1,ne,!0);J.set(I-8,8,1,!0)}function K(J,V){const z=J.size;let I=-1,se=z-1,W=7,ne=0;for(let X=z-1;X>0;X-=2)for(X===6&&X--;;){for(let ie=0;ie<2;ie++)if(!J.isReserved(se,X-ie)){let ge=!1;ne<V.length&&(ge=(V[ne]>>>W&1)===1),J.set(se,X-ie,ge),W--,W===-1&&(ne++,W=7)}if(se+=I,se<0||z<=se){se-=I,I=-I;break}}}function ee(J,V,z){const I=new u;z.forEach(function(ie){I.put(ie.mode.bit,4),I.put(ie.getLength(),x.getCharCountIndicator(ie.mode,J)),ie.write(I)});const se=s.getSymbolTotalCodewords(J),W=g.getTotalCodewordsCount(J,V),ne=(se-W)*8;for(I.getLengthInBits()+4<=ne&&I.put(0,4);I.getLengthInBits()%8!==0;)I.putBit(0);const X=(ne-I.getLengthInBits())/8;for(let ie=0;ie<X;ie++)I.put(ie%2?17:236,8);return $(I,J,V)}function $(J,V,z){const I=s.getSymbolTotalCodewords(V),se=g.getTotalCodewordsCount(V,z),W=I-se,ne=g.getBlocksCount(V,z),X=I%ne,ie=ne-X,ge=Math.floor(I/ne),C=Math.floor(W/ne),F=C+1,M=ge-C,re=new b(M);let Y=0;const ke=new Array(ne),Ue=new Array(ne);let Ge=0;const N=new Uint8Array(J.buffer);for(let fe=0;fe<ne;fe++){const Se=fe<ie?C:F;ke[fe]=N.slice(Y,Y+Se),Ue[fe]=re.encode(ke[fe]),Y+=Se,Ge=Math.max(Ge,Se)}const S=new Uint8Array(I);let P=0,ae,ye;for(ae=0;ae<Ge;ae++)for(ye=0;ye<ne;ye++)ae<ke[ye].length&&(S[P++]=ke[ye][ae]);for(ae=0;ae<M;ae++)for(ye=0;ye<ne;ye++)S[P++]=Ue[ye][ae];return S}function pe(J,V,z,I){let se;if(Array.isArray(J))se=T.fromArray(J);else if(typeof J=="string"){let ge=V;if(!ge){const C=T.rawSplit(J);ge=E.getBestVersionForData(C,z)}se=T.fromString(J,ge||40)}else throw new Error("Invalid data");const W=E.getBestVersionForData(se,z);if(!W)throw new Error("The amount of data is too big to be stored in a QR Code");if(!V)V=W;else if(V<W)throw new Error(`
|
|
423
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
424
|
+
Minimum version required to store current data is: `+W+`.
|
|
425
|
+
`);const ne=ee(V,z,se),X=s.getSymbolSize(V),ie=new c(X);return U(ie,V),Z(ie),R(ie,V),G(ie,z,0),V>=7&&B(ie,V),K(ie,ne),isNaN(I)&&(I=p.getBestMask(ie,G.bind(null,ie,z))),p.applyMask(I,ie),G(ie,z,I),{modules:ie,version:V,errorCorrectionLevel:z,maskPattern:I,segments:se}}return Ju.create=function(V,z){if(typeof V>"u"||V==="")throw new Error("No input text");let I=o.M,se,W;return typeof z<"u"&&(I=o.from(z.errorCorrectionLevel,o.M),se=E.from(z.version),W=p.from(z.maskPattern),z.toSJISFunc&&s.setToSJISFunction(z.toSJISFunc)),pe(V,se,I,W)},Ju}var hd={},md={},rx;function i0(){return rx||(rx=1,(function(s){function o(u){if(typeof u=="number"&&(u=u.toString()),typeof u!="string")throw new Error("Color should be defined as hex string");let c=u.slice().replace("#","").split("");if(c.length<3||c.length===5||c.length>8)throw new Error("Invalid hex color: "+u);(c.length===3||c.length===4)&&(c=Array.prototype.concat.apply([],c.map(function(h){return[h,h]}))),c.length===6&&c.push("F","F");const d=parseInt(c.join(""),16);return{r:d>>24&255,g:d>>16&255,b:d>>8&255,a:d&255,hex:"#"+c.slice(0,6).join("")}}s.getOptions=function(c){c||(c={}),c.color||(c.color={});const d=typeof c.margin>"u"||c.margin===null||c.margin<0?4:c.margin,h=c.width&&c.width>=21?c.width:void 0,p=c.scale||4;return{width:h,scale:h?4:p,margin:d,color:{dark:o(c.color.dark||"#000000ff"),light:o(c.color.light||"#ffffffff")},type:c.type,rendererOpts:c.rendererOpts||{}}},s.getScale=function(c,d){return d.width&&d.width>=c+d.margin*2?d.width/(c+d.margin*2):d.scale},s.getImageWidth=function(c,d){const h=s.getScale(c,d);return Math.floor((c+d.margin*2)*h)},s.qrToImageData=function(c,d,h){const p=d.modules.size,g=d.modules.data,b=s.getScale(p,h),E=Math.floor((p+h.margin*2)*b),v=h.margin*b,x=[h.color.light,h.color.dark];for(let T=0;T<E;T++)for(let U=0;U<E;U++){let Z=(T*E+U)*4,R=h.color.light;if(T>=v&&U>=v&&T<E-v&&U<E-v){const B=Math.floor((T-v)/b),G=Math.floor((U-v)/b);R=x[g[B*p+G]?1:0]}c[Z++]=R.r,c[Z++]=R.g,c[Z++]=R.b,c[Z]=R.a}}})(md)),md}var ox;function hN(){return ox||(ox=1,(function(s){const o=i0();function u(d,h,p){d.clearRect(0,0,h.width,h.height),h.style||(h.style={}),h.height=p,h.width=p,h.style.height=p+"px",h.style.width=p+"px"}function c(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}s.render=function(h,p,g){let b=g,E=p;typeof b>"u"&&(!p||!p.getContext)&&(b=p,p=void 0),p||(E=c()),b=o.getOptions(b);const v=o.getImageWidth(h.modules.size,b),x=E.getContext("2d"),T=x.createImageData(v,v);return o.qrToImageData(T.data,h,b),u(x,E,v),x.putImageData(T,0,0),E},s.renderToDataURL=function(h,p,g){let b=g;typeof b>"u"&&(!p||!p.getContext)&&(b=p,p=void 0),b||(b={});const E=s.render(h,p,b),v=b.type||"image/png",x=b.rendererOpts||{};return E.toDataURL(v,x.quality)}})(hd)),hd}var pd={},cx;function mN(){if(cx)return pd;cx=1;const s=i0();function o(d,h){const p=d.a/255,g=h+'="'+d.hex+'"';return p<1?g+" "+h+'-opacity="'+p.toFixed(2).slice(1)+'"':g}function u(d,h,p){let g=d+h;return typeof p<"u"&&(g+=" "+p),g}function c(d,h,p){let g="",b=0,E=!1,v=0;for(let x=0;x<d.length;x++){const T=Math.floor(x%h),U=Math.floor(x/h);!T&&!E&&(E=!0),d[x]?(v++,x>0&&T>0&&d[x-1]||(g+=E?u("M",T+p,.5+U+p):u("m",b,0),b=0,E=!1),T+1<h&&d[x+1]||(g+=u("h",v),v=0)):b++}return g}return pd.render=function(h,p,g){const b=s.getOptions(p),E=h.modules.size,v=h.modules.data,x=E+b.margin*2,T=b.color.light.a?"<path "+o(b.color.light,"fill")+' d="M0 0h'+x+"v"+x+'H0z"/>':"",U="<path "+o(b.color.dark,"stroke")+' d="'+c(v,E,b.margin)+'"/>',Z='viewBox="0 0 '+x+" "+x+'"',B='<svg xmlns="http://www.w3.org/2000/svg" '+(b.width?'width="'+b.width+'" height="'+b.width+'" ':"")+Z+' shape-rendering="crispEdges">'+T+U+`</svg>
|
|
426
|
+
`;return typeof g=="function"&&g(null,B),B},pd}var ux;function pN(){if(ux)return ql;ux=1;const s=I5(),o=fN(),u=hN(),c=mN();function d(h,p,g,b,E){const v=[].slice.call(arguments,1),x=v.length,T=typeof v[x-1]=="function";if(!T&&!s())throw new Error("Callback required as last argument");if(T){if(x<2)throw new Error("Too few arguments provided");x===2?(E=g,g=p,p=b=void 0):x===3&&(p.getContext&&typeof E>"u"?(E=b,b=void 0):(E=b,b=g,g=p,p=void 0))}else{if(x<1)throw new Error("Too few arguments provided");return x===1?(g=p,p=b=void 0):x===2&&!p.getContext&&(b=g,g=p,p=void 0),new Promise(function(U,Z){try{const R=o.create(g,b);U(h(R,p,b))}catch(R){Z(R)}})}try{const U=o.create(g,b);E(null,h(U,p,b))}catch(U){E(U)}}return ql.create=o.create,ql.toCanvas=d.bind(null,u.render),ql.toDataURL=d.bind(null,u.renderToDataURL),ql.toString=d.bind(null,function(h,p,g){return c.render(h,g)}),ql}var r0=pN();const gd=zd(r0);function gN(){return typeof window<"u"&&!!window.LevixHost}const xN=({status:s,onRefresh:o,onStatusUpdate:u})=>{var Ue;const{t:c,language:d}=en(),{toast:h}=Hn(),[p,g]=Q.useState(!1),[b,E]=Q.useState(!1),[v,x]=Q.useState(null),[T,U]=Q.useState("pairing"),[Z,R]=Q.useState(""),[B,G]=Q.useState(!1),K=(s==null?void 0:s.state)||"idle",ee=K==="connected",$=K==="waiting_for_qr",pe=K==="starting"||K==="linking",J=K==="reconnecting",V=K==="paused",z=K==="logged_out",I=!!(s!=null&&s.linked)&&!z,se=!I,W=!!(s!=null&&s.canUnlink),ne=(s==null?void 0:s.isOnline)!==!1,X=V||K==="disconnected"||K==="retry_exhausted"?d==="ar"?"استئناف الجلسة":"Resume session":d==="ar"?"الاتصال":"Connect";Q.useEffect(()=>{if(s!=null&&s.qr){const Ge=r0.toDataURL||(gd==null?void 0:gd.toDataURL);typeof Ge=="function"&&Ge(s.qr,{width:280,margin:2,color:{dark:"#0b1629",light:"#ffffff"}}).then(N=>x(N)).catch(()=>x(null))}else x(null)},[s==null?void 0:s.qr]),Q.useEffect(()=>{if($&&!(s!=null&&s.qr)&&!(s!=null&&s.pairingCode)){const Ge=setInterval(()=>{o==null||o()},1500);return()=>clearInterval(Ge)}},[$,s==null?void 0:s.qr,s==null?void 0:s.pairingCode,o]);const ie=async(Ge,N)=>{E(!0);try{const S=await Ge();S&&typeof S=="object"&&"session"in S&&(u==null||u(S.session)),h(N,"success"),await(o==null?void 0:o())}catch(S){h(S instanceof Error?S.message:String(S),"error")}finally{E(!1)}},ge=async Ge=>{Ge&&Ge.preventDefault();const N=Z.replace(/\D/g,"");if(!N){h(d==="ar"?"يرجى إدخال رقم الهاتف مع كود الدولة أولاً.":"Please enter your phone number with country code.","error");return}if(N.startsWith("0")){h(d==="ar"?"يرجى حذف الصفر في البداية وكتابة كود الدولة (مثلاً: 2010... وليس 010...)":"Drop the leading 0 and include the country code (e.g. 2010... not 010...).","error");return}await ie(()=>le.startSession({method:"pairing",phone:N}),d==="ar"?"جاري طلب كود الربط من واتساب...":"Requesting pairing code...")},C=async()=>{await ie(()=>le.startSession({method:"qr"}),d==="ar"?"جاري بدء الاتصال برمز QR...":"Starting QR code connection...")},F=async()=>{await ie(le.stopSession,d==="ar"?"تم الإلغاء، أدخل رقم هاتفك":"Cancelled, enter your phone number"),U("pairing")},M=()=>{s!=null&&s.pairingCode&&(navigator.clipboard.writeText(s.pairingCode.replace(/\s+/g,"")),G(!0),h(d==="ar"?"تم نسخ كود الربط!":"Pairing code copied!","success"),setTimeout(()=>G(!1),2500))},re=async()=>{g(!1),await ie(le.unlinkSession,d==="ar"?"تم إلغاء ربط الجلسة بنجاح":"Session unlinked successfully.")},Y=(Ue=s==null?void 0:s.user)!=null&&Ue.id?s.user.id.split("@")[0].split(":")[0]:null,ke=gN();return r.jsxs("div",{className:"flex flex-col gap-5 sm:gap-6",children:[r.jsxs("div",{className:"rounded-2xl border border-line bg-gradient-to-br from-panel-raised via-panel to-panel p-4 sm:p-6 shadow-sm flex flex-col gap-5",children:[r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-4 border-b border-line",children:[r.jsxs("div",{className:"flex items-center gap-3.5",children:[r.jsx("div",{className:`w-12 h-12 rounded-2xl flex items-center justify-center shrink-0 border ${ee?"bg-ok/15 text-ok border-ok/30 shadow-sm shadow-ok/20":$?"bg-warn/15 text-warn border-warn/30 shadow-sm shadow-warn/20":pe||J?"bg-brand-blue/15 text-brand-blue border-brand-blue/30 shadow-sm shadow-brand-blue/20":"bg-info/15 text-info border-info/30 shadow-sm shadow-info/20"}`,children:r.jsx(Ks,{size:24})}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-lg sm:text-xl font-extrabold text-text-main",children:c("connection")}),r.jsx("p",{className:"text-xs sm:text-sm text-muted mt-0.5",children:ee?c("sessionActive"):V?c("paused"):I?d==="ar"?"جلسة محفوظة — يمكن استئنافها":"Saved session — ready to resume":c("sessionOffline")})]})]}),r.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto",children:r.jsxs("span",{className:`inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full text-xs font-bold border ${ee?"bg-ok/15 text-ok border-ok/30":$?"bg-warn/15 text-warn border-warn/30":pe||J?"bg-brand-blue/15 text-brand-blue border-brand-blue/30 animate-pulse":"bg-brand-cyan/15 text-brand-cyan border-brand-cyan/30"}`,children:[r.jsx("span",{className:"pulse-dot"}),r.jsx("span",{children:c(K,K)})]})})]}),s!=null&&s.retryInSeconds?r.jsxs("div",{className:"rounded-xl border border-warn/30 bg-warn/10 p-3.5 flex items-center gap-3 text-warn",children:[r.jsx(Hr,{size:20,className:"shrink-0"}),r.jsxs("div",{className:"text-xs sm:text-sm",children:[r.jsx("span",{className:"font-bold",children:d==="ar"?"إعادة الاتصال قريباً":"Reconnecting soon"})," ","•"," ",r.jsx("span",{children:d==="ar"?`المحاولة التالية خلال ${s.retryInSeconds} ثانية`:`Next attempt in ${s.retryInSeconds}s`})]})]}):null,ee&&Y&&r.jsxs("div",{className:"rounded-xl border border-ok/30 bg-ok/10 p-3.5 sm:p-4 flex items-center justify-between gap-3",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[r.jsx("div",{className:"w-10 h-10 rounded-xl bg-ok/20 text-ok flex items-center justify-center shrink-0",children:r.jsx(Js,{size:20})}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("div",{className:"text-xs text-muted font-medium",children:c("connectedNumber")}),r.jsxs("div",{className:"text-sm sm:text-base font-mono font-bold text-text-main",dir:"ltr",children:["+",Y]})]})]}),r.jsx("span",{className:"text-xs font-bold text-ok px-2.5 py-1 rounded-lg bg-ok/15 border border-ok/30 shrink-0",children:d==="ar"?"متصل":"Online"})]}),r.jsxs("div",{children:[ee&&r.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-2.5 sm:gap-3",children:[r.jsxs("button",{type:"button",onClick:()=>ie(le.stopSession,c("stop")),disabled:b,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-6 h-12 sm:h-11 rounded-xl border border-danger/40 bg-danger/10 hover:bg-danger/20 text-danger font-bold text-sm transition-all focus-visible:ring-2 focus-visible:ring-danger/50 disabled:opacity-50",children:[r.jsx(Sd,{size:16}),r.jsx("span",{children:c("stop")})]}),r.jsxs("div",{className:"flex items-center gap-2.5 w-full sm:w-auto",children:[r.jsxs("button",{type:"button",onClick:()=>ie(le.reconnectSession,c("reconnecting")),disabled:b,className:"flex-1 sm:flex-initial inline-flex items-center justify-center gap-1.5 sm:gap-2 px-4 h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50",title:c("reconnect"),children:[r.jsx(Vr,{size:15}),r.jsx("span",{children:c("reconnect")})]}),r.jsxs("button",{type:"button",onClick:()=>g(!0),disabled:b,className:"flex-1 sm:flex-initial inline-flex items-center justify-center gap-1.5 sm:gap-2 px-4 h-11 rounded-xl border border-danger/30 bg-danger/10 hover:bg-danger/20 text-danger font-bold text-xs sm:text-sm transition-all focus-visible:ring-2 focus-visible:ring-danger/50 disabled:opacity-50",title:c("unlink"),children:[r.jsx(qu,{size:15}),r.jsx("span",{children:c("unlink")})]}),!ke&&r.jsxs("button",{type:"button",onClick:()=>ie(le.restartBot,c("restart")),disabled:b,className:"flex-1 sm:flex-initial inline-flex items-center justify-center gap-1.5 sm:gap-2 px-4 h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50",title:c("restart"),children:[r.jsx(Ar,{size:15}),r.jsx("span",{children:c("restart")})]})]})]}),(pe||$||J)&&r.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-2.5 sm:gap-3 w-full sm:w-auto",children:[r.jsxs("button",{type:"button",onClick:()=>ie(le.stopSession,c("stop")),disabled:b,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-6 h-12 sm:h-11 rounded-xl border border-danger/40 bg-danger/10 hover:bg-danger/20 text-danger font-bold text-sm transition-all focus-visible:ring-2 focus-visible:ring-danger/50 disabled:opacity-50",children:[r.jsx(Sd,{size:16}),r.jsx("span",{children:d==="ar"?"إلغاء المحاولة":"Cancel Attempt"})]}),!ke&&r.jsxs("button",{type:"button",onClick:()=>ie(le.restartBot,c("restart")),disabled:b,className:"inline-flex items-center justify-center gap-1.5 sm:gap-2 px-4 h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50",title:c("restart"),children:[r.jsx(Ar,{size:15}),r.jsx("span",{children:c("restart")})]})]}),!ee&&!pe&&!$&&!J&&I&&r.jsxs("div",{className:"flex flex-col gap-3 w-full max-w-xl",children:[V&&r.jsx("p",{className:"text-xs sm:text-sm text-muted leading-relaxed",children:ne?d==="ar"?"الجلسة محفوظة. اضغط استئناف لإعادة استخدام نفس حساب واتساب.":"This WhatsApp session is saved. Resume to reconnect with the same account.":d==="ar"?"الاتصال متوقف بسبب انقطاع الإنترنت. سيُستأنف تلقائياً عند عودة الشبكة، أو اضغط استئناف.":"Paused while the device is offline. It will resume when the network returns, or tap Resume."}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-2.5",children:[r.jsxs("button",{type:"button",onClick:()=>ie(le.startSession,X),disabled:b,className:"inline-flex items-center justify-center gap-2 px-6 h-12 sm:h-11 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-sm shadow-md shadow-brand-blue/25 transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50 w-full sm:w-fit",children:[r.jsx(Ks,{size:16}),r.jsx("span",{children:X})]}),W&&r.jsxs("button",{type:"button",onClick:()=>g(!0),disabled:b,className:"inline-flex items-center justify-center gap-1.5 sm:gap-2 px-4 h-11 rounded-xl border border-danger/30 bg-danger/10 hover:bg-danger/20 text-danger font-bold text-xs sm:text-sm transition-all disabled:opacity-50",title:c("unlink"),children:[r.jsx(qu,{size:15}),r.jsx("span",{children:c("unlink")})]}),!ke&&r.jsxs("button",{type:"button",onClick:()=>ie(le.restartBot,c("restart")),disabled:b,className:"inline-flex items-center justify-center gap-1.5 sm:gap-2 px-4 h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-all disabled:opacity-50",title:c("restart"),children:[r.jsx(Ar,{size:15}),r.jsx("span",{children:c("restart")})]})]})]}),!ee&&!pe&&!$&&!J&&se&&r.jsxs("div",{className:"flex flex-col gap-4 w-full",children:[r.jsxs("div",{className:"flex items-center gap-1.5 p-1 rounded-xl bg-panel-raised border border-line w-full sm:w-fit",children:[r.jsxs("button",{type:"button",onClick:()=>U("pairing"),className:`flex-1 sm:flex-initial inline-flex items-center justify-center gap-2 px-4 h-10 rounded-lg text-xs sm:text-sm font-bold transition-all ${T==="pairing"?"bg-brand-blue text-white shadow-sm shadow-brand-blue/30":"text-muted hover:text-text-main"}`,children:[r.jsx(Lu,{size:16}),r.jsx("span",{children:d==="ar"?"كود الربط الرقمي (الهاتف)":"Pairing Code (Phone)"})]}),r.jsxs("button",{type:"button",onClick:()=>U("qr"),className:`flex-1 sm:flex-initial inline-flex items-center justify-center gap-2 px-4 h-10 rounded-lg text-xs sm:text-sm font-bold transition-all ${T==="qr"?"bg-brand-blue text-white shadow-sm shadow-brand-blue/30":"text-muted hover:text-text-main"}`,children:[r.jsx(Uu,{size:16}),r.jsx("span",{children:d==="ar"?"مسح رمز QR":"QR Code Scan"})]})]}),T==="pairing"&&r.jsxs("form",{onSubmit:ge,className:"flex flex-col gap-3 max-w-xl w-full",children:[r.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-2.5",children:[r.jsxs("div",{className:"relative flex-1",children:[r.jsx(Jv,{size:17,className:"absolute top-1/2 -translate-y-1/2 start-3.5 text-muted pointer-events-none"}),r.jsx("input",{type:"tel",value:Z,onChange:Ge=>R(Ge.target.value),placeholder:d==="ar"?"201012345678 (مع كود الدولة)":"e.g. 201012345678",dir:"ltr",className:"w-full h-12 sm:h-11 ps-10 pe-4 rounded-xl border border-line bg-panel-raised text-text-main font-mono text-sm placeholder:text-muted/60 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all"})]}),r.jsxs("button",{type:"submit",disabled:b,className:"inline-flex items-center justify-center gap-2 px-6 h-12 sm:h-11 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-sm shadow-md shadow-brand-blue/25 transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50 shrink-0",children:[r.jsx(vd,{size:16}),r.jsx("span",{children:d==="ar"?"الحصول على كود الربط":"Get Pairing Code"})]})]}),r.jsx("p",{className:"text-xs text-muted leading-relaxed",children:d==="ar"?"💡 أدخل رقم هاتفك مسبوقاً بكود الدولة وبدون 0 في البداية (مثال: 2010... وليس 010...). سيظهر لك كود لإدخاله في واتساب فوراً.":"💡 Enter your number with country code, no leading zeros (e.g. 2010... not 010...). A code will appear to enter into WhatsApp."})]}),T==="qr"&&r.jsxs("div",{className:"flex flex-col gap-2 max-w-xl",children:[r.jsxs("button",{type:"button",onClick:C,disabled:b,className:"inline-flex items-center justify-center gap-2 px-6 h-12 sm:h-11 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-sm shadow-md shadow-brand-blue/25 transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50 w-full sm:w-fit",children:[r.jsx(Uu,{size:18}),r.jsx("span",{children:d==="ar"?"بدء الربط عبر رمز QR":"Start QR Linking"})]}),r.jsx("p",{className:"text-xs text-muted",children:d==="ar"?"سيتم إنشاء رمز QR لمسحه من هاتف آخر أو من شاشة الحاسوب عبر كاميرا واتساب.":"Generates a QR code to be scanned using WhatsApp camera on another device or screen."})]}),r.jsxs("div",{className:"flex items-center gap-2.5 pt-1",children:[W&&r.jsxs("button",{type:"button",onClick:()=>g(!0),disabled:b,className:"inline-flex items-center justify-center gap-1.5 sm:gap-2 px-4 h-11 rounded-xl border border-danger/30 bg-danger/10 hover:bg-danger/20 text-danger font-bold text-xs sm:text-sm transition-all focus-visible:ring-2 focus-visible:ring-danger/50 disabled:opacity-50",title:c("unlink"),children:[r.jsx(qu,{size:15}),r.jsx("span",{children:c("unlink")})]}),!ke&&r.jsxs("button",{type:"button",onClick:()=>ie(le.restartBot,c("restart")),disabled:b,className:"inline-flex items-center justify-center gap-1.5 sm:gap-2 px-4 h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50",title:c("restart"),children:[r.jsx(Ar,{size:15}),r.jsx("span",{children:c("restart")})]})]})]})]})]}),pe&&r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-6 sm:p-8 shadow-sm flex flex-col items-center text-center",children:[r.jsx("div",{className:"w-12 h-12 rounded-2xl bg-brand-blue/15 text-brand-blue flex items-center justify-center mb-4 border border-brand-blue/30",children:r.jsx(Vr,{size:24,className:"animate-spin"})}),r.jsx("h3",{className:"text-base sm:text-lg font-bold text-text-main mb-1.5",children:K==="linking"?d==="ar"?"جاري إتمام الربط مع الهاتف...":"Finishing link handshake...":d==="ar"?"جاري بدء تشغيل الجلسة...":"Initializing WhatsApp session..."}),r.jsx("p",{className:"text-xs sm:text-sm text-muted max-w-md",children:d==="ar"?"يتم الآن إنشاء مقبس الاتصال، ستظهر بيانات الربط خلال ثوانٍ معدودة.":"Creating connection socket. Pairing details will appear in just a few seconds."})]}),$&&r.jsx("div",{className:"rounded-2xl border border-line bg-panel p-6 sm:p-8 shadow-sm flex flex-col items-center text-center max-w-2xl mx-auto w-full",children:s!=null&&s.pairingCode?r.jsxs("div",{className:"flex flex-col items-center w-full animate-in fade-in zoom-in-95 duration-300",children:[r.jsx("div",{className:"w-12 h-12 rounded-2xl bg-brand-cyan/15 text-brand-cyan flex items-center justify-center mb-4 border border-brand-cyan/30",children:r.jsx(Lu,{size:26})}),r.jsx("h3",{className:"text-lg sm:text-xl font-bold text-text-main mb-1.5",children:d==="ar"?"كود الربط الرقمي مع واتساب":"WhatsApp Pairing Code"}),r.jsx("p",{className:"text-xs sm:text-sm text-muted max-w-md mb-6",children:d==="ar"?"أدخل هذا الكود في تطبيق واتساب على هاتفك لتأكيد الربط مباشرة.":"Enter this code into WhatsApp on your phone to complete pairing."}),r.jsxs("div",{className:"rounded-2xl border-2 border-brand-cyan/40 bg-brand-cyan/10 p-5 sm:p-6 w-full max-w-md flex flex-col items-center gap-4 shadow-lg shadow-brand-cyan/10",children:[r.jsx("div",{className:"text-xs font-bold text-brand-cyan uppercase tracking-wider",children:d==="ar"?"كود الربط المكون من 8 خانات":"8-Digit Pairing Code"}),r.jsx("div",{className:"text-3xl sm:text-4xl font-mono font-extrabold tracking-widest text-brand-cyan select-all",dir:"ltr",children:s.pairingCode.length===8?`${s.pairingCode.slice(0,4)} - ${s.pairingCode.slice(4)}`:s.pairingCode}),r.jsxs("button",{type:"button",onClick:M,className:"inline-flex items-center justify-center gap-2 px-6 h-11 rounded-xl bg-brand-cyan hover:bg-brand-cyan/90 text-bg font-extrabold text-sm shadow-md shadow-brand-cyan/25 transition-all active:scale-95",children:[B?r.jsx(qr,{size:18}):r.jsx(Mv,{size:18}),r.jsx("span",{children:B?d==="ar"?"تم النسخ بنجاح!":"Copied!":d==="ar"?"نسخ كود الربط":"Copy Code"})]})]}),r.jsxs("div",{className:"mt-6 p-4 rounded-xl border border-line bg-panel-raised text-start w-full max-w-md",children:[r.jsx("div",{className:"text-xs font-bold text-text-main mb-3",children:d==="ar"?"خطوات الإدخال في واتساب:":"Steps to enter in WhatsApp:"}),r.jsxs("ol",{className:"text-xs text-muted space-y-2 list-decimal list-inside leading-relaxed",children:[r.jsx("li",{children:d==="ar"?"افتح تطبيق واتساب على هاتفك.":"Open WhatsApp on your phone."}),r.jsx("li",{children:d==="ar"?"اذهب إلى الإعدادات > الأجهزة المرتبطة > ربط جهاز.":"Go to Settings > Linked Devices > Link a Device."}),r.jsx("li",{children:r.jsx("strong",{className:"text-text-main",children:d==="ar"?"اضغط على «الربط باستخدام رقم الهاتف بدلاً من ذلك» أسفل الشاشة.":"Tap 'Link with phone number instead' at bottom of screen."})}),r.jsx("li",{children:d==="ar"?"اكتب هذا الكود وسيتم ربط البوت مباشرة!":"Enter the code above to connect immediately!"})]})]})]}):v?r.jsxs("div",{className:"flex flex-col items-center w-full",children:[r.jsx("div",{className:"w-12 h-12 rounded-2xl bg-brand-cyan/15 text-brand-cyan flex items-center justify-center mb-4 border border-brand-cyan/30",children:r.jsx(Uu,{size:26})}),r.jsx("h3",{className:"text-lg font-bold text-text-main mb-1.5",children:c("waiting_for_qr")}),r.jsx("p",{className:"text-xs sm:text-sm text-muted max-w-md mb-6",children:d==="ar"?"افتح واتساب على هاتفك، اذهب إلى الأجهزة المرتبطة، ثم امسح هذا الرمز للربط.":"Open WhatsApp on your phone, go to Linked Devices, and scan this code to link."}),r.jsx("div",{className:"p-3 sm:p-4 bg-white rounded-2xl shadow-xl border border-line animate-in fade-in zoom-in-95 duration-300",children:r.jsx("img",{src:v,alt:"WhatsApp QR Code",className:"w-56 h-56 sm:w-64 sm:h-64 block rounded-lg"})}),r.jsxs("div",{className:"mt-6 pt-5 border-t border-line w-full max-w-md flex flex-col items-center gap-2.5",children:[r.jsx("p",{className:"text-xs text-muted text-center",children:d==="ar"?"هل تستخدم التطبيق من نفس الهاتف ولا تستطيع مسح الرمز؟":"Using the app on the same phone and can't scan?"}),r.jsxs("button",{type:"button",onClick:F,disabled:b,className:"w-full inline-flex items-center justify-center gap-2 px-4 h-12 sm:h-11 rounded-xl border border-brand-cyan/40 bg-brand-cyan/10 hover:bg-brand-cyan/20 text-brand-cyan font-bold text-xs sm:text-sm transition-all focus-visible:ring-2 focus-visible:ring-brand-cyan/50",children:[r.jsx(Lu,{size:17}),r.jsx("span",{children:d==="ar"?"الربط برقم الهاتف (كود الربط الرقمي) بدلاً من QR":"Link with Phone Pairing Code Instead"})]})]})]}):r.jsxs("div",{className:"flex flex-col items-center gap-3 py-8 text-muted",children:[r.jsx("div",{className:"w-9 h-9 border-2 border-brand-cyan border-t-transparent rounded-full animate-spin"}),r.jsx("span",{className:"text-xs sm:text-sm font-semibold animate-pulse",children:d==="ar"?"جاري تجهيز بيانات الربط من واتساب...":"Preparing pairing details from WhatsApp..."})]})}),r.jsx(Zs,{isOpen:p,onClose:()=>g(!1),title:c("unlink"),footer:r.jsxs("div",{className:"flex items-center justify-end gap-2.5 w-full",children:[r.jsx("button",{type:"button",onClick:()=>g(!1),className:"px-4 h-10 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-colors",children:c("cancel")}),r.jsx("button",{type:"button",onClick:re,className:"px-4 h-10 rounded-xl bg-danger hover:bg-danger/90 text-white font-bold text-xs sm:text-sm shadow-md shadow-danger/25 transition-colors",children:c("unlink")})]}),children:r.jsx("p",{className:"text-xs sm:text-sm text-text-main leading-relaxed",children:d==="ar"?"هل أنت متأكد من رغبتك في إلغاء ربط جلسة واتساب الحالية؟ ستحتاج إلى مسح رمز QR جديد أو إدخال كود ربط لإعادة ربط الحساب.":"Are you sure you want to unlink this WhatsApp session? You will need to scan a new QR code or enter a pairing code to reconnect."})})]})},bN=()=>{const{t:s,language:o}=en(),{toast:u}=Hn(),[c,d]=Q.useState([]),[h,p]=Q.useState(!0),g=v=>{var U,Z;const x=v.jid||v.id||"",T=typeof v.antilink=="boolean"?v.antilink:!!(v.antilinkEnabled??((U=v.antilink)==null?void 0:U.enabled));return{...v,jid:x,subject:v.subject||"",memberCount:v.memberCount??v.participants??0,antilink:T,antilinkEnabled:T,welcomeEnabled:!!(v.welcomeEnabled??((Z=v.welcome_system)==null?void 0:Z.enabled)),mediaRestriction:v.mediaRestriction||"none"}},b=async()=>{try{const v=await le.getGroups();v!=null&&v.groups&&d(v.groups.map(g))}catch(v){u(v.message,"error")}finally{p(!1)}};Q.useEffect(()=>{b()},[]);const E=async(v,x)=>{d(T=>T.map(U=>U.jid===v?{...U,...x}:U));try{await le.updateGroup(v,x),u(s("savedSuccessfully"),"success")}catch(T){u(T.message,"error"),b()}};return r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsx("div",{className:"rounded-2xl border border-line bg-panel p-5 md:p-6 shadow-sm flex flex-col md:flex-row md:items-center justify-between gap-4",children:r.jsxs("div",{className:"flex items-center gap-3.5",children:[r.jsx("div",{className:"w-12 h-12 rounded-2xl bg-brand-blue/10 text-brand-blue flex items-center justify-center shrink-0",children:r.jsx(Gl,{size:24})}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h2",{className:"text-lg md:text-xl font-bold text-text-main",children:s("groups")}),r.jsxs("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold bg-brand-blue/10 text-brand-cyan border border-brand-cyan/20",children:[c.length," ",o==="ar"?"مجموعة":"groups"]})]}),r.jsx("p",{className:"text-xs md:text-sm text-muted mt-1",children:o==="ar"?"إدارة مجموعات واتساب، الحماية من الروابط، تقييد الوسائط، ورسائل الترحيب التلقائية":"WhatsApp group moderation, anti-link defense, media filtering, and automated greetings"})]})]})}),r.jsx("div",{className:"rounded-2xl border border-line bg-panel overflow-hidden shadow-sm overflow-x-auto",children:r.jsxs("table",{className:"w-full min-w-[640px] text-start border-collapse text-sm",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"bg-panel-raised border-b border-line text-xs font-bold text-muted uppercase tracking-wider",children:[r.jsx("th",{className:"px-5 py-4 text-start",children:s("thGroupName")}),r.jsx("th",{className:"px-5 py-4 text-start",children:s("thGroupJid")}),r.jsx("th",{className:"px-5 py-4 text-start",children:s("thMembers")}),r.jsx("th",{className:"px-5 py-4 text-center",children:s("thAntiLink")}),r.jsx("th",{className:"px-5 py-4 text-start",children:s("thMedia")}),r.jsx("th",{className:"px-5 py-4 text-center",children:s("thWelcome")})]})}),r.jsx("tbody",{className:"divide-y divide-line/40",children:h?r.jsx("tr",{children:r.jsx("td",{colSpan:6,className:"text-center py-16 text-muted",children:r.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[r.jsx("div",{className:"w-6 h-6 border-2 border-brand-blue border-t-transparent rounded-full animate-spin"}),r.jsx("span",{className:"text-xs",children:s("loading")})]})})}):c.length===0?r.jsx("tr",{children:r.jsx("td",{colSpan:6,className:"text-center py-16 px-4",children:r.jsxs("div",{className:"max-w-md mx-auto flex flex-col items-center gap-3",children:[r.jsx("div",{className:"w-14 h-14 rounded-2xl bg-panel-raised flex items-center justify-center text-muted",children:r.jsx(Fv,{size:28})}),r.jsx("h4",{className:"text-base font-bold text-text-main",children:o==="ar"?"لا توجد مجموعات حتى الآن":"No active groups found"}),r.jsx("p",{className:"text-xs text-muted leading-relaxed",children:o==="ar"?"بمجرد إضافة البوت إلى مجموعات واتساب، ستظهر تلقائياً هنا مع خيارات الإشراف والحماية.":"Once the bot is added to WhatsApp groups, they will automatically appear here with full moderation and anti-link controls."})]})})}):c.map(v=>{var x;return r.jsxs("tr",{className:"hover:bg-panel-hover/50 transition-colors",children:[r.jsx("td",{className:"px-5 py-4 font-bold text-text-main",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-9 h-9 rounded-xl bg-brand-blue/10 text-brand-cyan flex items-center justify-center font-bold text-sm shrink-0",children:(v.subject||"G").charAt(0).toUpperCase()}),r.jsx("span",{className:"line-clamp-1",children:v.subject||(o==="ar"?"مجموعة بدون اسم":"Unnamed group")})]})}),r.jsx("td",{className:"px-5 py-4 font-mono text-xs text-muted",children:r.jsx("bdi",{className:"px-2 py-1 rounded bg-bg-soft border border-line select-all",children:((x=v.jid)==null?void 0:x.split("@")[0])||v.jid})}),r.jsx("td",{className:"px-5 py-4",children:r.jsx("span",{className:"inline-flex items-center px-2.5 py-1 rounded-lg bg-panel-raised border border-line text-xs font-semibold text-text-main",children:v.memberCount||"—"})}),r.jsx("td",{className:"px-5 py-4 text-center",children:r.jsx(Xa,{checked:!!v.antilink,onChange:T=>E(v.jid,{antilink:T})})}),r.jsx("td",{className:"px-5 py-4",children:r.jsxs("select",{className:"h-9 px-3 rounded-xl border border-line bg-panel-raised text-text-main text-xs focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:v.mediaRestriction||"none",onChange:T=>E(v.jid,{mediaRestriction:T.target.value}),children:[r.jsx("option",{value:"none",children:o==="ar"?"بلا قيود (الكل)":"No Restrictions"}),r.jsx("option",{value:"block_all",children:o==="ar"?"حظر كافة الوسائط":"Block All Media"})]})}),r.jsx("td",{className:"px-5 py-4 text-center",children:r.jsx(Xa,{checked:!!v.welcomeEnabled,onChange:T=>E(v.jid,{welcomeEnabled:T})})})]},v.jid)})})]})})]})},yN=({socket:s})=>{const{t:o,language:u}=en(),[c,d]=Q.useState([]),[h,p]=Q.useState("all"),[g,b]=Q.useState(!0),E=Q.useRef(null);Q.useEffect(()=>{le.getLogs().then(x=>{x!=null&&x.logs&&d(x.logs)}).catch(()=>{})},[]),Q.useEffect(()=>{if(!s)return;const x=T=>{d(U=>[...U.slice(-400),T])};return s.on("log",x),()=>{s.off("log",x)}},[s]),Q.useEffect(()=>{g&&E.current&&E.current.scrollIntoView({behavior:"smooth"})},[c,g]);const v=c.filter(x=>h==="all"?!0:x.level===h);return r.jsxs("div",{className:"flex flex-col gap-5",children:[r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 md:p-5 shadow-sm flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-10 h-10 rounded-xl bg-brand-cyan/10 text-brand-cyan flex items-center justify-center shrink-0",children:r.jsx(Vl,{size:20})}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2.5",children:[r.jsx("h2",{className:"text-base md:text-lg font-bold text-text-main",children:o("liveServerLogs")}),r.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-mono font-bold bg-panel-raised border border-line text-muted",children:v.length})]}),r.jsx("p",{className:"text-xs text-muted mt-0.5",children:u==="ar"?"سجل أحداث النظام واتصالات واتساب واستدعاءات الذكاء الاصطناعي في الوقت الفعلي":"Real-time streaming console for WhatsApp socket, AI calls, and bot commands"})]})]}),r.jsxs("div",{className:"flex items-center gap-2.5 flex-wrap sm:flex-nowrap",children:[r.jsxs("div",{className:"relative flex items-center",children:[r.jsx(Bv,{size:15,className:"absolute start-3 text-muted pointer-events-none"}),r.jsxs("select",{className:"h-10 ps-9 pe-8 rounded-xl border border-line bg-panel-raised text-text-main text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:h,onChange:x=>p(x.target.value),children:[r.jsx("option",{value:"all",children:o("allLogs")}),r.jsx("option",{value:"info",children:"INFO"}),r.jsx("option",{value:"warn",children:"WARN"}),r.jsx("option",{value:"error",children:"ERROR"})]})]}),r.jsxs("button",{type:"button",onClick:()=>b(!g),className:`inline-flex items-center gap-1.5 px-3 h-10 rounded-xl border text-xs font-semibold transition-colors ${g?"bg-brand-cyan/15 text-brand-cyan border-brand-cyan/30":"bg-panel-raised text-muted border-line hover:text-text-main"}`,title:"Auto-scroll to latest log entry",children:[r.jsx(Av,{size:14,className:g?"animate-bounce":""}),r.jsx("span",{children:g?"Auto-scroll ON":"Auto-scroll OFF"})]}),r.jsxs("button",{type:"button",onClick:()=>d([]),className:"inline-flex items-center gap-1.5 px-3 h-10 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-muted hover:text-danger text-xs font-semibold transition-colors",title:"Clear logs view",children:[r.jsx(yb,{size:14}),r.jsx("span",{children:o("clearLogs")})]})]})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-[#030712] p-4 md:p-5 shadow-2xl h-[65vh] overflow-y-auto font-mono text-xs leading-relaxed flex flex-col gap-1.5 text-slate-300",dir:"ltr",children:[v.length===0?r.jsxs("div",{className:"m-auto text-center py-16 text-muted text-xs flex flex-col items-center gap-2",children:[r.jsx(Vl,{size:24,className:"opacity-40"}),r.jsx("span",{children:o("noLogs")})]}):v.map((x,T)=>{const U=x.level==="error"?"text-red-400 bg-red-500/10 border-red-500/20":x.level==="warn"?"text-amber-300 bg-amber-500/10 border-amber-500/20":"text-cyan-400 bg-cyan-500/10 border-cyan-500/20";return r.jsxs("div",{className:"flex items-baseline gap-2.5 py-0.5 hover:bg-white/[0.03] px-1 rounded transition-colors",children:[r.jsx("span",{className:"text-slate-500 shrink-0 select-none text-[11px]",children:x.time||new Date().toLocaleTimeString()}),r.jsx("span",{className:`inline-flex items-center px-1.5 py-0.2 rounded border font-mono font-bold text-[10px] shrink-0 ${U}`,children:(x.level||"info").toUpperCase()}),r.jsx("span",{className:"text-slate-200 break-all font-mono",children:x.msg})]},T)}),r.jsx("div",{ref:E})]})]})},vN=({status:s,onNavigate:o})=>{var Z;const{t:u,language:c}=en(),{toast:d}=Hn(),[h,p]=Q.useState(null),[g,b]=Q.useState(!0);Q.useEffect(()=>{let R=!0;return le.getStats().then(B=>{R&&(B!=null&&B.stats)&&p(B.stats)}).catch(B=>{d(B.message,"error")}).finally(()=>{R&&b(!1)}),()=>{R=!1}},[d]);const E=R=>{const B=Math.floor(R/86400),G=Math.floor(R%86400/3600),K=Math.floor(R%3600/60);return B?`${B}d ${G}h`:G?`${G}h ${K}m`:`${K}m`},v=(s==null?void 0:s.state)==="connected",x=async()=>{try{await le.startSession(),d(u("starting"),"info")}catch(R){d(R.message,"error")}},T=async()=>{try{await le.stopSession(),d(u("stop"),"info")}catch(R){d(R.message,"error")}},U=[{id:"connection",title:u("connection"),desc:v?u("connected"):u(s==null?void 0:s.state,"disconnected"),icon:Ks,color:"text-brand-cyan bg-brand-cyan/10 border-brand-cyan/20"},{id:"ai",title:u("ai"),desc:u("aiAssistantDesc")||"Autonomous tool-calling AI agent",icon:Md,color:"text-purple-400 bg-purple-500/10 border-purple-500/20"},{id:"commands",title:u("commands"),desc:`${(h==null?void 0:h.commandCount)??56} active bot commands & aliases`,icon:Vl,color:"text-brand-blue bg-blue-500/10 border-blue-500/20"},{id:"settings",title:u("settings"),desc:u("settingsSub")||"Prefix, ports, delays, security & storage",icon:ub,color:"text-ok bg-ok/10 border-ok/20"}];return r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsxs("div",{className:"rounded-2xl border border-line bg-gradient-to-br from-panel-raised via-panel to-panel p-5 sm:p-6 shadow-sm flex flex-col sm:flex-row sm:items-center justify-between gap-5",children:[r.jsxs("div",{className:"flex items-center gap-4 min-w-0 flex-1",children:[r.jsx("div",{className:`w-12 h-12 rounded-2xl flex items-center justify-center shrink-0 border ${v?"bg-ok/15 text-ok border-ok/30 shadow-sm shadow-ok/20":"bg-warn/15 text-warn border-warn/30 shadow-sm shadow-warn/20"}`,children:r.jsx(_v,{size:24})}),r.jsxs("div",{className:"min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2.5 flex-wrap",children:[r.jsx("h2",{className:"text-lg sm:text-xl font-extrabold text-text-main tracking-tight truncate",children:v?u("connected"):u(s==null?void 0:s.state,"disconnected")}),r.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-bold border ${v?"bg-ok/10 text-ok border-ok/30":"bg-warn/10 text-warn border-warn/30"}`,children:[r.jsx("span",{className:"pulse-dot"}),v?"ONLINE":"OFFLINE"]})]}),r.jsx("p",{className:"text-xs sm:text-sm text-muted truncate mt-1",children:v?(Z=s==null?void 0:s.user)!=null&&Z.id?r.jsx("bdi",{dir:"ltr",children:`+${s.user.id.split("@")[0]}`}):u("activeListening"):u("pausedOrLinking")})]})]}),r.jsxs("div",{className:"flex items-center gap-2.5 flex-wrap shrink-0",children:[v?r.jsxs("button",{type:"button",onClick:T,className:"inline-flex items-center justify-center gap-2 px-4 h-11 rounded-xl border border-line bg-panel-raised hover:bg-danger/15 hover:border-danger/40 hover:text-danger text-text-main text-xs sm:text-sm font-bold transition-all focus-visible:ring-2 focus-visible:ring-danger/50",children:[r.jsx(Sd,{size:16}),r.jsx("span",{children:u("stop")})]}):r.jsxs("button",{type:"button",onClick:x,className:"inline-flex items-center justify-center gap-2 px-5 h-11 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white text-xs sm:text-sm font-bold shadow-md shadow-brand-blue/25 transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50",children:[r.jsx(Iv,{size:16}),r.jsx("span",{children:u("start")})]}),r.jsxs("button",{type:"button",onClick:()=>o("connection"),className:"inline-flex items-center justify-center gap-2 px-4 h-11 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main text-xs sm:text-sm font-bold transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50",children:[r.jsx(Ks,{size:16,className:"text-brand-cyan"}),r.jsx("span",{children:u("connection")})]})]})]}),r.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-5",children:[r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-5 shadow-sm space-y-2 sm:space-y-3 hover:border-brand-blue/40 transition-colors",children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("span",{className:"text-[11px] sm:text-xs font-bold text-muted uppercase tracking-wider truncate",children:u("totalGroups")}),r.jsx("div",{className:"w-8 h-8 sm:w-10 sm:h-10 rounded-xl bg-blue-500/10 text-brand-blue flex items-center justify-center shrink-0 border border-blue-500/20",children:r.jsx(Gl,{size:18})})]}),r.jsx("div",{className:"text-2xl sm:text-3xl font-extrabold text-text-main font-mono tracking-tight",children:g?"—":(h==null?void 0:h.totalGroups)??0})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-5 shadow-sm space-y-2 sm:space-y-3 hover:border-brand-cyan/40 transition-colors",children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("span",{className:"text-[11px] sm:text-xs font-bold text-muted uppercase tracking-wider truncate",children:u("commandCount")}),r.jsx("div",{className:"w-8 h-8 sm:w-10 sm:h-10 rounded-xl bg-brand-cyan/10 text-brand-cyan flex items-center justify-center shrink-0 border border-brand-cyan/20",children:r.jsx(Vl,{size:18})})]}),r.jsx("div",{className:"text-2xl sm:text-3xl font-extrabold text-text-main font-mono tracking-tight",children:g?"—":(h==null?void 0:h.commandCount)??0})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-5 shadow-sm space-y-2 sm:space-y-3 hover:border-ok/40 transition-colors",children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("span",{className:"text-[11px] sm:text-xs font-bold text-muted uppercase tracking-wider truncate",children:u("uptime")}),r.jsx("div",{className:"w-8 h-8 sm:w-10 sm:h-10 rounded-xl bg-ok/10 text-ok flex items-center justify-center shrink-0 border border-ok/20",children:r.jsx(kv,{size:18})})]}),r.jsx("div",{className:"text-2xl sm:text-3xl font-extrabold text-text-main font-mono tracking-tight",children:g?"—":E((h==null?void 0:h.uptime)||0)})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-5 shadow-sm space-y-2 sm:space-y-3 hover:border-purple-500/40 transition-colors",children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("span",{className:"text-[11px] sm:text-xs font-bold text-muted uppercase tracking-wider truncate",children:u("activeSchedules")}),r.jsx("div",{className:"w-8 h-8 sm:w-10 sm:h-10 rounded-xl bg-purple-500/10 text-purple-400 flex items-center justify-center shrink-0 border border-purple-500/20",children:r.jsx(Xv,{size:18})})]}),r.jsx("div",{className:"text-2xl sm:text-3xl font-extrabold text-text-main font-mono tracking-tight",children:g?"—":(h==null?void 0:h.activeSchedules)??0})]})]}),r.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4",children:U.map(R=>{const B=R.icon;return r.jsxs("button",{type:"button",onClick:()=>o(R.id),className:"group rounded-2xl border border-line bg-panel hover:bg-panel-hover p-4 sm:p-5 shadow-sm text-start flex flex-col justify-between gap-3 sm:gap-4 transition-all hover:-translate-y-0.5 hover:border-brand-blue/30 focus-visible:ring-2 focus-visible:ring-brand-blue/50",children:[r.jsxs("div",{className:"flex items-center justify-between w-full",children:[r.jsx("div",{className:`w-9 h-9 sm:w-10 sm:h-10 rounded-xl flex items-center justify-center shrink-0 border ${R.color}`,children:r.jsx(B,{size:18})}),r.jsx("div",{className:"w-7 h-7 rounded-full bg-white/[0.04] border border-white/[0.08] flex items-center justify-center text-muted group-hover:text-brand-cyan group-hover:border-brand-cyan/40 group-hover:bg-brand-cyan/10 transition-all",children:r.jsx(Ev,{size:14,className:"rtl:rotate-180 transition-transform group-hover:translate-x-0.5 rtl:group-hover:-translate-x-0.5"})})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-xs sm:text-sm font-bold text-text-main group-hover:text-brand-cyan transition-colors",children:R.title}),r.jsx("p",{className:"text-[11px] sm:text-xs text-muted mt-0.5 line-clamp-2 leading-relaxed",children:R.desc})]})]},R.id)})}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 shadow-sm flex items-center gap-3.5",children:[r.jsx(Rv,{size:20,className:"text-faint shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-xs font-semibold text-muted",children:u("dataDir")}),r.jsx("div",{className:"text-xs font-mono text-text-main truncate text-start",dir:"ltr",children:(h==null?void 0:h.dataDir)||"..."})]})]})]})};function NN(){const s=window.LevixHost;return!!(s&&typeof s.pickContact=="function")}function wN(s){let o=String(s||"").replace(/\D/g,"");return o.startsWith("00")&&(o=o.slice(2)),o.length<8||o.length>15?null:`${o}@s.whatsapp.net`}const SN=({isConnected:s=!1,onNavigate:o})=>{const{t:u,language:c}=en(),{toast:d}=Hn(),[h,p]=Q.useState([]),[g,b]=Q.useState("UTC"),[E,v]=Q.useState(!0),[x,T]=Q.useState([]),[U,Z]=Q.useState(!1),[R,B]=Q.useState(null),[G,K]=Q.useState(""),[ee,$]=Q.useState(!1),[pe,J]=Q.useState(""),[V,z]=Q.useState("recurring"),[I,se]=Q.useState("0 9 * * *"),[W,ne]=Q.useState(""),[X,ie]=Q.useState(!1),ge=3,C=h.length>=ge,F=async()=>{try{const S=await le.getSchedules();S!=null&&S.schedules&&(p(S.schedules),S.timezone&&b(S.timezone))}catch(S){d(S.message,"error")}finally{v(!1)}},M=async()=>{Z(!0);try{const S=await le.getRecipients();S!=null&&S.recipients&&T(S.recipients)}catch{}finally{Z(!1)}};Q.useEffect(()=>{F(),s&&M()},[s]);const re=async S=>{try{await le.deleteSchedule(S),d(u("savedSuccessfully"),"success"),p(P=>P.filter(ae=>ae.id!==S))}catch(P){d(P.message,"error")}},Y=async S=>{if(!s){d(c==="ar"?"واتساب غير متصل، يرجى بدء الاتصال أولاً":"WhatsApp is disconnected, please connect first","warning");return}try{await le.retrySchedule(S),d(c==="ar"?"تمت إعادة محاولة الإرسال":"Delivery retry triggered","info"),F()}catch(P){d(P.message,"error")}},ke=async()=>{const S=window.LevixHost;if(!(S!=null&&S.pickContact)){d(c==="ar"?"دليل الهاتف متاح من تطبيق أندرويد فقط":"Phone book is available in the Android app","info");return}const P=await new Promise(fe=>{var oe;const Se=be=>{window.removeEventListener("levix-contact",Se);const L=be.detail;if(!(L!=null&&L.phone)){fe(null);return}fe({name:String(L.name||""),phone:String(L.phone)})};window.addEventListener("levix-contact",Se);try{(oe=S.pickContact)==null||oe.call(S)}catch{window.removeEventListener("levix-contact",Se),fe(null)}});if(!P)return;const ae=wN(P.phone);if(!ae){d(c==="ar"?"الرقم غير صالح. استخدم رقمًا مع كود الدولة.":"That number is not valid. Use a number with country code.","error");return}const ye=`+${ae.split("@")[0]}`;B({id:ae,name:P.name||ye,phone:ye,type:"contact"})},Ue=()=>{if(!s){d(c==="ar"?"يلزم اتصال واتساب لجدولة الرسائل":"Active WhatsApp connection is required to schedule messages","warning");return}if(C){d(u("maxSchedulesReached"),"warning");return}B(null),K(""),J(""),$(!0),x.length||M()},Ge=async()=>{if(!R){d(c==="ar"?"يرجى اختيار المحادثة المستهدفة":"Please select a recipient chat","warning");return}if(!pe.trim()){d(c==="ar"?"يرجى كتابة نص الرسالة":"Please write the message text","warning");return}if(V==="once"&&(!W||new Date(W).getTime()<=Date.now())){d(c==="ar"?"يرجى تحديد وقت وتاريخ مستقبلي صالح":"Please select a valid future date and time","warning");return}ie(!0);const S={targetJid:R.id,message:pe.trim(),type:V};V==="recurring"?S.cronString=I:S.scheduledTime=new Date(W).getTime();try{await le.createSchedule(S),d(u("savedSuccessfully"),"success"),$(!1),B(null),J(""),F()}catch(P){d(P.message,"error")}finally{ie(!1)}},N=x.filter(S=>{const P=G.toLowerCase().trim();return P?S.name.toLowerCase().includes(P)||S.phone&&S.phone.includes(P)||S.id.toLowerCase().includes(P):!0});return r.jsxs("div",{className:"flex flex-col gap-5 sm:gap-6",children:[!s&&r.jsxs("div",{className:"rounded-2xl border border-warn/30 bg-warn/10 p-4 sm:p-5 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[r.jsxs("div",{className:"flex items-center gap-3.5",children:[r.jsx("div",{className:"w-10 h-10 rounded-xl bg-warn/20 text-warn flex items-center justify-center shrink-0",children:r.jsx(Hr,{size:22})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-sm sm:text-base font-bold text-warn",children:c==="ar"?"واتساب غير متصل حالياً":"WhatsApp is Disconnected"}),r.jsx("p",{className:"text-xs sm:text-sm text-text-main/80 mt-0.5",children:c==="ar"?"يلزم وجود اتصال نشط بواتساب لجدولة الرسائل وإرسالها واختيار جهات الاتصال.":"An active WhatsApp connection is required to schedule messages, fetch chats, and deliver automated jobs."})]})]}),r.jsx("button",{type:"button",onClick:()=>o==null?void 0:o("connection"),className:"inline-flex items-center justify-center gap-2 px-4 h-11 rounded-xl bg-warn hover:bg-warn/90 text-bg font-bold text-xs sm:text-sm shadow-sm transition-all shrink-0",children:r.jsx("span",{children:c==="ar"?"الذهاب للاتصال":"Go to Connection"})})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[r.jsxs("div",{className:"flex items-center gap-3.5",children:[r.jsx("div",{className:"w-12 h-12 rounded-2xl bg-brand-cyan/10 text-brand-cyan flex items-center justify-center shrink-0",children:r.jsx(yd,{size:24})}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[r.jsx("h2",{className:"text-lg md:text-xl font-bold text-text-main",children:u("schedules")}),r.jsxs("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-bold border ${C?"bg-warn/15 text-warn border-warn/30":"bg-brand-cyan/10 text-brand-cyan border-brand-cyan/20"}`,children:[h.length," / ",ge," ",c==="ar"?"مجدول":"scheduled"]})]}),r.jsxs("p",{className:"text-xs md:text-sm text-muted mt-1",children:[c==="ar"?"المنطقة الزمنية:":"Timezone:"," ",r.jsx("code",{className:"text-brand-cyan font-mono font-semibold px-1.5 py-0.5 rounded bg-bg-soft border border-line",children:g})," ","·"," ",c==="ar"?"إرسال دوري ومحدد بالوقت":"Cron & one-off automated message deliveries"]})]})]}),r.jsxs("button",{type:"button",onClick:Ue,disabled:C||!s,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-5 h-12 sm:h-11 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-xs sm:text-sm shadow-md shadow-brand-blue/20 transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 shrink-0 disabled:opacity-50 disabled:cursor-not-allowed",children:[r.jsx(Fx,{size:18}),r.jsx("span",{children:s?u(C?"limitReached":"scheduleNewMsg"):c==="ar"?"يلزم اتصال واتساب":"Connection Required"})]})]}),r.jsx("div",{className:"rounded-2xl border border-line bg-panel overflow-hidden shadow-sm overflow-x-auto",children:r.jsxs("table",{className:"w-full min-w-[680px] text-start border-collapse text-sm",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"bg-panel-raised border-b border-line text-xs font-bold text-muted uppercase tracking-wider",children:[r.jsx("th",{className:"px-5 py-4 text-start",children:u("thTarget")}),r.jsx("th",{className:"px-5 py-4 text-start",children:u("thMessage")}),r.jsx("th",{className:"px-5 py-4 text-start",children:u("thSchedule")}),r.jsx("th",{className:"px-5 py-4 text-start",children:u("thType")}),r.jsx("th",{className:"px-5 py-4 text-start",children:u("thDelivery")}),r.jsx("th",{className:"px-5 py-4 text-center",children:u("thActions")})]})}),r.jsx("tbody",{className:"divide-y divide-line/40",children:E?r.jsx("tr",{children:r.jsx("td",{colSpan:6,className:"text-center py-16 text-muted",children:r.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[r.jsx("div",{className:"w-6 h-6 border-2 border-brand-cyan border-t-transparent rounded-full animate-spin"}),r.jsx("span",{className:"text-xs",children:u("loading")})]})})}):h.length===0?r.jsx("tr",{children:r.jsx("td",{colSpan:6,className:"text-center py-16 text-muted text-xs sm:text-sm",children:r.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[r.jsx(yd,{size:28,className:"text-muted/40"}),r.jsx("span",{children:c==="ar"?"لا توجد رسائل مجدولة حالياً.":"No active schedules found."})]})})}):h.map(S=>r.jsxs("tr",{className:"hover:bg-panel-hover/50 transition-colors",children:[r.jsx("td",{className:"px-5 py-4 text-xs text-text-main",children:r.jsx("bdi",{children:S.targetKind==="group"||S.targetJid.includes("@g.us")?r.jsxs("span",{className:"inline-flex items-center gap-1.5 text-brand-cyan",children:[r.jsx(Gl,{size:14}),r.jsx("span",{className:"font-semibold truncate max-w-[12rem]",children:S.targetLabel&&S.targetLabel!=="Group"?S.targetLabel:c==="ar"?"مجموعة":"Group"})]}):r.jsxs("span",{className:"inline-flex items-center gap-1.5 text-ok",children:[r.jsx(Hu,{size:14}),r.jsx("span",{className:"font-semibold",children:S.targetPhone||(S.targetLabel&&!S.targetLabel.includes("@lid")?S.targetLabel:null)||(c==="ar"?"جهة اتصال":"Contact")})]})})}),r.jsx("td",{className:"px-5 py-4 max-w-xs text-text-main truncate text-xs sm:text-sm",children:S.message}),r.jsx("td",{className:"px-5 py-4 text-xs font-mono text-muted",children:S.when||S.cronString||"—"}),r.jsx("td",{className:"px-5 py-4",children:r.jsx("span",{className:`inline-flex px-2.5 py-0.5 rounded-lg text-xs font-semibold ${S.type==="recurring"?"bg-brand-blue/10 text-brand-cyan":"bg-purple-500/10 text-purple-400"}`,children:S.type==="recurring"?c==="ar"?"متكرر":"Recurring":c==="ar"?"مرة واحدة":"Once"})}),r.jsx("td",{className:"px-5 py-4",children:r.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-bold ${S.lastDeliveryStatus==="failed"?"bg-danger/10 text-danger border border-danger/25":S.status==="active"?"bg-ok/10 text-ok border border-ok/25":"bg-muted/10 text-muted"}`,children:[S.lastDeliveryStatus==="failed"?r.jsx(Hr,{size:13}):r.jsx(Js,{size:13}),r.jsx("span",{children:S.lastDeliveryStatus==="failed"?c==="ar"?"فشل الإرسال":"Failed":S.status==="active"?c==="ar"?"نشط":"Active":S.status})]})}),r.jsx("td",{className:"px-5 py-4 text-center",children:r.jsxs("div",{className:"flex items-center justify-center gap-2",children:[S.lastDeliveryStatus==="failed"&&r.jsx("button",{type:"button",onClick:()=>Y(S.id),className:"inline-flex items-center justify-center w-8 h-8 rounded-lg border border-line bg-panel-raised hover:bg-panel-hover text-brand-cyan transition-colors",title:"Retry delivery",children:r.jsx(Vr,{size:14})}),r.jsx("button",{type:"button",onClick:()=>re(S.id),className:"inline-flex items-center justify-center w-8 h-8 rounded-lg border border-danger/25 bg-danger/10 hover:bg-danger/20 text-danger transition-colors",title:u("delete"),children:r.jsx(yb,{size:14})})]})})]},S.id))})]})}),r.jsx(Zs,{isOpen:ee,onClose:()=>$(!1),title:u("scheduleNewMsg"),footer:r.jsxs("div",{className:"flex items-center justify-end gap-2.5 w-full",children:[r.jsx("button",{type:"button",onClick:()=>$(!1),className:"px-4 h-10 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main font-bold text-xs sm:text-sm transition-colors",children:u("cancel")}),r.jsx("button",{type:"button",onClick:Ge,disabled:X||!R||!pe.trim(),className:"px-5 h-10 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-xs sm:text-sm shadow-md shadow-brand-blue/20 transition-all disabled:opacity-50",children:X?u("saving"):c==="ar"?"جدولة الرسالة":"Schedule"})]}),children:r.jsxs("div",{className:"flex flex-col gap-4 py-1",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsxs("label",{className:"block text-xs font-bold text-text-main",children:[u("selectRecipient")," ",r.jsx("span",{className:"text-danger",children:"*"})]}),R?r.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl border border-brand-blue/40 bg-brand-blue/10",children:[r.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-brand-blue/20 text-brand-cyan flex items-center justify-center shrink-0",children:R.type==="group"?r.jsx(Gl,{size:16}):r.jsx(Hu,{size:16})}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("div",{className:"text-xs sm:text-sm font-bold text-text-main truncate",children:R.name}),R.phone&&r.jsx("div",{className:"text-[11px] text-muted font-mono",dir:"ltr",children:R.phone})]})]}),r.jsx("button",{type:"button",onClick:()=>B(null),className:"p-1 rounded-lg hover:bg-panel text-muted hover:text-danger transition-colors",title:"Change chat",children:r.jsx(Is,{size:16})})]}):r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"relative flex-1",children:[r.jsx(lb,{size:16,className:"absolute start-3 top-3 text-muted"}),r.jsx("input",{type:"text",value:G,onChange:S=>K(S.target.value),placeholder:u("searchRecipients"),className:"w-full h-10 ps-9 pe-3 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50"})]}),NN()&&r.jsxs("button",{type:"button",onClick:ke,className:"inline-flex items-center justify-center gap-1.5 h-10 px-3 rounded-xl border border-line bg-panel-raised hover:bg-panel-hover text-text-main text-xs font-bold shrink-0",title:u("pickPhoneContactHint"),children:[r.jsx(Tv,{size:15}),r.jsx("span",{className:"hidden sm:inline",children:u("pickPhoneContact")})]})]}),r.jsx("div",{className:"max-h-48 overflow-y-auto rounded-xl border border-line bg-panel-raised divide-y divide-line/40",children:U?r.jsx("div",{className:"p-4 text-center text-xs text-muted",children:u("loading")}):N.length===0?r.jsx("div",{className:"p-4 text-center text-xs text-muted",children:u("noRecipientsFound")}):N.map(S=>r.jsxs("button",{type:"button",onClick:()=>B(S),className:"w-full p-2.5 flex items-center justify-between gap-2 hover:bg-panel text-start transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[r.jsx("div",{className:"w-7 h-7 rounded-lg bg-panel border border-line flex items-center justify-center shrink-0 text-muted",children:S.type==="group"?r.jsx(Gl,{size:14}):r.jsx(Hu,{size:14})}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("div",{className:"text-xs font-bold text-text-main truncate",children:S.name}),S.phone&&r.jsx("div",{className:"text-[10px] text-muted font-mono",dir:"ltr",children:S.phone})]})]}),r.jsx("span",{className:"text-[10px] font-semibold px-2 py-0.5 rounded bg-panel text-muted shrink-0",children:S.type==="group"?c==="ar"?"مجموعة":"Group":c==="ar"?"محادثة":"Contact"})]},S.id))})]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs font-bold text-text-main",children:c==="ar"?"نوع الجدولة":"Schedule Type"}),r.jsxs("select",{className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm font-semibold focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:V,onChange:S=>z(S.target.value),children:[r.jsx("option",{value:"recurring",children:c==="ar"?"دوري متكرر (Cron Expression)":"Recurring (Cron Expression)"}),r.jsx("option",{value:"once",children:c==="ar"?"مرة واحدة (تاريخ ووقت محدد)":"One-Off (Specific Date & Time)"})]})]}),V==="recurring"?r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs font-bold text-text-main",children:c==="ar"?"تعبير Cron (دقيقة ساعة يوم شهر يوم-الأسبوع)":"Cron Expression (5 fields: min hour day month weekday)"}),r.jsx("input",{type:"text",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised font-mono text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:I,onChange:S=>se(S.target.value),placeholder:"0 9 * * *"}),r.jsxs("span",{className:"block text-xs text-muted",children:[c==="ar"?"مثال: ":"e.g. ",r.jsx("code",{className:"text-brand-cyan",children:"0 9 * * *"})," (",c==="ar"?"يومياً الساعة 9:00 صباحاً":"Every day at 9:00 AM",")"]})]}):r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs font-bold text-text-main",children:c==="ar"?"موعد وتاريخ الإرسال":"Delivery Date & Time"}),r.jsx("input",{type:"datetime-local",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:W,onChange:S=>ne(S.target.value)})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsxs("label",{className:"block text-xs font-bold text-text-main",children:[c==="ar"?"نص الرسالة":"Message Text"," ",r.jsx("span",{className:"text-danger",children:"*"})]}),r.jsx("textarea",{className:"w-full p-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50 resize-y min-h-[90px]",rows:3,placeholder:c==="ar"?"اكتب الرسالة التي سيتم إرسالها تلقائياً...":"Message to be sent automatically...",value:pe,onChange:S=>J(S.target.value)})]})]})})]})},dx={messageMin:10,messageMax:2e3},xd={bug:{icon:Cv,labelKey:"feedbackTopicBug"},idea:{icon:Hv,labelKey:"feedbackTopicIdea"},question:{icon:wd,labelKey:"feedbackTopicQuestion"},praise:{icon:Uv,labelKey:"feedbackTopicPraise"},other:{icon:Nd,labelKey:"feedbackTopicOther"}},jN=["bug","idea","question","praise","other"],_N=()=>{var V;const{t:s}=en(),{toast:o}=Hn(),[u,c]=Q.useState(null),[d,h]=Q.useState("bug"),[p,g]=Q.useState(""),[b,E]=Q.useState(0),[v,x]=Q.useState(""),[T,U]=Q.useState(!1),[Z,R]=Q.useState(!1);Q.useEffect(()=>{le.getFeedbackMeta().then(c).catch(()=>{})},[]);const B=(u==null?void 0:u.messageMin)??dx.messageMin,G=(u==null?void 0:u.messageMax)??dx.messageMax,K=p.trim(),ee=Math.max(0,B-K.length),$=((V=u==null?void 0:u.topics)!=null&&V.length?u.topics:jN).filter(z=>z in xd),pe=async z=>{if(z.preventDefault(),!(ee>0||T)){U(!0);try{await le.sendFeedback({message:K,topic:d,rating:b||null,contact:v.trim()||null}),R(!0),o(s("feedbackSent"),"success")}catch(I){o(I.message,"error")}finally{U(!1)}}},J=()=>{g(""),x(""),E(0),h("bug"),R(!1)};return Z?r.jsxs("div",{className:"rounded-2xl border border-ok/30 bg-panel p-6 sm:p-8 text-center shadow-sm",children:[r.jsx("div",{className:"mx-auto w-12 h-12 rounded-full bg-ok/10 text-ok flex items-center justify-center",children:r.jsx(Js,{size:26})}),r.jsx("h3",{className:"mt-4 text-lg font-bold text-text-main",children:s("feedbackSent")}),r.jsx("p",{className:"mt-2 mx-auto max-w-md text-xs sm:text-sm text-muted leading-relaxed",children:s("feedbackSentDesc")}),r.jsx("button",{type:"button",onClick:J,className:"mt-6 inline-flex items-center justify-center px-4 h-11 rounded-xl border border-line bg-panel-raised text-text-main font-bold text-xs sm:text-sm hover:bg-panel-hover transition-colors focus-visible:ring-2 focus-visible:ring-brand-blue/50",children:s("feedbackSendAnother")})]}):r.jsxs("div",{className:"flex flex-col gap-5",children:[r.jsxs("form",{onSubmit:pe,className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col gap-5",children:[r.jsxs("div",{className:"flex items-center gap-3 pb-4 border-b border-line",children:[r.jsx("div",{className:"w-10 h-10 sm:w-11 sm:h-11 rounded-xl bg-brand-cyan/10 text-brand-cyan flex items-center justify-center shrink-0",children:r.jsx(Nd,{size:20})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base sm:text-lg font-bold text-text-main",children:s("feedbackTitle")}),r.jsx("p",{className:"text-xs sm:text-sm text-muted mt-0.5",children:s("feedbackDesc")})]})]}),r.jsxs("fieldset",{className:"flex flex-col gap-2",children:[r.jsx("legend",{className:"text-xs sm:text-sm font-bold text-text-main mb-2",children:s("feedbackTopicLabel")}),r.jsx("div",{className:"flex flex-wrap gap-2",children:$.map(z=>{const I=xd[z].icon,se=d===z;return r.jsxs("button",{type:"button","aria-pressed":se,onClick:()=>h(z),className:Yt("inline-flex items-center gap-2 px-3.5 py-2.5 min-h-[44px] rounded-xl border font-bold text-xs sm:text-sm transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50",se?"bg-brand-blue text-white border-brand-blue shadow-md shadow-brand-blue/20":"bg-panel-raised border-line text-muted hover:text-text-main hover:bg-panel-hover"),children:[r.jsx(I,{size:16,className:"shrink-0"}),r.jsx("span",{children:s(xd[z].labelKey)})]},z)})})]}),r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx("label",{htmlFor:"feedback-message",className:"text-xs sm:text-sm font-bold text-text-main",children:s("feedbackMessageLabel")}),r.jsx("textarea",{id:"feedback-message",rows:6,required:!0,maxLength:G,value:p,onChange:z=>g(z.target.value),placeholder:s("feedbackMessagePlaceholder"),className:"w-full resize-y px-3.5 py-3 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm leading-relaxed focus:outline-none focus:ring-2 focus:ring-brand-blue/50"}),r.jsx("span",{className:"self-end text-[11px] text-muted tabular-nums",children:ee>0?`${ee} ${s("feedbackCharsNeeded")}`:`${p.length} / ${G}`})]}),r.jsxs("fieldset",{className:"flex flex-col gap-2",children:[r.jsx("legend",{className:"text-xs sm:text-sm font-bold text-text-main mb-1",children:s("feedbackRatingLabel")}),r.jsx("div",{className:"flex items-center gap-1",children:[1,2,3,4,5].map(z=>r.jsx("button",{type:"button","aria-label":`${z} / 5`,"aria-pressed":b===z,onClick:()=>E(b===z?0:z),className:"p-2 rounded-lg hover:bg-panel-hover transition-colors focus-visible:ring-2 focus-visible:ring-brand-blue/50",children:r.jsx($v,{size:22,className:Yt("transition-colors",z<=b?"fill-brand-cyan text-brand-cyan":"text-muted")})},z))})]}),r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx("label",{htmlFor:"feedback-contact",className:"text-xs sm:text-sm font-bold text-text-main",children:s("feedbackContactLabel")}),r.jsx("input",{id:"feedback-contact",type:"text",maxLength:200,value:v,onChange:z=>x(z.target.value),placeholder:s("feedbackContactPlaceholder"),className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50"})]}),r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 pt-1",children:[u!=null&&u.runtime?r.jsxs("span",{className:"text-[11px] text-muted",children:[s("feedbackRuntimeLabel"),": v",u.runtime.version," · ",u.runtime.platform]}):r.jsx("span",{}),r.jsxs("button",{type:"submit",disabled:ee>0||T,className:"inline-flex items-center justify-center gap-2 px-5 h-11 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-xs sm:text-sm transition-all shadow-md shadow-brand-blue/20 focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50 disabled:cursor-not-allowed",children:[r.jsx(Nd,{size:16}),r.jsx("span",{children:s(T?"feedbackSending":"feedbackSendBtn")})]})]})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col gap-3",children:[r.jsxs("div",{className:"flex items-center gap-2.5",children:[r.jsx(Od,{size:16,className:"text-brand-cyan shrink-0"}),r.jsx("h4",{className:"text-xs sm:text-sm font-bold text-text-main",children:s("feedbackWhatIsSent")})]}),r.jsx("p",{className:"text-xs sm:text-sm text-muted leading-relaxed",children:s("feedbackWhatIsSentDesc")}),r.jsxs("div",{className:"pt-2 border-t border-line flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2",children:[r.jsx("span",{className:"text-xs text-muted leading-relaxed",children:s("feedbackGithubHint")}),r.jsxs("a",{href:"https://github.com/Abdodiab2005/levix/issues",target:"_blank",rel:"noreferrer noopener",className:"inline-flex items-center gap-1.5 text-xs font-bold text-brand-cyan hover:underline whitespace-nowrap",children:[s("feedbackOpenGithub"),r.jsx(Dv,{size:13})]})]})]})]})},AN=["!","/",".","#","$","?"],TN=()=>{const{t:s,language:o,setLanguage:u}=en(),{toast:c}=Hn(),[d,h]=Q.useState("general"),[p,g]=Q.useState({}),[b,E]=Q.useState(!0),[v,x]=Q.useState("!"),[T,U]=Q.useState("!"),[Z,R]=Q.useState(!1),[B,G]=Q.useState(""),[K,ee]=Q.useState(""),[$,pe]=Q.useState(""),[J,V]=Q.useState(!1),[z,I]=Q.useState(!1),[se,W]=Q.useState(!1),[ne,X]=Q.useState(!1),ie=async()=>{try{const M=await le.getSettings();if(M!=null&&M.settings){const re={};M.settings.forEach(Y=>{re[Y.key]=Y.value}),g(re)}M!=null&&M.prefix&&(x(M.prefix),U(M.prefix))}catch(M){c(M.message,"error")}finally{E(!1)}};Q.useEffect(()=>{ie()},[]);const ge=async(M,re)=>{g(Y=>({...Y,[M]:re}));try{await le.updateSetting(M,re),c(s("savedSuccessfully"),"success")}catch(Y){c(Y.message,"error")}},C=async M=>{const re=(M!==void 0?M:T).trim();if(!re||re.length>3){c(s("prefixValidation"),"error");return}R(!0);try{await le.updatePrefix(re),x(re),U(re),c(`${s("prefixUpdated")} (${re})`,"success")}catch(Y){c(Y.message,"error")}finally{R(!1)}},F=async M=>{if(M.preventDefault(),K!==$){c(s("passwordMatchError"),"error");return}if(K.length<8){c(s("passwordMinLength"),"error");return}V(!0);try{await le.changePassword(B,K),c(s("passwordChangedSuccess"),"success"),G(""),ee(""),pe("")}catch(re){c(re.message,"error")}finally{V(!1)}};return b?r.jsxs("div",{className:"flex items-center justify-center p-12 text-muted",children:[r.jsx("div",{className:"w-6 h-6 border-2 border-brand-cyan border-t-transparent rounded-full animate-spin mr-2"}),r.jsx("span",{className:"text-sm font-semibold",children:s("loading")})]}):r.jsxs("div",{className:"flex flex-col gap-5 sm:gap-6",children:[r.jsxs("div",{role:"tablist","aria-label":"Settings Categories",className:"flex items-center gap-1.5 p-1.5 rounded-2xl bg-panel border border-line overflow-x-auto no-scrollbar shadow-sm",children:[r.jsxs("button",{type:"button",role:"tab","aria-selected":d==="general",onClick:()=>h("general"),className:Yt("flex items-center gap-2 px-3.5 py-2.5 min-h-[44px] rounded-xl font-bold text-xs sm:text-sm whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50",d==="general"?"bg-brand-blue text-white shadow-md shadow-brand-blue/25":"text-muted hover:text-text-main hover:bg-panel-hover"),children:[r.jsx(ub,{size:17,className:"shrink-0"}),r.jsx("span",{children:s("tabGeneral")})]}),r.jsxs("button",{type:"button",role:"tab","aria-selected":d==="integrations",onClick:()=>h("integrations"),className:Yt("flex items-center gap-2 px-3.5 py-2.5 min-h-[44px] rounded-xl font-bold text-xs sm:text-sm whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50",d==="integrations"?"bg-brand-blue text-white shadow-md shadow-brand-blue/25":"text-muted hover:text-text-main hover:bg-panel-hover"),children:[r.jsx(vd,{size:17,className:"shrink-0"}),r.jsx("span",{children:s("tabIntegrations")})]}),r.jsxs("button",{type:"button",role:"tab","aria-selected":d==="proxy",onClick:()=>h("proxy"),className:Yt("flex items-center gap-2 px-3.5 py-2.5 min-h-[44px] rounded-xl font-bold text-xs sm:text-sm whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50",d==="proxy"?"bg-brand-blue text-white shadow-md shadow-brand-blue/25":"text-muted hover:text-text-main hover:bg-panel-hover"),children:[r.jsx(Gr,{size:17,className:"shrink-0"}),r.jsx("span",{children:s("tabProxy")})]}),r.jsxs("button",{type:"button",role:"tab","aria-selected":d==="security",onClick:()=>h("security"),className:Yt("flex items-center gap-2 px-3.5 py-2.5 min-h-[44px] rounded-xl font-bold text-xs sm:text-sm whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50",d==="security"?"bg-brand-blue text-white shadow-md shadow-brand-blue/25":"text-muted hover:text-text-main hover:bg-panel-hover"),children:[r.jsx(Od,{size:17,className:"shrink-0"}),r.jsx("span",{children:s("tabSecurity")})]}),r.jsxs("button",{type:"button",role:"tab","aria-selected":d==="storage",onClick:()=>h("storage"),className:Yt("flex items-center gap-2 px-3.5 py-2.5 min-h-[44px] rounded-xl font-bold text-xs sm:text-sm whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50",d==="storage"?"bg-brand-blue text-white shadow-md shadow-brand-blue/25":"text-muted hover:text-text-main hover:bg-panel-hover"),children:[r.jsx(jg,{size:17,className:"shrink-0"}),r.jsx("span",{children:s("tabStorage")})]}),r.jsxs("button",{type:"button",role:"tab","aria-selected":d==="feedback",onClick:()=>h("feedback"),className:Yt("flex items-center gap-2 px-3.5 py-2.5 min-h-[44px] rounded-xl font-bold text-xs sm:text-sm whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50",d==="feedback"?"bg-brand-blue text-white shadow-md shadow-brand-blue/25":"text-muted hover:text-text-main hover:bg-panel-hover"),children:[r.jsx(Qv,{size:17,className:"shrink-0"}),r.jsx("span",{children:s("tabFeedback")})]})]}),d==="general"&&r.jsxs("div",{className:"flex flex-col gap-5",children:[r.jsxs("div",{className:"rounded-2xl border border-line bg-gradient-to-br from-panel-raised to-panel p-4 sm:p-6 shadow-sm flex flex-col gap-4 sm:gap-5",children:[r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-4 border-b border-line",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-10 h-10 sm:w-11 sm:h-11 rounded-xl bg-brand-cyan/10 text-brand-cyan flex items-center justify-center shrink-0",children:r.jsx(Vl,{size:22})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base sm:text-lg font-bold text-text-main",children:s("prefixTitle")}),r.jsx("p",{className:"text-xs sm:text-sm text-muted mt-0.5",children:s("prefixDesc")})]})]}),r.jsxs("div",{className:"flex items-center gap-2 self-start sm:self-auto",children:[r.jsxs("span",{className:"text-xs text-muted font-semibold",children:[s("activePrefix"),":"]}),r.jsx("span",{className:"inline-flex items-center justify-center px-3 py-1 rounded-lg bg-brand-cyan/15 text-brand-cyan font-mono font-bold text-base border border-brand-cyan/30 shadow-sm",children:v})]})]}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-4 pt-1",children:[r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx("span",{className:"text-xs text-muted font-semibold",children:s("prefixPresets")}),r.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:AN.map(M=>{const re=v===M;return r.jsx("button",{type:"button",className:Yt("w-10 h-10 sm:w-11 sm:h-11 rounded-xl border font-mono font-bold text-sm transition-all flex items-center justify-center focus-visible:ring-2 focus-visible:ring-brand-blue/50",re?"bg-brand-cyan text-slate-900 border-brand-cyan shadow-sm":"bg-panel-raised border-line text-text-main hover:bg-panel-hover"),onClick:()=>{U(M),C(M)},children:M},M)})})]}),r.jsxs("div",{className:"flex flex-col gap-1.5 flex-1 min-w-[200px]",children:[r.jsx("span",{className:"text-xs text-muted font-semibold",children:s("changePrefix")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("input",{type:"text",className:"w-20 sm:w-24 h-11 px-3 text-center font-mono font-bold text-base rounded-xl border border-line bg-panel text-text-main focus:outline-none focus:ring-2 focus:ring-brand-blue/50 shrink-0",maxLength:3,placeholder:s("prefixPlaceholder"),value:T,onChange:M=>U(M.target.value),onKeyDown:M=>{M.key==="Enter"&&C()}}),r.jsxs("button",{type:"button",onClick:()=>C(),disabled:Z||T.trim()===v,className:"inline-flex items-center justify-center gap-2 px-4 h-11 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-xs sm:text-sm whitespace-nowrap transition-all shadow-md shadow-brand-blue/20 focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50",children:[r.jsx(Yr,{size:16}),r.jsx("span",{children:s(Z?"saving":"prefixSaveBtn")})]})]})]})]}),r.jsxs("div",{className:"rounded-xl bg-bg-soft/70 border border-line p-3 flex flex-wrap items-center gap-2 text-xs sm:text-sm",children:[r.jsx("span",{className:"font-semibold text-muted",children:s("prefixPreview")}),r.jsx("div",{className:"px-2 py-0.5 rounded-lg bg-panel border border-line font-mono font-medium text-brand-cyan text-xs",children:r.jsxs("code",{children:[T||v,"help"]})}),r.jsx("div",{className:"px-2 py-0.5 rounded-lg bg-panel border border-line font-mono font-medium text-brand-cyan text-xs",children:r.jsxs("code",{children:[T||v,"lang ar"]})}),r.jsx("div",{className:"px-2 py-0.5 rounded-lg bg-panel border border-line font-mono font-medium text-brand-cyan text-xs",children:r.jsxs("code",{children:[T||v,"sticker"]})})]})]}),r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col gap-4",children:[r.jsx("h3",{className:"text-base sm:text-lg font-bold text-text-main",children:o==="ar"?"سلوك النظام والردود":"System Behavior & Delays"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("interfaceLanguage")}),r.jsxs("select",{className:"w-full h-11 px-3 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm font-semibold focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:o,onChange:M=>u(M.target.value),children:[r.jsx("option",{value:"ar",children:"العربية (RTL - اليمين لليسار)"}),r.jsx("option",{value:"en",children:"English (LTR - Left to Right)"})]}),r.jsx("span",{className:"block text-[11px] text-muted",children:s("interfaceLanguageDesc")})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("botLanguage")}),r.jsxs("select",{className:"w-full h-11 px-3 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm font-semibold focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:p.bot_language||"auto",onChange:M=>ge("bot_language",M.target.value),children:[r.jsx("option",{value:"auto",children:s("langAuto")}),r.jsx("option",{value:"ar",children:s("langAr")}),r.jsx("option",{value:"en",children:s("langEn")})]}),r.jsx("span",{className:"block text-[11px] text-muted",children:s("botLanguageDesc")})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("botTimezone")}),r.jsx("input",{type:"text",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised font-mono text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",placeholder:"Africa/Cairo",value:p.bot_timezone||"Africa/Cairo",onChange:M=>g({...p,bot_timezone:M.target.value}),onBlur:M=>ge("bot_timezone",M.target.value)}),r.jsx("span",{className:"block text-[11px] text-muted",children:s("botTimezoneDesc")})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("botMinDelay")}),r.jsx("input",{type:"number",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:p.bot_min_delay_ms||400,onChange:M=>g({...p,bot_min_delay_ms:Number(M.target.value)}),onBlur:M=>ge("bot_min_delay_ms",Number(M.target.value))}),r.jsx("span",{className:"block text-[11px] text-muted",children:s("delaysDesc")})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("botMaxDelay")}),r.jsx("input",{type:"number",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:p.bot_max_delay_ms||900,onChange:M=>g({...p,bot_max_delay_ms:Number(M.target.value)}),onBlur:M=>ge("bot_max_delay_ms",Number(M.target.value))})]})]})]})]}),d==="integrations"&&r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col gap-5",children:[r.jsxs("div",{className:"flex items-center gap-3.5 pb-4 border-b border-line",children:[r.jsx("div",{className:"w-11 h-11 rounded-xl bg-brand-cyan/10 text-brand-cyan flex items-center justify-center shrink-0",children:r.jsx(vd,{size:22})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base sm:text-lg font-bold text-text-main",children:s("tabIntegrations")}),r.jsx("p",{className:"text-xs sm:text-sm text-muted mt-0.5",children:s("integrationsDesc")})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[r.jsx("div",{className:"rounded-xl border border-line bg-panel-raised p-4 flex flex-col justify-between gap-3",children:r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main mb-1",children:s("weatherApiKey")}),r.jsx("p",{className:"text-xs text-muted mb-3",children:o==="ar"?"مطلوب لتشغيل أمر الطقس والأحوال الجوية !weather":"Required for the !weather forecast command"}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:se?"text":"password",className:"w-full h-11 px-3.5 pe-11 rounded-xl border border-line bg-panel text-text-main font-mono text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",placeholder:"OpenWeatherMap API Key",value:p.openweathermap_api_key||"",onChange:M=>g({...p,openweathermap_api_key:M.target.value}),onBlur:M=>ge("openweathermap_api_key",M.target.value)}),r.jsx("button",{type:"button",onClick:()=>W(!se),className:"absolute top-1.5 end-1.5 w-8 h-8 rounded-lg flex items-center justify-center text-muted hover:text-text-main transition-colors",children:se?r.jsx(Ru,{size:16}):r.jsx(Hl,{size:16})})]})]})}),r.jsx("div",{className:"rounded-xl border border-line bg-panel-raised p-4 flex flex-col justify-between gap-3",children:r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main mb-1",children:s("youtubeApiKey")}),r.jsx("p",{className:"text-xs text-muted mb-3",children:o==="ar"?"مطلوب لأدوات البحث ومعلومات الفيديوهات من يوتيوب":"Required for YouTube search and video tools"}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:ne?"text":"password",className:"w-full h-11 px-3.5 pe-11 rounded-xl border border-line bg-panel text-text-main font-mono text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",placeholder:"YouTube Data API Key",value:p.youtube_api_key||"",onChange:M=>g({...p,youtube_api_key:M.target.value}),onBlur:M=>ge("youtube_api_key",M.target.value)}),r.jsx("button",{type:"button",onClick:()=>X(!ne),className:"absolute top-1.5 end-1.5 w-8 h-8 rounded-lg flex items-center justify-center text-muted hover:text-text-main transition-colors",children:ne?r.jsx(Ru,{size:16}):r.jsx(Hl,{size:16})})]})]})})]})]}),d==="proxy"&&r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col gap-5",children:[r.jsxs("div",{className:"flex items-center justify-between gap-3 pb-4 border-b border-line",children:[r.jsxs("div",{className:"flex items-center gap-3.5 min-w-0 flex-1",children:[r.jsx("div",{className:"w-11 h-11 rounded-xl bg-blue-500/10 text-brand-blue flex items-center justify-center shrink-0",children:r.jsx(Gr,{size:22})}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("h3",{className:"text-base sm:text-lg font-bold text-text-main truncate",children:s("proxyTitle")}),r.jsx("p",{className:"text-xs sm:text-sm text-muted mt-0.5 truncate",children:s("proxyDesc")})]})]}),r.jsx("div",{className:"shrink-0",children:r.jsx(Xa,{checked:!!p.whatsapp_proxy_enabled,onChange:M=>ge("whatsapp_proxy_enabled",M)})})]}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("proxyProtocol")}),r.jsxs("select",{className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm font-semibold focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:p.whatsapp_proxy_protocol||"http",onChange:M=>ge("whatsapp_proxy_protocol",M.target.value),children:[r.jsx("option",{value:"http",children:"HTTP"}),r.jsx("option",{value:"https",children:"HTTPS"}),r.jsx("option",{value:"socks5",children:"SOCKS5"})]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("proxyHost")}),r.jsx("input",{type:"text",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised font-mono text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",placeholder:"proxy.example.com",value:p.whatsapp_proxy_host||"",onChange:M=>g({...p,whatsapp_proxy_host:M.target.value}),onBlur:M=>ge("whatsapp_proxy_host",M.target.value)})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("proxyPort")}),r.jsx("input",{type:"number",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",placeholder:"1080",value:p.whatsapp_proxy_port||"",onChange:M=>g({...p,whatsapp_proxy_port:Number(M.target.value)}),onBlur:M=>ge("whatsapp_proxy_port",Number(M.target.value))})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("proxyUsername")}),r.jsx("input",{type:"text",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised font-mono text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:p.whatsapp_proxy_username||"",onChange:M=>g({...p,whatsapp_proxy_username:M.target.value}),onBlur:M=>ge("whatsapp_proxy_username",M.target.value)})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("proxyPassword")}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:z?"text":"password",className:"w-full h-11 px-3.5 pe-11 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:p.whatsapp_proxy_password||"",onChange:M=>g({...p,whatsapp_proxy_password:M.target.value}),onBlur:M=>ge("whatsapp_proxy_password",M.target.value)}),r.jsx("button",{type:"button",onClick:()=>I(!z),className:"absolute top-1.5 end-1.5 w-8 h-8 rounded-lg flex items-center justify-center text-muted hover:text-text-main transition-colors",children:z?r.jsx(Ru,{size:16}):r.jsx(Hl,{size:16})})]})]})]})]}),d==="security"&&r.jsx("div",{className:"flex flex-col gap-5",children:r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col gap-4 max-w-xl",children:[r.jsxs("div",{className:"flex items-center gap-3 pb-3 border-b border-line",children:[r.jsx(Gv,{size:20,className:"text-ok"}),r.jsx("h3",{className:"text-base sm:text-lg font-bold text-text-main",children:s("changePassword")})]}),r.jsxs("form",{onSubmit:F,className:"flex flex-col gap-3.5",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("currentPassword")}),r.jsx("input",{type:"password",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",required:!0,value:B,onChange:M=>G(M.target.value)})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("newPassword")}),r.jsx("input",{type:"password",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",required:!0,minLength:8,value:K,onChange:M=>ee(M.target.value)}),r.jsx("span",{className:"block text-[11px] text-muted",children:s("passwordMinLength")})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("confirmPassword")}),r.jsx("input",{type:"password",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",required:!0,minLength:8,value:$,onChange:M=>pe(M.target.value)})]}),r.jsxs("button",{type:"submit",disabled:J,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-6 h-11 rounded-xl bg-brand-blue hover:bg-brand-blue/90 text-white font-bold text-xs sm:text-sm shadow-md shadow-brand-blue/20 transition-all focus-visible:ring-2 focus-visible:ring-brand-blue/50 disabled:opacity-50 self-start mt-2",children:[r.jsx(Yr,{size:16}),r.jsx("span",{children:s(J?"saving":"save")})]})]})]})}),d==="storage"&&r.jsxs("div",{className:"rounded-2xl border border-line bg-panel p-4 sm:p-6 shadow-sm flex flex-col gap-5",children:[r.jsxs("div",{className:"flex items-center gap-3.5 pb-4 border-b border-line",children:[r.jsx("div",{className:"w-11 h-11 rounded-xl bg-purple-500/10 text-purple-400 flex items-center justify-center shrink-0",children:r.jsx(jg,{size:22})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base sm:text-lg font-bold text-text-main",children:s("storageTitle")}),r.jsx("p",{className:"text-xs sm:text-sm text-muted mt-0.5",children:s("storageDesc")})]})]}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("forwardTtl")}),r.jsx("input",{type:"number",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:p.forward_score_ttl_days||30,onChange:M=>g({...p,forward_score_ttl_days:Number(M.target.value)}),onBlur:M=>ge("forward_score_ttl_days",Number(M.target.value))}),r.jsx("span",{className:"block text-[11px] text-muted",children:s("forwardTtlDesc")})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"block text-xs sm:text-sm font-bold text-text-main",children:s("maxFetchBytes")}),r.jsx("input",{type:"number",className:"w-full h-11 px-3.5 rounded-xl border border-line bg-panel-raised text-text-main text-xs sm:text-sm focus:outline-none focus:ring-2 focus:ring-brand-blue/50",value:p.max_fetch_bytes||524288,onChange:M=>g({...p,max_fetch_bytes:Number(M.target.value)}),onBlur:M=>ge("max_fetch_bytes",Number(M.target.value))}),r.jsx("span",{className:"block text-[11px] text-muted",children:s("maxFetchBytesDesc")})]})]})]}),d==="feedback"&&r.jsx(_N,{})]})},CN=()=>{const{t:s}=en(),{toast:o}=Hn(),[u,c]=Q.useState(()=>{const R=window.location.hash.replace(/^#/,"");return["overview","connection","commands","ai","groups","schedules","settings","logs"].includes(R)?R:"overview"}),[d,h]=Q.useState(!1),{sessionStatus:p,socket:g}=K5((R,B)=>{if(R==="status"){const G=B==null?void 0:B.state;o(`Connection state: ${G}`,"info")}}),[b,E]=Q.useState(null),v=Q.useCallback(async()=>{try{const R=await le.getSession();R!=null&&R.session?E({...R.session,qr:R.qr??null,pairingCode:R.pairingCode??null}):R!=null&&R.status&&E(R.status)}catch{}},[]);Q.useEffect(()=>{v()},[v]);const x=b||p?{state:(p==null?void 0:p.state)||(b==null?void 0:b.state)||"idle",...b||{},...p||{}}:null,T=(x==null?void 0:x.connected)===!0||(x==null?void 0:x.state)==="connected";Q.useEffect(()=>{const R=x==null?void 0:x.state,G=R==="starting"||R==="linking"||R==="reconnecting"||R==="waiting_for_qr"&&!(x!=null&&x.qr)&&!(x!=null&&x.pairingCode)?2e3:15e3,K=setInterval(()=>{v()},G);return()=>clearInterval(K)},[x==null?void 0:x.state,x==null?void 0:x.qr,x==null?void 0:x.pairingCode,v]);const U=R=>{c(R),window.location.hash=R};Q.useEffect(()=>{const R=()=>{const B=window.location.hash.replace(/^#/,"");B&&c(B)};return window.addEventListener("hashchange",R),()=>window.removeEventListener("hashchange",R)},[]);const Z={overview:s("overview"),connection:s("connection"),commands:s("commands"),ai:s("ai"),groups:s("groups"),schedules:s("schedules"),settings:s("settings"),logs:s("logs")};return r.jsxs("div",{className:"min-h-screen min-h-[100dvh] flex bg-bg text-text-main bg-ambient-glow overflow-x-hidden relative",children:[r.jsx(F2,{currentView:u,onSelectView:U,isOpenMobile:d,onCloseMobile:()=>h(!1)}),r.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[r.jsx(l2,{onToggleMobileMenu:()=>h(R=>!R),title:Z[u]||"Dashboard",status:x}),r.jsxs("main",{className:"flex-1 max-w-7xl w-full mx-auto p-4 sm:p-6 lg:p-8",children:[u==="overview"&&r.jsx(vN,{status:x,onNavigate:U}),u==="connection"&&r.jsx(xN,{status:x,onRefresh:v,onStatusUpdate:R=>E(B=>({...B||{},...R}))}),u==="ai"&&r.jsx(Z5,{}),u==="commands"&&r.jsx(J5,{}),u==="schedules"&&r.jsx(SN,{isConnected:T,onNavigate:U}),u==="groups"&&r.jsx(bN,{}),u==="settings"&&r.jsx(TN,{}),u==="logs"&&r.jsx(yN,{socket:g})]})]})]})},EN=()=>r.jsx(a2,{children:r.jsx($2,{children:r.jsx(CN,{})})}),fx=document.getElementById("root");fx&&mv.createRoot(fx).render(r.jsx(Qs.StrictMode,{children:r.jsx(EN,{})}));
|